// Mehr lesen: http://webmatze.de/wirklich-einfache-javascript-tooltips/#ixzz0t5RfN3Yt
// Under Creative Commons License: Attribution Share Alike

wmtt = null;

document.onmousemove = updateWMTT;

function updateWMTT(e) {
  if (wmtt != null && wmtt.style.display == 'block') {
    x = (e.pageX ? e.pageX : window.event.x) + wmtt.offsetParent.scrollLeft - wmtt.offsetParent.offsetLeft;
    y = (e.pageY ? e.pageY : window.event.y) + wmtt.offsetParent.scrollTop - wmtt.offsetParent.offsetTop;
    wmtt.style.left = (x + 20) + "px";
    wmtt.style.top   = (y - 20) + "px";
  }
}

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

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