diff options
Diffstat (limited to 'piwik.js')
-rw-r--r-- | piwik.js | 42 |
1 files changed, 21 insertions, 21 deletions
@@ -27,27 +27,27 @@ if(Q.hasNodeAttributeWithValue(W,"href")){X=Q.getAttributeValueFromNode(W,"href" }}}var ac=Q.findNodesByTagName(aa,"embed");if(ac&&ac.length){return this.findMediaUrlInNode(ac[0])}}},trim:function(W){if(W&&String(W)===W){return W.replace(/^\s+|\s+$/g,"")}return W},isOrWasNodeInViewport:function(ab){if(!ab||!ab.getBoundingClientRect||ab.nodeType!==1){return true}var aa=ab.getBoundingClientRect();var Z=u.documentElement||{};var Y=aa.top<0;if(Y&&ab.offsetTop){Y=(ab.offsetTop+aa.height)>0}var X=Z.clientWidth;if(G.innerWidth&&X>G.innerWidth){X=G.innerWidth}var W=Z.clientHeight;if(G.innerHeight&&W>G.innerHeight){W=G.innerHeight}return((aa.bottom>0||Y)&&aa.right>0&&aa.left<X&&((aa.top<W)||Y))},isNodeVisible:function(X){var W=g(X);var Y=this.isOrWasNodeInViewport(X);return W&&Y},buildInteractionRequestParams:function(W,X,Y,Z){var aa="";if(W){aa+="c_i="+l(W)}if(X){if(aa){aa+="&"}aa+="c_n="+l(X)}if(Y){if(aa){aa+="&"}aa+="c_p="+l(Y)}if(Z){if(aa){aa+="&"}aa+="c_t="+l(Z)}return aa},buildImpressionRequestParams:function(W,X,Y){var Z="c_n="+l(W)+"&c_p="+l(X);if(Y){Z+="&c_t="+l(Y)}return Z },buildContentBlock:function(Y){if(!Y){return}var W=this.findContentName(Y);var X=this.findContentPiece(Y);var Z=this.findContentTarget(Y);W=this.trim(W);X=this.trim(X);Z=this.trim(Z);return{name:W||"Unknown",piece:X||"Unknown",target:Z||""}},collectContent:function(Z){if(!Z||!Z.length){return[]}var Y=[];var W,X;for(W=0;W<Z.length;W++){X=this.buildContentBlock(Z[W]);if(w(X)){Y.push(X)}}return Y},setLocation:function(W){this.location=W},getLocation:function(){var W=this.location||G.location;if(!W.origin){W.origin=W.protocol+"//"+W.hostname+(W.port?":"+W.port:"")}return W},toAbsoluteUrl:function(X){if((!X||String(X)!==X)&&X!==""){return X}if(""===X){return this.getLocation().href}if(X.search(/^\/\//)!==-1){return this.getLocation().protocol+X}if(X.search(/:\/\//)!==-1){return X}if(0===X.indexOf("#")){return this.getLocation().origin+this.getLocation().pathname+X}if(0===X.indexOf("?")){return this.getLocation().origin+this.getLocation().pathname+X}if(0===X.search("^[a-zA-Z]{2,11}:")){return X }if(X.search(/^\//)!==-1){return this.getLocation().origin+X}var W="(.*/)";var Y=this.getLocation().origin+this.getLocation().pathname.match(new RegExp(W))[0];return Y+X},isUrlToCurrentDomain:function(X){var Y=this.toAbsoluteUrl(X);if(!Y){return false}var W=this.getLocation().origin;if(W===Y){return true}if(0===String(Y).indexOf(W)){if(":"===String(Y).substr(W.length,1)){return false}return true}return false},setHrefAttribute:function(X,W){if(!X||!W){return}Q.setAnyAttribute(X,"href",W)},shouldIgnoreInteraction:function(Y){var X=Q.hasNodeAttribute(Y,this.CONTENT_IGNOREINTERACTION_ATTR);var W=Q.hasNodeCssClass(Y,this.CONTENT_IGNOREINTERACTION_CLASS);return X||W}};function B(W,X){if(X){return X}if(W.slice(-9)==="piwik.php"){W=W.slice(0,W.length-9)}return W}function A(aa){var W="Piwik_Overlay";var ad=new RegExp("index\\.php\\?module=Overlay&action=startOverlaySession&idSite=([0-9]+)&period=([^&]+)&date=([^&]+)$");var Y=ad.exec(u.referrer);if(Y){var Z=Y[1];if(Z!==String(aa)){return false}var ac=Y[2],X=Y[3]; -G.name=W+"###"+ac+"###"+X}var ab=G.name.split("###");return ab.length===3&&ab[0]===W}function M(X,ac,Z){var ab=G.name.split("###"),aa=ab[1],W=ab[2],Y=B(X,ac);i(Y+"plugins/Overlay/client/client.js?v=1",function(){Piwik_Overlay_Client.initialize(Y,Z,aa,W)})}function D(aE,bk,bI){var ad=N(u.domain,G.location.href,x()),bK=y(ad[0]),b2=ad[1],bs=ad[2],b5=false,bo="GET",bq=bo,ba="application/x-www-form-urlencoded; charset=UTF-8",aK=ba,aa=aE||"",ax="",bm="",bQ=bk||"",aJ="",a5,aR=u.title,aT="7z|aac|apk|ar[cj]|as[fx]|avi|azw3|bin|csv|deb|dmg|docx?|epub|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mobi|mp(2|3|4|e?g)|mov(ie)?|ms[ip]|od[bfgpst]|og[gv]|pdf|phps|png|pptx?|qtm?|ra[mr]?|rpm|sea|sit|tar|t?bz2?|tgz|torrent|txt|wav|wm[av]|wpd||xlsx?|xml|z|zip",bn=[bK],ai=[],bd=[],aC=[],bl=500,aj,aG,ak,an,aX=["pk_campaign","piwik_campaign","utm_campaign","utm_source","utm_medium"],aO=["pk_kwd","piwik_kwd","utm_term"],b0="_pk_",aq,b1,ao=false,bU,aZ,a3,aw=63072000000,az=1800000,a8=15768000000,a0=true,aI=0,a4=false,ag=false,au,be={},ab={},bV=200,bC={},bR={},ah=[],ay=false,a7=false,bx=false,bS=false,bu=false,br,bh,at,aW=T,bw,a1=bI; -function bE(ce,cb,ca,cd,b9,cc){if(ao){return}var b8;if(ca){b8=new Date();b8.setTime(b8.getTime()+ca)}u.cookie=ce+"="+l(cb)+(ca?";expires="+b8.toGMTString():"")+";path="+(cd||"/")+(b9?";domain="+b9:"")+(cc?";secure":"")}function av(ca){if(ao){return 0}var b8=new RegExp("(^|;)[ ]*"+ca+"=([^;]*)"),b9=b8.exec(u.cookie);return b9?F(b9[2]):0}function bW(b8){var b9;if(ak){b9=new RegExp("#.*");return b8.replace(b9,"")}return b8}function bJ(ca,b8){var cb=k(b8),b9;if(cb){return b8}if(b8.slice(0,1)==="/"){return k(ca)+"://"+b(ca)+b8}ca=bW(ca);b9=ca.indexOf("?");if(b9>=0){ca=ca.slice(0,b9)}b9=ca.lastIndexOf("/");if(b9!==ca.length-1){ca=ca.slice(0,b9+1)}return ca+b8}function bp(cb){var b9,b8,ca;for(b9=0;b9<bn.length;b9++){b8=y(bn[b9].toLowerCase());if(cb===b8){return true}if(b8.slice(0,1)==="."){if(cb===b8.slice(1)){return true}ca=cb.length-b8.length;if((ca>0)&&(cb.slice(ca)===b8)){return true}}}return false}function b7(b8,ca){var b9=new Image(1,1);b9.onload=function(){t=0;if(typeof ca==="function"){ca() -}};b9.src=aa+(aa.indexOf("?")<0?"?":"&")+b8}function bF(b9,cc,b8){if(!w(b8)||null===b8){b8=true}try{var cb=G.XMLHttpRequest?new G.XMLHttpRequest():G.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;cb.open("POST",aa,true);cb.onreadystatechange=function(){if(this.readyState===4&&!(this.status>=200&&this.status<300)&&b8){b7(b9,cc)}else{if(typeof cc==="function"){cc()}}};cb.setRequestHeader("Content-Type",aK);cb.send(b9)}catch(ca){if(b8){b7(b9,cc)}}}function bX(b9){var b8=new Date();var ca=b8.getTime()+b9;if(!j||ca>j){j=ca}}function aD(cc){var b9=new Date();var b8=b9.getTime();if(a7&&b8<a7){var ca=a7-b8;setTimeout(cc,ca);bX(ca+50);a7+=50;return}if(a7===false){var cb=650;a7=b8+cb}cc()}function aY(b9,b8,ca){if(!bU&&b9){aD(function(){if(bq==="POST"){bF(b9,ca)}else{b7(b9,ca)}bX(b8)})}}function a9(b8){if(bU){return false}return(b8&&b8.length)}function ap(ca,b8){if(!a9(ca)){return}var b9='{"requests":["?'+ca.join('","?')+'"]}';aD(function(){bF(b9,null,false);bX(b8)})}function bD(b8){return b0+b8+"."+bQ+"."+bw -}function ae(){if(ao){return"0"}if(!w(e.cookieEnabled)){var b8=bD("testcookie");bE(b8,"1");return av(b8)==="1"?"1":"0"}return e.cookieEnabled?"1":"0"}function bi(){bw=aW((aq||bK)+(b1||"/")).slice(0,4)}function ar(){var b9=bD("cvar"),b8=av(b9);if(b8.length){b8=JSON2.parse(b8);if(J(b8)){return b8}}return{}}function Z(){if(ag===false){ag=ar()}}function bP(){var b8=new Date();br=b8.getTime()}function am(cc,b9,b8,cb,ca,cd){bE(bD("id"),cc+"."+b9+"."+b8+"."+cb+"."+ca+"."+cd,aw,b1,aq)}function Y(){var b9=new Date(),b8=Math.round(b9.getTime()/1000),cb=av(bD("id")),ca;if(cb){ca=cb.split(".");ca.unshift("0")}else{if(!a1){a1=aW((e.userAgent||"")+(e.platform||"")+JSON2.stringify(bR)+b9.getTime()+Math.random()).slice(0,16)}ca=["1",a1,b8,0,b8,"",""]}return ca}function X(){var b8=av(bD("ref"));if(b8.length){try{b8=JSON2.parse(b8);if(J(b8)){return b8}}catch(b9){}}return["","",0,""]}function W(){var b8=ao;ao=false;bE(bD("id"),"",-86400,b1,aq);bE(bD("ses"),"",-86400,b1,aq);bE(bD("cvar"),"",-86400,b1,aq);bE(bD("ref"),"",-86400,b1,aq); -ao=b8}function bO(cc){if(!cc||!J(cc)){return}var cb=[];var ca;for(ca in cc){if(Object.prototype.hasOwnProperty.call(cc,ca)){cb.push(ca)}}var cd={};cb.sort();var b8=cb.length;var b9;for(b9=0;b9<b8;b9++){cd[cb[b9]]=cc[cb[b9]]}return cd}function aS(ca,cy,cz,cb){var cw,b9=new Date(),ci=Math.round(b9.getTime()/1000),cC,cx,cd,co,ct,ch,cr,ce,cv,cc=1024,cE,cl,cs=ag,cj=bD("ses"),ck=bD("ref"),cF=bD("cvar"),cp=Y(),cn=av(cj),cu=X(),cB=a5||b2,cf,b8;if(ao){W()}if(bU){return""}cC=cp[0];cx=cp[1];co=cp[2];cd=cp[3];ct=cp[4];ch=cp[5];if(!w(cp[6])){cp[6]=""}cr=cp[6];if(!w(cb)){cb=""}var cm=u.characterSet||u.charset;if(!cm||cm.toLowerCase()==="utf-8"){cm=null}cf=cu[0];b8=cu[1];ce=cu[2];cv=cu[3];if(!cn){var cA=az/1000;if(!ch||(ci-ch)>cA){cd++;ch=ct}if(!a3||!cf.length){for(cw in aX){if(Object.prototype.hasOwnProperty.call(aX,cw)){cf=I(cB,aX[cw]);if(cf.length){break}}}for(cw in aO){if(Object.prototype.hasOwnProperty.call(aO,cw)){b8=I(cB,aO[cw]);if(b8.length){break}}}}cE=b(bs);cl=cv.length?b(cv):"";if(cE.length&&!bp(cE)&&(!a3||!cl.length||bp(cl))){cv=bs -}if(cv.length||cf.length){ce=ci;cu=[cf,b8,ce,bW(cv.slice(0,cc))];bE(ck,JSON2.stringify(cu),a8,b1,aq)}}ca+="&idsite="+bQ+"&rec=1&r="+String(Math.random()).slice(2,8)+"&h="+b9.getHours()+"&m="+b9.getMinutes()+"&s="+b9.getSeconds()+"&url="+l(bW(cB))+(bs.length?"&urlref="+l(bW(bs)):"")+(aJ.length?"&uid="+l(aJ):"")+"&_id="+cx+"&_idts="+co+"&_idvc="+cd+"&_idn="+cC+(cf.length?"&_rcn="+l(cf):"")+(b8.length?"&_rck="+l(b8):"")+"&_refts="+ce+"&_viewts="+ch+(String(cr).length?"&_ects="+cr:"")+(String(cv).length?"&_ref="+l(bW(cv.slice(0,cc))):"")+(cm?"&cs="+l(cm):"");for(cw in bR){if(Object.prototype.hasOwnProperty.call(bR,cw)){ca+="&"+cw+"="+bR[cw]}}if(cy){ca+="&data="+l(JSON2.stringify(cy))}else{if(an){ca+="&data="+l(JSON2.stringify(an))}}function cg(cG,cH){var cI=JSON2.stringify(cG);if(cI.length>2){return"&"+cH+"="+l(cI)}return""}var cD=bO(be);var cq=bO(ab);ca+=cg(cD,"cvar");ca+=cg(cq,"e_cvar");if(ag){ca+=cg(ag,"_cvar");for(cw in cs){if(Object.prototype.hasOwnProperty.call(cs,cw)){if(ag[cw][0]===""||ag[cw][1]===""){delete ag[cw] -}}}if(a4){bE(cF,JSON2.stringify(ag),az,b1,aq)}}if(a0){if(aI){ca+=">_ms="+aI}else{if(f&&f.timing&&f.timing.requestStart&&f.timing.responseEnd){ca+=">_ms="+(f.timing.responseEnd-f.timing.requestStart)}}}am(cx,co,cd,ci,ch,w(cb)&&String(cb).length?cb:cr);bE(cj,"*",az,b1,aq);ca+=O(cz);if(bm.length){ca+="&"+bm}if(q(au)){ca=au(ca)}return ca}function bH(cb,ca,cf,cc,b8,ci){var cd="idgoal=0",ce,b9=new Date(),cg=[],ch;if(String(cb).length){cd+="&ec_id="+l(cb);ce=Math.round(b9.getTime()/1000)}cd+="&revenue="+ca;if(String(cf).length){cd+="&ec_st="+cf}if(String(cc).length){cd+="&ec_tx="+cc}if(String(b8).length){cd+="&ec_sh="+b8}if(String(ci).length){cd+="&ec_dt="+ci}if(bC){for(ch in bC){if(Object.prototype.hasOwnProperty.call(bC,ch)){if(!w(bC[ch][1])){bC[ch][1]=""}if(!w(bC[ch][2])){bC[ch][2]=""}if(!w(bC[ch][3])||String(bC[ch][3]).length===0){bC[ch][3]=0}if(!w(bC[ch][4])||String(bC[ch][4]).length===0){bC[ch][4]=1}cg.push(bC[ch])}}cd+="&ec_items="+l(JSON2.stringify(cg))}cd=aS(cd,an,"ecommerce",ce); -aY(cd,bl)}function bG(b8,cc,cb,ca,b9,cd){if(String(b8).length&&w(cc)){bH(b8,cc,cb,ca,b9,cd)}}function bZ(b8){if(w(b8)){bH("",b8,"","","","")}}function bc(cb,cc){var b8=new Date(),ca=aS("action_name="+l(V(cb||aR)),cc,"log");aY(ca,bl);if(aj&&aG&&!bu){bu=true;U(u,"click",bP);U(u,"mouseup",bP);U(u,"mousedown",bP);U(u,"mousemove",bP);U(u,"mousewheel",bP);U(G,"DOMMouseScroll",bP);U(G,"scroll",bP);U(u,"keypress",bP);U(u,"keydown",bP);U(u,"keyup",bP);U(G,"resize",bP);U(G,"focus",bP);U(G,"blur",bP);br=b8.getTime();setTimeout(function b9(){var cd;b8=new Date();if((br+aG)>b8.getTime()){if(aj<b8.getTime()){cd=aS("ping=1",cc,"ping");aY(cd,bl)}setTimeout(b9,aG)}},aG)}}function aH(ca,b9){var cb,b8="(^| )(piwik[_-]"+b9;if(ca){for(cb=0;cb<ca.length;cb++){b8+="|"+ca[cb]}}b8+=")( |$)";return new RegExp(b8)}function bA(b8){return(aa&&b8&&0===String(b8).indexOf(aa))}function bN(cb,b8,cc){if(bA(b8)){return 0}var ca=aH(bd,"download"),b9=aH(aC,"link"),cd=new RegExp("\\.("+aT+")([?&#]|$)","i");if(b9.test(cb)){return"link" -}if(ca.test(cb)||cd.test(b8)){return"download"}if(cc){return 0}return"link"}function a6(b9){var b8;b8=b9.parentNode;while(b8!==null&&w(b8)){if(Q.isLinkElement(b9)){break}b9=b8;b8=b9.parentNode}return b9}function bg(cc){cc=a6(cc);if(!Q.hasNodeAttribute(cc,"href")){return}if(!w(cc.href)){return}var cb=Q.getAttributeValueFromNode(cc,"href");if(bA(cb)){return}var cd=cc.hostname||b(cc.href);var ce=cd.toLowerCase();var b9=cc.href.replace(cd,ce);var ca=new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto):","i");if(!ca.test(b9)){var b8=bN(cc.className,b9,bp(ce));if(b8){return{type:b8,href:b9}}}}function b4(b8,b9,ca,cb){var cc=m.buildInteractionRequestParams(b8,b9,ca,cb);if(!cc){return}return aS(cc,null,"contentInteraction")}function b3(ca,cb,cf,b8,b9){if(!w(ca)){return}if(bA(ca)){return ca}var cd=m.toAbsoluteUrl(ca);var cc="redirecturl="+l(cd)+"&";cc+=b4(cb,cf,b8,(b9||ca));var ce="&";if(aa.indexOf("?")<0){ce="?"}return aa+ce+cc}function a2(b8,b9){if(!b8||!b9){return false -}var ca=m.findTargetNode(b8);if(m.shouldIgnoreInteraction(ca)){return false}ca=m.findTargetNodeNoDefault(b8);if(ca&&!H(ca,b9)){return false}return true}function aQ(ca,b9,cc){if(!ca){return}var b8=m.findParentContentNode(ca);if(!b8){return}if(!a2(b8,ca)){return}var cb=m.buildContentBlock(b8);if(!cb){return}if(!cb.target&&cc){cb.target=cc}return m.buildInteractionRequestParams(b9,cb.name,cb.piece,cb.target)}function aN(b9){if(!ah||!ah.length){return false}var b8,ca;for(b8=0;b8<ah.length;b8++){ca=ah[b8];if(ca&&ca.name===b9.name&&ca.piece===b9.piece&&ca.target===b9.target){return true}}return false}function ac(cb){if(!cb){return false}var ce=m.findTargetNode(cb);if(!ce||m.shouldIgnoreInteraction(ce)){return false}var cf=bg(ce);if(bS&&cf&&cf.type){return false}if(Q.isLinkElement(ce)&&Q.hasNodeAttributeWithValue(ce,"href")){var b8=String(Q.getAttributeValueFromNode(ce,"href"));if(0===b8.indexOf("#")){return false}if(bA(b8)){return true}if(!m.isUrlToCurrentDomain(b8)){return false}var cc=m.buildContentBlock(cb); -if(!cc){return}var ca=cc.name;var cg=cc.piece;var cd=cc.target;if(!Q.hasNodeAttributeWithValue(ce,m.CONTENT_TARGET_ATTR)||ce.wasContentTargetAttrReplaced){ce.wasContentTargetAttrReplaced=true;cd=m.toAbsoluteUrl(b8);Q.setAnyAttribute(ce,m.CONTENT_TARGET_ATTR,cd)}var b9=b3(b8,"click",ca,cg,cd);m.setHrefAttribute(ce,b9);return true}return false}function af(b9){if(!b9||!b9.length){return}var b8;for(b8=0;b8<b9.length;b8++){ac(b9[b8])}}function bf(b8){return function(b9){if(!b8){return}var cc=m.findParentContentNode(b8);var cd;if(b9){cd=b9.target||b9.srcElement}if(!cd){cd=b8}if(!a2(cc,cd)){return}bX(bl);if(Q.isLinkElement(b8)&&Q.hasNodeAttributeWithValue(b8,"href")&&Q.hasNodeAttributeWithValue(b8,m.CONTENT_TARGET_ATTR)){var ca=Q.getAttributeValueFromNode(b8,"href");if(!bA(ca)&&b8.wasContentTargetAttrReplaced){Q.setAnyAttribute(b8,m.CONTENT_TARGET_ATTR,"")}}var ch=bg(b8);if(bx&&ch&&ch.type){return ch.type}if(ac(cc)){return"href"}var ce=m.buildContentBlock(cc);if(!ce){return}var cb=ce.name;var ci=ce.piece; -var cg=ce.target;var cf=b4("click",cb,ci,cg);aY(cf,bl);return cf}}function aF(ca){if(!ca||!ca.length){return}var b8,b9;for(b8=0;b8<ca.length;b8++){b9=m.findTargetNode(ca[b8]);if(b9&&!b9.contentInteractionTrackingSetupDone){b9.contentInteractionTrackingSetupDone=true;U(b9,"click",bf(b9))}}}function aB(ca,cb){if(!ca||!ca.length){return[]}var b8,b9;for(b8=0;b8<ca.length;b8++){if(aN(ca[b8])){ca.splice(b8,1);b8--}else{ah.push(ca[b8])}}if(!ca||!ca.length){return[]}af(cb);aF(cb);var cc=[];for(b8=0;b8<ca.length;b8++){b9=aS(m.buildImpressionRequestParams(ca[b8].name,ca[b8].piece,ca[b8].target),undefined,"contentImpressions");cc.push(b9)}return cc}function aV(b9){var b8=m.collectContent(b9);return aB(b8,b9)}function bz(b9){if(!b9||!b9.length){return[]}var b8;for(b8=0;b8<b9.length;b8++){if(!m.isNodeVisible(b9[b8])){b9.splice(b8,1);b8--}}if(!b9||!b9.length){return[]}return aV(b9)}function bL(ca,b8,b9){var cb=m.buildImpressionRequestParams(ca,b8,b9);return aS(cb,null,"contentImpression")}function aU(cb,b9){if(!cb){return -}var b8=m.findParentContentNode(cb);var ca=m.buildContentBlock(b8);if(!ca){return}if(!b9){b9="Unknown"}return b4(b9,ca.name,ca.piece,ca.target)}function bv(b9,cb,b8,ca){return"e_c="+l(b9)+"&e_a="+l(cb)+(w(b8)?"&e_n="+l(b8):"")+(w(ca)?"&e_v="+l(ca):"")}function al(ca,cc,b8,cb,cd){if(String(ca).length===0||String(cc).length===0){return false}var b9=aS(bv(ca,cc,b8,cb),cd,"event");aY(b9,bl)}function aM(b8,cb,b9,cc){var ca=aS("search="+l(b8)+(cb?"&search_cat="+l(cb):"")+(w(b9)?"&search_count="+b9:""),cc,"sitesearch");aY(ca,bl)}function bj(b8,cb,ca){var b9=aS("idgoal="+b8+(cb?"&revenue="+cb:""),ca,"goal");aY(b9,bl)}function bM(cb,b8,cf,ce,ca){var cd=b8+"="+l(bW(cb));var b9=aQ(ca,"click",cb);if(b9){cd+="&"+b9}var cc=aS(cd,cf,"link");aY(cc,(ce?0:bl),ce)}function bT(b9,b8){if(b9!==""){return b9+b8.charAt(0).toUpperCase()+b8.slice(1)}return b8}function aL(cd){var cc,b8,cb=["","webkit","ms","moz"],ca;if(!aZ){for(b8=0;b8<cb.length;b8++){ca=cb[b8];if(Object.prototype.hasOwnProperty.call(u,bT(ca,"hidden"))){if(u[bT(ca,"visibilityState")]==="prerender"){cc=true -}break}}}if(cc){U(u,ca+"visibilitychange",function b9(){u.removeEventListener(ca+"visibilitychange",b9,false);cd()});return}cd()}function aP(b8){if(u.readyState==="complete"){b8()}else{if(G.addEventListener){G.addEventListener("load",b8)}else{if(G.attachEvent){G.attachEvent("onLoad",b8)}}}}function aA(b9){var b8=false;if(u.attachEvent){b8=u.readyState==="complete"}else{b8=u.readyState!=="loading"}if(b8){b9()}else{if(u.addEventListener){u.addEventListener("DOMContentLoaded",b9)}else{if(u.attachEvent){u.attachEvent("onreadystatechange",b9)}}}}function bB(b8){var b9=bg(b8);if(b9&&b9.type){b9.href=h(b9.href);bM(b9.href,b9.type,undefined,null,b8)}}function b6(b8){var b9,ca;b8=b8||G.event;b9=b8.which||b8.button;ca=b8.target||b8.srcElement;if(b8.type==="click"){if(ca){bB(ca)}}else{if(b8.type==="mousedown"){if((b9===1||b9===2)&&ca){bh=b9;at=ca}else{bh=at=null}}else{if(b8.type==="mouseup"){if(b9===bh&&ca===at){bB(ca)}bh=at=null}}}}function by(b9,b8){if(b8){U(b9,"mouseup",b6,false);U(b9,"mousedown",b6,false) -}else{U(b9,"click",b6,false)}}function bb(b9){if(!bx){bx=true;var ca,b8=aH(ai,"ignore"),cb=u.links;if(cb){for(ca=0;ca<cb.length;ca++){if(!b8.test(cb[ca].className)){by(cb[ca],b9)}}}}}function bt(ca,cc,cd){if(ay){return true}ay=true;var ce=false;var cb,b9;function b8(){ce=true}aP(function(){function cf(ch){setTimeout(function(){if(!ay){return}ce=false;cd.trackVisibleContentImpressions();cf(ch)},ch)}function cg(ch){setTimeout(function(){if(!ay){return}if(ce){ce=false;cd.trackVisibleContentImpressions()}cg(ch)},ch)}if(ca){cb=["scroll","resize"];for(b9=0;b9<cb.length;b9++){if(u.addEventListener){u.addEventListener(cb[b9],b8)}else{G.attachEvent("on"+cb[b9],b8)}}cg(100)}if(cc&&cc>0){cc=parseInt(cc,10);cf(cc)}})}function bY(){var b9,ca,cb={pdf:"application/pdf",qt:"video/quicktime",realp:"audio/x-pn-realaudio-plugin",wma:"application/x-mplayer2",dir:"application/x-director",fla:"application/x-shockwave-flash",java:"application/x-java-vm",gears:"application/x-googlegears",ag:"application/x-silverlight"},b8=(new RegExp("Mac OS X.*Safari/")).test(e.userAgent)?G.devicePixelRatio||1:1; -if(!((new RegExp("MSIE")).test(e.userAgent))){if(e.mimeTypes&&e.mimeTypes.length){for(b9 in cb){if(Object.prototype.hasOwnProperty.call(cb,b9)){ca=e.mimeTypes[cb[b9]];bR[b9]=(ca&&ca.enabledPlugin)?"1":"0"}}}if(typeof navigator.javaEnabled!=="unknown"&&w(e.javaEnabled)&&e.javaEnabled()){bR.java="1"}if(q(G.GearsFactory)){bR.gears="1"}bR.cookie=ae()}bR.res=K.width*b8+"x"+K.height*b8}bY();bi();return{getVisitorId:function(){return(Y())[1]},getVisitorInfo:function(){return Y()},getAttributionInfo:function(){return X()},getAttributionCampaignName:function(){return X()[0]},getAttributionCampaignKeyword:function(){return X()[1]},getAttributionReferrerTimestamp:function(){return X()[2]},getAttributionReferrerUrl:function(){return X()[3]},setTrackerUrl:function(b8){aa=b8},setSiteId:function(b8){bQ=b8},setUserId:function(b8){aJ=b8},getUserId:function(){return aJ},setCustomData:function(b8,b9){if(J(b8)){an=b8}else{if(!an){an={}}an[b8]=b9}},getCustomData:function(){return an},setCustomRequestProcessing:function(b8){au=b8 -},appendToTrackingUrl:function(b8){bm=b8},getRequest:function(b8){return aS(b8)},addPlugin:function(b8,b9){a[b8]=b9},setCustomVariable:function(b9,b8,cc,ca){var cb;if(!w(ca)){ca="visit"}if(!w(b8)){return}if(!w(cc)){cc=""}if(b9>0){b8=!n(b8)?String(b8):b8;cc=!n(cc)?String(cc):cc;cb=[b8.slice(0,bV),cc.slice(0,bV)];if(ca==="visit"||ca===2){Z();ag[b9]=cb}else{if(ca==="page"||ca===3){be[b9]=cb}else{if(ca==="event"){ab[b9]=cb}}}}},getCustomVariable:function(b9,ca){var b8;if(!w(ca)){ca="visit"}if(ca==="page"||ca===3){b8=be[b9]}else{if(ca==="event"){b8=ab[b9]}else{if(ca==="visit"||ca===2){Z();b8=ag[b9]}}}if(!w(b8)||(b8&&b8[0]==="")){return false}return b8},deleteCustomVariable:function(b8,b9){if(this.getCustomVariable(b8,b9)){this.setCustomVariable(b8,"","",b9)}},storeCustomVariablesInCookie:function(){a4=true},setLinkTrackingTimer:function(b8){bl=b8},setDownloadExtensions:function(b8){aT=b8},addDownloadExtensions:function(b8){aT+="|"+b8},setDomains:function(b8){bn=n(b8)?[b8]:b8;bn.push(bK)},setIgnoreClasses:function(b8){ai=n(b8)?[b8]:b8 -},setRequestMethod:function(b8){bq=b8||bo},setRequestContentType:function(b8){aK=b8||ba},setReferrerUrl:function(b8){bs=b8},setCustomUrl:function(b8){a5=bJ(b2,b8)},setDocumentTitle:function(b8){aR=b8},setAPIUrl:function(b8){ax=b8},setDownloadClasses:function(b8){bd=n(b8)?[b8]:b8},setLinkClasses:function(b8){aC=n(b8)?[b8]:b8},setCampaignNameKey:function(b8){aX=n(b8)?[b8]:b8},setCampaignKeywordKey:function(b8){aO=n(b8)?[b8]:b8},discardHashTag:function(b8){ak=b8},setCookieNamePrefix:function(b8){b0=b8;ag=ar()},setCookieDomain:function(b8){aq=y(b8);bi()},setCookiePath:function(b8){b1=b8;bi()},setVisitorCookieTimeout:function(b8){aw=b8*1000},setSessionCookieTimeout:function(b8){az=b8*1000},setReferralCookieTimeout:function(b8){a8=b8*1000},setConversionAttributionFirstReferrer:function(b8){a3=b8},disableCookies:function(){ao=true;bR.cookie="0"},deleteCookies:function(){W()},setDoNotTrack:function(b9){var b8=e.doNotTrack||e.msDoNotTrack;bU=b9&&(b8==="yes"||b8==="1");if(bU){this.disableCookies() -}},addListener:function(b9,b8){by(b9,b8)},enableLinkTracking:function(b8){bS=true;if(p){bb(b8)}else{E.push(function(){bb(b8)})}},enableJSErrorTracking:function(){if(b5){return}b5=true;var b8=G.onerror;G.onerror=function(cd,cb,ca,cc,b9){aL(function(){var ce="JavaScript Errors";var cf=cb+":"+ca;if(cc){cf+=":"+cc}al(ce,cf,cd)});if(b8){return b8(cd,cb,ca,cc,b9)}return false}},disablePerformanceTracking:function(){a0=false},setGenerationTimeMs:function(b8){aI=parseInt(b8,10)},setHeartBeatTimer:function(ca,b9){var b8=new Date();aj=b8.getTime()+ca*1000;aG=b9*1000},killFrame:function(){if(G.location!==G.top.location){G.top.location=G.location}},redirectFile:function(b8){if(G.location.protocol==="file:"){G.location=b8}},setCountPreRendered:function(b8){aZ=b8},trackGoal:function(b8,ca,b9){aL(function(){bj(b8,ca,b9)})},trackLink:function(b9,b8,cb,ca){aL(function(){bM(b9,b8,cb,ca)})},trackPageView:function(b8,b9){ah=[];if(A(bQ)){aL(function(){M(aa,ax,bQ)})}else{aL(function(){bc(b8,b9)})}},trackAllContentImpressions:function(){if(A(bQ)){return -}aL(function(){aA(function(){var b8=m.findContentNodes();var b9=aV(b8);ap(b9,bl)})})},trackVisibleContentImpressions:function(b8,b9){if(A(bQ)){return}if(!w(b8)){b8=true}if(!w(b9)){b9=750}bt(b8,b9,this);aL(function(){aP(function(){var ca=m.findContentNodes();var cb=bz(ca);ap(cb,bl)})})},trackContentImpression:function(ca,b8,b9){if(A(bQ)){return}if(!ca){return}b8=b8||"Unknown";aL(function(){var cb=bL(ca,b8,b9);aY(cb,bl)})},trackContentImpressionsWithinNode:function(b8){if(A(bQ)||!b8){return}aL(function(){if(ay){aP(function(){var b9=m.findContentNodesWithinNode(b8);var ca=bz(b9);ap(ca,bl)})}else{aA(function(){var b9=m.findContentNodesWithinNode(b8);var ca=aV(b9);ap(ca,bl)})}})},trackContentInteraction:function(ca,cb,b8,b9){if(A(bQ)){return}if(!ca||!cb){return}b8=b8||"Unknown";aL(function(){var cc=b4(ca,cb,b8,b9);aY(cc,bl)})},trackContentInteractionNode:function(b9,b8){if(A(bQ)||!b9){return}aL(function(){var ca=aU(b9,b8);aY(ca,bl)})},trackEvent:function(b9,cb,b8,ca){aL(function(){al(b9,cb,b8,ca) -})},trackSiteSearch:function(b8,ca,b9){aL(function(){aM(b8,ca,b9)})},setEcommerceView:function(cb,b8,ca,b9){if(!w(ca)||!ca.length){ca=""}else{if(ca instanceof Array){ca=JSON2.stringify(ca)}}be[5]=["_pkc",ca];if(w(b9)&&String(b9).length){be[2]=["_pkp",b9]}if((!w(cb)||!cb.length)&&(!w(b8)||!b8.length)){return}if(w(cb)&&cb.length){be[3]=["_pks",cb]}if(!w(b8)||!b8.length){b8=""}be[4]=["_pkn",b8]},addEcommerceItem:function(cc,b8,ca,b9,cb){if(cc.length){bC[cc]=[cc,b8,ca,b9,cb]}},trackEcommerceOrder:function(b8,cc,cb,ca,b9,cd){bG(b8,cc,cb,ca,b9,cd)},trackEcommerceCartUpdate:function(b8){bZ(b8)}}}function v(){return{push:R}}U(G,"beforeunload",S,false);o();Date.prototype.getTimeAlias=Date.prototype.getTime;L=new D();var r={setTrackerUrl:1,setAPIUrl:1,setSiteId:1,disableCookies:1,enableLinkTracking:1};var d;for(t=0;t<_paq.length;t++){d=_paq[t][0];if(r[d]){R(_paq[t]);delete _paq[t];if(r[d]>1){if(console!==undefined&&console&&console.error){console.error("The method "+d+' is registered more than once in "_paq" variable. Only the last call has an effect. Please have a look at the multiple Piwik trackers documentation: http://developer.piwik.org/api-reference/tracking-javascript#multiple-piwik-trackers') +G.name=W+"###"+ac+"###"+X}var ab=G.name.split("###");return ab.length===3&&ab[0]===W}function M(X,ac,Z){var ab=G.name.split("###"),aa=ab[1],W=ab[2],Y=B(X,ac);i(Y+"plugins/Overlay/client/client.js?v=1",function(){Piwik_Overlay_Client.initialize(Y,Z,aa,W)})}function D(aE,bl,bJ){var ad=N(u.domain,G.location.href,x()),bL=y(ad[0]),b3=ad[1],bt=ad[2],b6=false,bp="GET",br=bp,bb="application/x-www-form-urlencoded; charset=UTF-8",aK=bb,aa=aE||"",ax="",bn="",bR=bl||"",aJ="",a6,aS=u.title,aU="7z|aac|apk|ar[cj]|as[fx]|avi|azw3|bin|csv|deb|dmg|docx?|epub|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mobi|mp(2|3|4|e?g)|mov(ie)?|ms[ip]|od[bfgpst]|og[gv]|pdf|phps|png|pptx?|qtm?|ra[mr]?|rpm|sea|sit|tar|t?bz2?|tgz|torrent|txt|wav|wm[av]|wpd||xlsx?|xml|z|zip",bo=[bL],ai=[],be=[],aC=[],bm=500,aj,aG,ak,an,aY=["pk_campaign","piwik_campaign","utm_campaign","utm_source","utm_medium"],aP=["pk_kwd","piwik_kwd","utm_term"],b1="_pk_",aq,b2,ao=false,bV,a0,a4,aw=33955200000,az=1800000,a9=15768000000,a1=true,aI=0,a5=false,ag=false,au,bf={},ab={},bW=200,bD={},bS={},ah=[],ay=false,a8=false,by=false,bT=false,bv=false,bs,bi,at,aX=T,bx,a2=bJ; +function bF(cf,cc,cb,ce,ca,cd){if(ao){return}var b9;if(cb){b9=new Date();b9.setTime(b9.getTime()+cb)}u.cookie=cf+"="+l(cc)+(cb?";expires="+b9.toGMTString():"")+";path="+(ce||"/")+(ca?";domain="+ca:"")+(cd?";secure":"")}function av(cb){if(ao){return 0}var b9=new RegExp("(^|;)[ ]*"+cb+"=([^;]*)"),ca=b9.exec(u.cookie);return ca?F(ca[2]):0}function bX(b9){var ca;if(ak){ca=new RegExp("#.*");return b9.replace(ca,"")}return b9}function bK(cb,b9){var cc=k(b9),ca;if(cc){return b9}if(b9.slice(0,1)==="/"){return k(cb)+"://"+b(cb)+b9}cb=bX(cb);ca=cb.indexOf("?");if(ca>=0){cb=cb.slice(0,ca)}ca=cb.lastIndexOf("/");if(ca!==cb.length-1){cb=cb.slice(0,ca+1)}return cb+b9}function bq(cc){var ca,b9,cb;for(ca=0;ca<bo.length;ca++){b9=y(bo[ca].toLowerCase());if(cc===b9){return true}if(b9.slice(0,1)==="."){if(cc===b9.slice(1)){return true}cb=cc.length-b9.length;if((cb>0)&&(cc.slice(cb)===b9)){return true}}}return false}function b8(b9,cb){var ca=new Image(1,1);ca.onload=function(){t=0;if(typeof cb==="function"){cb() +}};ca.src=aa+(aa.indexOf("?")<0?"?":"&")+b9}function bG(ca,cd,b9){if(!w(b9)||null===b9){b9=true}try{var cc=G.XMLHttpRequest?new G.XMLHttpRequest():G.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;cc.open("POST",aa,true);cc.onreadystatechange=function(){if(this.readyState===4&&!(this.status>=200&&this.status<300)&&b9){b8(ca,cd)}else{if(typeof cd==="function"){cd()}}};cc.setRequestHeader("Content-Type",aK);cc.send(ca)}catch(cb){if(b9){b8(ca,cd)}}}function bY(ca){var b9=new Date();var cb=b9.getTime()+ca;if(!j||cb>j){j=cb}}function aD(cd){var ca=new Date();var b9=ca.getTime();if(a8&&b9<a8){var cb=a8-b9;setTimeout(cd,cb);bY(cb+50);a8+=50;return}if(a8===false){var cc=800;a8=b9+cc}cd()}function aZ(ca,b9,cb){if(!bV&&ca){aD(function(){if(br==="POST"){bG(ca,cb)}else{b8(ca,cb)}bY(b9)})}}function ba(b9){if(bV){return false}return(b9&&b9.length)}function ap(cb,b9){if(!ba(cb)){return}var ca='{"requests":["?'+cb.join('","?')+'"]}';aD(function(){bG(ca,null,false);bY(b9)})}function bE(b9){return b1+b9+"."+bR+"."+bx +}function ae(){if(ao){return"0"}if(!w(e.cookieEnabled)){var b9=bE("testcookie");bF(b9,"1");return av(b9)==="1"?"1":"0"}return e.cookieEnabled?"1":"0"}function bj(){bx=aX((aq||bL)+(b2||"/")).slice(0,4)}function ar(){var ca=bE("cvar"),b9=av(ca);if(b9.length){b9=JSON2.parse(b9);if(J(b9)){return b9}}return{}}function Z(){if(ag===false){ag=ar()}}function bQ(){var b9=new Date();bs=b9.getTime()}function am(cd,ca,b9,cc,cb,ce){bF(bE("id"),cd+"."+ca+"."+b9+"."+cc+"."+cb+"."+ce,aw,b2,aq)}function Y(){var ca=new Date(),b9=Math.round(ca.getTime()/1000),cc=av(bE("id")),cb;if(cc){cb=cc.split(".");cb.unshift("0")}else{if(!a2){a2=aX((e.userAgent||"")+(e.platform||"")+JSON2.stringify(bS)+ca.getTime()+Math.random()).slice(0,16)}cb=["1",a2,b9,0,b9,"",""]}return cb}function X(){var b9=av(bE("ref"));if(b9.length){try{b9=JSON2.parse(b9);if(J(b9)){return b9}}catch(ca){}}return["","",0,""]}function W(){var b9=ao;ao=false;bF(bE("id"),"",-86400,b2,aq);bF(bE("ses"),"",-86400,b2,aq);bF(bE("cvar"),"",-86400,b2,aq);bF(bE("ref"),"",-86400,b2,aq); +ao=b9}function bP(cd){if(!cd||!J(cd)){return}var cc=[];var cb;for(cb in cd){if(Object.prototype.hasOwnProperty.call(cd,cb)){cc.push(cb)}}var ce={};cc.sort();var b9=cc.length;var ca;for(ca=0;ca<b9;ca++){ce[cc[ca]]=cd[cc[ca]]}return ce}function aT(cb,cz,cA,cc){var cx,ca=new Date(),cj=Math.round(ca.getTime()/1000),cD,cy,ce,cp,cu,ci,cs,cf,cw,cd=1024,cF,cm,ct=ag,ck=bE("ses"),cl=bE("ref"),cG=bE("cvar"),cq=Y(),co=av(ck),cv=X(),cC=a6||b3,cg,b9;if(ao){W()}if(bV){return""}cD=cq[0];cy=cq[1];cp=cq[2];ce=cq[3];cu=cq[4];ci=cq[5];if(!w(cq[6])){cq[6]=""}cs=cq[6];if(!w(cc)){cc=""}var cn=u.characterSet||u.charset;if(!cn||cn.toLowerCase()==="utf-8"){cn=null}cg=cv[0];b9=cv[1];cf=cv[2];cw=cv[3];if(!co){var cB=az/1000;if(!ci||(cj-ci)>cB){ce++;ci=cu}if(!a4||!cg.length){for(cx in aY){if(Object.prototype.hasOwnProperty.call(aY,cx)){cg=I(cC,aY[cx]);if(cg.length){break}}}for(cx in aP){if(Object.prototype.hasOwnProperty.call(aP,cx)){b9=I(cC,aP[cx]);if(b9.length){break}}}}cF=b(bt);cm=cw.length?b(cw):"";if(cF.length&&!bq(cF)&&(!a4||!cm.length||bq(cm))){cw=bt +}if(cw.length||cg.length){cf=cj;cv=[cg,b9,cf,bX(cw.slice(0,cd))];bF(cl,JSON2.stringify(cv),a9,b2,aq)}}cb+="&idsite="+bR+"&rec=1&r="+String(Math.random()).slice(2,8)+"&h="+ca.getHours()+"&m="+ca.getMinutes()+"&s="+ca.getSeconds()+"&url="+l(bX(cC))+(bt.length?"&urlref="+l(bX(bt)):"")+(aJ.length?"&uid="+l(aJ):"")+"&_id="+cy+"&_idts="+cp+"&_idvc="+ce+"&_idn="+cD+(cg.length?"&_rcn="+l(cg):"")+(b9.length?"&_rck="+l(b9):"")+"&_refts="+cf+"&_viewts="+ci+(String(cs).length?"&_ects="+cs:"")+(String(cw).length?"&_ref="+l(bX(cw.slice(0,cd))):"")+(cn?"&cs="+l(cn):"");for(cx in bS){if(Object.prototype.hasOwnProperty.call(bS,cx)){cb+="&"+cx+"="+bS[cx]}}if(cz){cb+="&data="+l(JSON2.stringify(cz))}else{if(an){cb+="&data="+l(JSON2.stringify(an))}}function ch(cH,cI){var cJ=JSON2.stringify(cH);if(cJ.length>2){return"&"+cI+"="+l(cJ)}return""}var cE=bP(bf);var cr=bP(ab);cb+=ch(cE,"cvar");cb+=ch(cr,"e_cvar");if(ag){cb+=ch(ag,"_cvar");for(cx in ct){if(Object.prototype.hasOwnProperty.call(ct,cx)){if(ag[cx][0]===""||ag[cx][1]===""){delete ag[cx] +}}}if(a5){bF(cG,JSON2.stringify(ag),az,b2,aq)}}if(a1){if(aI){cb+=">_ms="+aI}else{if(f&&f.timing&&f.timing.requestStart&&f.timing.responseEnd){cb+=">_ms="+(f.timing.responseEnd-f.timing.requestStart)}}}am(cy,cp,ce,cj,ci,w(cc)&&String(cc).length?cc:cs);bF(ck,"*",az,b2,aq);cb+=O(cA);if(bn.length){cb+="&"+bn}if(q(au)){cb=au(cb)}return cb}function bI(cc,cb,cg,cd,b9,cj){var ce="idgoal=0",cf,ca=new Date(),ch=[],ci;if(String(cc).length){ce+="&ec_id="+l(cc);cf=Math.round(ca.getTime()/1000)}ce+="&revenue="+cb;if(String(cg).length){ce+="&ec_st="+cg}if(String(cd).length){ce+="&ec_tx="+cd}if(String(b9).length){ce+="&ec_sh="+b9}if(String(cj).length){ce+="&ec_dt="+cj}if(bD){for(ci in bD){if(Object.prototype.hasOwnProperty.call(bD,ci)){if(!w(bD[ci][1])){bD[ci][1]=""}if(!w(bD[ci][2])){bD[ci][2]=""}if(!w(bD[ci][3])||String(bD[ci][3]).length===0){bD[ci][3]=0}if(!w(bD[ci][4])||String(bD[ci][4]).length===0){bD[ci][4]=1}ch.push(bD[ci])}}ce+="&ec_items="+l(JSON2.stringify(ch))}ce=aT(ce,an,"ecommerce",cf); +aZ(ce,bm)}function bH(b9,cd,cc,cb,ca,ce){if(String(b9).length&&w(cd)){bI(b9,cd,cc,cb,ca,ce)}}function b0(b9){if(w(b9)){bI("",b9,"","","","")}}function bd(cc,cd){var b9=new Date(),cb=aT("action_name="+l(V(cc||aS)),cd,"log");aZ(cb,bm);if(aj&&aG&&!bv){bv=true;U(u,"click",bQ);U(u,"mouseup",bQ);U(u,"mousedown",bQ);U(u,"mousemove",bQ);U(u,"mousewheel",bQ);U(G,"DOMMouseScroll",bQ);U(G,"scroll",bQ);U(u,"keypress",bQ);U(u,"keydown",bQ);U(u,"keyup",bQ);U(G,"resize",bQ);U(G,"focus",bQ);U(G,"blur",bQ);bs=b9.getTime();setTimeout(function ca(){var ce;b9=new Date();if((bs+aG)>b9.getTime()){if(aj<b9.getTime()){ce=aT("ping=1",cd,"ping");aZ(ce,bm)}setTimeout(ca,aG)}},aG)}}function aH(cb,ca){var cc,b9="(^| )(piwik[_-]"+ca;if(cb){for(cc=0;cc<cb.length;cc++){b9+="|"+cb[cc]}}b9+=")( |$)";return new RegExp(b9)}function bB(b9){return(aa&&b9&&0===String(b9).indexOf(aa))}function bO(cc,b9,cd){if(bB(b9)){return 0}var cb=aH(be,"download"),ca=aH(aC,"link"),ce=new RegExp("\\.("+aU+")([?&#]|$)","i");if(ca.test(cc)){return"link" +}if(cb.test(cc)||ce.test(b9)){return"download"}if(cd){return 0}return"link"}function a7(ca){var b9;b9=ca.parentNode;while(b9!==null&&w(b9)){if(Q.isLinkElement(ca)){break}ca=b9;b9=ca.parentNode}return ca}function bh(cd){cd=a7(cd);if(!Q.hasNodeAttribute(cd,"href")){return}if(!w(cd.href)){return}var cc=Q.getAttributeValueFromNode(cd,"href");if(bB(cc)){return}var ce=cd.hostname||b(cd.href);var cf=ce.toLowerCase();var ca=cd.href.replace(ce,cf);var cb=new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto):","i");if(!cb.test(ca)){var b9=bO(cd.className,ca,bq(cf));if(b9){return{type:b9,href:ca}}}}function b5(b9,ca,cb,cc){var cd=m.buildInteractionRequestParams(b9,ca,cb,cc);if(!cd){return}return aT(cd,null,"contentInteraction")}function b4(cb,cc,cg,b9,ca){if(!w(cb)){return}if(bB(cb)){return cb}var ce=m.toAbsoluteUrl(cb);var cd="redirecturl="+l(ce)+"&";cd+=b5(cc,cg,b9,(ca||cb));var cf="&";if(aa.indexOf("?")<0){cf="?"}return aa+cf+cd}function a3(b9,ca){if(!b9||!ca){return false +}var cb=m.findTargetNode(b9);if(m.shouldIgnoreInteraction(cb)){return false}cb=m.findTargetNodeNoDefault(b9);if(cb&&!H(cb,ca)){return false}return true}function aR(cb,ca,cd){if(!cb){return}var b9=m.findParentContentNode(cb);if(!b9){return}if(!a3(b9,cb)){return}var cc=m.buildContentBlock(b9);if(!cc){return}if(!cc.target&&cd){cc.target=cd}return m.buildInteractionRequestParams(ca,cc.name,cc.piece,cc.target)}function aO(ca){if(!ah||!ah.length){return false}var b9,cb;for(b9=0;b9<ah.length;b9++){cb=ah[b9];if(cb&&cb.name===ca.name&&cb.piece===ca.piece&&cb.target===ca.target){return true}}return false}function ac(cc){if(!cc){return false}var cf=m.findTargetNode(cc);if(!cf||m.shouldIgnoreInteraction(cf)){return false}var cg=bh(cf);if(bT&&cg&&cg.type){return false}if(Q.isLinkElement(cf)&&Q.hasNodeAttributeWithValue(cf,"href")){var b9=String(Q.getAttributeValueFromNode(cf,"href"));if(0===b9.indexOf("#")){return false}if(bB(b9)){return true}if(!m.isUrlToCurrentDomain(b9)){return false}var cd=m.buildContentBlock(cc); +if(!cd){return}var cb=cd.name;var ch=cd.piece;var ce=cd.target;if(!Q.hasNodeAttributeWithValue(cf,m.CONTENT_TARGET_ATTR)||cf.wasContentTargetAttrReplaced){cf.wasContentTargetAttrReplaced=true;ce=m.toAbsoluteUrl(b9);Q.setAnyAttribute(cf,m.CONTENT_TARGET_ATTR,ce)}var ca=b4(b9,"click",cb,ch,ce);m.setHrefAttribute(cf,ca);return true}return false}function af(ca){if(!ca||!ca.length){return}var b9;for(b9=0;b9<ca.length;b9++){ac(ca[b9])}}function bg(b9){return function(ca){if(!b9){return}var cd=m.findParentContentNode(b9);var ce;if(ca){ce=ca.target||ca.srcElement}if(!ce){ce=b9}if(!a3(cd,ce)){return}bY(bm);if(Q.isLinkElement(b9)&&Q.hasNodeAttributeWithValue(b9,"href")&&Q.hasNodeAttributeWithValue(b9,m.CONTENT_TARGET_ATTR)){var cb=Q.getAttributeValueFromNode(b9,"href");if(!bB(cb)&&b9.wasContentTargetAttrReplaced){Q.setAnyAttribute(b9,m.CONTENT_TARGET_ATTR,"")}}var ci=bh(b9);if(by&&ci&&ci.type){return ci.type}if(ac(cd)){return"href"}var cf=m.buildContentBlock(cd);if(!cf){return}var cc=cf.name;var cj=cf.piece; +var ch=cf.target;var cg=b5("click",cc,cj,ch);aZ(cg,bm);return cg}}function aF(cb){if(!cb||!cb.length){return}var b9,ca;for(b9=0;b9<cb.length;b9++){ca=m.findTargetNode(cb[b9]);if(ca&&!ca.contentInteractionTrackingSetupDone){ca.contentInteractionTrackingSetupDone=true;U(ca,"click",bg(ca))}}}function aB(cb,cc){if(!cb||!cb.length){return[]}var b9,ca;for(b9=0;b9<cb.length;b9++){if(aO(cb[b9])){cb.splice(b9,1);b9--}else{ah.push(cb[b9])}}if(!cb||!cb.length){return[]}af(cc);aF(cc);var cd=[];for(b9=0;b9<cb.length;b9++){ca=aT(m.buildImpressionRequestParams(cb[b9].name,cb[b9].piece,cb[b9].target),undefined,"contentImpressions");cd.push(ca)}return cd}function aW(ca){var b9=m.collectContent(ca);return aB(b9,ca)}function bA(ca){if(!ca||!ca.length){return[]}var b9;for(b9=0;b9<ca.length;b9++){if(!m.isNodeVisible(ca[b9])){ca.splice(b9,1);b9--}}if(!ca||!ca.length){return[]}return aW(ca)}function bM(cb,b9,ca){var cc=m.buildImpressionRequestParams(cb,b9,ca);return aT(cc,null,"contentImpression")}function aV(cc,ca){if(!cc){return +}var b9=m.findParentContentNode(cc);var cb=m.buildContentBlock(b9);if(!cb){return}if(!ca){ca="Unknown"}return b5(ca,cb.name,cb.piece,cb.target)}function bw(ca,cc,b9,cb){return"e_c="+l(ca)+"&e_a="+l(cc)+(w(b9)?"&e_n="+l(b9):"")+(w(cb)?"&e_v="+l(cb):"")}function al(cb,cd,b9,cc,ce){if(String(cb).length===0||String(cd).length===0){return false}var ca=aT(bw(cb,cd,b9,cc),ce,"event");aZ(ca,bm)}function aN(b9,cc,ca,cd){var cb=aT("search="+l(b9)+(cc?"&search_cat="+l(cc):"")+(w(ca)?"&search_count="+ca:""),cd,"sitesearch");aZ(cb,bm)}function bk(b9,cc,cb){var ca=aT("idgoal="+b9+(cc?"&revenue="+cc:""),cb,"goal");aZ(ca,bm)}function bN(cc,b9,cg,cf,cb){var ce=b9+"="+l(bX(cc));var ca=aR(cb,"click",cc);if(ca){ce+="&"+ca}var cd=aT(ce,cg,"link");aZ(cd,(cf?0:bm),cf)}function bU(ca,b9){if(ca!==""){return ca+b9.charAt(0).toUpperCase()+b9.slice(1)}return b9}function aM(ce){var cd,b9,cc=["","webkit","ms","moz"],cb;if(!a0){for(b9=0;b9<cc.length;b9++){cb=cc[b9];if(Object.prototype.hasOwnProperty.call(u,bU(cb,"hidden"))){if(u[bU(cb,"visibilityState")]==="prerender"){cd=true +}break}}}if(cd){U(u,cb+"visibilitychange",function ca(){u.removeEventListener(cb+"visibilitychange",ca,false);ce()});return}ce()}function aQ(b9){if(u.readyState==="complete"){b9()}else{if(G.addEventListener){G.addEventListener("load",b9)}else{if(G.attachEvent){G.attachEvent("onLoad",b9)}}}}function aA(ca){var b9=false;if(u.attachEvent){b9=u.readyState==="complete"}else{b9=u.readyState!=="loading"}if(b9){ca()}else{if(u.addEventListener){u.addEventListener("DOMContentLoaded",ca)}else{if(u.attachEvent){u.attachEvent("onreadystatechange",ca)}}}}function bC(b9){var ca=bh(b9);if(ca&&ca.type){ca.href=h(ca.href);bN(ca.href,ca.type,undefined,null,b9)}}function b7(b9){var ca,cb;b9=b9||G.event;ca=b9.which||b9.button;cb=b9.target||b9.srcElement;if(b9.type==="click"){if(cb){bC(cb)}}else{if(b9.type==="mousedown"){if((ca===1||ca===2)&&cb){bi=ca;at=cb}else{bi=at=null}}else{if(b9.type==="mouseup"){if(ca===bi&&cb===at){bC(cb)}bi=at=null}}}}function bz(ca,b9){if(b9){U(ca,"mouseup",b7,false);U(ca,"mousedown",b7,false) +}else{U(ca,"click",b7,false)}}function bc(ca){if(!by){by=true;var cb,b9=aH(ai,"ignore"),cc=u.links;if(cc){for(cb=0;cb<cc.length;cb++){if(!b9.test(cc[cb].className)){bz(cc[cb],ca)}}}}}function bu(cb,cd,ce){if(ay){return true}ay=true;var cf=false;var cc,ca;function b9(){cf=true}aQ(function(){function cg(ci){setTimeout(function(){if(!ay){return}cf=false;ce.trackVisibleContentImpressions();cg(ci)},ci)}function ch(ci){setTimeout(function(){if(!ay){return}if(cf){cf=false;ce.trackVisibleContentImpressions()}ch(ci)},ci)}if(cb){cc=["scroll","resize"];for(ca=0;ca<cc.length;ca++){if(u.addEventListener){u.addEventListener(cc[ca],b9)}else{G.attachEvent("on"+cc[ca],b9)}}ch(100)}if(cd&&cd>0){cd=parseInt(cd,10);cg(cd)}})}function bZ(){var ca,cb,cc={pdf:"application/pdf",qt:"video/quicktime",realp:"audio/x-pn-realaudio-plugin",wma:"application/x-mplayer2",dir:"application/x-director",fla:"application/x-shockwave-flash",java:"application/x-java-vm",gears:"application/x-googlegears",ag:"application/x-silverlight"},b9=(new RegExp("Mac OS X.*Safari/")).test(e.userAgent)?G.devicePixelRatio||1:1; +if(!((new RegExp("MSIE")).test(e.userAgent))){if(e.mimeTypes&&e.mimeTypes.length){for(ca in cc){if(Object.prototype.hasOwnProperty.call(cc,ca)){cb=e.mimeTypes[cc[ca]];bS[ca]=(cb&&cb.enabledPlugin)?"1":"0"}}}if(typeof navigator.javaEnabled!=="unknown"&&w(e.javaEnabled)&&e.javaEnabled()){bS.java="1"}if(q(G.GearsFactory)){bS.gears="1"}bS.cookie=ae()}bS.res=K.width*b9+"x"+K.height*b9}function aL(){var cd=new Date(),ca=cd.getTime(),cc=Y();var b9=parseInt(cc[2],10);var cb=(b9*1000)+aw-ca;return cb}bZ();bj();aw=aL();return{getVisitorId:function(){return(Y())[1]},getVisitorInfo:function(){return Y()},getAttributionInfo:function(){return X()},getAttributionCampaignName:function(){return X()[0]},getAttributionCampaignKeyword:function(){return X()[1]},getAttributionReferrerTimestamp:function(){return X()[2]},getAttributionReferrerUrl:function(){return X()[3]},setTrackerUrl:function(b9){aa=b9},setSiteId:function(b9){bR=b9},setUserId:function(b9){aJ=b9},getUserId:function(){return aJ},setCustomData:function(b9,ca){if(J(b9)){an=b9 +}else{if(!an){an={}}an[b9]=ca}},getCustomData:function(){return an},setCustomRequestProcessing:function(b9){au=b9},appendToTrackingUrl:function(b9){bn=b9},getRequest:function(b9){return aT(b9)},addPlugin:function(b9,ca){a[b9]=ca},setCustomVariable:function(ca,b9,cd,cb){var cc;if(!w(cb)){cb="visit"}if(!w(b9)){return}if(!w(cd)){cd=""}if(ca>0){b9=!n(b9)?String(b9):b9;cd=!n(cd)?String(cd):cd;cc=[b9.slice(0,bW),cd.slice(0,bW)];if(cb==="visit"||cb===2){Z();ag[ca]=cc}else{if(cb==="page"||cb===3){bf[ca]=cc}else{if(cb==="event"){ab[ca]=cc}}}}},getCustomVariable:function(ca,cb){var b9;if(!w(cb)){cb="visit"}if(cb==="page"||cb===3){b9=bf[ca]}else{if(cb==="event"){b9=ab[ca]}else{if(cb==="visit"||cb===2){Z();b9=ag[ca]}}}if(!w(b9)||(b9&&b9[0]==="")){return false}return b9},deleteCustomVariable:function(b9,ca){if(this.getCustomVariable(b9,ca)){this.setCustomVariable(b9,"","",ca)}},storeCustomVariablesInCookie:function(){a5=true},setLinkTrackingTimer:function(b9){bm=b9},setDownloadExtensions:function(b9){aU=b9 +},addDownloadExtensions:function(b9){aU+="|"+b9},setDomains:function(b9){bo=n(b9)?[b9]:b9;bo.push(bL)},setIgnoreClasses:function(b9){ai=n(b9)?[b9]:b9},setRequestMethod:function(b9){br=b9||bp},setRequestContentType:function(b9){aK=b9||bb},setReferrerUrl:function(b9){bt=b9},setCustomUrl:function(b9){a6=bK(b3,b9)},setDocumentTitle:function(b9){aS=b9},setAPIUrl:function(b9){ax=b9},setDownloadClasses:function(b9){be=n(b9)?[b9]:b9},setLinkClasses:function(b9){aC=n(b9)?[b9]:b9},setCampaignNameKey:function(b9){aY=n(b9)?[b9]:b9},setCampaignKeywordKey:function(b9){aP=n(b9)?[b9]:b9},discardHashTag:function(b9){ak=b9},setCookieNamePrefix:function(b9){b1=b9;ag=ar()},setCookieDomain:function(b9){aq=y(b9);bj()},setCookiePath:function(b9){b2=b9;bj()},setVisitorCookieTimeout:function(b9){aw=b9*1000},setSessionCookieTimeout:function(b9){az=b9*1000},setReferralCookieTimeout:function(b9){a9=b9*1000},setConversionAttributionFirstReferrer:function(b9){a4=b9},disableCookies:function(){ao=true;bS.cookie="0"},deleteCookies:function(){W() +},setDoNotTrack:function(ca){var b9=e.doNotTrack||e.msDoNotTrack;bV=ca&&(b9==="yes"||b9==="1");if(bV){this.disableCookies()}},addListener:function(ca,b9){bz(ca,b9)},enableLinkTracking:function(b9){bT=true;if(p){bc(b9)}else{E.push(function(){bc(b9)})}},enableJSErrorTracking:function(){if(b6){return}b6=true;var b9=G.onerror;G.onerror=function(ce,cc,cb,cd,ca){aM(function(){var cf="JavaScript Errors";var cg=cc+":"+cb;if(cd){cg+=":"+cd}al(cf,cg,ce)});if(b9){return b9(ce,cc,cb,cd,ca)}return false}},disablePerformanceTracking:function(){a1=false},setGenerationTimeMs:function(b9){aI=parseInt(b9,10)},setHeartBeatTimer:function(cb,ca){var b9=new Date();aj=b9.getTime()+cb*1000;aG=ca*1000},killFrame:function(){if(G.location!==G.top.location){G.top.location=G.location}},redirectFile:function(b9){if(G.location.protocol==="file:"){G.location=b9}},setCountPreRendered:function(b9){a0=b9},trackGoal:function(b9,cb,ca){aM(function(){bk(b9,cb,ca)})},trackLink:function(ca,b9,cc,cb){aM(function(){bN(ca,b9,cc,cb) +})},trackPageView:function(b9,ca){ah=[];if(A(bR)){aM(function(){M(aa,ax,bR)})}else{aM(function(){bd(b9,ca)})}},trackAllContentImpressions:function(){if(A(bR)){return}aM(function(){aA(function(){var b9=m.findContentNodes();var ca=aW(b9);ap(ca,bm)})})},trackVisibleContentImpressions:function(b9,ca){if(A(bR)){return}if(!w(b9)){b9=true}if(!w(ca)){ca=750}bu(b9,ca,this);aM(function(){aQ(function(){var cb=m.findContentNodes();var cc=bA(cb);ap(cc,bm)})})},trackContentImpression:function(cb,b9,ca){if(A(bR)){return}if(!cb){return}b9=b9||"Unknown";aM(function(){var cc=bM(cb,b9,ca);aZ(cc,bm)})},trackContentImpressionsWithinNode:function(b9){if(A(bR)||!b9){return}aM(function(){if(ay){aQ(function(){var ca=m.findContentNodesWithinNode(b9);var cb=bA(ca);ap(cb,bm)})}else{aA(function(){var ca=m.findContentNodesWithinNode(b9);var cb=aW(ca);ap(cb,bm)})}})},trackContentInteraction:function(cb,cc,b9,ca){if(A(bR)){return}if(!cb||!cc){return}b9=b9||"Unknown";aM(function(){var cd=b5(cb,cc,b9,ca);aZ(cd,bm)})},trackContentInteractionNode:function(ca,b9){if(A(bR)||!ca){return +}aM(function(){var cb=aV(ca,b9);aZ(cb,bm)})},trackEvent:function(ca,cc,b9,cb){aM(function(){al(ca,cc,b9,cb)})},trackSiteSearch:function(b9,cb,ca){aM(function(){aN(b9,cb,ca)})},setEcommerceView:function(cc,b9,cb,ca){if(!w(cb)||!cb.length){cb=""}else{if(cb instanceof Array){cb=JSON2.stringify(cb)}}bf[5]=["_pkc",cb];if(w(ca)&&String(ca).length){bf[2]=["_pkp",ca]}if((!w(cc)||!cc.length)&&(!w(b9)||!b9.length)){return}if(w(cc)&&cc.length){bf[3]=["_pks",cc]}if(!w(b9)||!b9.length){b9=""}bf[4]=["_pkn",b9]},addEcommerceItem:function(cd,b9,cb,ca,cc){if(cd.length){bD[cd]=[cd,b9,cb,ca,cc]}},trackEcommerceOrder:function(b9,cd,cc,cb,ca,ce){bH(b9,cd,cc,cb,ca,ce)},trackEcommerceCartUpdate:function(b9){b0(b9)}}}function v(){return{push:R}}U(G,"beforeunload",S,false);o();Date.prototype.getTimeAlias=Date.prototype.getTime;L=new D();var r={setTrackerUrl:1,setAPIUrl:1,setSiteId:1,disableCookies:1,enableLinkTracking:1};var d;for(t=0;t<_paq.length;t++){d=_paq[t][0];if(r[d]){R(_paq[t]);delete _paq[t];if(r[d]>1){if(console!==undefined&&console&&console.error){console.error("The method "+d+' is registered more than once in "_paq" variable. Only the last call has an effect. Please have a look at the multiple Piwik trackers documentation: http://developer.piwik.org/api-reference/tracking-javascript#multiple-piwik-trackers') }}r[d]++}}for(t=0;t<_paq.length;t++){if(_paq[t]){R(_paq[t])}}_paq=new v();c={addPlugin:function(W,X){a[W]=X},getTracker:function(W,X){return new D(W,X,L.getVisitorId())},getAsyncTracker:function(){return L}};if(typeof define==="function"&&define.amd){define("piwik",[],function(){return c})}return c}())}if(window&&window.piwikAsyncInit){window.piwikAsyncInit()}(function(){var a=(typeof AnalyticsTracker);if(a==="undefined"){AnalyticsTracker=Piwik}}());if(typeof piwik_log!=="function"){piwik_log=function(b,f,d,g){function a(h){try{return eval("piwik_"+h)}catch(i){}return}var c,e=Piwik.getTracker(d,f);e.setDocumentTitle(b);e.setCustomData(g);c=a("tracker_pause");if(c){e.setLinkTrackingTimer(c)}c=a("download_extensions");if(c){e.setDownloadExtensions(c)}c=a("hosts_alias");if(c){e.setDomains(c)}c=a("ignore_classes");if(c){e.setIgnoreClasses(c)}e.trackPageView();if(a("install_tracker")){piwik_track=function(i,k,j,h){e.setSiteId(k);e.setTrackerUrl(j);e.trackLink(i,h)};e.enableLinkTracking() }}; /*! @license-end */ |