wmtt = null;
document.onmousemove = updateWMTT;
function updateWMTT(e) {
  if (wmtt != null) {

    //Gesamte Breite des Browsers auslesen
    xWidth = (document.all) ? document.body.clientWidth : window.innerWidth;
    yHeight = (document.all) ? document.body.clientHeight : window.innerHeight;

    //Statt pageX und pageY layerX und layerY verwenden, dann wird der Tooltipp beim FF
    //auch nach dem Scrollen an der richtigen Position angezeigt !!!
    x = (document.all) ? window.event.x + wmtt.offsetParent.scrollLeft : e.layerX;
    y = (document.all) ? window.event.y + wmtt.offsetParent.scrollTop  : e.layerY;

    if (document.all) {
        diffX = 450-(xWidth/2);
        diffY = -155;
    }else {
        diffX = 20;
        diffY = 20;
    }

    //diffY = (document.all) ? document.body.clientHeight - 9 - y : nix;

    wmtt.style.left = (x + diffX + xx) + "px";//IE: -350
    wmtt.style.top   = (y + diffY) + "px";//IE: -150

    //document.forms['maus_pos'].top.value =  x;
    //document.forms['maus_pos'].left.value =  y;
  }
}

//Diese Funktion wird bei onmouseover aufgerufen
function showWMTT(id) {
  wmtt = document.getElementById(id);
  wmtt.style.display = "block"

  if (id == "garagedeuren_tt"){
		xx = -250;//250
	}else if (id == "trendo_serre_tt") {
		xx = -250;
	}else if (id == "uitval_zonnescherm_tt") {
		xx = -250;
	}else if (id == "raffstore_tt") {
		xx = -250;
	}else if (id == "serredak_zonwering_tt") {
		xx = -250;
	}else if (id == "raffstore_serre_tt") {
		xx = -250;
	}else if (id == "zijscherm_tt") {
		xx = -250;
	}else{
                xx = 0;//125
	}
}


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

