// First party cookie implementation for use on a site not using a WebTrends Analytics JS Tag. // Apply this javascript to all page on the site (will work on just landing pages). // Change @@CUSTID@@ in the last line to reflect the correct account number. function DcsDynamicSearch(cid){ // private members var cname="WT_DSAI"; var wt=(typeof(WT)=="object")?WT:{}; // private methods function setAdInfo(){ var value=getQueryParam("cshift_ck"); if (value.length>0){ var cur=new Date(); var exp=new Date(cur.getTime()+315360000000); document.cookie=cname+"="+value+"; expires="+exp.toGMTString()+"; path=/"; } } function getQueryParam(key){ var qry=window.location.search.substring(1); if (qry.length>0){ var params=qry.split("&"); var count=params.length; for (var i=0;i0){ idx=0; if ((cmatchCount>1)&&(name==dcsInit.fpc)){ var dLatest=new Date(0); for (i=0;idLatest){ dLatest.setTime(dLst.getTime()); idx=i; } } } return unescape(cmatch[idx].substring(namelen+1)); } else{ return null; } } function dcsGetCrumb(cval,crumb){ var aCookie=cval.split(":"); for (var i=0;i