function WebTrends(){var a=this;this.navigationtag="div,table";this.adclickparam="WT.ac";this.trackevents=true;this.trimoffsiteparams=true;this.enabled=true;this.i18n=false;this.paidsearchparams="gclid";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?(a.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.dcsGetId=function(){if(this.enabled&&(document.cookie.indexOf(this.fpc+"=")==-1)&&(document.cookie.indexOf("WTLOPTOUT=")==-1)){document.write("<script type='text/javascript' src='http"+(window.location.protocol.indexOf("https:")==0?"s":"")+"://"+this.domain+"/"+this.dcsid+"/wtid.js'><\/script>")}};WebTrends.prototype.dcsGetCookie=function(d){var n=document.cookie.split("; ");var m=[];var l=0;var g=0;var b=d.length;var j=n.length;for(g=0;g<j;g++){var h=n[g];if((h.substring(0,b+1))==(d+"=")){m[l++]=h}}var a=m.length;if(a>0){l=0;if((a>1)&&(d==this.fpc)){var k=new Date(0);for(g=0;g<a;g++){var e=parseInt(this.dcsGetCrumb(m[g],"lv"));var f=new Date(e);if(f>k){k.setTime(f.getTime());l=g}}}return unescape(m[l].substring(b+1))}else{return null}};WebTrends.prototype.dcsGetCrumb=function(f,c,d){var b=f.split(d||":");for(var e=0;e<b.length;e++){var a=b[e].split("=");if(c==a[0]){return a[1]}}return null};WebTrends.prototype.dcsGetIdCrumb=function(d,b){var e=d.substring(0,d.indexOf(":lv="));var a=e.split("=");for(var c=0;c<a.length;c++){if(b==a[0]){return a[1]}}return null};WebTrends.prototype.dcsIsFpcSet=function(a,f,d,b){var e=this.dcsGetCookie(a);if(e){return((f==this.dcsGetIdCrumb(e,"id"))&&(d==this.dcsGetCrumb(e,"lv"))&&(b==this.dcsGetCrumb(e,"ss")))?0:3}return 2};WebTrends.prototype.dcsFPC=function(){if(document.cookie.indexOf("WTLOPTOUT=")!=-1){return}var d=this.WT;var b=this.fpc;var o=new Date();var m=(o.getTimezoneOffset()*60000)+(this.timezone*3600000);o.setTime(o.getTime()+m);var h=new Date(o.getTime()+315360000000);var n=new Date(o.getTime());d.co_f=d.vtid=d.vtvs=d.vt_f=d.vt_f_a=d.vt_f_s=d.vt_f_d=d.vt_f_tlh=d.vt_f_tlv="";if(document.cookie.indexOf(b+"=")==-1){if((typeof(gWtId)!="undefined")&&(gWtId!="")){d.co_f=gWtId}else{if((typeof(gTempWtId)!="undefined")&&(gTempWtId!="")){d.co_f=gTempWtId;d.vt_f="1"}else{d.co_f="2";var r=o.getTime().toString();for(var k=2;k<=(32-r.length);k++){d.co_f+=Math.floor(Math.random()*16).toString(16)}d.co_f+=r;d.vt_f="1"}}if(typeof(gWtAccountRollup)=="undefined"){d.vt_f_a="1"}d.vt_f_s=d.vt_f_d="1";d.vt_f_tlh=d.vt_f_tlv="0"}else{var l=this.dcsGetCookie(b);var e=this.dcsGetIdCrumb(l,"id");var g=parseInt(this.dcsGetCrumb(l,"lv"));var s=parseInt(this.dcsGetCrumb(l,"ss"));if((e==null)||(e=="null")||isNaN(g)||isNaN(s)){return}d.co_f=e;var j=new Date(g);d.vt_f_tlh=Math.floor((j.getTime()-m)/1000);n.setTime(s);if((o.getTime()>(j.getTime()+1800000))||(o.getTime()>(n.getTime()+28800000))){d.vt_f_tlv=Math.floor((n.getTime()-m)/1000);n.setTime(o.getTime());d.vt_f_s="1"}if((o.getDay()!=j.getDay())||(o.getMonth()!=j.getMonth())||(o.getYear()!=j.getYear())){d.vt_f_d="1"}}d.co_f=escape(d.co_f);d.vtid=(typeof(this.vtid)=="undefined")?d.co_f:(this.vtid||"");d.vtvs=(n.getTime()-m).toString();var f="; expires="+h.toGMTString();var q=o.getTime().toString();var p=n.getTime().toString();document.cookie=b+"=id="+d.co_f+":lv="+q+":ss="+p+f+"; path=/"+(((this.fpcdom!=""))?("; domain="+this.fpcdom):(""));var a=this.dcsIsFpcSet(b,d.co_f,q,p);if(a!=0){d.co_f=d.vtvs=d.vt_f_s=d.vt_f_d=d.vt_f_tlh=d.vt_f_tlv="";if(typeof(this.vtid)=="undefined"){d.vtid=""}d.vt_f=d.vt_f_a=a}};WebTrends.prototype.dcsAdSearch=function(){if(document.links){var e=this.adclickparam+"=";var d=e.length;var k=new RegExp(e,"i");var g=document.links.length;var j=end=-1;var h=urlp=value="";var b;var a=document.URL+"";var c=a.search(k);if(c!=-1){end=a.indexOf("&",c);urlp=a.substring(c,(end!=-1)?end:a.length);b=new RegExp(urlp+"(&|#)","i")}for(var f=0;f<g;f++){if(document.links[f].href){h=document.links[f].href+"";if(urlp.length>0){h=h.replace(b,"$1")}j=h.search(k);if(j!=-1){c=j+d;end=h.indexOf("&",c);value=h.substring(c,(end!=-1)?end:h.length);this.WT.ad=this.WT.ad?(this.WT.ad+";"+value):value}}}}};WebTrends.prototype.dcsIsOnsite=function(c){if(c.length>0){c=c.toLowerCase();if(c==window.location.hostname.toLowerCase()){return true}if(typeof(this.onsitedoms.test)=="function"){return this.onsitedoms.test(c)}else{if(this.onsitedoms.length>0){var d=this.dcsSplit(this.onsitedoms);var a=d.length;for(var b=0;b<a;b++){if(c==d[b]){return true}}}}}return false};WebTrends.prototype.dcsTypeMatch=function(f,e){var d=f.toLowerCase().substring(f.lastIndexOf(".")+1,f.length);var c=this.dcsSplit(e);var b=c.length;for(var a=0;a<b;a++){if(d==c[a]){return true}}return false};WebTrends.prototype.dcsEvt=function(b,a){var c=b.target||b.srcElement;while(c.tagName&&(c.tagName.toLowerCase()!=a.toLowerCase())){c=c.parentElement||c.parentNode}return c};WebTrends.prototype.dcsNavigation=function(a){var j="";var c="";var b=this.dcsSplit(this.navigationtag);var f=b.length;var d,h,g;for(d=0;d<f;d++){g=b[d];if(g.length){h=this.dcsEvt(a,g);j=(h.getAttribute&&h.getAttribute("id"))?h.getAttribute("id"):"";c=h.className||"";if(j.length||c.length){break}}}return j.length?j:c};WebTrends.prototype.dcsBind=function(b,a){if((typeof(a)=="function")&&document.body){if(document.body.addEventListener){document.body.addEventListener(b,a.wtbind(this),true)}else{if(document.body.attachEvent){document.body.attachEvent("on"+b,a.wtbind(this))}}}};WebTrends.prototype.dcsET=function(){var a=(navigator.appVersion.indexOf("MSIE")!=-1)?"click":"mousedown";this.dcsBind(a,this.dcsDownload);this.dcsBind(a,this.dcsMailTo);this.dcsBind(a,this.dcsOffsite);this.dcsBind("contextmenu",this.dcsRightClick)};WebTrends.prototype.dcsMultiTrack=function(){var b=dcsMultiTrack.arguments?dcsMultiTrack.arguments:arguments;if(b.length%2==0){this.dcsSetProps(b);var a=new Date();this.DCS.dcsdat=a.getTime();this.dcsFPC();this.dcsTag()}};WebTrends.prototype.dcsCleanUp=function(){this.DCS={};this.WT={};this.DCSext={};if(arguments.length%2==0){this.dcsSetProps(arguments)}};WebTrends.prototype.dcsSetProps=function(a){for(var b=0;b<a.length;b+=2){if(a[b].indexOf("WT.")==0){this.WT[a[b].substring(3)]=a[b+1]}else{if(a[b].indexOf("DCS.")==0){this.DCS[a[b].substring(4)]=a[b+1]}else{if(a[b].indexOf("DCSext.")==0){this.DCSext[a[b].substring(7)]=a[b+1]}}}}};WebTrends.prototype.dcsSplit=function(d){var b=d.toLowerCase().split(",");var a=b.length;for(var c=0;c<a;c++){b[c]=b[c].replace(/^\s*/,"").replace(/\s*$/,"")}return b};WebTrends.prototype.dcsDownload=function(b){b=b||(window.event||"");if(b&&((typeof(b.which)!="number")||(b.which==1))){var f=this.dcsEvt(b,"A");if(f.href){var i=f.hostname?(f.hostname.split(":")[0]):"";if(this.dcsIsOnsite(i)&&this.dcsTypeMatch(f.pathname,this.downloadtypes)){var d=f.search?f.search.substring(f.search.indexOf("?")+1,f.search.length):"";var h=f.pathname?((f.pathname.indexOf("/")!=0)?"/"+f.pathname:f.pathname):"/";var a="";var g=document.all?f.innerText:f.text;var c=this.dcsEvt(b,"IMG");if(c.alt){a=c.alt}else{if(g){a=g}else{if(f.innerHTML){a=f.innerHTML}}}this.dcsMultiTrack("DCS.dcssip",i,"DCS.dcsuri",h,"DCS.dcsqry",f.search||"","WT.ti","Download:"+a,"WT.dl","20","WT.nv",this.dcsNavigation(b));this.DCS.dcssip=this.DCS.dcsuri=this.DCS.dcsqry=this.WT.ti=this.WT.dl=this.WT.nv=""}}}};WebTrends.prototype.dcsRightClick=function(a){a=a||(window.event||"");if(a){var b=a.which||a.button;if((b!=1)||(navigator.userAgent.indexOf("Safari")!=-1)){var c=this.dcsEvt(a,"A");if((typeof(c.href)!="undefined")&&c.href){if((typeof(c.protocol)!="undefined")&&c.protocol&&(c.protocol.indexOf("http")!=-1)){if((typeof(c.pathname)!="undefined")&&this.dcsTypeMatch(c.pathname,this.downloadtypes)){var f=c.pathname?((c.pathname.indexOf("/")!=0)?"/"+c.pathname:c.pathname):"/";var d=c.hostname?(c.hostname.split(":")[0]):"";this.dcsMultiTrack("DCS.dcssip",d,"DCS.dcsuri",f,"DCS.dcsqry","","WT.ti","RightClick:"+f,"WT.dl","25");this.DCS.dcssip=this.DCS.dcsuri=this.WT.ti=this.WT.dl=this.WT.nv=""}}}}}};WebTrends.prototype.dcsMailTo=function(a){a=a||(window.event||"");if(a&&((typeof(a.which)!="number")||(a.which==1))){var c=this.dcsEvt(a,"A");if(c.href&&c.protocol){var b=c.search?c.search.substring(c.search.indexOf("?")+1,c.search.length):"";if(c.protocol.toLowerCase()=="mailto:"){this.dcsMultiTrack("DCS.dcssip","","DCS.dcsuri",c.href,"WT.ti","MailTo:"+c.innerHTML,"WT.dl","23","WT.nv",this.dcsNavigation(a));this.DCS.dcssip=this.DCS.dcsuri=this.WT.ti=this.WT.dl=this.WT.nv=""}}}};WebTrends.prototype.dcsOffsite=function(a){a=a||(window.event||"");if(a&&((typeof(a.which)!="number")||(a.which==1))){var c=this.dcsEvt(a,"A");if(c.href){var f=c.hostname?(c.hostname.split(":")[0]):"";var g=c.protocol||"";if((f.length>0)&&(g.indexOf("http")==0)&&!this.dcsIsOnsite(f)){var b=c.search?c.search.substring(c.search.indexOf("?")+1,c.search.length):"";var d=c.pathname?((c.pathname.indexOf("/")!=0)?"/"+c.pathname:c.pathname):"/";this.dcsMultiTrack("DCS.dcssip",f,"DCS.dcsuri",d,"DCS.dcsqry",this.trimoffsiteparams?"":b,"DCS.dcsref",window.location,"WT.ti","Offsite:"+f+d+"?"+b,"WT.dl","24","WT.nv",this.dcsNavigation(a));this.DCS.dcssip=this.DCS.dcsuri=this.DCS.dcsqry=this.DCS.dcsref=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()};WebTrends.prototype.dcsVar=function(){var b=new Date();var a=this.WT;var j=this.DCS;a.tz=parseInt(b.getTimezoneOffset()/60*-1)||"0";a.bh=b.getHours()||"0";a.ul=navigator.appName=="Netscape"?navigator.language:navigator.userLanguage;if(typeof(screen)=="object"){a.cd=navigator.appName=="Netscape"?screen.pixelDepth:screen.colorDepth;a.sr=screen.width+"x"+screen.height}if(typeof(navigator.javaEnabled())=="boolean"){a.jo=navigator.javaEnabled()?"Yes":"No"}if(document.title){if(window.RegExp){var f=new RegExp("^"+window.location.protocol+"//"+window.location.hostname+"\\s-\\s");a.ti=document.title.replace(f,"")}else{a.ti=document.title}}a.js="Yes";a.jv=(function(){var o=navigator.userAgent.toLowerCase();var A=parseInt(navigator.appVersion);var n=(o.indexOf("mac")!=-1);var u=(o.indexOf("firefox")!=-1);var k=(o.indexOf("firefox/0.")!=-1);var p=(o.indexOf("firefox/1.0")!=-1);var l=(o.indexOf("firefox/1.5")!=-1);var z=(o.indexOf("firefox/2.0")!=-1);var B=(u&&!k&&!p&!l&!z);var i=(!u&&(o.indexOf("mozilla")!=-1)&&(o.indexOf("compatible")==-1));var m=(i&&(A==4));var w=(i&&(A>=5));var y=((o.indexOf("msie")!=-1)&&(o.indexOf("opera")==-1));var q=(y&&(A==4)&&(o.indexOf("msie 4")!=-1));var x=(y&&!q);var t=(o.indexOf("opera")!=-1);var s=(o.indexOf("opera 5")!=-1||o.indexOf("opera/5")!=-1);var r=(o.indexOf("opera 6")!=-1||o.indexOf("opera/6")!=-1);var e=(t&&!s&&!r);var v="1.1";if(B){v="1.8"}else{if(z){v="1.7"}else{if(l){v="1.6"}else{if(k||p||w||e){v="1.5"}else{if((n&&x)||r){v="1.4"}else{if(x||m||s){v="1.3"}else{if(q){v="1.2"}}}}}}}return v})();a.ct="unknown";if(document.body&&document.body.addBehavior){try{document.body.addBehavior("#default#clientCaps");a.ct=document.body.connectionType||"unknown";document.body.addBehavior("#default#homePage");a.hp=document.body.isHomePage(location.href)?"1":"0"}catch(g){}}if(document.all){a.bs=document.body?document.body.offsetWidth+"x"+document.body.offsetHeight:"unknown"}else{a.bs=window.innerWidth+"x"+window.innerHeight}a.fv=(function(){var l,k;if(window.ActiveXObject){for(l=10;l>0;l--){try{k=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+l);return l+".0"}catch(m){}}}else{if(navigator.plugins&&navigator.plugins.length){for(l=0;l<navigator.plugins.length;l++){if(navigator.plugins[l].name.indexOf("Shockwave Flash")!=-1){return navigator.plugins[l].description.split(" ")[2]}}}}return"Not enabled"})();a.slv=(function(){var k="Not enabled";try{if(navigator.userAgent.indexOf("MSIE")!=-1){var m=new ActiveXObject("AgControl.AgControl");if(m){k="Unknown"}}else{if(navigator.plugins["Silverlight Plug-In"]){k="Unknown"}}}catch(p){}if(k!="Not enabled"){var o,n,l;if((typeof(Silverlight)=="object")&&(typeof(Silverlight.isInstalled)=="function")){for(o=3;o>0;o--){for(n=9;n>=0;n--){l=o+"."+n;if(Silverlight.isInstalled(l)){k=l;break}}if(k==l){break}}}}return k})();if(this.i18n){if(typeof(document.defaultCharset)=="string"){a.le=document.defaultCharset}else{if(typeof(document.characterSet)=="string"){a.le=document.characterSet}else{a.le="unknown"}}}a.tv="8.6.2";a.dl="0";a.ssl=(window.location.protocol.indexOf("https:")==0)?"1":"0";j.dcsdat=b.getTime();j.dcssip=window.location.hostname;j.dcsuri=window.location.pathname;a.es=j.dcssip+j.dcsuri;if(window.location.search){j.dcsqry=window.location.search}if(j.dcsqry){var c=j.dcsqry.toLowerCase();var h=this.paidsearchparams.length?this.paidsearchparams.toLowerCase().split(","):[];for(var d=0;d<h.length;d++){if(c.indexOf(h[d]+"=")!=-1){a.srch="1";break}}}if((window.document.referrer!="")&&(window.document.referrer!="-")){if(!(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)<4)){j.dcsref=window.document.referrer}}};WebTrends.prototype.dcsEscape=function(a,c){if(c!=""){a=a.toString();for(var b in c){if(c[b] instanceof RegExp){a=a.replace(c[b],b)}}return a}else{return escape(a)}};WebTrends.prototype.dcsA=function(g,c){if(this.i18n&&(this.exre!="")&&!this.exre.test(g)){if(g=="dcsqry"){var a="";var d=c.substring(1).split("&");for(var f=0;f<d.length;f++){var e=d[f];var h=e.indexOf("=");if(h!=-1){var j=e.substring(0,h);var b=e.substring(h+1);if(f!=0){a+="&"}a+=j+"="+this.dcsEncode(b)}}c=c.substring(0,1)+a}else{c=this.dcsEncode(c)}}return"&"+g+"="+this.dcsEscape(c,this.re)};WebTrends.prototype.dcsEncode=function(a){return(typeof(encodeURIComponent)=="function")?encodeURIComponent(a):escape(a)};WebTrends.prototype.dcsCreateImage=function(a){if(document.images){this.images[this.index]=new Image();this.images[this.index].src=a;this.index++}else{document.write('<IMG ALT="" BORDER="0" NAME="DCSIMG" WIDTH="1" HEIGHT="1" SRC="'+a+'">')}};WebTrends.prototype.dcsMeta=function(){var b;if(document.all){b=document.all.tags("meta")}else{if(document.documentElement){b=document.getElementsByTagName("meta")}}if(typeof(b)!="undefined"){var f=b.length;for(var d=0;d<f;d++){var c=b.item(d).name;var e=b.item(d).content;var a=b.item(d).httpEquiv;if(c.length>0){if(c.toUpperCase().indexOf("WT.")==0){this.WT[c.substring(3)]=e}else{if(c.toUpperCase().indexOf("DCSEXT.")==0){this.DCSext[c.substring(7)]=e}else{if(c.toUpperCase().indexOf("DCS.")==0){this.DCS[c.substring(4)]=e}}}}}}};WebTrends.prototype.dcsTag=function(){if(document.cookie.indexOf("WTLOPTOUT=")!=-1){return}var a=this.WT;var g=this.DCS;var b=this.DCSext;var j=this.i18n;var d="http"+(window.location.protocol.indexOf("https:")==0?"s":"")+"://"+this.domain+(this.dcsid==""?"":"/"+this.dcsid)+"/dcs.gif?";if(j){a.dep=""}for(var e in g){if(g[e]&&(typeof g[e]!="function")){d+=this.dcsA(e,g[e])}}var h=["co_f","vtid","vtvs","vt_f_tlv"];for(var c=0;c<h.length;c++){var f=h[c];if(a[f]){d+=this.dcsA("WT."+f,a[f]);delete a[f]}}for(e in a){if(a[e]&&(typeof a[e]!="function")){d+=this.dcsA("WT."+e,a[e])}}for(e in b){if(b[e]&&(typeof b[e]!="function")){if(j){a.dep=(a.dep.length==0)?e:(a.dep+";"+e)}d+=this.dcsA(e,b[e])}}if(j&&(a.dep.length>0)){d+=this.dcsA("WT.dep",a.dep)}if(d.length>2048&&navigator.userAgent.indexOf("MSIE")>=0){d=d.substring(0,2040)+"&WT.tu=1"}this.dcsCreateImage(d);this.WT.ad=""};WebTrends.prototype.dcsDebug=function(){var c=this;var b=c.images[0].src;var e=b.indexOf("?");var d=b.substring(0,e).split("/");var a="<b>Protocol</b><br><code>"+d[0]+"<br></code>";a+="<b>Domain</b><br><code>"+d[2]+"<br></code>";a+="<b>Path</b><br><code>/"+d[3]+"/"+d[4]+"<br></code>";a+="<b>Query Params</b><code>"+b.substring(e+1).replace(/\&/g,"<br>")+"</code>";a+="<br><b>Cookies</b><br><code>"+document.cookie.replace(/\;/g,"<br>")+"</code>";if(c.w&&!c.w.closed){c.w.close()}c.w=window.open("","dcsDebug","width=500,height=650,scrollbars=yes,resizable=yes");c.w.document.write(a);c.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(b){var c=this;var a=function(){return c.apply(b,arguments)};return a};
