// HP Common Metrics Architecture 20050829a
// BEGIN Clickstream:
//var s_hp_optOut = false // WARNING: IF SET TO TRUE, PAGE WILL NOT BE TRACKED

// Common Dynamic Account structure - please do not use unless authorized by CKM&A Ops
var s_dynamicAccountSelection=false
var s_dynamicAccountList=""
var s_dynamicAccountMatch=window.location.hostname

if (!(window.s_account)){
	var s_account="hphqglobal,hphqwwdesignjet"
}
var s_trackDownloadLinks=true
var s_trackExternalLinks=true
var s_trackInlineStats=true
var s_linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,doc,pdf,xls,cgi,dot,pot,ppt,wmv,asx"
var s_linkInternalFilters="hp,compaq,cpqcorp,javascript:"
var s_linkLeaveQueryString=true


function s_hp_filterReportSuites(countryCode) {
	
	s_account="hphqglobal,hphqwwdesignjet"
	switch(countryCode.toLowerCase()) {
		case "us":
		case "ca":
			//s_account += ",hphqnagraphicarts";	
			s_hp_region = "na";
			break;
		case "kr":
		case "cn":
		case "jp":
		case "tw":
		case "au":
		case "hk":
		case "sg":
		case "in":
		case "th":
		case "nz":
		case "my":
		case "ph":
		case "vn":
		case "id":
			s_account += ",hphqap,hphqap"+countryCode; 
			s_hp_region = "ap";
			break;
		case "de": 
		case "fr": 
		case "es": 
		case "uk": 
		case "nl": 
		case "it": 
		case "pl": 
		case "se": 
		case "be": 
		case "dk": 
		case "ch": 
		case "pt": 
		case "ru": 
		case "no": 
		case "at": 
		case "fi": 
		case "cz": 
		case "tr": 
		case "hu": 
		case "il": 
		case "gr": 
		case "za": 
		case "ie": 
		case "sk": 
		case "ro": 
		case "ua": 
		case "gb": 
		case "sa":
		case "emea_africa":
		case "emea_middle_east":
			s_account += ",hphqemea,hphqemea"+countryCode;
			s_hp_region = "emea";
			break;
		case "lamerica_nsc_carib":
			s_account += ",hphqla,hphqlacb";
			s_hp_region = "la";
			break;
		case "lamerica_nsc_cnt_amer":
			s_account += ",hphqla,hphqlans";
			s_hp_region = "la";
			break;
		case "br":  
		case "mx": 
		case "ar": 
		case "co": 
		case "cl": 
		case "ve": 
		case "pe": 
		case "pr": 
		case "ec": 
		case "ns": 
		case "bo": 
		case "uy": 
		case "sv": 
		case "py": 
		case "hn":
			s_account += ",hphqla,hphqla"+countryCode;	
			s_hp_region = "la";
			break;
		default:
	}
	return s_account
}


// Common metrics plugin function - do not remove
function s_hp_doMetricsPlugins() { 
} 

function s_hp_doPostMetaTagFunction() {
	if(window.s_prop7 && s_prop7.length>0) {
		s_account = s_hp_filterReportSuites(s_prop7);
	}
}

/*** DO NOT MODIFY THIS SECTION ***/
/* Under no circumstances should you modify this code */
//s_hp_includeJavaScriptFile("welcome.hp-ww.com","/cma/metrics/sc/s_code_remote.js");
s_hp_includeJavaScriptFile("welcome.hp-ww.com","/cma/metrics/sc/s_code_remote.js");

function s_hp_includeJavaScriptFile(hp_hostname,hp_path) {
	if(!(window.s_hp_optOut && window.s_hp_optOut == true)) {
		var hp_ssl=(window.location.protocol.toLowerCase().indexOf('https')!=-1)
		if(hp_hostname && hp_hostname.length>0) {
			if(hp_ssl == true && hp_hostname.toLowerCase().indexOf("welcome.") != -1) { hp_hostname = "secure.hp-ww.com"; }
			var fullURL = "http" + (hp_ssl?"s":"") + "://" + hp_hostname + hp_path
		}
		else
			var fullURL=hp_path;
		document.write("<sc" + "ript language=\"JavaScript\" src=\""+fullURL+"\"></sc" + "ript>");
	}
}
// END Clickstream:
