// 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=jeckle1,cpqcorp.net,dec.com,hpqcorp.net"
var s_dynamicAccountMatch=window.location.hostname

/* 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,hphqbcs,hphqtru64" 
}

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,rpm,gz,crypt,sh"
var s_linkInternalFilters="hp,compaq,cpqcorp,javascript:"
var s_linkLeaveQueryString=true
var s_linkTrackVars="None"
var s_linkTrackEvents="None"

var s_pageName=""
var s_prop2 = ""
var s_prop7="w1"
var s_prop8="en-us"
var s_prop9="enterprise"
var s_prop18=""
// Common metrics plugin function - do not remove
function s_hp_doMetricsPlugins() { 

	/** If s_pageName is not defined inline with the webpage then below code will be executed 
	by default it will be "Alpha-document.title" **/
	if (!(window.s_pageName && s_pageName.length>0))
	{
		s_pageName="Alpha-" + document.title;
		s_prop18 = "ENT: Alpha"
		if (location.pathname.indexOf("/hps" ) != -1)         
		{ 
			s_pageName = "Alpha-APS-" + document.title; 
		}
		if (location.pathname.indexOf("/hps/ipf-enterprise") != -1)    
		{ 
			s_pageName = "Alpha-Itanium-" + document.title; 
		}
		if (location.hostname.indexOf("h30097")!=-1) {
			s_pageName="Tru64-" + document.title;
			s_prop18="ENT: Tru64 UNIX"
			if (location.pathname.indexOf('/docs' ) != -1 ) { 
				s_pageName = "Tru64-docs-" + document.title; 
				s_prop18 = "ENT: Tru64 documentation";
			}
		}
	}

	/* Below piece of code is take from the webpage in question - http://h18002.www1.hp.com/alphaserver/technology/index.html */
	if ( location.search.indexOf("?jumpid=") != -1)
    {
        s_prop2=location.search.substring((location.search.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));
		}
	}	
} // 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:
