var thepathandpage=GetPageName(location.pathname);
var wa_pageName=thepathandpage;
var wa_geo="apac";
var wa_language="eng";
var wa_org1="apac";
var wa_org2=GetOrg2();
var wa_org3=GetOrg3();
var wa_org4=GetOrg4();
var wa_orgX=GetOrgX();
var wa_urlQueryString="";
var wa_reportSuites="intelcorpapaceng,intelcorpapac"
var wa_events="";
var wa_urlQueryString="";	
var wa_referrer="";
var wa_custom01="";
var wa_custom02="";
var wa_custom03="";
var wa_custom04="";
var wa_custom05="";
var wa_custom06="";
var wa_custom07="";
var wa_custom08="";
var wa_custom09="";
var wa_custom10="";
var wa_custom11="";
var wa_custom12="";
var wa_custom13="";
var wa_custom14="";
var wa_custom15="";
var wa_custom36="";
var wa_custom37="";
var wa_custom38="";
var wa_custom39="";
var wa_custom40="";
var wa_custom41="";
var wa_custom42="";
var wa_custom43="";
var wa_custom44="";
var wa_custom46="";
var wa_custom47="";
var wa_custom48="";
var wa_custom49="";
var wa_custom50="";	
var wa_eCustom21="";
var wa_eCustom22="";
var wa_eCustom23="";
var wa_eCustom24="";
var wa_eCustom25="";
var wa_eCustom26="";
var wa_eCustom27="";
var wa_eCustom28="";
var wa_eCustom29="";
var wa_eCustom30="";
var wa_eCustom31="";
var wa_eCustom32="";
var wa_eCustom33="";
var wa_eCustom34="";
var wa_eCustom35="";
var wa_eCustom36="";
var wa_eCustom37="";
var wa_eCustom38="";
var wa_eCustom39="";
var wa_eCustom40="";
var wa_eCustom41="";
var wa_eCustom42="";
var wa_eCustom43="";
var wa_eCustom44="";
var wa_eCustom45="";
var wa_eCustom46="";
var wa_eCustom47="";
var wa_eCustom48="";
var wa_eCustom49="";
var wa_eCustom50="";	

function GetOrg2(){

var pathObj0=(typeof pathObj.dir[0] == "undefined") ? "unassigned" : pathObj.dir[0].toLowerCase();

	//Check to see if p_org is being passed in. If it is, use it.
	if (typeof window.p_org2 != "undefined"){
		var p_org2=window.p_org2;
	}else{
		p_org2 = pathObj0;
	}
	p_org2 = wa_org1 + ": " + p_org2;
	
	return unescape(p_org2);
}

function GetOrg3(){

var pathObj1=(typeof pathObj.dir[1] == "undefined") ? "unassigned" : pathObj.dir[1].toLowerCase();

	//Check to see if p_org is being passed in. If it is, use it.
	if (typeof window.p_org3 != "undefined"){
		var p_org3=window.p_org3;
	}else{
		p_org3 = pathObj1;
	}
	p_org3 = wa_org2 + ": " + p_org3;
	return unescape(p_org3);
}
	
function GetOrg4(){

var pathObj2=(typeof pathObj.dir[2] == "undefined") ? "unassigned" : pathObj.dir[2].toLowerCase();

	//Check to see if p_org is being passed in. If it is, use it.
	if (typeof window.p_org4 != "undefined"){
		var p_org4=window.p_org4;
	}else{
		p_org4 = pathObj2;
	}
	p_org4 = wa_org3 + ": " + p_org4;
	return unescape(p_org4);
}

function GetOrgX(){
var pathObj3=(typeof pathObj.dir[3] == "undefined") ? "unassigned" : pathObj.dir[3].toLowerCase();

	//Check to see if p_org is being passed in. If it is, use it.
	if (typeof window.p_orgX != "undefined"){
		var p_orgX=window.p_orgX + "|" + thepathandpage;
	}else{
		p_orgX = "Unassigned" + "|" + thepathandpage;;	
	}
	p_orgX = wa_org4 + ": " + p_orgX;
	return unescape(p_orgX);
}	

function GetPageName(pagename){
	pagename = pagename.replace(/(\/)$/, "/index.htm");
	return unescape(pagename);
}
