/* Der Variable wert den Wert null zuweisen */ 
wert = null; 


/* Beim bewegen der Maus die Funktion updateTIP starten  */
document.onmousemove = update; 

 /* Position der Maus herausfinden um Tooltips anzuhängen */
function update(e) { 

/* Fragt ob es Internetexplorer oder Mozilla Firefox ist */
x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;

/* Ist Wert ungleich null wird der Tooltip plaziert */
if (wert != null) {
breite= wert.width.replace(/px/, "");
wert.position = "absolute";
wert.left = (x - breite - 20) + "px";
wert.top = (y + 20) + "px";
}
}

/* Zeigen der Tooltips */
function show(id) { 
wert = document.getElementById(id).style;
wert.display = "block";
}

/* Verstecken des Tooltips */
function hide(id) {
wert = document.getElementById(id).style;
wert.display = "none";
}
