function xflashInstalled()
{
    var x = navigator.plugins;
    var y = navigator.mimeTypes;
    if (x && x.length) { if (x["Shockwave Flash"]) return 1; if (x["Shockwave Flash 2.0"]) return 1;  }
    if (y && y.length) { z = navigator.mimeTypes['application/x-shockwave-flash']; if (z && z.enabledPlugin) return 1; }
    for(var i=9; i>0; i--) { try { var flash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + i); return 1; } catch(e){ } }
    return(0);
}

function xgetLanguage()
{
    if (navigator.userLanguage) return navigator.userLanguage;
    if (navigator.browserLanguage) return navigator.browserLanguage;
    if (navigator.systemLanguage) return navigator.systemLanguage;
    if (navigator.language) return navigator.language;
    if (window.navigator.language) return window.navigator.language;
    return "";
}

function xval(s)
{
    if (s == null) return "-"; 
    s = "" + s;
    return (s.length == 0) ? "-" : escape(s).replace(/\+/g, "%2B");
}

function getBR()
{
    var s = navigator.userAgent;
    if (s.match(/MSIE 6\.[0-9]{1,2}/i)) return 9;
if (s.match(/Firefox/i)) return 1;
if (s.match(/MSIE 7\.[0-9]{1,2}/i)) return 16;
if (s.match(/Opera/i)) return 4;
if (s.match(/SeaMonkey/i)) return 15;
if (s.match(/Konqueror/i)) return 13;
if (s.match(/Safari/i)) return 11;
if (s.match(/Netscape/i)) return 10;
if (s.match(/Firebird/i)) return 2;
if (s.match(/MSIE 5\.[0-9]{1,2}/i)) return 8;
if (s.match(/MSIE 4\.[0-9]{1,2}/i)) return 7;
if (s.match(/AOL/i)) return 6;
if (s.match(/NCSA/i)) return 5;
if (s.match(/Phoenix/i)) return 3;
if (s.match(/MSIE/i)) return 12;
if (s.match(/Mozilla/i)) return 14;

    return 0;
}

function getOS()
{
    var s = navigator.userAgent;
    if (s.match(/Windows (XP|5\.1|NT 5\.1)/i)) return 8;
if (s.match(/(Windows 98|Win98)/i)) return 12;
if (s.match(/(Windows 2000|Windows 2k|Windows NT 5\.0|Windows 5\.0)/i)) return 10;
if (s.match(/Mac/i)) return 15;
if (s.match(/Linux/i)) return 3;
if (s.match(/Windows NT [^56]/i)) return 17;
if (s.match(/(Windows NT 5\.2|Windows 5\.2)/i)) return 16;
if (s.match(/Windows 3\.1/i)) return 14;
if (s.match(/(Windows Vista|Windows NT 6.0)/i)) return 18;
if (s.match(/Windows 95/i)) return 13;
if (s.match(/(Windows Me|Win 9x 4\.90)/i)) return 11;
if (s.match(/IRIX/i)) return 1;
if (s.match(/(Windows Server 2003|Windows NT 5.2)/i)) return 9;
if (s.match(/OpenBSD/i)) return 7;
if (s.match(/NetBSD/i)) return 6;
if (s.match(/FreeBSD/i)) return 5;
if (s.match(/Solaris/i)) return 4;
if (s.match(/OSF/i)) return 2;
if (s.match(/Windows CE/i)) return 19;

    return 0;
}

