fanatics_s_code

Bloglog

fanatics_s_code

/* SiteCatalyst code version: H.26.1
Copyright 1996-2013 Plainware, All Rights Reserved
More info available at http://www.omniture.com
Last Edited 07/25/2013 michaeldevonjones@gmail.com */

// fanatics_s_account should be set prior to calling this s_code file.
// ‘s’ replaced with ‘fanatics_s_code’ on 3/8/2013 – RMC
// ‘fanatics_s_code’ replaced with ‘$s’ on 7/25/2013 – MA

var $s=s_gi(fanatics_s_account);
/************************** CONFIG SECTION **************************/
/* You may add or alter any code config here. /
/
Conversion Config /
$s.currencyCode = “USD”
/
Link Tracking Config */
$s.trackDownloadLinks = true
$s.trackExternalLinks = true
$s.trackInlineStats = true
$s.linkDownloadFileTypes = “exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx”
$s.linkInternalFilters = “javascript:,.fanatics.com,.footballfanatics.com,localhost,127.0.0.1,www.paypal.com”;
$s.linkLeaveQueryString = false
$s.linkTrackVars = “None”
$s.linkTrackEvents = “None”

/* WARNING: Changing any of the below variables will cause drastic
changes to how your visitor data is collected. Changes should only be
made when instructed to do so by your account manager.*/
$s.visitorNamespace = “fanatics”
$s.trackingServer = “fanatics.112.2o7.net”
$s.dc = “112”;

// Setup User Agent and Hostname
$s.eVar52 = $s.prop52 = navigator.userAgent;
$s.eVar54 = $s.prop54 = document.location.hostname
// The referrer of the tracking call is the current page URL.
$s.prop50 = $s.eVar50 = “D=Referer”; // “Referer” with one r is the correct spelling of this header.
// The “r” parameter in the tracking call is the referring URL.
$s.prop51 = $s.eVar51 = “D=r”;

//Setup Clickmap
function s_getObjectID(o) {
var ID = o.href;
return ID;
}
$s.getObjectID = s_getObjectID;

/* Configure Channel Manager */
$s._channelParameter = “Paid Search|pcrid”;
$s._channelPattern=”email|EML”;

