// Quelle: http://webmatze.de/wirklich-einfache-javascript-tooltips (2010-03-27)

wmtt = null;
document.onmousemove = updateWMTT;

function updateWMTT(e) {
  if (wmtt != null) {
    x = (document.all) ? window.event.x + wmtt.offsetParent.scrollLeft : e.pageX;
    y = (document.all) ? window.event.y + wmtt.offsetParent.scrollTop  : e.pageY;
    wmtt.style.left = (x + 0) + "px";
    wmtt.style.top   = (y + 0) + "px";
  }
}

function showWMTT(id) {
  wmtt = document.getElementById(id);
  if(wmtt != null)
  {
    wmtt.style.display = "block"
  }
}

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