var navRoot;			//	Define it here so we can access it elsewhere

startList = function() {
	if (document.getElementById) {
		navRoot = document.getElementById("leftNav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				//	Set drop down menu functions for IE & NS6 since they do
				//	do interpret the li:hover event.
				if (browser.isIE) {		// 
					//	Show the dropdown menu
					node.onmouseover=function() {													
						for (var j=0; j < this.childNodes.length; j++) {							
							if (this.childNodes[j].tagName=="UL") {
								this.childNodes[j].className = this.childNodes[j].className.replace("navHide", "navVisible");
								bHover = true;
								break;
							}
						}
					}

					//	Hide the dropdown menu
					node.onmouseout=function() {
						for (var j=0; j < this.childNodes.length; j++) {
							if (this.childNodes[j].tagName=="UL") {
								this.childNodes[j].className = this.childNodes[j].className.replace("navVisible", "navHide");
								bHover = false;
								break;
							}
						}
					}
				}
				
				/*
				//	Set the background as PNG using DOM or IE's model
				for (var j=0; j < node.childNodes.length; j++) {
					if (node.childNodes[j].tagName=="UL") {
						var theULStyle = node.childNodes[j].style;
						if ((browser.isIE55 || browser.isIE6up) && browser.isWin32) {
							theULStyle.backgroundColor = "#00529B";
							theULStyle.filter = "filter: progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=85);";
						} else {
							// Set to transparents since there is a bg color set in the CSS
							// in case JS is turned off.
							theULStyle.backgroundImage = "url(/images/drop_down_bkgd.png)";
						}
					}
				}
				*/
			}
		}
	}
}
window.onload=startList;



