/* poner en la pagina el siguiente código de llamada
<script language="Javascript">
visita = new o_Navegador();
document.write("Navegador: "+visita.nombre+"<br>");
document.write(" Versión: "+visita.version+"<br>");
if (visita.standard)
    {
    document.write("Este navegador cumple con la ");
    document.write("DOM1 del W3C<br>");
    }
else
    {
    document.write("Este navegador no cumple con la");
    document.write("DOM1 del W3C<br>");
    }
< /script>
*/
function oNavegador( ) {
this.nombre = navigator.appName;
this.iniciar = iniciar;
this.ponerModVer = ponerModVer;
this.IE = this.nombre.toUpperCase().indexOf('MICROSOFT') >=0;
this.NS = this.nombre.toUpperCase().indexOf('NETSCAPE') >=0;
this.OP = this.nombre.toUpperCase().indexOf('OPERA') >= 0;
this.XX = !this.IE && !this.NS && !this.OP;
this.version = this.iniciar();
this.Verent = parseInt(this.version);
this.standard = (this.IE && this.Verent >=5) || (this.NS && this.Verent >=5)
this.modVer = this.ponerModVer();
/*=============================
FUNCION: iniciar( ), miembro de oNavegador
ARGS: none.
DEVUELVE: nada
DESCRIP: Inicializa los valores del objeto
==============================*/
function iniciar() {
var ver = navigator.appVersion;
if(ver+"" != "NaN")
if (this.IE)
    {
    ver.match(/(MSIE)(\s*)([0-9].[0-9]+)/ig);
    ver = RegExp.$3;
    }
return ver;
} //Termina la funcion iniciar el objeto

//Selector para usar en sentencias switch
//Los modelos de navegadores serán de la forma:
// IE4, IE5, NS4, NS5 ...
function ponerModVer()
{
if (this.IE) return "IE"+this.Verent;
if (this.NS) return "NS"+this.Verent;
if (this.OP) return "OP"+this.Verent;
return "XXNN";
}
}//Fin de definición del objeto o_Navegador