
var oBrowser = new Browser();

/****************************************************************************
 Identifica el Navegador
****************************************************************************/
function Browser(){
       this.ver = navigator.appVersion;
       this.agent = navigator.userAgent.toLowerCase();
       
       
       
       /* Soporta DOM */
       this.dom = document.getElementById?1:0;
       //var agt = navigator.userAgent.toLowerCase();
       //var op6 = (agt.indexOf("opera/6")!=-1||agt.indexOf("opera 6")!=-1)?true:false;
       //this.dom = (typeof document.getElementById!="undefined" && typeof document.createElement!="undefined" && !op6)?true:false;
              
       this.opera6 = this.agent.indexOf("Opera 6")>-1;
       this.opera5 = this.agent.indexOf("Opera 5")>-1;
       this.opera = (this.opera6 || this.opera5);
       this.ie5 = ((this.ver.indexOf("MSIE 5")>-1 || this.ver.indexOf("Internet Explorer 5")>-1) && this.dom && !this.opera)?1:0;
       this.ie6 = ((this.ver.indexOf("MSIE 6")>-1 || this.ver.indexOf("Internet Explorer 6")>-1) && this.dom && !this.opera)?1:0;
       this.ie4 = (document.all && !this.dom && !this.opera5)?1:0;
       this.ie = this.ie4 || this.ie5 || this.ie6;
       this.mac = this.agent.indexOf("Mac")>-1;
       this.ns6 = (this.dom && parseInt(this.ver) >= 5)?1:0;
       this.moz = (this.dom && parseInt(this.ver) >= 5)?1:0;
       this.ns4 = (document.layers && !this.dom)?1:0;
       this.supp = (this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5 || this.opera6);
       if(this.ie6 && document.compatMode && document.compatMode!="CSS1Compat"){
            this.ie6=null;
            this.ie5=true;
       }
       
       this.nav="desconocido";
       if (this.agent.indexOf("opera") != -1)  this.nav = 'Opera';
       if (this.agent.indexOf("staroffice") != -1) this.nav = 'Star Office';
       if (this.agent.indexOf("beonex") != -1) this.nav = 'Beonex';
       if (this.agent.indexOf("chimera") != -1) this.nav = 'Chimera';
       if (this.agent.indexOf("netpositive") != -1) this.nav = 'NetPositive';
       if (this.agent.indexOf("phoenix") != -1) this.nav = 'Phoenix';
       if (this.agent.indexOf("firefox") != -1) this.nav = 'Firefox';
       if (this.agent.indexOf("safari") != -1) this.nav = 'Safari';
       if (this.agent.indexOf("skipstone") != -1) this.nav = 'SkipStone';
       if (this.agent.indexOf("msie") != -1){
            if(this.ie4) this.nav = 'IE4';
            if(this.ie5) this.nav = 'IE5';
            if(this.ie6) this.nav = 'IE6';
       }
       if (this.agent.indexOf("netscape") != -1) this.nav = 'Netscape';
       if (this.agent.indexOf("mozilla/5.0") != -1) this.nav =  'Mozilla';
       
       
       return this;
} /* end Browser() */


// Browser Detection Javascript
// copyright 1 February 2003, by Stephen Chapman, Felgall Pty Ltd

// You have permission to copy and use this javascript provided that
// the content of the script is not changed in any way.

function whichBrs() {
var agt=navigator.userAgent.toLowerCase();
if (agt.indexOf("opera") != -1) return 'Opera';
if (agt.indexOf("staroffice") != -1) return 'Star Office';
if (agt.indexOf("beonex") != -1) return 'Beonex';
if (agt.indexOf("chimera") != -1) return 'Chimera';
if (agt.indexOf("netpositive") != -1) return 'NetPositive';
if (agt.indexOf("phoenix") != -1) return 'Phoenix';
if (agt.indexOf("firefox") != -1) return 'Firefox';
if (agt.indexOf("safari") != -1) return 'Safari';
if (agt.indexOf("skipstone") != -1) return 'SkipStone';
if (agt.indexOf("msie") != -1) return 'Internet Explorer';
if (agt.indexOf("netscape") != -1) return 'Netscape';
if (agt.indexOf("mozilla/5.0") != -1) return 'Mozilla';
if (agt.indexOf('\/') != -1) {
if (agt.substr(0,agt.indexOf('\/')) != 'mozilla') {
return navigator.userAgent.substr(0,agt.indexOf('\/'));}
else return 'Netscape';} else if (agt.indexOf(' ') != -1)
return navigator.userAgent.substr(0,agt.indexOf(' '));
else return navigator.userAgent;
}