/* The startList function generates Internet Explorer compatibility with the LI:HOVER style sheet affect.
   This script is used when generating the Background Resources rollover menu with Cascading Style Sheets (CSS). */
startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("navTenant");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				if (document.images.tenant.src.substring(document.images.tenant.src.length-6, document.images.tenant.src.length)=="ON.gif") {
					current1 = true;
				} else {
					current1 = false;
				}
				node.onmouseover=function() {
					this.className+=" over";
					if (!current1) {
						document.images.tenant.src="../images/nav/tenant_screening_ON.gif";
					}
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
					if (!current1) {
						document.images.tenant.src="../images/nav/tenant_screening.gif";
					}
				}
			}
		}
		navRoot = document.getElementById("navEmployment");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				if (document.images.employment.src.substring(document.images.employment.src.length-6, document.images.employment.src.length)=="ON.gif") {
					current2 = true;
				} else {
					current2 = false;
				}
				node.onmouseover=function() {
					this.className+=" over";
					if (!current2) {
						document.images.employment.src="../images/nav/employment_screening_ON.gif";
					}
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
					if (!current2) {
						document.images.employment.src="../images/nav/employment_screening.gif";
					}
				}
			}
		}
		navRoot = document.getElementById("navDrug");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				if (document.images.drug.src.substring(document.images.drug.src.length-6, document.images.drug.src.length)=="ON.gif") {
					current3 = true;
				} else {
					current3 = false;
				}
				node.onmouseover=function() {
					this.className+=" over";
					if (!current3) {
						document.images.drug.src="../images/nav/drug_testing_ON.gif";
					}
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
					if (!current3) {
						document.images.drug.src="../images/nav/drug_testing.gif";
					}
				}
			}
		}
		navRoot = document.getElementById("navFinger");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				if (document.images.finger.src.substring(document.images.finger.src.length-6, document.images.finger.src.length)=="ON.gif") {
					current4 = true;
				} else {
					current4 = false;
				}
				node.onmouseover=function() {
					this.className+=" over";
					if (!current4) {
						document.images.finger.src="../images/nav/livescan_finger_printing_ON.gif";
					}
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
					if (!current4) {
						document.images.finger.src="../images/nav/livescan_finger_printing.gif";
					}
				}
			}
		}
	}
}

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();
}