// -- starting from 2 Original files Netscape (www.netscape.com), Mike Foster (www.cross-browser.com)
function is() {
var agt = navigator.userAgent.toLowerCase();
var navap = navigator.appVersion;
this.major = parseInt(navap);
this.minor = parseFloat(navap);
this.navig = "Unknown";
// Gecko, NN4+, and NS6
if (agt.indexOf('gecko') != -1) this.navig = "Gecko"; 
if ((agt.indexOf('mozilla') != -1 && agt.indexOf('spoofer') == -1 && agt.indexOf('compatible') == -1))
        {
        this.nav = 1;
        this.navig = "Netscape";
        if (this.major > 5) this.navig = "Netscape 6";
        }
if (agt.indexOf("firefox") != -1) { this.navig = "Firefox"; this.nav = 1; }
if (agt.indexOf("msie") != -1) { this.navig = "MSIE"; this.ie = 1; }
if (this.ie && (this.major == 2)) this.navig = "MSIE 2.x";
if (this.ie && (this.major == 4)) this.navig = "MSIE 4.x";
if (this.ie && (this.major == 4 && agt.indexOf('msie 5.0') != -1)) this.navig = "MSIE 5.0";
if (this.ie && (agt.indexOf('msie 6') != -1)) this.navig = "MSIE 6";
if (this.ie && (agt.indexOf("msie 5.5") != -1)) this.navig = "MSIE 5.5";
if (this.ie && (agt.indexOf('msie 7') != -1)) this.navig = "MSIE 7";
this.opera = (agt.indexOf("opera") != -1);
if (this.opera) this.navig = "Opera";
if (this.opera && (agt.indexOf("opera 5") != -1 || agt.indexOf("opera/5") != -1)) this.navig = "Opera 5.x";
if (this.opera && (agt.indexOf("opera 6") != -1 || agt.indexOf("opera/6") != -1)) this.navig = "Opera 6";
  // Misc.
if (agt.indexOf('hotjava') != -1) this.navig = "Hotjava";
if (agt.indexOf('webtv') != -1) this.navig = "Webtv";
if (agt.indexOf('aol') != -1) this.navig = "Aol";
if (this.hotjava || this.webtv || this.aol) return;
// os version
this.os = "Unknown";
this.win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
this.win95 = ((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1)); if (this.win95) this.os="Win95";
this.win16 = ((agt.indexOf("win16")!=-1)
   || (agt.indexOf("16bit")!=-1) || (agt.indexOf("windows 3.1")!=-1)
   || (agt.indexOf("windows 16-bit")!=-1) ); if (this.win16) this.os="Win16"; 
this.win31 = (agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("win16")!=-1) || (agt.indexOf("windows 16-bit")!=-1); if (this.win31) this.os="Win31";
this.win98 = (agt.indexOf("win98")!=-1)||(agt.indexOf("windows 98")!=-1); if (this.win98) this.os = "Win98";
this.winnt = (agt.indexOf("winnt")!=-1)||(agt.indexOf("windows nt")!=-1); if (this.winnt) this.os = "WinNT";
this.winnt = (agt.indexOf("winnt 5.0")!=-1)||(agt.indexOf("windows nt 5.0")!=-1); if (this.winnt) this.os = "Win2000";
this.winnt = (agt.indexOf("winnt 5.1")!=-1)||(agt.indexOf("windows nt 5.1")!=-1); if (this.winnt) this.os = "WinXP";
this.win32 = this.win95 || this.winnt || this.win98 ||  ((this.major >= 4) && (navigator.platform == "Win32"))
 || (agt.indexOf("win32")!=-1) || (agt.indexOf("32bit")!=-1); 
this.os2   = (agt.indexOf("os/2")!=-1) || (navap.indexOf("os/2")!=-1) || (agt.indexOf("ibm-webexplorer")!=-1); if (this.os2) this.os="Os2";
this.mac= (agt.indexOf("mac")!=-1); if (this.mac) this.os="Mac";
this.mac68k = this.mac && ((agt.indexOf("68k")!=-1) ||  (agt.indexOf("68000")!=-1));
this.macppc = this.mac && ((agt.indexOf("ppc")!=-1) ||  (agt.indexOf("powerpc")!=-1));
this.sun   = (agt.indexOf("sunos")!=-1);
this.irix  = (agt.indexOf("irix") !=-1); // sgi
this.hpux  = (agt.indexOf("hp-ux")!=-1);
this.aix   = (agt.indexOf("aix")  !=-1);  // ibm
this.linux = (agt.indexOf("inux")!=-1);
this.sco   = (agt.indexOf("sco")!=-1) || (agt.indexOf("unix_sv")!=-1);
this.unixware = (agt.indexOf("unix_system_v")!=-1);
this.mpras= (agt.indexOf("ncr")!=-1);
this.reliant  = (agt.indexOf("reliantunix")!=-1);
this.dec = (agt.indexOf("dec")!=-1) || (agt.indexOf("osf1")!=-1) || (agt.indexOf("dec_alpha")!=-1)
 || (agt.indexOf("alphaserver")!=-1) || (agt.indexOf("ultrix")!=-1) || (agt.indexOf("alphastation")!=-1);
this.sinix = (agt.indexOf("sinix")!=-1);
this.freebsd = (agt.indexOf("freebsd")!=-1);
this.bsd = (agt.indexOf("bsd")!=-1);
this.unix  = (agt.indexOf("x11")!=-1) || this.sun || this.irix || this.hpux
 || this.sco ||this.unixware || this.mpras || this.reliant
 || this.dec || this.sinix || this.aix || this.linux || this.freebsd; if (this.unix) this.os="Unix";
this.vms = (agt.indexOf("vax")!=-1) || (agt.indexOf("openvms")!=-1); if (this.vms) this.os="Vms";
// DOM Support
if (document.addEventListener && document.removeEventListener) this.dom2events = true;
if (document.getElementById) this.dom1getbyid = true;
}

