// JavaScript Document

startList = function() {
	//alert('function called');
	if (document.all && document.getElementById) {
		//alert('if statement called');
		leftnavRoot = document.getElementById("leftnav");
		currentNav = document.getElementById("current-nav");
		futureNav = document.getElementById("future-nav");
		parentsNav = document.getElementById("parents-nav");
		quicklinksRoot = document.getElementById("quicklinks-nav");
		
		for (i = 0; i < leftnavRoot.childNodes.length; i++) {
			node = leftnavRoot.childNodes[i];
			if (node.nodeName == "LI") {
				node.onmouseover=function() {
					this.className += " over";
				}
				node.onmouseout = function() {
					this.className = this.className.replace(" over", "");
				}
			}
		}
		for (i = 0; i < currentNav.childNodes.length; i++) {
			node = currentNav.childNodes[i];
			if (node.nodeName == "LI") {
				node.onmouseover=function() {
					this.className += " over";
				}
				node.onmouseout = function() {
					this.className = this.className.replace(" over", "");
				}
			}
		}
		for (i = 0; i < futureNav.childNodes.length; i++) {
			node = futureNav.childNodes[i];
			if (node.nodeName == "LI") {
				node.onmouseover=function() {
					this.className += " over";
				}
				node.onmouseout = function() {
					this.className = this.className.replace(" over", "");
				}
			}
		}
		for (i = 0; i < parentsNav.childNodes.length; i++) {
			node = parentsNav.childNodes[i];
			if (node.nodeName == "LI") {
				node.onmouseover=function() {
					this.className += " over";
				}
				node.onmouseout = function() {
					this.className = this.className.replace(" over", "");
				}
			}
		}
		for (i = 0; i < quicklinksRoot.childNodes.length; i++) {
			node = quicklinksRoot.childNodes[i];
			if (node.nodeName == "LI") {
				node.onmouseover=function() {
					this.className += " over";
				}
				node.onmouseout = function() {
					this.className = this.className.replace(" over", "");
				}
			}
		}
	}
}

window.onload=startList;