var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-9332869-6");
pageTracker._trackPageview();
} catch(err) {}

// JavaScript Document
// preload navigation images:
function preloadImages() {
	
	commercial_on.src = "/images/nav/commercial_on.jpg";
	commercial_off.src = "/images/nav/commercial_off.jpg";
			
	smallBiz_on.src = "/images/nav/smallBiz_on.gif";
	smallBiz_off.src = "/images/nav/smallBiz_off.gif";
		
	
	personal_on.src = "/images/nav/personal_on.gif";
	personal_off.src = "/images/nav/personal_off.gif";
				


}

	if (document.images) {
   
   commercial_on = new Image();
   commercial_on.src = "/images/nav/commercial_on.jpg";
   commercial_off = new Image();
   commercial_off.src = "/images/nav/commercial_off.jpg";
      
   smallBiz_on = new Image();
   smallBiz_on.src = "/images/nav/smallBiz_on.jpg";
   smallBiz_off = new Image();
   smallBiz_off.src =  "/images/nav/smallBiz_off.jpg";
   
   personal_on = new Image();
   personal_on.src = "/images/nav/personal_on.jpg";
   personal_off = new Image();
   personal_off.src = "/images/nav/personal_off.jpg";
   
  

} 


function swapImage(imgName,newImage) {
   if (document.images) {
      eval('document.' + imgName + '.src = ' + newImage + '.src');
   }
}


function init(){

isNS4 = (document.layers) ? true : false;
isIE4 = (document.all && !document.getElementById) ? true : false;
isIE5 = (document.all && document.getElementById) ? true : false;
isNS6 = (!document.all && document.getElementById) ? true : false;

	
		if (isNS4){
		   layerRef = "document.layers";
		   styleSwitch="";
		}
		else if (isIE4) {
		   layerRef = "document.all";
		   styleSwitch=".style";
		}
		else if (isIE5 || isNS6) {
		   layerRef = "document.getElementById";
		   styleSwitch=".style";
		}		

		//wipeLeft('loadingBG');
		//hideLayer('header');
		//hideLayer('msg');
temp=0;
	}


//GENERAL FUNCTIONS
	function showLayer(layerName){

		clearTimeout(temp);

		var a = showLayer.arguments;
		for (i=0; i<a.length; i++) {
		
		//alert(layerRef+'("'+a[i]+'")'+'.style.visibility="visible"');
			if (isIE5 || isNS6) {
	   		eval(layerRef+'("'+a[i]+'")'+styleSwitch+'.visibility="visible"');
			}else{
			eval(layerRef+'["'+a[i]+'"]'+styleSwitch+'.visibility="visible"');
			}
		}

		temp=setTimeout('hideLayer("'+layerName+'")',3000);
	}
	

	function hideLayer(){
		var a = hideLayer.arguments;
		//alert(hideLayer.arguments);
  		for (i=0; i<a.length; i++) {
    	//alert(a[i]);
			if (isIE5 || isNS6) {
	   		eval(layerRef+'("'+a[i]+'")'+styleSwitch+'.visibility="hidden"');
			} else{
			eval(layerRef+'["'+a[i]+'"]'+styleSwitch+'.visibility="hidden"');
			}
		}
	}
	
	
	
// Date Stamp Code

function writeDate() {
	var myElement		=	document.getElementById("copyright");
	var today			=	new Date();
	var year			=	today.getFullYear();
	myElement.innerHTML	=	"&copy; " + year + " NexTier Insurance" + " All Rights Reserved";
}

var gaJsHost = (("https:" == document.location.protocol) ?
"https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost +
"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-9332869-6");
pageTracker._trackPageview();
} catch(err) {}

