startList = function() {
if (document.all&&document.getElementById) {
navigationRoot = document.getElementById("navigation");
for (i=0; i<navigationRoot.childNodes.length; i++) {
node = navigationRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList;

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

ulLiMenu = function() {
	if (document.all) {
		if (document.getElementById('naehrwerttabelle')) {
			var navroot = document.getElementById('naehrwerttabelle');
			var lis=navroot.getElementsByTagName("LI");
			for (var i=0; i<lis.length; i++) {
				for (var j=0; j<lis[i].getElementsByTagName("DIV").length; j++) {
					if (lis[i].getElementsByTagName("DIV")[j].getElementsByTagName("UL").length != 0 ) {
						lis[i].onmouseover=function() { this.getElementsByTagName("DIV")[j].style.visibility = 'visible'; }
						lis[i].onmouseout=function() { this.getElementsByTagName("DIV")[j].style.visibility = 'hidden'; }
					}
				}
			}
		}
    if ( document.getElementById('nav')) { // nur für IE, MacIE, Opera
      var navroot = document.getElementById('nav');
      var lis=navroot.getElementsByTagName("LI"); 
      for (i=0; i<lis.length; i++) { // loop LIs 
          for (j=0; j<lis[i].getElementsByTagName("UL").length; j++){ // Loop UL in LI
            lis[i].onmouseover=function() {this.getElementsByTagName("UL")[j].style.visibility = 'visible'; } 
            lis[i].onmouseout=function() { this.getElementsByTagName("UL")[j].style.visibility = 'hidden'; }
          }// ENDE loop UL in LI 
      } // ENDE loop LIs
   } // ENDE IE only  
	}
}

window.onload=ulLiMenu;

 // D E R ultimative Netscape4-Resizefix: alles in eine Zeile :-)) 
function onResize()  
{ 
    location.reload();
} 
// ein weiterer Netscape-Bugfix: wenn URL in neuem Fenster geöffnet wird
/*
if ( document.layers )
  {
     if (window.name != ""){window.name = ""; location.reload();}
  }
*/
// Na dann eben doch ... habe KEINE andere Möglichkeit gefunden, den IE dazu zu bringen, den Footer korrekt anzuzeigen....
// Hier die Javascript-Brechstange, quick & dirty.

c=1;
function ieSetFooter()
{ 
  if ( document.all && document.all.footer ) //IE 5x
    {
    footer.style.position = "absolute"  ;
    korrektur = 24;
    scrollheight = eval(document.body.offsetHeight + document.body.scrollTop - korrektur);
      if (c==1){ if (dbg==1) window.status=dbgtxt; if (dbg==2) alert(dbgtxt); c=0; }
      if (document.all.footer)
        {
        footer.style.top = scrollheight;
        }
    }
}



if (  document.getElementById && document.all && document.body  )
  {
    dbgtxt="debug: IE5 onScroll Event?";
    d=1;
    if (d==1){ if (dbg==1) window.status=dbgtxt; if (dbg==2) alert(dbgtxt); d=0; }
    ieSetFooter();
    document.body.onscroll=ieSetFooter;
    document.body.onresize=ieSetFooter;
  }

 

function ns4SetFooter()
{
  if ( document.layers ) //NS 4.x
    {
      Ykorrektur = 20;
      dbgtxt="debug: ns4SetFooter: setting footercoords ....";
      if (c==1){ if (dbg==1) window.status=dbgtxt; if (dbg==2) alert(dbgtxt); c=0; }
      //alert (window.pageYOffset)
          if (document.footer)
            {
            document.footer.top =  eval(window.pageYOffset + window.innerHeight - Ykorrektur);
//            document.footer.width =  eval(window.innerWidth + 50);
            document.footer.width =  1800;

            }
            setTimeout("ns4SetFooter()",10);
    }
 
}
if ( document.layers )  { ns4SetFooter() }  
  




