function startList() {
	if (document.all&&document.getElementById){
		navthing = document.getElementById('topnavdiv');
		// hide menu items when we're navigating - show when we're not.
		
		// loop through the first level nav items
		for (i=0; i<navthing.childNodes.length; i++){
			node = navthing.childNodes[i].firstChild;
			if (node.nodeName=="LI"){
				node.onmouseover=function(){
					this.className+=" over";
				}
				node.onmouseout=function(){
					this.className=this.className.replace(" over", "");
				}
				// loop through the second level nav items
				for(j=0; j<node.lastChild.childNodes.length; j++){
					if(node.lastChild.childNodes[j].lastChild.nodeName == "UL"){
						node2 = node.lastChild.childNodes[j];
						if(node2.nodeName=="LI"){
							node2.onmouseover=function(){
								this.className+=" over";
							}
							node2.onmouseout=function(){
								this.className=this.className.replace(" over", "");
							}
							// loop through the third level nav items
							for(k=0; k<node2.lastChild.childNodes.length; k++){
								if(node2.lastChild.childNodes[k].lastChild.nodeName == "UL"){
									node3 = node2.lastChild.childNodes[k];
									if(node3.nodeName=="LI"){
										node3.onmouseover=function(){
											this.className+=" over";
										}
										node3.onmouseout=function(){
											this.className=this.className.replace(" over", "");
										}
										for(l=0; l<node3.lastChild.childNodes.length; l++){
											if(node3.lastChild.childNodes[l].lastChild.nodeName == "UL"){
												node4 = node3.lastChild.childNodes[l];
												if(node4.nodeName=="LI"){
													node4.onmouseover=function(){
														this.className+=" over";
													}
													node4.onmouseout=function(){
														this.className=this.className.replace(" over", "");
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}
}
function addLoadEvent(func){	
	var oldonload = window.onload;
	if (typeof window.onload != 'function'){
    	window.onload = func;
	} else {
		window.onload = function(){
			oldonload();
			func();
		}
	}

}
addLoadEvent(startList);