//gets the document url in the present window as_page = new String(window.location); // detects query string attached to it as_mark = as_page.lastIndexOf('?'); //if query string is present,separate it from the base URL if (as_mark >= 0) as_page = as_page.substring(0, as_mark); // to start detection of / after http:// or https:// as_slash = as_page.indexOf('/', 8); //if / follows . then, it is the home page if (as_page.lastIndexOf('.') < as_page.lastIndexOf('/')) as_page += 'Home+page'; //using javascript object get the referrer for this URL as_refer = document.referrer; //check whether there is any referrer URL attached if (as_refer.substring(0, as_slash) == as_page.substring(0, as_slash)) { as_refer = ''; } as_page = as_page.substring(as_slash+1, as_page.length); as_html = 'http://acestats.net/request.php'; as_html += '?site_id=1307&page=' + escape(as_page) + '&referrer=' + escape(as_refer); function getCookie(name) { var dc = document.cookie; var prefix = name + "="; var begin = dc.indexOf(";" + prefix); if (begin == -1) { begin = dc.indexOf(prefix); if (begin != 0) return null; } else begin += 2; var end = document.cookie.indexOf(";", begin); if (end == -1) end = dc.length; return unescape(dc.substring(begin + prefix.length, end)); } ///////////////////////////////////////////////// var now=new Date(); now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000); var user = getCookie("user"); if (!user) { as_html+="&user=new" document.cookie = 'user=old; expires=Sunday, 02-Feb-2020 20:20:20 GMT;'; } else { as_html+="&user=old" } //////////////////////////////////////////////// document.cookie = 'as=1; expires=Sunday, 02-Feb-2020 20:20:20 GMT;'; as_html += '&cookies=' + (document.cookie.indexOf('as=1') >= 0); if (parseInt(navigator.appVersion) >= 4) { var date = new Date(); as_html += '&screenw=' + screen.width; as_html += '&screenh=' + screen.height; as_html += '&color_bits=' + screen.colorDepth; as_html += '&java=' + navigator.javaEnabled(); as_html += '&time=' + date.getHours() + ':' + date.getMinutes() + ':' + date.getSeconds(); as_html += '&gmtoffset='+date.getTimezoneOffset(); } document.write("");