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;

    if (wmtt.id == 'tt_hoverbild01' || wmtt.id == 'tt_hoverbild02') {
	    wmtt.style.left = (x - 350) + "px";
	    wmtt.style.top   = (y - 300) + "px";
    }
    else if (wmtt.id == 'tt_hoverbild03') {
	    wmtt.style.left = (x - 620) + "px";
	    wmtt.style.top   = (y - 300) + "px";
    }


  }
}

function showWMTT(id) {
  wmtt = document.getElementById(id);
  wmtt.style.display = "block"
}

function hideWMTT() {
  wmtt.style.display = "none";
}