function WebTrends(){var a=this;this.dcsid="dcsfnk37m00000gss18cknplo_6g5c";this.domain="statse.webtrendslive.com";this.timezone=0;this.fpcdom=".blog.mozilla.com";this.onsitedoms="";this.downloadtypes="xls,doc,pdf,txt,csv,zip,xpi";this.navigationtag="div,table";this.trackevents=true;this.trimoffsiteparams=true;this.enabled=true;this.i18n=false;this.fpc="WT_FPC";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(b){var n=document.cookie.split("; ");var m=[];var l=0;var g=0;var d=b.length;var j=n.length;for(g=0;g<j;g++){var h=n[g];if((h.substring(0,d+1))==(b+"=")){m[l++]=h}}var a=m.length;if(a>0){l=0;if((a>1)&&(b==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(d+1))}else{return null}};WebTrends.prototype.dcsGetCrumb=function(f,a,b){var d=f.split(b||":");for(var c=0;c<d.length;c++){var e=d[c].split("=");if(a==e[0]){return e[1]}}return null};WebTrends.prototype.dcsGetIdCrumb=function(d,a){var e=d.substring(0,d.indexOf(":lv="));var c=e.split("=");for(var b=0;b<c.length;b++){if(a==c[0]){return c[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 b=this.WT;var d=this.fpc;var n=new Date();var m=(n.getTimezoneOffset()*60000)+(this.timezone*3600000);n.setTime(n.getTime()+m);var g=new Date(n.getTime()+315360000000);var o=new Date(n.getTime());b.co_f=b.vtid=b.vtvs=b.vt_f=b.vt_f_a=b.vt_f_s=b.vt_f_d=b.vt_f_tlh=b.vt_f_tlv="";if(document.cookie.indexOf(d+"=")==-1){if((typeof(gWtId)!="undefined")&&(gWtId!="")){b.co_f=gWtId}else{if((typeof(gTempWtId)!="undefined")&&(gTempWtId!="")){b.co_f=gTempWtId;b.vt_f="1"}else{b.co_f="2";var r=n.getTime().toString();for(var j=2;j<=(32-r.length);j++){b.co_f+=Math.floor(Math.random()*16).toString(16)}b.co_f+=r;b.vt_f="1"}}if(typeof(gWtAccountRollup)=="undefined"){b.vt_f_a="1"}b.vt_f_s=b.vt_f_d="1";b.vt_f_tlh=b.vt_f_tlv="0"}else{var l=this.dcsGetCookie(d);var e=this.dcsGetIdCrumb(l,"id");var f=parseInt(this.dcsGetCrumb(l,"lv"));var s=parseInt(this.dcsGetCrumb(l,"ss"));if((e==null)||(e=="null")||isNaN(f)||isNaN(s)){return}b.co_f=e;var h=new Date(f);b.vt_f_tlh=Math.floor((h.getTime()-m)/1000);o.setTime(s);if((n.getTime()>(h.getTime()+1800000))||(n.getTime()>(o.getTime()+28800000))){b.vt_f_tlv=Math.floor((o.getTime()-m)/1000);o.setTime(n.getTime());b.vt_f_s="1"}if((n.getDay()!=h.getDay())||(n.getMonth()!=h.getMonth())||(n.getYear()!=h.getYear())){b.vt_f_d="1"}}b.co_f=escape(b.co_f);b.vtid=(typeof(this.vtid)=="undefined")?b.co_f:(this.vtid||"");b.vtvs=(o.getTime()-m).toString();var k="; expires="+g.toGMTString();var q=n.getTime().toString();var p=o.getTime().toString();document.cookie=d+"=id="+b.co_f+":lv="+q+":ss="+p+k+"; path=/"+(((this.fpcdom!=""))?("; domain="+this.fpcdom):(""));var a=this.dcsIsFpcSet(d,b.co_f,q,p);if(a!=0){b.co_f=b.vtvs=b.vt_f_s=b.vt_f_d=b.vt_f_tlh=b.vt_f_tlv="";if(typeof(this.vtid)=="undefined"){b.vtid=""}b.vt_f=b.vt_f_a=a}};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.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.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()};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 x=((o.indexOf("msie")!=-1)&&(o.indexOf("opera")==-1));var q=(x&&(A==4)&&(o.indexOf("msie 4")!=-1));var y=(x&&!q);var s=(o.indexOf("opera")!=-1);var t=(o.indexOf("opera 5")!=-1||o.indexOf("opera/5")!=-1);var r=(o.indexOf("opera 6")!=-1||o.indexOf("opera/6")!=-1);var e=(s&&!t&&!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&&y)||r){v="1.4"}else{if(y||m||t){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 d=j.dcsqry.toLowerCase();var h=this.paidsearchparams.length?this.paidsearchparams.toLowerCase().split(","):[];for(var c=0;c<h.length;c++){if(d.indexOf(h[c]+"=")!=-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 e=c.substring(1).split("&");for(var f=0;f<e.length;f++){var d=e[f];var h=d.indexOf("=");if(h!=-1){var j=d.substring(0,h);var b=d.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 c;if(document.all){c=document.all.tags("meta")}else{if(document.documentElement){c=document.getElementsByTagName("meta")}}if(typeof(c)!="undefined"){var b=c.length;for(var e=0;e<b;e++){var d=c.item(e).name;var f=c.item(e).content;var a=c.item(e).httpEquiv;if(d.length>0){if(d.toUpperCase().indexOf("WT.")==0){this.WT[d.substring(3)]=f}else{if(d.toUpperCase().indexOf("DCSEXT.")==0){this.DCSext[d.substring(7)]=f}else{if(d.toUpperCase().indexOf("DCS.")==0){this.DCS[d.substring(4)]=f}}}}}}};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(c){var b=this;var a=function(){return b.apply(c,arguments)};return a};
