/* FILE ARCHIVED ON 4:04:17 Mar 5, 2009 AND RETRIEVED FROM THE AN OPENWAYBACK INSTANCE ON 16:50:31 Jun 1, 2024. JAVASCRIPT APPENDED BY OPENWAYBACK, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ // WebTrends SmartSource Data Collector Tag // Version: 8.6.0 // Tag Builder Version: 2.1.0 // Created: 2/9/2009 21:42:16 function WebTrends(){ var that=this; // begin: user modifiable this.dcsid="dcst1oy8d00000c9vr9sxqwu9_5n3h"; this.domain="statse.webtrendslive.com"; this.timezone=-5; this.fpcdom=".usa.gov"; this.onsitedoms=".govgab.gov"; this.downloadtypes="wmv,avi,mp3,xls,xlsx,csv,txt,doc,docx,pdf,zip,gzip,gz,tar,xml"; this.rightclicktypes="wmv,avi,mp3,xls,xlsx,csv,txt,doc,docx,pdf,zip,gzip,gz,tar,xml"; this.adclickparam="WT.ac"; this.trackevents=true; this.enabled=true; this.i18n=false; this.fpc="WT_FPC"; // end: user modifiable this.DCS={}; this.WT={}; this.DCSext={}; this.images=[]; this.index=0; this.exre=(function(){return(window.RegExp?new RegExp("dcs(uri)|(ref)|(aut)|(met)|(sta)|(sip)|(pro)|(byt)|(dat)|(p3p)|(cfg)|(redirect)|(cip)","i"):"");})(); this.re=(function(){return(window.RegExp?(that.i18n?{"%25":/\%/g}:{"%09":/\t/g,"%20":/ /g,"%23":/\#/g,"%26":/\&/g,"%2B":/\+/g,"%3F":/\?/g,"%5C":/\\/g,"%22":/\"/g,"%7F":/\x7F/g,"%A0":/\xA0/g}):"");})(); } WebTrends.prototype.dcsGetCookie=function(name){ var cookies=document.cookie.split("; "); var cmatch=[]; var idx=0; var i=0; var namelen=name.length; var clen=cookies.length; for (i=0;i0){ idx=0; if ((cmatchCount>1)&&(name==this.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; } } WebTrends.prototype.dcsGetCrumb=function(cval,crumb,sep){ var aCookie=cval.split(sep||":"); for (var i=0;i(dLst.getTime()+1800000))||(dCur.getTime()>(dSes.getTime()+28800000))){ WT.vt_f_tlv=Math.floor((dSes.getTime()-adj)/1000); dSes.setTime(dCur.getTime()); WT.vt_f_s="1"; } if ((dCur.getDay()!=dLst.getDay())||(dCur.getMonth()!=dLst.getMonth())||(dCur.getYear()!=dLst.getYear())){ WT.vt_f_d="1"; } } WT.co_f=escape(WT.co_f); WT.vtid=(typeof(this.vtid)=="undefined")?WT.co_f:(this.vtid||""); WT.vtvs=(dSes.getTime()-adj).toString(); var expiry=""; var cur=dCur.getTime().toString(); var ses=dSes.getTime().toString(); document.cookie=name+"="+"id="+WT.co_f+":lv="+cur+":ss="+ses+expiry+"; path=/"+(((this.fpcdom!=""))?("; domain="+this.fpcdom):("")); var rc=this.dcsIsFpcSet(name,WT.co_f,cur,ses); if (rc!=0){ WT.co_f=WT.vtvs=WT.vt_f_s=WT.vt_f_d=WT.vt_f_tlh=WT.vt_f_tlv=""; if (typeof(this.vtid)=="undefined"){ WT.vtid=""; } WT.vt_f=WT.vt_f_a=rc; } } // Code section for Enable SmartView Transition Page tracking WebTrends.prototype.dcsTP=function(){ if (document.cookie.indexOf("WTLOPTOUT=")!=-1){ return; } var name="WT_DC"; var expiry="; expires=Thu, 31-Dec-2020 08:00:00 GMT"; var pth="; path=/"; var domain=""; if (document.cookie.indexOf(name+"=tsp=1")!=-1){ this.WT.ttp="1"; } if (this.dcsGetMeta("SmartView_Page")=="1"){ this.WT.tsp="1"; document.cookie=name+"=tsp=1"+expiry+pth+domain; } else{ document.cookie=name+"=; expires=Sun, 1-Jan-1995 00:00:00 GMT;"+pth+domain; } } WebTrends.prototype.dcsGetMeta=function(name){ var elems; if (document.all){ elems=document.all.tags("meta"); } else if (document.documentElement){ elems=document.getElementsByTagName("meta"); } if (typeof(elems)!="undefined"){ for (var i=1;i<=elems.length;i++){ var meta=elems.item(i-1); if (meta.name&&(meta.name.indexOf(name)==0)){ return meta.content; break; } } } return null; } // Code section for Generate an Ad View query parameter for every Ad Click link. WebTrends.prototype.dcsAdSearch=function(){ if (document.links){ var param=this.adclickparam+"="; var paramlen=param.length; var paramre=new RegExp(param,"i"); var len=document.links.length; var pos=end=-1; var anch=urlp=value=""; var urlpre; var url=document.URL+""; var start=url.search(paramre); if (start!=-1){ end=url.indexOf("&",start); urlp=url.substring(start,(end!=-1)?end:url.length); urlpre=new RegExp(urlp+"(&|#)","i"); } for (var i=0;i0){ anch=anch.replace(urlpre,"$1"); } pos=anch.search(paramre); if (pos!=-1){ start=pos+paramlen; end=anch.indexOf("&",start); value=anch.substring(start,(end!=-1)?end:anch.length); this.WT.ad=this.WT.ad?(this.WT.ad+";"+value):value; } } } } } WebTrends.prototype.dcsIsOnsite=function(host){ if (host.length>0){ host=host.toLowerCase(); if (host==window.location.hostname.toLowerCase()){ return true; } if (typeof(this.onsitedoms.test)=="function"){ return this.onsitedoms.test(host); } else if (this.onsitedoms.length>0){ var doms=this.dcsSplit(this.onsitedoms); var len=doms.length; for (var i=0;i0)&&(pr.indexOf("http")==0)&&!this.dcsIsOnsite(hn)){ var qry=e.search?e.search.substring(e.search.indexOf("?")+1,e.search.length):""; var pth=e.pathname?((e.pathname.indexOf("/")!=0)?"/"+e.pathname:e.pathname):"/"; var trim=true; this.dcsMultiTrack("DCS.dcssip",hn,"DCS.dcsuri",pth,"DCS.dcsqry",trim?"":qry,"WT.ti","Offsite:"+hn+pth+qry,"WT.dl","24","WT.nv",this.dcsNavigation(evt)); this.DCS.dcssip=this.DCS.dcsuri=this.DCS.dcsqry=this.WT.ti=this.WT.dl=this.WT.nv=""; } } } } // Code section for clicks to image maps. WebTrends.prototype.dcsImageMap=function(evt){ evt=evt||(window.event||""); if (evt){ var e=this.dcsEvt(evt,"AREA"); if (e.href){ var hn=e.hostname?(e.hostname.split(":")[0]):""; if ((hn!="")&&e.protocol&&(e.protocol.indexOf("http")!=-1)){ var ttl=""; var map=this.dcsEvt(evt,"MAP"); if (map){ if (map.name){ ttl=map.name; } else if (map.id){ ttl=map.id; } } var pth=e.pathname?((e.pathname.indexOf("/")!=0)?"/"+e.pathname:e.pathname):"/"; this.dcsMultiTrack("DCS.dcssip",hn,"DCS.dcsuri",pth,"DCS.dcsqry",e.search||"","WT.ti","ImageMap:"+ttl,"WT.dl","30","WT.nv",this.dcsNavigation(evt)); this.DCS.dcssip=this.DCS.dcsuri=this.DCS.dcsqry=this.WT.ti=this.WT.dl=this.WT.nv=""; } } } } WebTrends.prototype.dcsAdv=function(){ if (this.trackevents&&(typeof(this.dcsET)=="function")){ if (window.addEventListener){ window.addEventListener("load",this.dcsET.wtbind(this),false); } else if (window.attachEvent){ window.attachEvent("onload",this.dcsET.wtbind(this)); } } this.dcsFPC(); this.dcsAdSearch(); this.dcsTP(); } WebTrends.prototype.dcsVar=function(){ var dCurrent=new Date(); var WT=this.WT; var DCS=this.DCS; WT.tz=parseInt(dCurrent.getTimezoneOffset()/60*-1)||"0"; WT.bh=dCurrent.getHours()||"0"; WT.ul=navigator.appName=="Netscape"?navigator.language:navigator.userLanguage; if (typeof(screen)=="object"){ WT.cd=navigator.appName=="Netscape"?screen.pixelDepth:screen.colorDepth; WT.sr=screen.width+"x"+screen.height; } if (typeof(navigator.javaEnabled())=="boolean"){ WT.jo=navigator.javaEnabled()?"Yes":"No"; } if (document.title){ if (window.RegExp){ var tire=new RegExp("^"+window.location.protocol+"//"+window.location.hostname+"\\s-\\s"); WT.ti=document.title.replace(tire,""); } else{ WT.ti=document.title; } } WT.js="Yes"; WT.jv=(function(){ var agt=navigator.userAgent.toLowerCase(); var major=parseInt(navigator.appVersion); var mac=(agt.indexOf("mac")!=-1); var ff=(agt.indexOf("firefox")!=-1); var ff0=(agt.indexOf("firefox/0.")!=-1); var ff10=(agt.indexOf("firefox/1.0")!=-1); var ff15=(agt.indexOf("firefox/1.5")!=-1); var ff20=(agt.indexOf("firefox/2.0")!=-1); var ff3up=(ff&&!ff0&&!ff10&!ff15&!ff20); var nn=(!ff&&(agt.indexOf("mozilla")!=-1)&&(agt.indexOf("compatible")==-1)); var nn4=(nn&&(major==4)); var nn6up=(nn&&(major>=5)); var ie=((agt.indexOf("msie")!=-1)&&(agt.indexOf("opera")==-1)); var ie4=(ie&&(major==4)&&(agt.indexOf("msie 4")!=-1)); var ie5up=(ie&&!ie4); var op=(agt.indexOf("opera")!=-1); var op5=(agt.indexOf("opera 5")!=-1||agt.indexOf("opera/5")!=-1); var op6=(agt.indexOf("opera 6")!=-1||agt.indexOf("opera/6")!=-1); var op7up=(op&&!op5&&!op6); var jv="1.1"; if (ff3up){ jv="1.8"; } else if (ff20){ jv="1.7"; } else if (ff15){ jv="1.6"; } else if (ff0||ff10||nn6up||op7up){ jv="1.5"; } else if ((mac&&ie5up)||op6){ jv="1.4"; } else if (ie5up||nn4||op5){ jv="1.3"; } else if (ie4){ jv="1.2"; } return jv; })(); WT.ct="unknown"; if (document.body&&document.body.addBehavior){ try{ document.body.addBehavior("#default#clientCaps"); WT.ct=document.body.connectionType||"unknown"; document.body.addBehavior("#default#homePage"); WT.hp=document.body.isHomePage(location.href)?"1":"0"; } catch(e){ } } if (document.all){ WT.bs=document.body?document.body.offsetWidth+"x"+document.body.offsetHeight:"unknown"; } else{ WT.bs=window.innerWidth+"x"+window.innerHeight; } WT.fv=(function(){ var i,flash; if (window.ActiveXObject){ for(i=10;i>0;i--){ try{ flash=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i); return i+".0"; } catch(e){ } } } else if (navigator.plugins&&navigator.plugins.length){ for (i=0;i=0;j--){ for(i=3;i>0;i--){ v=i+"."+j; if (Silverlight.isInstalled(v)){ slv=v; break; } } if (slv==v){ break; } } } } return slv; })(); if (this.i18n){ if (typeof(document.defaultCharset)=="string"){ WT.le=document.defaultCharset; } else if (typeof(document.characterSet)=="string"){ WT.le=document.characterSet; } else{ WT.le="unknown"; } } WT.tv="8.6.0"; // WT.sp="@@SPLITVALUE@@"; WT.dl="0"; WT.ssl=(window.location.protocol.indexOf('https:')==0)?"1":"0"; DCS.dcsdat=dCurrent.getTime(); DCS.dcssip=window.location.hostname; DCS.dcsuri=window.location.pathname; WT.es=DCS.dcssip+DCS.dcsuri; 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; } } DCS.dcscfg=1; } WebTrends.prototype.dcsEscape=function(S, REL){ if (REL!=""){ S=S.toString(); for (var R in REL){ if (REL[R] instanceof RegExp){ S=S.replace(REL[R],R); } } return S; } else{ return escape(S); } } WebTrends.prototype.dcsA=function(N,V){ if (this.i18n&&(this.exre!="")&&!this.exre.test(N)){ if (N=="dcsqry"){ var newV=""; var params=V.substring(1).split("&"); for (var i=0;i'); } } WebTrends.prototype.dcsMeta=function(){ var elems; if (document.all){ elems=document.all.tags("meta"); } else if (document.documentElement){ elems=document.getElementsByTagName("meta"); } if (typeof(elems)!="undefined"){ var length=elems.length; for (var i=0;i0){ if (name.toUpperCase().indexOf("WT.")==0){ this.WT[name.substring(3)]=content; } else if (name.toUpperCase().indexOf("DCSEXT.")==0){ this.DCSext[name.substring(7)]=content; } else if (name.toUpperCase().indexOf("DCS.")==0){ this.DCS[name.substring(4)]=content; } } } } } WebTrends.prototype.dcsTag=function(){ if (document.cookie.indexOf("WTLOPTOUT=")!=-1){ return; } var WT=this.WT; var DCS=this.DCS; var DCSext=this.DCSext; var i18n=this.i18n; var P="http"+(window.location.protocol.indexOf('https:')==0?'s':'')+"://"+this.domain+(this.dcsid==""?'':'/'+this.dcsid)+"/dcs.gif?"; if (i18n){ WT.dep=""; } for (var N in DCS){ if (DCS[N]&&(typeof DCS[N]!="function")){ P+=this.dcsA(N,DCS[N]); } } var keys=["co_f","vtid","vtvs","vt_f_tlv"]; for (var i=0;i0)){ P+=this.dcsA("WT.dep",WT.dep); } if (P.length>2048&&navigator.userAgent.indexOf('MSIE')>=0){ P=P.substring(0,2040)+"&WT.tu=1"; } this.dcsCreateImage(P); this.WT.ad=""; } WebTrends.prototype.dcsDebug=function(){ var t=this; var i=t.images[0].src; var q=i.indexOf("?"); var r=i.substring(0,q).split("/"); var m="Protocol
"+r[0]+"
"; m+="Domain
"+r[2]+"
"; m+="Path
/"+r[3]+"/"+r[4]+"
"; m+="Query Params"+i.substring(q+1).replace(/\&/g,"
")+"
"; m+="
Cookies
"+document.cookie.replace(/\;/g,"
")+"
"; if (t.w&&!t.w.closed){ t.w.close(); } t.w=window.open("","dcsDebug","width=500,height=650,scrollbars=yes,resizable=yes"); t.w.document.write(m); t.w.focus(); } WebTrends.prototype.dcsCollect=function(){ if (this.enabled){ this.dcsVar(); this.dcsMeta(); this.dcsAdv(); this.dcsTag(); } } function dcsMultiTrack(){ if (typeof(_tag)!="undefined"){ return(_tag.dcsMultiTrack()); } } function dcsDebug(){ if (typeof(_tag)!="undefined"){ return(_tag.dcsDebug()); } } Function.prototype.wtbind = function(obj){ var method=this; var temp=function(){ return method.apply(obj,arguments); }; return temp; }