
nav = ReturnBrowser();   //MSIE/Netscape/Firefox/Camino/Safari/Opera/Other

so =  ReturnPlatform();	 //Win/Mac/Linux/Other

res = screen.width + 'x' +screen.height; //obtenemos la resolución de Pantalla
if (res!='640x480'&&res!='800x600'&&res!='1024x768'&&res!='1152x864'&&res!='1280x1024'){
	 res = 'resOtros';
}

fla = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? 1 : 0;
if (nav == "MSIE"){
	 fla = 1;	
}

parametro_stat =  'NAV='+nav+'&SO='+so+'&RES='+res+'&FLA='+fla;

//------------------------------------------------------------------------------

function ReturnBrowser() {
    var Browser;
    Browser=((navigator.appName == "Microsoft Internet Explorer")?"MSIE":Browser);
    Browser=((navigator.appName == "Netscape")?"Netscape":Browser);
    Browser=((navigator.userAgent.indexOf("Firefox") > -1)?"Firefox":Browser);
    Browser=((navigator.userAgent.indexOf("Camino") > -1)?"Camino":Browser);
    Browser=((navigator.userAgent.indexOf("Safari") > -1)?"Safari":Browser);
    Browser=((navigator.userAgent.indexOf("Opera") > -1)?"Opera":Browser);
    return Browser=((Browser)?Browser:"Other");
}

function ReturnVersion() {
    var v=navigator.appVersion;
    return ((v.indexOf("MSIE") > 0) ? v.substring(v.indexOf("MSIE")+5,v.indexOf("MSIE")+6) : parseFloat(v));
}

function ReturnPlatform() {
    var Platform;
    Platform=((navigator.userAgent.indexOf("Win") > -1)?"Win":Platform);
    Platform=((navigator.userAgent.indexOf("Mac") > -1)?"Mac":Platform);
    Platform=((navigator.userAgent.indexOf("Linux") > -1)?"Linux":Platform);
    return ((Platform)?Platform:"Other");
}

function ReturnScreen() {
    return ((ReturnVersion()>3)?screen.width+"x"+screen.height:"n/a");
}
