
function oNavegador( ) {
    this.nombre = navigator.appName;
    this.code = navigator.appCodeName;
    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

function defNavegador( ) {
    if (this.IE) return "IE"+this.Verent;
    if (this.NS) return "NS"+this.Verent;
    if (this.OP) return "OP"+this.Verent;
}

idNavegador = new oNavegador();

//alert(idNavegador.modVer);