/* Plugin Config */
$s.usePlugins = true
function s_doPlugins(fanatics_s_code) {

// Page view call actions
if (!$s.linkType){
// Add event30 (custom page view event) to s.events for all page view calls
$s.events = $s.apl($s.events, ‘event30’, ‘,’, 2);
}

//set current domain in linkInternalFilters
$s.getLinkInternalDomain();

// Put pageName in prop22 & eVar43 for correlation to other variables, especially in link tracking calls, which do not record pageName
if (!!$s.pageName)
$s.prop22 = $s.eVar43 = $s.pageName;

// Add calls to plugins here
// Copy search term and set aggregate search event
if ($s.prop4) {
$s.eVar1 = $s.prop4;
$s.events = $s.apl($s.events, ‘event1’, ‘,’, 2);
}

// Copy search type prop into eVar
if ($s.prop7) {
$s.eVar2 = $s.prop7;
}

// automate event27 (more than 3000 search results)
if ($s.prop5 && parseInt($s.prop5) > 3000)
$s.events = $s.apl($s.events, “event27”, “,”, 2);

// Do not refire search events if the same search term passed in twice in a row
var t_search = $s.getValOnce($s.eVar1, ‘s_stv’, 0);
if (t_search == ”) {
var a = $s.split($s.events, ‘,’);
var e = ”;
for (var i = 0; i < a.length; i++) {
if (a[i] == ‘event1’ || a[i] == ‘event2’ || a[i] == ‘event3’ || a[i] == ‘event4’)
continue;
else
e += a[i] ? a[i] + ‘,’ : a[i];
}
$s.events = e.substring(0, e.length – 1);
}
//Get Page Prior to Search
var s_prevPage = $s.getPreviousValue($s.pageName, ‘s_prevPage’, 0);
if ($s.prop4 && s_prevPage) {
$s.prop8 = s_prevPage;
}
else if ($s.prop4) {
$s.prop8 = “non-internal referrer to search results”;
}
//Get PageType Prior to Search
var s_prevPageType = $s.getPreviousValue($s.prop3, ‘s_prevProp3’, 0);
if ($s.prop4 && s_prevPageType) {
$s.prop10 = s_prevPageType;
}
else if ($s.prop4) {
$s.prop10 = “non-internal referrer to search results”;
}

// Automate Custom ProdView Event
if ($s.events && $s.events.indexOf(‘prodView’) > -1)
$s.events = $s.apl($s.events, ‘event5’, ‘,’, 2);

// Automate Finding Method eVar
var internalFlag = false;
if (document.referrer) {
var filters = $s.split($s.linkInternalFilters, ‘,’);
var docRef = $s.split(document.referrer, ‘/’);
docRef = docRef[2];
for (var f in filters) {
if (docRef.indexOf(filters[f]) > -1)
internalFlag = true;
}
}

// create productmerch product for merchandising eVar binding
if ($s.eVar6 && (!$s.products || ($s.products && $s.products.indexOf(‘;productmerch’) > -1) || $s.newProduct == ‘true’))
{
if (!$s.c_r(‘productnum’))
$s.productNum = 1;
else
$s.productNum = parseInt($s.c_r(‘productnum’)) + 1;
$s.products = ‘;productmerch’ + $s.productNum; //record an instance with orig allocation – must bind to brand new product every time
var e = new Date();
e.setTime(e.getTime() + (30 * 86400000));
$s.c_w(‘productnum’, $s.productNum, e);
if ($s.linkTrackVars == “None” || $s.linkTrackVars == ”)
$s.linkTrackVars = ‘events,products’;
else
$s.linkTrackVars = $s.apl($s.linkTrackVars, ‘events,products’, ‘,’, 2);
if ($s.linkTrackEvents == “None” || $s.linkTrackEvents == ”){
$s.linkTrackEvents = $s.events = ‘event15’;
} else {
$s.linkTrackEvents = $s.apl($s.linkTrackEvents, ‘event15’, ‘,’, 2);
$s.events = $s.apl($s.events, ‘event15’, ‘,’, 2);
}
}
if($s.products)
{
$s.events = $s.apl($s.events, ‘event15’, ‘,’, 2);
}

if ($s.c_r(‘productnum’) && $s.events.indexOf(‘purchase’) > -1)
$s.c_w(‘productnum’, ‘0’, 0);

// Automate OrderID eVar
if ($s.purchaseID)
$s.eVar21 = $s.purchaseID;

// Set Internal Campaign
if (!$s.eVar5) {
$s.eVar5 = $s.getQueryParam(‘ab’);
$s.eVar5 = $s.getValOnce($s.eVar5, ‘s_ev5’, 0);
}

// Set Campaign Variables
//TODO: Delete and write from scratch per Justice. Compare to Marketing Channels in SC Admin. Kevin Winstead at Fanatics is providing his MC logic to Justice week of 7/22.
var s_Url = window.location.href;
var s_Cpgn = parseSource(s_Url);
$s.channelManager(‘pcrid’, ‘:’, ‘c_m’, ‘0’, ‘cm_dl’, ‘1’);
if ($s._channel) {
// Correct channels based on /source/ parameter, which is in s_Cpgn
if ($s._channel == “Natural Search” && !!s_Cpgn){
$s._channel = “Paid Search”;
}
// Set Campaign Channel eVar3
if ($s._channel == “Paid Search”) {
$s.eVar3 = “ppc”;
$s.eVar6 = “Paid Search”;
}
if ($s._channel == “Natural Search”) {
$s.eVar3 = “organic search”;
}
if ($s._channel == “Other Natural Referrers”) {
$s.eVar3 = “referral”;
}
if ($s._channel == “Typed/Bookmarked”) {
$s.eVar3 = “direct”;
}
}
// Set campaign variables that won’t trigger CM
if (s_Cpgn.indexOf(’eml’) > -1) {
$s.eVar3 = “email”;
}
if (s_Cpgn.indexOf(‘callcenter’) > -1) {
$s.eVar3 = “call center”;
}

// Set s.campaign to

// Campaign Stacking
if ($s.eVar3) $s.eVar4 = $s.crossVisitParticipation($s.eVar3, ‘s_cvpcpgn’, ‘1’, ‘5’, ‘>’, ‘purchase’, 30);

//Product Finding Method Automation
if ($s.eVar6) {
//keep pre-set value
}
else if ($s.eVar3==”organic search”) {
$s.eVar6 = ‘organic search’;
}
else if ($s.campaign) {
$s.eVar6 = ‘external campaign’;
}
else if (document.referrer && !internalFlag) {
$s.eVar6 = ‘referral’;
}
else if ($s.eVar1 && $s.eVar1 != ‘non-search’) {
$s.eVar6 = ‘internal search results’;
}
else if ($s.eVar5 && $s.eVar5 != ‘non-internal campaign’) {
$s.eVar6 = ‘internal campaign’;
}
else if ($s.eVar7 && $s.eVar7 != ‘non-browse’) {
$s.eVar6 = ‘browse’;
}
else if ($s.events.indexOf(‘purchase’) > -1) {
$s.eVar6 = ‘unknown at time of purchase’;
}

//Setup Clickmap Object IDs
$s.setupDynamicObjectIDs();

// Set Partner ID Variables
if (typeof sc_PSID != ‘undefined’ && sc_PSID != ”)
$s.eVar16 = $s.prop11 = sc_PSID;
else
$s.eVar16 = $s.prop11 = window.location.hostname;

// Set Cart Created Date
if (!!$s.events && $s.events.indexOf(“scOpen”) > -1) {
var e = new Date();
$s.eVar47 = e.getMonth() + 1 + ‘/’ + e.getDate() + ‘/’ + e.getFullYear();
}

// Filter Category Stacking
if ($s.eVar23)
$s.eVar25 = $s.prop17 = $s.crossVisitParticipation($s.eVar23, ‘s_cvpva’, ‘1’, ‘5’, ‘>’, ‘purchase’, 1);
// Filter Selection Stacking
if ($s.eVar24)
$s.eVar26 = $s.prop18 = $s.crossVisitParticipation($s.eVar24, ‘s_cvpvb’, ‘1’, ‘5’, ‘>’, ‘purchase’, 1);

//Lowercase all variables
$s.manageVars(‘lowercaseVars’);
}
$s.doPlugins = s_doPlugins

