var IE = document.all?true:false;
if (!IE) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;
var tempX = 0;
var tempY = 0;

function getMouseXY(e) {
    if (IE) { // grab the x-y pos.s if browser is IE
	tempX = event.clientX + document.body.scrollLeft;
	tempY = event.clientY + document.body.scrollTop;
     }
     else {  // grab the x-y pos.s if browser is NS
		tempX = e.pageX;
		tempY = e.pageY;
     }  
     if (tempX < 0){tempX = 0;}
     if (tempY < 0){tempY = 0;}  
	
     return true;
}

function showDiv(divid, leftx, topy) {
   //alert(tempX + " " + tempY);
   //if (document.layers) document.layers[divid].visibility="show";
   document.getElementById(divid).style.visibility="visible";
   document.getElementById(divid).style.display = 'block'; 
   document.getElementById(divid).style.left = leftx + 'px'; 
   document.getElementById(divid).style.top = topy +  'px'; 
   document.getElementById(divid).style.width = 0 + 'px';
}

function hideDiv(divid) {
   //if (document.layers) document.layers[divid].visibility="hide";
   document.getElementById(divid).style.visibility="hidden";
}

