// HP Common Metrics Architecture 20051223a
// 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=true;
var s_dynamicAccountList = "hphqwwtrash=portal.netrefresh.com,cpqcorp.net,portaloov.netrefresh.com,extweb.hp.com"
var s_dynamicAccountMatch=window.location.hostname + window.location.pathname

/* If no s_account is defined then the below reportsuite is taken as default */
if (!(window.s_account && s_account.length>0)){
	var s_account="HPHQGlobal,hphqWWesg" 
}

/* Specify the Report Suite ID(s) to track here */
if ( location.pathname.indexOf('/products1/evolution/' ) != -1 )
	s_account="hphqglobal,hphqWWesg,hphqbcs,hphqWWserversswhpc";
if ( location.pathname.indexOf('/products1/servers/' ) != -1 )
	s_account="hphqglobal,hphqWWesg,hphqbcs,hphqWWserversswhpc";
if ( location.pathname.indexOf('/products1/serverconnectivity/' ) != -1 )
	s_account="hphqglobal,hphqWWesg,hphqbcs,hphqWWserversswhpc";
if ( location.pathname.indexOf('/products1/unix/webservers/' ) != -1 )
	s_account="hphqglobal,hphqWWesg,hphqbcs,hphqWWserversswhpc";
if ( location.pathname.indexOf('/products1/rte/' ) != -1 )
	s_account="hphqglobal,hphqWWesg,hphqbcs,hphqWWserversswhpc";
if ( location.pathname.indexOf('/products1/solutioncenters/' ) != -1 )
{ s_account="hphqglobal,hphqWWesg,hphqWWserversswhpc"; }
if ( location.pathname.indexOf('/products1/24x7/' ) != -1 )
{ s_account="hphqglobal,hphqWWesg,hphqWWnonstop"; }

var s_disableLegacyVars=true
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,cgi,asx,tar"
var s_linkInternalFilters="hp,compaq,cpqcorp,javascript:"
var s_linkLeaveQueryString=true
var s_linkTrackVars="None"
var s_linkTrackEvents="None"

var s_prop2 = ""
var s_prop18 = ""
var s_pageName=document.title;
if (location.pathname.indexOf('/products1/rte/' ) != -1 ){
	s_pageName="RTE-" + document.title;
	s_prop18="ENT: RTE"
}

if ( location.pathname.indexOf('/products1/servers/' ) != -1 )    { s_prop18 = "ENT: HP-Servers"  }
if ( location.pathname.indexOf('/products1/servers/carrier_grade/' ) != -1 )    { s_prop18 = "ENT: Carrier-grade" }
if ( location.pathname.indexOf('/products1/serverconnectivity/' ) != -1 )    { s_prop18 = "ENT: Unixconn" }
if ( location.pathname.indexOf('/products1/unix/webservers/' ) != -1 )    { s_prop18 = "ENT: WebServers" }
if ( location.pathname.indexOf('/products1/solutioncenters/' ) != -1 ) { s_prop18 = "ENT: HP Solution Centers" }
if ( location.pathname.indexOf('/techservers/' ) != -1 )    { s_prop18 = "ENT: HPC" }
if ( location.pathname.indexOf('/products1/evolution/' ) != -1 )    { s_prop18 = "ENT: evolution" }

if ( location.search.toUpperCase().indexOf('?JUMPID=' ) != -1 ) {
	s_prop2=location.search.toUpperCase().substring((location.search.toUpperCase().indexOf('?JUMPID=' )+8),(location.search.length));
}
else
{ 
	if (location.search.toUpperCase().indexOf('?' ) != -1 )        {
		s_prop2=location.search.toUpperCase().substring((location.search.toUpperCase().indexOf('?' )+1),(location.search.length));
	}
}

var s_prop3=""
var s_prop4=""
	if ( location.pathname.indexOf('/products1/evolution/9000' ) != -1 )         { s_prop4 = "evolution-9000"; }
	if ( location.pathname.indexOf('/products1/evolution/9000/alpha_retaintrust' ) != -1 )    { s_prop4 = "evolution-Alpha RetainTrust"; }
	if ( location.pathname.indexOf('/products1/evolution/9000/e3000' ) != -1 )    { s_prop4 = "evolution-e3000"; }
	if ( location.pathname.indexOf('/products1/evolution/9000/customertimes' ) != -1 )    { s_prop4 = "evolution-CT newsletter"; }
	if ( location.pathname.indexOf('/products1/evolution/9000/nonstop' ) != -1 )    { s_prop4 = "evolution-NonStop"; }

var s_prop7="w1"
var s_prop8="en-us"
var s_prop9="enterprise"

// Common metrics plugin function - do not remove
function s_hp_doMetricsPlugins() { 
if ( location.pathname.indexOf('/products1/servers/' ) != -1 )    { s_pageName = "HP-Servers-" + document.title; }
if ( location.pathname.indexOf('/products1/servers/carrier_grade/' ) != -1 )    { s_pageName = "Carrier Grade-" + document.title; }
if ( location.pathname.indexOf('/products1/serverconnectivity/' ) != -1 )    { s_pageName = "Unixconn-" + document.title; }
if ( location.pathname.indexOf('/products1/unix/webservers/' ) != -1 )    { s_pageName = "WebServers-" + document.title; }
if ( location.pathname.indexOf('/products1/solutioncenters/' ) != -1 ) { s_pageName = "HP Solution Centers-" + document.title; }
if ( location.pathname.indexOf('/techservers/' ) != -1 )    { s_pageName = "HPC-" + document.title; }
if ( location.pathname.indexOf('/products1/evolution/' ) != -1 )    { s_pageName = "evolution-" + document.title; }
	if ( location.pathname.indexOf('/products1/evolution/9000' ) != -1 )         { s_pageName="evolution-9000-" + document.title;}
	if ( location.pathname.indexOf('/products1/evolution/alpha_retaintrust' ) != -1 )    { s_pageName="evolution-ART-" + document.title;}
	if ( location.pathname.indexOf('/products1/evolution/alpha_retaintrust/openvms' ) != -1 )    { s_pageName="evolution-OVMS-" + document.title;}
	if ( location.pathname.indexOf('/products1/evolution/e3000' ) != -1 )    { s_pageName="evolution-e3000-" + document.title;}
	if ( location.pathname.indexOf('/products1/evolution/customertimes' ) != -1 )    { s_pageName="evolution-CT-" + document.title;}
	if ( location.pathname.indexOf('/products1/evolution/nonstop' ) != -1 )    { s_pageName="evolution-NonStop-" + document.title;}	
} // end function ()

/*** 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:
