// Ebene schreiben
if (document.getElementById)
 //Orginal mit Box
 document.writeln("<div id=\"tt_tip\" style=\"position: absolute; background:#FFFFCC; border: 1px solid #000000; color: #000000; padding: 5px; font: 9pt Verdana,Arial,Helvetica; visibility: hidden; width: 400px; margin-top:0px; margin-left: 10px; z-index:100;\"> </div>");
//document.writeln("<div id=\"tt_tip\" style=\"position: absolute; color: #000000; padding: 5px; font: 9pt Arial; visibility: hidden; width: 350px; margin-top:0px; margin-left: 10px; z-index:100;\"> </div>");

// Ebenentext einsetzen und Ebene sichtbar machen
function tooltip(text){
 if (document.getElementById){
  document.getElementById("tt_tip").innerHTML=text;
  document.getElementById("tt_tip").style.visibility="visible";
 }
}

// Ebene unsichtbar machen
function hidetip(){
 if (document.getElementById){
  document.getElementById("tt_tip").style.visibility="hidden";
  document.getElementById("tt_tip").style.top="-200";
  document.getElementById("tt_tip").style.left="-200";
 }
}

// Ebene dauernd auf aktuelle Mausposition bringen
function toolt(Ereignis){
 if (document.getElementById("tt_tip").style.visibility == "visible"){
  if (document.all){  // MSIE5
   document.getElementById("tt_tip").style.left = (window.event.clientX + document.body.scrollLeft);
   document.getElementById("tt_tip").style.top = (window.event.clientY + document.body.scrollTop);
  }
  else {  // Netscape6
   document.getElementById("tt_tip").style.left = (Ereignis.clientX + window.pageXOffset);
   document.getElementById("tt_tip").style.top = (Ereignis.clientY + window.pageYOffset);
  }
 }
}

document.onmouseout = hidetip;
document.onkeypress = hidetip;
document.onmousemove = toolt;

