tt = null;  
document.onmousemove = updateTT;  
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 (tt != null) {  
tt.style.left = (x + 20) + "px";  
tt.style.top  = (y + 20) + "px";  
}  
}  
function showTT(id) {  
tt = document.getElementById(id);  
tt.style.display = "block"  
}

function hideTT() {  
tt.style.display = "none";  
}
