(function LiskJsStats(){ document.cookie = "path=/"; var referrer = document.referrer; var page = window.location.href; var isBadHost = true; //bad hosts don't like the 'http' word in parameters if (isBadHost) { referrer = referrer.replace(/http:\/\//g, ''); page = page.replace(/http:\/\//g, ''); } var result = '?action=save_statistics' + '&ref=' + encodeURIComponent(referrer) + '&page=' + encodeURIComponent(page) + '&c=' + (document.cookie ? "Y" : "N") + '&j=' + (navigator.javaEnabled() ? "Y" : "N") + '&wh=' + screen.width + 'x'+ screen.height + '&px=' + (navigator.appName.substring(0,3) == "Mic" ? screen.colorDepth : screen.pixelDepth) + '&title=' + encodeURIComponent(document.title); //get time zone difference var cd = new Date(); var diff = cd.getTimezoneOffset()*(-1)/60; result += '&time_dif=' + diff; var img = new Image(1, 1); img.src = '/init/installed/stat_visit/stat_visit.php' + result; })();