	var numexpitems = 0;
	var textstate = new Array();
	
	function buildArray(numitems) {
		numexpitems = numitems;
		for (i = 0; i < numexpitems; i++) {
			textstate[i] = 0;
		}
	}
	function toggletexton(whichtext,myself) {
		myself.parentNode.parentNode.className = "onState";
		//document.getElementById('nav').getElementsByTagName('ul')[0].getElementsByTagName('li')[whichtext].className = "onState";
		//document.getElementById('expheadtext' + whichtext).className = "onState";
		textstate[whichtext] = 1;
	}
	
	function toggletextoff(whichtext,myself) {
		myself.parentNode.parentNode.className = "offState";
		//document.getElementById('nav').getElementsByTagName('ul')[0].getElementsByTagName('li')[whichtext].className = "offState";
		//document.getElementById('expheadtext' + whichtext).className = "offState";
		textstate[whichtext] = 0;
	}
	
	function toggletext(whichtext,myself) {
			if (textstate[whichtext] == 0) {
				toggletexton(whichtext,myself);
			} else {
				toggletextoff(whichtext,myself);
			}
	}
	
	function goPage (newURL) {
		// This function is called from the Country dropdown to transfer to
		// a different page. Ignore if the value returned is a null string
	   	if (newURL != "") {
   	
			// skip the default entry and reset the menu selection to default
	   		if (newURL == "-" ) {
				resetMenu();			
			} else {  
				// send page to designated URL. Open window if this is a new domain		 	
   				if (newURL.charAt(0) == '/') {
   					parent.location.href = newURL;
				} else {  
	   				window.open(newURL, "Brady", "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes");
   				}
   			}
   		}
	}
	function resetMenu() {
		// resets the menu selection upon entry to this page
   		document.gomenu.selector.selectedIndex = 1;
	}
	
	//ZEON:REVTODO- (25 June 2009) Modified for Omniture - Implement on Brady ID
	function getCookie(c_name)
	{
		if (document.cookie.length>0)
 	 {
  		c_start=document.cookie.indexOf(c_name + "=");
  		if (c_start!=-1)
   		 {
    		c_start=c_start + c_name.length+1;
    		c_end=document.cookie.indexOf(";",c_start);
    		if (c_end==-1) c_end=document.cookie.length;
    		return unescape(document.cookie.substring(c_start,c_end));
    	}
  	}
		return "";
	}

	
	

