startList = function() {
if (document.all && document.getElementById) {
navRoot = document.getElementById("nav");

//alert(navRoot.childNodes.length);
if (navRoot)
{
for (i=0; i<navRoot.childNodes.length; i++) {
  node = navRoot.childNodes[i];

  if (node.nodeName=="LI") {
  node.onmouseover=function() {
	  //alert("over node");
  this.className+=" over";
    }
  node.onmouseout=function() {
  this.className=this.className.replace
      (" over", "");
   }
   }
  }
 }
}
}
window.onload=startList;

// check browser/platform
var agt=navigator.userAgent.toLowerCase();
var appVer = navigator.appVersion.toLowerCase();

var is_win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
var is_mac    = (agt.indexOf("mac")!=-1);
if (is_mac) { is_win = !is_mac; } // dmr - 06/20/2002

var iePos  = appVer.indexOf('msie');

var is_ie   = ((iePos!=-1));

if ( is_ie ){

	document.write("<style type='text/css'>\n");
	
	document.write("ul#nav ul li a, ul#nav li#current ul li a { height:22px; width:150px; }\n");
	document.write("ul#nav ul li, ul#nav li#current ul li { margin: 5px 0px 0px 0px; padding: 1px 0px 1px 0px; }\n");
	document.write("</style>\n");
}
else
{
	document.write("<style type='text/css'>\n");
	document.write("ul#nav ul li a, ul#nav li#current ul li a { height:22px; width:130px; }\n");
	document.write("ul#nav ul li, ul#nav li#current ul li { margin: 5px 0px 0px 0px; padding: 1px 0px 1px 0px; }\n");
	document.write("</style>\n");
}


function hideSelects() 
{
	//var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
	//alert("isIE = " + isIE );
	if ( is_ie ){
		sel = document.getElementsByTagName("select");
		for (var i=0; i<sel.length; i++) {
		sel[i].style.visibility = 'hidden';
		}
	}
	
	//also hide the Flash div so it doesn't break the menu
	if (document.getElementById("FlashDiv"))
		document.getElementById("FlashDiv").style.visibility = 'hidden';
}
function showSelects() 
{
	//var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
	if ( is_ie ){
		sel = document.getElementsByTagName("select");
		for (var i=0; i<sel.length; i++) {
		sel[i].style.visibility = 'visible';
		}
	}
	
	//also shows the Flash div so it doesn't break the menu
	if (document.getElementById("FlashDiv"))
		document.getElementById("FlashDiv").style.visibility = 'visible';
}
