wmtt = null;

document.onmousemove = updateTT;

function updateTT(e) {
	x = (document.all) ? window.event.x + document.documentElement.scrollLeft : e.pageX;
	y = (document.all) ? window.event.y + document.documentElement.scrollTop  : e.pageY;
	if (wmtt != null) {
		wmtt.style.left = (x + 5) + "px";
		//wmtt.style.top 	= (y + 15) + "px";
		wmtt.style.top 	= (y - wmtt.offsetHeight -5) + "px";
	}
}

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

function hideTT() {
	wmtt.style.display = "none";
}
