function WebTrends(){var A=this;this.dcsid="dcskzwxxxoixcdqw2ib19a1yt_9d7t";this.domain="sdc.webctrl.se";this.timezone=1;this.fpcdom="";this.onsitedoms="connect.atlascopco.com";this.downloadtypes="xls,doc,pdf,txt,csv,zip,xlxs,ppt";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(K){var E=document.cookie.split("; ");var C=[];var I=0;var H=0;var L=K.length;var B=E.length;for(H=0;H<B;H++){var A=E[H];if((A.substring(0,L+1))==(K+"=")){C[I++]=A}}var D=C.length;if(D>0){I=0;if((D>1)&&(K==this.fpc)){var F=new Date(0);for(H=0;H<D;H++){var J=parseInt(this.dcsGetCrumb(C[H],"lv"));var G=new Date(J);if(G>F){F.setTime(G.getTime());I=H}}}return unescape(C[I].substring(L+1))}else{return null}};WebTrends.prototype.dcsGetCrumb=function(D,C,F){var A=D.split(F||":");for(var E=0;E<A.length;E++){var B=A[E].split("=");if(C==B[0]){return B[1]}}return null};WebTrends.prototype.dcsGetIdCrumb=function(C,B){var E=C.substring(0,C.indexOf(":lv="));var A=E.split("=");for(var D=0;D<A.length;D++){if(B==A[0]){return A[1]}}return null};WebTrends.prototype.dcsIsFpcSet=function(D,B,C,E){var A=this.dcsGetCookie(D);if(A){return((B==this.dcsGetIdCrumb(A,"id"))&&(C==this.dcsGetCrumb(A,"lv"))&&(E==this.dcsGetCrumb(A,"ss")))?0:3}return 2};WebTrends.prototype.dcsFPC=function(){if(document.cookie.indexOf("WTLOPTOUT=")!=-1){return}var Q=this.WT;var M=this.fpc;var E=new Date();var A=(E.getTimezoneOffset()*60000)+(this.timezone*3600000);E.setTime(E.getTime()+A);var F=new Date(E.getTime()+315360000000);var H=new Date(E.getTime());Q.co_f=Q.vtid=Q.vtvs=Q.vt_f=Q.vt_f_a=Q.vt_f_s=Q.vt_f_d=Q.vt_f_tlh=Q.vt_f_tlv="";if(document.cookie.indexOf(M+"=")==-1){if((typeof(gWtId)!="undefined")&&(gWtId!="")){Q.co_f=gWtId}else{if((typeof(gTempWtId)!="undefined")&&(gTempWtId!="")){Q.co_f=gTempWtId;Q.vt_f="1"}else{Q.co_f="2";var D=E.getTime().toString();for(var J=2;J<=(32-D.length);J++){Q.co_f+=Math.floor(Math.random()*16).toString(16)}Q.co_f+=D;Q.vt_f="1"}}if(typeof(gWtAccountRollup)=="undefined"){Q.vt_f_a="1"}Q.vt_f_s=Q.vt_f_d="1";Q.vt_f_tlh=Q.vt_f_tlv="0"}else{var B=this.dcsGetCookie(M);var K=this.dcsGetIdCrumb(B,"id");var L=parseInt(this.dcsGetCrumb(B,"lv"));var P=parseInt(this.dcsGetCrumb(B,"ss"));if((K==null)||(K=="null")||isNaN(L)||isNaN(P)){return}Q.co_f=K;var G=new Date(L);Q.vt_f_tlh=Math.floor((G.getTime()-A)/1000);H.setTime(P);if((E.getTime()>(G.getTime()+1800000))||(E.getTime()>(H.getTime()+28800000))){Q.vt_f_tlv=Math.floor((H.getTime()-A)/1000);H.setTime(E.getTime());Q.vt_f_s="1"}if((E.getDay()!=G.getDay())||(E.getMonth()!=G.getMonth())||(E.getYear()!=G.getYear())){Q.vt_f_d="1"}}Q.co_f=escape(Q.co_f);Q.vtid=(typeof(this.vtid)=="undefined")?Q.co_f:(this.vtid||"");Q.vtvs=(H.getTime()-A).toString();var I="; expires="+F.toGMTString();var C=E.getTime().toString();var O=H.getTime().toString();document.cookie=M+"=id="+Q.co_f+":lv="+C+":ss="+O+I+"; path=/"+(((this.fpcdom!=""))?("; domain="+this.fpcdom):(""));var N=this.dcsIsFpcSet(M,Q.co_f,C,O);if(N!=0){Q.co_f=Q.vtvs=Q.vt_f_s=Q.vt_f_d=Q.vt_f_tlh=Q.vt_f_tlv="";if(typeof(this.vtid)=="undefined"){Q.vtid=""}Q.vt_f=Q.vt_f_a=N}};WebTrends.prototype.dcsIsOnsite=function(B){if(B.length>0){B=B.toLowerCase();if(B==window.location.hostname.toLowerCase()){return true}if(typeof(this.onsitedoms.test)=="function"){return this.onsitedoms.test(B)}else{if(this.onsitedoms.length>0){var A=this.dcsSplit(this.onsitedoms);var D=A.length;for(var C=0;C<D;C++){if(B==A[C]){return true}}}}}return false};WebTrends.prototype.dcsTypeMatch=function(B,E){var D=B.toLowerCase().substring(B.lastIndexOf(".")+1,B.length);var F=this.dcsSplit(E);var C=F.length;for(var A=0;A<C;A++){if(D==F[A]){return true}}return false};WebTrends.prototype.dcsEvt=function(B,C){var A=B.target||B.srcElement;while(A.tagName&&(A.tagName.toLowerCase()!=C.toLowerCase())){A=A.parentElement||A.parentNode}return A};WebTrends.prototype.dcsNavigation=function(F){var H="";var A="";var D=this.dcsSplit(this.navigationtag);var E=D.length;var G,B,C;for(G=0;G<E;G++){C=D[G];if(C.length){B=this.dcsEvt(F,C);H=(B.getAttribute&&B.getAttribute("id"))?B.getAttribute("id"):"";A=B.className||"";if(H.length||A.length){break}}}return H.length?H:A};WebTrends.prototype.dcsBind=function(A,B){if((typeof(B)=="function")&&document.body){if(document.body.addEventListener){document.body.addEventListener(A,B.wtbind(this),true)}else{if(document.body.attachEvent){document.body.attachEvent("on"+A,B.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 A=dcsMultiTrack.arguments?dcsMultiTrack.arguments:arguments;if(A.length%2==0){this.dcsSetProps(A);var B=new Date();this.DCS.dcsdat=B.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 C=B.length;for(var A=0;A<C;A++){B[A]=B[A].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 A=this.dcsEvt(B,"A");if(A.href){var C=A.hostname?(A.hostname.split(":")[0]):"";if(this.dcsIsOnsite(C)&&this.dcsTypeMatch(A.pathname,this.downloadtypes)){var F=A.search?A.search.substring(A.search.indexOf("?")+1,A.search.length):"";var E=A.pathname?((A.pathname.indexOf("/")!=0)?"/"+A.pathname:A.pathname):"/";var H="";var G=document.all?A.innerText:A.text;var D=this.dcsEvt(B,"IMG");if(D.alt){H=D.alt}else{if(G){H=G}else{if(A.innerHTML){H=A.innerHTML}}}this.dcsMultiTrack("DCS.dcssip",C,"DCS.dcsuri",E,"DCS.dcsqry",A.search||"","WT.ti","Download:"+H,"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(C){C=C||(window.event||"");if(C){var A=C.which||C.button;if((A!=1)||(navigator.userAgent.indexOf("Safari")!=-1)){var B=this.dcsEvt(C,"A");if((typeof(B.href)!="undefined")&&B.href){if((typeof(B.protocol)!="undefined")&&B.protocol&&(B.protocol.indexOf("http")!=-1)){if((typeof(B.pathname)!="undefined")&&this.dcsTypeMatch(B.pathname,this.downloadtypes)){var E=B.pathname?((B.pathname.indexOf("/")!=0)?"/"+B.pathname:B.pathname):"/";var D=B.hostname?(B.hostname.split(":")[0]):"";this.dcsMultiTrack("DCS.dcssip",D,"DCS.dcsuri",E,"DCS.dcsqry","","WT.ti","RightClick:"+E,"WT.dl","25");this.DCS.dcssip=this.DCS.dcsuri=this.WT.ti=this.WT.dl=this.WT.nv=""}}}}}};WebTrends.prototype.dcsOffsite=function(B){B=B||(window.event||"");if(B&&((typeof(B.which)!="number")||(B.which==1))){var A=this.dcsEvt(B,"A");if(A.href){var C=A.hostname?(A.hostname.split(":")[0]):"";var D=A.protocol||"";if((C.length>0)&&(D.indexOf("http")==0)&&!this.dcsIsOnsite(C)){var F=A.search?A.search.substring(A.search.indexOf("?")+1,A.search.length):"";var E=A.pathname?((A.pathname.indexOf("/")!=0)?"/"+A.pathname:A.pathname):"/";this.dcsMultiTrack("DCS.dcssip",C,"DCS.dcsuri",E,"DCS.dcsqry",this.trimoffsiteparams?"":F,"DCS.dcsref",window.location,"WT.ti","Offsite:"+C+E+"?"+F,"WT.dl","24","WT.nv",this.dcsNavigation(B));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 C=new Date();var H=this.WT;var A=this.DCS;H.tz=parseInt(C.getTimezoneOffset()/60*-1)||"0";H.bh=C.getHours()||"0";H.ul=navigator.appName=="Netscape"?navigator.language:navigator.userLanguage;if(typeof(screen)=="object"){H.cd=navigator.appName=="Netscape"?screen.pixelDepth:screen.colorDepth;H.sr=screen.width+"x"+screen.height}if(typeof(navigator.javaEnabled())=="boolean"){H.jo=navigator.javaEnabled()?"Yes":"No"}if(document.title){if(window.RegExp){var G=new RegExp("^"+window.location.protocol+"//"+window.location.hostname+"\\s-\\s");H.ti=document.title.replace(G,"")}else{H.ti=document.title}}H.js="Yes";H.jv=(function(){var I=navigator.userAgent.toLowerCase();var U=parseInt(navigator.appVersion);var T=(I.indexOf("mac")!=-1);var J=(I.indexOf("firefox")!=-1);var K=(I.indexOf("firefox/0.")!=-1);var L=(I.indexOf("firefox/1.0")!=-1);var M=(I.indexOf("firefox/1.5")!=-1);var N=(I.indexOf("firefox/2.0")!=-1);var O=(J&&!K&&!L&!M&!N);var V=(!J&&(I.indexOf("mozilla")!=-1)&&(I.indexOf("compatible")==-1));var W=(V&&(U==4));var X=(V&&(U>=5));var P=((I.indexOf("msie")!=-1)&&(I.indexOf("opera")==-1));var Q=(P&&(U==4)&&(I.indexOf("msie 4")!=-1));var R=(P&&!Q);var Y=(I.indexOf("opera")!=-1);var Z=(I.indexOf("opera 5")!=-1||I.indexOf("opera/5")!=-1);var a=(I.indexOf("opera 6")!=-1||I.indexOf("opera/6")!=-1);var b=(Y&&!Z&&!a);var S="1.1";if(O){S="1.8"}else{if(N){S="1.7"}else{if(M){S="1.6"}else{if(K||L||X||b){S="1.5"}else{if((T&&R)||a){S="1.4"}else{if(R||W||Z){S="1.3"}else{if(Q){S="1.2"}}}}}}}return S})();H.ct="unknown";if(document.body&&document.body.addBehavior){try{document.body.addBehavior("#default#clientCaps");H.ct=document.body.connectionType||"unknown";document.body.addBehavior("#default#homePage");H.hp=document.body.isHomePage(location.href)?"1":"0"}catch(D){}}if(document.all){H.bs=document.body?document.body.offsetWidth+"x"+document.body.offsetHeight:"unknown"}else{H.bs=window.innerWidth+"x"+window.innerHeight}H.fv=(function(){var K,J;if(window.ActiveXObject){for(K=10;K>0;K--){try{J=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+K);return K+".0"}catch(I){}}}else{if(navigator.plugins&&navigator.plugins.length){for(K=0;K<navigator.plugins.length;K++){if(navigator.plugins[K].name.indexOf("Shockwave Flash")!=-1){return navigator.plugins[K].description.split(" ")[2]}}}}return"Not enabled"})();H.slv=(function(){var M="Not enabled";try{if(navigator.userAgent.indexOf("MSIE")!=-1){var L=new ActiveXObject("AgControl.AgControl");if(L){M="Unknown"}}else{if(navigator.plugins["Silverlight Plug-In"]){M="Unknown"}}}catch(I){}if(M!="Not enabled"){var J,K,N;if((typeof(Silverlight)=="object")&&(typeof(Silverlight.isInstalled)=="function")){for(J=3;J>0;J--){for(K=9;K>=0;K--){N=J+"."+K;if(Silverlight.isInstalled(N)){M=N;break}}if(M==N){break}}}}return M})();if(this.i18n){if(typeof(document.defaultCharset)=="string"){H.le=document.defaultCharset}else{if(typeof(document.characterSet)=="string"){H.le=document.characterSet}else{H.le="unknown"}}}H.tv="8.6.2";H.dl="0";H.ssl=(window.location.protocol.indexOf("https:")==0)?"1":"0";A.dcsdat=C.getTime();A.dcssip=window.location.hostname;A.dcsuri=window.location.pathname;H.es=A.dcssip+A.dcsuri;if(window.location.search){A.dcsqry=window.location.search}if(A.dcsqry){var B=A.dcsqry.toLowerCase();var F=this.paidsearchparams.length?this.paidsearchparams.toLowerCase().split(","):[];for(var E=0;E<F.length;E++){if(B.indexOf(F[E]+"=")!=-1){H.srch="1";break}}}if((window.document.referrer!="")&&(window.document.referrer!="-")){if(!(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)<4)){A.dcsref=window.document.referrer}}};WebTrends.prototype.dcsEscape=function(C,B){if(B!=""){C=C.toString();for(var A in B){if(B[A] instanceof RegExp){C=C.replace(B[A],A)}}return C}else{return escape(C)}};WebTrends.prototype.dcsA=function(C,H){if(this.i18n&&(this.exre!="")&&!this.exre.test(C)){if(C=="dcsqry"){var D="";var F=H.substring(1).split("&");for(var A=0;A<F.length;A++){var E=F[A];var G=E.indexOf("=");if(G!=-1){var B=E.substring(0,G);var I=E.substring(G+1);if(A!=0){D+="&"}D+=B+"="+this.dcsEncode(I)}}H=H.substring(0,1)+D}else{H=this.dcsEncode(H)}}return"&"+C+"="+this.dcsEscape(H,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 E=B.length;for(var D=0;D<E;D++){var F=B.item(D).name;var A=B.item(D).content;var C=B.item(D).httpEquiv;if(F.length>0){if(F.toUpperCase().indexOf("WT.")==0){this.WT[F.substring(3)]=A}else{if(F.toUpperCase().indexOf("DCSEXT.")==0){this.DCSext[F.substring(7)]=A}else{if(F.toUpperCase().indexOf("DCS.")==0){this.DCS[F.substring(4)]=A}}}}}}};WebTrends.prototype.dcsTag=function(){if(document.cookie.indexOf("WTLOPTOUT=")!=-1){return}var I=this.WT;var A=this.DCS;var B=this.DCSext;var D=this.i18n;var H="http"+(window.location.protocol.indexOf("https:")==0?"s":"")+"://"+this.domain+(this.dcsid==""?"":"/"+this.dcsid)+"/dcs.gif?";if(D){I.dep=""}for(var G in A){if(A[G]&&(typeof A[G]!="function")){H+=this.dcsA(G,A[G])}}var F=["co_f","vtid","vtvs","vt_f_tlv"];for(var C=0;C<F.length;C++){var E=F[C];if(I[E]){H+=this.dcsA("WT."+E,I[E]);delete I[E]}}for(G in I){if(I[G]&&(typeof I[G]!="function")){H+=this.dcsA("WT."+G,I[G])}}for(G in B){if(B[G]&&(typeof B[G]!="function")){if(D){I.dep=(I.dep.length==0)?G:(I.dep+";"+G)}H+=this.dcsA(G,B[G])}}if(D&&(I.dep.length>0)){H+=this.dcsA("WT.dep",I.dep)}if(H.length>2048&&navigator.userAgent.indexOf("MSIE")>=0){H=H.substring(0,2040)+"&WT.tu=1"}this.dcsCreateImage(H);this.WT.ad=""};WebTrends.prototype.dcsDebug=function(){var E=this;var A=E.images[0].src;var C=A.indexOf("?");var D=A.substring(0,C).split("/");var B="<b>Protocol</b><br><code>"+D[0]+"<br></code>";B+="<b>Domain</b><br><code>"+D[2]+"<br></code>";B+="<b>Path</b><br><code>/"+D[3]+"/"+D[4]+"<br></code>";B+="<b>Query Params</b><code>"+A.substring(C+1).replace(/\&/g,"<br>")+"</code>";B+="<br><b>Cookies</b><br><code>"+document.cookie.replace(/\;/g,"<br>")+"</code>";if(E.w&&!E.w.closed){E.w.close()}E.w=window.open("","dcsDebug","width=500,height=650,scrollbars=yes,resizable=yes");E.w.document.write(B);E.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 A=this;var C=function(){return A.apply(B,arguments)};return C};