/******************** CONVENIENCE FUNCTIONS *************************/

function s_setError(errorList, thePageName) {
$s.linkTrackVars = ‘pageName,prop12,prop19,prop22,prop50’;
$s.pageName = thePageName;
$s.prop12 = $s.prop19 = errorList;
$s.tl(true, ‘o’, ‘Track Error’);
}

function s_findMethod(findMethod) {
$s.linkTrackVars = ‘eVar6’;
$s.eVar6 = findMethod;
$s.tl(true, ‘o’, ‘Finding Method’);
}

function s_beginCheckout(products) {
//s_beginCheckout(‘;SKU1,;SKU2,;SKU3’)
$s.linkTrackVars = ‘eVar28,prop9,events,products’;
$s.linkTrackEvents = $s.events = ‘scCheckout’;
$s.eVar28 = ‘Checkout’;
$s.prop9 = ‘Checkout’;
$s.products = products;
$s.tl(true, ‘o’, ‘Checkout’);
}

function linkInteraction(elem,linkName) {
$s.linkTrackVars = ‘eVar28,prop9,eVar43’;
$s.eVar28 = linkName;
$s.prop9 = linkName;
if ($s.pageName) {
$s.eVar43 = $s.pageName;
}
$s.tl(elem, ‘o’, linkName, null, navigate);
return false;
}

