diff options
Diffstat (limited to 'js/piwik.min.js')
-rw-r--r-- | js/piwik.min.js | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/js/piwik.min.js b/js/piwik.min.js index 1c662e4c25..cb12f8b837 100644 --- a/js/piwik.min.js +++ b/js/piwik.min.js @@ -55,21 +55,21 @@ if(cQ){return{type:cQ,href:cS}}}}function aF(cQ,cR,cS,cT){var cU=t.buildInteract }if(!aZ(cU,cV)){return}bW(bq);if(Y.isLinkElement(cQ)&&Y.hasNodeAttributeWithValue(cQ,"href")&&Y.hasNodeAttributeWithValue(cQ,t.CONTENT_TARGET_ATTR)){var cS=Y.getAttributeValueFromNode(cQ,"href");if(!aK(cS)&&cQ.wasContentTargetAttrReplaced){Y.setAnyAttribute(cQ,t.CONTENT_TARGET_ATTR,"")}}var cZ=cJ(cQ);if(ai&&cZ&&cZ.type){return cZ.type}if(bm(cU)){return"href"}var cW=t.buildContentBlock(cU);if(!cW){return}var cT=cW.name;var c0=cW.piece;var cY=cW.target;var cX=aF("click",cT,c0,cY);bn(cX,bq);return cX}}function bH(cS){if(!cS||!cS.length){return}var cQ,cR;for(cQ=0;cQ<cS.length;cQ++){cR=t.findTargetNode(cS[cQ]);if(cR&&!cR.contentInteractionTrackingSetupDone){cR.contentInteractionTrackingSetupDone=true;ag(cR,"click",aO(cR))}}}function bh(cS,cT){if(!cS||!cS.length){return[]}var cQ,cR;for(cQ=0;cQ<cS.length;cQ++){if(aM(cS[cQ])){cS.splice(cQ,1);cQ--}else{bQ.push(cS[cQ])}}if(!cS||!cS.length){return[]}aD(cT);bH(cT);var cU=[];for(cQ=0;cQ<cS.length;cQ++){cR=b8(t.buildImpressionRequestParams(cS[cQ].name,cS[cQ].piece,cS[cQ].target),undefined,"contentImpressions"); if(cR){cU.push(cR)}}return cU}function ce(cR){var cQ=t.collectContent(cR);return bh(cQ,cR)}function aX(cR){if(!cR||!cR.length){return[]}var cQ;for(cQ=0;cQ<cR.length;cQ++){if(!t.isNodeVisible(cR[cQ])){cR.splice(cQ,1);cQ--}}if(!cR||!cR.length){return[]}return ce(cR)}function ax(cS,cQ,cR){var cT=t.buildImpressionRequestParams(cS,cQ,cR);return b8(cT,null,"contentImpression")}function cK(cT,cR){if(!cT){return}var cQ=t.findParentContentNode(cT);var cS=t.buildContentBlock(cQ);if(!cS){return}if(!cR){cR="Unknown"}return aF(cR,cS.name,cS.piece,cS.target)}function cq(cR,cT,cQ,cS){return"e_c="+r(cR)+"&e_a="+r(cT)+(G(cQ)?"&e_n="+r(cQ):"")+(G(cS)?"&e_v="+r(cS):"")}function am(cS,cU,cQ,cT,cW,cV){if(String(cS).length===0||String(cU).length===0){return false}var cR=b8(cq(cS,cU,cQ,cT),cW,"event");bn(cR,bq,cV)}function bP(cQ,cT,cR,cU){var cS=b8("search="+r(cQ)+(cT?"&search_cat="+r(cT):"")+(G(cR)?"&search_count="+cR:""),cU,"sitesearch");bn(cS,bq)}function cu(cQ,cT,cS){var cR=b8("idgoal="+cQ+(cT?"&revenue="+cT:""),cS,"goal"); bn(cR,bq)}function cB(cT,cQ,cX,cW,cS){var cV=cQ+"="+r(bI(cT));var cR=ca(cS,"click",cT);if(cR){cV+="&"+cR}var cU=b8(cV,cX,"link");bn(cU,bq,cW)}function bA(cR,cQ){if(cR!==""){return cR+cQ.charAt(0).toUpperCase()+cQ.slice(1)}return cQ}function bX(cV){var cU,cQ,cT=["","webkit","ms","moz"],cS;if(!a1){for(cQ=0;cQ<cT.length;cQ++){cS=cT[cQ];if(Object.prototype.hasOwnProperty.call(D,bA(cS,"hidden"))){if(D[bA(cS,"visibilityState")]==="prerender"){cU=true}break}}}if(cU){ag(D,cS+"visibilitychange",function cR(){D.removeEventListener(cS+"visibilitychange",cR,false);cV()});return}cV()}function bZ(cQ){if(!cQ){return}if(!Y.hasNodeAttribute(cQ,"href")){return}var cR=Y.getAttributeValueFromNode(cQ,"href");if(!cR||aK(cR)){return}cR=j(cR,an);if(cR.indexOf("?")>0){cR+="&"}else{cR+="?"}var cT=aN().uuid;var cS=aA();cR=C(cR,an,cT+cS);Y.setAnyAttribute(cQ,"href",cR)}function ar(cT){var cU=Y.getAttributeValueFromNode(cT,"href");if(!cU){return false}cU=String(cU);var cR=cU.indexOf("//")===0||cU.indexOf("http://")===0||cU.indexOf("https://")===0; -if(!cR){return false}var cQ=cT.pathname||b1(cT.href);var cS=(cT.hostname||c(cT.href)).toLowerCase();if(ak(cS,cQ)){if(!ck(cv,I(cS))){return true}return false}return false}function cj(cQ){var cR=cJ(cQ);if(co&&!cR&&ar(cQ)){bZ(cQ)}if(cR&&cR.type){cR.href=n(cR.href);cB(cR.href,cR.type,undefined,null,cQ)}}function cb(){return D.all&&!D.addEventListener}function cw(cQ){var cS=cQ.which;var cR=(typeof cQ.button);if(!cS&&cR!=="undefined"){if(cb()){if(cQ.button&1){cS=1}else{if(cQ.button&2){cS=3}else{if(cQ.button&4){cS=2}}}}else{if(cQ.button===0||cQ.button==="0"){cS=1}else{if(cQ.button&1){cS=2}else{if(cQ.button&2){cS=3}}}}}return cS}function bz(cQ){switch(cw(cQ)){case 1:return"left";case 2:return"middle";case 3:return"right"}}function aQ(cQ){return cQ.target||cQ.srcElement}function at(cQ){return function(cT){cT=cT||Q.event;var cS=bz(cT);var cU=aQ(cT);if(cT.type==="click"){var cR=false;if(cQ&&cS==="middle"){cR=true}if(cU&&!cR){cj(cU)}}else{if(cT.type==="mousedown"){if(cS==="middle"&&cU){aH=cS;bk=cU}else{aH=bk=null -}}else{if(cT.type==="mouseup"){if(cS===aH&&cU===bk){cj(cU)}aH=bk=null}else{if(cT.type==="contextmenu"){cj(cU)}}}}}}function aj(cS,cR){var cQ=typeof cR;if(cQ==="undefined"){cR=true}ag(cS,"click",at(cR),false);if(cR){ag(cS,"mouseup",at(cR),false);ag(cS,"mousedown",at(cR),false);ag(cS,"contextmenu",at(cR),false)}}function bl(cR){if(!ai){ai=true;var cS,cQ=aP(bj,"ignore"),cT=D.links;if(cT){for(cS=0;cS<cT.length;cS++){if(!cQ.test(cT[cS].className)){aj(cT[cS],cR)}}}}}function aI(cS,cU,cV){if(bV){return true}bV=true;var cW=false;var cT,cR;function cQ(){cW=true}l(function(){function cX(cZ){setTimeout(function(){if(!bV){return}cW=false;cV.trackVisibleContentImpressions();cX(cZ)},cZ)}function cY(cZ){setTimeout(function(){if(!bV){return}if(cW){cW=false;cV.trackVisibleContentImpressions()}cY(cZ)},cZ)}if(cS){cT=["scroll","resize"];for(cR=0;cR<cT.length;cR++){if(D.addEventListener){D.addEventListener(cT[cR],cQ)}else{Q.attachEvent("on"+cT[cR],cQ)}}cY(100)}if(cU&&cU>0){cU=parseInt(cU,10);cX(cU)}})}function ci(){var cR,cT,cU={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"}; -if(!((new RegExp("MSIE")).test(g.userAgent))){if(g.mimeTypes&&g.mimeTypes.length){for(cR in cU){if(Object.prototype.hasOwnProperty.call(cU,cR)){cT=g.mimeTypes[cU[cR]];cG[cR]=(cT&&cT.enabledPlugin)?"1":"0"}}}if(typeof navigator.javaEnabled!=="unknown"&&G(g.javaEnabled)&&g.javaEnabled()){cG.java="1"}if(x(Q.GearsFactory)){cG.gears="1"}cG.cookie=bL()}var cS=parseInt(T.width,10);var cQ=parseInt(T.height,10);cG.res=parseInt(cS,10)+"x"+parseInt(cQ,10)}ci();a4();aC();this.getVisitorId=function(){return aN().uuid};this.getVisitorInfo=function(){return cp()};this.getAttributionInfo=function(){return bt()};this.getAttributionCampaignName=function(){return bt()[0]};this.getAttributionCampaignKeyword=function(){return bt()[1]};this.getAttributionReferrerTimestamp=function(){return bt()[2]};this.getAttributionReferrerUrl=function(){return bt()[3]};this.setTrackerUrl=function(cQ){av=cQ};this.getTrackerUrl=function(){return av};this.addTracker=function(cQ,cS){if(!cS){throw new Error("A siteId must be given to add a new tracker") -}if(!G(cQ)||null===cQ){cQ=this.getTrackerUrl()}var cR=new N(cQ,cS);F.push(cR);return cR};this.getSiteId=function(){return bM};this.setSiteId=function(cQ){bJ(cQ)};this.setUserId=function(cQ){if(!G(cQ)||!cQ.length){return}bi=cQ;bv=bN(bi).substr(0,16)};this.getUserId=function(){return bi};this.setCustomData=function(cQ,cR){if(S(cQ)){ah=cQ}else{if(!ah){ah={}}ah[cQ]=cR}};this.getCustomData=function(){return ah};this.setCustomRequestProcessing=function(cQ){bR=cQ};this.appendToTrackingUrl=function(cQ){cz=cQ};this.getRequest=function(cQ){return b8(cQ)};this.addPlugin=function(cQ,cR){a[cQ]=cR};this.setCustomDimension=function(cQ,cR){cQ=parseInt(cQ,10);if(cQ>0){if(!G(cR)){cR=""}if(!u(cR)){cR=String(cR)}a8[cQ]=cR}};this.getCustomDimension=function(cQ){cQ=parseInt(cQ,10);if(cQ>0&&Object.prototype.hasOwnProperty.call(a8,cQ)){return a8[cQ]}};this.deleteCustomDimension=function(cQ){cQ=parseInt(cQ,10);if(cQ>0){delete a8[cQ]}};this.setCustomVariable=function(cR,cQ,cU,cS){var cT;if(!G(cS)){cS="visit"}if(!G(cQ)){return -}if(!G(cU)){cU=""}if(cR>0){cQ=!u(cQ)?String(cQ):cQ;cU=!u(cU)?String(cU):cU;cT=[cQ.slice(0,be),cU.slice(0,be)];if(cS==="visit"||cS===2){ch();aG[cR]=cT}else{if(cS==="page"||cS===3){bC[cR]=cT}else{if(cS==="event"){b2[cR]=cT}}}}};this.getCustomVariable=function(cR,cS){var cQ;if(!G(cS)){cS="visit"}if(cS==="page"||cS===3){cQ=bC[cR]}else{if(cS==="event"){cQ=b2[cR]}else{if(cS==="visit"||cS===2){ch();cQ=aG[cR]}}}if(!G(cQ)||(cQ&&cQ[0]==="")){return false}return cQ};this.deleteCustomVariable=function(cQ,cR){if(this.getCustomVariable(cQ,cR)){this.setCustomVariable(cQ,"","",cR)}};this.storeCustomVariablesInCookie=function(){bx=true};this.setLinkTrackingTimer=function(cQ){bq=cQ};this.setDownloadExtensions=function(cQ){if(u(cQ)){cQ=cQ.split("|")}cF=cQ};this.addDownloadExtensions=function(cR){var cQ;if(u(cR)){cR=cR.split("|")}for(cQ=0;cQ<cR.length;cQ++){cF.push(cR[cQ])}};this.removeDownloadExtensions=function(cS){var cR,cQ=[];if(u(cS)){cS=cS.split("|")}for(cR=0;cR<cF.length;cR++){if(J(cS,cF[cR])===-1){cQ.push(cF[cR]) -}}cF=cQ};this.setDomains=function(cQ){ao=u(cQ)?[cQ]:cQ;var cU=false,cS=0,cR;for(cS;cS<ao.length;cS++){cR=String(ao[cS]);if(ck(cv,I(cR))){cU=true;break}var cT=b1(cR);if(cT&&cT!=="/"&&cT!=="/*"){cU=true;break}}if(!cU){ao.push(cv)}};this.enableCrossDomainLinking=function(){co=true};this.disableCrossDomainLinking=function(){co=false};this.isCrossDomainLinkingEnabled=function(){return co};this.setIgnoreClasses=function(cQ){bj=u(cQ)?[cQ]:cQ};this.setRequestMethod=function(cQ){cI=cQ||bY};this.setRequestContentType=function(cQ){cc=cQ||az};this.setReferrerUrl=function(cQ){a9=cQ};this.setCustomUrl=function(cQ){aT=bB(bu,cQ)};this.setDocumentTitle=function(cQ){a5=cQ};this.setAPIUrl=function(cQ){bp=cQ};this.setDownloadClasses=function(cQ){bs=u(cQ)?[cQ]:cQ};this.setLinkClasses=function(cQ){aW=u(cQ)?[cQ]:cQ};this.setCampaignNameKey=function(cQ){b7=u(cQ)?[cQ]:cQ};this.setCampaignKeywordKey=function(cQ){bo=u(cQ)?[cQ]:cQ};this.discardHashTag=function(cQ){bw=cQ};this.setCookieNamePrefix=function(cQ){a6=cQ; -aG=bD()};this.setCookieDomain=function(cQ){var cR=I(cQ);if(bg(cR)){cx=cR;a4()}};this.setCookiePath=function(cQ){bb=cQ;a4()};this.setVisitorCookieTimeout=function(cQ){cm=cQ*1000};this.setSessionCookieTimeout=function(cQ){b5=cQ*1000};this.setReferralCookieTimeout=function(cQ){cE=cQ*1000};this.setConversionAttributionFirstReferrer=function(cQ){bf=cQ};this.disableCookies=function(){a7=true;cG.cookie="0";if(bM){aw()}};this.deleteCookies=function(){aw()};this.setDoNotTrack=function(cR){var cQ=g.doNotTrack||g.msDoNotTrack;cr=cR&&(cQ==="yes"||cQ==="1");if(cr){this.disableCookies()}};this.addListener=function(cR,cQ){aj(cR,cQ)};this.enableLinkTracking=function(cQ){cH=true;bX(function(){o(function(){bl(cQ)})})};this.enableJSErrorTracking=function(){if(ct){return}ct=true;var cQ=Q.onerror;Q.onerror=function(cV,cT,cS,cU,cR){bX(function(){var cW="JavaScript Errors";var cX=cT+":"+cS;if(cU){cX+=":"+cU}am(cW,cX,cV)});if(cQ){return cQ(cV,cT,cS,cU,cR)}return false}};this.disablePerformanceTracking=function(){aR=false -};this.setGenerationTimeMs=function(cQ){b3=parseInt(cQ,10)};this.enableHeartBeatTimer=function(cQ){cQ=Math.max(cQ,1);aU=(cQ||15)*1000;if(cy!==null){cN()}};this.disableHeartBeatTimer=function(){br();if(aU||aE){if(Q.removeEventListener){Q.removeEventListener("focus",aY,true);Q.removeEventListener("blur",ap,true)}else{if(Q.detachEvent){Q.detachEvent("onfocus",aY);Q.detachEvent("onblur",ap)}}}aU=null;aE=false};this.killFrame=function(){if(Q.location!==Q.top.location){Q.top.location=Q.location}};this.redirectFile=function(cQ){if(Q.location.protocol==="file:"){Q.location=cQ}};this.setCountPreRendered=function(cQ){a1=cQ};this.trackGoal=function(cQ,cS,cR){bX(function(){cu(cQ,cS,cR)})};this.trackLink=function(cR,cQ,cT,cS){bX(function(){cB(cR,cQ,cT,cS)})};this.trackPageView=function(cQ,cS,cR){bQ=[];if(K(bM)){bX(function(){U(av,bp,bM)})}else{bX(function(){bG(cQ,cS,cR)})}};this.trackAllContentImpressions=function(){if(K(bM)){return}bX(function(){o(function(){var cQ=t.findContentNodes();var cR=ce(cQ); -cM(cR,bq)})})};this.trackVisibleContentImpressions=function(cQ,cR){if(K(bM)){return}if(!G(cQ)){cQ=true}if(!G(cR)){cR=750}aI(cQ,cR,this);bX(function(){l(function(){var cS=t.findContentNodes();var cT=aX(cS);cM(cT,bq)})})};this.trackContentImpression=function(cS,cQ,cR){if(K(bM)){return}if(!cS){return}cQ=cQ||"Unknown";bX(function(){var cT=ax(cS,cQ,cR);bn(cT,bq)})};this.trackContentImpressionsWithinNode=function(cQ){if(K(bM)||!cQ){return}bX(function(){if(bV){l(function(){var cR=t.findContentNodesWithinNode(cQ);var cS=aX(cR);cM(cS,bq)})}else{o(function(){var cR=t.findContentNodesWithinNode(cQ);var cS=ce(cR);cM(cS,bq)})}})};this.trackContentInteraction=function(cS,cT,cQ,cR){if(K(bM)){return}if(!cS||!cT){return}cQ=cQ||"Unknown";bX(function(){var cU=aF(cS,cT,cQ,cR);bn(cU,bq)})};this.trackContentInteractionNode=function(cR,cQ){if(K(bM)||!cR){return}bX(function(){var cS=cK(cR,cQ);bn(cS,bq)})};this.logAllContentBlocksOnPage=function(){var cR=t.findContentNodes();var cQ=t.collectContent(cR);if(console!==undefined&&console&&console.log){console.log(cQ) -}};this.trackEvent=function(cR,cT,cQ,cS,cV,cU){bX(function(){am(cR,cT,cQ,cS,cV,cU)})};this.trackSiteSearch=function(cQ,cS,cR,cT){bX(function(){bP(cQ,cS,cR,cT)})};this.setEcommerceView=function(cT,cQ,cS,cR){if(!G(cS)||!cS.length){cS=""}else{if(cS instanceof Array){cS=JSON_PIWIK.stringify(cS)}}bC[5]=["_pkc",cS];if(G(cR)&&String(cR).length){bC[2]=["_pkp",cR]}if((!G(cT)||!cT.length)&&(!G(cQ)||!cQ.length)){return}if(G(cT)&&cT.length){bC[3]=["_pks",cT]}if(!G(cQ)||!cQ.length){cQ=""}bC[4]=["_pkn",cQ]};this.addEcommerceItem=function(cU,cQ,cS,cR,cT){if(cU.length){cA[cU]=[cU,cQ,cS,cR,cT]}};this.trackEcommerceOrder=function(cQ,cU,cT,cS,cR,cV){bF(cQ,cU,cT,cS,cR,cV)};this.trackEcommerceCartUpdate=function(cQ){bd(cQ)};this.trackRequest=function(cQ,cS,cR){bX(function(){var cT=b8(cQ,cS);bn(cT,bq,cR)})};d.trigger("TrackerSetup",[this])}function E(){return{push:Z}}function b(am,al){var an={};var aj,ak;for(aj=0;aj<al.length;aj++){var ah=al[aj];an[ah]=1;for(ak=0;ak<am.length;ak++){if(am[ak]&&am[ak][0]){var ai=am[ak][0]; -if(ah===ai){Z(am[ak]);delete am[ak];if(an[ai]>1){ad("The method "+ai+' 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/guides/tracking-javascript-guide#multiple-piwik-trackers')}an[ai]++}}}}return am}var z=["addTracker","disableCookies","setTrackerUrl","setAPIUrl","enableCrossDomainLinking","setCookiePath","setCookieDomain","setDomains","setUserId","setSiteId","enableLinkTracking"];function X(ah,aj){var ai=new N(ah,aj);F.push(ai);_paq=b(_paq,z);for(B=0;B<_paq.length;B++){if(_paq[B]){Z(_paq[B])}}_paq=new E();return ai}ag(Q,"beforeunload",ab,false);Date.prototype.getTimeAlias=Date.prototype.getTime;d={initialized:false,JSON:JSON_PIWIK,DOM:{addEventListener:function(ak,aj,ai,ah){var al=typeof ah;if(al==="undefined"){ah=false}ag(ak,aj,ai,ah)},onLoad:l,onReady:o},on:function(ai,ah){if(!v[ai]){v[ai]=[]}v[ai].push(ah)},off:function(aj,ai){if(!v[aj]){return}var ah=0;for(ah; -ah<v[aj].length;ah++){if(v[aj][ah]===ai){v[aj].splice(ah,1)}}},trigger:function(aj,ak,ai){if(!v[aj]){return}var ah=0;for(ah;ah<v[aj].length;ah++){v[aj][ah].apply(ai||Q,ak)}},addPlugin:function(ah,ai){a[ah]=ai},getTracker:function(ah,ai){if(!G(ai)){ai=this.getAsyncTracker().getSiteId()}if(!G(ah)){ah=this.getAsyncTracker().getTrackerUrl()}return new N(ah,ai)},getAsyncTrackers:function(){return F},addTracker:function(ah,ai){if(!F.length){X(ah,ai)}else{F[0].addTracker(ah,ai)}},getAsyncTracker:function(ai,al){var ak;if(F&&F.length&&F[0]){ak=F[0]}else{return X(ai,al)}if(!al&&!ai){return ak}if((!G(al)||null===al)&&ak){al=ak.getSiteId()}if((!G(ai)||null===ai)&&ak){ai=ak.getTrackerUrl()}var aj,ah=0;for(ah;ah<F.length;ah++){aj=F[ah];if(aj&&String(aj.getSiteId())===String(al)&&aj.getTrackerUrl()===ai){return aj}}},retryMissedPluginCalls:function(){var ai=aa;aa=[];var ah=0;for(ah;ah<ai.length;ah++){Z(ai[ah])}}};if(typeof define==="function"&&define.amd){define("piwik",[],function(){return d})}return d -}()); +if(!cR){return false}var cQ=cT.pathname||b1(cT.href);var cS=(cT.hostname||c(cT.href)).toLowerCase();if(ak(cS,cQ)){if(!ck(cv,I(cS))){return true}return false}return false}function cj(cQ){var cR=cJ(cQ);if(cR&&cR.type){cR.href=n(cR.href);cB(cR.href,cR.type,undefined,null,cQ);return}if(co){cQ=al(cQ);if(ar(cQ)){bZ(cQ)}}}function cb(){return D.all&&!D.addEventListener}function cw(cQ){var cS=cQ.which;var cR=(typeof cQ.button);if(!cS&&cR!=="undefined"){if(cb()){if(cQ.button&1){cS=1}else{if(cQ.button&2){cS=3}else{if(cQ.button&4){cS=2}}}}else{if(cQ.button===0||cQ.button==="0"){cS=1}else{if(cQ.button&1){cS=2}else{if(cQ.button&2){cS=3}}}}}return cS}function bz(cQ){switch(cw(cQ)){case 1:return"left";case 2:return"middle";case 3:return"right"}}function aQ(cQ){return cQ.target||cQ.srcElement}function at(cQ){return function(cT){cT=cT||Q.event;var cS=bz(cT);var cU=aQ(cT);if(cT.type==="click"){var cR=false;if(cQ&&cS==="middle"){cR=true}if(cU&&!cR){cj(cU)}}else{if(cT.type==="mousedown"){if(cS==="middle"&&cU){aH=cS; +bk=cU}else{aH=bk=null}}else{if(cT.type==="mouseup"){if(cS===aH&&cU===bk){cj(cU)}aH=bk=null}else{if(cT.type==="contextmenu"){cj(cU)}}}}}}function aj(cS,cR){var cQ=typeof cR;if(cQ==="undefined"){cR=true}ag(cS,"click",at(cR),false);if(cR){ag(cS,"mouseup",at(cR),false);ag(cS,"mousedown",at(cR),false);ag(cS,"contextmenu",at(cR),false)}}function bl(cR){if(!ai){ai=true;var cS,cQ=aP(bj,"ignore"),cT=D.links;if(cT){for(cS=0;cS<cT.length;cS++){if(!cQ.test(cT[cS].className)){aj(cT[cS],cR)}}}}}function aI(cS,cU,cV){if(bV){return true}bV=true;var cW=false;var cT,cR;function cQ(){cW=true}l(function(){function cX(cZ){setTimeout(function(){if(!bV){return}cW=false;cV.trackVisibleContentImpressions();cX(cZ)},cZ)}function cY(cZ){setTimeout(function(){if(!bV){return}if(cW){cW=false;cV.trackVisibleContentImpressions()}cY(cZ)},cZ)}if(cS){cT=["scroll","resize"];for(cR=0;cR<cT.length;cR++){if(D.addEventListener){D.addEventListener(cT[cR],cQ)}else{Q.attachEvent("on"+cT[cR],cQ)}}cY(100)}if(cU&&cU>0){cU=parseInt(cU,10); +cX(cU)}})}function ci(){var cR,cT,cU={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"};if(!((new RegExp("MSIE")).test(g.userAgent))){if(g.mimeTypes&&g.mimeTypes.length){for(cR in cU){if(Object.prototype.hasOwnProperty.call(cU,cR)){cT=g.mimeTypes[cU[cR]];cG[cR]=(cT&&cT.enabledPlugin)?"1":"0"}}}if(typeof navigator.javaEnabled!=="unknown"&&G(g.javaEnabled)&&g.javaEnabled()){cG.java="1"}if(x(Q.GearsFactory)){cG.gears="1"}cG.cookie=bL()}var cS=parseInt(T.width,10);var cQ=parseInt(T.height,10);cG.res=parseInt(cS,10)+"x"+parseInt(cQ,10)}ci();a4();aC();this.getVisitorId=function(){return aN().uuid};this.getVisitorInfo=function(){return cp()};this.getAttributionInfo=function(){return bt()};this.getAttributionCampaignName=function(){return bt()[0]};this.getAttributionCampaignKeyword=function(){return bt()[1] +};this.getAttributionReferrerTimestamp=function(){return bt()[2]};this.getAttributionReferrerUrl=function(){return bt()[3]};this.setTrackerUrl=function(cQ){av=cQ};this.getTrackerUrl=function(){return av};this.addTracker=function(cQ,cS){if(!cS){throw new Error("A siteId must be given to add a new tracker")}if(!G(cQ)||null===cQ){cQ=this.getTrackerUrl()}var cR=new N(cQ,cS);F.push(cR);return cR};this.getSiteId=function(){return bM};this.setSiteId=function(cQ){bJ(cQ)};this.setUserId=function(cQ){if(!G(cQ)||!cQ.length){return}bi=cQ;bv=bN(bi).substr(0,16)};this.getUserId=function(){return bi};this.setCustomData=function(cQ,cR){if(S(cQ)){ah=cQ}else{if(!ah){ah={}}ah[cQ]=cR}};this.getCustomData=function(){return ah};this.setCustomRequestProcessing=function(cQ){bR=cQ};this.appendToTrackingUrl=function(cQ){cz=cQ};this.getRequest=function(cQ){return b8(cQ)};this.addPlugin=function(cQ,cR){a[cQ]=cR};this.setCustomDimension=function(cQ,cR){cQ=parseInt(cQ,10);if(cQ>0){if(!G(cR)){cR=""}if(!u(cR)){cR=String(cR) +}a8[cQ]=cR}};this.getCustomDimension=function(cQ){cQ=parseInt(cQ,10);if(cQ>0&&Object.prototype.hasOwnProperty.call(a8,cQ)){return a8[cQ]}};this.deleteCustomDimension=function(cQ){cQ=parseInt(cQ,10);if(cQ>0){delete a8[cQ]}};this.setCustomVariable=function(cR,cQ,cU,cS){var cT;if(!G(cS)){cS="visit"}if(!G(cQ)){return}if(!G(cU)){cU=""}if(cR>0){cQ=!u(cQ)?String(cQ):cQ;cU=!u(cU)?String(cU):cU;cT=[cQ.slice(0,be),cU.slice(0,be)];if(cS==="visit"||cS===2){ch();aG[cR]=cT}else{if(cS==="page"||cS===3){bC[cR]=cT}else{if(cS==="event"){b2[cR]=cT}}}}};this.getCustomVariable=function(cR,cS){var cQ;if(!G(cS)){cS="visit"}if(cS==="page"||cS===3){cQ=bC[cR]}else{if(cS==="event"){cQ=b2[cR]}else{if(cS==="visit"||cS===2){ch();cQ=aG[cR]}}}if(!G(cQ)||(cQ&&cQ[0]==="")){return false}return cQ};this.deleteCustomVariable=function(cQ,cR){if(this.getCustomVariable(cQ,cR)){this.setCustomVariable(cQ,"","",cR)}};this.storeCustomVariablesInCookie=function(){bx=true};this.setLinkTrackingTimer=function(cQ){bq=cQ};this.setDownloadExtensions=function(cQ){if(u(cQ)){cQ=cQ.split("|") +}cF=cQ};this.addDownloadExtensions=function(cR){var cQ;if(u(cR)){cR=cR.split("|")}for(cQ=0;cQ<cR.length;cQ++){cF.push(cR[cQ])}};this.removeDownloadExtensions=function(cS){var cR,cQ=[];if(u(cS)){cS=cS.split("|")}for(cR=0;cR<cF.length;cR++){if(J(cS,cF[cR])===-1){cQ.push(cF[cR])}}cF=cQ};this.setDomains=function(cQ){ao=u(cQ)?[cQ]:cQ;var cU=false,cS=0,cR;for(cS;cS<ao.length;cS++){cR=String(ao[cS]);if(ck(cv,I(cR))){cU=true;break}var cT=b1(cR);if(cT&&cT!=="/"&&cT!=="/*"){cU=true;break}}if(!cU){ao.push(cv)}};this.enableCrossDomainLinking=function(){co=true};this.disableCrossDomainLinking=function(){co=false};this.isCrossDomainLinkingEnabled=function(){return co};this.setIgnoreClasses=function(cQ){bj=u(cQ)?[cQ]:cQ};this.setRequestMethod=function(cQ){cI=cQ||bY};this.setRequestContentType=function(cQ){cc=cQ||az};this.setReferrerUrl=function(cQ){a9=cQ};this.setCustomUrl=function(cQ){aT=bB(bu,cQ)};this.setDocumentTitle=function(cQ){a5=cQ};this.setAPIUrl=function(cQ){bp=cQ};this.setDownloadClasses=function(cQ){bs=u(cQ)?[cQ]:cQ +};this.setLinkClasses=function(cQ){aW=u(cQ)?[cQ]:cQ};this.setCampaignNameKey=function(cQ){b7=u(cQ)?[cQ]:cQ};this.setCampaignKeywordKey=function(cQ){bo=u(cQ)?[cQ]:cQ};this.discardHashTag=function(cQ){bw=cQ};this.setCookieNamePrefix=function(cQ){a6=cQ;aG=bD()};this.setCookieDomain=function(cQ){var cR=I(cQ);if(bg(cR)){cx=cR;a4()}};this.setCookiePath=function(cQ){bb=cQ;a4()};this.setVisitorCookieTimeout=function(cQ){cm=cQ*1000};this.setSessionCookieTimeout=function(cQ){b5=cQ*1000};this.setReferralCookieTimeout=function(cQ){cE=cQ*1000};this.setConversionAttributionFirstReferrer=function(cQ){bf=cQ};this.disableCookies=function(){a7=true;cG.cookie="0";if(bM){aw()}};this.deleteCookies=function(){aw()};this.setDoNotTrack=function(cR){var cQ=g.doNotTrack||g.msDoNotTrack;cr=cR&&(cQ==="yes"||cQ==="1");if(cr){this.disableCookies()}};this.addListener=function(cR,cQ){aj(cR,cQ)};this.enableLinkTracking=function(cQ){cH=true;bX(function(){o(function(){bl(cQ)})})};this.enableJSErrorTracking=function(){if(ct){return +}ct=true;var cQ=Q.onerror;Q.onerror=function(cV,cT,cS,cU,cR){bX(function(){var cW="JavaScript Errors";var cX=cT+":"+cS;if(cU){cX+=":"+cU}am(cW,cX,cV)});if(cQ){return cQ(cV,cT,cS,cU,cR)}return false}};this.disablePerformanceTracking=function(){aR=false};this.setGenerationTimeMs=function(cQ){b3=parseInt(cQ,10)};this.enableHeartBeatTimer=function(cQ){cQ=Math.max(cQ,1);aU=(cQ||15)*1000;if(cy!==null){cN()}};this.disableHeartBeatTimer=function(){br();if(aU||aE){if(Q.removeEventListener){Q.removeEventListener("focus",aY,true);Q.removeEventListener("blur",ap,true)}else{if(Q.detachEvent){Q.detachEvent("onfocus",aY);Q.detachEvent("onblur",ap)}}}aU=null;aE=false};this.killFrame=function(){if(Q.location!==Q.top.location){Q.top.location=Q.location}};this.redirectFile=function(cQ){if(Q.location.protocol==="file:"){Q.location=cQ}};this.setCountPreRendered=function(cQ){a1=cQ};this.trackGoal=function(cQ,cS,cR){bX(function(){cu(cQ,cS,cR)})};this.trackLink=function(cR,cQ,cT,cS){bX(function(){cB(cR,cQ,cT,cS) +})};this.trackPageView=function(cQ,cS,cR){bQ=[];if(K(bM)){bX(function(){U(av,bp,bM)})}else{bX(function(){bG(cQ,cS,cR)})}};this.trackAllContentImpressions=function(){if(K(bM)){return}bX(function(){o(function(){var cQ=t.findContentNodes();var cR=ce(cQ);cM(cR,bq)})})};this.trackVisibleContentImpressions=function(cQ,cR){if(K(bM)){return}if(!G(cQ)){cQ=true}if(!G(cR)){cR=750}aI(cQ,cR,this);bX(function(){l(function(){var cS=t.findContentNodes();var cT=aX(cS);cM(cT,bq)})})};this.trackContentImpression=function(cS,cQ,cR){if(K(bM)){return}if(!cS){return}cQ=cQ||"Unknown";bX(function(){var cT=ax(cS,cQ,cR);bn(cT,bq)})};this.trackContentImpressionsWithinNode=function(cQ){if(K(bM)||!cQ){return}bX(function(){if(bV){l(function(){var cR=t.findContentNodesWithinNode(cQ);var cS=aX(cR);cM(cS,bq)})}else{o(function(){var cR=t.findContentNodesWithinNode(cQ);var cS=ce(cR);cM(cS,bq)})}})};this.trackContentInteraction=function(cS,cT,cQ,cR){if(K(bM)){return}if(!cS||!cT){return}cQ=cQ||"Unknown";bX(function(){var cU=aF(cS,cT,cQ,cR); +bn(cU,bq)})};this.trackContentInteractionNode=function(cR,cQ){if(K(bM)||!cR){return}bX(function(){var cS=cK(cR,cQ);bn(cS,bq)})};this.logAllContentBlocksOnPage=function(){var cR=t.findContentNodes();var cQ=t.collectContent(cR);if(console!==undefined&&console&&console.log){console.log(cQ)}};this.trackEvent=function(cR,cT,cQ,cS,cV,cU){bX(function(){am(cR,cT,cQ,cS,cV,cU)})};this.trackSiteSearch=function(cQ,cS,cR,cT){bX(function(){bP(cQ,cS,cR,cT)})};this.setEcommerceView=function(cT,cQ,cS,cR){if(!G(cS)||!cS.length){cS=""}else{if(cS instanceof Array){cS=JSON_PIWIK.stringify(cS)}}bC[5]=["_pkc",cS];if(G(cR)&&String(cR).length){bC[2]=["_pkp",cR]}if((!G(cT)||!cT.length)&&(!G(cQ)||!cQ.length)){return}if(G(cT)&&cT.length){bC[3]=["_pks",cT]}if(!G(cQ)||!cQ.length){cQ=""}bC[4]=["_pkn",cQ]};this.addEcommerceItem=function(cU,cQ,cS,cR,cT){if(cU.length){cA[cU]=[cU,cQ,cS,cR,cT]}};this.trackEcommerceOrder=function(cQ,cU,cT,cS,cR,cV){bF(cQ,cU,cT,cS,cR,cV)};this.trackEcommerceCartUpdate=function(cQ){bd(cQ)};this.trackRequest=function(cQ,cS,cR){bX(function(){var cT=b8(cQ,cS); +bn(cT,bq,cR)})};d.trigger("TrackerSetup",[this])}function E(){return{push:Z}}function b(am,al){var an={};var aj,ak;for(aj=0;aj<al.length;aj++){var ah=al[aj];an[ah]=1;for(ak=0;ak<am.length;ak++){if(am[ak]&&am[ak][0]){var ai=am[ak][0];if(ah===ai){Z(am[ak]);delete am[ak];if(an[ai]>1){ad("The method "+ai+' 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/guides/tracking-javascript-guide#multiple-piwik-trackers')}an[ai]++}}}}return am}var z=["addTracker","disableCookies","setTrackerUrl","setAPIUrl","enableCrossDomainLinking","setCookiePath","setCookieDomain","setDomains","setUserId","setSiteId","enableLinkTracking"];function X(ah,aj){var ai=new N(ah,aj);F.push(ai);_paq=b(_paq,z);for(B=0;B<_paq.length;B++){if(_paq[B]){Z(_paq[B])}}_paq=new E();return ai}ag(Q,"beforeunload",ab,false);Date.prototype.getTimeAlias=Date.prototype.getTime;d={initialized:false,JSON:JSON_PIWIK,DOM:{addEventListener:function(ak,aj,ai,ah){var al=typeof ah; +if(al==="undefined"){ah=false}ag(ak,aj,ai,ah)},onLoad:l,onReady:o},on:function(ai,ah){if(!v[ai]){v[ai]=[]}v[ai].push(ah)},off:function(aj,ai){if(!v[aj]){return}var ah=0;for(ah;ah<v[aj].length;ah++){if(v[aj][ah]===ai){v[aj].splice(ah,1)}}},trigger:function(aj,ak,ai){if(!v[aj]){return}var ah=0;for(ah;ah<v[aj].length;ah++){v[aj][ah].apply(ai||Q,ak)}},addPlugin:function(ah,ai){a[ah]=ai},getTracker:function(ah,ai){if(!G(ai)){ai=this.getAsyncTracker().getSiteId()}if(!G(ah)){ah=this.getAsyncTracker().getTrackerUrl()}return new N(ah,ai)},getAsyncTrackers:function(){return F},addTracker:function(ah,ai){if(!F.length){X(ah,ai)}else{F[0].addTracker(ah,ai)}},getAsyncTracker:function(ai,al){var ak;if(F&&F.length&&F[0]){ak=F[0]}else{return X(ai,al)}if(!al&&!ai){return ak}if((!G(al)||null===al)&&ak){al=ak.getSiteId()}if((!G(ai)||null===ai)&&ak){ai=ak.getTrackerUrl()}var aj,ah=0;for(ah;ah<F.length;ah++){aj=F[ah];if(aj&&String(aj.getSiteId())===String(al)&&aj.getTrackerUrl()===ai){return aj}}},retryMissedPluginCalls:function(){var ai=aa; +aa=[];var ah=0;for(ah;ah<ai.length;ah++){Z(ai[ah])}}};if(typeof define==="function"&&define.amd){define("piwik",[],function(){return d})}return d}()); /*!!! pluginTrackerHook */ -}(function(){function b(){if("object"!==typeof _paq){return false}var c=typeof _paq.length;if("undefined"===c){return false}return !!_paq.length}if(window&&"object"===typeof window.piwikPluginAsyncInit&&window.piwikPluginAsyncInit.length){var a=0;for(a;a<window.piwikPluginAsyncInit.length;a++){if(typeof window.piwikPluginAsyncInit[a]==="function"){window.piwikPluginAsyncInit[a]()}}}if(window&&window.piwikAsyncInit){window.piwikAsyncInit()}if(!window.Piwik.getAsyncTrackers().length){if(b()){window.Piwik.addTracker()}else{_paq={push:function(c){if(console!==undefined&&console&&console.error){console.error("_paq.push() was used but Piwik tracker was not initialized before the piwik.js file was loaded. Make sure to configure the tracker via _paq.push before loading piwik.js. Alternatively, you can create a tracker via Piwik.addTracker() manually and then use _paq.push but it may not fully work as tracker methods may not be executed in the correct order.",c)}}} -}}window.Piwik.trigger("PiwikInitialized",[]);window.Piwik.initialized=true}());(function(){var a=(typeof AnalyticsTracker);if(a==="undefined"){AnalyticsTracker=window.Piwik}}());if(typeof piwik_log!=="function"){piwik_log=function(b,f,d,g){function a(h){try{if(window["piwik_"+h]){return window["piwik_"+h]}}catch(i){}return}var c,e=window.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()}}; +}(function(){function b(){if("object"!==typeof _paq){return false}var c=typeof _paq.length;if("undefined"===c){return false}return !!_paq.length}if(window&&"object"===typeof window.piwikPluginAsyncInit&&window.piwikPluginAsyncInit.length){var a=0;for(a;a<window.piwikPluginAsyncInit.length;a++){if(typeof window.piwikPluginAsyncInit[a]==="function"){window.piwikPluginAsyncInit[a]()}}}if(window&&window.piwikAsyncInit){window.piwikAsyncInit()}if(!window.Piwik.getAsyncTrackers().length){if(b()){window.Piwik.addTracker()}else{_paq={push:function(c){if(console!==undefined&&console&&console.error){console.error("_paq.push() was used but Piwik tracker was not initialized before the piwik.js file was loaded. Make sure to configure the tracker via _paq.push before loading piwik.js. Alternatively, you can create a tracker via Piwik.addTracker() manually and then use _paq.push but it may not fully work as tracker methods may not be executed in the correct order.",c) +}}}}}window.Piwik.trigger("PiwikInitialized",[]);window.Piwik.initialized=true}());(function(){var a=(typeof AnalyticsTracker);if(a==="undefined"){AnalyticsTracker=window.Piwik}}());if(typeof piwik_log!=="function"){piwik_log=function(b,f,d,g){function a(h){try{if(window["piwik_"+h]){return window["piwik_"+h]}}catch(i){}return}var c,e=window.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 |