/*
startList = function() {	
    alert("fct 1 wordt uitgevoerd");
    
	if (document.all&&document.getElementById) {		
		navRootTeHoog = document.getElementById("nav2");			
		if(navRootTeHoog.childNodes.length>0){						
			navRoot=navRootTeHoog.childNodes[0];		
			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", "");}
				}
			}
		}		
	}
}
window.onload=startList;
*/

/*
alles hier in 1 functie moeten steken want window.onload wordt ook gebruikt door cultuurdatabank.
Hierdoor krijgen we conflict want dit kan blijkbaar maar 1 keer worden uitgevoerd...  
*/

function daisyMenuInit() {
    
	if (document.all&&document.getElementById) {		
		navRootTeHoog = document.getElementById("nav2");
		if(navRootTeHoog != null){			
		if(navRootTeHoog.childNodes.length>0){						
			navRoot=navRootTeHoog.childNodes[0];		
			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", "");}
				}
			}
		}	
		}	
	}	
	
  
  if (document.all && document.getElementById) {
    navRoot = document.getElementById("generalNavigation");
    if (navRoot == null)return;
    
    navRoot = navRoot.getElementsByTagName('UL')[0];
    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", "");
        }
      }
    }
  }
  
  
    
}

daisyPushOnLoad(daisyMenuInit);

