_cntr_test={pd:"-.-TOM-.-",cd:1};function sent_data_test(B){var A=document.createElement("img");A.style.display="none";A.src=B;A.onload=function(){}}function _tomoktest(E){var G="tom_test";var C="!";var P=1800;var O=0;var M={};var N=0;var F=function(){if(O){return false}if(N==1){return }N=1;var Q;try{Q=J()}catch(R){Q=send_url_test+"?&error="+escape(R)}sent_data_test(Q)};function J(){var R="";var Q="";R=encodeURIComponent(JSON.stringify(E));Q=send_url_test+R;return Q}function L(){var c=["client_key","all_pv","users","start_time","click_time","current_pv","last_visit_time"];var V={};var X=[];var d=W(G);var Q=d.split("!");for(var Y=0;Y<c.length;Y++){V[c[Y]]=Y;X[Y]=Q[Y]}function S(){var f="";for(var e=0;e<c.length;e++){if(undefined==X[e]||"undefined"==X[e]){X[e]=""}f=f+X[e]+C}return f}function R(e,f){if(isNaN(V[e])){return }X[V[e]]=f;b();return f}function Z(e){R(e,0)}function U(e){if(isNaN(V[e])){return""}return X[V[e]]}function b(){document.cookie=G+"="+S()+";expires="+(new Date((new Date()).valueOf()+86400000000)).toGMTString()+";path=/;domain="+function(){var e=document.domain.split(".");if(e.length>=2){return e[e.length-2]+"."+e[e.length-1]}else{return document.domain}}()}function W(h){var f=document.cookie.split("; ");for(var e=0;e<f.length;e++){var g=f[e].split("=");if(g[0]==h){return g[1]}}return""}function a(){return c.length}function T(e){return c[e]}this.len=a;this.k=T;this.clear=Z;this.getValue=U;this.setValue=R;this.getStr=S;this.getc=W}function D(){return parseInt((new Date()).getTime()/1000)}function H(Q){Q=parseInt(Q);if(isNaN(Q)){return 0}return Q}function B(){var R="";var Q="";var S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(;Q<9;Q++){R+=S.charAt(parseInt(Math.random()*62))}return R}if(E.cd==""||!parseInt(E.cd)){O=1;return false}else{M["cd"]=E.cd}var I=_tomoktest.c=new L();if(!I.getValue("client_key")){I.setValue("client_key",B())}all_pv=H(I.getValue("all_pv"));if(isNaN(all_pv)){all_pv=0}I.setValue("all_pv",1+all_pv);if(D()-H(I.getValue("click_time"))>P){I.setValue("users",H(I.getValue("users"))+1);I.setValue("last_visit_time",H(I.getValue("click_time")));I.setValue("current_pv","")}if(H(I.getValue("start_time"))==0){I.setValue("start_time",D())}I.setValue("click_time",D());I.setValue("current_pv",1+H(I.getValue("current_pv")));var K=I.getStr();var A=K.split("!");E.ck=A[0];E.ap=A[1];E.uc=A[2];E.st=A[3];E.ct=A[4];E.cp=A[5];E.lv=A[6];E.tz=0-(new Date()).getTimezoneOffset()/60;E.rf=document.referrer;E.sl=window.screenLeft!==undefined?window.screenLeft:window.screenX;E.sp=window.screenTop!==undefined?window.screenTop:window.screenY;E.sw=screen.width;E.sh=screen.Height;E.ch=screen.colorDepth;E.aw=screen.availWidth;E.ah=screen.availHeight;E.ct=D();E.tl="allowframe";E["ur"]=I.getc("TOM_SESSION_USERNAME");this.newid=B;this.run=F}var JSON={stringify:function(B){var A=[];function D(E){A[A.length]=E}function C(E){var J,H,F,G;switch(typeof E){case"object":if(E){if(E instanceof Array){D("[");F=A.length;for(H=0;H<E.length;H+=1){G=E[H];if(typeof G!="undefined"&&typeof G!="function"){if(F<A.length){D(",")}C(G)}}D("]");return }else{if(typeof E.toString!="undefined"){D("{");F=A.length;for(H in E){G=E[H];if(E.hasOwnProperty(H)&&typeof G!="undefined"&&typeof G!="function"){if(F<A.length){D(",")}C(H);D(":");C(G)}}return D("}")}}}D("null");return ;case"number":D(isFinite(E)?+E:"null");return ;case"string":F=E.length;D('"');for(H=0;H<F;H+=1){J=E.charAt(H);if(J.charCodeAt(0)>255){var I="\\";I=I.concat(escape(J).substr(1).toLowerCase());D(I)}else{if(J>=" "){if(J=="\\"||J=='"'){D("\\")}D(J)}else{switch(J){case"\b":D("\\b");break;case"\f":D("\\f");break;case"\n":D("\\n");break;case"\r":D("\\r");break;case"\t":D("\\t");break;default:J=J.charCodeAt();D("\\u00"+Math.floor(J/16).toString(16)+(J%16).toString(16))}}}}D('"');return ;case"boolean":D(String(E));return ;default:D("null");return }}C(B);return A.join("")}};var __si_test;function _cntr_stat_test(C,B){send_url_test=(typeof B!="undefined"&&B!="")?B:"http://xtrack.tomonline-inc.com/";if(__si_test==1){return }try{var A=new _tomoktest(C);A.run()}catch(D){}__si_test=1}_cntr_stat_test(_cntr_test)
