// JavaScript Documentvar explorer;var safariFirefox;var flashObj;//var explorer=document.all && document.getElementById;var safariFirefox=navigator.appCodeName == "Mozilla" && navigator.platform == "MacPPC";var formNodeNames = ['select','textarea','input']//if(explorer){	window.onload = fixIE;}//function hideProtrudingElements(){	var a=getNodes(document.getElementById('contentcontainer'), formNodeNames);	var max=a.length;	while(max--){		if(a[max].className == "hideFromDropDown show" || a[max].className == "hideFromDropDown"){			a[max].className = "hideFromDropDown hide";		}			}}function showProtrudingElements(){	var a=getNodes(document.getElementById('contentcontainer'), formNodeNames);	var max=a.length;	while(max--){		if(a[max].className == "hideFromDropDown hide"){			a[max].className = "hideFromDropDown show";		}	}	}function getNodes(theNode, nodeNames) {		//Returns array of childNodes of given parent node with given nodeNames, i.e. all 'label' tags inside of 'form' tag.		//theNode:parent element of elements being searched(usually one with id, i.e. document.getElementById('myForm'));		//nodeNames: the tags with nodeNames (ie 'label' or 'input') that you want returned in an array.		//Returns array of xml nodes based on nodeNames.		var returnNodes = new Array();		var level = 0;		var result;		function recurse(theNode) {			++level;			for (var i = 0; i<theNode.childNodes.length; i++) {				var n = theNode.childNodes[i];				if (n != null) {					//alert('nodeNames.length '+nodeNames.length)					var max = nodeNames.length;					while (max--) {						//alert('n.nodeName '+n.nodeName+' nodeNames[max] '+nodeNames[max].toUpperCase());						if (n.nodeName.toLowerCase() == nodeNames[max].toLowerCase()) {							returnNodes.push(n);						}					}					recurse(n);				}			}		};		recurse(theNode);		return returnNodes;}function fixIE(){		//Makes css drop-downs work in ie: since ie only supports :hover for <a> tag.	var i;		var navRoot = document.getElementById("nav");			for (i=0; i<navRoot.childNodes.length; i++) {		//ul li    -navbar buttons		node = navRoot.childNodes[i];		if (node.nodeName == "LI" && node.firstChild.className != 'noSubMenu') {			if (node.firstChild.nodeName == "DIV") {				node.firstChild.onmouseover = function() {					this.className += " over";					hideProtrudingElements();				};				node.firstChild.onmouseout = function() {					this.className = this.className.replace(" over", "");					showProtrudingElements();									};			}			node.onmouseover = function() {				hideProtrudingElements()				//subnav popup				this.className += " over";			};			node.onmouseout = function() {				this.className = this.className.replace(" over", "");				showProtrudingElements();			};			/*Rollovers in nested li s*/			if (node.childNodes.length>1) {				/*Since "Home" link has no child nodes.*/				for (k=0; k<node.childNodes[1].childNodes.length; k++) {					node_li_li = node.childNodes[1].childNodes[k];					//ul li ul li   -subnav buttons					if (node_li_li.nodeName == "LI") {						node_li_li.onmouseover = function() {							hideProtrudingElements();							this.className += " over";						};						node_li_li.onmouseout = function() {							showProtrudingElements();							this.className = this.className.replace(" over", "");						};					}				}			}		}	}}