diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/piwik.js | 30 | ||||
-rw-r--r-- | js/piwik.min.js | 90 |
2 files changed, 64 insertions, 56 deletions
diff --git a/js/piwik.js b/js/piwik.js index a0e404ba68..95713ab13f 100644 --- a/js/piwik.js +++ b/js/piwik.js @@ -988,7 +988,7 @@ if (typeof JSON_PIWIK !== 'object' && typeof window.JSON === 'object' && window. discardHashTag, setCookieNamePrefix, setCookieDomain, setCookiePath, setVisitorIdCookie, setVisitorCookieTimeout, setSessionCookieTimeout, setReferralCookieTimeout, - setConversionAttributionFirstReferrer, + setConversionAttributionFirstReferrer, tracker, request, disablePerformanceTracking, setGenerationTimeMs, doNotTrack, setDoNotTrack, msDoNotTrack, getValuesFromVisitorIdCookie, enableCrossDomainLinking, disableCrossDomainLinking, isCrossDomainLinkingEnabled, @@ -1353,17 +1353,23 @@ if (typeof window.Piwik !== 'object') { /* * Call plugin hook methods */ - function executePluginMethod(methodName, callback) { + function executePluginMethod(methodName, params, callback) { + if (!methodName) { + return ''; + } + var result = '', i, - pluginMethod, value; + pluginMethod, value, isFunction; for (i in plugins) { if (Object.prototype.hasOwnProperty.call(plugins, i)) { - pluginMethod = plugins[i][methodName]; + isFunction = plugins[i] && 'function' === typeof plugins[i][methodName]; + + if (isFunction) { + pluginMethod = plugins[i][methodName]; + value = pluginMethod(params || {}, callback); - if (isFunction(pluginMethod)) { - value = pluginMethod(callback); if (value) { result += value; } @@ -2983,6 +2989,7 @@ if (typeof window.Piwik !== 'object') { registeredHooks = {}, /*</DEBUG>*/ + trackerInstance = this, // Current URL and Referrer URL locationArray = urlFixup(documentAlias.domain, windowAlias.location.href, getReferrer()), domainAlias = domainFixup(locationArray[0]), @@ -4315,7 +4322,7 @@ if (typeof window.Piwik !== 'object') { setSessionCookie(); // tracker plugin hook - request += executePluginMethod(pluginMethod); + request += executePluginMethod(pluginMethod, {tracker: trackerInstance, request: request}); if (configAppendToTrackingUrl.length) { request += '&' + configAppendToTrackingUrl; @@ -5463,7 +5470,7 @@ if (typeof window.Piwik !== 'object') { /* * initialize test plugin */ - executePluginMethod('run', registerHook); + executePluginMethod('run', null, registerHook); /*</DEBUG>*/ /************************************************************ @@ -6018,7 +6025,7 @@ if (typeof window.Piwik !== 'object') { /** * Enables cross domain linking. By default, the visitor ID that identifies a unique visitor is stored in - * the browser's cookies. This means the cookie can only be accessed by pages on the same domain. + * the browser's first party cookies. This means the cookie can only be accessed by pages on the same domain. * If you own multiple domains and would like to track all the actions and pageviews of a specific visitor * into the same visit, you may enable cross domain linking. Whenever a user clicks on a link it will append * a URL parameter pk_vid to the clicked URL which consists of these parts: 16 char visitorId, a 10 character @@ -6844,10 +6851,11 @@ if (typeof window.Piwik !== 'object') { * @param request eg. "param=value¶m2=value2" * @param customData * @param callback + * @param pluginMethod */ - this.trackRequest = function (request, customData, callback) { + this.trackRequest = function (request, customData, callback, pluginMethod) { trackCallback(function () { - var fullRequest = getRequest(request, customData); + var fullRequest = getRequest(request, customData, pluginMethod); sendRequest(fullRequest, configTrackerPause, callback); }); }; diff --git a/js/piwik.min.js b/js/piwik.min.js index cb12f8b837..89f3230016 100644 --- a/js/piwik.min.js +++ b/js/piwik.min.js @@ -21,51 +21,51 @@ return ag}H();default:ae=G;if(ad==45){ai=true;ad=ah.charCodeAt(++G)}if(ad>=48&&a if(ad=="}"){break}if(ae){if(ad==","){ad=y();if(ad=="}"){H()}}else{H()}}if(ad==","||typeof ad!="string"||(F?ad.charAt(0):ad[0])!="@"||y()!=":"){H()}ac[ad.slice(1)]=W(y())}return ac}}H()}return ad};var P=function(ae,ad,af){var ac=w(ae,ad,af);if(ac===L){delete ae[ad]}else{ae[ad]=ac}};var w=function(af,ae,ag){var ad=af[ae],ac;if(typeof ad=="object"&&ad){if(u.call(ad)==E){for(ac=ad.length;ac--;){P(ad,ac,ag)}}else{m(ad,function(ah){P(ad,ah,ag)})}}return ag.call(af,ae,ad)};V.parse=function(ae,af){var ac,ad;G=0;X=""+ae;ac=W(y());if(y()!="$"){H()}G=X=null;return af&&u.call(af)==U?w((ad={},ad[""]=ac,ad),"",af):ac}}}V.runInContext=j;return V}if(h&&!c){j(i,h)}else{var f=i.JSON,k=i.JSON3,d=false;var g=j(i,(i.JSON3={noConflict:function(){if(!d){d=true;i.JSON=f;i.JSON3=k;f=k=null}return g}}));i.JSON={parse:g.parse,stringify:g.stringify}}if(c){define(function(){return g})}}).call(this);JSON_PIWIK=a})()}if(typeof _paq!=="object"){_paq=[]}if(typeof window.Piwik!=="object"){window.Piwik=(function(){var p,a={},v={},D=document,g=navigator,T=screen,Q=window,h=Q.performance||Q.mozPerformance||Q.msPerformance||Q.webkitPerformance,r=Q.encodeURIComponent,P=Q.decodeURIComponent,k=unescape,F=[],B,d,aa=[]; function n(ah){try{return P(ah)}catch(ai){return unescape(ah)}}function G(ai){var ah=typeof ai;return ah!=="undefined"}function x(ah){return typeof ah==="function"}function S(ah){return typeof ah==="object"}function u(ah){return typeof ah==="string"||ah instanceof String}function y(ai){if(!ai){return true}var ah;var aj=true;for(ah in ai){if(Object.prototype.hasOwnProperty.call(ai,ah)){aj=false}}return aj}function ad(ah){if(console!==undefined&&console&&console.error){console.error(ah)}}function Z(){var am,al,ao,ai,ah;for(am=0;am<arguments.length;am+=1){ah=null;if(arguments[am]&&arguments[am].slice){ah=arguments[am].slice()}ai=arguments[am];ao=ai.shift();var an,aj;var ak=u(ao)&&ao.indexOf("::")>0;if(ak){an=ao.split("::");aj=an[0];ao=an[1];if("object"===typeof d[aj]&&"function"===typeof d[aj][ao]){d[aj][ao].apply(d[aj],ai)}else{if(ah){aa.push(ah)}}}else{for(al=0;al<F.length;al++){if(u(ao)){aj=F[al];var ap=ao.indexOf(".")>0;if(ap){an=ao.split(".");if(aj&&"object"===typeof aj[an[0]]){aj=aj[an[0]]; ao=an[1]}else{if(ah){aa.push(ah);break}}}if(aj[ao]){aj[ao].apply(aj,ai)}else{var aq="The method '"+ao+'\' was not found in "_paq" variable. Please have a look at the Piwik tracker documentation: http://developer.piwik.org/api-reference/tracking-javascript';ad(aq);if(!ap){throw new TypeError(aq)}}if(ao==="addTracker"){break}if(ao==="setTrackerUrl"||ao==="setSiteId"){break}}else{ao.apply(F[al],ai)}}}}}function ag(ak,aj,ai,ah){if(ak.addEventListener){ak.addEventListener(aj,ai,ah);return true}if(ak.attachEvent){return ak.attachEvent("on"+aj,ai)}ak["on"+aj]=ai}function l(ah){if(D.readyState==="complete"){ah()}else{if(Q.addEventListener){Q.addEventListener("load",ah)}else{if(Q.attachEvent){Q.attachEvent("onload",ah)}}}}function o(ak){var ah=false;if(D.attachEvent){ah=D.readyState==="complete"}else{ah=D.readyState!=="loading"}if(ah){ak();return}var aj;if(D.addEventListener){ag(D,"DOMContentLoaded",function ai(){D.removeEventListener("DOMContentLoaded",ai,false);if(!ah){ah=true;ak()}})}else{if(D.attachEvent){D.attachEvent("onreadystatechange",function ai(){if(D.readyState==="complete"){D.detachEvent("onreadystatechange",ai); -if(!ah){ah=true;ak()}}});if(D.documentElement.doScroll&&Q===Q.top){(function ai(){if(!ah){try{D.documentElement.doScroll("left")}catch(al){setTimeout(ai,0);return}ah=true;ak()}}())}}}ag(Q,"load",function(){if(!ah){ah=true;ak()}},false)}function W(ai,am){var ah="",ak,aj,al;for(ak in a){if(Object.prototype.hasOwnProperty.call(a,ak)){aj=a[ak][ai];if(x(aj)){al=aj(am);if(al){ah+=al}}}}return ah}function ab(){var ah;W("unload");if(p){do{ah=new Date()}while(ah.getTimeAlias()<p)}}function m(aj,ai){var ah=D.createElement("script");ah.type="text/javascript";ah.src=aj;if(ah.readyState){ah.onreadystatechange=function(){var ak=this.readyState;if(ak==="loaded"||ak==="complete"){ah.onreadystatechange=null;ai()}}}else{ah.onload=ai}D.getElementsByTagName("head")[0].appendChild(ah)}function H(){var ah="";try{ah=Q.top.document.referrer}catch(aj){if(Q.parent){try{ah=Q.parent.document.referrer}catch(ai){ah=""}}}if(ah===""){ah=D.referrer}return ah}function q(ah){var aj=new RegExp("^([a-z]+):"),ai=aj.exec(ah); -return ai?ai[1]:null}function c(ah){var aj=new RegExp("^(?:(?:https?|ftp):)/*(?:[^@]+@)?([^:/#]+)"),ai=aj.exec(ah);return ai?ai[1]:ah}function ac(ai,ah){ai=String(ai);return ai.lastIndexOf(ah,0)===0}function O(ai,ah){ai=String(ai);return ai.indexOf(ah,ai.length-ah.length)!==-1}function w(ai,ah){ai=String(ai);return ai.indexOf(ah)!==-1}function f(ai,ah){ai=String(ai);return ai.substr(0,ai.length-ah)}function C(ak,aj,am){ak=String(ak);if(!am){am=""}var ah=ak.indexOf("#");var an=ak.length;if(ah===-1){ah=an}var al=ak.substr(0,ah);var ai=ak.substr(ah,an-ah);if(al.indexOf("?")===-1){al+="?"}else{if(!O(al,"?")){al+="&"}}return al+r(aj)+"="+r(am)+ai}function j(ai,aj){ai=String(ai);if(ai.indexOf("?"+aj+"=")===-1&&ai.indexOf("&"+aj+"=")===-1){return ai}var ak=ai.indexOf("?");if(ak===-1){return ai}var ah=ai.substr(ak+1);var ao=ai.substr(0,ak);if(ah){var ap="";var ar=ah.indexOf("#");if(ar!==-1){ap=ah.substr(ar+1);ah=ah.substr(0,ar)}var al;var an=ah.split("&");var am=an.length-1;for(am;am>=0;am--){al=an[am].split("=")[0]; -if(al===aj){an.splice(am,1)}}var aq=an.join("&");if(aq){ao=ao+"?"+aq}if(ap){ao+="#"+ap}}return ao}function e(aj,ai){var ah="[\\?&#]"+ai+"=([^&#]*)";var al=new RegExp(ah);var ak=al.exec(aj);return ak?P(ak[1]):""}function A(ah){return unescape(r(ah))}function af(ax){var aj=function(aD,aC){return(aD<<aC)|(aD>>>(32-aC))},ay=function(aF){var aD="",aE,aC;for(aE=7;aE>=0;aE--){aC=(aF>>>(aE*4))&15;aD+=aC.toString(16)}return aD},am,aA,az,ai=[],aq=1732584193,ao=4023233417,an=2562383102,al=271733878,ak=3285377520,aw,av,au,at,ar,aB,ah,ap=[];ax=A(ax);ah=ax.length;for(aA=0;aA<ah-3;aA+=4){az=ax.charCodeAt(aA)<<24|ax.charCodeAt(aA+1)<<16|ax.charCodeAt(aA+2)<<8|ax.charCodeAt(aA+3);ap.push(az)}switch(ah&3){case 0:aA=2147483648;break;case 1:aA=ax.charCodeAt(ah-1)<<24|8388608;break;case 2:aA=ax.charCodeAt(ah-2)<<24|ax.charCodeAt(ah-1)<<16|32768;break;case 3:aA=ax.charCodeAt(ah-3)<<24|ax.charCodeAt(ah-2)<<16|ax.charCodeAt(ah-1)<<8|128;break}ap.push(aA);while((ap.length&15)!==14){ap.push(0)}ap.push(ah>>>29);ap.push((ah<<3)&4294967295); -for(am=0;am<ap.length;am+=16){for(aA=0;aA<16;aA++){ai[aA]=ap[am+aA]}for(aA=16;aA<=79;aA++){ai[aA]=aj(ai[aA-3]^ai[aA-8]^ai[aA-14]^ai[aA-16],1)}aw=aq;av=ao;au=an;at=al;ar=ak;for(aA=0;aA<=19;aA++){aB=(aj(aw,5)+((av&au)|(~av&at))+ar+ai[aA]+1518500249)&4294967295;ar=at;at=au;au=aj(av,30);av=aw;aw=aB}for(aA=20;aA<=39;aA++){aB=(aj(aw,5)+(av^au^at)+ar+ai[aA]+1859775393)&4294967295;ar=at;at=au;au=aj(av,30);av=aw;aw=aB}for(aA=40;aA<=59;aA++){aB=(aj(aw,5)+((av&au)|(av&at)|(au&at))+ar+ai[aA]+2400959708)&4294967295;ar=at;at=au;au=aj(av,30);av=aw;aw=aB}for(aA=60;aA<=79;aA++){aB=(aj(aw,5)+(av^au^at)+ar+ai[aA]+3395469782)&4294967295;ar=at;at=au;au=aj(av,30);av=aw;aw=aB}aq=(aq+aw)&4294967295;ao=(ao+av)&4294967295;an=(an+au)&4294967295;al=(al+at)&4294967295;ak=(ak+ar)&4294967295}aB=ay(aq)+ay(ao)+ay(an)+ay(al)+ay(ak);return aB.toLowerCase()}function V(aj,ah,ai){if(!aj){aj=""}if(!ah){ah=""}if(aj==="translate.googleusercontent.com"){if(ai===""){ai=ah}ah=e(ah,"u");aj=c(ah)}else{if(aj==="cc.bingj.com"||aj==="webcache.googleusercontent.com"||aj.slice(0,5)==="74.6."){ah=D.links[0].href; -aj=c(ah)}}return[aj,ah,ai]}function I(ai){var ah=ai.length;if(ai.charAt(--ah)==="."){ai=ai.slice(0,ah)}if(ai.slice(0,2)==="*."){ai=ai.slice(1)}if(ai.indexOf("/")!==-1){ai=ai.substr(0,ai.indexOf("/"))}return ai}function ae(ai){ai=ai&&ai.text?ai.text:ai;if(!u(ai)){var ah=D.getElementsByTagName("title");if(ah&&G(ah[0])){ai=ah[0].text}}return ai}function M(ah){if(!ah){return[]}if(!G(ah.children)&&G(ah.childNodes)){return ah.children}if(G(ah.children)){return ah.children}return[]}function R(ai,ah){if(!ai||!ah){return false}if(ai.contains){return ai.contains(ah)}if(ai===ah){return true}if(ai.compareDocumentPosition){return !!(ai.compareDocumentPosition(ah)&16)}return false}function J(aj,ak){if(aj&&aj.indexOf){return aj.indexOf(ak)}if(!G(aj)||aj===null){return -1}if(!aj.length){return -1}var ah=aj.length;if(ah===0){return -1}var ai=0;while(ai<ah){if(aj[ai]===ak){return ai}ai++}return -1}function i(aj){if(!aj){return false}function ah(al,am){if(Q.getComputedStyle){return D.defaultView.getComputedStyle(al,null)[am] -}if(al.currentStyle){return al.currentStyle[am]}}function ak(al){al=al.parentNode;while(al){if(al===D){return true}al=al.parentNode}return false}function ai(an,au,al,aq,ao,ar,ap){var am=an.parentNode,at=1;if(!ak(an)){return false}if(9===am.nodeType){return true}if("0"===ah(an,"opacity")||"none"===ah(an,"display")||"hidden"===ah(an,"visibility")){return false}if(!G(au)||!G(al)||!G(aq)||!G(ao)||!G(ar)||!G(ap)){au=an.offsetTop;ao=an.offsetLeft;aq=au+an.offsetHeight;al=ao+an.offsetWidth;ar=an.offsetWidth;ap=an.offsetHeight}if(aj===an&&(0===ap||0===ar)&&"hidden"===ah(an,"overflow")){return false}if(am){if(("hidden"===ah(am,"overflow")||"scroll"===ah(am,"overflow"))){if(ao+at>am.offsetWidth+am.scrollLeft||ao+ar-at<am.scrollLeft||au+at>am.offsetHeight+am.scrollTop||au+ap-at<am.scrollTop){return false}}if(an.offsetParent===am){ao+=am.offsetLeft;au+=am.offsetTop}return ai(am,au,al,aq,ao,ar,ap)}return true}return ai(aj)}var Y={htmlCollectionToArray:function(aj){var ah=[],ai;if(!aj||!aj.length){return ah -}for(ai=0;ai<aj.length;ai++){ah.push(aj[ai])}return ah},find:function(ah){if(!document.querySelectorAll||!ah){return[]}var ai=document.querySelectorAll(ah);return this.htmlCollectionToArray(ai)},findMultiple:function(aj){if(!aj||!aj.length){return[]}var ai,ak;var ah=[];for(ai=0;ai<aj.length;ai++){ak=this.find(aj[ai]);ah=ah.concat(ak)}ah=this.makeNodesUnique(ah);return ah},findNodesByTagName:function(ai,ah){if(!ai||!ah||!ai.getElementsByTagName){return[]}var aj=ai.getElementsByTagName(ah);return this.htmlCollectionToArray(aj)},makeNodesUnique:function(ah){var am=[].concat(ah);ah.sort(function(ao,an){if(ao===an){return 0}var aq=J(am,ao);var ap=J(am,an);if(aq===ap){return 0}return aq>ap?-1:1});if(ah.length<=1){return ah}var ai=0;var ak=0;var al=[];var aj;aj=ah[ai++];while(aj){if(aj===ah[ai]){ak=al.push(ai)}aj=ah[ai++]||null}while(ak--){ah.splice(al[ak],1)}return ah},getAttributeValueFromNode:function(al,aj){if(!this.hasNodeAttribute(al,aj)){return}if(al&&al.getAttribute){return al.getAttribute(aj) -}if(!al||!al.attributes){return}var ak=(typeof al.attributes[aj]);if("undefined"===ak){return}if(al.attributes[aj].value){return al.attributes[aj].value}if(al.attributes[aj].nodeValue){return al.attributes[aj].nodeValue}var ai;var ah=al.attributes;if(!ah){return}for(ai=0;ai<ah.length;ai++){if(ah[ai].nodeName===aj){return ah[ai].nodeValue}}return null},hasNodeAttributeWithValue:function(ai,ah){var aj=this.getAttributeValueFromNode(ai,ah);return !!aj},hasNodeAttribute:function(aj,ah){if(aj&&aj.hasAttribute){return aj.hasAttribute(ah)}if(aj&&aj.attributes){var ai=(typeof aj.attributes[ah]);return"undefined"!==ai}return false},hasNodeCssClass:function(aj,ah){if(aj&&ah&&aj.className){var ai=typeof aj.className==="string"?aj.className.split(" "):[];if(-1!==J(ai,ah)){return true}}return false},findNodesHavingAttribute:function(al,aj,ah){if(!ah){ah=[]}if(!al||!aj){return ah}var ak=M(al);if(!ak||!ak.length){return ah}var ai,am;for(ai=0;ai<ak.length;ai++){am=ak[ai];if(this.hasNodeAttribute(am,aj)){ah.push(am) -}ah=this.findNodesHavingAttribute(am,aj,ah)}return ah},findFirstNodeHavingAttribute:function(aj,ai){if(!aj||!ai){return}if(this.hasNodeAttribute(aj,ai)){return aj}var ah=this.findNodesHavingAttribute(aj,ai);if(ah&&ah.length){return ah[0]}},findFirstNodeHavingAttributeWithValue:function(ak,aj){if(!ak||!aj){return}if(this.hasNodeAttributeWithValue(ak,aj)){return ak}var ah=this.findNodesHavingAttribute(ak,aj);if(!ah||!ah.length){return}var ai;for(ai=0;ai<ah.length;ai++){if(this.getAttributeValueFromNode(ah[ai],aj)){return ah[ai]}}},findNodesHavingCssClass:function(al,ak,ah){if(!ah){ah=[]}if(!al||!ak){return ah}if(al.getElementsByClassName){var am=al.getElementsByClassName(ak);return this.htmlCollectionToArray(am)}var aj=M(al);if(!aj||!aj.length){return[]}var ai,an;for(ai=0;ai<aj.length;ai++){an=aj[ai];if(this.hasNodeCssClass(an,ak)){ah.push(an)}ah=this.findNodesHavingCssClass(an,ak,ah)}return ah},findFirstNodeHavingClass:function(aj,ai){if(!aj||!ai){return}if(this.hasNodeCssClass(aj,ai)){return aj -}var ah=this.findNodesHavingCssClass(aj,ai);if(ah&&ah.length){return ah[0]}},isLinkElement:function(ai){if(!ai){return false}var ah=String(ai.nodeName).toLowerCase();var ak=["a","area"];var aj=J(ak,ah);return aj!==-1},setAnyAttribute:function(ai,ah,aj){if(!ai||!ah){return}if(ai.setAttribute){ai.setAttribute(ah,aj)}else{ai[ah]=aj}}};var t={CONTENT_ATTR:"data-track-content",CONTENT_CLASS:"piwikTrackContent",CONTENT_NAME_ATTR:"data-content-name",CONTENT_PIECE_ATTR:"data-content-piece",CONTENT_PIECE_CLASS:"piwikContentPiece",CONTENT_TARGET_ATTR:"data-content-target",CONTENT_TARGET_CLASS:"piwikContentTarget",CONTENT_IGNOREINTERACTION_ATTR:"data-content-ignoreinteraction",CONTENT_IGNOREINTERACTION_CLASS:"piwikContentIgnoreInteraction",location:undefined,findContentNodes:function(){var ai="."+this.CONTENT_CLASS;var ah="["+this.CONTENT_ATTR+"]";var aj=Y.findMultiple([ai,ah]);return aj},findContentNodesWithinNode:function(ak){if(!ak){return[]}var ai=Y.findNodesHavingCssClass(ak,this.CONTENT_CLASS); -var ah=Y.findNodesHavingAttribute(ak,this.CONTENT_ATTR);if(ah&&ah.length){var aj;for(aj=0;aj<ah.length;aj++){ai.push(ah[aj])}}if(Y.hasNodeAttribute(ak,this.CONTENT_ATTR)){ai.push(ak)}else{if(Y.hasNodeCssClass(ak,this.CONTENT_CLASS)){ai.push(ak)}}ai=Y.makeNodesUnique(ai);return ai},findParentContentNode:function(ai){if(!ai){return}var aj=ai;var ah=0;while(aj&&aj!==D&&aj.parentNode){if(Y.hasNodeAttribute(aj,this.CONTENT_ATTR)){return aj}if(Y.hasNodeCssClass(aj,this.CONTENT_CLASS)){return aj}aj=aj.parentNode;if(ah>1000){break}ah++}},findPieceNode:function(ai){var ah;ah=Y.findFirstNodeHavingAttribute(ai,this.CONTENT_PIECE_ATTR);if(!ah){ah=Y.findFirstNodeHavingClass(ai,this.CONTENT_PIECE_CLASS)}if(ah){return ah}return ai},findTargetNodeNoDefault:function(ah){if(!ah){return}var ai=Y.findFirstNodeHavingAttributeWithValue(ah,this.CONTENT_TARGET_ATTR);if(ai){return ai}ai=Y.findFirstNodeHavingAttribute(ah,this.CONTENT_TARGET_ATTR);if(ai){return ai}ai=Y.findFirstNodeHavingClass(ah,this.CONTENT_TARGET_CLASS); -if(ai){return ai}},findTargetNode:function(ah){var ai=this.findTargetNodeNoDefault(ah);if(ai){return ai}return ah},findContentName:function(ai){if(!ai){return}var al=Y.findFirstNodeHavingAttributeWithValue(ai,this.CONTENT_NAME_ATTR);if(al){return Y.getAttributeValueFromNode(al,this.CONTENT_NAME_ATTR)}var ah=this.findContentPiece(ai);if(ah){return this.removeDomainIfIsInLink(ah)}if(Y.hasNodeAttributeWithValue(ai,"title")){return Y.getAttributeValueFromNode(ai,"title")}var aj=this.findPieceNode(ai);if(Y.hasNodeAttributeWithValue(aj,"title")){return Y.getAttributeValueFromNode(aj,"title")}var ak=this.findTargetNode(ai);if(Y.hasNodeAttributeWithValue(ak,"title")){return Y.getAttributeValueFromNode(ak,"title")}},findContentPiece:function(ai){if(!ai){return}var ak=Y.findFirstNodeHavingAttributeWithValue(ai,this.CONTENT_PIECE_ATTR);if(ak){return Y.getAttributeValueFromNode(ak,this.CONTENT_PIECE_ATTR)}var ah=this.findPieceNode(ai);var aj=this.findMediaUrlInNode(ah);if(aj){return this.toAbsoluteUrl(aj) -}},findContentTarget:function(aj){if(!aj){return}var ak=this.findTargetNode(aj);if(Y.hasNodeAttributeWithValue(ak,this.CONTENT_TARGET_ATTR)){return Y.getAttributeValueFromNode(ak,this.CONTENT_TARGET_ATTR)}var ai;if(Y.hasNodeAttributeWithValue(ak,"href")){ai=Y.getAttributeValueFromNode(ak,"href");return this.toAbsoluteUrl(ai)}var ah=this.findPieceNode(aj);if(Y.hasNodeAttributeWithValue(ah,"href")){ai=Y.getAttributeValueFromNode(ah,"href");return this.toAbsoluteUrl(ai)}},isSameDomain:function(ah){if(!ah||!ah.indexOf){return false}if(0===ah.indexOf(this.getLocation().origin)){return true}var ai=ah.indexOf(this.getLocation().host);if(8>=ai&&0<=ai){return true}return false},removeDomainIfIsInLink:function(aj){var ai="^https?://[^/]+";var ah="^.*//[^/]+";if(aj&&aj.search&&-1!==aj.search(new RegExp(ai))&&this.isSameDomain(aj)){aj=aj.replace(new RegExp(ah),"");if(!aj){aj="/"}}return aj},findMediaUrlInNode:function(al){if(!al){return}var aj=["img","embed","video","audio"];var ah=al.nodeName.toLowerCase(); -if(-1!==J(aj,ah)&&Y.findFirstNodeHavingAttributeWithValue(al,"src")){var ak=Y.findFirstNodeHavingAttributeWithValue(al,"src");return Y.getAttributeValueFromNode(ak,"src")}if(ah==="object"&&Y.hasNodeAttributeWithValue(al,"data")){return Y.getAttributeValueFromNode(al,"data")}if(ah==="object"){var am=Y.findNodesByTagName(al,"param");if(am&&am.length){var ai;for(ai=0;ai<am.length;ai++){if("movie"===Y.getAttributeValueFromNode(am[ai],"name")&&Y.hasNodeAttributeWithValue(am[ai],"value")){return Y.getAttributeValueFromNode(am[ai],"value")}}}var an=Y.findNodesByTagName(al,"embed");if(an&&an.length){return this.findMediaUrlInNode(an[0])}}},trim:function(ah){if(ah&&String(ah)===ah){return ah.replace(/^\s+|\s+$/g,"")}return ah},isOrWasNodeInViewport:function(am){if(!am||!am.getBoundingClientRect||am.nodeType!==1){return true}var al=am.getBoundingClientRect();var ak=D.documentElement||{};var aj=al.top<0;if(aj&&am.offsetTop){aj=(am.offsetTop+al.height)>0}var ai=ak.clientWidth;if(Q.innerWidth&&ai>Q.innerWidth){ai=Q.innerWidth -}var ah=ak.clientHeight;if(Q.innerHeight&&ah>Q.innerHeight){ah=Q.innerHeight}return((al.bottom>0||aj)&&al.right>0&&al.left<ai&&((al.top<ah)||aj))},isNodeVisible:function(ai){var ah=i(ai);var aj=this.isOrWasNodeInViewport(ai);return ah&&aj},buildInteractionRequestParams:function(ah,ai,aj,ak){var al="";if(ah){al+="c_i="+r(ah)}if(ai){if(al){al+="&"}al+="c_n="+r(ai)}if(aj){if(al){al+="&"}al+="c_p="+r(aj)}if(ak){if(al){al+="&"}al+="c_t="+r(ak)}return al},buildImpressionRequestParams:function(ah,ai,aj){var ak="c_n="+r(ah)+"&c_p="+r(ai);if(aj){ak+="&c_t="+r(aj)}return ak},buildContentBlock:function(aj){if(!aj){return}var ah=this.findContentName(aj);var ai=this.findContentPiece(aj);var ak=this.findContentTarget(aj);ah=this.trim(ah);ai=this.trim(ai);ak=this.trim(ak);return{name:ah||"Unknown",piece:ai||"Unknown",target:ak||""}},collectContent:function(ak){if(!ak||!ak.length){return[]}var aj=[];var ah,ai;for(ah=0;ah<ak.length;ah++){ai=this.buildContentBlock(ak[ah]);if(G(ai)){aj.push(ai)}}return aj -},setLocation:function(ah){this.location=ah},getLocation:function(){var ah=this.location||Q.location;if(!ah.origin){ah.origin=ah.protocol+"//"+ah.hostname+(ah.port?":"+ah.port:"")}return ah},toAbsoluteUrl:function(ai){if((!ai||String(ai)!==ai)&&ai!==""){return ai}if(""===ai){return this.getLocation().href}if(ai.search(/^\/\//)!==-1){return this.getLocation().protocol+ai}if(ai.search(/:\/\//)!==-1){return ai}if(0===ai.indexOf("#")){return this.getLocation().origin+this.getLocation().pathname+ai}if(0===ai.indexOf("?")){return this.getLocation().origin+this.getLocation().pathname+ai}if(0===ai.search("^[a-zA-Z]{2,11}:")){return ai}if(ai.search(/^\//)!==-1){return this.getLocation().origin+ai}var ah="(.*/)";var aj=this.getLocation().origin+this.getLocation().pathname.match(new RegExp(ah))[0];return aj+ai},isUrlToCurrentDomain:function(ai){var aj=this.toAbsoluteUrl(ai);if(!aj){return false}var ah=this.getLocation().origin;if(ah===aj){return true}if(0===String(aj).indexOf(ah)){if(":"===String(aj).substr(ah.length,1)){return false -}return true}return false},setHrefAttribute:function(ai,ah){if(!ai||!ah){return}Y.setAnyAttribute(ai,"href",ah)},shouldIgnoreInteraction:function(aj){var ai=Y.hasNodeAttribute(aj,this.CONTENT_IGNOREINTERACTION_ATTR);var ah=Y.hasNodeCssClass(aj,this.CONTENT_IGNOREINTERACTION_CLASS);return ai||ah}};function L(ai,al){if(al){return al}if(w(ai,"?")){var ak=ai.indexOf("?");ai=ai.slice(0,ak)}if(O(ai,"piwik.php")){ai=f(ai,"piwik.php".length)}else{if(O(ai,".php")){var ah=ai.lastIndexOf("/");var aj=1;ai=ai.slice(0,ah+aj)}}if(O(ai,"/js/")){ai=f(ai,"js/".length)}return ai}function K(an){var ap="Piwik_Overlay";var ai=new RegExp("index\\.php\\?module=Overlay&action=startOverlaySession&idSite=([0-9]+)&period=([^&]+)&date=([^&]+)(&segment=.*)?$");var aj=ai.exec(D.referrer);if(aj){var al=aj[1];if(al!==String(an)){return false}var am=aj[2],ah=aj[3],ak=aj[4];if(!ak){ak=""}else{if(ak.indexOf("&segment=")===0){ak=ak.substr("&segment=".length)}}Q.name=ap+"###"+am+"###"+ah+"###"+ak}var ao=Q.name.split("###"); -return ao.length===4&&ao[0]===ap}function U(ai,ao,ak){var an=Q.name.split("###"),am=an[1],ah=an[2],al=an[3],aj=L(ai,ao);m(aj+"plugins/Overlay/client/client.js?v=1",function(){Piwik_Overlay_Client.initialize(aj,ak,am,ah,al)})}function s(){var aj;try{aj=Q.frameElement}catch(ai){return true}if(G(aj)){return(aj&&String(aj.nodeName).toLowerCase()==="iframe")?true:false}try{return Q.self!==Q.top}catch(ah){return true}}function N(bU,bO){var bK=V(D.domain,Q.location.href,H()),cv=I(bK[0]),bu=n(bK[1]),a9=n(bK[2]),ct=false,bY="GET",cI=bY,az="application/x-www-form-urlencoded; charset=UTF-8",cc=az,av=bU||"",bp="",cz="",bM=bO||"",bi="",bv="",aT,a5="",cF=["7z","aac","apk","arc","arj","asf","asx","avi","azw3","bin","csv","deb","dmg","doc","docx","epub","exe","flv","gif","gz","gzip","hqx","ibooks","jar","jpg","jpeg","js","mobi","mp2","mp3","mp4","mpg","mpeg","mov","movie","msi","msp","odb","odf","odg","ods","odt","ogg","ogv","pdf","phps","png","ppt","pptx","qt","qtm","ra","ram","rar","rpm","sea","sit","tar","tbz","tbz2","bz","bz2","tgz","torrent","txt","wav","wma","wmv","wpd","xls","xlsx","xml","z","zip"],ao=[cv],bj=[],bs=[],aW=[],bq=500,cl,aU,by,bw,ah,b7=["pk_campaign","piwik_campaign","utm_campaign","utm_source","utm_medium"],bo=["pk_kwd","piwik_kwd","utm_term"],a6="_pk_",an="pk_vid",cx,bb,a7=false,cr,a1,bf,cm=33955200000,b5=1800000,cE=15768000000,aR=true,b3=0,bx=false,aG=false,bR,bC={},b2={},a8={},be=200,cA={},cG={},bQ=[],bV=false,cf=false,ai=false,cH=false,co=false,aE=false,a0=s(),cy=null,bS,aH,bk,bN=af,ba,aB; -try{a5=D.title}catch(cd){a5=""}function cL(cW,cT,cS,cV,cR,cU){if(a7){return}var cQ;if(cS){cQ=new Date();cQ.setTime(cQ.getTime()+cS)}D.cookie=cW+"="+r(cT)+(cS?";expires="+cQ.toGMTString():"")+";path="+(cV||"/")+(cR?";domain="+cR:"")+(cU?";secure":"")}function au(cS){if(a7){return 0}var cQ=new RegExp("(^|;)[ ]*"+cS+"=([^;]*)"),cR=cQ.exec(D.cookie);return cR?P(cR[2]):0}function bI(cQ){var cR;cQ=j(cQ,an);if(bw){cR=new RegExp("#.*");return cQ.replace(cR,"")}return cQ}function bB(cS,cQ){var cT=q(cQ),cR;if(cT){return cQ}if(cQ.slice(0,1)==="/"){return q(cS)+"://"+c(cS)+cQ}cS=bI(cS);cR=cS.indexOf("?");if(cR>=0){cS=cS.slice(0,cR)}cR=cS.lastIndexOf("/");if(cR!==cS.length-1){cS=cS.slice(0,cR+1)}return cS+cQ}function ck(cS,cQ){var cR;cS=String(cS).toLowerCase();cQ=String(cQ).toLowerCase();if(cS===cQ){return true}if(cQ.slice(0,1)==="."){if(cS===cQ.slice(1)){return true}cR=cS.length-cQ.length;if((cR>0)&&(cS.slice(cR)===cQ)){return true}}return false}function b1(cQ){var cR=document.createElement("a");if(cQ.indexOf("//")!==0&&cQ.indexOf("http")!==0){if(cQ.indexOf("*")===0){cQ=cQ.substr(1) -}if(cQ.indexOf(".")===0){cQ=cQ.substr(1)}cQ="http://"+cQ}cR.href=t.toAbsoluteUrl(cQ);if(cR.pathname){return cR.pathname}return""}function aS(cR,cQ){if(!ac(cQ,"/")){cQ="/"+cQ}if(!ac(cR,"/")){cR="/"+cR}var cS=(cQ==="/"||cQ==="/*");if(cS){return true}if(cR===cQ){return true}cQ=String(cQ).toLowerCase();cR=String(cR).toLowerCase();if(O(cQ,"*")){cQ=cQ.slice(0,-1);cS=(!cQ||cQ==="/");if(cS){return true}if(cR===cQ){return true}return cR.indexOf(cQ)===0}if(!O(cR,"/")){cR+="/"}if(!O(cQ,"/")){cQ+="/"}return cR.indexOf(cQ)===0}function ak(cU,cW){var cR,cQ,cS,cT,cV;for(cR=0;cR<ao.length;cR++){cT=I(ao[cR]);cV=b1(ao[cR]);if(ck(cU,cT)&&aS(cW,cV)){return true}}return false}function aL(cT){var cR,cQ,cS;for(cR=0;cR<ao.length;cR++){cQ=I(ao[cR].toLowerCase());if(cT===cQ){return true}if(cQ.slice(0,1)==="."){if(cT===cQ.slice(1)){return true}cS=cT.length-cQ.length;if((cS>0)&&(cT.slice(cS)===cQ)){return true}}}return false}function b6(cQ,cS){var cR=new Image(1,1);cR.onload=function(){B=0;if(typeof cS==="function"){cS() -}};cQ=cQ.replace("send_image=0","send_image=1");cR.src=av+(av.indexOf("?")<0?"?":"&")+cQ}function cD(cR,cU,cQ){if(!G(cQ)||null===cQ){cQ=true}try{var cT=Q.XMLHttpRequest?new Q.XMLHttpRequest():Q.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;cT.open("POST",av,true);cT.onreadystatechange=function(){if(this.readyState===4&&!(this.status>=200&&this.status<300)&&cQ){b6(cR,cU)}else{if(this.readyState===4&&(typeof cU==="function")){cU()}}};cT.setRequestHeader("Content-Type",cc);cT.send(cR)}catch(cS){if(cQ){b6(cR,cU)}}}function bW(cR){var cQ=new Date();var cS=cQ.getTime()+cR;if(!p||cS>p){p=cS}}function b4(cQ){if(bS||!aU){return}bS=setTimeout(function cR(){bS=null;if(!a0){a0=(!D.hasFocus||D.hasFocus())}if(!a0){b4(aU);return}if(by()){return}var cS=new Date(),cT=aU-(cS.getTime()-cy);cT=Math.min(aU,cT);b4(cT)},cQ||aU)}function br(){if(!bS){return}clearTimeout(bS);bS=null}function aY(){a0=true;if(by()){return}b4()}function ap(){br()}function cN(){if(aE||!aU){return}aE=true;ag(Q,"focus",aY); -ag(Q,"blur",ap);b4()}function cg(cU){var cR=new Date();var cQ=cR.getTime();cy=cQ;if(cf&&cQ<cf){var cS=cf-cQ;setTimeout(cU,cS);bW(cS+50);cf+=50;return}if(cf===false){var cT=800;cf=cQ+cT}cU()}function bn(cR,cQ,cS){if(!cr&&cR){cg(function(){if(cI==="POST"||String(cR).length>2000){cD(cR,cS)}else{b6(cR,cS)}bW(cQ)})}if(!aE){cN()}else{b4()}}function b0(cQ){if(cr){return false}return(cQ&&cQ.length)}function cM(cS,cQ){if(!b0(cS)){return}var cR='{"requests":["?'+cS.join('","?')+'"]}';cg(function(){cD(cR,null,false);bW(cQ)})}function aJ(cQ){return a6+cQ+"."+bM+"."+ba}function bL(){if(a7){return"0"}if(!G(g.cookieEnabled)){var cQ=aJ("testcookie");cL(cQ,"1");return au(cQ)==="1"?"1":"0"}return g.cookieEnabled?"1":"0"}function a4(){ba=bN((cx||cv)+(bb||"/")).slice(0,4)}function bD(){var cR=aJ("cvar"),cQ=au(cR);if(cQ.length){cQ=JSON_PIWIK.parse(cQ);if(S(cQ)){return cQ}}return{}}function ch(){if(aG===false){aG=bD()}}function cs(){return bN((g.userAgent||"")+(g.platform||"")+JSON_PIWIK.stringify(cG)+(new Date()).getTime()+Math.random()).slice(0,16) -}function aq(){return bN((g.userAgent||"")+(g.platform||"")+JSON_PIWIK.stringify(cG)).slice(0,6)}function a2(){return Math.floor((new Date()).getTime()/1000)}function aA(){var cR=a2();var cS=aq();var cQ=String(cR)+cS;return cQ}function cC(cT){cT=String(cT);var cW=aq();var cU=cW.length;var cV=cT.substr(-1*cU,cU);var cS=parseInt(cT.substr(0,cT.length-cU),10);if(cS&&cV&&cV===cW){var cQ=a2();var cR=45;if(cQ>=cS&&cQ<=(cS+cR)){return true}}return false}function cO(cQ){if(!co){return""}var cU=e(cQ,an);if(!cU){return""}cU=String(cU);var cS=new RegExp("^[a-zA-Z0-9]+$");if(cU.length===32&&cS.test(cU)){var cR=cU.substr(16,32);if(cC(cR)){var cT=cU.substr(0,16);return cT}}return""}function cp(){if(!bv){bv=cO(bu)}var cS=new Date(),cQ=Math.round(cS.getTime()/1000),cR=aJ("id"),cV=au(cR),cU,cT;if(cV){cU=cV.split(".");cU.unshift("0");if(bv.length){cU[1]=bv}return cU}if(bv.length){cT=bv}else{if("0"===bL()){cT=""}else{cT=cs()}}cU=["1",cT,cQ,0,cQ,"",""];return cU}function aN(){var cX=cp(),cT=cX[0],cU=cX[1],cR=cX[2],cQ=cX[3],cV=cX[4],cS=cX[5]; -if(!G(cX[6])){cX[6]=""}var cW=cX[6];return{newVisitor:cT,uuid:cU,createTs:cR,visitCount:cQ,currentVisitTs:cV,lastVisitTs:cS,lastEcommerceOrderTs:cW}}function ay(){var cT=new Date(),cR=cT.getTime(),cU=aN().createTs;var cQ=parseInt(cU,10);var cS=(cQ*1000)+cm-cR;return cS}function aC(cQ){if(!bM){return}var cS=new Date(),cR=Math.round(cS.getTime()/1000);if(!G(cQ)){cQ=aN()}var cT=cQ.uuid+"."+cQ.createTs+"."+cQ.visitCount+"."+cR+"."+cQ.lastVisitTs+"."+cQ.lastEcommerceOrderTs;cL(aJ("id"),cT,ay(),bb,cx)}function bt(){var cQ=au(aJ("ref"));if(cQ.length){try{cQ=JSON_PIWIK.parse(cQ);if(S(cQ)){return cQ}}catch(cR){}}return["","",0,""]}function bE(cS,cR,cQ){cL(cS,"",-86400,cR,cQ)}function bg(cR){var cQ="testvalue";cL("test",cQ,10000,null,cR);if(au("test")===cQ){bE("test",null,cR);return true}return false}function aw(){var cS=a7;a7=false;var cQ=["id","ses","cvar","ref"];var cR,cT;for(cR=0;cR<cQ.length;cR++){cT=aJ(cQ[cR]);if(0!==au(cT)){bE(cT,bb,cx)}}a7=cS}function bJ(cQ){bM=cQ;aC()}function cP(cU){if(!cU||!S(cU)){return -}var cT=[];var cS;for(cS in cU){if(Object.prototype.hasOwnProperty.call(cU,cS)){cT.push(cS)}}var cV={};cT.sort();var cQ=cT.length;var cR;for(cR=0;cR<cQ;cR++){cV[cT[cR]]=cU[cT[cR]]}return cV}function bT(){cL(aJ("ses"),"*",b5,bb,cx)}function a3(){var cT="";var cR="abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";var cS=cR.length;var cQ;for(cQ=0;cQ<6;cQ++){cT+=cR.charAt(Math.floor(Math.random()*cS))}return cT}function b8(cS,dd,de,cT){var dc,cR=new Date(),c0=Math.round(cR.getTime()/1000),cX,db,cU=1024,dj,c1,c9=aG,cV=aJ("ses"),c7=aJ("ref"),c4=aJ("cvar"),c5=au(cV),da=bt(),dg=aT||bu,cY,cQ;if(a7){aw()}if(cr){return""}var c6=aN();if(!G(cT)){cT=""}var c3=D.characterSet||D.charset;if(!c3||c3.toLowerCase()==="utf-8"){c3=null}cY=da[0];cQ=da[1];cX=da[2];db=da[3];if(!c5){var df=b5/1000;if(!c6.lastVisitTs||(c0-c6.lastVisitTs)>df){c6.visitCount++;c6.lastVisitTs=c6.currentVisitTs}if(!bf||!cY.length){for(dc in b7){if(Object.prototype.hasOwnProperty.call(b7,dc)){cY=e(dg,b7[dc]);if(cY.length){break -}}}for(dc in bo){if(Object.prototype.hasOwnProperty.call(bo,dc)){cQ=e(dg,bo[dc]);if(cQ.length){break}}}}dj=c(a9);c1=db.length?c(db):"";if(dj.length&&!aL(dj)&&(!bf||!c1.length||aL(c1))){db=a9}if(db.length||cY.length){cX=c0;da=[cY,cQ,cX,bI(db.slice(0,cU))];cL(c7,JSON_PIWIK.stringify(da),cE,bb,cx)}}cS+="&idsite="+bM+"&rec=1&r="+String(Math.random()).slice(2,8)+"&h="+cR.getHours()+"&m="+cR.getMinutes()+"&s="+cR.getSeconds()+"&url="+r(bI(dg))+(a9.length?"&urlref="+r(bI(a9)):"")+((bi&&bi.length)?"&uid="+r(bi):"")+"&_id="+c6.uuid+"&_idts="+c6.createTs+"&_idvc="+c6.visitCount+"&_idn="+c6.newVisitor+(cY.length?"&_rcn="+r(cY):"")+(cQ.length?"&_rck="+r(cQ):"")+"&_refts="+cX+"&_viewts="+c6.lastVisitTs+(String(c6.lastEcommerceOrderTs).length?"&_ects="+c6.lastEcommerceOrderTs:"")+(String(db).length?"&_ref="+r(bI(db.slice(0,cU))):"")+(c3?"&cs="+r(c3):"")+"&send_image=0";for(dc in cG){if(Object.prototype.hasOwnProperty.call(cG,dc)){cS+="&"+dc+"="+cG[dc]}}var di=[];if(dd){for(dc in dd){if(Object.prototype.hasOwnProperty.call(dd,dc)&&/^dimension\d+$/.test(dc)){var cW=dc.replace("dimension",""); -di.push(parseInt(cW,10));di.push(String(cW));cS+="&"+dc+"="+dd[dc];delete dd[dc]}}}if(dd&&y(dd)){dd=null}for(dc in a8){if(Object.prototype.hasOwnProperty.call(a8,dc)){var c2=(-1===J(di,dc));if(c2){cS+="&dimension"+dc+"="+a8[dc]}}}if(dd){cS+="&data="+r(JSON_PIWIK.stringify(dd))}else{if(ah){cS+="&data="+r(JSON_PIWIK.stringify(ah))}}function cZ(dk,dl){var dm=JSON_PIWIK.stringify(dk);if(dm.length>2){return"&"+dl+"="+r(dm)}return""}var dh=cP(bC);var c8=cP(b2);cS+=cZ(dh,"cvar");cS+=cZ(c8,"e_cvar");if(aG){cS+=cZ(aG,"_cvar");for(dc in c9){if(Object.prototype.hasOwnProperty.call(c9,dc)){if(aG[dc][0]===""||aG[dc][1]===""){delete aG[dc]}}}if(bx){cL(c4,JSON_PIWIK.stringify(aG),b5,bb,cx)}}if(aR){if(b3){cS+=">_ms="+b3}else{if(h&&h.timing&&h.timing.requestStart&&h.timing.responseEnd){cS+=">_ms="+(h.timing.responseEnd-h.timing.requestStart)}}}if(aB){cS+="&pv_id="+aB}c6.lastEcommerceOrderTs=G(cT)&&String(cT).length?cT:c6.lastEcommerceOrderTs;aC(c6);bT();cS+=W(de);if(cz.length){cS+="&"+cz}if(x(bR)){cS=bR(cS) -}return cS}by=function aV(){var cQ=new Date();if(cy+aU<=cQ.getTime()){var cR=b8("ping=1",null,"ping");bn(cR,bq);return true}return false};function bc(cT,cS,cY,cU,cQ,c1){var cW="idgoal=0",cX,cR=new Date(),cZ=[],c0,cV=String(cT).length;if(cV){cW+="&ec_id="+r(cT);cX=Math.round(cR.getTime()/1000)}cW+="&revenue="+cS;if(String(cY).length){cW+="&ec_st="+cY}if(String(cU).length){cW+="&ec_tx="+cU}if(String(cQ).length){cW+="&ec_sh="+cQ}if(String(c1).length){cW+="&ec_dt="+c1}if(cA){for(c0 in cA){if(Object.prototype.hasOwnProperty.call(cA,c0)){if(!G(cA[c0][1])){cA[c0][1]=""}if(!G(cA[c0][2])){cA[c0][2]=""}if(!G(cA[c0][3])||String(cA[c0][3]).length===0){cA[c0][3]=0}if(!G(cA[c0][4])||String(cA[c0][4]).length===0){cA[c0][4]=1}cZ.push(cA[c0])}}cW+="&ec_items="+r(JSON_PIWIK.stringify(cZ))}cW=b8(cW,ah,"ecommerce",cX);bn(cW,bq);if(cV){cA={}}}function bF(cQ,cU,cT,cS,cR,cV){if(String(cQ).length&&G(cU)){bc(cQ,cU,cT,cS,cR,cV)}}function bd(cQ){if(G(cQ)){bc("",cQ,"","","","")}}function bG(cR,cT,cS){aB=a3();var cQ=b8("action_name="+r(ae(cR||a5)),cT,"log"); -bn(cQ,bq,cS)}function aP(cS,cR){var cT,cQ="(^| )(piwik[_-]"+cR;if(cS){for(cT=0;cT<cS.length;cT++){cQ+="|"+cS[cT]}}cQ+=")( |$)";return new RegExp(cQ)}function aK(cQ){return(av&&cQ&&0===String(cQ).indexOf(av))}function b9(cU,cQ,cV,cR){if(aK(cQ)){return 0}var cT=aP(bs,"download"),cS=aP(aW,"link"),cW=new RegExp("\\.("+cF.join("|")+")([?&#]|$)","i");if(cS.test(cU)){return"link"}if(cR||cT.test(cU)||cW.test(cQ)){return"download"}if(cV){return 0}return"link"}function al(cR){var cQ;cQ=cR.parentNode;while(cQ!==null&&G(cQ)){if(Y.isLinkElement(cR)){break}cR=cQ;cQ=cR.parentNode}return cR}function cJ(cV){cV=al(cV);if(!Y.hasNodeAttribute(cV,"href")){return}if(!G(cV.href)){return}var cU=Y.getAttributeValueFromNode(cV,"href");if(aK(cU)){return}var cR=cV.pathname||b1(cV.href);var cW=cV.hostname||c(cV.href);var cX=cW.toLowerCase();var cS=cV.href.replace(cW,cX);var cT=new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto|tel):","i");if(!cT.test(cS)){var cQ=b9(cV.className,cS,ak(cX,cR),Y.hasNodeAttribute(cV,"download")); -if(cQ){return{type:cQ,href:cS}}}}function aF(cQ,cR,cS,cT){var cU=t.buildInteractionRequestParams(cQ,cR,cS,cT);if(!cU){return}return b8(cU,null,"contentInteraction")}function cn(cS,cT,cX,cQ,cR){if(!G(cS)){return}if(aK(cS)){return cS}var cV=t.toAbsoluteUrl(cS);var cU="redirecturl="+r(cV)+"&";cU+=aF(cT,cX,cQ,(cR||cS));var cW="&";if(av.indexOf("?")<0){cW="?"}return av+cW+cU}function aZ(cQ,cR){if(!cQ||!cR){return false}var cS=t.findTargetNode(cQ);if(t.shouldIgnoreInteraction(cS)){return false}cS=t.findTargetNodeNoDefault(cQ);if(cS&&!R(cS,cR)){return false}return true}function ca(cS,cR,cU){if(!cS){return}var cQ=t.findParentContentNode(cS);if(!cQ){return}if(!aZ(cQ,cS)){return}var cT=t.buildContentBlock(cQ);if(!cT){return}if(!cT.target&&cU){cT.target=cU}return t.buildInteractionRequestParams(cR,cT.name,cT.piece,cT.target)}function aM(cR){if(!bQ||!bQ.length){return false}var cQ,cS;for(cQ=0;cQ<bQ.length;cQ++){cS=bQ[cQ];if(cS&&cS.name===cR.name&&cS.piece===cR.piece&&cS.target===cR.target){return true -}}return false}function bm(cT){if(!cT){return false}var cW=t.findTargetNode(cT);if(!cW||t.shouldIgnoreInteraction(cW)){return false}var cX=cJ(cW);if(cH&&cX&&cX.type){return false}if(Y.isLinkElement(cW)&&Y.hasNodeAttributeWithValue(cW,"href")){var cQ=String(Y.getAttributeValueFromNode(cW,"href"));if(0===cQ.indexOf("#")){return false}if(aK(cQ)){return true}if(!t.isUrlToCurrentDomain(cQ)){return false}var cU=t.buildContentBlock(cT);if(!cU){return}var cS=cU.name;var cY=cU.piece;var cV=cU.target;if(!Y.hasNodeAttributeWithValue(cW,t.CONTENT_TARGET_ATTR)||cW.wasContentTargetAttrReplaced){cW.wasContentTargetAttrReplaced=true;cV=t.toAbsoluteUrl(cQ);Y.setAnyAttribute(cW,t.CONTENT_TARGET_ATTR,cV)}var cR=cn(cQ,"click",cS,cY,cV);t.setHrefAttribute(cW,cR);return true}return false}function aD(cR){if(!cR||!cR.length){return}var cQ;for(cQ=0;cQ<cR.length;cQ++){bm(cR[cQ])}}function aO(cQ){return function(cR){if(!cQ){return}var cU=t.findParentContentNode(cQ);var cV;if(cR){cV=cR.target||cR.srcElement}if(!cV){cV=cQ -}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(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(!ah){ah=true;ak()}}});if(D.documentElement.doScroll&&Q===Q.top){(function ai(){if(!ah){try{D.documentElement.doScroll("left")}catch(al){setTimeout(ai,0);return}ah=true;ak()}}())}}}ag(Q,"load",function(){if(!ah){ah=true;ak()}},false)}function W(ai,an,ao){if(!ai){return""}var ah="",ak,aj,al,am;for(ak in a){if(Object.prototype.hasOwnProperty.call(a,ak)){am=a[ak]&&"function"===typeof a[ak][ai];if(am){aj=a[ak][ai];al=aj(an||{},ao);if(al){ah+=al}}}}return ah}function ab(){var ah;W("unload");if(p){do{ah=new Date()}while(ah.getTimeAlias()<p)}}function m(aj,ai){var ah=D.createElement("script");ah.type="text/javascript";ah.src=aj;if(ah.readyState){ah.onreadystatechange=function(){var ak=this.readyState;if(ak==="loaded"||ak==="complete"){ah.onreadystatechange=null;ai()}}}else{ah.onload=ai}D.getElementsByTagName("head")[0].appendChild(ah)}function H(){var ah="";try{ah=Q.top.document.referrer}catch(aj){if(Q.parent){try{ah=Q.parent.document.referrer}catch(ai){ah=""}}}if(ah===""){ah=D.referrer}return ah +}function q(ah){var aj=new RegExp("^([a-z]+):"),ai=aj.exec(ah);return ai?ai[1]:null}function c(ah){var aj=new RegExp("^(?:(?:https?|ftp):)/*(?:[^@]+@)?([^:/#]+)"),ai=aj.exec(ah);return ai?ai[1]:ah}function ac(ai,ah){ai=String(ai);return ai.lastIndexOf(ah,0)===0}function O(ai,ah){ai=String(ai);return ai.indexOf(ah,ai.length-ah.length)!==-1}function w(ai,ah){ai=String(ai);return ai.indexOf(ah)!==-1}function f(ai,ah){ai=String(ai);return ai.substr(0,ai.length-ah)}function C(ak,aj,am){ak=String(ak);if(!am){am=""}var ah=ak.indexOf("#");var an=ak.length;if(ah===-1){ah=an}var al=ak.substr(0,ah);var ai=ak.substr(ah,an-ah);if(al.indexOf("?")===-1){al+="?"}else{if(!O(al,"?")){al+="&"}}return al+r(aj)+"="+r(am)+ai}function j(ai,aj){ai=String(ai);if(ai.indexOf("?"+aj+"=")===-1&&ai.indexOf("&"+aj+"=")===-1){return ai}var ak=ai.indexOf("?");if(ak===-1){return ai}var ah=ai.substr(ak+1);var ao=ai.substr(0,ak);if(ah){var ap="";var ar=ah.indexOf("#");if(ar!==-1){ap=ah.substr(ar+1);ah=ah.substr(0,ar)}var al; +var an=ah.split("&");var am=an.length-1;for(am;am>=0;am--){al=an[am].split("=")[0];if(al===aj){an.splice(am,1)}}var aq=an.join("&");if(aq){ao=ao+"?"+aq}if(ap){ao+="#"+ap}}return ao}function e(aj,ai){var ah="[\\?&#]"+ai+"=([^&#]*)";var al=new RegExp(ah);var ak=al.exec(aj);return ak?P(ak[1]):""}function A(ah){return unescape(r(ah))}function af(ax){var aj=function(aD,aC){return(aD<<aC)|(aD>>>(32-aC))},ay=function(aF){var aD="",aE,aC;for(aE=7;aE>=0;aE--){aC=(aF>>>(aE*4))&15;aD+=aC.toString(16)}return aD},am,aA,az,ai=[],aq=1732584193,ao=4023233417,an=2562383102,al=271733878,ak=3285377520,aw,av,au,at,ar,aB,ah,ap=[];ax=A(ax);ah=ax.length;for(aA=0;aA<ah-3;aA+=4){az=ax.charCodeAt(aA)<<24|ax.charCodeAt(aA+1)<<16|ax.charCodeAt(aA+2)<<8|ax.charCodeAt(aA+3);ap.push(az)}switch(ah&3){case 0:aA=2147483648;break;case 1:aA=ax.charCodeAt(ah-1)<<24|8388608;break;case 2:aA=ax.charCodeAt(ah-2)<<24|ax.charCodeAt(ah-1)<<16|32768;break;case 3:aA=ax.charCodeAt(ah-3)<<24|ax.charCodeAt(ah-2)<<16|ax.charCodeAt(ah-1)<<8|128; +break}ap.push(aA);while((ap.length&15)!==14){ap.push(0)}ap.push(ah>>>29);ap.push((ah<<3)&4294967295);for(am=0;am<ap.length;am+=16){for(aA=0;aA<16;aA++){ai[aA]=ap[am+aA]}for(aA=16;aA<=79;aA++){ai[aA]=aj(ai[aA-3]^ai[aA-8]^ai[aA-14]^ai[aA-16],1)}aw=aq;av=ao;au=an;at=al;ar=ak;for(aA=0;aA<=19;aA++){aB=(aj(aw,5)+((av&au)|(~av&at))+ar+ai[aA]+1518500249)&4294967295;ar=at;at=au;au=aj(av,30);av=aw;aw=aB}for(aA=20;aA<=39;aA++){aB=(aj(aw,5)+(av^au^at)+ar+ai[aA]+1859775393)&4294967295;ar=at;at=au;au=aj(av,30);av=aw;aw=aB}for(aA=40;aA<=59;aA++){aB=(aj(aw,5)+((av&au)|(av&at)|(au&at))+ar+ai[aA]+2400959708)&4294967295;ar=at;at=au;au=aj(av,30);av=aw;aw=aB}for(aA=60;aA<=79;aA++){aB=(aj(aw,5)+(av^au^at)+ar+ai[aA]+3395469782)&4294967295;ar=at;at=au;au=aj(av,30);av=aw;aw=aB}aq=(aq+aw)&4294967295;ao=(ao+av)&4294967295;an=(an+au)&4294967295;al=(al+at)&4294967295;ak=(ak+ar)&4294967295}aB=ay(aq)+ay(ao)+ay(an)+ay(al)+ay(ak);return aB.toLowerCase()}function V(aj,ah,ai){if(!aj){aj=""}if(!ah){ah=""}if(aj==="translate.googleusercontent.com"){if(ai===""){ai=ah +}ah=e(ah,"u");aj=c(ah)}else{if(aj==="cc.bingj.com"||aj==="webcache.googleusercontent.com"||aj.slice(0,5)==="74.6."){ah=D.links[0].href;aj=c(ah)}}return[aj,ah,ai]}function I(ai){var ah=ai.length;if(ai.charAt(--ah)==="."){ai=ai.slice(0,ah)}if(ai.slice(0,2)==="*."){ai=ai.slice(1)}if(ai.indexOf("/")!==-1){ai=ai.substr(0,ai.indexOf("/"))}return ai}function ae(ai){ai=ai&&ai.text?ai.text:ai;if(!u(ai)){var ah=D.getElementsByTagName("title");if(ah&&G(ah[0])){ai=ah[0].text}}return ai}function M(ah){if(!ah){return[]}if(!G(ah.children)&&G(ah.childNodes)){return ah.children}if(G(ah.children)){return ah.children}return[]}function R(ai,ah){if(!ai||!ah){return false}if(ai.contains){return ai.contains(ah)}if(ai===ah){return true}if(ai.compareDocumentPosition){return !!(ai.compareDocumentPosition(ah)&16)}return false}function J(aj,ak){if(aj&&aj.indexOf){return aj.indexOf(ak)}if(!G(aj)||aj===null){return -1}if(!aj.length){return -1}var ah=aj.length;if(ah===0){return -1}var ai=0;while(ai<ah){if(aj[ai]===ak){return ai +}ai++}return -1}function i(aj){if(!aj){return false}function ah(al,am){if(Q.getComputedStyle){return D.defaultView.getComputedStyle(al,null)[am]}if(al.currentStyle){return al.currentStyle[am]}}function ak(al){al=al.parentNode;while(al){if(al===D){return true}al=al.parentNode}return false}function ai(an,au,al,aq,ao,ar,ap){var am=an.parentNode,at=1;if(!ak(an)){return false}if(9===am.nodeType){return true}if("0"===ah(an,"opacity")||"none"===ah(an,"display")||"hidden"===ah(an,"visibility")){return false}if(!G(au)||!G(al)||!G(aq)||!G(ao)||!G(ar)||!G(ap)){au=an.offsetTop;ao=an.offsetLeft;aq=au+an.offsetHeight;al=ao+an.offsetWidth;ar=an.offsetWidth;ap=an.offsetHeight}if(aj===an&&(0===ap||0===ar)&&"hidden"===ah(an,"overflow")){return false}if(am){if(("hidden"===ah(am,"overflow")||"scroll"===ah(am,"overflow"))){if(ao+at>am.offsetWidth+am.scrollLeft||ao+ar-at<am.scrollLeft||au+at>am.offsetHeight+am.scrollTop||au+ap-at<am.scrollTop){return false}}if(an.offsetParent===am){ao+=am.offsetLeft;au+=am.offsetTop +}return ai(am,au,al,aq,ao,ar,ap)}return true}return ai(aj)}var Y={htmlCollectionToArray:function(aj){var ah=[],ai;if(!aj||!aj.length){return ah}for(ai=0;ai<aj.length;ai++){ah.push(aj[ai])}return ah},find:function(ah){if(!document.querySelectorAll||!ah){return[]}var ai=document.querySelectorAll(ah);return this.htmlCollectionToArray(ai)},findMultiple:function(aj){if(!aj||!aj.length){return[]}var ai,ak;var ah=[];for(ai=0;ai<aj.length;ai++){ak=this.find(aj[ai]);ah=ah.concat(ak)}ah=this.makeNodesUnique(ah);return ah},findNodesByTagName:function(ai,ah){if(!ai||!ah||!ai.getElementsByTagName){return[]}var aj=ai.getElementsByTagName(ah);return this.htmlCollectionToArray(aj)},makeNodesUnique:function(ah){var am=[].concat(ah);ah.sort(function(ao,an){if(ao===an){return 0}var aq=J(am,ao);var ap=J(am,an);if(aq===ap){return 0}return aq>ap?-1:1});if(ah.length<=1){return ah}var ai=0;var ak=0;var al=[];var aj;aj=ah[ai++];while(aj){if(aj===ah[ai]){ak=al.push(ai)}aj=ah[ai++]||null}while(ak--){ah.splice(al[ak],1) +}return ah},getAttributeValueFromNode:function(al,aj){if(!this.hasNodeAttribute(al,aj)){return}if(al&&al.getAttribute){return al.getAttribute(aj)}if(!al||!al.attributes){return}var ak=(typeof al.attributes[aj]);if("undefined"===ak){return}if(al.attributes[aj].value){return al.attributes[aj].value}if(al.attributes[aj].nodeValue){return al.attributes[aj].nodeValue}var ai;var ah=al.attributes;if(!ah){return}for(ai=0;ai<ah.length;ai++){if(ah[ai].nodeName===aj){return ah[ai].nodeValue}}return null},hasNodeAttributeWithValue:function(ai,ah){var aj=this.getAttributeValueFromNode(ai,ah);return !!aj},hasNodeAttribute:function(aj,ah){if(aj&&aj.hasAttribute){return aj.hasAttribute(ah)}if(aj&&aj.attributes){var ai=(typeof aj.attributes[ah]);return"undefined"!==ai}return false},hasNodeCssClass:function(aj,ah){if(aj&&ah&&aj.className){var ai=typeof aj.className==="string"?aj.className.split(" "):[];if(-1!==J(ai,ah)){return true}}return false},findNodesHavingAttribute:function(al,aj,ah){if(!ah){ah=[]}if(!al||!aj){return ah +}var ak=M(al);if(!ak||!ak.length){return ah}var ai,am;for(ai=0;ai<ak.length;ai++){am=ak[ai];if(this.hasNodeAttribute(am,aj)){ah.push(am)}ah=this.findNodesHavingAttribute(am,aj,ah)}return ah},findFirstNodeHavingAttribute:function(aj,ai){if(!aj||!ai){return}if(this.hasNodeAttribute(aj,ai)){return aj}var ah=this.findNodesHavingAttribute(aj,ai);if(ah&&ah.length){return ah[0]}},findFirstNodeHavingAttributeWithValue:function(ak,aj){if(!ak||!aj){return}if(this.hasNodeAttributeWithValue(ak,aj)){return ak}var ah=this.findNodesHavingAttribute(ak,aj);if(!ah||!ah.length){return}var ai;for(ai=0;ai<ah.length;ai++){if(this.getAttributeValueFromNode(ah[ai],aj)){return ah[ai]}}},findNodesHavingCssClass:function(al,ak,ah){if(!ah){ah=[]}if(!al||!ak){return ah}if(al.getElementsByClassName){var am=al.getElementsByClassName(ak);return this.htmlCollectionToArray(am)}var aj=M(al);if(!aj||!aj.length){return[]}var ai,an;for(ai=0;ai<aj.length;ai++){an=aj[ai];if(this.hasNodeCssClass(an,ak)){ah.push(an)}ah=this.findNodesHavingCssClass(an,ak,ah) +}return ah},findFirstNodeHavingClass:function(aj,ai){if(!aj||!ai){return}if(this.hasNodeCssClass(aj,ai)){return aj}var ah=this.findNodesHavingCssClass(aj,ai);if(ah&&ah.length){return ah[0]}},isLinkElement:function(ai){if(!ai){return false}var ah=String(ai.nodeName).toLowerCase();var ak=["a","area"];var aj=J(ak,ah);return aj!==-1},setAnyAttribute:function(ai,ah,aj){if(!ai||!ah){return}if(ai.setAttribute){ai.setAttribute(ah,aj)}else{ai[ah]=aj}}};var t={CONTENT_ATTR:"data-track-content",CONTENT_CLASS:"piwikTrackContent",CONTENT_NAME_ATTR:"data-content-name",CONTENT_PIECE_ATTR:"data-content-piece",CONTENT_PIECE_CLASS:"piwikContentPiece",CONTENT_TARGET_ATTR:"data-content-target",CONTENT_TARGET_CLASS:"piwikContentTarget",CONTENT_IGNOREINTERACTION_ATTR:"data-content-ignoreinteraction",CONTENT_IGNOREINTERACTION_CLASS:"piwikContentIgnoreInteraction",location:undefined,findContentNodes:function(){var ai="."+this.CONTENT_CLASS;var ah="["+this.CONTENT_ATTR+"]";var aj=Y.findMultiple([ai,ah]);return aj +},findContentNodesWithinNode:function(ak){if(!ak){return[]}var ai=Y.findNodesHavingCssClass(ak,this.CONTENT_CLASS);var ah=Y.findNodesHavingAttribute(ak,this.CONTENT_ATTR);if(ah&&ah.length){var aj;for(aj=0;aj<ah.length;aj++){ai.push(ah[aj])}}if(Y.hasNodeAttribute(ak,this.CONTENT_ATTR)){ai.push(ak)}else{if(Y.hasNodeCssClass(ak,this.CONTENT_CLASS)){ai.push(ak)}}ai=Y.makeNodesUnique(ai);return ai},findParentContentNode:function(ai){if(!ai){return}var aj=ai;var ah=0;while(aj&&aj!==D&&aj.parentNode){if(Y.hasNodeAttribute(aj,this.CONTENT_ATTR)){return aj}if(Y.hasNodeCssClass(aj,this.CONTENT_CLASS)){return aj}aj=aj.parentNode;if(ah>1000){break}ah++}},findPieceNode:function(ai){var ah;ah=Y.findFirstNodeHavingAttribute(ai,this.CONTENT_PIECE_ATTR);if(!ah){ah=Y.findFirstNodeHavingClass(ai,this.CONTENT_PIECE_CLASS)}if(ah){return ah}return ai},findTargetNodeNoDefault:function(ah){if(!ah){return}var ai=Y.findFirstNodeHavingAttributeWithValue(ah,this.CONTENT_TARGET_ATTR);if(ai){return ai}ai=Y.findFirstNodeHavingAttribute(ah,this.CONTENT_TARGET_ATTR); +if(ai){return ai}ai=Y.findFirstNodeHavingClass(ah,this.CONTENT_TARGET_CLASS);if(ai){return ai}},findTargetNode:function(ah){var ai=this.findTargetNodeNoDefault(ah);if(ai){return ai}return ah},findContentName:function(ai){if(!ai){return}var al=Y.findFirstNodeHavingAttributeWithValue(ai,this.CONTENT_NAME_ATTR);if(al){return Y.getAttributeValueFromNode(al,this.CONTENT_NAME_ATTR)}var ah=this.findContentPiece(ai);if(ah){return this.removeDomainIfIsInLink(ah)}if(Y.hasNodeAttributeWithValue(ai,"title")){return Y.getAttributeValueFromNode(ai,"title")}var aj=this.findPieceNode(ai);if(Y.hasNodeAttributeWithValue(aj,"title")){return Y.getAttributeValueFromNode(aj,"title")}var ak=this.findTargetNode(ai);if(Y.hasNodeAttributeWithValue(ak,"title")){return Y.getAttributeValueFromNode(ak,"title")}},findContentPiece:function(ai){if(!ai){return}var ak=Y.findFirstNodeHavingAttributeWithValue(ai,this.CONTENT_PIECE_ATTR);if(ak){return Y.getAttributeValueFromNode(ak,this.CONTENT_PIECE_ATTR)}var ah=this.findPieceNode(ai); +var aj=this.findMediaUrlInNode(ah);if(aj){return this.toAbsoluteUrl(aj)}},findContentTarget:function(aj){if(!aj){return}var ak=this.findTargetNode(aj);if(Y.hasNodeAttributeWithValue(ak,this.CONTENT_TARGET_ATTR)){return Y.getAttributeValueFromNode(ak,this.CONTENT_TARGET_ATTR)}var ai;if(Y.hasNodeAttributeWithValue(ak,"href")){ai=Y.getAttributeValueFromNode(ak,"href");return this.toAbsoluteUrl(ai)}var ah=this.findPieceNode(aj);if(Y.hasNodeAttributeWithValue(ah,"href")){ai=Y.getAttributeValueFromNode(ah,"href");return this.toAbsoluteUrl(ai)}},isSameDomain:function(ah){if(!ah||!ah.indexOf){return false}if(0===ah.indexOf(this.getLocation().origin)){return true}var ai=ah.indexOf(this.getLocation().host);if(8>=ai&&0<=ai){return true}return false},removeDomainIfIsInLink:function(aj){var ai="^https?://[^/]+";var ah="^.*//[^/]+";if(aj&&aj.search&&-1!==aj.search(new RegExp(ai))&&this.isSameDomain(aj)){aj=aj.replace(new RegExp(ah),"");if(!aj){aj="/"}}return aj},findMediaUrlInNode:function(al){if(!al){return +}var aj=["img","embed","video","audio"];var ah=al.nodeName.toLowerCase();if(-1!==J(aj,ah)&&Y.findFirstNodeHavingAttributeWithValue(al,"src")){var ak=Y.findFirstNodeHavingAttributeWithValue(al,"src");return Y.getAttributeValueFromNode(ak,"src")}if(ah==="object"&&Y.hasNodeAttributeWithValue(al,"data")){return Y.getAttributeValueFromNode(al,"data")}if(ah==="object"){var am=Y.findNodesByTagName(al,"param");if(am&&am.length){var ai;for(ai=0;ai<am.length;ai++){if("movie"===Y.getAttributeValueFromNode(am[ai],"name")&&Y.hasNodeAttributeWithValue(am[ai],"value")){return Y.getAttributeValueFromNode(am[ai],"value")}}}var an=Y.findNodesByTagName(al,"embed");if(an&&an.length){return this.findMediaUrlInNode(an[0])}}},trim:function(ah){if(ah&&String(ah)===ah){return ah.replace(/^\s+|\s+$/g,"")}return ah},isOrWasNodeInViewport:function(am){if(!am||!am.getBoundingClientRect||am.nodeType!==1){return true}var al=am.getBoundingClientRect();var ak=D.documentElement||{};var aj=al.top<0;if(aj&&am.offsetTop){aj=(am.offsetTop+al.height)>0 +}var ai=ak.clientWidth;if(Q.innerWidth&&ai>Q.innerWidth){ai=Q.innerWidth}var ah=ak.clientHeight;if(Q.innerHeight&&ah>Q.innerHeight){ah=Q.innerHeight}return((al.bottom>0||aj)&&al.right>0&&al.left<ai&&((al.top<ah)||aj))},isNodeVisible:function(ai){var ah=i(ai);var aj=this.isOrWasNodeInViewport(ai);return ah&&aj},buildInteractionRequestParams:function(ah,ai,aj,ak){var al="";if(ah){al+="c_i="+r(ah)}if(ai){if(al){al+="&"}al+="c_n="+r(ai)}if(aj){if(al){al+="&"}al+="c_p="+r(aj)}if(ak){if(al){al+="&"}al+="c_t="+r(ak)}return al},buildImpressionRequestParams:function(ah,ai,aj){var ak="c_n="+r(ah)+"&c_p="+r(ai);if(aj){ak+="&c_t="+r(aj)}return ak},buildContentBlock:function(aj){if(!aj){return}var ah=this.findContentName(aj);var ai=this.findContentPiece(aj);var ak=this.findContentTarget(aj);ah=this.trim(ah);ai=this.trim(ai);ak=this.trim(ak);return{name:ah||"Unknown",piece:ai||"Unknown",target:ak||""}},collectContent:function(ak){if(!ak||!ak.length){return[]}var aj=[];var ah,ai;for(ah=0;ah<ak.length; +ah++){ai=this.buildContentBlock(ak[ah]);if(G(ai)){aj.push(ai)}}return aj},setLocation:function(ah){this.location=ah},getLocation:function(){var ah=this.location||Q.location;if(!ah.origin){ah.origin=ah.protocol+"//"+ah.hostname+(ah.port?":"+ah.port:"")}return ah},toAbsoluteUrl:function(ai){if((!ai||String(ai)!==ai)&&ai!==""){return ai}if(""===ai){return this.getLocation().href}if(ai.search(/^\/\//)!==-1){return this.getLocation().protocol+ai}if(ai.search(/:\/\//)!==-1){return ai}if(0===ai.indexOf("#")){return this.getLocation().origin+this.getLocation().pathname+ai}if(0===ai.indexOf("?")){return this.getLocation().origin+this.getLocation().pathname+ai}if(0===ai.search("^[a-zA-Z]{2,11}:")){return ai}if(ai.search(/^\//)!==-1){return this.getLocation().origin+ai}var ah="(.*/)";var aj=this.getLocation().origin+this.getLocation().pathname.match(new RegExp(ah))[0];return aj+ai},isUrlToCurrentDomain:function(ai){var aj=this.toAbsoluteUrl(ai);if(!aj){return false}var ah=this.getLocation().origin; +if(ah===aj){return true}if(0===String(aj).indexOf(ah)){if(":"===String(aj).substr(ah.length,1)){return false}return true}return false},setHrefAttribute:function(ai,ah){if(!ai||!ah){return}Y.setAnyAttribute(ai,"href",ah)},shouldIgnoreInteraction:function(aj){var ai=Y.hasNodeAttribute(aj,this.CONTENT_IGNOREINTERACTION_ATTR);var ah=Y.hasNodeCssClass(aj,this.CONTENT_IGNOREINTERACTION_CLASS);return ai||ah}};function L(ai,al){if(al){return al}if(w(ai,"?")){var ak=ai.indexOf("?");ai=ai.slice(0,ak)}if(O(ai,"piwik.php")){ai=f(ai,"piwik.php".length)}else{if(O(ai,".php")){var ah=ai.lastIndexOf("/");var aj=1;ai=ai.slice(0,ah+aj)}}if(O(ai,"/js/")){ai=f(ai,"js/".length)}return ai}function K(an){var ap="Piwik_Overlay";var ai=new RegExp("index\\.php\\?module=Overlay&action=startOverlaySession&idSite=([0-9]+)&period=([^&]+)&date=([^&]+)(&segment=.*)?$");var aj=ai.exec(D.referrer);if(aj){var al=aj[1];if(al!==String(an)){return false}var am=aj[2],ah=aj[3],ak=aj[4];if(!ak){ak=""}else{if(ak.indexOf("&segment=")===0){ak=ak.substr("&segment=".length) +}}Q.name=ap+"###"+am+"###"+ah+"###"+ak}var ao=Q.name.split("###");return ao.length===4&&ao[0]===ap}function U(ai,ao,ak){var an=Q.name.split("###"),am=an[1],ah=an[2],al=an[3],aj=L(ai,ao);m(aj+"plugins/Overlay/client/client.js?v=1",function(){Piwik_Overlay_Client.initialize(aj,ak,am,ah,al)})}function s(){var aj;try{aj=Q.frameElement}catch(ai){return true}if(G(aj)){return(aj&&String(aj.nodeName).toLowerCase()==="iframe")?true:false}try{return Q.self!==Q.top}catch(ah){return true}}function N(bV,bP){var bq=this,bL=V(D.domain,Q.location.href,H()),cw=I(bL[0]),bv=n(bL[1]),a9=n(bL[2]),cu=false,bZ="GET",cJ=bZ,az="application/x-www-form-urlencoded; charset=UTF-8",cd=az,av=bV||"",bp="",cA="",bN=bP||"",bi="",bw="",aT,a5="",cG=["7z","aac","apk","arc","arj","asf","asx","avi","azw3","bin","csv","deb","dmg","doc","docx","epub","exe","flv","gif","gz","gzip","hqx","ibooks","jar","jpg","jpeg","js","mobi","mp2","mp3","mp4","mpg","mpeg","mov","movie","msi","msp","odb","odf","odg","ods","odt","ogg","ogv","pdf","phps","png","ppt","pptx","qt","qtm","ra","ram","rar","rpm","sea","sit","tar","tbz","tbz2","bz","bz2","tgz","torrent","txt","wav","wma","wmv","wpd","xls","xlsx","xml","z","zip"],ao=[cw],bj=[],bt=[],aW=[],br=500,cm,aU,bz,bx,ah,b8=["pk_campaign","piwik_campaign","utm_campaign","utm_source","utm_medium"],bo=["pk_kwd","piwik_kwd","utm_term"],a6="_pk_",an="pk_vid",cy,bb,a7=false,cs,a1,bf,cn=33955200000,b6=1800000,cF=15768000000,aR=true,b4=0,by=false,aG=false,bS,bD={},b3={},a8={},be=200,cB={},cH={},bR=[],bW=false,cg=false,ai=false,cI=false,cp=false,aE=false,a0=s(),cz=null,bT,aH,bk,bO=af,ba,aB; +try{a5=D.title}catch(ce){a5=""}function cM(cX,cU,cT,cW,cS,cV){if(a7){return}var cR;if(cT){cR=new Date();cR.setTime(cR.getTime()+cT)}D.cookie=cX+"="+r(cU)+(cT?";expires="+cR.toGMTString():"")+";path="+(cW||"/")+(cS?";domain="+cS:"")+(cV?";secure":"")}function au(cT){if(a7){return 0}var cR=new RegExp("(^|;)[ ]*"+cT+"=([^;]*)"),cS=cR.exec(D.cookie);return cS?P(cS[2]):0}function bJ(cR){var cS;cR=j(cR,an);if(bx){cS=new RegExp("#.*");return cR.replace(cS,"")}return cR}function bC(cT,cR){var cU=q(cR),cS;if(cU){return cR}if(cR.slice(0,1)==="/"){return q(cT)+"://"+c(cT)+cR}cT=bJ(cT);cS=cT.indexOf("?");if(cS>=0){cT=cT.slice(0,cS)}cS=cT.lastIndexOf("/");if(cS!==cT.length-1){cT=cT.slice(0,cS+1)}return cT+cR}function cl(cT,cR){var cS;cT=String(cT).toLowerCase();cR=String(cR).toLowerCase();if(cT===cR){return true}if(cR.slice(0,1)==="."){if(cT===cR.slice(1)){return true}cS=cT.length-cR.length;if((cS>0)&&(cT.slice(cS)===cR)){return true}}return false}function b2(cR){var cS=document.createElement("a");if(cR.indexOf("//")!==0&&cR.indexOf("http")!==0){if(cR.indexOf("*")===0){cR=cR.substr(1) +}if(cR.indexOf(".")===0){cR=cR.substr(1)}cR="http://"+cR}cS.href=t.toAbsoluteUrl(cR);if(cS.pathname){return cS.pathname}return""}function aS(cS,cR){if(!ac(cR,"/")){cR="/"+cR}if(!ac(cS,"/")){cS="/"+cS}var cT=(cR==="/"||cR==="/*");if(cT){return true}if(cS===cR){return true}cR=String(cR).toLowerCase();cS=String(cS).toLowerCase();if(O(cR,"*")){cR=cR.slice(0,-1);cT=(!cR||cR==="/");if(cT){return true}if(cS===cR){return true}return cS.indexOf(cR)===0}if(!O(cS,"/")){cS+="/"}if(!O(cR,"/")){cR+="/"}return cS.indexOf(cR)===0}function ak(cV,cX){var cS,cR,cT,cU,cW;for(cS=0;cS<ao.length;cS++){cU=I(ao[cS]);cW=b2(ao[cS]);if(cl(cV,cU)&&aS(cX,cW)){return true}}return false}function aL(cU){var cS,cR,cT;for(cS=0;cS<ao.length;cS++){cR=I(ao[cS].toLowerCase());if(cU===cR){return true}if(cR.slice(0,1)==="."){if(cU===cR.slice(1)){return true}cT=cU.length-cR.length;if((cT>0)&&(cU.slice(cT)===cR)){return true}}}return false}function b7(cR,cT){var cS=new Image(1,1);cS.onload=function(){B=0;if(typeof cT==="function"){cT() +}};cR=cR.replace("send_image=0","send_image=1");cS.src=av+(av.indexOf("?")<0?"?":"&")+cR}function cE(cS,cV,cR){if(!G(cR)||null===cR){cR=true}try{var cU=Q.XMLHttpRequest?new Q.XMLHttpRequest():Q.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;cU.open("POST",av,true);cU.onreadystatechange=function(){if(this.readyState===4&&!(this.status>=200&&this.status<300)&&cR){b7(cS,cV)}else{if(this.readyState===4&&(typeof cV==="function")){cV()}}};cU.setRequestHeader("Content-Type",cd);cU.send(cS)}catch(cT){if(cR){b7(cS,cV)}}}function bX(cS){var cR=new Date();var cT=cR.getTime()+cS;if(!p||cT>p){p=cT}}function b5(cR){if(bT||!aU){return}bT=setTimeout(function cS(){bT=null;if(!a0){a0=(!D.hasFocus||D.hasFocus())}if(!a0){b5(aU);return}if(bz()){return}var cT=new Date(),cU=aU-(cT.getTime()-cz);cU=Math.min(aU,cU);b5(cU)},cR||aU)}function bs(){if(!bT){return}clearTimeout(bT);bT=null}function aY(){a0=true;if(bz()){return}b5()}function ap(){bs()}function cO(){if(aE||!aU){return}aE=true;ag(Q,"focus",aY); +ag(Q,"blur",ap);b5()}function ch(cV){var cS=new Date();var cR=cS.getTime();cz=cR;if(cg&&cR<cg){var cT=cg-cR;setTimeout(cV,cT);bX(cT+50);cg+=50;return}if(cg===false){var cU=800;cg=cR+cU}cV()}function bn(cS,cR,cT){if(!cs&&cS){ch(function(){if(cJ==="POST"||String(cS).length>2000){cE(cS,cT)}else{b7(cS,cT)}bX(cR)})}if(!aE){cO()}else{b5()}}function b1(cR){if(cs){return false}return(cR&&cR.length)}function cN(cT,cR){if(!b1(cT)){return}var cS='{"requests":["?'+cT.join('","?')+'"]}';ch(function(){cE(cS,null,false);bX(cR)})}function aJ(cR){return a6+cR+"."+bN+"."+ba}function bM(){if(a7){return"0"}if(!G(g.cookieEnabled)){var cR=aJ("testcookie");cM(cR,"1");return au(cR)==="1"?"1":"0"}return g.cookieEnabled?"1":"0"}function a4(){ba=bO((cy||cw)+(bb||"/")).slice(0,4)}function bE(){var cS=aJ("cvar"),cR=au(cS);if(cR.length){cR=JSON_PIWIK.parse(cR);if(S(cR)){return cR}}return{}}function ci(){if(aG===false){aG=bE()}}function ct(){return bO((g.userAgent||"")+(g.platform||"")+JSON_PIWIK.stringify(cH)+(new Date()).getTime()+Math.random()).slice(0,16) +}function aq(){return bO((g.userAgent||"")+(g.platform||"")+JSON_PIWIK.stringify(cH)).slice(0,6)}function a2(){return Math.floor((new Date()).getTime()/1000)}function aA(){var cS=a2();var cT=aq();var cR=String(cS)+cT;return cR}function cD(cU){cU=String(cU);var cX=aq();var cV=cX.length;var cW=cU.substr(-1*cV,cV);var cT=parseInt(cU.substr(0,cU.length-cV),10);if(cT&&cW&&cW===cX){var cR=a2();var cS=45;if(cR>=cT&&cR<=(cT+cS)){return true}}return false}function cP(cR){if(!cp){return""}var cV=e(cR,an);if(!cV){return""}cV=String(cV);var cT=new RegExp("^[a-zA-Z0-9]+$");if(cV.length===32&&cT.test(cV)){var cS=cV.substr(16,32);if(cD(cS)){var cU=cV.substr(0,16);return cU}}return""}function cq(){if(!bw){bw=cP(bv)}var cT=new Date(),cR=Math.round(cT.getTime()/1000),cS=aJ("id"),cW=au(cS),cV,cU;if(cW){cV=cW.split(".");cV.unshift("0");if(bw.length){cV[1]=bw}return cV}if(bw.length){cU=bw}else{if("0"===bM()){cU=""}else{cU=ct()}}cV=["1",cU,cR,0,cR,"",""];return cV}function aN(){var cY=cq(),cU=cY[0],cV=cY[1],cS=cY[2],cR=cY[3],cW=cY[4],cT=cY[5]; +if(!G(cY[6])){cY[6]=""}var cX=cY[6];return{newVisitor:cU,uuid:cV,createTs:cS,visitCount:cR,currentVisitTs:cW,lastVisitTs:cT,lastEcommerceOrderTs:cX}}function ay(){var cU=new Date(),cS=cU.getTime(),cV=aN().createTs;var cR=parseInt(cV,10);var cT=(cR*1000)+cn-cS;return cT}function aC(cR){if(!bN){return}var cT=new Date(),cS=Math.round(cT.getTime()/1000);if(!G(cR)){cR=aN()}var cU=cR.uuid+"."+cR.createTs+"."+cR.visitCount+"."+cS+"."+cR.lastVisitTs+"."+cR.lastEcommerceOrderTs;cM(aJ("id"),cU,ay(),bb,cy)}function bu(){var cR=au(aJ("ref"));if(cR.length){try{cR=JSON_PIWIK.parse(cR);if(S(cR)){return cR}}catch(cS){}}return["","",0,""]}function bF(cT,cS,cR){cM(cT,"",-86400,cS,cR)}function bg(cS){var cR="testvalue";cM("test",cR,10000,null,cS);if(au("test")===cR){bF("test",null,cS);return true}return false}function aw(){var cT=a7;a7=false;var cR=["id","ses","cvar","ref"];var cS,cU;for(cS=0;cS<cR.length;cS++){cU=aJ(cR[cS]);if(0!==au(cU)){bF(cU,bb,cy)}}a7=cT}function bK(cR){bN=cR;aC()}function cQ(cV){if(!cV||!S(cV)){return +}var cU=[];var cT;for(cT in cV){if(Object.prototype.hasOwnProperty.call(cV,cT)){cU.push(cT)}}var cW={};cU.sort();var cR=cU.length;var cS;for(cS=0;cS<cR;cS++){cW[cU[cS]]=cV[cU[cS]]}return cW}function bU(){cM(aJ("ses"),"*",b6,bb,cy)}function a3(){var cU="";var cS="abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";var cT=cS.length;var cR;for(cR=0;cR<6;cR++){cU+=cS.charAt(Math.floor(Math.random()*cT))}return cU}function b9(cT,de,df,cU){var dd,cS=new Date(),c1=Math.round(cS.getTime()/1000),cY,dc,cV=1024,dk,c2,da=aG,cW=aJ("ses"),c8=aJ("ref"),c5=aJ("cvar"),c6=au(cW),db=bu(),dh=aT||bv,cZ,cR;if(a7){aw()}if(cs){return""}var c7=aN();if(!G(cU)){cU=""}var c4=D.characterSet||D.charset;if(!c4||c4.toLowerCase()==="utf-8"){c4=null}cZ=db[0];cR=db[1];cY=db[2];dc=db[3];if(!c6){var dg=b6/1000;if(!c7.lastVisitTs||(c1-c7.lastVisitTs)>dg){c7.visitCount++;c7.lastVisitTs=c7.currentVisitTs}if(!bf||!cZ.length){for(dd in b8){if(Object.prototype.hasOwnProperty.call(b8,dd)){cZ=e(dh,b8[dd]);if(cZ.length){break +}}}for(dd in bo){if(Object.prototype.hasOwnProperty.call(bo,dd)){cR=e(dh,bo[dd]);if(cR.length){break}}}}dk=c(a9);c2=dc.length?c(dc):"";if(dk.length&&!aL(dk)&&(!bf||!c2.length||aL(c2))){dc=a9}if(dc.length||cZ.length){cY=c1;db=[cZ,cR,cY,bJ(dc.slice(0,cV))];cM(c8,JSON_PIWIK.stringify(db),cF,bb,cy)}}cT+="&idsite="+bN+"&rec=1&r="+String(Math.random()).slice(2,8)+"&h="+cS.getHours()+"&m="+cS.getMinutes()+"&s="+cS.getSeconds()+"&url="+r(bJ(dh))+(a9.length?"&urlref="+r(bJ(a9)):"")+((bi&&bi.length)?"&uid="+r(bi):"")+"&_id="+c7.uuid+"&_idts="+c7.createTs+"&_idvc="+c7.visitCount+"&_idn="+c7.newVisitor+(cZ.length?"&_rcn="+r(cZ):"")+(cR.length?"&_rck="+r(cR):"")+"&_refts="+cY+"&_viewts="+c7.lastVisitTs+(String(c7.lastEcommerceOrderTs).length?"&_ects="+c7.lastEcommerceOrderTs:"")+(String(dc).length?"&_ref="+r(bJ(dc.slice(0,cV))):"")+(c4?"&cs="+r(c4):"")+"&send_image=0";for(dd in cH){if(Object.prototype.hasOwnProperty.call(cH,dd)){cT+="&"+dd+"="+cH[dd]}}var dj=[];if(de){for(dd in de){if(Object.prototype.hasOwnProperty.call(de,dd)&&/^dimension\d+$/.test(dd)){var cX=dd.replace("dimension",""); +dj.push(parseInt(cX,10));dj.push(String(cX));cT+="&"+dd+"="+de[dd];delete de[dd]}}}if(de&&y(de)){de=null}for(dd in a8){if(Object.prototype.hasOwnProperty.call(a8,dd)){var c3=(-1===J(dj,dd));if(c3){cT+="&dimension"+dd+"="+a8[dd]}}}if(de){cT+="&data="+r(JSON_PIWIK.stringify(de))}else{if(ah){cT+="&data="+r(JSON_PIWIK.stringify(ah))}}function c0(dl,dm){var dn=JSON_PIWIK.stringify(dl);if(dn.length>2){return"&"+dm+"="+r(dn)}return""}var di=cQ(bD);var c9=cQ(b3);cT+=c0(di,"cvar");cT+=c0(c9,"e_cvar");if(aG){cT+=c0(aG,"_cvar");for(dd in da){if(Object.prototype.hasOwnProperty.call(da,dd)){if(aG[dd][0]===""||aG[dd][1]===""){delete aG[dd]}}}if(by){cM(c5,JSON_PIWIK.stringify(aG),b6,bb,cy)}}if(aR){if(b4){cT+=">_ms="+b4}else{if(h&&h.timing&&h.timing.requestStart&&h.timing.responseEnd){cT+=">_ms="+(h.timing.responseEnd-h.timing.requestStart)}}}if(aB){cT+="&pv_id="+aB}c7.lastEcommerceOrderTs=G(cU)&&String(cU).length?cU:c7.lastEcommerceOrderTs;aC(c7);bU();cT+=W(df,{tracker:bq,request:cT});if(cA.length){cT+="&"+cA +}if(x(bS)){cT=bS(cT)}return cT}bz=function aV(){var cR=new Date();if(cz+aU<=cR.getTime()){var cS=b9("ping=1",null,"ping");bn(cS,br);return true}return false};function bc(cU,cT,cZ,cV,cR,c2){var cX="idgoal=0",cY,cS=new Date(),c0=[],c1,cW=String(cU).length;if(cW){cX+="&ec_id="+r(cU);cY=Math.round(cS.getTime()/1000)}cX+="&revenue="+cT;if(String(cZ).length){cX+="&ec_st="+cZ}if(String(cV).length){cX+="&ec_tx="+cV}if(String(cR).length){cX+="&ec_sh="+cR}if(String(c2).length){cX+="&ec_dt="+c2}if(cB){for(c1 in cB){if(Object.prototype.hasOwnProperty.call(cB,c1)){if(!G(cB[c1][1])){cB[c1][1]=""}if(!G(cB[c1][2])){cB[c1][2]=""}if(!G(cB[c1][3])||String(cB[c1][3]).length===0){cB[c1][3]=0}if(!G(cB[c1][4])||String(cB[c1][4]).length===0){cB[c1][4]=1}c0.push(cB[c1])}}cX+="&ec_items="+r(JSON_PIWIK.stringify(c0))}cX=b9(cX,ah,"ecommerce",cY);bn(cX,br);if(cW){cB={}}}function bG(cR,cV,cU,cT,cS,cW){if(String(cR).length&&G(cV)){bc(cR,cV,cU,cT,cS,cW)}}function bd(cR){if(G(cR)){bc("",cR,"","","","")}}function bH(cS,cU,cT){aB=a3(); +var cR=b9("action_name="+r(ae(cS||a5)),cU,"log");bn(cR,br,cT)}function aP(cT,cS){var cU,cR="(^| )(piwik[_-]"+cS;if(cT){for(cU=0;cU<cT.length;cU++){cR+="|"+cT[cU]}}cR+=")( |$)";return new RegExp(cR)}function aK(cR){return(av&&cR&&0===String(cR).indexOf(av))}function ca(cV,cR,cW,cS){if(aK(cR)){return 0}var cU=aP(bt,"download"),cT=aP(aW,"link"),cX=new RegExp("\\.("+cG.join("|")+")([?&#]|$)","i");if(cT.test(cV)){return"link"}if(cS||cU.test(cV)||cX.test(cR)){return"download"}if(cW){return 0}return"link"}function al(cS){var cR;cR=cS.parentNode;while(cR!==null&&G(cR)){if(Y.isLinkElement(cS)){break}cS=cR;cR=cS.parentNode}return cS}function cK(cW){cW=al(cW);if(!Y.hasNodeAttribute(cW,"href")){return}if(!G(cW.href)){return}var cV=Y.getAttributeValueFromNode(cW,"href");if(aK(cV)){return}var cS=cW.pathname||b2(cW.href);var cX=cW.hostname||c(cW.href);var cY=cX.toLowerCase();var cT=cW.href.replace(cX,cY);var cU=new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto|tel):","i");if(!cU.test(cT)){var cR=ca(cW.className,cT,ak(cY,cS),Y.hasNodeAttribute(cW,"download")); +if(cR){return{type:cR,href:cT}}}}function aF(cR,cS,cT,cU){var cV=t.buildInteractionRequestParams(cR,cS,cT,cU);if(!cV){return}return b9(cV,null,"contentInteraction")}function co(cT,cU,cY,cR,cS){if(!G(cT)){return}if(aK(cT)){return cT}var cW=t.toAbsoluteUrl(cT);var cV="redirecturl="+r(cW)+"&";cV+=aF(cU,cY,cR,(cS||cT));var cX="&";if(av.indexOf("?")<0){cX="?"}return av+cX+cV}function aZ(cR,cS){if(!cR||!cS){return false}var cT=t.findTargetNode(cR);if(t.shouldIgnoreInteraction(cT)){return false}cT=t.findTargetNodeNoDefault(cR);if(cT&&!R(cT,cS)){return false}return true}function cb(cT,cS,cV){if(!cT){return}var cR=t.findParentContentNode(cT);if(!cR){return}if(!aZ(cR,cT)){return}var cU=t.buildContentBlock(cR);if(!cU){return}if(!cU.target&&cV){cU.target=cV}return t.buildInteractionRequestParams(cS,cU.name,cU.piece,cU.target)}function aM(cS){if(!bR||!bR.length){return false}var cR,cT;for(cR=0;cR<bR.length;cR++){cT=bR[cR];if(cT&&cT.name===cS.name&&cT.piece===cS.piece&&cT.target===cS.target){return true +}}return false}function bm(cU){if(!cU){return false}var cX=t.findTargetNode(cU);if(!cX||t.shouldIgnoreInteraction(cX)){return false}var cY=cK(cX);if(cI&&cY&&cY.type){return false}if(Y.isLinkElement(cX)&&Y.hasNodeAttributeWithValue(cX,"href")){var cR=String(Y.getAttributeValueFromNode(cX,"href"));if(0===cR.indexOf("#")){return false}if(aK(cR)){return true}if(!t.isUrlToCurrentDomain(cR)){return false}var cV=t.buildContentBlock(cU);if(!cV){return}var cT=cV.name;var cZ=cV.piece;var cW=cV.target;if(!Y.hasNodeAttributeWithValue(cX,t.CONTENT_TARGET_ATTR)||cX.wasContentTargetAttrReplaced){cX.wasContentTargetAttrReplaced=true;cW=t.toAbsoluteUrl(cR);Y.setAnyAttribute(cX,t.CONTENT_TARGET_ATTR,cW)}var cS=co(cR,"click",cT,cZ,cW);t.setHrefAttribute(cX,cS);return true}return false}function aD(cS){if(!cS||!cS.length){return}var cR;for(cR=0;cR<cS.length;cR++){bm(cS[cR])}}function aO(cR){return function(cS){if(!cR){return}var cV=t.findParentContentNode(cR);var cW;if(cS){cW=cS.target||cS.srcElement}if(!cW){cW=cR +}if(!aZ(cV,cW)){return}bX(br);if(Y.isLinkElement(cR)&&Y.hasNodeAttributeWithValue(cR,"href")&&Y.hasNodeAttributeWithValue(cR,t.CONTENT_TARGET_ATTR)){var cT=Y.getAttributeValueFromNode(cR,"href");if(!aK(cT)&&cR.wasContentTargetAttrReplaced){Y.setAnyAttribute(cR,t.CONTENT_TARGET_ATTR,"")}}var c0=cK(cR);if(ai&&c0&&c0.type){return c0.type}if(bm(cV)){return"href"}var cX=t.buildContentBlock(cV);if(!cX){return}var cU=cX.name;var c1=cX.piece;var cZ=cX.target;var cY=aF("click",cU,c1,cZ);bn(cY,br);return cY}}function bI(cT){if(!cT||!cT.length){return}var cR,cS;for(cR=0;cR<cT.length;cR++){cS=t.findTargetNode(cT[cR]);if(cS&&!cS.contentInteractionTrackingSetupDone){cS.contentInteractionTrackingSetupDone=true;ag(cS,"click",aO(cS))}}}function bh(cT,cU){if(!cT||!cT.length){return[]}var cR,cS;for(cR=0;cR<cT.length;cR++){if(aM(cT[cR])){cT.splice(cR,1);cR--}else{bR.push(cT[cR])}}if(!cT||!cT.length){return[]}aD(cU);bI(cU);var cV=[];for(cR=0;cR<cT.length;cR++){cS=b9(t.buildImpressionRequestParams(cT[cR].name,cT[cR].piece,cT[cR].target),undefined,"contentImpressions"); +if(cS){cV.push(cS)}}return cV}function cf(cS){var cR=t.collectContent(cS);return bh(cR,cS)}function aX(cS){if(!cS||!cS.length){return[]}var cR;for(cR=0;cR<cS.length;cR++){if(!t.isNodeVisible(cS[cR])){cS.splice(cR,1);cR--}}if(!cS||!cS.length){return[]}return cf(cS)}function ax(cT,cR,cS){var cU=t.buildImpressionRequestParams(cT,cR,cS);return b9(cU,null,"contentImpression")}function cL(cU,cS){if(!cU){return}var cR=t.findParentContentNode(cU);var cT=t.buildContentBlock(cR);if(!cT){return}if(!cS){cS="Unknown"}return aF(cS,cT.name,cT.piece,cT.target)}function cr(cS,cU,cR,cT){return"e_c="+r(cS)+"&e_a="+r(cU)+(G(cR)?"&e_n="+r(cR):"")+(G(cT)?"&e_v="+r(cT):"")}function am(cT,cV,cR,cU,cX,cW){if(String(cT).length===0||String(cV).length===0){return false}var cS=b9(cr(cT,cV,cR,cU),cX,"event");bn(cS,br,cW)}function bQ(cR,cU,cS,cV){var cT=b9("search="+r(cR)+(cU?"&search_cat="+r(cU):"")+(G(cS)?"&search_count="+cS:""),cV,"sitesearch");bn(cT,br)}function cv(cR,cU,cT){var cS=b9("idgoal="+cR+(cU?"&revenue="+cU:""),cT,"goal"); +bn(cS,br)}function cC(cU,cR,cY,cX,cT){var cW=cR+"="+r(bJ(cU));var cS=cb(cT,"click",cU);if(cS){cW+="&"+cS}var cV=b9(cW,cY,"link");bn(cV,br,cX)}function bB(cS,cR){if(cS!==""){return cS+cR.charAt(0).toUpperCase()+cR.slice(1)}return cR}function bY(cW){var cV,cR,cU=["","webkit","ms","moz"],cT;if(!a1){for(cR=0;cR<cU.length;cR++){cT=cU[cR];if(Object.prototype.hasOwnProperty.call(D,bB(cT,"hidden"))){if(D[bB(cT,"visibilityState")]==="prerender"){cV=true}break}}}if(cV){ag(D,cT+"visibilitychange",function cS(){D.removeEventListener(cT+"visibilitychange",cS,false);cW()});return}cW()}function b0(cR){if(!cR){return}if(!Y.hasNodeAttribute(cR,"href")){return}var cS=Y.getAttributeValueFromNode(cR,"href");if(!cS||aK(cS)){return}cS=j(cS,an);if(cS.indexOf("?")>0){cS+="&"}else{cS+="?"}var cU=aN().uuid;var cT=aA();cS=C(cS,an,cU+cT);Y.setAnyAttribute(cR,"href",cS)}function ar(cU){var cV=Y.getAttributeValueFromNode(cU,"href");if(!cV){return false}cV=String(cV);var cS=cV.indexOf("//")===0||cV.indexOf("http://")===0||cV.indexOf("https://")===0; +if(!cS){return false}var cR=cU.pathname||b2(cU.href);var cT=(cU.hostname||c(cU.href)).toLowerCase();if(ak(cT,cR)){if(!cl(cw,I(cT))){return true}return false}return false}function ck(cR){var cS=cK(cR);if(cS&&cS.type){cS.href=n(cS.href);cC(cS.href,cS.type,undefined,null,cR);return}if(cp){cR=al(cR);if(ar(cR)){b0(cR)}}}function cc(){return D.all&&!D.addEventListener}function cx(cR){var cT=cR.which;var cS=(typeof cR.button);if(!cT&&cS!=="undefined"){if(cc()){if(cR.button&1){cT=1}else{if(cR.button&2){cT=3}else{if(cR.button&4){cT=2}}}}else{if(cR.button===0||cR.button==="0"){cT=1}else{if(cR.button&1){cT=2}else{if(cR.button&2){cT=3}}}}}return cT}function bA(cR){switch(cx(cR)){case 1:return"left";case 2:return"middle";case 3:return"right"}}function aQ(cR){return cR.target||cR.srcElement}function at(cR){return function(cU){cU=cU||Q.event;var cT=bA(cU);var cV=aQ(cU);if(cU.type==="click"){var cS=false;if(cR&&cT==="middle"){cS=true}if(cV&&!cS){ck(cV)}}else{if(cU.type==="mousedown"){if(cT==="middle"&&cV){aH=cT; +bk=cV}else{aH=bk=null}}else{if(cU.type==="mouseup"){if(cT===aH&&cV===bk){ck(cV)}aH=bk=null}else{if(cU.type==="contextmenu"){ck(cV)}}}}}}function aj(cT,cS){var cR=typeof cS;if(cR==="undefined"){cS=true}ag(cT,"click",at(cS),false);if(cS){ag(cT,"mouseup",at(cS),false);ag(cT,"mousedown",at(cS),false);ag(cT,"contextmenu",at(cS),false)}}function bl(cS){if(!ai){ai=true;var cT,cR=aP(bj,"ignore"),cU=D.links;if(cU){for(cT=0;cT<cU.length;cT++){if(!cR.test(cU[cT].className)){aj(cU[cT],cS)}}}}}function aI(cT,cV,cW){if(bW){return true}bW=true;var cX=false;var cU,cS;function cR(){cX=true}l(function(){function cY(c0){setTimeout(function(){if(!bW){return}cX=false;cW.trackVisibleContentImpressions();cY(c0)},c0)}function cZ(c0){setTimeout(function(){if(!bW){return}if(cX){cX=false;cW.trackVisibleContentImpressions()}cZ(c0)},c0)}if(cT){cU=["scroll","resize"];for(cS=0;cS<cU.length;cS++){if(D.addEventListener){D.addEventListener(cU[cS],cR)}else{Q.attachEvent("on"+cU[cS],cR)}}cZ(100)}if(cV&&cV>0){cV=parseInt(cV,10); +cY(cV)}})}function cj(){var cS,cU,cV={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(cS in cV){if(Object.prototype.hasOwnProperty.call(cV,cS)){cU=g.mimeTypes[cV[cS]];cH[cS]=(cU&&cU.enabledPlugin)?"1":"0"}}}if(typeof navigator.javaEnabled!=="unknown"&&G(g.javaEnabled)&&g.javaEnabled()){cH.java="1"}if(x(Q.GearsFactory)){cH.gears="1"}cH.cookie=bM()}var cT=parseInt(T.width,10);var cR=parseInt(T.height,10);cH.res=parseInt(cT,10)+"x"+parseInt(cR,10)}cj();a4();aC();this.getVisitorId=function(){return aN().uuid};this.getVisitorInfo=function(){return cq()};this.getAttributionInfo=function(){return bu()};this.getAttributionCampaignName=function(){return bu()[0]};this.getAttributionCampaignKeyword=function(){return bu()[1] +};this.getAttributionReferrerTimestamp=function(){return bu()[2]};this.getAttributionReferrerUrl=function(){return bu()[3]};this.setTrackerUrl=function(cR){av=cR};this.getTrackerUrl=function(){return av};this.addTracker=function(cR,cT){if(!cT){throw new Error("A siteId must be given to add a new tracker")}if(!G(cR)||null===cR){cR=this.getTrackerUrl()}var cS=new N(cR,cT);F.push(cS);return cS};this.getSiteId=function(){return bN};this.setSiteId=function(cR){bK(cR)};this.setUserId=function(cR){if(!G(cR)||!cR.length){return}bi=cR;bw=bO(bi).substr(0,16)};this.getUserId=function(){return bi};this.setCustomData=function(cR,cS){if(S(cR)){ah=cR}else{if(!ah){ah={}}ah[cR]=cS}};this.getCustomData=function(){return ah};this.setCustomRequestProcessing=function(cR){bS=cR};this.appendToTrackingUrl=function(cR){cA=cR};this.getRequest=function(cR){return b9(cR)};this.addPlugin=function(cR,cS){a[cR]=cS};this.setCustomDimension=function(cR,cS){cR=parseInt(cR,10);if(cR>0){if(!G(cS)){cS=""}if(!u(cS)){cS=String(cS) +}a8[cR]=cS}};this.getCustomDimension=function(cR){cR=parseInt(cR,10);if(cR>0&&Object.prototype.hasOwnProperty.call(a8,cR)){return a8[cR]}};this.deleteCustomDimension=function(cR){cR=parseInt(cR,10);if(cR>0){delete a8[cR]}};this.setCustomVariable=function(cS,cR,cV,cT){var cU;if(!G(cT)){cT="visit"}if(!G(cR)){return}if(!G(cV)){cV=""}if(cS>0){cR=!u(cR)?String(cR):cR;cV=!u(cV)?String(cV):cV;cU=[cR.slice(0,be),cV.slice(0,be)];if(cT==="visit"||cT===2){ci();aG[cS]=cU}else{if(cT==="page"||cT===3){bD[cS]=cU}else{if(cT==="event"){b3[cS]=cU}}}}};this.getCustomVariable=function(cS,cT){var cR;if(!G(cT)){cT="visit"}if(cT==="page"||cT===3){cR=bD[cS]}else{if(cT==="event"){cR=b3[cS]}else{if(cT==="visit"||cT===2){ci();cR=aG[cS]}}}if(!G(cR)||(cR&&cR[0]==="")){return false}return cR};this.deleteCustomVariable=function(cR,cS){if(this.getCustomVariable(cR,cS)){this.setCustomVariable(cR,"","",cS)}};this.storeCustomVariablesInCookie=function(){by=true};this.setLinkTrackingTimer=function(cR){br=cR};this.setDownloadExtensions=function(cR){if(u(cR)){cR=cR.split("|") +}cG=cR};this.addDownloadExtensions=function(cS){var cR;if(u(cS)){cS=cS.split("|")}for(cR=0;cR<cS.length;cR++){cG.push(cS[cR])}};this.removeDownloadExtensions=function(cT){var cS,cR=[];if(u(cT)){cT=cT.split("|")}for(cS=0;cS<cG.length;cS++){if(J(cT,cG[cS])===-1){cR.push(cG[cS])}}cG=cR};this.setDomains=function(cR){ao=u(cR)?[cR]:cR;var cV=false,cT=0,cS;for(cT;cT<ao.length;cT++){cS=String(ao[cT]);if(cl(cw,I(cS))){cV=true;break}var cU=b2(cS);if(cU&&cU!=="/"&&cU!=="/*"){cV=true;break}}if(!cV){ao.push(cw)}};this.enableCrossDomainLinking=function(){cp=true};this.disableCrossDomainLinking=function(){cp=false};this.isCrossDomainLinkingEnabled=function(){return cp};this.setIgnoreClasses=function(cR){bj=u(cR)?[cR]:cR};this.setRequestMethod=function(cR){cJ=cR||bZ};this.setRequestContentType=function(cR){cd=cR||az};this.setReferrerUrl=function(cR){a9=cR};this.setCustomUrl=function(cR){aT=bC(bv,cR)};this.setDocumentTitle=function(cR){a5=cR};this.setAPIUrl=function(cR){bp=cR};this.setDownloadClasses=function(cR){bt=u(cR)?[cR]:cR +};this.setLinkClasses=function(cR){aW=u(cR)?[cR]:cR};this.setCampaignNameKey=function(cR){b8=u(cR)?[cR]:cR};this.setCampaignKeywordKey=function(cR){bo=u(cR)?[cR]:cR};this.discardHashTag=function(cR){bx=cR};this.setCookieNamePrefix=function(cR){a6=cR;aG=bE()};this.setCookieDomain=function(cR){var cS=I(cR);if(bg(cS)){cy=cS;a4()}};this.setCookiePath=function(cR){bb=cR;a4()};this.setVisitorCookieTimeout=function(cR){cn=cR*1000};this.setSessionCookieTimeout=function(cR){b6=cR*1000};this.setReferralCookieTimeout=function(cR){cF=cR*1000};this.setConversionAttributionFirstReferrer=function(cR){bf=cR};this.disableCookies=function(){a7=true;cH.cookie="0";if(bN){aw()}};this.deleteCookies=function(){aw()};this.setDoNotTrack=function(cS){var cR=g.doNotTrack||g.msDoNotTrack;cs=cS&&(cR==="yes"||cR==="1");if(cs){this.disableCookies()}};this.addListener=function(cS,cR){aj(cS,cR)};this.enableLinkTracking=function(cR){cI=true;bY(function(){o(function(){bl(cR)})})};this.enableJSErrorTracking=function(){if(cu){return +}cu=true;var cR=Q.onerror;Q.onerror=function(cW,cU,cT,cV,cS){bY(function(){var cX="JavaScript Errors";var cY=cU+":"+cT;if(cV){cY+=":"+cV}am(cX,cY,cW)});if(cR){return cR(cW,cU,cT,cV,cS)}return false}};this.disablePerformanceTracking=function(){aR=false};this.setGenerationTimeMs=function(cR){b4=parseInt(cR,10)};this.enableHeartBeatTimer=function(cR){cR=Math.max(cR,1);aU=(cR||15)*1000;if(cz!==null){cO()}};this.disableHeartBeatTimer=function(){bs();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(cR){if(Q.location.protocol==="file:"){Q.location=cR}};this.setCountPreRendered=function(cR){a1=cR};this.trackGoal=function(cR,cT,cS){bY(function(){cv(cR,cT,cS)})};this.trackLink=function(cS,cR,cU,cT){bY(function(){cC(cS,cR,cU,cT) +})};this.trackPageView=function(cR,cT,cS){bR=[];if(K(bN)){bY(function(){U(av,bp,bN)})}else{bY(function(){bH(cR,cT,cS)})}};this.trackAllContentImpressions=function(){if(K(bN)){return}bY(function(){o(function(){var cR=t.findContentNodes();var cS=cf(cR);cN(cS,br)})})};this.trackVisibleContentImpressions=function(cR,cS){if(K(bN)){return}if(!G(cR)){cR=true}if(!G(cS)){cS=750}aI(cR,cS,this);bY(function(){l(function(){var cT=t.findContentNodes();var cU=aX(cT);cN(cU,br)})})};this.trackContentImpression=function(cT,cR,cS){if(K(bN)){return}if(!cT){return}cR=cR||"Unknown";bY(function(){var cU=ax(cT,cR,cS);bn(cU,br)})};this.trackContentImpressionsWithinNode=function(cR){if(K(bN)||!cR){return}bY(function(){if(bW){l(function(){var cS=t.findContentNodesWithinNode(cR);var cT=aX(cS);cN(cT,br)})}else{o(function(){var cS=t.findContentNodesWithinNode(cR);var cT=cf(cS);cN(cT,br)})}})};this.trackContentInteraction=function(cT,cU,cR,cS){if(K(bN)){return}if(!cT||!cU){return}cR=cR||"Unknown";bY(function(){var cV=aF(cT,cU,cR,cS); +bn(cV,br)})};this.trackContentInteractionNode=function(cS,cR){if(K(bN)||!cS){return}bY(function(){var cT=cL(cS,cR);bn(cT,br)})};this.logAllContentBlocksOnPage=function(){var cS=t.findContentNodes();var cR=t.collectContent(cS);if(console!==undefined&&console&&console.log){console.log(cR)}};this.trackEvent=function(cS,cU,cR,cT,cW,cV){bY(function(){am(cS,cU,cR,cT,cW,cV)})};this.trackSiteSearch=function(cR,cT,cS,cU){bY(function(){bQ(cR,cT,cS,cU)})};this.setEcommerceView=function(cU,cR,cT,cS){if(!G(cT)||!cT.length){cT=""}else{if(cT instanceof Array){cT=JSON_PIWIK.stringify(cT)}}bD[5]=["_pkc",cT];if(G(cS)&&String(cS).length){bD[2]=["_pkp",cS]}if((!G(cU)||!cU.length)&&(!G(cR)||!cR.length)){return}if(G(cU)&&cU.length){bD[3]=["_pks",cU]}if(!G(cR)||!cR.length){cR=""}bD[4]=["_pkn",cR]};this.addEcommerceItem=function(cV,cR,cT,cS,cU){if(cV.length){cB[cV]=[cV,cR,cT,cS,cU]}};this.trackEcommerceOrder=function(cR,cV,cU,cT,cS,cW){bG(cR,cV,cU,cT,cS,cW)};this.trackEcommerceCartUpdate=function(cR){bd(cR)};this.trackRequest=function(cS,cU,cT,cR){bY(function(){var cV=b9(cS,cU,cR); +bn(cV,br,cT)})};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 */ |