function mnuOver(obj, bgColor, txtColor) {
	obj.style.backgroundColor = bgColor;
}

startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("submenu");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			
			//voor node zelf (LI)
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
					document.getElementById("content").style.zIndex = -1;
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
					document.getElementById("content").style.zIndex = 0;
				}
			}
			
			//voor childnodes (LI LI)
			for (j=0; j<node.childNodes.length; j++) {
				childnode = node.childNodes[j];
				if (childnode.nodeName=="UL") {
					for (k=0; k<childnode.childNodes.length; k++) {
						grantchildnode = childnode.childNodes[k];
						
						if (grantchildnode.nodeName=="LI") {
							grantchildnode.onmouseover=function() {
								this.className+=" over";
							}
							grantchildnode.onmouseout=function() {
								this.className=this.className.replace(" over", "");
							}
						}
						
					}
				}
			}
		}
	}
}

function doOnload() {
	startList();
	MM_preloadImages('../images/m_home_mo.jpg','../images/m_contact_mo.jpg');
}

window.onload=doOnload;