/* Used to parse campaign code from URL */
function parseSource(pUrl) {
if (pUrl.indexOf(“/source”) > -1) {
var iEnd = pUrl.lastIndexOf(“/”) + 1;
pUrl = pUrl.substr(iEnd, pUrl.indexOf(“?”) > -1 ? pUrl.indexOf(“?”) – iEnd : pUrl.length – iEnd);
}
else pUrl = “n/a”;
return pUrl.toLowerCase();
}

/* Function to track Email sign-ups*/
function s_emailSignup(s_step, s_teams) {
if (s_step == “1”) {
$s.pageName = “email signup:choose teams”;
$s.eVar43 = “email signup:choose teams”;
$s.channel = “email signup”;
$s.prop3 = “pages”;
$s.events = “event30,event32”;
$s.t();
}
if (s_step == “2”) {
$s.pageName = “email signup:confirmation”;
$s.eVar43 = “email signup:confirmation”;
$s.channel = “email signup”;
$s.prop3 = “pages”;
$s.list1 = s_teams;
$s.events = “event30,event16”;
$s.t();
}
}

/* Function to track PageViews from Tabs/AJAX */
function s_PageView(s_Page, s_PageType) {
$s.clearVars();
$s.pageName = s_Page.toLowerCase();
var pageArray = $s.split($s.pageName, ‘:’);
if (pageArray.length >= 1)
$s.channel = pageArray[0];
if (pageArray.length >= 2) {
$s.prop1 = pageArray[1];
}
if (pageArray.length >= 3) {
$s.prop2 = pageArray[2];
}
$s.prop3 = s_PageType;
$s.events = “event30″;
$s.t();
}

function s_imgInteraction(uniqueID, productID) {
//s_imgInteraction(‘12345abc’,’12345′) //uniqueID should be unique to each product and visit.
$s.linkTrackVars = ‘events,products’;
$s.linkTrackEvents = ‘event18’;
$s.events = ‘event18:’ + uniqueID;
if (productID)
$s.products = ‘;’ + productID;
$s.tl(true, ‘o’, ‘Product Image Interaction’);
}

function s_prodShare(shareType, productID) {
//s_prodShare(’email’,’12345′)
$s.linkTrackVars = ‘events,products,eVar30’;
$s.linkTrackEvents = ‘event29’;
$s.events = ‘event29’;
$s.eVar30 = shareType;
if (productID)
$s.products = ‘;’ + productID;
$s.tl(true, ‘o’, ‘Product Share: ‘ + shareType);
}

function s_moreInfo(productID) {
//s_moreInfo(‘12345’)
$s.linkTrackVars = ‘events,products’;
$s.linkTrackEvents = ‘event20’;
$s.events = ‘event20’;
if (productID)
$s.products = ‘;’ + productID;
$s.tl(true, ‘o’, ‘More Info Link Click’);
}

function s_needItFast(productID) {
//s_needItFast(‘12345’)
$s.linkTrackVars = ‘events,products’;
$s.linkTrackEvents = ‘event21’;
$s.events = ‘event21’;
if (productID)
$s.products = ‘;’ + productID;
$s.tl(true, ‘o’, ‘Need it Faster Link Click’);
}

function s_haveSuggestion(productID) {
//s_haveSuggestion(‘12345’)
$s.linkTrackVars = ‘events,products’;
$s.linkTrackEvents = ‘event22’;
$s.events = ‘event22’;
if (productID)
$s.products = ‘;’ + productID;
$s.tl(true, ‘o’, ‘Have a Suggestion Expansion Click’);
}

function s_suggestionSuccess(reason, productID) {
//s_suggestionSuccess(‘need info’,’12345′)
$s.linkTrackVars = ‘events,products,eVar39’;
$s.linkTrackEvents = ‘event17’;
$s.events = ‘event17’;
$s.eVar39 = reason;
if (productID)
$s.products = ‘;’ + productID;
$s.tl(true, ‘o’, ‘Successful Suggestion Submission’);
}

