var TTtracker = { nn:0, bid:'', vname:'__bid__', step2: function () { var bid = this.getCookie(this.vname); var ref = (document.referrer) ? document.referrer : ''; var scr = ((screen.width) ? screen.width : 'X') + 'x' + ((screen.height) ? screen.height : 'X'); var p = 'nn='+this.nn+'&bid='+bid+'&url='+this.enc(window.location.href)+'&refr='+this.enc(ref)+'&scr='+this.enc(scr); document.write('<'+"script src='/stat_/?"+p+"' type='text/javascript'"+'><'+'/script'+'>'); }, enc: function(str) { str = escape(str); return str.replace(/\&/g, '%26').replace(/#/g, '%23'); }, setCookie: function(name, value, expires, path, domain, secure) { document.cookie = name + "=" + encodeURIComponent(value) + ((expires) ? "; expires=" + expires : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); }, getCookie: function(name) { var cookie = " " + document.cookie; var search = " " + name + "="; var setStr = null; var offset = 0; var end = 0; if (cookie.length > 0) { offset = cookie.indexOf(search); if (offset != -1) { offset += search.length; end = cookie.indexOf(";", offset) if (end == -1) { end = cookie.length; } setStr = decodeURIComponent(cookie.substring(offset, end)); setStr = setStr.replace(/\+/, ' '); } } return(setStr); } } TTtracker.nn=6819331; TTtracker.vname='bid'; TTtracker.bid='';TTtracker.step2();