// JavaScript Document

var hideSelects = new Array();

hideAllSelects = function() {
	var selects = document.getElementsByTagName("SELECT");
	for(var i=0; i<selects.length; i++) {
		hideSelects[hideSelects.length] = selects[i];
		selects[i].style.visibility = "hidden";
	}
}

showHiddenSelects = function() {
	for(var i=0; i<hideSelects.length; i++) {
		hideSelects[i].style.visibility = "visible";
	}
}

startList = function() {
	if (document.all&&document.getElementById) {

		var navRoot = document.getElementById("nav");
		var navRootLIs = navRoot.getElementsByTagName("LI");
		for (i=0; i<navRootLIs.length; i++) {
			var node = navRootLIs[i];
			if(navRoot.contains(node)) {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
	 	}
	 }
}

window.onload = function() {
    var agt=navigator.userAgent.toLowerCase();
    var is_major = parseInt(navigator.appVersion);
    var is_minor = parseFloat(navigator.appVersion);    
    var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
    var is_ie6    = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.")!=-1) );
    if(is_ie6)
        startList();
    
}
