var m_jsPrevOnLoad = window.onload;
window.onload = function() {
	if(typeof(m_jsPrevOnLoad) == 'function')
		m_jsPrevOnLoad();
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("main_menu");
		navRoot = navRoot.firstChild;
		for (i=0; i<navRoot.childNodes.length; i++) {

			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" hover";
					this.childNodes[2].className+=" hover";
					this.childNodes[2].style.display = "block";
					this.childNodes[3].style.display = "block";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" hover", "");
					this.childNodes[2].className=this.childNodes[2].className.replace(" hover", "");
					this.childNodes[2].style.display = "none";
					this.childNodes[3].style.display = "none";
				}
			}
			
			for (c=0; c<node.childNodes.length; c++) {
				var ul = node.childNodes[c];
				for (c2=0; c2<ul.childNodes.length; c2++) {
					var li = ul.childNodes[c2];
					if (c2 !=ul.childNodes.length-1) {
						if(	li.nodeName == 'LI') {
							li.onmouseover=function() {
								this.className+=" hover";
							}
							li.onmouseout=function() {
								this.className=this.className.replace(" hover", "");
							}	
						}
					} else {
						if(	li.nodeName == 'LI') {
							li.onmouseover=function() {
								this.className+=" last_hover";
							}
							li.onmouseout=function() {
								this.className=this.className.replace(" last_hover", "");
							}	
						}	
					}
				}			
			}		
		}
	}
}