var wmtt = null;

document.onmousemove = updateWMTT;

function updateWMTT(e) {
    if(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 - xx) + "px";
                wmtt.style.top 	= (y + yy) + "px";
            }
        }
}

function showWMTT(id) {
	wmtt = document.getElementById(id);
	if(wmtt)
	wmtt.style.display = "block";
    xx = 125;
    yy = 20;
}

function hideWMTT() {
    if(wmtt != null)
	wmtt.style.display = "none";
}