var IE = document.all?true:false
if (!IE) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;
var toolLinkx = 0;
var toolLinky = 0;
var toolLinkzInterval;

// Main function to read mouse x-y positions
function getMouseXY(e) {
	if (IE)
		{
		toolLinkx = event.clientX + document.body.scrollLeft
		toolLinky = event.clientY + document.body.scrollTop
		}
	else 
		{
		toolLinkx = e.pageX
		toolLinky = e.pageY
		}
  
	if (toolLinkx < 0) {toolLinkx = 0}
	if (toolLinky < 0) {toolLinky = 0}  
	return true
	}

function showToolTip(zText) 
	{
	clearInterval(toolLinkzInterval);
	toolLinkzInterval = setTimeout("doShowToolTip('" + zText + "')",250);
	}

function doShowToolTip(zText) 
	{
	getMouseXY;
	clearInterval(toolLinkzInterval);
	document.getElementById("toolTip").style.top = (toolLinky + 20) + "px";
	document.getElementById("toolTip").style.left = toolLinkx + "px";
	document.getElementById("toolTip").innerHTML = zText;
	document.getElementById("toolTip").style.display = "block";
	toolLinkzInterval = setTimeout("hideToolTip()",20000);
	}

function hideToolTip() 
	{
	document.getElementById("toolTip").style.display = "none";
	clearInterval(toolLinkzInterval);
	}

