var imgHomeOn = new Image();
var imgHomeOff = new Image();
var imgRealWorldOn = new Image();
var imgRealWorldOff = new Image();
var imgIndustriesOn = new Image();
var imgIndustriesOff = new Image();
var imgProductsOn = new Image();
var imgProductsOff = new Image();
var imgSupportNavOn = new Image();
var imgSupportNavOff = new Image();
var imgNewsOn = new Image();
var imgNewsOff = new Image();
var imgContactOn = new Image();
var imgContactOff = new Image();


var imgOverviewOn = new Image();
var imgOverviewOff = new Image();
var imgSpecOn = new Image();
var imgSpecOff = new Image();
var imgSupportOn = new Image();
var imgSupportOff = new Image();

imgHomeOn.src = strPageRoot + "http://www.drsarmor.com/inc/img/nav_home_on.gif";
imgHomeOff.src = strPageRoot + "http://www.drsarmor.com/inc/img/nav_home.gif";
imgRealWorldOn.src = strPageRoot + "http://www.drsarmor.com/inc/img/nav_real_world_on.gif";
imgRealWorldOff.src = strPageRoot + "http://www.drsarmor.com/inc/img/nav_real_world.gif";
imgIndustriesOn.src = strPageRoot + "http://www.drsarmor.com/inc/img/nav_industries_on.gif";
imgIndustriesOff.src = strPageRoot + "http://www.drsarmor.com/inc/img/nav_industries.gif";
imgProductsOn.src = strPageRoot + "http://www.drsarmor.com/inc/img/nav_products_on.gif";
imgProductsOff.src = strPageRoot + "http://www.drsarmor.com/inc/img/nav_products.gif";
imgSupportNavOn.src = strPageRoot + "http://www.drsarmor.com/inc/img/nav_support_on.gif";
imgSupportNavOff.src = strPageRoot + "http://www.drsarmor.com/inc/img/nav_support.gif";
imgNewsOn.src = strPageRoot + "http://www.drsarmor.com/inc/img/nav_news_on.gif";
imgNewsOff.src = strPageRoot + "http://www.drsarmor.com/inc/img/nav_news.gif";
imgContactOn.src = strPageRoot + "http://www.drsarmor.com/inc/img/nav_contact_on.gif";
imgContactOff.src = strPageRoot + "http://www.drsarmor.com/inc/img/nav_contact.gif";

imgOverviewOn.src = strPageRoot + "http://www.drsarmor.com/inc/img/h_prod_overview_on.gif";
imgOverviewOff.src = strPageRoot + "http://www.drsarmor.com/inc/img/h_prod_overview.gif";
imgSpecOn.src = strPageRoot + "http://www.drsarmor.com/inc/img/h_prod_specs_on.gif";
imgSpecOff.src = strPageRoot + "http://www.drsarmor.com/inc/img/h_prod_specs.gif";
imgSupportOn.src = strPageRoot + "http://www.drsarmor.com/inc/img/h_prod_support_on.gif";
imgSupportOff.src = strPageRoot + "http://www.drsarmor.com/inc/img/h_prod_support.gif";

var strlang = "";
var strseason = "";
var currentTime = new Date();
var randTime = currentTime.getTime();


