if(document.all && !document.getElementById) {
    document.getElementById = function(id) {
         return document.all[id];
    }
}
function $(id){return document.getElementById(id);} 
sfHover = function() {
	var sfEls = $("headernav").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"), "");
		}
	}
}
    function languageSwitch() {
       var XOPTION = $('changeLanguageForm').selLanguages.selectedIndex;
      $('changeLanguageForm').selLanguages.selectedIndex = "0";
       if(XOPTION > "0"){
          top.location.href = $('changeLanguageForm').selLanguages.options[XOPTION].value;
       }
    }
if (window.attachEvent) window.attachEvent("onload", sfHover); 


  /**/   
function fensterCenter(name,ort,w,h,scroll)
{
	if (document.layers)			// fuer netzcape
	{
		w = parseInt(w) + 15;
		h = parseInt(h) + 14;	
	}
	else							// weil explorer behandelt die fenstergroessen anners
	{
		w = parseInt(w) + 30;
		h = parseInt(h) + 58;	
	}
  var thisx, thisy;
	thisx = parseInt((screen.availWidth - w)/2);
	thisy = parseInt((screen.availHeight - h)/2);
  win = window.open(ort, name, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+scroll+',resizable=yes,copyhistory=no,width='+w+',height='+h+',left='+thisx+',top='+thisy);
	win.focus();
	return false;
}