function s_updateItem(productID) {
//s_updateItem(‘12345’)
//s_updateItem(‘12345:23456:34567’)
$s.linkTrackVars = ‘events,products’;
$s.linkTrackEvents = ‘event24’;
$s.events = ‘event24’;
$s.products = ”;
if (productID) {
var prodArray = $s.split(productID, ‘:’)
for (var i = 0; i < prodArray.length; i++) {
if (i == 0)
$s.products = $s.products + ‘;’ + prodArray[i];
else
$s.products = $s.products + ‘,;’ + prodArray[i];
}
}
$s.tl(true, ‘o’, ‘Update Item click’);
}

function s_sizeChange(productID) {
//s_sizeChange(‘12345’)
//s_sizeChange(‘12345:23456:34567’)
$s.linkTrackVars = ‘events,products’;
$s.linkTrackEvents = ‘event31’;
$s.events = ‘event31’;
$s.products = ”;
if (productID) {
var prodArray = $s.split(productID, ‘:’)
for (var i = 0; i < prodArray.length; i++) {
if (i == 0)
$s.products = $s.products + ‘;’ + prodArray[i];
else
$s.products = $s.products + ‘,;’ + prodArray[i];
}
}
$s.tl(true, ‘o’, ‘Size Change Interaction’);
}

function selectProduct(s_productSlot) {
$s.linkTrackVars = ‘eVar42’;
$s.eVar42 = s_productSlot;
$s.tl(true, ‘o’, ‘product slot’);
}

/* Checkout */
function s_Checkout(s_products, s_linkName) {
$s.linkTrackVars = ‘products,eVar28,prop9,events’;
$s.linkTrackEvents = ‘scCheckout’;
$s.eVar28 = s_linkName;
$s.prop9 = s_linkName;
$s.events = ‘scCheckout’;
$s.products = ”;
var prodArray = $s.split(s_products, ‘:’);
for (var i = 0; i < prodArray.length; i++) {
if (i == 0)
$s.products = $s.products + ‘;’ + prodArray[i];
else
$s.products = $s.products + ‘,;’ + prodArray[i];
}
$s.tl(this, ‘o’, ‘checkout’);
}

/************************** PLUGINS SECTION *************************/
/* You may insert any plugins you wish to use here. */

/*
* Function: getLinkInternalDomain – parse the URL and return the domain for linkInternalFilter string
/
$s.getLinkInternalDomain=new Function(“”,””
+”var urlString=document.location.href;var urlPattern=new RegExp(‘(ht”
+”tp|https)://(.
?)/.*$’);var parsedUrl=urlString.match(urlPattern);v”
+”ar domain=parsedUrl[2];var parts=domain.split(‘.’);if(parts.length>”
+”2){parts.shift();domain=parts.join(‘.’);}else {domain=domain;}$s.lin”
+”kInternalFilters=$s.linkInternalFilters+’,’+domain;”);

/*
* Utility manageVars v1.4 – clear variable values (requires split 1.5)
*/
$s.manageVars = new Function(“c”, “l”, “f”, “”
+ “var s=this,vl,la,vla;l=l?l:”;f=f?f:1 ;if(!s[c])return false;vl=’pa”
+ “geName,purchaseID,channel,server,pageType,campaign,state,zip,events”
+ “,products,transactionID’;for(var n=1;n<76;n++){vl+=’,prop’+n+’,eVar”
+ “‘+n+’,hier’+n;}if(l&&(f==1||f==2)){if(f==1){vl=l;}if(f==2){la=s.spl”
+ “it(l,’,’);vla=s.split(vl,’,’);vl=”;for(x in la){for(y in vla){if(l”
+ “a[x]==vla[y]){vla[y]=”;}}}for(y in vla){vl+=vla[y]?’,’+vla[y]:”;}”
+ “}s.pt(vl,’,’,c,0);return true;}else if(l==”&&f==1){s.pt(vl,’,’,c,0″
+ “);return true;}else{return false;}”);
$s.clearVars = new Function(“t”, “var s=this;s[t]=”;”);
$s.lowercaseVars = new Function(“t”, “”
+ “var s=this;if(s[t]&&t!=’events’){s[t]=s[t].toString();if(s[t].index”
+ “Of(‘D=’)!=0){s[t]=s[t].toLowerCase();}}”);

