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