// JavaScript ToolTip

var xFromMouse = 10;
var yFromMouse = 10;

tip = null;
document.onmousemove = moveTip;

function moveTip(e) {
	x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
	y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;
	if (tip != null) {
		tip.style.left = (x + xFromMouse) + "px";
		tip.style.top  = (y + yFromMouse) + "px";
	}
}

function showTip(id) {
	tip = document.getElementById(id);
	tip.style.display = "block";
}

function hideTip() {
	tip.style.display = "none";
}
