// JavaScript Document
startScripts = function() {
	navbar();
	map();
}

function navbar() {
	if (document.all&&document.getElementById) {
		var collUL = document.getElementsByTagName("UL");
		for (j=0; j<collUL.length; j++) {
			if (collUL[j].className.indexOf('nav')!=-1) {
				navRoot = collUL[j];
				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", "") }
					}
				}
			}
		}
	}
}

function map() {
	if (document.all&&document.getElementById) {
		var collUL = document.getElementsByTagName("UL");
		for (j=0; j<collUL.length; j++) {
			if (collUL[j].className.indexOf('statemap')!=-1) {
				navRoot = collUL[j];
				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", "") }
					}
				}
			}
		}
	}
}

window.onload=startScripts;
