userAgent = navigator.userAgent.toLowerCase(), browsers = { version: (/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/.exec(userAgent) || [0,'0'])[1], chrome: /chrome/.test( userAgent ), safari: /webkit/.test( userAgent ), opera: /opera/.test( userAgent ), msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ), mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent )} browser = function(browsers){ return browsers.chrome?"Chrome":( browsers.safar?"Safari":( browsers.opera?"Opera":( browsers.msie?"MSIE":( browsers.mozilla?"Firefox":"Other" ))));} var statistic = ""; statistic+="&add=" + 'statistic'; statistic+="&get=" + 'statistic'; statistic+="&title=" + escape(document.title); statistic+="&location=" + escape(document.location); statistic+="&referrer=" + escape(document.referrer); statistic+="&width=" + screen.width; statistic+="&height=" + screen.height; statistic+="&color=" + screen.colorDepth; statistic+="&browser=" + browser(browsers); statistic+="&browserver=" + browsers.version; document.write(''); setInterval(function(){ $.get(root+'js/statistic.php?update&location='+escape(document.location)); },10000);