// JavaScript Document

/* function to popup a detail box when the mouse is placed over
a detail. The arguments are the details to be displayed */
function showEvent(the_title, the_desc) {
	
	MM_findObj('detail_title').innerHTML = the_title;
	MM_findObj('detail_desc').innerHTML = the_desc;
	
	var posx = 0;
	var posy = 0;
	if (!e) var e = window.event;
	if (e.pageX || e.pageY) 	{
		posx = e.pageX;
		posy = e.pageY;
	}
	else if (e.clientX || e.clientY) {
		posx = e.clientX + document.body.scrollLeft
			+ document.documentElement.scrollLeft;
		posy = e.clientY + document.body.scrollTop
			+ document.documentElement.scrollTop;
	}
	obj = MM_findObj('details');
  	obj.style.left = posx;
  	obj.style.top = posy;
  	obj.style.visibility = 'visible';
}



function hideEvent() {
   	MM_findObj('details').style.visibility = 'hidden';
}



// macromedia's functions to find an object. works great!!!
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
