function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

//write NN4 stylesheet if not version5 browser
if(!document.getElementById){
document.write('<link href="/civil/css/nonstandard2.css" rel="stylesheet" type="text/css" />');
document.close();
}

document.onclick = hideAllMenus;

var numMenus = 10;
var timeout = null;

function showSubMenu(subMenu) {
	if (!document.getElementById) return;
	hideAllMenus();
	timerOff();
	document.getElementById(subMenu).style.visibility="visible"
	document.getElementById('nav' + subMenu.substr(4,5)).style.color="#CC0000"
	document.getElementById('nav' + subMenu.substr(4,5)).style.fontWeight="bold"			
}

function hideAllMenus() {
  for(var i = 1; i <= numMenus; i++) {
		if(document.getElementById('menu' + i) != null) {
			document.getElementById('menu' + i).style.visibility="hidden"
			document.getElementById('nav' + i).style.color="#333333"
			document.getElementById('nav' + i).style.fontWeight="normal"	
  		}
	}
}

function timerOn() {
	timeout = setTimeout("hideAllMenus()", 700);
}

function timerOff() {
	clearTimeout(timeout);
}

function lastmod() {
	lastmod = document.lastModified;
	d = new Date(lastmod);
	mon=(d.getMonth()+1);
	dte=d.getDate();
	year=d.getFullYear().toString().substr(2,2);
	return mon + "/" + dte  + "/" + year;     	
}

function lastModifiedDate() {
	var date = document.lastModified;
	return date.substr(0, 6) + 	date.substr(8, 2);
}