try { // IE6 background image flicker fix
  document.execCommand("BackgroundImageCache", false, true);
} catch(err) {}

var nav_hilite_kop_color = '#ECECEC';

// Mouseover functions

function nav_menu_hilite(item) {
    item.style.backgroundColor = nav_hilite_kop_color;
    item.style.cursor='pointer';
}

function nav_menu_unhilite(item,color) {
    item.style.backgroundColor = color;
}

// Tabs and subtabs functions

function expandcontent(cid, aobject){

 highlighttab(aobject);

 if (document.getElementById){
  if (previoustab!="")
   document.getElementById(previoustab).style.display="none";
  if (cid!=""){
   document.getElementById(cid).style.display="block";
   previoustab=cid;
   }
  }
  return (false);
}

function highlighttab(aobject){
 if (typeof tabobjlinks=="undefined") {collectddtabs();}
 for (i=0; i<tabobjlinks.length; i++){
  tabobjlinks[i].className="";
 }
 aobject.className="selekt";
}

function collectddtabs(){
 var tabobj=document.getElementById("ddtabs");
 tabobjlinks=tabobj.getElementsByTagName("A");
}

function do_onload(){
 collectddtabs();
 expandcontent(initialtab[1], tabobjlinks[initialtab[0]]);
}

if (window.addEventListener)
 window.addEventListener("load", do_onload, false);
else if (window.attachEvent)
 window.attachEvent("onload", do_onload);
else if (document.getElementById)
 window.onload=do_onload;
