var arrCanvasBG;

function addLoadEvent(func) { 
	var oldonload = window.onload; 
	if (typeof window.onload != 'function') { 
		window.onload = func; 
	} else { 
		window.onload = function() { 
			oldonload(); 
			func(); 
		}
	} 
}

initGlobalNav = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("navigationRoot");
		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 (node.childNodes.length > 0) {
					for (j=0; j<node.childNodes.length; j++) {
						thisChildNode = node.childNodes[j];
						if (thisChildNode.nodeName=="UL") {
							for (k=0; k<thisChildNode.childNodes.length; k++) {
								thisSubChildNode = thisChildNode.childNodes[k];
								if (thisSubChildNode.nodeName=="LI" && thisSubChildNode.childNodes.length > 0) {
												thisSubChildNode.onmouseover=function() {
													this.className+=" over";
													if (document.getElementById("pageSize1") != undefined) {
														document.getElementById("pageSize1").style.visibility = "hidden";
													}
												}
												thisSubChildNode.onmouseout=function() {
													this.className=this.className.replace(" over", "");
													if (document.getElementById("pageSize1") != undefined) {
														document.getElementById("pageSize1").style.visibility = "visible";
													}
												}
								}
							}
						}
					}
				}
			}
		}
	}
}


addLoadEvent(initGlobalNav); 