function getSearch()
{
    var s = ""; try { s = top.document.referrer; } catch(e) { s = null; }
    if (s == null || s == "") return "0&-";
    var match;
    if (match = /^http:\/\/([\.a-zA-Z0-9-]+\.)?(google\.ro)\/.*[?&](as[a-z0-9]*_)?q=([^&]+)/i.exec(s)) return 1+"&"+xval(match[4]);
if (match = /^http:\/\/([\.a-zA-Z0-9-]+\.)?(google\.com)\/.*[?&](as[a-z0-9]*_)?q=([^&]+)/i.exec(s)) return 4+"&"+xval(match[4]);
if (match = /^http:\/\/([\.a-zA-Z0-9-]+\.)?(google\.it)\/.*[?&](as[a-z0-9]*_)?q=([^&]+)/i.exec(s)) return 13+"&"+xval(match[4]);
if (match = /^http:\/\/([\.a-zA-Z0-9-]+\.)?(google\.fr)\/.*[?&](as[a-z0-9]*_)?q=([^&]+)/i.exec(s)) return 17+"&"+xval(match[4]);
if (match = /^http:\/\/([\.a-zA-Z0-9-]+\.)?(google\.co\.uk)\/.*[?&](as_)?q=([^&]+)/i.exec(s)) return 6+"&"+xval(match[4]);
if (match = /^http:\/\/([\.a-zA-Z0-9-]+\.)?(google\.de)\/.*[?&](as[a-z0-9]*_)?q=([^&]+)/i.exec(s)) return 5+"&"+xval(match[4]);
if (match = /^http:\/\/([\.a-zA-Z0-9-]+\.)?(google\.([a-z]{2,3}\.)?[a-z]{2,4})\/.*[?&](as[a-z0-9]*_)?q=([^&]+)/i.exec(s)) return 7+"&"+xval(match[5]);
if (match = /^http:\/\/(uk\.yahoo\.com)\/.*[?&](p|va)=([^&]+)/i.exec(s)) return 16+"&"+xval(match[3]);
if (match = /^http:\/\/(de\.yahoo\.com)\/.*[?&](p|va)=([^&]+)/i.exec(s)) return 15+"&"+xval(match[3]);
if (match = /^http:\/\/(www\.yahoo\.com)\/.*[?&](p|va)=([^&]+)/i.exec(s)) return 14+"&"+xval(match[3]);
if (match = /^http:\/\/([\.a-zA-Z0-9-]+\.)?(msn\.it)\/.*[?&]q=([^&]+)/i.exec(s)) return 12+"&"+xval(match[3]);
if (match = /^http:\/\/([\.a-zA-Z0-9-]+\.)?(msn\.it)\/.*[?&]q=([^&]+)/i.exec(s)) return 10+"&"+xval(match[3]);
if (match = /^http:\/\/([\.a-zA-Z0-9-]+\.)?(av|altavista)\.com\/.*[?&]q=([^&]+)/i.exec(s)) return 3+"&"+xval(match[3]);
if (match = /^http:\/\/([\.a-zA-Z0-9-]+\.)?(msn\.it)\/.*[?&]q=([^&]+)/i.exec(s)) return 8+"&"+xval(match[3]);
if (match = /^http:\/\/([\.a-zA-Z0-9-]+\.)?(msn\.it)\/.*[?&]q=([^&]+)/i.exec(s)) return 9+"&"+xval(match[3]);
if (match = /^http:\/\/([\.a-zA-Z0-9-]+\.)?(msn\.([a-z]{2,3}\.)?[a-z]{2,4})\/.*[?&]q=([^&]+)/i.exec(s)) return 11+"&"+xval(match[4]);
if (match = /^http:\/\/([\.a-zA-Z0-9-]+\.)?(yahoo\.([a-z]{2,3}\.)?[a-z]{2,4})\/.*[?&](p|va)=([^&]+)/i.exec(s)) return 2+"&"+xval(match[5]);

    return "0&-";
}

function getReferer()
{
    var s = ""; try { s = top.document.referrer; } catch(e) { s = null; }
    if (s == null || s == "") return "-&-";
    if (match = /^http:\/\/([\.a-zA-Z0-9-]+)(:[0-9]{1,5})?(\/.*)?$/i.exec(""+s)) return match[1]+"&"+xval(match[3]);
    return "-&-";
}

var d = new Date();

var src = 'http://hitx.statistics.ro:80/';
src = src + '' + site_id + "/";                                 //
src = src + '0';                                                //0
src = src + '&' + xval(section);                                //1
src = src + '&' + xval(subsection);                             //2
src = src + '&' + xval(conversion);                             //3
src = src + '&' + d.getMilliseconds();        			//4

src = src + '&' + window.screen.width;                          //5
src = src + '&' + window.screen.height;                         //6
src = src + '&' + (window.screen.colorDepth?window.screen.colorDepth : window.screen.pixelDepth);       //7
src = src + '&' + xflashInstalled();                            //8
src = src + '&' + (navigator.javaEnabled() ? 1 : 0);            //9
src = src + '&' + (navigator.cookieEnabled ? 1 : 0);            //10
src = src + '&' + xgetLanguage().substring(0, 2).toLowerCase(); //11
src = src + '&' + Math.floor(24+d.getTimezoneOffset()/60);      //12
src = src + '&' + getReferer();                			//13, 14
src = src + '&' + getBR();                                      //15
src = src + '&' + getOS();                                      //16
src = src + '&' + getSearch();                                  //17, 18
src = src + '&' + ((top!=self) ? 1 : 0);                        //19

document.write('<img style="border:0; display: inline" alt="Stat live www.evastyle.ro " src="'+src+'" width=1 height=1/>');
