  /* Menuefunktionen */
  
  function sfhover2(id){
    document.getElementById(id).className=document.getElementById(id).className.replace(new RegExp("sfhover\\b"), "");
  }
  function sfhover(what,id) {
    if(what=='over'){
      if(document.getElementById && document.createTextNode)
      {
        var n=document.getElementById(id);
        if(n)
        {
           n.className+=n.className?' sfhover':'sfhover';
        }
      }
    } 
    if(what=='out'){
      window.setTimeout("sfhover2("+id+")", 400);
    } 
  }
  
  
  function makeIT(){
    var sfEls = document.getElementById("navcontainer").getElementsByTagName("li");
    for (var i=0; i<sfEls.length; i++) {
      sfEls[i].setAttribute("id", i);
      sfEls[i].onmouseover=function(){ sfhover('over',this.id);}
      sfEls[i].onmouseout=function(){ sfhover('out',this.id);}
    }
  }
