// 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=moose.mro.cpqcorp.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,hphqopenvms" 
}

var s_trackDownloadLinks=true
var s_trackExternalLinks=true
var s_trackInlineStats=true
var s_down1="exe,zip,doc,pdf,a,alpha,alt,au,axpexe,bck,bck-dcx,bck-dcx-axpexe,bck-dcx_axpexe,exe,exe-dcx_axpexe,exe-dcx_vaxexe,wmv,mpg,pcsi$compressed_sfx_i64exe,sfx_i64exe,pcsi$compressed_sfx_axpexe";
var s_down2="i64_exe,exe_axp,exe_vax,nbm,odl,pcsi,pcsi-dcx-axpexe,pcsi-dcx_axpexe,pcsi-dcx_vaxexe,pcsi_exe,pcsi_sfx_i64exe,pcsi$compressed,pcsi_compressed,pcsi_sfxexe,bck-gz,sfx_axpexe,i64exe";
var s_down3="ppt,ps,ps-dcx_axpexe,sav,sav-dcx_axpexe,sav-dcx_vaxexe,sfx_axpexe,sfx_exe,sfx_vaxexe,txt,vaxexe,gzip,rm,ram,bak,com,jar,pcsi_sfx_axpexe,pcsi_axpexe,pcsi_i64exe,zipexe_alpha,zipexe_i64";
var s_down4="bck_sfx_axpexe,bck_sfx_i64exe";
var s_linkDownloadFileTypes=s_down1 +","+ s_down2 +","+ s_down3+","+ s_down4;
var s_linkLeaveQueryString=true
var s_linkInternalFilters="javascript:,hp,hewlettpackard,packard,compaq,cpq,officekorea,hewlett-packard";
if(!(window.s_linkTrackVars && window.s_linkTrackVars.length > 0))
	var s_linkTrackVars="None";
if(!(window.s_linkTrackEvents && window.s_linkTrackEvents.length > 0))
	var s_linkTrackEvents="None";


var s_prop18="ENT: OpenVMS";
if ( location.pathname.toUpperCase().indexOf('/DOC' ) != -1 ) { s_prop18 = "ENT: OpenVMSDoc"}
var s_prop3 = location.pathname.toUpperCase().substring(0,(location.pathname.lastIndexOf('/') + 1)) ;
var s_server= location.host;
var s_pageType="";
if(typeof errpage !== 'undefined')  
{
	s_pageType="errorPage";
	s_account="hphqopenvms";
	s_pageName = "";
}

var s_pageName=""
var s_prop2 = ""
var s_prop7="w1"
var s_prop8="en-us"
var s_prop9="enterprise"
// Common metrics plugin function - do not remove
function s_hp_doMetricsPlugins() { 

/* You may give each page an identifying user friendly name in place of urls. */
	var s_pagesys = "OpenVMS- ";
	if (location.pathname.toUpperCase().indexOf('/INDEX.HTML' ) != -1 ){
		s_pagestart=(location.href.substring(0,(location.href.toUpperCase().indexOf('INDEX.HTML'))))+(location.href.substring((location.href.toUpperCase().indexOf('INDEX.HTML')+10),location.href.length));
	}
	else {
		s_pagestart=location.href;
	}
	if ( location.search.toUpperCase().indexOf('?JUMPID=' ) != -1 ) {
		s_prop2=location.search.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));
		}
	}
	if ( location.pathname.toUpperCase().indexOf('/DOC' ) != -1 ) {  
		s_pagesys = "OpenVMSDoc- "
	        if ( location.pathname.toUpperCase().indexOf('/INDEX.HTML' ) != -1 ) 	{
			s_pagestart=(location.href.substring(0,(location.href.toUpperCase().indexOf('INDEX.HTML'))))+(location.href.substring((location.href.toUpperCase().indexOf('INDEX.HTML')+10),location.href.length));
		}
		else	{
			s_pagestart=location.href.toLowerCase();
		}
                s_pageName=s_pagesys+s_pagestart.toLowerCase();
		    if ( location.search.toUpperCase().indexOf('?JUMPID=' ) != -1 )  {
		        s_prop2=location.search.substring((location.search.toUpperCase().indexOf('?JUMPID=' )+8),(location.search.length)); }
	}

    if ( location.search.toUpperCase().indexOf('?' ) != -1 ) 	{
		s_pageName=s_pagesys+s_pagestart.substring(0,s_pagestart.toUpperCase().indexOf('?')).toLowerCase()
	}
	else	{
		s_pageName=s_pagesys+s_pagestart.toLowerCase();
	}
	if (location.pathname.indexOf('/products1/rtr/' ) != -1 ){
		s_pageName="RTR-" + document.title;
		s_prop18="ENT: RTR"
	}

} // 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:
