hideElements = new Array();

function setNav() {
	if (document.getElementById && document.getElementById("nav")) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.className == "collapse") {
			
				node.onmouseover = function() {
					this.className = 'expand';
				}
				
				node.onmouseout = function() {
					this.className = 'collapse';
				}
			}
			for (j=0; j<node.childNodes.length; j++) {
				if (node.childNodes[j].className == "dropmenu") {
					elem = node.childNodes[j];
					for (k=0; k<elem.childNodes.length; k++) {
						if (elem.childNodes[k].className == "dropdown") {
							menuElem = elem.childNodes[k];
							for (q=0; q<menuElem.childNodes.length; q++) {
								if (menuElem.childNodes[q].className == "dropitem") {
									dropElem = menuElem.childNodes[q];
									dropElem.onmouseover = function() {
										this.className = 'dropitemHi';
									}
									dropElem.onmouseout = function() {
										this.className = 'dropitem';
									}
								}
							}
						}
					}
				}
			}
		}
	}
	
}
function goTo(where) {
	window.location = where;
}

var ua = navigator.userAgent.toLowerCase();
this.isMac = (ua.indexOf('mac') != -1);
this.isIE = (ua.indexOf('msie') != -1 && !this.isOpera && (ua.indexOf('webtv') == -1) );


document.write("<style>");
if(!this.isMac && !this.isIE){
	document.write(".lowerfeaturetopics { font-size:9px; padding-top:5px;  }");
}else if(!this.isMac){
	document.write(".lowerfeaturetopics { font-size:9px; padding-top:2px;  }");
}else{
	document.write(".lowerfeaturetopics { font-size:9px }");
}
document.write("</style>");


window.onload = setNav;