var gImages=new Array; var gIndex=0; var DCS=new Object(); var WT=new Object(); var DCSext=new Object(); function dcsGetCookie(name){ var pos=document.cookie.indexOf(name+"="); if (pos!=-1){ var start=pos+name.length+1; var end=document.cookie.indexOf(";",start); if (end==-1){ end=document.cookie.length; } return document.cookie.substring(start,end); } return null; } function dcsGetCrumb(name,crumb){ var aCookie=dcsGetCookie(name).split(":"); for (var i=0;i(dLast.getTime()+1800000))||(dCurrent.getTime()>(dSession.getTime()+28800000))){ dSession.setTime(dCurrent.getTime()); WT.vt_f_s=1; } if ((dCurrent.getDay()!=dLast.getDay())||(dCurrent.getMonth()!=dLast.getMonth())||(dCurrent.getYear()!=dLast.getYear())){ WT.vt_f_d=1; } } else{ var tmpcookie=cookie+"_TMP="; document.cookie=tmpcookie+"1"; if (document.cookie.indexOf(tmpcookie)!=-1){ document.cookie=tmpcookie+"; expires=Thu, 01-Jan-1970 00:00:01 GMT"; WT.co_f=""; for (var i=1;i<=32;i++){ WT.co_f+=Math.floor(Math.random()*16.0).toString(16); } WT.vt_f_s=1; WT.vt_f_d=1; WT.vt_f=1; } else{ WT.vt_f=2; return; } } WT.vt_sid=WT.co_f+"."+dSession.getTime(); document.cookie=cookie+"="+"id="+WT.co_f+":lv="+dCurrent.getTime()+":ss="+dSession.getTime()+"; expires="+dExpires.toGMTString()+"; path=/"; } // Add customizations here //evt_tag 1.5a.2 (offsite links, downloads, Flash) var gDomain="statse.webtrendslive.com"; var gDcsId="dcsc2bljz4h7cni5vx6s2ri1c_6s5b"; var dcsOffset=-5; //DCS.dcscfg=1; //************ Begin Event Extension Vars********************* var gTrkEvts = true; var gTrkOffsite = true; var gOnsiteDomains = "sherwin,s-w.com,sherman,superpaint,swpaint,decorating.com,CoverTheEarth,enamel.com,finish.com,painting.com,sw-marketingadvantage.com,thepaintguy.com,houseofanswers.com,propainter.com"; var gDownLoads = "xls,doc,pdf,txt,csv,zip"; if (gTrkEvts) { bindEvents(); } //************ End Event Extension Vars********************* function dcsVar(){ var dCurrent=new Date(); WT.tz=dCurrent.getTimezoneOffset()/60*-1; WT.bh=dCurrent.getHours(); WT.ul=navigator.appName=="Netscape"?navigator.language:navigator.userLanguage; if (typeof(screen)=="object"){ WT.cd=screen.colorDepth; WT.sr=screen.width+"x"+screen.height; } if (typeof(navigator.javaEnabled())=="boolean"){ WT.jo=navigator.javaEnabled()?"Yes":"No"; } if (document.title){ WT.ti=document.title; } WT.js="Yes"; if (typeof(gVersion)!="undefined"){ WT.jv=gVersion; } DCS.dcsdat=dCurrent.getTime(); //Hardcoding site domain DCS.dcssip="www.sherwin-williams.com"; DCSext.wt_domian=window.location.hostname; DCS.dcsuri=window.location.pathname; if (window.location.search){ DCS.dcsqry=window.location.search; } if ((window.document.referrer!="")&&(window.document.referrer!="-")){ if (!(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)<4)){ DCS.dcsref=window.document.referrer; } } //************ Begin Behavior Extension Vars******************* if(document.body&&document.body.addBehavior){ document.body.addBehavior("#default#clientCaps"); WT.ct=document.body.connectionType; } //************ End Behavior Extension Vars********************* // This script will test up to the following version. flash_versions = 8; // Initialize variables and arrays DCSext.flash_ins="y"; DCSext.flash_ver='0.0'; if (navigator.plugins && navigator.plugins.length) { // Dig through Netscape-compatible plug-ins first. for (x=0; x < navigator.plugins.length; x++) { if (navigator.plugins[x].name.indexOf('Shockwave Flash') != -1) { DCSext.flash_ver = navigator.plugins[x].description.split('Shockwave Flash ')[1]; DCSext.flash_ins = "y"; break; } } }else if (window.ActiveXObject) { // Then, dig through ActiveX-style plug-ins afterwords for (x = 2; x <= flash_versions; x++) { try { oFlash = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + x + "');"); if(oFlash) { DCSext.flash_ver = x + '.0'; DCSext.flash_ins = "y"; } } catch(e) {} } } } function A(N,V){ return "&"+N+"="+dcsEscape(V); } function dcsEscape(S){ if (typeof(RE)!="undefined"){ var retStr = new String(S); for (R in RE){ retStr = retStr.replace(RE[R],R); } return retStr; } else{ return escape(S); } } function dcsCreateImage(dcsSrc){ if (document.images){ gImages[gIndex]=new Image; gImages[gIndex].src=dcsSrc; gIndex++; var a=b=new Date; while(b.getTime()-a.getTime()<500)b=new Date // return '' } else{ document.write(''); } } function dcsMeta(){ var myDocumentElements; if (document.all){ myDocumentElements=document.all.tags("meta"); } else if (document.documentElement){ myDocumentElements=document.getElementsByTagName("meta"); } if (typeof(myDocumentElements)!="undefined"){ for (var i=1;i<=myDocumentElements.length;i++){ myMeta=myDocumentElements.item(i-1); if (myMeta.name){ if (myMeta.name.indexOf('WT.')==0){ WT[myMeta.name.substring(3)]=myMeta.content; } else if (myMeta.name.indexOf('DCSext.')==0){ DCSext[myMeta.name.substring(7)]=myMeta.content; } else if (myMeta.name.indexOf('DCS.')==0){ DCS[myMeta.name.substring(4)]=myMeta.content; } } } } } function dcsTag(){ var P="http"+(window.location.protocol.indexOf('https:')==0?'s':'')+"://"+gDomain+(gDcsId==""?'':'/'+gDcsId)+"/dcs.gif?"; for (N in DCS){ if (DCS[N]) { P+=A(N,DCS[N]); } } for (N in WT){ if (WT[N]) { P+=A("WT."+N,WT[N]); } } for (N in DCSext){ if (DCSext[N]) { P+=A(N,DCSext[N]); } } if (P.length>2048&&navigator.userAgent.indexOf('MSIE')>=0){ P=P.substring(0,2040)+"&WT.tu=1"; } dcsCreateImage(P); // Uncomment to debug webtrends URL..... //document.write("P:" + P + "

"); } function MultiTrack(){ for (var i=0;i