var isNav = (navigator.appName.indexOf("Netscape") !=-1);
var Timer="";
var elm="";
var elml="";


function showtip(current,e,tip) {
  if(document.getElementById){ // getestet mit Netscape 6.0+ Netscape 7.0+ Internet Explorer 5.0+ Konqueror 3.0

    elm=document.getElementById("tooltip");
    elml=current;
    
    elm.innerHTML=unescape(tip);
    elm.style.height=elml.style.height;

    if (window.event) {
      elm.style.top=parseInt(window.event.clientY + document.body.scrollTop + 15);
      elm.style.left=parseInt(window.event.clientX + document.body.scrollLeft + 15);
    } else {
      if (isNav) {
        elm.style.top=e.pageY+15;
        elm.style.left=e.pageX+15;
      } else {
        elm.style.top=parseInt(elml.offsetTop+elml.offsetHeight);
        elm.style.left=parseInt(elml.offsetLeft+elml.offsetWidth+10);
      }
    }

    Timer=setTimeout("elm.style.visibility = 'visible'",1000);
  }else {
    if (document.layers){ // Netscape 4.0+
      theString="<DIV ID='tt' CLASS='ttip'>" + tip + "</DIV>";
      document.tooltip.document.write(theString);
      document.tooltip.document.close();
      ttdoc = document.tooltip.document.tt.document;
      document.tooltip.clip.width=ttdoc.width;
      document.tooltip.clip.height=ttdoc.height;
      document.tooltip.left=e.pageX+14;
      document.tooltip.top=e.pageY+2;
      Timer=setTimeout("document.tooltip.visibility='show'",1000);
    }
  }
}


function hidetip(){
  clearTimeout(Timer);
  if (document.layers){ // Netscape 4.0+
    document.tooltip.visibility="hidden";
  }else{
    if(document.getElementById){ // Netscape 6.0+ and Internet Explorer 5.0+
      elm=document.getElementById("tooltip");
      elm.style.visibility="hidden";
    }
  }
}
