var globalNavRoot;
var g;
function closeIt(){
	for (g=0; g<globalNavRoot.childNodes.length; g++){
		globalNavRoot.childNodes[g].className=this.className.replace(" displayBlock", "");
	}
}
function globalTopNav() {
     if (document.getElementById) {
          globalNavRoot = document.getElementById('nav');
		  if (globalNavRoot !=null ) {
			   var allLi = document.getElementById('nav').getElementsByTagName('LI').length;
	          for (i=0; i<globalNavRoot.childNodes.length; i++) {
	               node = globalNavRoot.childNodes[i];
	               if (node.nodeName=='LI') {
	                    node.onmouseover=function() {
	                         this.className+=' displayBlock';
	                    }
						node.onkeypress=function() {
	                         this.className+=' displayBlock';
	                    }
	                    node.onmouseout=function() {
							 this.className=this.className.replace(" displayBlock", ""); 
	                    }
						// following commented out to fix error in all browsers - need to redo to alow tabbing - PK_21_April
						//node.childNodes[0].onfocus=function(){
						//	 closeIt();
						//	this.parentNode.className+=' displayBlock';
						//}
				   }
	          }
			globalNavRoot.getElementsByTagName('LI')[allLi-1].childNodes[0].onblur=function(){
				closeIt(); 
			}
		}
     }
}