diff options
Diffstat (limited to 'piwik.js')
-rw-r--r-- | piwik.js | 46 |
1 files changed, 23 insertions, 23 deletions
@@ -27,28 +27,28 @@ 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,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() -}}; +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]),b4=ad[1],bt=ad[2],b7=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"],b2="_pk_",aq,b3,ao=false,bW,a0,a4,aw=33955200000,az=1800000,a9=15768000000,a1=true,aI=0,a5=false,ag=false,au,bf={},ab={},bX=200,bD={},bS={},ah=[],ay=false,a8=false,by=false,bT=false,bv=false,bs,bi,at,aX=T,bx,a2=bJ; +function bF(cg,cd,cc,cf,cb,ce){if(ao){return}var ca;if(cc){ca=new Date();ca.setTime(ca.getTime()+cc)}u.cookie=cg+"="+l(cd)+(cc?";expires="+ca.toGMTString():"")+";path="+(cf||"/")+(cb?";domain="+cb:"")+(ce?";secure":"")}function av(cc){if(ao){return 0}var ca=new RegExp("(^|;)[ ]*"+cc+"=([^;]*)"),cb=ca.exec(u.cookie);return cb?F(cb[2]):0}function bY(ca){var cb;if(ak){cb=new RegExp("#.*");return ca.replace(cb,"")}return ca}function bK(cc,ca){var cd=k(ca),cb;if(cd){return ca}if(ca.slice(0,1)==="/"){return k(cc)+"://"+b(cc)+ca}cc=bY(cc);cb=cc.indexOf("?");if(cb>=0){cc=cc.slice(0,cb)}cb=cc.lastIndexOf("/");if(cb!==cc.length-1){cc=cc.slice(0,cb+1)}return cc+ca}function bq(cd){var cb,ca,cc;for(cb=0;cb<bo.length;cb++){ca=y(bo[cb].toLowerCase());if(cd===ca){return true}if(ca.slice(0,1)==="."){if(cd===ca.slice(1)){return true}cc=cd.length-ca.length;if((cc>0)&&(cd.slice(cc)===ca)){return true}}}return false}function b9(ca,cc){var cb=new Image(1,1);cb.onload=function(){t=0;if(typeof cc==="function"){cc() +}};cb.src=aa+(aa.indexOf("?")<0?"?":"&")+ca}function bG(cb,ce,ca){if(!w(ca)||null===ca){ca=true}try{var cd=G.XMLHttpRequest?new G.XMLHttpRequest():G.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;cd.open("POST",aa,true);cd.onreadystatechange=function(){if(this.readyState===4&&!(this.status>=200&&this.status<300)&&ca){b9(cb,ce)}else{if(typeof ce==="function"){ce()}}};cd.setRequestHeader("Content-Type",aK);cd.send(cb)}catch(cc){if(ca){b9(cb,ce)}}}function bZ(cb){var ca=new Date();var cc=ca.getTime()+cb;if(!j||cc>j){j=cc}}function aD(ce){var cb=new Date();var ca=cb.getTime();if(a8&&ca<a8){var cc=a8-ca;setTimeout(ce,cc);bZ(cc+50);a8+=50;return}if(a8===false){var cd=800;a8=ca+cd}ce()}function aZ(cb,ca,cc){if(!bW&&cb){aD(function(){if(br==="POST"){bG(cb,cc)}else{b9(cb,cc)}bZ(ca)})}}function ba(ca){if(bW){return false}return(ca&&ca.length)}function ap(cc,ca){if(!ba(cc)){return}var cb='{"requests":["?'+cc.join('","?')+'"]}';aD(function(){bG(cb,null,false);bZ(ca)})}function bE(ca){return b2+ca+"."+bR+"."+bx +}function ae(){if(ao){return"0"}if(!w(e.cookieEnabled)){var ca=bE("testcookie");bF(ca,"1");return av(ca)==="1"?"1":"0"}return e.cookieEnabled?"1":"0"}function bj(){bx=aX((aq||bL)+(b3||"/")).slice(0,4)}function ar(){var cb=bE("cvar"),ca=av(cb);if(ca.length){ca=JSON2.parse(ca);if(J(ca)){return ca}}return{}}function Z(){if(ag===false){ag=ar()}}function bQ(){var ca=new Date();bs=ca.getTime()}function am(ce,cb,ca,cd,cc,cf){bF(bE("id"),ce+"."+cb+"."+ca+"."+cd+"."+cc+"."+cf,aw,b3,aq)}function Y(){var cb=new Date(),ca=Math.round(cb.getTime()/1000),cd=av(bE("id")),cc;if(cd){cc=cd.split(".");cc.unshift("0")}else{if(!a2){a2=aX((e.userAgent||"")+(e.platform||"")+JSON2.stringify(bS)+cb.getTime()+Math.random()).slice(0,16)}cc=["1",a2,ca,0,ca,"",""]}return cc}function X(){var ca=av(bE("ref"));if(ca.length){try{ca=JSON2.parse(ca);if(J(ca)){return ca}}catch(cb){}}return["","",0,""]}function W(){var ca=ao;ao=false;bF(bE("id"),"",-86400,b3,aq);bF(bE("ses"),"",-86400,b3,aq);bF(bE("cvar"),"",-86400,b3,aq);bF(bE("ref"),"",-86400,b3,aq); +ao=ca}function bP(ce){if(!ce||!J(ce)){return}var cd=[];var cc;for(cc in ce){if(Object.prototype.hasOwnProperty.call(ce,cc)){cd.push(cc)}}var cf={};cd.sort();var ca=cd.length;var cb;for(cb=0;cb<ca;cb++){cf[cd[cb]]=ce[cd[cb]]}return cf}function aT(cc,cA,cB,cd){var cy,cb=new Date(),ck=Math.round(cb.getTime()/1000),cE,cz,cf,cq,cv,cj,ct,cg,cx,ce=1024,cG,cn,cu=ag,cl=bE("ses"),cm=bE("ref"),cH=bE("cvar"),cr=Y(),cp=av(cl),cw=X(),cD=a6||b4,ch,ca;if(ao){W()}if(bW){return""}cE=cr[0];cz=cr[1];cq=cr[2];cf=cr[3];cv=cr[4];cj=cr[5];if(!w(cr[6])){cr[6]=""}ct=cr[6];if(!w(cd)){cd=""}var co=u.characterSet||u.charset;if(!co||co.toLowerCase()==="utf-8"){co=null}ch=cw[0];ca=cw[1];cg=cw[2];cx=cw[3];if(!cp){var cC=az/1000;if(!cj||(ck-cj)>cC){cf++;cj=cv}if(!a4||!ch.length){for(cy in aY){if(Object.prototype.hasOwnProperty.call(aY,cy)){ch=I(cD,aY[cy]);if(ch.length){break}}}for(cy in aP){if(Object.prototype.hasOwnProperty.call(aP,cy)){ca=I(cD,aP[cy]);if(ca.length){break}}}}cG=b(bt);cn=cx.length?b(cx):"";if(cG.length&&!bq(cG)&&(!a4||!cn.length||bq(cn))){cx=bt +}if(cx.length||ch.length){cg=ck;cw=[ch,ca,cg,bY(cx.slice(0,ce))];bF(cm,JSON2.stringify(cw),a9,b3,aq)}}cc+="&idsite="+bR+"&rec=1&r="+String(Math.random()).slice(2,8)+"&h="+cb.getHours()+"&m="+cb.getMinutes()+"&s="+cb.getSeconds()+"&url="+l(bY(cD))+(bt.length?"&urlref="+l(bY(bt)):"")+(aJ.length?"&uid="+l(aJ):"")+"&_id="+cz+"&_idts="+cq+"&_idvc="+cf+"&_idn="+cE+(ch.length?"&_rcn="+l(ch):"")+(ca.length?"&_rck="+l(ca):"")+"&_refts="+cg+"&_viewts="+cj+(String(ct).length?"&_ects="+ct:"")+(String(cx).length?"&_ref="+l(bY(cx.slice(0,ce))):"")+(co?"&cs="+l(co):"");for(cy in bS){if(Object.prototype.hasOwnProperty.call(bS,cy)){cc+="&"+cy+"="+bS[cy]}}if(cA){cc+="&data="+l(JSON2.stringify(cA))}else{if(an){cc+="&data="+l(JSON2.stringify(an))}}function ci(cI,cJ){var cK=JSON2.stringify(cI);if(cK.length>2){return"&"+cJ+"="+l(cK)}return""}var cF=bP(bf);var cs=bP(ab);cc+=ci(cF,"cvar");cc+=ci(cs,"e_cvar");if(ag){cc+=ci(ag,"_cvar");for(cy in cu){if(Object.prototype.hasOwnProperty.call(cu,cy)){if(ag[cy][0]===""||ag[cy][1]===""){delete ag[cy] +}}}if(a5){bF(cH,JSON2.stringify(ag),az,b3,aq)}}if(a1){if(aI){cc+=">_ms="+aI}else{if(f&&f.timing&&f.timing.requestStart&&f.timing.responseEnd){cc+=">_ms="+(f.timing.responseEnd-f.timing.requestStart)}}}am(cz,cq,cf,ck,cj,w(cd)&&String(cd).length?cd:ct);bF(cl,"*",az,b3,aq);cc+=O(cB);if(bn.length){cc+="&"+bn}if(q(au)){cc=au(cc)}return cc}function bI(cd,cc,ch,ce,ca,ck){var cf="idgoal=0",cg,cb=new Date(),ci=[],cj;if(String(cd).length){cf+="&ec_id="+l(cd);cg=Math.round(cb.getTime()/1000)}cf+="&revenue="+cc;if(String(ch).length){cf+="&ec_st="+ch}if(String(ce).length){cf+="&ec_tx="+ce}if(String(ca).length){cf+="&ec_sh="+ca}if(String(ck).length){cf+="&ec_dt="+ck}if(bD){for(cj in bD){if(Object.prototype.hasOwnProperty.call(bD,cj)){if(!w(bD[cj][1])){bD[cj][1]=""}if(!w(bD[cj][2])){bD[cj][2]=""}if(!w(bD[cj][3])||String(bD[cj][3]).length===0){bD[cj][3]=0}if(!w(bD[cj][4])||String(bD[cj][4]).length===0){bD[cj][4]=1}ci.push(bD[cj])}}cf+="&ec_items="+l(JSON2.stringify(ci))}cf=aT(cf,an,"ecommerce",cg); +aZ(cf,bm)}function bH(ca,ce,cd,cc,cb,cf){if(String(ca).length&&w(ce)){bI(ca,ce,cd,cc,cb,cf)}}function b1(ca){if(w(ca)){bI("",ca,"","","","")}}function bd(cd,ce){var ca=new Date(),cc=aT("action_name="+l(V(cd||aS)),ce,"log");aZ(cc,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=ca.getTime();setTimeout(function cb(){var cf;ca=new Date();if((bs+aG)>ca.getTime()){if(aj<ca.getTime()){cf=aT("ping=1",ce,"ping");aZ(cf,bm)}setTimeout(cb,aG)}},aG)}}function aH(cc,cb){var cd,ca="(^| )(piwik[_-]"+cb;if(cc){for(cd=0;cd<cc.length;cd++){ca+="|"+cc[cd]}}ca+=")( |$)";return new RegExp(ca)}function bB(ca){return(aa&&ca&&0===String(ca).indexOf(aa))}function bO(cd,ca,ce){if(bB(ca)){return 0}var cc=aH(be,"download"),cb=aH(aC,"link"),cf=new RegExp("\\.("+aU+")([?&#]|$)","i");if(cb.test(cd)){return"link" +}if(cc.test(cd)||cf.test(ca)){return"download"}if(ce){return 0}return"link"}function a7(cb){var ca;ca=cb.parentNode;while(ca!==null&&w(ca)){if(Q.isLinkElement(cb)){break}cb=ca;ca=cb.parentNode}return cb}function bh(ce){ce=a7(ce);if(!Q.hasNodeAttribute(ce,"href")){return}if(!w(ce.href)){return}var cd=Q.getAttributeValueFromNode(ce,"href");if(bB(cd)){return}var cf=ce.hostname||b(ce.href);var cg=cf.toLowerCase();var cb=ce.href.replace(cf,cg);var cc=new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto):","i");if(!cc.test(cb)){var ca=bO(ce.className,cb,bq(cg));if(ca){return{type:ca,href:cb}}}}function b6(ca,cb,cc,cd){var ce=m.buildInteractionRequestParams(ca,cb,cc,cd);if(!ce){return}return aT(ce,null,"contentInteraction")}function b5(cc,cd,ch,ca,cb){if(!w(cc)){return}if(bB(cc)){return cc}var cf=m.toAbsoluteUrl(cc);var ce="redirecturl="+l(cf)+"&";ce+=b6(cd,ch,ca,(cb||cc));var cg="&";if(aa.indexOf("?")<0){cg="?"}return aa+cg+ce}function a3(ca,cb){if(!ca||!cb){return false +}var cc=m.findTargetNode(ca);if(m.shouldIgnoreInteraction(cc)){return false}cc=m.findTargetNodeNoDefault(ca);if(cc&&!H(cc,cb)){return false}return true}function aR(cc,cb,ce){if(!cc){return}var ca=m.findParentContentNode(cc);if(!ca){return}if(!a3(ca,cc)){return}var cd=m.buildContentBlock(ca);if(!cd){return}if(!cd.target&&ce){cd.target=ce}return m.buildInteractionRequestParams(cb,cd.name,cd.piece,cd.target)}function aO(cb){if(!ah||!ah.length){return false}var ca,cc;for(ca=0;ca<ah.length;ca++){cc=ah[ca];if(cc&&cc.name===cb.name&&cc.piece===cb.piece&&cc.target===cb.target){return true}}return false}function ac(cd){if(!cd){return false}var cg=m.findTargetNode(cd);if(!cg||m.shouldIgnoreInteraction(cg)){return false}var ch=bh(cg);if(bT&&ch&&ch.type){return false}if(Q.isLinkElement(cg)&&Q.hasNodeAttributeWithValue(cg,"href")){var ca=String(Q.getAttributeValueFromNode(cg,"href"));if(0===ca.indexOf("#")){return false}if(bB(ca)){return true}if(!m.isUrlToCurrentDomain(ca)){return false}var ce=m.buildContentBlock(cd); +if(!ce){return}var cc=ce.name;var ci=ce.piece;var cf=ce.target;if(!Q.hasNodeAttributeWithValue(cg,m.CONTENT_TARGET_ATTR)||cg.wasContentTargetAttrReplaced){cg.wasContentTargetAttrReplaced=true;cf=m.toAbsoluteUrl(ca);Q.setAnyAttribute(cg,m.CONTENT_TARGET_ATTR,cf)}var cb=b5(ca,"click",cc,ci,cf);m.setHrefAttribute(cg,cb);return true}return false}function af(cb){if(!cb||!cb.length){return}var ca;for(ca=0;ca<cb.length;ca++){ac(cb[ca])}}function bg(ca){return function(cb){if(!ca){return}var ce=m.findParentContentNode(ca);var cf;if(cb){cf=cb.target||cb.srcElement}if(!cf){cf=ca}if(!a3(ce,cf)){return}bZ(bm);if(Q.isLinkElement(ca)&&Q.hasNodeAttributeWithValue(ca,"href")&&Q.hasNodeAttributeWithValue(ca,m.CONTENT_TARGET_ATTR)){var cc=Q.getAttributeValueFromNode(ca,"href");if(!bB(cc)&&ca.wasContentTargetAttrReplaced){Q.setAnyAttribute(ca,m.CONTENT_TARGET_ATTR,"")}}var cj=bh(ca);if(by&&cj&&cj.type){return cj.type}if(ac(ce)){return"href"}var cg=m.buildContentBlock(ce);if(!cg){return}var cd=cg.name;var ck=cg.piece; +var ci=cg.target;var ch=b6("click",cd,ck,ci);aZ(ch,bm);return ch}}function aF(cc){if(!cc||!cc.length){return}var ca,cb;for(ca=0;ca<cc.length;ca++){cb=m.findTargetNode(cc[ca]);if(cb&&!cb.contentInteractionTrackingSetupDone){cb.contentInteractionTrackingSetupDone=true;U(cb,"click",bg(cb))}}}function aB(cc,cd){if(!cc||!cc.length){return[]}var ca,cb;for(ca=0;ca<cc.length;ca++){if(aO(cc[ca])){cc.splice(ca,1);ca--}else{ah.push(cc[ca])}}if(!cc||!cc.length){return[]}af(cd);aF(cd);var ce=[];for(ca=0;ca<cc.length;ca++){cb=aT(m.buildImpressionRequestParams(cc[ca].name,cc[ca].piece,cc[ca].target),undefined,"contentImpressions");ce.push(cb)}return ce}function aW(cb){var ca=m.collectContent(cb);return aB(ca,cb)}function bA(cb){if(!cb||!cb.length){return[]}var ca;for(ca=0;ca<cb.length;ca++){if(!m.isNodeVisible(cb[ca])){cb.splice(ca,1);ca--}}if(!cb||!cb.length){return[]}return aW(cb)}function bM(cc,ca,cb){var cd=m.buildImpressionRequestParams(cc,ca,cb);return aT(cd,null,"contentImpression")}function aV(cd,cb){if(!cd){return +}var ca=m.findParentContentNode(cd);var cc=m.buildContentBlock(ca);if(!cc){return}if(!cb){cb="Unknown"}return b6(cb,cc.name,cc.piece,cc.target)}function bw(cb,cd,ca,cc){return"e_c="+l(cb)+"&e_a="+l(cd)+(w(ca)?"&e_n="+l(ca):"")+(w(cc)?"&e_v="+l(cc):"")}function al(cc,ce,ca,cd,cf){if(String(cc).length===0||String(ce).length===0){return false}var cb=aT(bw(cc,ce,ca,cd),cf,"event");aZ(cb,bm)}function aN(ca,cd,cb,ce){var cc=aT("search="+l(ca)+(cd?"&search_cat="+l(cd):"")+(w(cb)?"&search_count="+cb:""),ce,"sitesearch");aZ(cc,bm)}function bk(ca,cd,cc){var cb=aT("idgoal="+ca+(cd?"&revenue="+cd:""),cc,"goal");aZ(cb,bm)}function bN(cd,ca,ch,cg,cc){var cf=ca+"="+l(bY(cd));var cb=aR(cc,"click",cd);if(cb){cf+="&"+cb}var ce=aT(cf,ch,"link");aZ(ce,(cg?0:bm),cg)}function bV(cb,ca){if(cb!==""){return cb+ca.charAt(0).toUpperCase()+ca.slice(1)}return ca}function aM(cf){var ce,ca,cd=["","webkit","ms","moz"],cc;if(!a0){for(ca=0;ca<cd.length;ca++){cc=cd[ca];if(Object.prototype.hasOwnProperty.call(u,bV(cc,"hidden"))){if(u[bV(cc,"visibilityState")]==="prerender"){ce=true +}break}}}if(ce){U(u,cc+"visibilitychange",function cb(){u.removeEventListener(cc+"visibilitychange",cb,false);cf()});return}cf()}function aQ(ca){if(u.readyState==="complete"){ca()}else{if(G.addEventListener){G.addEventListener("load",ca)}else{if(G.attachEvent){G.attachEvent("onLoad",ca)}}}}function aA(cb){var ca=false;if(u.attachEvent){ca=u.readyState==="complete"}else{ca=u.readyState!=="loading"}if(ca){cb()}else{if(u.addEventListener){u.addEventListener("DOMContentLoaded",cb)}else{if(u.attachEvent){u.attachEvent("onreadystatechange",cb)}}}}function bC(ca){var cb=bh(ca);if(cb&&cb.type){cb.href=h(cb.href);bN(cb.href,cb.type,undefined,null,ca)}}function b8(ca){var cb,cc;ca=ca||G.event;cb=ca.which||ca.button;cc=ca.target||ca.srcElement;if(ca.type==="click"){if(cc){bC(cc)}}else{if(ca.type==="mousedown"){if((cb===1||cb===2)&&cc){bi=cb;at=cc}else{bi=at=null}}else{if(ca.type==="mouseup"){if(cb===bi&&cc===at){bC(cc)}bi=at=null}}}}function bz(cb,ca){if(ca){U(cb,"mouseup",b8,false);U(cb,"mousedown",b8,false) +}else{U(cb,"click",b8,false)}}function bc(cb){if(!by){by=true;var cc,ca=aH(ai,"ignore"),cd=u.links;if(cd){for(cc=0;cc<cd.length;cc++){if(!ca.test(cd[cc].className)){bz(cd[cc],cb)}}}}}function bu(cc,ce,cf){if(ay){return true}ay=true;var cg=false;var cd,cb;function ca(){cg=true}aQ(function(){function ch(cj){setTimeout(function(){if(!ay){return}cg=false;cf.trackVisibleContentImpressions();ch(cj)},cj)}function ci(cj){setTimeout(function(){if(!ay){return}if(cg){cg=false;cf.trackVisibleContentImpressions()}ci(cj)},cj)}if(cc){cd=["scroll","resize"];for(cb=0;cb<cd.length;cb++){if(u.addEventListener){u.addEventListener(cd[cb],ca)}else{G.attachEvent("on"+cd[cb],ca)}}ci(100)}if(ce&&ce>0){ce=parseInt(ce,10);ch(ce)}})}function b0(){var cb,cc,cd={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"},ca=(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(cb in cd){if(Object.prototype.hasOwnProperty.call(cd,cb)){cc=e.mimeTypes[cd[cb]];bS[cb]=(cc&&cc.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*ca+"x"+K.height*ca}function aL(){var ce=new Date(),cb=ce.getTime(),cd=Y();var ca=parseInt(cd[2],10);var cc=(ca*1000)+aw-cb;return cc}function bU(){aw=aL()}b0();bj();bU();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(ca){aa=ca},setSiteId:function(ca){bR=ca;bU()},setUserId:function(ca){aJ=ca},getUserId:function(){return aJ +},setCustomData:function(ca,cb){if(J(ca)){an=ca}else{if(!an){an={}}an[ca]=cb}},getCustomData:function(){return an},setCustomRequestProcessing:function(ca){au=ca},appendToTrackingUrl:function(ca){bn=ca},getRequest:function(ca){return aT(ca)},addPlugin:function(ca,cb){a[ca]=cb},setCustomVariable:function(cb,ca,ce,cc){var cd;if(!w(cc)){cc="visit"}if(!w(ca)){return}if(!w(ce)){ce=""}if(cb>0){ca=!n(ca)?String(ca):ca;ce=!n(ce)?String(ce):ce;cd=[ca.slice(0,bX),ce.slice(0,bX)];if(cc==="visit"||cc===2){Z();ag[cb]=cd}else{if(cc==="page"||cc===3){bf[cb]=cd}else{if(cc==="event"){ab[cb]=cd}}}}},getCustomVariable:function(cb,cc){var ca;if(!w(cc)){cc="visit"}if(cc==="page"||cc===3){ca=bf[cb]}else{if(cc==="event"){ca=ab[cb]}else{if(cc==="visit"||cc===2){Z();ca=ag[cb]}}}if(!w(ca)||(ca&&ca[0]==="")){return false}return ca},deleteCustomVariable:function(ca,cb){if(this.getCustomVariable(ca,cb)){this.setCustomVariable(ca,"","",cb)}},storeCustomVariablesInCookie:function(){a5=true},setLinkTrackingTimer:function(ca){bm=ca +},setDownloadExtensions:function(ca){aU=ca},addDownloadExtensions:function(ca){aU+="|"+ca},setDomains:function(ca){bo=n(ca)?[ca]:ca;bo.push(bL)},setIgnoreClasses:function(ca){ai=n(ca)?[ca]:ca},setRequestMethod:function(ca){br=ca||bp},setRequestContentType:function(ca){aK=ca||bb},setReferrerUrl:function(ca){bt=ca},setCustomUrl:function(ca){a6=bK(b4,ca)},setDocumentTitle:function(ca){aS=ca},setAPIUrl:function(ca){ax=ca},setDownloadClasses:function(ca){be=n(ca)?[ca]:ca},setLinkClasses:function(ca){aC=n(ca)?[ca]:ca},setCampaignNameKey:function(ca){aY=n(ca)?[ca]:ca},setCampaignKeywordKey:function(ca){aP=n(ca)?[ca]:ca},discardHashTag:function(ca){ak=ca},setCookieNamePrefix:function(ca){b2=ca;ag=ar();bU()},setCookieDomain:function(ca){aq=y(ca);bj();bU()},setCookiePath:function(ca){b3=ca;bj();bU()},setVisitorCookieTimeout:function(ca){aw=ca*1000},setSessionCookieTimeout:function(ca){az=ca*1000},setReferralCookieTimeout:function(ca){a9=ca*1000},setConversionAttributionFirstReferrer:function(ca){a4=ca +},disableCookies:function(){ao=true;bS.cookie="0"},deleteCookies:function(){W()},setDoNotTrack:function(cb){var ca=e.doNotTrack||e.msDoNotTrack;bW=cb&&(ca==="yes"||ca==="1");if(bW){this.disableCookies()}},addListener:function(cb,ca){bz(cb,ca)},enableLinkTracking:function(ca){bT=true;if(p){bc(ca)}else{E.push(function(){bc(ca)})}},enableJSErrorTracking:function(){if(b7){return}b7=true;var ca=G.onerror;G.onerror=function(cf,cd,cc,ce,cb){aM(function(){var cg="JavaScript Errors";var ch=cd+":"+cc;if(ce){ch+=":"+ce}al(cg,ch,cf)});if(ca){return ca(cf,cd,cc,ce,cb)}return false}},disablePerformanceTracking:function(){a1=false},setGenerationTimeMs:function(ca){aI=parseInt(ca,10)},setHeartBeatTimer:function(cc,cb){var ca=new Date();aj=ca.getTime()+cc*1000;aG=cb*1000},killFrame:function(){if(G.location!==G.top.location){G.top.location=G.location}},redirectFile:function(ca){if(G.location.protocol==="file:"){G.location=ca}},setCountPreRendered:function(ca){a0=ca},trackGoal:function(ca,cc,cb){aM(function(){bk(ca,cc,cb) +})},trackLink:function(cb,ca,cd,cc){aM(function(){bN(cb,ca,cd,cc)})},trackPageView:function(ca,cb){ah=[];if(A(bR)){aM(function(){M(aa,ax,bR)})}else{aM(function(){bd(ca,cb)})}},trackAllContentImpressions:function(){if(A(bR)){return}aM(function(){aA(function(){var ca=m.findContentNodes();var cb=aW(ca);ap(cb,bm)})})},trackVisibleContentImpressions:function(ca,cb){if(A(bR)){return}if(!w(ca)){ca=true}if(!w(cb)){cb=750}bu(ca,cb,this);aM(function(){aQ(function(){var cc=m.findContentNodes();var cd=bA(cc);ap(cd,bm)})})},trackContentImpression:function(cc,ca,cb){if(A(bR)){return}if(!cc){return}ca=ca||"Unknown";aM(function(){var cd=bM(cc,ca,cb);aZ(cd,bm)})},trackContentImpressionsWithinNode:function(ca){if(A(bR)||!ca){return}aM(function(){if(ay){aQ(function(){var cb=m.findContentNodesWithinNode(ca);var cc=bA(cb);ap(cc,bm)})}else{aA(function(){var cb=m.findContentNodesWithinNode(ca);var cc=aW(cb);ap(cc,bm)})}})},trackContentInteraction:function(cc,cd,ca,cb){if(A(bR)){return}if(!cc||!cd){return}ca=ca||"Unknown"; +aM(function(){var ce=b6(cc,cd,ca,cb);aZ(ce,bm)})},trackContentInteractionNode:function(cb,ca){if(A(bR)||!cb){return}aM(function(){var cc=aV(cb,ca);aZ(cc,bm)})},trackEvent:function(cb,cd,ca,cc){aM(function(){al(cb,cd,ca,cc)})},trackSiteSearch:function(ca,cc,cb){aM(function(){aN(ca,cc,cb)})},setEcommerceView:function(cd,ca,cc,cb){if(!w(cc)||!cc.length){cc=""}else{if(cc instanceof Array){cc=JSON2.stringify(cc)}}bf[5]=["_pkc",cc];if(w(cb)&&String(cb).length){bf[2]=["_pkp",cb]}if((!w(cd)||!cd.length)&&(!w(ca)||!ca.length)){return}if(w(cd)&&cd.length){bf[3]=["_pks",cd]}if(!w(ca)||!ca.length){ca=""}bf[4]=["_pkn",ca]},addEcommerceItem:function(ce,ca,cc,cb,cd){if(ce.length){bD[ce]=[ce,ca,cc,cb,cd]}},trackEcommerceOrder:function(ca,ce,cd,cc,cb,cf){bH(ca,ce,cd,cc,cb,cf)},trackEcommerceCartUpdate:function(ca){b1(ca)}}}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 */ };
\ No newline at end of file |