/* You may give each page an identifying name, server, and channel on
the next lines. */
searchStr = document.location.search.substring(1);
//searchArray = searchStr.split("&");

filePathTemp=document.location.href.substring(document.location.href.indexOf(document.domain)+document.domain.length).replace(/index.html/,"").replace(/([^?#]*)[\?|#]?.*/,"$1");
s.server=document.domain;
s.pageName=s.server + filePathTemp;
s.channel = ((hierArray = filePathTemp.substring(1).split('/'))[0] == 'majors' && hierArray[1].indexOf('.html') == -1) ? hierArray[1] : (hierArray[0].indexOf('.html') == -1) ? hierArray[0] : '';
s.pageType="";
s.prop1=""
s.prop2=""
s.prop3=""
s.prop4=""
s.prop5=""
s.prop6=""
s.prop7=""
s.prop8=""
s.prop9=""
s.prop10=""
s.prop11=""
s.prop12=""
s.prop13=""
s.prop14=""
s.prop15=""

//if (searchArray.length > 0) for (i in searchArray) { s['prop' + (parseInt(i,10) + 1)] = searchArray[i]; }

/* E-commerce Variables */
s.campaign=""
s.state=""
s.zip=""
s.events=""
s.products=""
s.purchaseID=""
s.eVar1=""
s.eVar2=""
s.eVar3=""
s.eVar4=""
s.eVar5=""
s.eVar6=""
s.eVar7=""
s.eVar8=""
/* Hierarchy Variables */
s.hier1=filePathTemp.substring(1,filePathTemp.lastIndexOf('/')).replace(/\//,' | ');
if (s.hier1 == " | ") s.hier1 = "";
/* Set campaignpage variable */
s.prop13=s.getQueryParam('cmpid');
s.prop13=s.prop13.split('#')[0];
s.prop13=(s.prop13!='')?s.prop13+' => '+s.pageName : '';
//s.prop13=s.getValOnce(s.prop13,'sprop13',(30/60/24)); enable to get only first click-through

wmojq.get("/global/scripts/omniture/s_unique.shtml", function(data){
  checkIP = data.replace(/\r\n<!--#endif -->/,'').replace(/\r\n/g,"").replace(/.*(\d{3}\.\d{3}\.\d{2}\.\d{3})$/m,'$1');
  if (checkIP != "") {
	  s.prop17=checkIP;
//	  console.log(checkIP);
  }
});

/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
//-->
