startList = function() {
	if (document.getElementById) {
		navRoot = document.getElementById("navprimary");
		for (x=0; x<navRoot.childNodes.length; x++) {
			node = navRoot.childNodes[x];
			if (node.nodeName.toLowerCase()=="div") {

				node.onmouseover = function() {
					if ( this.className != "over" || this.className != "")
						this.className = this.className + " over";
					else
					this.className="over";
				}
				node.onmouseout = function() {
					this.className="";
				}

				for (y=0; y<navRoot.childNodes[x].childNodes.length; y++) {
					subnode = navRoot.childNodes[x].childNodes[y];
					if (subnode.nodeName.toLowerCase()=="ul") {

						subnode.onmouseover = function() {
							this.className="over";
						}
						subnode.onmouseout = function() {
							this.className="";
						}

					}
				}

			}
		}

	}
}

if (window.attachEvent)	window.attachEvent("onload", startList)
else window.onload=startList;
