/* Link Tracking Config */
s_time.trackDownloadLinks=true
s_time.trackExternalLinks=true
s_time.trackInlineStats=true
s_time.linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,wmv,doc,pdf,xls"
s_time.linkInternalFilters="javascript:,ew.com,cp.timeinc.net"
s_time.linkTrackVars="None"
s_time.linkTrackEvents="None"
s_time.events="event1,event32"

function omnitureHookFunction() {
	if (typeof(s_time.pageName) == "string") s_time.eVar23 = s_time.pageName;
	if (typeof(s_time.prop16) == "string") s_time.eVar24 = s_time.prop16;
}
/* Plugin Config */
s_time.usePlugins=true
function s_time_doPlugins(s_time) {
/* Add calls to plugins here */
s_time.campaign=s_time.getQueryParam('cid,xid');
s_time.eVar1    = s_time.getQueryParam('iid');
s_time.eVar2    = s_time.getQueryParam('pkw');
s_time.eVar32=s_time.getVisitNumCustom('d'); // daily visits
s_time.eVar33=s_time.getVisitNumCustom('w'); // weekly visit
s_time.eVar34=s_time.getVisitNumCustom('m'); // monthly visits 
}
s_time.doPlugins=s_time_doPlugins
/*--------------------------01/14/2009 visit tracking------------------------------*/
s_time.dimo=new Function ("m","y", "var d=new Date(y,m+1,0); return d.getDate();");
s_time.endof=new Function ("x", "var t = new Date(); t.setHours(0); t.setMinutes(0);"
	+"t.setSeconds(0); if(x=='m') d=s_time.dimo(t.getMonth(),t.getFullYear()) - t.getDate() + 1;"
	+"else if(x=='w') d=7-t.getDay(); else d=1; t.setDate(t.getDate()+d); return t;");
s_time.getVisitNumCustom=new Function("tp", ""
+"var s=this,e=new Date(),cval,cvisit,ct=e.getTime(),c='s_vnum_'+tp,c2='sinvisit_'+tp,eo=s_time.endof(tp),"
+"y=eo.getTime();e.setTime(y);cval=s_time.c_r(c);if(cval){var i=cval.indexOf('&vn='),str=cval.substring(i+4,cval.length),k;}"
+"cvisit=s_time.c_r(c2);if(cvisit){if(str){e.setTime(ct+30*60*1000);s_time.c_w(c2,'true',e);return str;}"
+"else return 'unknown visit number';}"
+"else{if(str){str++;k=cval.substring(0,i);e.setTime(k);s_time.c_w(c,k+'&vn='+str,e);e.setTime(ct+30*60*1000);s_time.c_w(c2,'true',e);return str;}"
+"else{s_time.c_w(c,y+'&vn=1',e);e.setTime(ct+30*60*1000);s_time.c_w(c2,'true',e);return 1;}}"
);
/*----------------------------LTV  Block - do not modify----------------------------*/
/* MB - 09/06/07 - Updated to expire session cookie after 30 mins.                  */
/* Added to EW on 10/05/07                                                          */
var ltv_time  = new Date();
var ltv_mon   =['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];
var currentDate = (ltv_mon[ltv_time.getMonth()] + ltv_time.getFullYear());
String(currentDate);var cpval1 = s_time.getQueryParam('pkw');
//var isCamp;if(cpval1){isCamp=currentDate+':'+'LTV:'+cpval1};
var isCamp;if(cpval1){isCamp='LTV:'+cpval1};
var isFtcv  = s_time.c_r('s_ftcv');var isVisit = s_time.c_r('s_current');
ct=ltv_time.getTime();ltv_time.setTime(ct+180*24*60*60*1000) // 180 days expire;
var ccxp=new Date();var cct=ccxp.getTime();ccxp.setTime(cct+30*60*1000); // t + 30 minutes
if((isCamp) && (!isFtcv)){s_time.c_w('s_ftcv',isCamp,ltv_time);
s_time.c_w('s_current',isCamp,ccxp);s_time.events=s_time.apl(s_time.events,'event4',',','1');
s_time.eVar4=isCamp};if(isVisit){s_time.c_w('s_current','cpvisitor',ccxp)};
if((isFtcv) && (!isVisit)){s_time.events=s_time.apl(s_time.events,'event5',',','1')}
/*-----------------------------------End LTV Block----------------------------------*/	
