function getqs(key, default_) { if (default_==null) default_=""; key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regex = new RegExp("[\\?&]"+key+"=([^&#]*)"); var qs = regex.exec(window.location.href); if(qs == null) return default_; else return qs[1]; } function _HSTracker(){ this.init = function() { // globals this.doc = document; this.img = null; this.url = 'http://www.hitsniffer.com/gather.php?sid='+20+'&'; this.uid = ''; // get some extra info this.lang = window.navigator.systemLanguage ? window.navigator.systemLanguage : window.navigator.language; this.pixel = window.navigator.pixelDepth ? window.screen.pixelDepth : ""; this.cpu = navigator.platform ? navigator.platform : ""; this.timezone = ((new Date()).getTimezoneOffset) ? (new Date()).getTimezoneOffset() * -1 : ""; this.cookies = navigator.cookieEnabled; if (this.cookies == true) this.cookies = 1; else this.cookies = 0; this.java_enabled = 1; this.js_version = "0"; this.title = encodeURIComponent(this.doc.title); // see if we are in some frames if (typeof (top.document) == "object") this.ref = top.document; else this.ref = this.doc; if (this.doc.referrer.indexOf(this.ref.location.hostname) == -1) this.ref = this.doc; this.flash_version=''; var n=navigator; if (n.plugins && n.plugins.length) { for (var i=0;i=2;i--) { try { var fl=eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+i+"');"); if (fl) { this.flash_version=i; break; } } catch(e) {} } } } this.logVisit = function() { img = new Image(); img.src = this.getGatherUrl(1, null); //setInterval(this.ping,480000); } this.ping = function() { img = new Image(); img.src = new_url = 'http://www.hitsniffer.com/gather.php?sid=20&aid=7&et=ping&v=' + Math.random(); } this.getGatherUrl = function(event_type, link_address) { var customs=''; try{ if(MySearch){};}catch(e){ MySearch=''; } try{ if(Tag){};}catch(e){ Tag=''; } try{ if(ipname){};}catch(e){ ipname=''; } new_url = this.url + 'ui=' + this.uid + '&aid=7' + '&et=' + event_type + '&u=' + escape(document.URL) + '&ti=' + this.title + '&sh=' + screen.height + '&sw=' + screen.width + '&sc=' + screen.colorDepth + '&p=' + this.pixel + '&l=' + this.lang + '&c=' + this.cpu + '&t=' + this.timezone + '&ja=' + this.java_enabled + '&fv=' + this.flash_version + '&MySearch=' + MySearch + '&ipname=' + ipname + '&Tag=' + Tag + '&iTag='+getqs('tag','') + '&ref=' + escape(this.ref.referrer) + '&jv=' + this.js_version + '&ca=' + this.cookies + '&uidn=' + '&hitc=' + '&dm='+document.domain + (link_address != null ? '&la=' + escape(link_address) : "") + '&v=' + Math.random(); return new_url; } } var HSTracked; var ChatDiv=0; if (!HSTracked){ var HSTracker = new _HSTracker(); HSTracker.init(); HSTracker.logVisit(); HSTracked=1; }