<!-- SiteCatalyst code version: H.2. Copyright 1997-2005 Omniture, Inc. More info available at omniture.com -->
var thisURL 		= document.location.href;
var thisProtocol 	= "";
	
if( thisURL.indexOf("https") > -1 ){
	if( thisURL.indexOf("www-uat.ges.symantec.com") > -1 || thisURL.indexOf("ps-qa.symantec.com") > -1){
		thisProtocol = "";	
	}else if( thisURL.indexOf("chat-dev.symantec.com/sdcxuser") > -1 ){
		thisProtocol = "https:/"+"/www-uat.ges.sym"+"antec.com";
	}else{	
		thisProtocol = "https://www-secure.symantec.com";
	}
}else{
	if( thisURL.indexOf("localhost") 							> -1 || 
		thisURL.indexOf("www-uat.ges.symantec.com")  			> -1 || 
		thisURL.indexOf("ps-dev.symantec.com") 					> -1 ){
			thisProtocol = "";			
	}else if( thisURL.indexOf("www-secure-uat.ges.symantec.com") > -1 ||
			  thisURL.indexOf("uscu-staging.symantec.com")  	 > -1 || 		
			  thisURL.indexOf("solutions-qa.symantec.com")  	 > -1 || 
			  thisURL.indexOf("solutions-dev.symantec.com") 	 > -1 ){
				thisProtocol = "http:/"+"/www-uat.ges.sym"+"antec.com";
	}else if( thisURL.indexOf("sitetest.suth.com") > -1 && thisURL.indexOf("symDebug=true") > -1){ 
		//LK: point sutherland test server to our uat server when internal debug param is added
		thisProtocol = "http:/"+"/www-uat.ges.sym"+"antec.com";
	}else{	
		thisProtocol = "http://www.symantec.com"; 
	}
}

document.write("<SCRIPT SRC=\""+thisProtocol+"/home_homeoffice/support/script/OmniScript.js\" LANGUAGE=\"javascript\" TYPE=\"text/javascript\" ID=\"OmniScript\"></SCRIPT>");

//LK 08.12.2010:  send custom-link to track unique vistor by site-section (initially for VA pilot)
document.write("<SCRIPT SRC=\""+thisProtocol+"/home_homeoffice/support/script/OmniScript_unique_visits.js\" LANGUAGE=\"javascript\" TYPE=\"text/javascript\" ID=\"OM_Unique\"></SCRIPT>");
setTimeout("checkUniques()", 3000);

function sendBasicOmnitureEvent(tracking_String, propNbr_String, evarNbr_String, eventNbr_String, eventValue_String){
	try{
		var propArray     	 		= [];
		var evarArray     	 		= [];
		propArray[propNbr_String]	= tracking_String;
		evarArray[evarNbr_String] 	= tracking_String;
		eventNbr			 		= eventNbr_String;
		eventValue			 		= eventValue_String;
		trackCustomEvent(eventNbr, eventValue, propArray, evarArray);
	}catch(err){}
}
