tooltip = null;

function showTT(id) {
	document.onmousemove = updateTT;
	tooltip = document.getElementById(id);
	tooltip.style.display = "block";
}

function hideTT() {
	document.onmousemove = null;
	tooltip.style.display = "none";
}

function updateTT(e) {
	x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
	y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;
	if (tooltip != null) {
		tooltip.style.left = (x + 20) + "px";
		tooltip.style.top = (y + 20) + "px";
	}
}