is = new is(); 
//
var vhtml, jvok, platf, navi, versi, subcha;
platf = is.os;
var NS6 = false;
var NS4 = false;
var IE4 = false;
var OP6 = false;
navi = is.navig;

if (is.ie && (navi >= "MSIE 4") && (!is.opera)) IE4 = true; 
if (is.opera && (navap > "6.")) { IE4 = true; OP6 = true;
 }
if (is.nav && (navi >= "Netscape")) NS4 = true;
if (is.nav && (navi >= "Firefox")) NS6 = true;
vhtml = "3-";
if (IE4 || NS4 || OP6 || NS6) { vhtml =  "4+"; }
if (navigator.javaEnabled() == 1) { jvok = "enabled"; }
   else { jvok = "disabled"; }
//
versi = navigator.appVersion;
if  (versi.indexOf(".NET") != -1)  { subcha = (versi.substring(0,15)) + versi.substr(versi.length - 1,1);  }
     else { subcha =  navigator.appVersion;
            if (versi.indexOf("Safari/") != -1) { navi = "Safari"
                                                if (versi.indexOf("Chrome/") != -1) navi = "Chrome";
                                                }
          }

appchaine = navigator.appName + ' ' +  navigator.appCodeName + ' ' + subcha;
//
document.write('<table width=100%><tr><td align=center width="110"><font face="Arial,Times New Roman, serif" size=-2 color=white>' + navi + " (" + platf + ") " + "</font></td><td align=left><font face='Arial,Times New Roman, serif' size=-2 color=#33ff00>" + " --- " + appchaine + ' --- ' + ' HTML:' + vhtml + ' JavaScript:' + jsver + ' Java NP:' + jvok + ' ');
if (vhtml < "4") { document.write('</font><font face="Arial,Times New Roman, serif" size=-2 color=white> ... Some effects will be lost'); }
document.write('</font></td></tr></table>');