startList = function() {
	if (document.getElementById) {
		navRoot = document.getElementById("navprimary");
		if(navRoot) {

			for (x=0; x<navRoot.childNodes.length; x++) {
				node = navRoot.childNodes[x];
				if (node.nodeName.toLowerCase()=="ul") {
	/*
					node.onmouseover = function() {
						if(this.className.length)
							this.className = this.className + " over";
						else
							this.className="over";
					}
					node.onmouseout = function() {
						if(this.className == "over" || this.className == "") {
							this.className = "";
						}
						else {
							var classes = new Array();
							classes = this.className.split(' ');
							classes.pop();
							this.className = classes.join(' ');
						}
					}
	*/
					for (y=0; y<navRoot.childNodes[x].childNodes.length; y++) {
						subnode = navRoot.childNodes[x].childNodes[y];
						if (subnode.nodeName.toLowerCase()=="li") {
	
	
					subnode.onmouseover = function() {
						if(this.className.length)
							this.className = this.className + " over";
						else
							this.className="over";
					}
					subnode.onmouseout = function() {
						if(this.className == "over" || this.className == "") {
							this.className = "";
						}
						else {
							var classes = new Array();
							classes = this.className.split(' ');
							classes.pop();
							this.className = classes.join(' ');
						}
					}
	
	
	/*
							subnode.onmouseover = function() {
								if(this.parentNode.className.length)
									this.parentNode.className = this.parentNode.className + " over";
								else
									this.parentNode.className="over";
								}
							subnode.onmouseout = function() {
	
								if(this.parentNode.className == "over" || this.parentNode.className == "") {
									this.parentNode.className = "";
								}
								else {
									var classes = new Array();
									classes = this.parentNode.className.split(' ');
									classes.pop();
									this.parentNode.className = classes.join(' ');
								}
	
							}
	*/
	
	
						}
					}
	
	
	
				}
			}

		}




		adminRoot = document.getElementById("adminheader");
		if(adminRoot) {

			for (x=0; x<adminRoot.childNodes.length; x++) {
				node = adminRoot.childNodes[x];
				if (node.nodeName.toLowerCase()=="div") {
	
					node.onmouseover = function() {
						if(this.className.length)
							this.className = this.className + " over";
						else
							this.className="over";
					}
					node.onmouseout = function() {
						if(this.className == "over" || this.className == "") {
							this.className = "";
						}
						else {
							var classes = new Array();
							classes = this.className.split(' ');
							classes.pop();
							this.className = classes.join(' ');
						}
					}
	
	
				}
			}


		}


	}
}


if(window.addEventListener)
	window.addEventListener("load",startList,false);
else if (window.attachEvent)
	window.attachEvent("onload",startList);
