var sifrFont1 = {
	src: '/flash/sifr/helveticaNeueCondensed.swf'
};

sIFR.activate(sifrFont1);

sIFR.replace(sifrFont1, {
	selector: 'h1'
    ,css: [
    	'.sIFR-root { text-align: left; font-weight: bold; }'
    	,'a { text-decoration: none; }'
    	,'a:link { color: #000000; }'
    	,'a:hover { color: #CCCCCC; }'
	]
    ,filters: {
    	DropShadow: {
        	knockout: false
        	,distance: 1
        	,color: '#cccccc'
        	,strength: 2
        }
	},
	wmode: 'transparent'	  
});
sIFR.replace(sifrFont1, {
	selector: 'h2'
    ,css: [
    	'.sIFR-root { text-align: left; font-weight: bold; }'
    	,'a { text-decoration: none; }'
    	,'a:link { color: #000000; }'
    	,'a:hover { color: #ff0000;text-decoration:underline; }'
	]
    ,
	wmode: 'transparent'	  
});
sIFR.replace(sifrFont1, {
	selector: 'h3'
    ,css: [
    	'.sIFR-root { text-align: left; font-weight: bold; }'
		,'a { text-decoration: underline; }'
		,'a:link { color: #ed1c24; }'
		,'a:hover { color: #b2151b; text-decoration: underline;}'
	]
    ,
  	wmode: 'transparent'	  
});    
sIFR.replace(sifrFont1, {
	selector: 'h4.subhead'
    ,css: [
    	'.sIFR-root { color:#ffffff;font-size:30px;text-align: left; font-weight: bold; }'
    	,'a { text-decoration: none; }'
    	,'a:link { color: #000000; }'
    	,'a:hover { color: #CCCCCC; }'
	]
	,filters: {
    	DropShadow: {
        	knockout: false
			,distance: 0
			,color: '#330000'
			,strength: 0
		}
	}
	,
	wmode: 'transparent'	
});
function reDrawSifr(){
	 sIFR.replace(sifrFont1, {
     selector: 'h2'
     ,css: [
       '.sIFR-root { text-align: left; font-weight: bold; }'
     ]
     ,
  	wmode: 'transparent'	  
   });
     sIFR.replace(sifrFont1, {
     selector: 'h3'
     ,css: [
       '.sIFR-root { text-align: left; font-weight: bold; }'
     ]
     ,
  	wmode: 'transparent'	  
   });   
   
}

var functionLoop = 0;

function sideBanner(){
	if(document.getElementById('surveyBanner')){
		//document.getElementById('surveyBanner').innerHTML = '<a href="/survey.asp"><img src="/images/content/sideBanner_survey.png" width="200" height="163" ></a>';
		document.getElementById('surveyBanner').innerHTML = '<a href="http://emcomm.federalsignal.com" target="_blank"><img src="/images/content/sideBanner_emcomm.png" width="199" height="310" ></a>';
		setupFooterNav();
	}else{
		functionLoop += 1;
		if(window.functionLoop < 50){
			setTimeout('sideBanner()',10);
		}	
	}

}
sideBanner();

function setupFooterNav(){
	var footerNav = document.getElementById('FooterImage_1');
	var HTMLDisp = '';
	HTMLDisp += '<div id="socialLinks">';
	HTMLDisp += '<div id="twitter"><a href="http://twitter.com/FedSigEmcomm" target="_blank"><img src="/images/content/footer_twitter.png" width="91" height="34" alt="Follow us on Twitter" /></a></div>';
	HTMLDisp += '<div id="fb"><a href="http://www.facebook.com/pages/Federal-Signal-EMComm/175371215847084" target="_blank"><img src="/images/content/footer_facebook.png" width="107" height="34" alt="Follow us on Facebook" /></a></div>';
	HTMLDisp += '</div>';
	footerNav.innerHTML = HTMLDisp;
}
// see home page as well
function readySearch(){
	$import('/javascriptO2/cookies.js');
	// ******************** SEARCH
	document.onkeydown = function() {
		if (event.keyCode == 13) {
			setTimeout("runSearch()", 50);
			return false;
		}
	}
}		
function holdSearchTerm(term){
	SetGetCookie('searchEntered',term.value);
}
function runSearch(){
	window.location = "/searchGoogle.asp";
}

function $import(src){
	var scriptElem = document.createElement('script');
	scriptElem.setAttribute('src',src);
	scriptElem.setAttribute('type','text/javascript');
	document.getElementsByTagName('head')[0].appendChild(scriptElem);
}
