document.onmousemove = updateTT;
var wmtt;

function showTT(id) {
	wmtt = document.getElementById(id);
	//window.setTimeout("{wmtt.style.display = 'block'}", 500);
	wmtt.style.display = "block";
}

function hideTT(id) {
	wmtt = document.getElementById(id);
	wmtt.style.display = "none";
}


function updateTT(e) {
	if (wmtt == null) {
		return;
	}
	var posx = 0;
	var posy = 0;
	if (!e) var e = window.event;
	if (e.pageX || e.pageY)
	{
		posx = e.pageX;
		posy = e.pageY;
	}
	else if (e.clientX || e.clientY)
	{
		posx = e.clientX + document.body.scrollLeft;
		posy = e.clientY + document.body.scrollTop;
	}
	
	wmtt.style.left = (posx + 8) + "px";
	wmtt.style.top 	= (posy + 19) + "px";
}