(function(){function p(r){var A="$Rev: 2230 $";r._nonsecure_url="http://counter.spylog.com/cnt";r._secure_url="https://counter.spylog.com/cnt";var y=document;var t=navigator;var z=window;var B=screen;if(!z.spylog_seen){z.spylog_seen={}}if(z.spylog_seen[r.counter]){return}z.spylog_seen[r.counter]=true;r._cookie=1;if(!y.cookie){y.cookie="spylog_test=1; path=/";r._cookie=y.cookie?1:0}r._navigator=(t.appName.toLowerCase().substring(0,2)=="mi")?0:1;if(parent!=z){try{r._referrer=parent.document.referrer||""}catch(x){}}if(r._referrer){r._frame_referrer=y.referrer||""}else{r._referrer=y.referrer||""}r._location=z.location.href;r._title=y.title;r._frame=(parent.frames&&parent.frames.length>0)?1:0;r._flash="";if(t.plugins&&t.plugins["Shockwave Flash"]){r._flash=t.plugins["Shockwave Flash"].description.split(" ")[2]}else{if(z.ActiveXObject){for(var u=10;u>=2;u--){try{var v=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+u);if(v){r._flash=u+".0";break}}catch(x){}}}}if(B.colorDepth){r._color_depth=B.colorDepth}else{if(B.pixelDepth){r._color_depth=B.pixelDepth}}if(B.width&&B.height){r._screen=B.width+"x"+B.height}r._java_enabled=(t.javaEnabled()?"Y":"N");r._html5=j();r._part=a(r);r._protocol=y.location.protocol;r._url=(r._protocol=="https:")?r._secure_url:r._nonsecure_url;r._url+="?cid="+r.counter;o(r);g(r);if(r.track_links=="none"){r.track_links=null}if(r.track_links||r.track_class){m(z,"load",function(){b(r,r._url)})}if(r.queue){i(r,r.queue)}else{if(z["spylog"+r.counter] instanceof Array){i(r,z["spylog"+r.counter])}}}function j(){var s="",t,r;r=!!window.HTMLCanvasElement;s+=r?"1":"0";r=(navigator&&navigator.geolocation);s+=r?"1":"0";r=false;try{r=window.localStorage}catch(t){}s+=r?"1":"0";r=!!window.HTMLVideoElement;s+=r?"1":"0";r=!!window.HTMLAudioElement;s+=r?"1":"0";return s}function i(s,t){s._olocation=s._location;t.opts=s;t.push=e;for(var r=0;r<t.length;r++){t.push(t[r])}t.length=0}function e(s){var r=this.opts;if(typeof(s)=="string"){s={url:s}}if(s.action=="data"){h(r,s)}else{f(r,s)}}function h(s,r){s._part=a(s,r);s.pagelevel=6;o(s,1)}function f(t,s){var r;if(!s||!s.url){return}if(s.url.charAt(0)=="/"){s.url=document.location.protocol+"//"+document.location.host+s.url}if(s.referrer&&s.referrer.charAt(0)=="/"){s.referrer=document.location.protocol+"//"+document.location.host+s.referrer}t._referrer=s.referrer||t._olocation;t._title=s.title||t._title;t._location=s.url;t._part=a(t,s);t._olocation=t._location;t.pagelevel=r;o(t,0)}function a(u,t){var s,v,r;t=t||{};s=t.part||u.part;if(s){s=s.replace(/^\s+/,"").replace(/\s+$/,"")}if(u.vars){v={};for(r in u.vars){v[r]=u.vars[r]}}if(t.vars){v=v||{};for(r in t.vars){v[r]=t.vars[r]}}if(v&&s){v.part=s}if(v){return l(v)}return s}function k(s,r,t){var u=((typeof(s.pagelevel)!="undefined")?"&p="+s.pagelevel:"")+"&c="+s._cookie+"&fr="+s._frame+"&fl="+q(s._flash)+"&px="+s._color_depth+"&wh="+s._screen+"&j="+s._java_enabled+"&t="+(new Date()).getTimezoneOffset()+"&h5="+s._html5+"&pg="+q(d(s._location,2048/t))+"&r="+q(d(s._referrer,2048/t));if(s._frame_referrer){u+="&r1="+q(d(s._frame_referrer,2048/t))}if(s._part){u+="&partname="+q(s._part)}if(!r&&t<2){u+="&title="+q(d(s._title))}return u}function o(w,t){var s;for(var v=1;v<4;v++){s=k(w,t,v);if(s.length<1800){break}}var r=w._url+s+"&rn="+Math.random();var u=new Image();u.src=r;u.onload=function(){return}}function g(u){var s,r,t;if(typeof(u.image)=="undefined"&&typeof(u.image_url)=="undefined"){return}s=document.getElementById("spylog"+u.counter);if(!s){if(typeof(u._onload_set)=="undefined"){u._onload_set=true;m(window,"load",function(){g(u)})}return}if(typeof(u.image_url)=="undefined"){u.image_url="://counter.spylog.com"+((u.image<1000)?"/i/"+u.image+".gif":"/digits?cid="+u.counter+"&ls=0&ln="+u.image)}if(u.image_url.substring(0,1)==":"){u.image_url="http"+(("https:"==u._protocol)?"s":"")+u.image_url}r=document.createElement("a");r.target="_blank";r.href="http://rating.spylog.ru/?cid="+u.counter;t=document.createElement("img");t.alt="SpyLOG";t.border=0;t.src=u.image_url;r.appendChild(t);s.appendChild(r)}function b(t,r){var s=(navigator.appVersion.indexOf("MSIE")!=-1)?"click":"mousedown";m(document.body,s,function(u){if(!u){u=window.event}n(u,t,r)})}function n(x,v,t){var u;if(x.target){u=x.target}else{if(x.srcElement){u=x.srcElement}}if(u.nodeType==3){u=u.parentNode}var w=u.tagName.toString().toLowerCase();while(u.parentNode&&u.parentNode.tagName&&((w!="a"&&w!="area")||!u.href)){u=u.parentNode;w=u.tagName.toString().toLowerCase()}if(!u.href){return}if(v.track_class){var r=u.className.split("s");for(var s=0;s<r.length;s++){if(r[s]==v.track_class){v._referrer=document.location.href;v._location=u.href;v.pagelevel=3;o(v,1);return}}}if(!v.track_links||(v.track_links=="ext"&&window.location.hostname==u.hostname)){return}v._referrer=document.location.href;v._location=u.href;v.pagelevel=3;o(v,1)}function m(t,r,s){if(t.addEventListener){t.addEventListener(r,s,false)}else{if(t.attachEvent){t.attachEvent("on"+r,s)}}}function d(s,r){if(!s){return s}if(!r){r=250}if(s.length>r){var t=s.indexOf("?");if(t!=-1){s=s.slice(0,t)}}if(s.length>r){s=s.substring(0,r)}return s}function q(u){if(typeof(encodeURIComponent)=="function"){return encodeURIComponent(u)}var v="";var s=u.length;for(var t=0;t<s;t++){var r=u.charCodeAt(t);if(r<128){v+=escape(u.charAt(t));continue}r=r.toString(16);v+="%u"+c(r.toUpperCase(),4,"0")}return v}function c(w,r,v){var u=w.length;if(u>=r){return w}var t=r-u;for(var s=0;s<t;s++){w=v+w}return w}function l(u){var t,x,y=[],w,A,z={};switch(typeof(u)){case"number":case"boolean":case"null":return isFinite(u)?String(u):"null";case"string":x="";for(w=0;w<u.length;w++){A=u.charAt(w);if(A<" "||A==":"||A=="\\"){A=A.charCodeAt(0).toString(16);x+="\\x"+c(A,2,"0")}else{x+=A}}return x;case"object":if(!u){return"null"}for(t in u){if(u[t]!==z[t]){x=l(u[t]);if(x){y[y.length]=l(t)+":"+x}}}return":"+y.join(":");default:return""}}if(typeof(spylog)!="undefined"){p(spylog);spylog=spylog.next}})();
