var tt = null;
var ttID = 'tt'; 
 
document.onmousemove = updateTT;
 
function updateTT(e) {
  if (tt != null) 
  {
    x = (document.all) ? window.event.clientX + tt.offsetParent.scrollLeft : e.pageX;
    y = (document.all) ? window.event.clientY + tt.offsetParent.scrollTop  : e.pageY;
    tt.style.left = (x + 10) + "px";
    tt.style.top   = (y + 10) + "px";
  }
}
 
function showTT(content) 
{
  if(tt == null) tt = document.getElementById(ttID);
  tt.innerHTML = content;
  tt.style.display = "block";
}
 
function hideTT() 
{
  tt.style.display = "none";
}