function fWriteHomeFlash() {
	document.writeln('<div style="z-index: 10; position: relative;">');
	document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="851" height="295" id="hms_home" align="middle" />');
	document.writeln('<param name="allowScriptAccess" value="sameDomain" />');
	document.writeln('<param name="Movie" value="flash/home/home_flash.swf?cacheBuster=' + randTime + '" />');
	document.writeln('<param name="quality" value="high" />');
	document.writeln('<param name="wmode" value="transparent" />');
	document.writeln('<param name="bgcolor" value="#ffffff">');
	document.writeln('<embed src="flash/home/home_flash.swf?cacheBuster=' + randTime + '" wmode="transparent" bgcolor="#ffffff" quality="high" width="851" height="295" name="hms_home" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.writeln('</object>');
	document.writeln('</div>');
}

function fWriteHomeNoFlash() {
	document.writeln('<div style="z-index: 10; float: left;">');
	document.writeln('<img src="flash/home/static.jpg" height="295" width="851" alt="" border="0" />');
	document.writeln('</div>');
}


function fWriteMapFlash() {
	document.writeln("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"800\" height=\"475\" id=\"armor_home\" align=\"middle\" >");
	document.writeln("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
	document.writeln("<param name=\"movie\" value=\""+strPageRoot+"flash/drs_map2.swf\" />");
	document.writeln("<param name=\"quality\" value=\"high\" />");
	document.writeln("<param name=\"wmode\" value=\"transparent\" />");
	document.writeln("<embed src=\""+strPageRoot+"flash/drs_map2.swf\" wmode=\"transparent\" quality=\"high\" width=\"800\" height=\"475\" name=\"flash_button\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
	document.writeln("<\/object>");
}

function fWriteButtonFlash() {
	document.writeln("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"175\" height=\"97\" id=\"armor_home\" align=\"middle\" >");
	document.writeln("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
	document.writeln("<param name=\"movie\" value=\""+strPageRoot+"flash/lessons_learned_button.swf\" />");
	document.writeln("<param name=\"quality\" value=\"high\" />");
	document.writeln("<param name=\"wmode\" value=\"transparent\" />");
	document.writeln("<embed src=\""+strPageRoot+"flash/lessons_learned_button.swf\" wmode=\"transparent\" quality=\"high\" width=\"175\" height=\"97\" name=\"flash_button\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
	document.writeln("<\/object>");
}

function fWriteSideFeaturesFlash() {
	document.writeln('<div style="z-index: 10; position: relative;">');
	document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="152" height="450" id="hms_home" align="middle" />');
	document.writeln('<param name="allowScriptAccess" value="sameDomain" />');
	document.writeln('<param name="Movie" value="flash/specs_04.swf?cacheBuster=' + randTime + '" />');
	document.writeln('<param name="quality" value="high" />');
	document.writeln('<param name="wmode" value="transparent" />');
	document.writeln('<param name="bgcolor" value="#ffffff">');
	document.writeln('<embed src="flash/specs_04.swf?cacheBuster=' + randTime + '" wmode="transparent" bgcolor="#ffffff" quality="high" width="152" height="450" name="hms_home" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.writeln('</object>');
	document.writeln('</div>');
}

function fWriteSideFeaturesNoFlash() {
	document.writeln('<div style="z-index: 10; float: left;">');
	document.writeln('<img src="img/shim.gif" height="450" width="152" alt="" border="0" />');
	document.writeln('</div>');
}

function fWriteMilitaryIndustryFlash() {
	document.writeln('<div style="z-index: 10; position: relative;">');
	document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="870" height="195" id="hms_home" align="middle" />');
	document.writeln('<param name="allowScriptAccess" value="sameDomain" />');
	document.writeln('<param name="Movie" value="flash/industries_military_01.swf?cacheBuster=' + randTime + '" />');
	document.writeln('<param name="quality" value="high" />');
	document.writeln('<param name="wmode" value="transparent" />');
	document.writeln('<param name="bgcolor" value="#ffffff">');
	document.writeln('<embed src="flash/industries_military_01.swf?cacheBuster=' + randTime + '" wmode="transparent" bgcolor="#ffffff" quality="high" width="870" height="195" name="hms_home" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.writeln('</object>');
	document.writeln('</div>');
}

function fWriteMilitaryIndustryNoFlash() {
	document.writeln('<div style="z-index: 10; float: left;">');
	document.writeln('<img src="img/industries_military_no_flash.jpg" height="195" width="870" alt="" border="0" />');
	document.writeln('</div>');
}

function fWriteFederalIndustryFlash() {
	document.writeln('<div style="z-index: 10; position: relative;">');
	document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="870" height="195" id="hms_home" align="middle" />');
	document.writeln('<param name="allowScriptAccess" value="sameDomain" />');
	document.writeln('<param name="Movie" value="flash/industries_public_federal_01.swf?cacheBuster=' + randTime + '" />');
	document.writeln('<param name="quality" value="high" />');
	document.writeln('<param name="wmode" value="transparent" />');
	document.writeln('<param name="bgcolor" value="#ffffff">');
	document.writeln('<embed src="flash/industries_public_federal_01.swf?cacheBuster=' + randTime + '" wmode="transparent" bgcolor="#ffffff" quality="high" width="870" height="195" name="hms_home" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.writeln('</object>');
	document.writeln('</div>');
}

function fWriteFederalIndustryNoFlash() {
	document.writeln('<div style="z-index: 10; float: left;">');
	document.writeln('<img src="img/industries_federal_no_flash.jpg" height="195" width="870" alt="" border="0" />');
	document.writeln('</div>');
}

function fWritePublicIndustryFlash() {
	document.writeln('<div style="z-index: 10; position: relative;">');
	document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="870" height="195" id="hms_home" align="middle" />');
	document.writeln('<param name="allowScriptAccess" value="sameDomain" />');
	document.writeln('<param name="Movie" value="flash/industries_public_safety_01.swf?cacheBuster=' + randTime + '" />');
	document.writeln('<param name="quality" value="high" />');
	document.writeln('<param name="wmode" value="transparent" />');
	document.writeln('<param name="bgcolor" value="#ffffff">');
	document.writeln('<embed src="flash/industries_public_safety_01.swf?cacheBuster=' + randTime + '" wmode="transparent" bgcolor="#ffffff" quality="high" width="870" height="195" name="hms_home" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.writeln('</object>');
	document.writeln('</div>');
}

function fWritePublicIndustryNoFlash() {
	document.writeln('<div style="z-index: 10; float: left;">');
	document.writeln('<img src="img/industries_public_no_flash.jpg" height="195" width="870" alt="" border="0" />');
	document.writeln('</div>');
}

function fWriteTransportationIndustryFlash() {
	document.writeln('<div style="z-index: 10; position: relative;">');
	document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="870" height="195" id="hms_home" align="middle" />');
	document.writeln('<param name="allowScriptAccess" value="sameDomain" />');
	document.writeln('<param name="Movie" value="flash/industries_transportation_01.swf?cacheBuster=' + randTime + '" />');
	document.writeln('<param name="quality" value="high" />');
	document.writeln('<param name="wmode" value="transparent" />');
	document.writeln('<param name="bgcolor" value="#ffffff">');
	document.writeln('<embed src="flash/industries_transportation_01.swf?cacheBuster=' + randTime + '" wmode="transparent" bgcolor="#ffffff" quality="high" width="870" height="195" name="hms_home" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.writeln('</object>');
	document.writeln('</div>');
}

function fWriteTransportationIndustryNoFlash() {
	document.writeln('<div style="z-index: 10; float: left;">');
	document.writeln('<img src="img/industries_transportation_no_flash.jpg" height="195" width="870" alt="" border="0" />');
	document.writeln('</div>');
}

function fWriteHeavyIndustryFlash() {
	document.writeln('<div style="z-index: 10; position: relative;">');
	document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="870" height="195" id="hms_home" align="middle" />');
	document.writeln('<param name="allowScriptAccess" value="sameDomain" />');
	document.writeln('<param name="Movie" value="flash/industries_heavy_industry_01.swf?cacheBuster=' + randTime + '" />');
	document.writeln('<param name="quality" value="high" />');
	document.writeln('<param name="wmode" value="transparent" />');
	document.writeln('<param name="bgcolor" value="#ffffff">');
	document.writeln('<embed src="flash/industries_heavy_industry_01.swf?cacheBuster=' + randTime + '" wmode="transparent" bgcolor="#ffffff" quality="high" width="870" height="195" name="hms_home" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.writeln('</object>');
	document.writeln('</div>');
}

function fWriteHeavyIndustryNoFlash() {
	document.writeln('<div style="z-index: 10; float: left;">');
	document.writeln('<img src="img/industries_heavy_no_flash.jpg" height="195" width="870" alt="" border="0" />');
	document.writeln('</div>');
}

function fWriteFieldIndustryFlash() {
	document.writeln('<div style="z-index: 10; position: relative;">');
	document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="870" height="195" id="hms_home" align="middle" />');
	document.writeln('<param name="allowScriptAccess" value="sameDomain" />');
	document.writeln('<param name="Movie" value="flash/industries_field_service_01.swf?cacheBuster=' + randTime + '" />');
	document.writeln('<param name="quality" value="high" />');
	document.writeln('<param name="wmode" value="transparent" />');
	document.writeln('<param name="bgcolor" value="#ffffff">');
	document.writeln('<embed src="flash/industries_field_service_01.swf?cacheBuster=' + randTime + '" wmode="transparent" bgcolor="#ffffff" quality="high" width="870" height="195" name="hms_home" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.writeln('</object>');
	document.writeln('</div>');
}

function fWriteFieldIndustryNoFlash() {
	document.writeln('<div style="z-index: 10; float: left;">');
	document.writeln('<img src="img/industries_heavy_no_flash.jpg" height="195" width="870" alt="" border="0" />');
	document.writeln('</div>');
}

function fWritec12Flash() {
	document.writeln('<div style="z-index: 10; position: relative;">');
	document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="692" height="350" id="hms_home" align="middle" />');
	document.writeln('<param name="allowScriptAccess" value="sameDomain" />');
	document.writeln('<param name="Movie" value="flash/c12_product_viewer.swf?cacheBuster=' + randTime + '" />');
	document.writeln('<param name="quality" value="high" />');
	document.writeln('<param name="wmode" value="transparent" />');
	document.writeln('<param name="bgcolor" value="#ffffff">');
	document.writeln('<embed src="flash/c12_product_viewer.swf?cacheBuster=' + randTime + '" wmode="transparent" bgcolor="#ffffff" quality="high" width="692" height="350" name="hms_home" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.writeln('</object>');
	document.writeln('</div>');
}

function fWritec12NoFlash() {
	document.writeln('<div style="z-index: 10; float: left;">');
	document.writeln('<img src="img/c12_noflash.jpg" height="350" width="692" alt="" border="0" />');
	document.writeln('</div>');
}

function fWritex10Flash() {
	document.writeln('<div style="z-index: 10; position: relative;">');
	document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="692" height="350" id="hms_home" align="middle" />');
	document.writeln('<param name="allowScriptAccess" value="sameDomain" />');
	document.writeln('<param name="Movie" value="flash/X10_product_viewer.swf?cacheBuster=' + randTime + '" />');
	document.writeln('<param name="quality" value="high" />');
	document.writeln('<param name="wmode" value="transparent" />');
	document.writeln('<param name="bgcolor" value="#ffffff">');
	document.writeln('<embed src="flash/X10_product_viewer.swf?cacheBuster=' + randTime + '" wmode="transparent" bgcolor="#ffffff" quality="high" width="692" height="350" name="hms_home" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.writeln('</object>');
	document.writeln('</div>');
}

function fWritex10NoFlash() {
	document.writeln('<div style="z-index: 10; float: left;">');
	document.writeln('<img src="img/c12_noflash.jpg" height="350" width="692" alt="" border="0" />');
	document.writeln('</div>');
}

function fPopMapFlash() {
	window.open (""+strPageRoot+"flash_map.html","map_flash","location=0,status=0,scrollbars=0,width=800,height=475");
}

function fPopTestVideo() {
	window.open ("flash/DRS_vidbox_rtmp.php","map_flash","location=0,status=0,scrollbars=0,width=400,height=400");
}

function fPopVideo(strType) {
	window.open ("race_flash/drs.php?type="+strType,"race_flash","location=0,status=0,scrollbars=0,width=480,height=290");
}

function fPopTestHomeVideo() {
	window.open ("fieldreport/flash/DRS_vidbox_rtmp.php","test_flash","location=0,status=0,scrollbars=0,width=400,height=400");
}

function fHideDropdown(strID) {

	oTimer = setTimeout('fHideDiv(\"' + strID + '\");', 1000);
}

function fHideDiv(strID) {
	var oDiv = document.getElementById(strID);
	//oDiv.style.display = "none";
	oDiv.style.visibility = "hidden";
	if(boolHideForms && (strID == "divClaims" || strID == "divPrograms")) {
		document.getElementById("Select1").style.visibility = "visible";
		document.getElementById("Select2").style.visibility = "visible";
	}
	clearTimeout(oTimer);
}

function fHideMenusNoDHTML(strCurrentMenu){
	if(strCurrentMenu != "") {
			fHideDiv(strCurrentMenu);
		}
	}

function fShowDropdown(strID) {
	var browser=navigator.platform;
	if(navigator.userAgent.match("Mac") == "Mac") {
	} else {
		if(strCurrentMenu != "") {
			fHideDiv(strCurrentMenu);
		}
		if(boolHideForms && (strID == "divClaims" || strID == "divPrograms")) {
			document.getElementById("Select1").style.visibility = "hidden";
			document.getElementById("Select2").style.visibility = "hidden";
		}
		strCurrentMenu = strID;
		var oDiv = document.getElementById(strID);
		oDiv.style.visibility = "visible";
		oDiv.style.display = "block";
		if(oTimer != null) {
			clearTimeout(oTimer);
		}
	}
}

oTimer = null;
strCurrentMenu = "";
strCurrentBio = "";
boolHideForms = false;

var arrMenus = new Array("About", "Programs");
var oTimer = null;
var oFadeInTimer = null;
var strSection;

function fShowModal(strID) {
	var oDiv = document.getElementById(strID);
	oDiv.style.visibility = "visible";
	oDiv.style.display = "block";
}

function fHideModal(strID) {
	var oDiv = document.getElementById(strID);
	oDiv.style.visibility = "hidden";
	oDiv.style.display = "none";
}

function fToggleDiv(strDiv) {
 var objDiv = document.getElementById(strDiv);
 if(objDiv.style.visibility == "hidden") {
	 objDiv.style.visibility = "visible";
	 objDiv.style.display = "block";
	 document.getElementById(strDiv + "plus").src = "http://www.drsarmor.com/inc/img/img_minus.gif";
 } else {
	 objDiv.style.visibility = "hidden";
	 objDiv.style.display = "none";
	 document.getElementById(strDiv + "plus").src = "http://www.drsarmor.com/inc/img/img_plus.gif";
 }
}

function fToggleDivRWS(strDiv) {
 var objDiv = document.getElementById(strDiv);
 if(objDiv.style.visibility == "hidden") {
	 objDiv.style.visibility = "visible";
	 objDiv.style.display = "block";
	 document.getElementById(strDiv + "plus").src = "http://www.drsarmor.com/inc/img/h_click_collapse.gif";
 } else {
	 objDiv.style.visibility = "hidden";
	 objDiv.style.display = "none";
	 document.getElementById(strDiv + "plus").src = "http://www.drsarmor.com/inc/img/h_click_expand.gif";
 }
}

function fVerifyInput(strID, strText) {
	var oInput = document.getElementById(strID);
	if(oInput.value == "") {
		oInput.style.background = "#ffcccc";
		return strText;
	} else {
		oInput.style.background = "";
		return "";
	}
}

function fVerifySelect(strID, strText) {
	var oElement = document.getElementById(strID);
	if(oElement.selectedIndex == 0) {
		oElement.style.background = "#ffcccc";
		oElement.focus();
		return strText;
	} else {
		oElement.style.background = "#ffffff";
	}
	return "";
}

function fEmailTextbox(strTxtBox) {
	if (document.getElementById(strTxtBox).value == "enter your email address") {
		document.getElementById(strTxtBox).value = "";
	}
}

function fVerifyChk (strID, strText) {
	var oChk = document.getElementById(strID);
		if(oChk.checked) {
			return "";
		}
	return strText + "\n";
}

function popUp(strURL,strW,strH)
{
//	alert("HERE");
	day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width='+strW+',height='+strH);");
eval("page" + id + ".moveTo(0,0);");

}


var newwindow = ''
function popitup(url) {
if (newwindow.location && !newwindow.closed) {
    newwindow.location.href = url;
    newwindow.focus(); }
else {
    newwindow=window.open(url,'htmlname','width=404,height=316,resizable=1');}
}

function tidy() {
if (newwindow.location && !newwindow.closed) {
   newwindow.close(); }
}



