//---> all scripts written by Ulli Stemmeler

  var LastTouched=new Array(false,false), infobox=false, infst=false;
  var InfoText=new Array();

  function mstart(AngezeigteGruppe) {
    init_mousepos();
    check();
    if(AngezeigteGruppe>-1 && modernbrowser) {
      obj=document.links[AngezeigteGruppe]; 
      obj.parentNode.id="HoverMenu";  get_obj("Linie"+(AngezeigteGruppe+1)).style.visibility="visible";   
      LastTouched[0]=obj; LastTouched[1]=AngezeigteGruppe+1;
    }
  }

  function check() {
      infobox=get_obj("Info"); infst=infobox; if(modernbrowser) infst=infobox.style;
  }

  function line_up(obj,Linie,drawInfo) { 
    if(modernbrowser) { 
     if(LastTouched[0]) { line_down(LastTouched[0],LastTouched[1]); }
     obj.parentNode.id="HoverMenu"; LastTouched[0]=obj; LastTouched[1]=Linie;
     get_obj("Linie"+Linie).style.visibility="visible";   
   }
   L=Linie-1; if(modernbrowser) { obj.onclick=angeklickt; }
   if(drawInfo) { 
     if(obj.title.length) {  InfoText[L]=obj.title; obj.title="";  }
     if(InfoText[L]) show_info(InfoText[L],L); 
     return true; 
   }
   else return fn(obj,obj.title);
  }

  function line_down(obj,Linie) {  
   if(obj && Linie && modernbrowser) {
      obj.parentNode.id="NormalMenu"; LastTouched[0]=false; LastTouched[1]=false;  get_obj("Linie"+Linie).style.visibility="hidden";   
    }
    inf_vis(false);
  }

  function show_info(txt,nr) { nr++;
     ypos=mousey-8; 
 //    if(ie) { ypos=mousey-window.event.offsetY+3; if(is_mac) { ypos=mousey-window.event.offsetY+2; } }
     set_text(txt); infst.top=ypos; 
     infst.height=16; 
     if(is_mac_ie) infst.height=20;
     if(safari) infst.height=12;
     infst.width=(6*txt.length); // -16;
     inf_vis(true); 
  }

  function set_text(txt) {
     if(modernbrowser) infobox.firstChild.nodeValue =txt
     else if(document.all) infobox.innerText=txt;
  }

  function inf_vis(show) {
     if(show)  infst.visibility="visible";
     else infst.visibility="hidden";
  }

  function angeklickt() {
    this.blur();
  }
