addLoadEvent(function() {
	var navRoot = getObject("siteNav");
	if (navRoot) { 
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") { 
				if (node.childNodes.length >= 3) {
					node.childNodes[0].className="menus";
					node.onmouseover=function() {
						this.className="over";
					}
					node.onmouseout=function() {
						this.className="";
					}
					node.childNodes[2].onmouseover=function() {
						this.parentNode.childNodes[0].id="on";
					}
					node.childNodes[2].onmouseout=function() {
						this.parentNode.childNodes[0].id="";
					}
					applyRolloverState(node.childNodes[2]);
				}
			}
		}
	}
})
addLoadEvent(function() {
	var navRoot = getObject("cmsNav");
	if (navRoot) { 
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") { 
				if (node.childNodes.length >= 3) {
					node.childNodes[0].className="menus";
					node.onmouseover=function() {
						this.className="over";
					}
					node.onmouseout=function() {
						this.className="";
					}
					node.childNodes[2].onmouseover=function() {
						this.parentNode.childNodes[0].id="on";
					}
					node.childNodes[2].onmouseout=function() {
						this.parentNode.childNodes[0].id="";
					}
					applyRolloverState(node.childNodes[2]);
				}
			}
		}
	}
})

function applyRolloverState(temp) {
	var navRootNew = temp;
	if (navRootNew) { 
		for (var j=0; j<navRootNew.childNodes.length; j++) {
			var nodeNew = navRootNew.childNodes[j];
			if (nodeNew.nodeName=="LI") { 
				if (nodeNew.childNodes.length >= 3) {
					nodeNew.childNodes[0].className="menus";
					nodeNew.onmouseover=function() {
						this.className="over";
						this.childNodes[2].style.display = "block";
					}
					nodeNew.onmouseout=function() {
						this.className="";
						this.childNodes[2].style.display = "none";
					}
					nodeNew.childNodes[2].onmouseover=function() {
						this.parentNode.childNodes[0].id="on";
					}
					nodeNew.childNodes[2].onmouseout=function() {
						this.parentNode.childNodes[0].id="";
					}
					applyRolloverState(nodeNew.childNodes[2]);
				}
			}
		}
	}
}


