
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}

function startList() {
if (document.all&&document.getElementById&&document.getElementById("ul_nav")) {
navRoot = document.getElementById("ul_nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}




function moveLI() {

  if(document.getElementById("enet_menu_center")){

  var menu = document.getElementById("enet_menu_center");
  var lis = menu.getElementsByTagName("li");
  var uls = document.getElementsByTagName("ul");
  
  for (var x = 0; x < uls.length; x++) {
    if(uls[x].className == "pdf-liste") {
      //alert(uls[x]);
      var myul = uls[x].parentNode.removeChild(uls[x])
    } else {
      var myul = 0;
    }
  }
  
  
  if(myul !== 0){
   for (var i = 0; i < lis.length; i++) {
    if(lis[i].className == "aktiv") {
      //alert(lis[i].innerHTML);
      lis[i].appendChild(myul);
    }
   }
  }

  }

}

//addLoadEvent(moveLI);
//addLoadEvent(startList);