// 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}; 
}
	
var widthScrN=new Array();



var PlainMoveCaller;

function mousemove()
{
	clearInterval(PlainMoveCaller);
	mouseX=defPosition().x;
	mouseY=defPosition().y
	newcoords();
}

var LastVisual;

function visual_1(HelpText)
{
	if(LastVisual!=HelpText)
	{
		document.getElementById("helpvisual").innerHTML=help[HelpText];
		LastVisual=HelpText;
	}

	document.getElementById("helpvisual").style.left=defPosition().x+16+"px";
	document.getElementById("helpvisual").style.top=defPosition().y-document.getElementById("helpvisual").offsetHeight/2+16+"px";
	document.getElementById("helpvisual").style.display="block";
}

function visual_2(HelpText)
{
	if(LastVisual!=HelpText)
	{
		document.getElementById("helpvisual").innerHTML=ctrlsite[HelpText];
		LastVisual=HelpText;
	}

	document.getElementById("helpvisual").style.left=defPosition().x+16+"px";
	document.getElementById("helpvisual").style.top=defPosition().y-document.getElementById("helpvisual").offsetHeight/2+16+"px";
	document.getElementById("helpvisual").style.display="block";
}

function stopvisual()
{document.getElementById("helpvisual").style.display="none";}


