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);

//used for a delay onMouseOut. NOT USED
myTime = 0;

//returns the appropriate style element based on browser
function getMyElement( eName ) {

 if( document.layers ) {
    return document.layers[ eName ];
 }
 if ( document.all ) {
  return document.all( eName ).style;
 }

 return document.getElementById( eName ).style; 
}

//hides an element
function hide( theID ) {
  myObj = getMyElement( theID ); 
  myObj.visibility = "hidden";
}

//shows an element.
function show( theID ) {
  clearTimeout(myTime);
  hide("appsNav");
  hide("clientsNav");
  hide("jobsNav");
  myObj = getMyElement( theID );
  myObj.visibility = "visible";
}

//open a block style list i.e. the left navigation
function openNav(inList, outList){
  oiList = document.getElementById(inList).style;
  ooList = document.getElementById(outList).style;
  
  closeAllNav();
    
  oiList.display = "block";
  ooList.background = "#999999";
}

//close all navigation elements to return to all closed state
function closeAllNav() {
	document.getElementById("inclient").style.display = "none";
	document.getElementById("outclient").style.background = "#666666";
	document.getElementById("inapp").style.display = "none";
	document.getElementById("outapp").style.background = "#666666";
	document.getElementById("injob").style.display = "none";
	document.getElementById("outjob").style.background = "#666666";
}

//toggles block style list. Used onCLick or in the href. NOT USED
function toggle(inList, outList){
  oiList = document.getElementById(inList).style;
  ooList = document.getElementById(outList).style;
  
  //if closed then open
  if( oiList.display == "none" | oiList.display == "") {
    oiList.display = "block";
    ooList.background = "#999999";
  } else { //if open then close
    oiList.display = "none";
    ooList.background = "#666666";
  }
}
