var mouseX = 0;
var mouseY = 0;
if (document.layers) 
document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = getCursor; 
function getCursor(e) {
if (document.layers) {
mouseX = e.pageX;
mouseY = e.pageY;
}
if (document.all) {
mouseX = event.clientX + document.body.scrollLeft;
mouseY = event.clientY + document.body.scrollTop;
}
return true;
}

function showToolTip(name) {
var tip = getHandle(name);
if (tip.timerID)
clearTimeout(tip.timerID);
tip.left = mouseX;
tip.top = mouseY + 20;
if (document.layers)
tip.visibility = "show";
if (document.all)
tip.visibility = "visible";
tip.timerID = setTimeout("hideToolTip('" + name + "')", 5000);
}
function hideToolTip(name) {
var tip = getHandle(name);
if (tip.timerID)
clearTimeout(tip.timerID);
if (document.layers)
tip.visibility = "hide";
if (document.all)
tip.visibility = "hidden";
}
function getHandle(name) {
if (document.layers)
return(document.layers[name]);
if (document.all) {
var block = eval('document.all.' + name + '.style');
return(block);
}
}  