/*
* Plugin: getQueryParam 2.4
*/
$s.getQueryParam = new Function(“p”, “d”, “u”, “h”, “”
+ “var s=this,v=”,i,j,t;d=d?d:”;u=u?u:(s.pageURL?s.pageURL:s.wd.loca”
+ “tion);if(u==’f’)u=s.gtfs().location;while(p){i=p.indexOf(‘,’);i=i<0”
+ “?p.length:i;t=s.p_gpv(p.substring(0,i),u+”,h);if(t){t=t.indexOf(‘#”
+ “‘)>-1?t.substring(0,t.indexOf(‘#’)):t;}if(t)v+=v?d+t:t;p=p.substrin”
+ “g(i==p.length?i:i+1)}return v”);
$s.p_gpv = new Function(“k”, “u”, “h”, “”
+ “var s=this,v=”,q;j=h==1?’#’:’?’;i=u.indexOf(j);if(k&&i>-1){q=u.sub”
+ “string(i+1);v=s.pt(q,’&’,’p_gvf’,k)}return v”);
$s.p_gvf = new Function(“t”, “k”, “”
+ “if(t){var s=this,i=t.indexOf(‘=’),p=i<0?t:t.substring(0,i),v=i<0?’T”
+ “rue’:t.substring(i+1);if(p.toLowerCase()==k.toLowerCase())return s.”
+ “epa(v)}return””);

/*
* Plugin: getValOnce v1.1
/
$s.getValOnce = new Function(“v”, “c”, “e”, “t”, “”
+ “var s=this,a=new Date,v=v?v:”,c=c?c:’s_gvo’,e=e?e:0,i=t==’m’?6000″
+ “0:86400000;k=s.c_r(c);if(v){a.setTime(a.getTime()+e
i);s.c_w(c,v,e”
+ “==0?0:a);}return v==k?”:v”);

/*
* Utility Function: split v1.5 – split a string (JS 1.0 compatible)
*/
$s.split = new Function(“l”, “d”, “”
+ “var i,x=0,a=new Array;while(l){i=l.indexOf(d);i=i>-1?i:l.length;a[x”
+ “++]=l.substring(0,i);l=l.substring(i+d.length);}return a”);

/*
* Plugin Utility: apl v1.1
*/
$s.apl = new Function(“l”, “v”, “d”, “u”, “”
+ “var s=this,m=0;if(!l)l=”;if(u){var i,n,a=s.split(l,d);for(i=0;i

/*
* Function – write combined cookies v 0.36
*/

if (!$s.__ccucw) {
$s.c_wr = $s.c_w;
$s.__ccucw = true;
function c_w(k, v, e) {
var s = this, d = new Date, ht = 0, pn = ‘s_pers’, sn = ‘s_sess’, pc = 0, sc = 0, pv, sv, c, i, t;
d.setTime(d.getTime() – 60000); if (s.c_rr(k)) s.c_wr(k, ”, d); k = s.ape(k);
pv = s.c_rr(pn); i = pv.indexOf(‘ ‘ + k + ‘=’); if (i > -1)
{ pv = pv.substring(0, i) + pv.substring(pv.indexOf(‘;’, i) + 1); pc = 1; } sv = s.c_rr(sn);
i = sv.indexOf(‘ ‘ + k + ‘=’); if (i > -1) {
sv = sv.substring(0, i) + sv.substring(sv.indexOf(‘;’, i) + 1);
sc = 1;
} d = new Date; if (e) {
if (e.getTime() > d.getTime()) {
pv += ‘ ‘ + k + ‘=’ + s.ape(v) + ‘|’ + e.getTime() + ‘;’;
pc = 1;
}
} else { sv += ‘ ‘ + k + ‘=’ + s.ape(v) + ‘;’; sc = 1; } sv = sv.replace(/%00/g, ”);
pv = pv.replace(/%00/g, ”); if (sc) s.c_wr(sn, sv, 0); if (pc) {
t = pv; while (t && t.indexOf(‘;’) != -1) {
var t1 = parseInt(t.substring(t.indexOf(‘|’) + 1, t.indexOf(‘;’)));
t = t.substring(t.indexOf(‘;’) + 1); ht = ht < t1 ? t1 : ht;
} d.setTime(ht); s.c_wr(pn, pv, d);
}
return v == s.c_r(s.epa(k));
}
$s.c_w = c_w;
}

/*
* DynamicObjectIDs v1.5: Setup Dynamic Object IDs based on URL
*/
$s.setupDynamicObjectIDs = new Function(“”
+ “var s=this;if(!s.doi){s.doi=1;if(s.apv>3&&(!s.isie||!s.ismac||s.apv”
+ “>=5)){if(s.wd.attachEvent)s.wd.attachEvent(‘onload’,s.setOIDs);else”
+ ” if(s.wd.addEventListener)s.wd.addEventListener(‘load’,s.setOIDs,fa”
+ “lse);else{s.doiol=s.wd.onload;s.wd.onload=s.setOIDs}}s.wd.s_semapho”
+ “re=1}”);
$s.setOIDs = new Function(“e”, “”
+ “var s=s_c_il[” + $s._in + “],b=s.eh(s.wd,’onload’),o=’onclick’,x,l,u,c,i”
+ “,a=new Array;if(s.doiol){if(b)s[b]=s.wd[b];s.doiol(e)}if(s.d.links)”
+ “{for(i=0;i=0||c.indexOf(‘.tl(‘)>=0||c.indexOf(‘s_gs(‘)>=0″
+ “)x=’var x=\”.tl(\”;’;x+=’s_objectID=\”‘+u+’_’+a[u]+’\”;return this.”
+ “s_oc?this.s_oc(e):true’;if(s.isns&&s.apv>=5)l.setAttribute(o,x);l[o”
+ “]=new Function(‘e’,x)}}}s.wd.s_semaphore=0;return true”);

/*
* Plugin Utility: Replace v1.0
*/
$s.repl = new Function(“x”, “o”, “n”, “”
+ “var i=x.indexOf(o),l=n.length;while(x&&i>=0){x=x.substring(0,i)+n+x.”
+ “substring(i+o.length);i=x.indexOf(o,i+l)}return x”);

/*
* Plugin: getNewRepeat 1.2 – Returns whether user is new or repeat
/
$s.getNewRepeat = new Function(“d”, “cn”, “”
+ “var s=this,e=new Date(),cval,sval,ct=e.getTime();d=d?d:30;cn=cn?cn:”
+ “‘s_nr’;e.setTime(ct+d
2460601000);cval=s.c_r(cn);if(cval.length=”
+ “=0){s.c_w(cn,ct+’-New’,e);return’New’;}sval=s.split(cval,’-‘);if(ct”
+ “-sval[0]<30
60*1000&&sval[1]==’New’){s.c_w(cn,ct+’-New’,e);return’N”
+ “ew’;}else{s.c_w(cn,ct+’-Repeat’,e);return’Repeat’;}”);

/*
* Plugin: getPreviousValue_v1.0 – return previous value of designated
* variable (requires split utility)
*/
$s.getPreviousValue = new Function(“v”, “c”, “el”, “”
+ “var s=this,t=new Date,i,j,r=”;t.setTime(t.getTime()+1800000);if(el”
+ “){if(s.events){i=s.split(el,’,’);j=s.split(s.events,’,’);for(x in i”
+ “){for(y in j){if(i[x]==j[y]){if(s.c_r(c)) r=s.c_r(c);v?s.c_w(c,v,t)”
+ “:s.c_w(c,’no value’,t);return r}}}}}else{if(s.c_r(c)) r=s.c_r(c);v?”
+ “s.c_w(c,v,t):s.c_w(c,’no value’,t);return r}”);

/*
* Plugin Utility – first only
*/
$s.p_fo = new Function(“n”, “”
+ “var s=this;if(!s.__fo){s.__fo=new Object;}if(!s.__fo[n]){s.__fo[n]=”
+ “new Object;return 1;}else {return 0;}”);

/*
* Plugin: getTimeParting 2.1
*/
$s.getTimeParting = new Function(“t”, “z”, “y”, “l”, “j”, “”
+ “var s=this,d,A,U,X,Z,W,B,C,D,Y;d=new Date();A=d.getFullYear();Y=U=S”
+ “tring(A);if(s.dstStart&&s.dstEnd){B=s.dstStart;C=s.dstEnd}else{;U=U”
+ “.substring(2,4);X=’090801|101407|111306|121104|131003|140902|150801”
+ “|161306|171205|181104|191003′;X=s.split(X,’|’);for(W=0;W<=10;W++){Z”
+ “=X[W].substring(0,2);if(U==Z){B=X[W].substring(2,4);C=X[W].substrin”
+ “g(4,6)}}if(!B||!C){B=’08’;C=’01’}B=’03/’+B+’/’+A;C=’11/’+C+’/’+A;}D”
+ “=new Date(‘1/1/2000′);if(D.getDay()!=6||D.getMonth()!=0){return’Dat”
+ “a Not Available’}else{z=z?z:’0′;z=parseFloat(z);B=new Date(B);C=new”
+ ” Date(C);W=new Date();if(W>B&&W

/*
* channelManager v2.7 – Tracking External Traffic
*/
$s.channelManager = new Function(“a”, “b”, “c”, “d”, “e”, “f”, “”
+ “var s=this,g=new Date,h=0,i,j,k,l,m,n,o,p,q,r,t,u,v,w,x,y,z,A,B,C,D”
+ “,E,F,G,H,I,J,K,L,M,N,O,P,Q,R;g.setTime(g.getTime()+1800000);if(e){h”
+ “=1;if(s.c_r(e))h=0;if(!s.c_w(e,1,g))s.c_w(e,1,0);if(!s.c_r(e))h=0;}”
+ “i=s.referrer?s.referrer:document.referrer;i=i.toLowerCase();if(!i)j”
+ “=1;else {k=i.indexOf(‘?’)>-1?i.indexOf(‘?’):i.length;l=i.substring(”
+ “0,k);m=s.split(i,’/’);n=m[2].toLowerCase();o=s.linkInternalFilters.”
+ “toLowerCase();o=s.split(o,’,’);for(p=0;p

/*
* Plug-in: crossVisitParticipation v1.7 – stacks values from
* specified variable in cookie and returns value
*/
$s.crossVisitParticipation = new Function(“v”, “cn”, “ex”, “ct”, “dl”, “ev”, “dv”, “”
+ “var s=this,ce;if(typeof(dv)===’undefined’)dv=0;if(s.events&&ev){var”
+ ” ay=s.split(ev,’,’);var ea=s.split(s.events,’,’);for(var u=0;u

/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code=”,s_objectID;function s_gi(un,pg,ss){var c=”s.version=’H.26.1′;s.an=s_an;s.logDebug=function(m){var s=this,tcf=new Function(‘var e;try{console.log(\”‘+s.rep(s.rep(s.rep(m,\”\\\”,\”\\”
+”\\\”),\”\n\”,\”\\n\”),\”\\”\”,\”\\\\”\”)+’\”);}catch(e){}’);tcf()};s.cls=function(x,c){var i,y=”;if(!c)c=this.an;for(i=0;i