// navigation.js 2008-11-22 FK
// Unterstützung für Menüzellen-Hervorhebung beim Internet Explorer

function InitMarkup()
{
  if(navigator.appName.indexOf("Internet Explorer") == -1) return;
  
  var tds, i, s;
  tds = document.getElementById("menulist").getElementsByTagName("td");
  for(i=0; i < tds.length; ++i)
  {
    if(tds[i].className.indexOf("link") != -1)
    {
      tds[i].onmouseover = MenuMausover;
      tds[i].onmouseout = MenuMausout;
    }
  }
}

function MenuMausover()
{
  if(this.className == "normal normallink aktiv")
    this.className = "normal normallink-hover aktiv";
  else if(this.className == "normal normallink")
    this.className = "normal normallink-hover";
  
  else if(this.className == "haupt hauptlink aktiv")
    this.className = "haupt hauptlink-hover aktiv";
  else if(this.className == "haupt hauptlink")
    this.className = "haupt hauptlink-hover";
  
  else if(this.className == "unter unterlink aktiv")
    this.className = "unter unterlink-hover aktiv";
  else if(this.className == "unter unterlink")
    this.className = "unter unterlink-hover";
}

function MenuMausout()
{
  if(this.className == "normal normallink-hover aktiv")
    this.className = "normal normallink aktiv";
  else if(this.className == "normal normallink-hover")
    this.className = "normal normallink";
  
  else if(this.className == "haupt hauptlink-hover aktiv")
    this.className = "haupt hauptlink aktiv";
  else if(this.className == "haupt hauptlink-hover")
    this.className = "haupt hauptlink";
  
  else if(this.className == "unter unterlink-hover aktiv")
    this.className = "unter unterlink aktiv";
  else if(this.className == "unter unterlink-hover")
    this.className = "unter unterlink";
}
