wmtt = null;
tooltipp = null;
x = null;
y = null;
wmtt = null;

document.onmousemove = updateWMTT;

function updateWMTT(e) {
	x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
	y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;
	if (wmtt != null) {
		wmtt.style.left = x + "px";
		wmtt.style.top = (y+10) + "px";
	}
}
function showWMTT(id) {
	wmtt = $(id);
	wmtt.style.display = "block"
}
function hideWMTT() {
	wmtt.style.display = "none";
}
function tooltip(id) {
	if(tooltipp == null)
	 {
		tooltipp = id;
		$(id).style.display = "block";
		fade($(id),0,1);
		$(id).style.left = x + "px";
		$(id).style.top = (y+10) + "px";
	 }
	else
	 {
		hide_tooltip();
		tooltipp = id;
		$(id).style.display = "block";
		fade($(id),0,1);
		$(id).style.left = x + "px";
		$(id).style.top = (y+10) + "px";
	 }
}
function hide_tooltip() {
	$(tooltipp).style.display = "none";
	tooltipp = null;
}