// JavaScript Document

function getURLParam(strParamName){

  var strReturn = "";
  var strHref = window.location.href;
  if ( strHref.indexOf("?") > -1 ){
    var strQueryString = strHref.substr(strHref.indexOf("?")).toLowerCase();
    var aQueryString = strQueryString.split("&");
    for ( var iParam = 0; iParam < aQueryString.length; iParam++ ){
      if (aQueryString[iParam].indexOf(strParamName.toLowerCase() + "=") > -1 ){
        var aParam = aQueryString[iParam].split("=");
        strReturn = aParam[1];
        break;
      }
    }
  }
  if (strReturn == "1") {

		document.getElementById("header_butt").innerHTML="<a href=\"../index.php\"><img src=\"../images/fortress_theater.jpg\" alt=\"Fortress Security\" width=\"142\" height=\"160\" /></a>";
		document.getElementById("product_link").innerHTML="Home Security with 24-hour monitoring";
	}else{
		document.getElementById("product_link").innerHTML="Home Security with 24-hour monitoring - <a href=\"../home_bus_sec/products.php\">Fortress Products</a>";
		}


} 

function switchUpLayer() {
	//alert("switchUpLayer");
	document.getElementById('sub_header').style.zIndex = 100;
	document.getElementById('flash_displayer').style.zIndex = 500;
	}
	
function switchDownLayer(){
	//alert("switchDownLayer");
	document.getElementById('sub_header').style.zIndex = 500;
	document.getElementById('flash_displayer').style.zIndex = 100;
	}