function WebTrends(){var a=this,that=a;a.dcsid=function(){for(var domlist="businesscenterloading.jdpower.com,dev.businesscenter.jdpower.com,qa.businesscenter.jdpower.com",doms=that.dcsSplit(domlist),dlen=doms.length,host=window.location.hostname.toLowerCase(),i=0;i<dlen;i++)if(host==doms[i])return"dcsi9bxr210000s922gusuwlk_1l3s";return"dcs3lhd43000004b7gnsxwwlk_7z7y"}();a.domain="statse.webtrendslive.com";a.timezone=-5;a.fpcdom=".jdpower.com";a.onsitedoms=function(){return window.RegExp?new RegExp(".*jdpower.com","i"):""}();a.downloadtypes="xls,doc,pdf,txt,csv,zip,mp3,mpg,avi";a.navigationtag="div,table";a.adclickparam="WT.ad";a.trackevents=true;a.trimoffsiteparams=true;a.enabled=true;a.i18n=false;a.fpc="WT_FPC";a.paidsearchparams="gclid";a.DCS={};a.WT={};a.DCSext={};a.images=[];a.index=0;a.exre=function(){return window.RegExp?new RegExp("dcs(uri)|(ref)|(aut)|(met)|(sta)|(sip)|(pro)|(byt)|(dat)|(p3p)|(cfg)|(redirect)|(cip)","i"):""}();a.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.dcsGetId=function(){var a=this;a.enabled&&document.cookie.indexOf(a.fpc+"=")==-1&&document.cookie.indexOf("WTLOPTOUT=")==-1&&document.write("<script type='text/javascript' src='http"+(window.location.protocol.indexOf("https:")==0?"s":"")+"://"+a.domain+"/"+a.dcsid+"/wtid.js'><\/script>")};WebTrends.prototype.dcsGetCookie=function(name){for(var cookies=document.cookie.split("; "),cmatch=[],idx=0,i=0,namelen=name.length,clen=cookies.length,i=0;i<clen;i++){var c=cookies[i];if(c.substring(0,namelen+1)==name+"=")cmatch[idx++]=c}var cmatchCount=cmatch.length;if(cmatchCount>0){idx=0;if(cmatchCount>1&&name==this.fpc){var dLatest=new Date(0);for(i=0;i<cmatchCount;i++){var lv=parseInt(this.dcsGetCrumb(cmatch[i],"lv")),dLst=new Date(lv);if(dLst>dLatest){dLatest.setTime(dLst.getTime());idx=i}}}return unescape(cmatch[idx].substring(namelen+1))}else return null};WebTrends.prototype.dcsGetCrumb=function(cval,crumb,sep){for(var aCookie=cval.split(sep||":"),i=0;i<aCookie.length;i++){var aCrumb=aCookie[i].split("=");if(crumb==aCrumb[0])return aCrumb[1]}return null};WebTrends.prototype.dcsGetIdCrumb=function(cval,crumb){for(var id=cval.substring(0,cval.indexOf(":lv=")),aCrumb=id.split("="),i=0;i<aCrumb.length;i++)if(crumb==aCrumb[0])return aCrumb[1];return null};WebTrends.prototype.dcsIsFpcSet=function(name,id,lv,ss){var a=this,c=a.dcsGetCookie(name);return c?id==a.dcsGetIdCrumb(c,"id")&&lv==a.dcsGetCrumb(c,"lv")&&ss==a.dcsGetCrumb(c,"ss")?0:3:2};WebTrends.prototype.dcsFPC=function(){var d="1",b="undefined",a=this;if(document.cookie.indexOf("WTLOPTOUT=")!=-1)return;var WT=a.WT,name=a.fpc,dCur=new Date,adj=dCur.getTimezoneOffset()*6e4+a.timezone*3.6e6;dCur.setTime(dCur.getTime()+adj);var dExp=new Date(dCur.getTime()+3.1536e11),dSes=new Date(dCur.getTime());WT.co_f=WT.vtid=WT.vtvs=WT.vt_f=WT.vt_f_a=WT.vt_f_s=WT.vt_f_d=WT.vt_f_tlh=WT.vt_f_tlv="";if(document.cookie.indexOf(name+"=")==-1){if(typeof gWtId!=b&&gWtId!="")WT.co_f=gWtId;else if(typeof gTempWtId!=b&&gTempWtId!=""){WT.co_f=gTempWtId;WT.vt_f=d}else{WT.co_f="2";for(var curt=dCur.getTime().toString(),i=2;i<=32-curt.length;i++)WT.co_f+=Math.floor(Math.random()*16).toString(16);WT.co_f+=curt;WT.vt_f=d}if(typeof gWtAccountRollup==b)WT.vt_f_a=d;WT.vt_f_s=WT.vt_f_d=d;WT.vt_f_tlh=WT.vt_f_tlv="0"}else{var c=a.dcsGetCookie(name),id=a.dcsGetIdCrumb(c,"id"),lv=parseInt(a.dcsGetCrumb(c,"lv")),ss=parseInt(a.dcsGetCrumb(c,"ss"));if(id==null||id=="null"||isNaN(lv)||isNaN(ss))return;WT.co_f=id;var dLst=new Date(lv);WT.vt_f_tlh=Math.floor((dLst.getTime()-adj)/1e3);dSes.setTime(ss);if(dCur.getTime()>dLst.getTime()+1.8e6||dCur.getTime()>dSes.getTime()+2.88e7){WT.vt_f_tlv=Math.floor((dSes.getTime()-adj)/1e3);dSes.setTime(dCur.getTime());WT.vt_f_s=d}if(dCur.getDay()!=dLst.getDay()||dCur.getMonth()!=dLst.getMonth()||dCur.getYear()!=dLst.getYear())WT.vt_f_d=d}WT.co_f=escape(WT.co_f);WT.vtid=typeof a.vtid==b?WT.co_f:a.vtid||"";WT.vtvs=(dSes.getTime()-adj).toString();var expiry="; expires="+dExp.toGMTString(),cur=dCur.getTime().toString(),ses=dSes.getTime().toString();document.cookie=name+"=id="+WT.co_f+":lv="+cur+":ss="+ses+expiry+"; path=/"+(a.fpcdom!=""?"; domain="+a.fpcdom:"");var rc=a.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 a.vtid==b)WT.vtid="";WT.vt_f=WT.vt_f_a=rc}};WebTrends.prototype.dcsAdSearch=function(){var a=this;if(document.links){var param=a.adclickparam+"=",paramlen=param.length,paramre=new RegExp(param,"i"),len=document.links.length,pos=end=-1,anch=urlp=value="",urlpre,url=document.URL+"",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;i<len;i++)if(document.links[i].href){anch=document.links[i].href+"";if(urlp.length>0)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);a.WT.ad=a.WT.ad?a.WT.ad+";"+value:value}}}};WebTrends.prototype.dcsIsOnsite=function(host){var a=this;if(host.length>0){host=host.toLowerCase();if(host==window.location.hostname.toLowerCase())return true;if(typeof a.onsitedoms.test=="function")return a.onsitedoms.test(host);else if(a.onsitedoms.length>0)for(var doms=a.dcsSplit(a.onsitedoms),len=doms.length,i=0;i<len;i++)if(host==doms[i])return true}return false};WebTrends.prototype.dcsTypeMatch=function(pth,typelist){for(var type=pth.toLowerCase().substring(pth.lastIndexOf(".")+1,pth.length),types=this.dcsSplit(typelist),tlen=types.length,i=0;i<tlen;i++)if(type==types[i])return true;return false};WebTrends.prototype.dcsEvt=function(evt,tag){var e=evt.target||evt.srcElement;while(e.tagName&&e.tagName.toLowerCase()!=tag.toLowerCase())e=e.parentElement||e.parentNode;return e};WebTrends.prototype.dcsNavigation=function(evt){for(var id="",cname="",elems=this.dcsSplit(this.navigationtag),elen=elems.length,e,elem,i=0;i<elen;i++){elem=elems[i];if(elem.length){e=this.dcsEvt(evt,elem);id=e.getAttribute&&e.getAttribute("id")?e.getAttribute("id"):"";cname=e.className||"";if(id.length||cname.length)break}}return id.length?id:cname};WebTrends.prototype.dcsBind=function(event,func){if(typeof func=="function"&&document.body)if(document.body.addEventListener)document.body.addEventListener(event,func.wtbind(this),true);else document.body.attachEvent&&document.body.attachEvent("on"+event,func.wtbind(this))};WebTrends.prototype.dcsET=function(){var a=this,e=navigator.appVersion.indexOf("MSIE")!=-1?"click":"mousedown";a.dcsBind(e,a.dcsDownload);a.dcsBind(e,a.dcsOffsite);a.dcsBind("contextmenu",a.dcsRightClick)};WebTrends.prototype.dcsMultiTrack=function(){var a=this,args=dcsMultiTrack.arguments?dcsMultiTrack.arguments:arguments;if(args.length%2==0){a.dcsSetProps(args);var dCurrent=new Date;a.DCS.dcsdat=dCurrent.getTime();a.dcsFPC();a.dcsTag()}};WebTrends.prototype.dcsCleanUp=function(){var a=this;a.DCS={};a.WT={};a.DCSext={};arguments.length%2==0&&a.dcsSetProps(arguments)};WebTrends.prototype.dcsSetProps=function(args){for(var i=0;i<args.length;i+=2)if(args[i].indexOf("WT.")==0)this.WT[args[i].substring(3)]=args[i+1];else if(args[i].indexOf("DCS.")==0)this.DCS[args[i].substring(4)]=args[i+1];else if(args[i].indexOf("DCSext.")==0)this.DCSext[args[i].substring(7)]=args[i+1]};WebTrends.prototype.dcsSplit=function(list){for(var items=list.toLowerCase().split(","),len=items.length,i=0;i<len;i++)items[i]=items[i].replace(/^\s*/,"").replace(/\s*$/,"");return items};WebTrends.prototype.dcsDownload=function(evt){var a=this;evt=evt||(window.event||"");if(evt&&(typeof evt.which!="number"||evt.which==1)){var e=a.dcsEvt(evt,"A");if(e.href){var hn=e.hostname?e.hostname.split(":")[0]:"";if(a.dcsIsOnsite(hn)&&a.dcsTypeMatch(e.pathname,a.downloadtypes)){var qry=e.search?e.search.substring(e.search.indexOf("?")+1,e.search.length):"",pth=e.pathname?e.pathname.indexOf("/")!=0?"/"+e.pathname:e.pathname:"/",ttl="",text=document.all?e.innerText:e.text,img=a.dcsEvt(evt,"IMG");if(img.alt)ttl=img.alt;else if(text)ttl=text;else if(e.innerHTML)ttl=e.innerHTML;a.dcsMultiTrack("DCS.dcssip",hn,"DCS.dcsuri",pth,"DCS.dcsqry",e.search||"","WT.ti","Download:"+ttl,"WT.dl","20","WT.nv",a.dcsNavigation(evt));a.DCS.dcssip=a.DCS.dcsuri=a.DCS.dcsqry=a.WT.ti=a.WT.dl=a.WT.nv=""}}}};WebTrends.prototype.dcsRightClick=function(evt){var b="undefined",a=this;evt=evt||(window.event||"");if(evt){var btn=evt.which||evt.button;if(btn!=1||navigator.userAgent.indexOf("Safari")!=-1){var e=a.dcsEvt(evt,"A");if(typeof e.href!=b&&e.href)if(typeof e.protocol!=b&&e.protocol&&e.protocol.indexOf("http")!=-1)if(typeof e.pathname!=b&&a.dcsTypeMatch(e.pathname,a.downloadtypes)){var pth=e.pathname?e.pathname.indexOf("/")!=0?"/"+e.pathname:e.pathname:"/",hn=e.hostname?e.hostname.split(":")[0]:"";a.dcsMultiTrack("DCS.dcssip",hn,"DCS.dcsuri",pth,"DCS.dcsqry","","WT.ti","RightClick:"+pth,"WT.dl","25");a.DCS.dcssip=a.DCS.dcsuri=a.WT.ti=a.WT.dl=a.WT.nv=""}}}};WebTrends.prototype.dcsOffsite=function(evt){var a=this;evt=evt||(window.event||"");if(evt&&(typeof evt.which!="number"||evt.which==1)){var e=a.dcsEvt(evt,"A");if(e.href){var hn=e.hostname?e.hostname.split(":")[0]:"",pr=e.protocol||"";if(hn.length>0&&pr.indexOf("http")==0&&!a.dcsIsOnsite(hn)){var qry=e.search?e.search.substring(e.search.indexOf("?")+1,e.search.length):"",pth=e.pathname?e.pathname.indexOf("/")!=0?"/"+e.pathname:e.pathname:"/";a.dcsMultiTrack("DCS.dcssip",hn,"DCS.dcsuri",pth,"DCS.dcsqry",a.trimoffsiteparams?"":qry,"DCS.dcsref",window.location,"WT.ti","Offsite:"+hn+pth+"?"+qry,"WT.dl","24","WT.nv",a.dcsNavigation(evt));a.DCS.dcssip=a.DCS.dcsuri=a.DCS.dcsqry=a.DCS.dcsref=a.WT.ti=a.WT.dl=a.WT.nv=""}}}};WebTrends.prototype.dcsAdv=function(){var a=this;if(a.trackevents&&typeof a.dcsET=="function")if(window.addEventListener)window.addEventListener("load",a.dcsET.wtbind(a),false);else window.attachEvent&&window.attachEvent("onload",a.dcsET.wtbind(a));a.dcsFPC();a.dcsAdSearch()};WebTrends.prototype.dcsVar=function(){var f="Not enabled",d="unknown",c="Netscape",b=-1,a=this,dCurrent=new Date,WT=a.WT,DCS=a.DCS;WT.tz=parseInt(dCurrent.getTimezoneOffset()/60*b)||"0";WT.bh=dCurrent.getHours()||"0";WT.ul=navigator.appName==c?navigator.language:navigator.userLanguage;if(typeof screen=="object"){WT.cd=navigator.appName==c?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(),major=parseInt(navigator.appVersion),mac=agt.indexOf("mac")!=b,ff=agt.indexOf("firefox")!=b,ff0=agt.indexOf("firefox/0.")!=b,ff10=agt.indexOf("firefox/1.0")!=b,ff15=agt.indexOf("firefox/1.5")!=b,ff20=agt.indexOf("firefox/2.0")!=b,ff3up=ff&&!ff0&&!ff10&!ff15&!ff20,nn=!ff&&agt.indexOf("mozilla")!=b&&agt.indexOf("compatible")==b,nn4=nn&&major==4,nn6up=nn&&major>=5,ie=agt.indexOf("msie")!=b&&agt.indexOf("opera")==b,ie4=ie&&major==4&&agt.indexOf("msie 4")!=b,ie5up=ie&&!ie4,op=agt.indexOf("opera")!=b,op5=agt.indexOf("opera 5")!=b||agt.indexOf("opera/5")!=b,op6=agt.indexOf("opera 6")!=b||agt.indexOf("opera/6")!=b,op7up=op&&!op5&&!op6,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=d;if(document.body&&document.body.addBehavior)try{document.body.addBehavior("#default#clientCaps");WT.ct=document.body.connectionType||d;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:d;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<navigator.plugins.length;i++)if(navigator.plugins[i].name.indexOf("Shockwave Flash")!=b)return navigator.plugins[i].description.split(" ")[2];return f}();WT.slv=function(){var slv=f;try{if(navigator.userAgent.indexOf("MSIE")!=b){var sli=new ActiveXObject("AgControl.AgControl");if(sli)slv="Unknown"}else if(navigator.plugins["Silverlight Plug-In"])slv="Unknown"}catch(e){}if(slv!=f){var i,j,v;if(typeof Silverlight=="object"&&typeof Silverlight.isInstalled=="function")for(i=3;i>0;i--){for(j=9;j>=0;j--){v=i+"."+j;if(Silverlight.isInstalled(v)){slv=v;break}}if(slv==v)break}}return slv}();if(a.i18n)if(typeof document.defaultCharset=="string")WT.le=document.defaultCharset;else if(typeof document.characterSet=="string")WT.le=document.characterSet;else WT.le=d;WT.tv="8.6.2";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(DCS.dcsqry)for(var dcsqry=DCS.dcsqry.toLowerCase(),params=a.paidsearchparams.length?a.paidsearchparams.toLowerCase().split(","):[],i=0;i<params.length;i++)if(dcsqry.indexOf(params[i]+"=")!=b){WT.srch="1";break}if(window.document.referrer!=""&&window.document.referrer!="-")if(!(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)<4))DCS.dcsref=window.document.referrer};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){var a=this;if(a.i18n&&a.exre!=""&&!a.exre.test(N))if(N=="dcsqry"){for(var newV="",params=V.substring(1).split("&"),i=0;i<params.length;i++){var pair=params[i],pos=pair.indexOf("=");if(pos!=-1){var key=pair.substring(0,pos),val=pair.substring(pos+1);if(i!=0)newV+="&";newV+=key+"="+a.dcsEncode(val)}}V=V.substring(0,1)+newV}else V=a.dcsEncode(V);return"&"+N+"="+a.dcsEscape(V,a.re)};WebTrends.prototype.dcsEncode=function(S){return typeof encodeURIComponent=="function"?encodeURIComponent(S):escape(S)};WebTrends.prototype.dcsCreateImage=function(dcsSrc){var a=this;if(document.images){a.images[a.index]=new Image;a.images[a.index].src=dcsSrc;a.index++}else document.write('<IMG ALT="" BORDER="0" NAME="DCSIMG" WIDTH="1" HEIGHT="1" SRC="'+dcsSrc+'">')};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")for(var length=elems.length,i=0;i<length;i++){var name=elems.item(i).name,content=elems.item(i).content,equiv=elems.item(i).httpEquiv;if(name.length>0)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(){var b="function",a=this;if(document.cookie.indexOf("WTLOPTOUT=")!=-1)return;var WT=a.WT,DCS=a.DCS,DCSext=a.DCSext,i18n=a.i18n,P="http"+(window.location.protocol.indexOf("https:")==0?"s":"")+"://"+a.domain+(a.dcsid==""?"":"/"+a.dcsid)+"/dcs.gif?";if(i18n)WT.dep="";for(var N in DCS)if(DCS[N]&&typeof DCS[N]!=b)P+=a.dcsA(N,DCS[N]);for(var keys=["co_f","vtid","vtvs","vt_f_tlv"],i=0;i<keys.length;i++){var key=keys[i];if(WT[key]){P+=a.dcsA("WT."+key,WT[key]);delete WT[key]}}for(N in WT)if(WT[N]&&typeof WT[N]!=b)P+=a.dcsA("WT."+N,WT[N]);for(N in DCSext)if(DCSext[N]&&typeof DCSext[N]!=b){if(i18n)WT.dep=WT.dep.length==0?N:WT.dep+";"+N;P+=a.dcsA(N,DCSext[N])}if(i18n&&WT.dep.length>0)P+=a.dcsA("WT.dep",WT.dep);if(P.length>2048&&navigator.userAgent.indexOf("MSIE")>=0)P=P.substring(0,2040)+"&WT.tu=1";a.dcsCreateImage(P);a.WT.ad=""};WebTrends.prototype.dcsDebug=function(){var a="<br></code>",t=this,i=t.images[0].src,q=i.indexOf("?"),r=i.substring(0,q).split("/"),m="<b>Protocol</b><br><code>"+r[0]+a;m+="<b>Domain</b><br><code>"+r[2]+a;m+="<b>Path</b><br><code>/"+r[3]+"/"+r[4]+a;m+="<b>Query Params</b><code>"+i.substring(q+1).replace(/\&/g,"<br>")+"</code>";m+="<br><b>Cookies</b><br><code>"+document.cookie.replace(/\;/g,"<br>")+"</code>";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(){var a=this;if(a.enabled){a.dcsVar();a.dcsMeta();a.dcsAdv();a.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,temp=function(){return method.apply(obj,arguments)};return temp}
