// JavaScript Document

var _mx, _my;

function updatePosition(e) {
	cursor = window.event;
	if (!cursor)
		cursor = e;

	_mx = cursor.clientX;
	_my = cursor.clientY;
}

document.onmousemove = updatePosition;

function defPosition() { 
      var x = y = 0; 
      if (document.attachEvent != null) { // Internet Explorer & Opera 
            x = _mx + (document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft); 
            y = _my + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop); 
      } else if (!document.attachEvent && document.addEventListener) { // Gecko 
            x = _mx + window.scrollX; 
            y = _my + window.scrollY; 
      } else { 
            // Do nothing 
      } 
      return {x:x, y:y}; 
}

function InfoGetFocus (URL)
{
	document.getElementById("infoimg").src="/0.gif";
	document.getElementById("info").style.display="block";
	document.getElementById("info").style.top=defPosition().y-130+"px";
	document.getElementById("info").style.left=defPosition().x+"px";
	document.getElementById("infoimg").style.display="block";
	document.getElementById("infoimg").style.top=defPosition().y-126+"px";
	document.getElementById("infoimg").style.left=defPosition().x+4+"px";
	document.getElementById("infoimg").src="/images/screens/"+URL;
	
}

function InfoLostFocus (URL)
{
	document.getElementById("info").style.display="none";
	document.getElementById("infoimg").style.display="none";	
}
