﻿startList = function() {
if (document.all && document.getElementById) {
navRoot = document.getElementById("navMain");

//alert(navRoot.childNodes.length);

for (i=0; i<navRoot.childNodes.length; i++) {
  node = navRoot.childNodes[i];

  if (node.nodeName=="LI") {
  node.onmouseover=function() {
	  //alert("over node");
  this.className+="over";
    }
  node.onmouseout=function() {
  this.className=this.className.replace
      ("over", "");
   }
   }
  }
 }
}
window.onload=startList;

function getURLVar(urlVarName) {
	var urlHalves = String(document.location).split('?');
	var urlVarValue = '';
	if(urlHalves[1]){
		var urlVars = urlHalves[1].split('&');
		for(i=0; i<=(urlVars.length); i++){
		if(urlVars[i]){
			var urlVarPair = urlVars[i].split('=');
			if (urlVarPair[0] && urlVarPair[0] == urlVarName) {
				urlVarValue = urlVarPair[1];
			}
		}
	}
}
return urlVarValue;   
}
