var altertip = "";
var halten = "0";
var timeoutID;
var tt1;
var tt2;
var tt3;
var nav;
var freigabe = 0;
tout = 1000;



function ausblenden()
  {
  clearTimeout(timeoutID);
  timeoutID = setTimeout("alleaus()", tout);
  }



function einblenden(tooltip)
  {
  if (tt1 && tt2 && tt3)
    {
    if (nav == 26)
      {
      if (tooltip != altertip) ausmachen(altertip);
      tooltip.y = parent.frames['inhalt'].pageYOffset;
      tooltip.style.top = tooltip.y;
      tooltip.style.visibility = "visible";
      altertip = tooltip;
      }

    if (nav == 24)
      {
      if (tooltip != altertip) ausmachen(altertip);
      tooltip.y = parent.frames['inhalt'].pageYOffset;
      tooltip.top = tooltip.y;
      tooltip.visibility = "show";
      altertip = tooltip;
      }

    if (nav == 14 || nav == 15)
      {
      if (tooltip != altertip) ausmachen(altertip);
      tooltip.y = parent.frames['inhalt'].document.body.scrollTop;
      tooltip.top = tooltip.y;
      tooltip.visibility = "visible";
      altertip = tooltip;
      }
    }
  }



function ausmachen(tooltip)
{
  if (nav == 26 && tooltip != "")
    {
    tooltip.style.visibility = "hidden";
    }

  if (nav == 24)
    {
    tooltip.visibility = "hide";
    }
  if (nav == 14 || nav == 15)
    {
    tooltip.visibility = "hidden";
    }
}


function alleaus()
{
if (tt1 && tt2 && tt3)
 {
 if (halten == 0)
  {
  if (nav == 24)
    {
    tt1.visibility = "hide";
    tt2.visibility = "hide";
    tt3.visibility = "hide";
    }


  if (nav == 14 || nav == 15)
    {
    tt1.visibility = "hidden";
    tt2.visibility = "hidden";
    tt3.visibility = "hidden";
    }

  if (nav == 26)
    {
    tt1.style.visibility = "hidden";
    tt2.style.visibility = "hidden";
    tt3.style.visibility = "hidden";
    }

  }
 }
}





function init()
{
    nav  = 26;
    if (navigator.appVersion.substring(0,1) == "5" || navigator.appVersion.substring(0,1) == "6")
      {
      if (navigator.appName == "Netscape")
        nav = 26;
      else
        nav = 15;
      }
    else
      {
      if (navigator.appName == "Netscape")
        nav = 24;
      else
        nav = 14;
      }

    if (freigabe == 1)
      {

      if (nav == 26)
        {
        tt1 = parent.frames['inhalt'].document.getElementById("discount");
        tt2 = parent.frames['inhalt'].document.getElementById("projekt");
        tt3 = parent.frames['inhalt'].document.getElementById("interaktiv");
        }

      if (nav == 24)
        {
        tt1 = parent.frames['inhalt'].document.discount;
        tt2 = parent.frames['inhalt'].document.projekt;
        tt3 = parent.frames['inhalt'].document.interaktiv;
        }
      if (nav == 14 || nav == 15)
        {
        tt1 = parent.frames['inhalt'].discount.style;
        tt2 = parent.frames['inhalt'].projekt.style;
        tt3 = parent.frames['inhalt'].interaktiv.style;
        }
      }

    else setTimeout("init()", 500);


}



