diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2012-10-25 00:33:55 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2012-10-25 00:33:55 +0400 |
commit | cbfdfc89de1fe960f078fda0ad5ac9af99e47ad5 (patch) | |
tree | ed0596d64688fd8ad37bdd859e80d232be571b54 /piwik.js | |
parent | c78b62df79e063ccd8482e95711ebf6f40ebe7d4 (diff) |
Refs #3332
Fixing JSLINT errors + packaging changes in piwik.js in the minified script
git-svn-id: http://dev.piwik.org/svn/trunk@7306 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'piwik.js')
-rw-r--r-- | piwik.js | 33 |
1 files changed, 17 insertions, 16 deletions
@@ -10,20 +10,21 @@ if(!this.JSON2){this.JSON2={}}(function(){function d(f){return f<10?"0"+f:f}function l(n,m){var f=Object.prototype.toString.apply(n);if(f==="[object Date]"){return isFinite(n.valueOf())?n.getUTCFullYear()+"-"+d(n.getUTCMonth()+1)+"-"+d(n.getUTCDate())+"T"+d(n.getUTCHours())+":"+d(n.getUTCMinutes())+":"+d(n.getUTCSeconds())+"Z":null}if(f==="[object String]"||f==="[object Number]"||f==="[object Boolean]"){return n.valueOf()}if(f!=="[object Array]"&&typeof n.toJSON==="function"){return n.toJSON(m)}return n}var c=new RegExp("[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]","g"),e='\\\\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]',i=new RegExp("["+e,"g"),j,b,k={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},h; function a(f){i.lastIndex=0;return i.test(f)?'"'+f.replace(i,function(m){var n=k[m];return typeof n==="string"?n:"\\u"+("0000"+m.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+f+'"'}function g(s,p){var n,m,t,f,q=j,o,r=p[s];if(r&&typeof r==="object"){r=l(r,s)}if(typeof h==="function"){r=h.call(p,s,r)}switch(typeof r){case"string":return a(r);case"number":return isFinite(r)?String(r):"null";case"boolean":case"null":return String(r);case"object":if(!r){return"null"}j+=b;o=[];if(Object.prototype.toString.apply(r)==="[object Array]"){f=r.length;for(n=0;n<f;n+=1){o[n]=g(n,r)||"null"}t=o.length===0?"[]":j?"[\n"+j+o.join(",\n"+j)+"\n"+q+"]":"["+o.join(",")+"]";j=q;return t}if(h&&typeof h==="object"){f=h.length;for(n=0;n<f;n+=1){if(typeof h[n]==="string"){m=h[n];t=g(m,r);if(t){o.push(a(m)+(j?": ":":")+t)}}}}else{for(m in r){if(Object.prototype.hasOwnProperty.call(r,m)){t=g(m,r);if(t){o.push(a(m)+(j?": ":":")+t)}}}}t=o.length===0?"{}":j?"{\n"+j+o.join(",\n"+j)+"\n"+q+"}":"{"+o.join(",")+"}";j=q; return t}}if(typeof JSON2.stringify!=="function"){JSON2.stringify=function(o,m,n){var f;j="";b="";if(typeof n==="number"){for(f=0;f<n;f+=1){b+=" "}}else{if(typeof n==="string"){b=n}}h=m;if(m&&typeof m!=="function"&&(typeof m!=="object"||typeof m.length!=="number")){throw new Error("JSON.stringify")}return g("",{"":o})}}if(typeof JSON2.parse!=="function"){JSON2.parse=function(o,f){var n;function m(s,r){var q,p,t=s[r];if(t&&typeof t==="object"){for(q in t){if(Object.prototype.hasOwnProperty.call(t,q)){p=m(t,q);if(p!==undefined){t[q]=p}else{delete t[q]}}}}return f.call(s,r,t)}o=String(o);c.lastIndex=0;if(c.test(o)){o=o.replace(c,function(p){return"\\u"+("0000"+p.charCodeAt(0).toString(16)).slice(-4)})}if((new RegExp("^[\\],:{}\\s]*$")).test(o.replace(new RegExp('\\\\(?:["\\\\/bfnrt]|u[0-9a-fA-F]{4})',"g"),"@").replace(new RegExp('"[^"\\\\\n\r]*"|true|false|null|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?',"g"),"]").replace(new RegExp("(?:^|:|,)(?:\\s*\\[)+","g"),""))){n=eval("("+o+")"); -return typeof f==="function"?m({"":n},""):n}throw new SyntaxError("JSON.parse")}}}());var _paq=_paq||[],Piwik=Piwik||(function(){var n,w={},d=document,j=navigator,v=screen,H=window,h=false,C=[],e=H.encodeURIComponent,I=H.decodeURIComponent,E=unescape,G,D;function b(i){return"undefined"!==typeof i}function a(i){return typeof i==="function"}function o(i){return typeof i==="object"}function r(i){return typeof i==="string"||i instanceof String}function z(){var J,L,K;for(J=0;J<arguments.length;J+=1){K=arguments[J];L=K.shift();if(r(L)){G[L].apply(G,K)}else{L.apply(G,K)}}}function t(L,K,J,i){if(L.addEventListener){L.addEventListener(K,J,i);return true}if(L.attachEvent){return L.attachEvent("on"+K,J)}L["on"+K]=J}function g(K,N){var J="",M,L;for(M in w){if(Object.prototype.hasOwnProperty.call(w,M)){L=w[M][K];if(a(L)){J+=L(N)}}}return J}function B(){var i;g("unload");if(n){do{i=new Date()}while(i.getTimeAlias()<n)}}function k(){var J;if(!h){h=true;g("load");for(J=0;J<C.length;J++){C[J]()}}return true -}function x(){var J;if(d.addEventListener){t(d,"DOMContentLoaded",function i(){d.removeEventListener("DOMContentLoaded",i,false);k()})}else{if(d.attachEvent){d.attachEvent("onreadystatechange",function i(){if(d.readyState==="complete"){d.detachEvent("onreadystatechange",i);k()}});if(d.documentElement.doScroll&&H===H.top){(function i(){if(!h){try{d.documentElement.doScroll("left")}catch(K){setTimeout(i,0);return}k()}}())}}}if((new RegExp("WebKit")).test(j.userAgent)){J=setInterval(function(){if(h||/loaded|complete/.test(d.readyState)){clearInterval(J);k()}},10)}t(H,"load",k,false)}function f(){var i="";try{i=H.top.document.referrer}catch(K){if(H.parent){try{i=H.parent.document.referrer}catch(J){i=""}}}if(i===""){i=d.referrer}return i}function A(i){var K=new RegExp("^([a-z]+):"),J=K.exec(i);return J?J[1]:null}function y(i){var K=new RegExp("^(?:(?:https?|ftp):)/*(?:[^@]+@)?([^:/#]+)"),J=K.exec(i);return J?J[1]:i}function q(K,J){var N=new RegExp("^(?:https?|ftp)(?::/*(?:[^?]+)[?])([^#]+)"),M=N.exec(K),L=new RegExp("(?:^|&)"+J+"=([^&]*)"),i=M?L.exec(M[1]):0; -return i?I(i[1]):""}function s(i){return E(e(i))}function u(Z){var L=function(W,i){return(W<<i)|(W>>>(32-i))},aa=function(ag){var af="",ae,W;for(ae=7;ae>=0;ae--){W=(ag>>>(ae*4))&15;af+=W.toString(16)}return af},O,ac,ab,K=[],S=1732584193,Q=4023233417,P=2562383102,N=271733878,M=3285377520,Y,X,V,U,T,ad,J,R=[];Z=s(Z);J=Z.length;for(ac=0;ac<J-3;ac+=4){ab=Z.charCodeAt(ac)<<24|Z.charCodeAt(ac+1)<<16|Z.charCodeAt(ac+2)<<8|Z.charCodeAt(ac+3);R.push(ab)}switch(J&3){case 0:ac=2147483648;break;case 1:ac=Z.charCodeAt(J-1)<<24|8388608;break;case 2:ac=Z.charCodeAt(J-2)<<24|Z.charCodeAt(J-1)<<16|32768;break;case 3:ac=Z.charCodeAt(J-3)<<24|Z.charCodeAt(J-2)<<16|Z.charCodeAt(J-1)<<8|128;break}R.push(ac);while((R.length&15)!==14){R.push(0)}R.push(J>>>29);R.push((J<<3)&4294967295);for(O=0;O<R.length;O+=16){for(ac=0;ac<16;ac++){K[ac]=R[O+ac]}for(ac=16;ac<=79;ac++){K[ac]=L(K[ac-3]^K[ac-8]^K[ac-14]^K[ac-16],1)}Y=S;X=Q;V=P;U=N;T=M;for(ac=0;ac<=19;ac++){ad=(L(Y,5)+((X&V)|(~X&U))+T+K[ac]+1518500249)&4294967295;T=U; -U=V;V=L(X,30);X=Y;Y=ad}for(ac=20;ac<=39;ac++){ad=(L(Y,5)+(X^V^U)+T+K[ac]+1859775393)&4294967295;T=U;U=V;V=L(X,30);X=Y;Y=ad}for(ac=40;ac<=59;ac++){ad=(L(Y,5)+((X&V)|(X&U)|(V&U))+T+K[ac]+2400959708)&4294967295;T=U;U=V;V=L(X,30);X=Y;Y=ad}for(ac=60;ac<=79;ac++){ad=(L(Y,5)+(X^V^U)+T+K[ac]+3395469782)&4294967295;T=U;U=V;V=L(X,30);X=Y;Y=ad}S=(S+Y)&4294967295;Q=(Q+X)&4294967295;P=(P+V)&4294967295;N=(N+U)&4294967295;M=(M+T)&4294967295}ad=aa(S)+aa(Q)+aa(P)+aa(N)+aa(M);return ad.toLowerCase()}function p(K,i,J){if(K==="translate.googleusercontent.com"){if(J===""){J=i}i=q(i,"u");K=y(i)}else{if(K==="cc.bingj.com"||K==="webcache.googleusercontent.com"||K.slice(0,5)==="74.6."){i=d.links[0].href;K=y(i)}}return[K,i,J]}function m(J){var i=J.length;if(J.charAt(--i)==="."){J=J.slice(0,i)}if(J.slice(0,2)==="*."){J=J.slice(1)}return J}function l(J){if(!r(J)){J=J.text||"";var i=d.getElementsByTagName("title");if(i&&b(i[0])){J=i[0].text}}return J}function F(ad,aC){var M=p(d.domain,H.location.href,f()),aV=m(M[0]),a9=M[1],aI=M[2],aG="GET",L=ad||"",aZ=aC||"",at,aj=d.title,al="7z|aac|ar[cj]|as[fx]|avi|bin|csv|deb|dmg|doc|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mp(2|3|4|e?g)|mov(ie)?|ms[ip]|od[bfgpst]|og[gv]|pdf|phps|png|ppt|qtm?|ra[mr]?|rpm|sea|sit|tar|t?bz2?|tgz|torrent|txt|wav|wm[av]|wpd||xls|xml|z|zip",aE=[aV],P=[],ax=[],ac=[],aD=500,Q,ae,R,S,an=["pk_campaign","piwik_campaign","utm_campaign","utm_source","utm_medium"],ai=["pk_kwd","piwik_kwd","utm_term"],a7="_pk_",V,a8,T=false,a2,ap,ar,aa=63072000000,ab=1800000,au=15768000000,Y=d.location.protocol==="https",O=false,ay={},a3=200,aO={},a0={},aL=false,aJ=false,aH,az,W,am=u,aK,aq; -function aQ(bi,bf,be,bh,bd,bg){if(T){return}var bc;if(be){bc=new Date();bc.setTime(bc.getTime()+be)}d.cookie=bi+"="+e(bf)+(be?";expires="+bc.toGMTString():"")+";path="+(bh||"/")+(bd?";domain="+bd:"")+(bg?";secure":"")}function Z(be){if(T){return 0}var bc=new RegExp("(^|;)[ ]*"+be+"=([^;]*)"),bd=bc.exec(d.cookie);return bd?I(bd[2]):0}function a4(bc){var bd;if(R){bd=new RegExp("#.*");return bc.replace(bd,"")}return bc}function aU(be,bc){var bf=A(bc),bd;if(bf){return bc}if(bc.slice(0,1)==="/"){return A(be)+"://"+y(be)+bc}be=a4(be);if((bd=be.indexOf("?"))>=0){be=be.slice(0,bd)}if((bd=be.lastIndexOf("/"))!==be.length-1){be=be.slice(0,bd+1)}return be+bc}function aF(bf){var bd,bc,be;for(bd=0;bd<aE.length;bd++){bc=m(aE[bd].toLowerCase());if(bf===bc){return true}if(bc.slice(0,1)==="."){if(bf===bc.slice(1)){return true}be=bf.length-bc.length;if((be>0)&&(bf.slice(be)===bc)){return true}}}return false}function bb(bc){var bd=new Image(1,1);bd.onload=function(){};bd.src=L+(L.indexOf("?")<0?"?":"&")+bc -}function aR(bc){try{var be=H.XMLHttpRequest?new H.XMLHttpRequest():H.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;be.open("POST",L,true);be.onreadystatechange=function(){if(this.readyState===4&&this.status!==200){bb(bc)}};be.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");be.send(bc)}catch(bd){bb(bc)}}function ao(be,bd){var bc=new Date();if(!a2){if(aG==="POST"){aR(be)}else{bb(be)}n=bc.getTime()+bd}}function aP(bc){return a7+bc+"."+aZ+"."+aK}function N(){if(T){return"0"}if(!b(j.cookieEnabled)){var bc=aP("testcookie");aQ(bc,"1");return Z(bc)==="1"?"1":"0"}return j.cookieEnabled?"1":"0"}function aA(){aK=am((V||aV)+(a8||"/")).slice(0,4)}function X(){var bd=aP("cvar"),bc=Z(bd);if(bc.length){bc=JSON2.parse(bc);if(o(bc)){return bc}}return{}}function K(){if(O===false){O=X()}}function aY(){var bc=new Date();aH=bc.getTime()}function U(bg,bd,bc,bf,be,bh){aQ(aP("id"),bg+"."+bd+"."+bc+"."+bf+"."+be+"."+bh,aa,a8,V,Y)}function J(){var bd=new Date(),bc=Math.round(bd.getTime()/1000),bf=Z(aP("id")),be; -if(bf){be=bf.split(".");be.unshift("0")}else{if(!aq){aq=am((j.userAgent||"")+(j.platform||"")+JSON2.stringify(a0)+bc).slice(0,16)}be=["1",aq,bc,0,bc,"",""]}return be}function i(){var bc=Z(aP("ref"));if(bc.length){try{bc=JSON2.parse(bc);if(o(bc)){return bc}}catch(bd){}}return["","",0,""]}function ak(be,bC,bD,bg){var bA,bd=new Date(),bm=Math.round(bd.getTime()/1000),bF,bB,bi,bt,bx,bl,bv,bj,bz,bh=1024,bG,bp,bw=O,br=aP("id"),bn=aP("ses"),bo=aP("ref"),bH=aP("cvar"),bu=J(),bq=Z(bn),by=i(),bE=at||a9,bk,bc;if(T){T=false;aQ(br,"",-86400,a8,V);aQ(bn,"",-86400,a8,V);aQ(bH,"",-86400,a8,V);aQ(bo,"",-86400,a8,V);T=true}if(a2){return""}bF=bu[0];bB=bu[1];bt=bu[2];bi=bu[3];bx=bu[4];bl=bu[5];if(!b(bu[6])){bu[6]=""}bv=bu[6];if(!b(bg)){bg=""}bk=by[0];bc=by[1];bj=by[2];bz=by[3];if(!bq){bi++;bl=bx;if(!ar||!bk.length){for(bA in an){if(Object.prototype.hasOwnProperty.call(an,bA)){bk=q(bE,an[bA]);if(bk.length){break}}}for(bA in ai){if(Object.prototype.hasOwnProperty.call(ai,bA)){bc=q(bE,ai[bA]);if(bc.length){break -}}}}bG=y(aI);bp=bz.length?y(bz):"";if(bG.length&&!aF(bG)&&(!ar||!bp.length||aF(bp))){bz=aI}if(bz.length||bk.length){bj=bm;by=[bk,bc,bj,a4(bz.slice(0,bh))];aQ(bo,JSON2.stringify(by),au,a8,V,Y)}}be+="&idsite="+aZ+"&rec=1&r="+String(Math.random()).slice(2,8)+"&h="+bd.getHours()+"&m="+bd.getMinutes()+"&s="+bd.getSeconds()+"&url="+e(a4(bE))+(aI.length?"&urlref="+e(a4(aI)):"")+"&_id="+bB+"&_idts="+bt+"&_idvc="+bi+"&_idn="+bF+(bk.length?"&_rcn="+e(bk):"")+(bc.length?"&_rck="+e(bc):"")+"&_refts="+bj+"&_viewts="+bl+(String(bv).length?"&_ects="+bv:"")+(String(bz).length?"&_ref="+e(a4(bz.slice(0,bh))):"");var bf=JSON2.stringify(ay);if(bf.length>2){be+="&cvar="+e(bf)}for(bA in a0){if(Object.prototype.hasOwnProperty.call(a0,bA)){be+="&"+bA+"="+a0[bA]}}if(bC){be+="&data="+e(JSON2.stringify(bC))}else{if(S){be+="&data="+e(JSON2.stringify(S))}}if(O){var bs=JSON2.stringify(O);if(bs.length>2){be+="&_cvar="+e(bs)}for(bA in bw){if(Object.prototype.hasOwnProperty.call(bw,bA)){if(O[bA][0]===""||O[bA][1]===""){delete O[bA] -}}}aQ(bH,JSON2.stringify(O),ab,a8,V,Y)}U(bB,bt,bi,bm,bl,b(bg)&&String(bg).length?bg:bv);aQ(bn,"*",ab,a8,V,Y);be+=g(bD);return be}function aT(bf,be,bj,bg,bc,bm){var bh="idgoal=0",bi,bd=new Date(),bk=[],bl;if(String(bf).length){bh+="&ec_id="+e(bf);bi=Math.round(bd.getTime()/1000)}bh+="&revenue="+be;if(String(bj).length){bh+="&ec_st="+bj}if(String(bg).length){bh+="&ec_tx="+bg}if(String(bc).length){bh+="&ec_sh="+bc}if(String(bm).length){bh+="&ec_dt="+bm}if(aO){for(bl in aO){if(Object.prototype.hasOwnProperty.call(aO,bl)){if(!b(aO[bl][1])){aO[bl][1]=""}if(!b(aO[bl][2])){aO[bl][2]=""}if(!b(aO[bl][3])||String(aO[bl][3]).length===0){aO[bl][3]=0}if(!b(aO[bl][4])||String(aO[bl][4]).length===0){aO[bl][4]=1}bk.push(aO[bl])}}bh+="&ec_items="+e(JSON2.stringify(bk))}bh=ak(bh,S,"ecommerce",bi);ao(bh,aD)}function aS(bc,bg,bf,be,bd,bh){if(String(bc).length&&b(bg)){aT(bc,bg,bf,be,bd,bh)}}function a6(bc){if(b(bc)){aT("",bc,"","","","")}}function aw(bf,bg){var bc=new Date(),be=ak("action_name="+e(l(bf||aj)),bg,"log"); -ao(be,aD);if(Q&&ae&&!aJ){aJ=true;t(d,"click",aY);t(d,"mouseup",aY);t(d,"mousedown",aY);t(d,"mousemove",aY);t(d,"mousewheel",aY);t(H,"DOMMouseScroll",aY);t(H,"scroll",aY);t(d,"keypress",aY);t(d,"keydown",aY);t(d,"keyup",aY);t(H,"resize",aY);t(H,"focus",aY);t(H,"blur",aY);aH=bc.getTime();setTimeout(function bd(){var bh=new Date(),bi;if((aH+ae)>bh.getTime()){if(Q<bh.getTime()){bi=ak("ping=1",bg,"ping");ao(bi,aD)}setTimeout(bd,ae)}},ae)}}function ah(bc,bf,bd,bg){var be=ak("search="+e(bc)+(bf?"&search_cat="+e(bf):"")+(b(bd)?"&search_count="+bd:""),bg,"sitesearch");ao(be,aD)}function aB(bc,bf,be){var bd=ak("idgoal="+bc+(bf?"&revenue="+bf:""),be,"goal");ao(bd,aD)}function aX(bd,bc,bf){var be=ak(bc+"="+e(a4(bd)),bf,"link");ao(be,aD)}function a1(bd,bc){if(bd!==""){return bd+bc.charAt(0).toUpperCase()+bc.slice(1)}return bc}function ag(bh){var bg,bc,bf=["","webkit","ms","moz"],be;if(!ap){for(bc=0;bc<bf.length;bc++){be=bf[bc];if(Object.prototype.hasOwnProperty.call(d,a1(be,"hidden"))){if(d[a1(be,"visibilityState")]==="prerender"){bg=true -}break}}}if(bg){t(d,be+"visibilitychange",function bd(){d.removeEventListener(be+"visibilitychange",bd,false);bh()});return}bh()}function af(be,bd){var bf,bc="(^| )(piwik[_-]"+bd;if(be){for(bf=0;bf<be.length;bf++){bc+="|"+be[bf]}}bc+=")( |$)";return new RegExp(bc)}function aW(bf,bc,bg){var be=af(ax,"download"),bd=af(ac,"link"),bh=new RegExp("\\.("+al+")([?&#]|$)","i");return bd.test(bf)?"link":(be.test(bf)||bh.test(bc)?"download":(bg?0:"link"))}function aN(bh){var bf,bd,bc;while((bf=bh.parentNode)!==null&&b(bf)&&((bd=bh.tagName.toUpperCase())!=="A"&&bd!=="AREA")){bh=bf}if(b(bh.href)){var bi=bh.hostname||y(bh.href),bj=bi.toLowerCase(),be=bh.href.replace(bi,bj),bg=new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto):","i");if(!bg.test(be)){bc=aW(bh.className,be,aF(bj));if(bc){be=E(be);aX(be,bc)}}}}function ba(bc){var bd,be;bc=bc||H.event;bd=bc.which||bc.button;be=bc.target||bc.srcElement;if(bc.type==="click"){if(be){aN(be)}}else{if(bc.type==="mousedown"){if((bd===1||bd===2)&&be){az=bd; -W=be}else{az=W=null}}else{if(bc.type==="mouseup"){if(bd===az&&be===W){aN(be)}az=W=null}}}}function aM(bd,bc){if(bc){t(bd,"mouseup",ba,false);t(bd,"mousedown",ba,false)}else{t(bd,"click",ba,false)}}function av(bd){if(!aL){aL=true;var be,bc=af(P,"ignore"),bf=d.links;if(bf){for(be=0;be<bf.length;be++){if(!bc.test(bf[be].className)){aM(bf[be],bd)}}}}}function a5(){var bc,bd,be={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(j.userAgent))){if(j.mimeTypes&&j.mimeTypes.length){for(bc in be){if(Object.prototype.hasOwnProperty.call(be,bc)){bd=j.mimeTypes[be[bc]];a0[bc]=(bd&&bd.enabledPlugin)?"1":"0"}}}if(typeof navigator.javaEnabled!=="unknown"&&b(j.javaEnabled)&&j.javaEnabled()){a0.java="1"}if(a(H.GearsFactory)){a0.gears="1"}a0.cookie=N()}a0.res=v.width+"x"+v.height -}a5();aA();return{getVisitorId:function(){return(J())[1]},getVisitorInfo:function(){return J()},getAttributionInfo:function(){return i()},getAttributionCampaignName:function(){return i()[0]},getAttributionCampaignKeyword:function(){return i()[1]},getAttributionReferrerTimestamp:function(){return i()[2]},getAttributionReferrerUrl:function(){return i()[3]},setTrackerUrl:function(bc){L=bc},setSiteId:function(bc){aZ=bc},setCustomData:function(bc,bd){if(o(bc)){S=bc}else{if(!S){S=[]}S[bc]=bd}},getCustomData:function(){return S},setCustomVariable:function(bd,bc,bg,be){var bf;if(!b(be)){be="visit"}if(bd>0){bc=b(bc)&&!r(bc)?String(bc):bc;bg=b(bg)&&!r(bg)?String(bg):bg;bf=[bc.slice(0,a3),bg.slice(0,a3)];if(be==="visit"||be===2){K();O[bd]=bf}else{if(be==="page"||be===3){ay[bd]=bf}}}},getCustomVariable:function(bd,be){var bc;if(!b(be)){be="visit"}if(be==="page"||be===3){bc=ay[bd]}else{if(be==="visit"||be===2){K();bc=O[bd]}}if(!b(bc)||(bc&&bc[0]==="")){return false}return bc},deleteCustomVariable:function(bc,bd){if(this.getCustomVariable(bc,bd)){this.setCustomVariable(bc,"","",bd) -}},setLinkTrackingTimer:function(bc){aD=bc},setDownloadExtensions:function(bc){al=bc},addDownloadExtensions:function(bc){al+="|"+bc},setDomains:function(bc){aE=r(bc)?[bc]:bc;aE.push(aV)},setIgnoreClasses:function(bc){P=r(bc)?[bc]:bc},setRequestMethod:function(bc){aG=bc||"GET"},setReferrerUrl:function(bc){aI=bc},setCustomUrl:function(bc){at=aU(a9,bc)},setDocumentTitle:function(bc){aj=bc},setDownloadClasses:function(bc){ax=r(bc)?[bc]:bc},setLinkClasses:function(bc){ac=r(bc)?[bc]:bc},setCampaignNameKey:function(bc){an=r(bc)?[bc]:bc},setCampaignKeywordKey:function(bc){ai=r(bc)?[bc]:bc},discardHashTag:function(bc){R=bc},setCookieNamePrefix:function(bc){a7=bc;O=X()},setCookieDomain:function(bc){V=m(bc);aA()},setCookiePath:function(bc){a8=bc;aA()},setVisitorCookieTimeout:function(bc){aa=bc*1000},setSessionCookieTimeout:function(bc){ab=bc*1000},setReferralCookieTimeout:function(bc){au=bc*1000},setConversionAttributionFirstReferrer:function(bc){ar=bc},disableCookies:function(){T=true;a0.cookie="0" -},setDoNotTrack:function(bd){var bc=j.doNotTrack||j.msDoNotTrack;a2=bd&&(bc==="yes"||bc==="1");if(a2){this.disableCookies()}},addListener:function(bd,bc){aM(bd,bc)},enableLinkTracking:function(bc){if(h){av(bc)}else{C.push(function(){av(bc)})}},setHeartBeatTimer:function(be,bd){var bc=new Date();Q=bc.getTime()+be*1000;ae=bd*1000},killFrame:function(){if(H.location!==H.top.location){H.top.location=H.location}},redirectFile:function(bc){if(H.location.protocol==="file:"){H.location=bc}},setCountPreRendered:function(bc){ap=bc},trackGoal:function(bc,be,bd){ag(function(){aB(bc,be,bd)})},trackLink:function(bd,bc,be){ag(function(){aX(bd,bc,be)})},trackPageView:function(bc,bd){ag(function(){aw(bc,bd)})},trackSiteSearch:function(bc,be,bd){ag(function(){ah(bc,be,bd)})},setEcommerceView:function(bf,bc,be,bd){if(!b(be)||!be.length){be=""}else{if(be instanceof Array){be=JSON2.stringify(be)}}ay[5]=["_pkc",be];if(b(bd)&&String(bd).length){ay[2]=["_pkp",bd]}if((!b(bf)||!bf.length)&&(!b(bc)||!bc.length)){return -}if(b(bf)&&bf.length){ay[3]=["_pks",bf]}if(!b(bc)||!bc.length){bc=""}ay[4]=["_pkn",bc]},addEcommerceItem:function(bg,bc,be,bd,bf){if(bg.length){aO[bg]=[bg,bc,be,bd,bf]}},trackEcommerceOrder:function(bc,bg,bf,be,bd,bh){aS(bc,bg,bf,be,bd,bh)},trackEcommerceCartUpdate:function(bc){a6(bc)}}}function c(){return{push:z}}t(H,"beforeunload",B,false);x();Date.prototype.getTimeAlias=Date.prototype.getTime;G=new F();for(D=0;D<_paq.length;D++){z(_paq[D])}_paq=new c();return{addPlugin:function(i,J){w[i]=J},getTracker:function(i,J){return new F(i,J)},getAsyncTracker:function(){return G}}}()),piwik_track,piwik_log=function(b,f,d,g){function a(h){try{return eval("piwik_"+h)}catch(i){}return}var c,e=Piwik.getTracker(d,f);e.setDocumentTitle(b);e.setCustomData(g);c=a("tracker_pause");if(c){e.setLinkTrackingTimer(c)}c=a("download_extensions");if(c){e.setDownloadExtensions(c)}c=a("hosts_alias");if(c){e.setDomains(c)}c=a("ignore_classes");if(c){e.setIgnoreClasses(c)}e.trackPageView();if(a("install_tracker")){piwik_track=function(i,k,j,h){e.setSiteId(k); +return typeof f==="function"?m({"":n},""):n}throw new SyntaxError("JSON.parse")}}}());var _paq=_paq||[],Piwik=Piwik||(function(){var f,a={},o=document,d=navigator,A=screen,w=window,l=false,u=[],h=w.encodeURIComponent,v=w.decodeURIComponent,e=unescape,B,D;function q(i){return"undefined"!==typeof i}function m(i){return typeof i==="function"}function z(i){return typeof i==="object"}function j(i){return typeof i==="string"||i instanceof String}function G(){var L,N,M;for(L=0;L<arguments.length;L+=1){M=arguments[L];N=M.shift();if(j(N)){B[N].apply(B,M)}else{N.apply(B,M)}}}function J(N,M,L,i){if(N.addEventListener){N.addEventListener(M,L,i);return true}if(N.attachEvent){return N.attachEvent("on"+M,L)}N["on"+M]=L}function E(M,P){var L="",O,N;for(O in a){if(Object.prototype.hasOwnProperty.call(a,O)){N=a[O][M];if(m(N)){L+=N(P)}}}return L}function H(){var i;E("unload");if(f){do{i=new Date()}while(i.getTimeAlias()<f)}}function F(){var L;if(!l){l=true;E("load");for(L=0;L<u.length;L++){u[L]()}}return true +}function k(){var L;if(o.addEventListener){J(o,"DOMContentLoaded",function i(){o.removeEventListener("DOMContentLoaded",i,false);F()})}else{if(o.attachEvent){o.attachEvent("onreadystatechange",function i(){if(o.readyState==="complete"){o.detachEvent("onreadystatechange",i);F()}});if(o.documentElement.doScroll&&w===w.top){(function i(){if(!l){try{o.documentElement.doScroll("left")}catch(M){setTimeout(i,0);return}F()}}())}}}if((new RegExp("WebKit")).test(d.userAgent)){L=setInterval(function(){if(l||/loaded|complete/.test(o.readyState)){clearInterval(L);F()}},10)}J(w,"load",F,false)}function r(){var i="";try{i=w.top.document.referrer}catch(M){if(w.parent){try{i=w.parent.document.referrer}catch(L){i=""}}}if(i===""){i=o.referrer}return i}function g(i){var M=new RegExp("^([a-z]+):"),L=M.exec(i);return L?L[1]:null}function c(i){var M=new RegExp("^(?:(?:https?|ftp):)/*(?:[^@]+@)?([^:/#]+)"),L=M.exec(i);return L?L[1]:i}function y(M,L){var P=new RegExp("^(?:https?|ftp)(?::/*(?:[^?]+)[?])([^#]+)"),O=P.exec(M),N=new RegExp("(?:^|&)"+L+"=([^&]*)"),i=O?N.exec(O[1]):0; +return i?v(i[1]):""}function n(i){return e(h(i))}function I(ab){var N=function(W,i){return(W<<i)|(W>>>(32-i))},ac=function(ai){var ah="",ag,W;for(ag=7;ag>=0;ag--){W=(ai>>>(ag*4))&15;ah+=W.toString(16)}return ah},Q,ae,ad,M=[],U=1732584193,S=4023233417,R=2562383102,P=271733878,O=3285377520,aa,Z,Y,X,V,af,L,T=[];ab=n(ab);L=ab.length;for(ae=0;ae<L-3;ae+=4){ad=ab.charCodeAt(ae)<<24|ab.charCodeAt(ae+1)<<16|ab.charCodeAt(ae+2)<<8|ab.charCodeAt(ae+3);T.push(ad)}switch(L&3){case 0:ae=2147483648;break;case 1:ae=ab.charCodeAt(L-1)<<24|8388608;break;case 2:ae=ab.charCodeAt(L-2)<<24|ab.charCodeAt(L-1)<<16|32768;break;case 3:ae=ab.charCodeAt(L-3)<<24|ab.charCodeAt(L-2)<<16|ab.charCodeAt(L-1)<<8|128;break}T.push(ae);while((T.length&15)!==14){T.push(0)}T.push(L>>>29);T.push((L<<3)&4294967295);for(Q=0;Q<T.length;Q+=16){for(ae=0;ae<16;ae++){M[ae]=T[Q+ae]}for(ae=16;ae<=79;ae++){M[ae]=N(M[ae-3]^M[ae-8]^M[ae-14]^M[ae-16],1)}aa=U;Z=S;Y=R;X=P;V=O;for(ae=0;ae<=19;ae++){af=(N(aa,5)+((Z&Y)|(~Z&X))+V+M[ae]+1518500249)&4294967295; +V=X;X=Y;Y=N(Z,30);Z=aa;aa=af}for(ae=20;ae<=39;ae++){af=(N(aa,5)+(Z^Y^X)+V+M[ae]+1859775393)&4294967295;V=X;X=Y;Y=N(Z,30);Z=aa;aa=af}for(ae=40;ae<=59;ae++){af=(N(aa,5)+((Z&Y)|(Z&X)|(Y&X))+V+M[ae]+2400959708)&4294967295;V=X;X=Y;Y=N(Z,30);Z=aa;aa=af}for(ae=60;ae<=79;ae++){af=(N(aa,5)+(Z^Y^X)+V+M[ae]+3395469782)&4294967295;V=X;X=Y;Y=N(Z,30);Z=aa;aa=af}U=(U+aa)&4294967295;S=(S+Z)&4294967295;R=(R+Y)&4294967295;P=(P+X)&4294967295;O=(O+V)&4294967295}af=ac(U)+ac(S)+ac(R)+ac(P)+ac(O);return af.toLowerCase()}function C(M,i,L){if(M==="translate.googleusercontent.com"){if(L===""){L=i}i=y(i,"u");M=c(i)}else{if(M==="cc.bingj.com"||M==="webcache.googleusercontent.com"||M.slice(0,5)==="74.6."){i=o.links[0].href;M=c(i)}}return[M,i,L]}function s(L){var i=L.length;if(L.charAt(--i)==="."){L=L.slice(0,i)}if(L.slice(0,2)==="*."){L=L.slice(1)}return L}function K(L){if(!j(L)){L=L.text||"";var i=o.getElementsByTagName("title");if(i&&q(i[0])){L=i[0].text}}return L}function x(O,S){var U="Piwik_Insight";var R=o.referrer; +var i=O;i=i.substring(0,i.length-9);i.substring(i.substring(0,7)==="http://"?7:8,i.length);R.substring(R.substring(0,7)==="http://"?7:8,R.length);if(R.substring(0,i.length)===i){var M=new RegExp("^"+i+"index\\.php\\?module=Insight&action=startInsightSession&idsite=([0-9]+)&period=([^&]+)&date=([^&]+)$");var N=R.match(M);if(N){var P=N[1];if(parseInt(P,10)!==S){return false}var Q=N[2];var L=N[3];window.name=U+"###"+Q+"###"+L}}var T=w.name.split("###");return T.length===3&&T[0]===U}function b(M,S){var T=window.name.split("###");var R=M.substring(0,M.length-9);var N=T[1];var i=T[2];var L=false;var O=function(){if(!L){L=true;Piwik_Insight_Client.initialize(R,S,N,i)}};var Q=document.createElement("script");Q.type="text/javascript";Q.onreadystatechange=function(){if(this.readyState==="loaded"||this.readyState==="complete"){O()}};Q.onload=O;Q.src=R+"plugins/Insight/client/client.js";var P=document.getElementsByTagName("head")[0];P.appendChild(Q)}function t(af,aE){var O=C(o.domain,w.location.href,r()),aX=s(O[0]),bb=O[1],aK=O[2],aI="GET",N=af||"",a1=aE||"",av,al=o.title,an="7z|aac|ar[cj]|as[fx]|avi|bin|csv|deb|dmg|doc|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mp(2|3|4|e?g)|mov(ie)?|ms[ip]|od[bfgpst]|og[gv]|pdf|phps|png|ppt|qtm?|ra[mr]?|rpm|sea|sit|tar|t?bz2?|tgz|torrent|txt|wav|wm[av]|wpd||xls|xml|z|zip",aG=[aX],R=[],az=[],ae=[],aF=500,S,ag,T,U,ap=["pk_campaign","piwik_campaign","utm_campaign","utm_source","utm_medium"],ak=["pk_kwd","piwik_kwd","utm_term"],a9="_pk_",X,ba,V=false,a4,ar,au,ac=63072000000,ad=1800000,aw=15768000000,aa=o.location.protocol==="https",Q=false,aA={},a5=200,aQ={},a2={},aN=false,aL=false,aJ,aB,Y,ao=I,aM,at; +function aS(bk,bh,bg,bj,bf,bi){if(V){return}var be;if(bg){be=new Date();be.setTime(be.getTime()+bg)}o.cookie=bk+"="+h(bh)+(bg?";expires="+be.toGMTString():"")+";path="+(bj||"/")+(bf?";domain="+bf:"")+(bi?";secure":"")}function ab(bg){if(V){return 0}var be=new RegExp("(^|;)[ ]*"+bg+"=([^;]*)"),bf=be.exec(o.cookie);return bf?v(bf[2]):0}function a6(be){var bf;if(T){bf=new RegExp("#.*");return be.replace(bf,"")}return be}function aW(bg,be){var bh=g(be),bf;if(bh){return be}if(be.slice(0,1)==="/"){return g(bg)+"://"+c(bg)+be}bg=a6(bg);if((bf=bg.indexOf("?"))>=0){bg=bg.slice(0,bf)}if((bf=bg.lastIndexOf("/"))!==bg.length-1){bg=bg.slice(0,bf+1)}return bg+be}function aH(bh){var bf,be,bg;for(bf=0;bf<aG.length;bf++){be=s(aG[bf].toLowerCase());if(bh===be){return true}if(be.slice(0,1)==="."){if(bh===be.slice(1)){return true}bg=bh.length-be.length;if((bg>0)&&(bh.slice(bg)===be)){return true}}}return false}function bd(be){var bf=new Image(1,1);bf.onload=function(){};bf.src=N+(N.indexOf("?")<0?"?":"&")+be +}function aT(be){try{var bg=w.XMLHttpRequest?new w.XMLHttpRequest():w.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;bg.open("POST",N,true);bg.onreadystatechange=function(){if(this.readyState===4&&this.status!==200){bd(be)}};bg.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");bg.send(be)}catch(bf){bd(be)}}function aq(bg,bf){var be=new Date();if(!a4){if(aI==="POST"){aT(bg)}else{bd(bg)}f=be.getTime()+bf}}function aR(be){return a9+be+"."+a1+"."+aM}function P(){if(V){return"0"}if(!q(d.cookieEnabled)){var be=aR("testcookie");aS(be,"1");return ab(be)==="1"?"1":"0"}return d.cookieEnabled?"1":"0"}function aC(){aM=ao((X||aX)+(ba||"/")).slice(0,4)}function Z(){var bf=aR("cvar"),be=ab(bf);if(be.length){be=JSON2.parse(be);if(z(be)){return be}}return{}}function M(){if(Q===false){Q=Z()}}function a0(){var be=new Date();aJ=be.getTime()}function W(bi,bf,be,bh,bg,bj){aS(aR("id"),bi+"."+bf+"."+be+"."+bh+"."+bg+"."+bj,ac,ba,X,aa)}function L(){var bf=new Date(),be=Math.round(bf.getTime()/1000),bh=ab(aR("id")),bg; +if(bh){bg=bh.split(".");bg.unshift("0")}else{if(!at){at=ao((d.userAgent||"")+(d.platform||"")+JSON2.stringify(a2)+be).slice(0,16)}bg=["1",at,be,0,be,"",""]}return bg}function i(){var be=ab(aR("ref"));if(be.length){try{be=JSON2.parse(be);if(z(be)){return be}}catch(bf){}}return["","",0,""]}function am(bg,bF,bG,bi){var bD,bf=new Date(),bo=Math.round(bf.getTime()/1000),bI,bE,bk,bw,bA,bn,by,bl,bC,bj=1024,bJ,br,bz=Q,bu=aR("id"),bp=aR("ses"),bq=aR("ref"),bK=aR("cvar"),bx=L(),bt=ab(bp),bB=i(),bH=av||bb,bm,be;if(V){V=false;aS(bu,"",-86400,ba,X);aS(bp,"",-86400,ba,X);aS(bK,"",-86400,ba,X);aS(bq,"",-86400,ba,X);V=true}if(a4){return""}bI=bx[0];bE=bx[1];bw=bx[2];bk=bx[3];bA=bx[4];bn=bx[5];if(!q(bx[6])){bx[6]=""}by=bx[6];if(!q(bi)){bi=""}var bs=document.characterSet||document.charset;if(!bs||bs.toLowerCase()==="utf-8"){bs=null}bm=bB[0];be=bB[1];bl=bB[2];bC=bB[3];if(!bt){bk++;bn=bA;if(!au||!bm.length){for(bD in ap){if(Object.prototype.hasOwnProperty.call(ap,bD)){bm=y(bH,ap[bD]);if(bm.length){break}}}for(bD in ak){if(Object.prototype.hasOwnProperty.call(ak,bD)){be=y(bH,ak[bD]); +if(be.length){break}}}}bJ=c(aK);br=bC.length?c(bC):"";if(bJ.length&&!aH(bJ)&&(!au||!br.length||aH(br))){bC=aK}if(bC.length||bm.length){bl=bo;bB=[bm,be,bl,a6(bC.slice(0,bj))];aS(bq,JSON2.stringify(bB),aw,ba,X,aa)}}bg+="&idsite="+a1+"&rec=1&r="+String(Math.random()).slice(2,8)+"&h="+bf.getHours()+"&m="+bf.getMinutes()+"&s="+bf.getSeconds()+"&url="+h(a6(bH))+(aK.length?"&urlref="+h(a6(aK)):"")+"&_id="+bE+"&_idts="+bw+"&_idvc="+bk+"&_idn="+bI+(bm.length?"&_rcn="+h(bm):"")+(be.length?"&_rck="+h(be):"")+"&_refts="+bl+"&_viewts="+bn+(String(by).length?"&_ects="+by:"")+(String(bC).length?"&_ref="+h(a6(bC.slice(0,bj))):"")+(bs?"&cs="+h(bs):"");var bh=JSON2.stringify(aA);if(bh.length>2){bg+="&cvar="+h(bh)}for(bD in a2){if(Object.prototype.hasOwnProperty.call(a2,bD)){bg+="&"+bD+"="+a2[bD]}}if(bF){bg+="&data="+h(JSON2.stringify(bF))}else{if(U){bg+="&data="+h(JSON2.stringify(U))}}if(Q){var bv=JSON2.stringify(Q);if(bv.length>2){bg+="&_cvar="+h(bv)}for(bD in bz){if(Object.prototype.hasOwnProperty.call(bz,bD)){if(Q[bD][0]===""||Q[bD][1]===""){delete Q[bD] +}}}aS(bK,JSON2.stringify(Q),ad,ba,X,aa)}W(bE,bw,bk,bo,bn,q(bi)&&String(bi).length?bi:by);aS(bp,"*",ad,ba,X,aa);bg+=E(bG);return bg}function aV(bh,bg,bl,bi,be,bo){var bj="idgoal=0",bk,bf=new Date(),bm=[],bn;if(String(bh).length){bj+="&ec_id="+h(bh);bk=Math.round(bf.getTime()/1000)}bj+="&revenue="+bg;if(String(bl).length){bj+="&ec_st="+bl}if(String(bi).length){bj+="&ec_tx="+bi}if(String(be).length){bj+="&ec_sh="+be}if(String(bo).length){bj+="&ec_dt="+bo}if(aQ){for(bn in aQ){if(Object.prototype.hasOwnProperty.call(aQ,bn)){if(!q(aQ[bn][1])){aQ[bn][1]=""}if(!q(aQ[bn][2])){aQ[bn][2]=""}if(!q(aQ[bn][3])||String(aQ[bn][3]).length===0){aQ[bn][3]=0}if(!q(aQ[bn][4])||String(aQ[bn][4]).length===0){aQ[bn][4]=1}bm.push(aQ[bn])}}bj+="&ec_items="+h(JSON2.stringify(bm))}bj=am(bj,U,"ecommerce",bk);aq(bj,aF)}function aU(be,bi,bh,bg,bf,bj){if(String(be).length&&q(bi)){aV(be,bi,bh,bg,bf,bj)}}function a8(be){if(q(be)){aV("",be,"","","","")}}function ay(bh,bi){var be=new Date(),bg=am("action_name="+h(K(bh||al)),bi,"log"); +aq(bg,aF);if(S&&ag&&!aL){aL=true;J(o,"click",a0);J(o,"mouseup",a0);J(o,"mousedown",a0);J(o,"mousemove",a0);J(o,"mousewheel",a0);J(w,"DOMMouseScroll",a0);J(w,"scroll",a0);J(o,"keypress",a0);J(o,"keydown",a0);J(o,"keyup",a0);J(w,"resize",a0);J(w,"focus",a0);J(w,"blur",a0);aJ=be.getTime();setTimeout(function bf(){var bj=new Date(),bk;if((aJ+ag)>bj.getTime()){if(S<bj.getTime()){bk=am("ping=1",bi,"ping");aq(bk,aF)}setTimeout(bf,ag)}},ag)}}function aj(be,bh,bf,bi){var bg=am("search="+h(be)+(bh?"&search_cat="+h(bh):"")+(q(bf)?"&search_count="+bf:""),bi,"sitesearch");aq(bg,aF)}function aD(be,bh,bg){var bf=am("idgoal="+be+(bh?"&revenue="+bh:""),bg,"goal");aq(bf,aF)}function aZ(bf,be,bh){var bg=am(be+"="+h(a6(bf)),bh,"link");aq(bg,aF)}function a3(bf,be){if(bf!==""){return bf+be.charAt(0).toUpperCase()+be.slice(1)}return be}function ai(bj){var bi,be,bh=["","webkit","ms","moz"],bg;if(!ar){for(be=0;be<bh.length;be++){bg=bh[be];if(Object.prototype.hasOwnProperty.call(o,a3(bg,"hidden"))){if(o[a3(bg,"visibilityState")]==="prerender"){bi=true +}break}}}if(bi){J(o,bg+"visibilitychange",function bf(){o.removeEventListener(bg+"visibilitychange",bf,false);bj()});return}bj()}function ah(bg,bf){var bh,be="(^| )(piwik[_-]"+bf;if(bg){for(bh=0;bh<bg.length;bh++){be+="|"+bg[bh]}}be+=")( |$)";return new RegExp(be)}function aY(bh,be,bi){var bg=ah(az,"download"),bf=ah(ae,"link"),bj=new RegExp("\\.("+an+")([?&#]|$)","i");return bf.test(bh)?"link":(bg.test(bh)||bj.test(be)?"download":(bi?0:"link"))}function aP(bj){var bh,bf,be;while((bh=bj.parentNode)!==null&&q(bh)&&((bf=bj.tagName.toUpperCase())!=="A"&&bf!=="AREA")){bj=bh}if(q(bj.href)){var bk=bj.hostname||c(bj.href),bl=bk.toLowerCase(),bg=bj.href.replace(bk,bl),bi=new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto):","i");if(!bi.test(bg)){be=aY(bj.className,bg,aH(bl));if(be){bg=e(bg);aZ(bg,be)}}}}function bc(be){var bf,bg;be=be||w.event;bf=be.which||be.button;bg=be.target||be.srcElement;if(be.type==="click"){if(bg){aP(bg)}}else{if(be.type==="mousedown"){if((bf===1||bf===2)&&bg){aB=bf; +Y=bg}else{aB=Y=null}}else{if(be.type==="mouseup"){if(bf===aB&&bg===Y){aP(bg)}aB=Y=null}}}}function aO(bf,be){if(be){J(bf,"mouseup",bc,false);J(bf,"mousedown",bc,false)}else{J(bf,"click",bc,false)}}function ax(bf){if(!aN){aN=true;var bg,be=ah(R,"ignore"),bh=o.links;if(bh){for(bg=0;bg<bh.length;bg++){if(!be.test(bh[bg].className)){aO(bh[bg],bf)}}}}}function a7(){var be,bf,bg={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(d.userAgent))){if(d.mimeTypes&&d.mimeTypes.length){for(be in bg){if(Object.prototype.hasOwnProperty.call(bg,be)){bf=d.mimeTypes[bg[be]];a2[be]=(bf&&bf.enabledPlugin)?"1":"0"}}}if(typeof navigator.javaEnabled!=="unknown"&&q(d.javaEnabled)&&d.javaEnabled()){a2.java="1"}if(m(w.GearsFactory)){a2.gears="1"}a2.cookie=P()}a2.res=A.width+"x"+A.height +}a7();aC();return{getVisitorId:function(){return(L())[1]},getVisitorInfo:function(){return L()},getAttributionInfo:function(){return i()},getAttributionCampaignName:function(){return i()[0]},getAttributionCampaignKeyword:function(){return i()[1]},getAttributionReferrerTimestamp:function(){return i()[2]},getAttributionReferrerUrl:function(){return i()[3]},setTrackerUrl:function(be){N=be},setSiteId:function(be){a1=be},setCustomData:function(be,bf){if(z(be)){U=be}else{if(!U){U=[]}U[be]=bf}},getCustomData:function(){return U},setCustomVariable:function(bf,be,bi,bg){var bh;if(!q(bg)){bg="visit"}if(bf>0){be=q(be)&&!j(be)?String(be):be;bi=q(bi)&&!j(bi)?String(bi):bi;bh=[be.slice(0,a5),bi.slice(0,a5)];if(bg==="visit"||bg===2){M();Q[bf]=bh}else{if(bg==="page"||bg===3){aA[bf]=bh}}}},getCustomVariable:function(bf,bg){var be;if(!q(bg)){bg="visit"}if(bg==="page"||bg===3){be=aA[bf]}else{if(bg==="visit"||bg===2){M();be=Q[bf]}}if(!q(be)||(be&&be[0]==="")){return false}return be},deleteCustomVariable:function(be,bf){if(this.getCustomVariable(be,bf)){this.setCustomVariable(be,"","",bf) +}},setLinkTrackingTimer:function(be){aF=be},setDownloadExtensions:function(be){an=be},addDownloadExtensions:function(be){an+="|"+be},setDomains:function(be){aG=j(be)?[be]:be;aG.push(aX)},setIgnoreClasses:function(be){R=j(be)?[be]:be},setRequestMethod:function(be){aI=be||"GET"},setReferrerUrl:function(be){aK=be},setCustomUrl:function(be){av=aW(bb,be)},setDocumentTitle:function(be){al=be},setDownloadClasses:function(be){az=j(be)?[be]:be},setLinkClasses:function(be){ae=j(be)?[be]:be},setCampaignNameKey:function(be){ap=j(be)?[be]:be},setCampaignKeywordKey:function(be){ak=j(be)?[be]:be},discardHashTag:function(be){T=be},setCookieNamePrefix:function(be){a9=be;Q=Z()},setCookieDomain:function(be){X=s(be);aC()},setCookiePath:function(be){ba=be;aC()},setVisitorCookieTimeout:function(be){ac=be*1000},setSessionCookieTimeout:function(be){ad=be*1000},setReferralCookieTimeout:function(be){aw=be*1000},setConversionAttributionFirstReferrer:function(be){au=be},disableCookies:function(){V=true;a2.cookie="0" +},setDoNotTrack:function(bf){var be=d.doNotTrack||d.msDoNotTrack;a4=bf&&(be==="yes"||be==="1");if(a4){this.disableCookies()}},addListener:function(bf,be){aO(bf,be)},enableLinkTracking:function(be){if(l){ax(be)}else{u.push(function(){ax(be)})}},setHeartBeatTimer:function(bg,bf){var be=new Date();S=be.getTime()+bg*1000;ag=bf*1000},killFrame:function(){if(w.location!==w.top.location){w.top.location=w.location}},redirectFile:function(be){if(w.location.protocol==="file:"){w.location=be}},setCountPreRendered:function(be){ar=be},trackGoal:function(be,bg,bf){ai(function(){aD(be,bg,bf)})},trackLink:function(bf,be,bg){ai(function(){aZ(bf,be,bg)})},trackPageView:function(be,bf){if(x(N,a1)){ai(function(){b(N,a1)})}else{ai(function(){ay(be,bf)})}},trackSiteSearch:function(be,bg,bf){ai(function(){aj(be,bg,bf)})},setEcommerceView:function(bh,be,bg,bf){if(!q(bg)||!bg.length){bg=""}else{if(bg instanceof Array){bg=JSON2.stringify(bg)}}aA[5]=["_pkc",bg];if(q(bf)&&String(bf).length){aA[2]=["_pkp",bf]}if((!q(bh)||!bh.length)&&(!q(be)||!be.length)){return +}if(q(bh)&&bh.length){aA[3]=["_pks",bh]}if(!q(be)||!be.length){be=""}aA[4]=["_pkn",be]},addEcommerceItem:function(bi,be,bg,bf,bh){if(bi.length){aQ[bi]=[bi,be,bg,bf,bh]}},trackEcommerceOrder:function(be,bi,bh,bg,bf,bj){aU(be,bi,bh,bg,bf,bj)},trackEcommerceCartUpdate:function(be){a8(be)}}}function p(){return{push:G}}J(w,"beforeunload",H,false);k();Date.prototype.getTimeAlias=Date.prototype.getTime;B=new t();for(D=0;D<_paq.length;D++){G(_paq[D])}_paq=new p();return{addPlugin:function(i,L){a[i]=L},getTracker:function(i,L){return new t(i,L)},getAsyncTracker:function(){return B}}}()),piwik_track,piwik_log=function(b,f,d,g){function a(h){try{return eval("piwik_"+h)}catch(i){}return}var c,e=Piwik.getTracker(d,f);e.setDocumentTitle(b);e.setCustomData(g);c=a("tracker_pause");if(c){e.setLinkTrackingTimer(c)}c=a("download_extensions");if(c){e.setDownloadExtensions(c)}c=a("hosts_alias");if(c){e.setDomains(c)}c=a("ignore_classes");if(c){e.setIgnoreClasses(c)}e.trackPageView();if(a("install_tracker")){piwik_track=function(i,k,j,h){e.setSiteId(k); e.setTrackerUrl(j);e.trackLink(i,h)};e.enableLinkTracking()}};
\ No newline at end of file |