function DetBrow()
{  
    var agt=navigator.userAgent.toLowerCase();
    var ua = window.navigator.userAgent;
    var msie = ua.indexOf ("MSIE ");
    this.major = parseInt(ua.substring (msie+5, ua.indexOf (".", msie )));

    this.nav  = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1)))
    this.nav2 = (this.nav && (this.major == 2))
    this.nav3 = (this.nav && (this.major == 3))
    this.nav4 = (this.nav && (this.major == 4))
    this.nav4up = this.nav && (this.major >= 4)
    this.navonly = (this.nav && (agt.indexOf(";nav") != -1))

    this.ie   = (agt.indexOf("msie") != -1)
    this.ie3  = (this.ie && (this.major == 2))
    this.ie4  = (this.ie && (this.major == 4))
    this.ie5  = (this.ie && (this.major == 5))
    this.ie4up  = this.ie  && (this.major >= 4)

    this.opera = (agt.indexOf("opera") != -1)
   
    if (this.nav2 || this.ie3) this.js = 1.0
    else if (this.nav3 || this.opera) this.js = 1.1
    else if (this.nav4 || this.ie4 || this.ie5) this.js = 1.2
    else if ((this.nav && (this.minor > 4.05)) || (this.ie && (this.major > 4))) 
    this.js = 1.2
    else this.js = 0.0 

    this.win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1))
    this.mac    = (agt.indexOf("mac")!=-1)
    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.hpux  = (agt.indexOf("hp-ux")!=-1) 
    this.linux = (agt.indexOf("inux")!=-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
    this.vms   = (agt.indexOf("vax")!=-1) || (agt.indexOf("openvms")!=-1)
}

function OthBrowSupp()
{
    var supportAll = (document.all != null);

    osb = new DetBrow();
   
    if ((osb.mac) || (osb.mac68k) || (osb.macppc)) {
        if (osb.ie5) {
            document.write('<STYLE type=text/css>DIV#companytext1 P{WIDTH:84%;MARGIN-TOP:-8px}');  
            document.write('DIV#companytext2 P{WIDTH:50%}</STYLE>'); 
        }
    }
    else if ((osb.nav) || (supportAll <= 0))
        document.write('<link rel="stylesheet" type="text/css" href="Style/designAlt.css" /> ');
    else if ((osb.win) && (osb.ie5))
        document.write('<link rel="stylesheet" type="text/css" href="Style/designIE5.css" />');

}

function detBrowSupp() 
{
    var ua = window.navigator.userAgent;
    var msie = ua.indexOf ( "MSIE " );
    var verIE = parseInt(ua.substring (msie+5, ua.indexOf (".", msie )));
    var isIE = navigator.appVersion.indexOf("MSIE");
    var supportAll = (document.all != null);
    var uaprod = navigator.product;
    var uavendor = navigator.vendor;
    var uaver = navigator.vendorSub;
    var uaAppName = navigator.appName; 
    var isFF = navigator.userAgent.indexOf("Firefox");

    // For debug...  
    //document.write("IE version=", verIE);
    //document.write("  msie=", msie);
    //document.write("  supportAll=", supportAll);
    //document.write("  navprod=", uaprod);
    //document.write("  navendor=", uavendor);
    //document.write("  naversion=", uaver);

    if (uaAppName == "Microsoft Internet Explorer")
    {
        if (verIE == 5)
        {
            //document.write('<STYLE type=text/css>#content {MARGIN-TOP:26px}</STYLE>');

        }
        if (verIE == 8)
        {
            document.write('<STYLE type=text/css>DIV#companyname1 P{PADDING-RIGHT: 17px}</STYLE>');
        }
    }
    else 
    {
        if (uavendor == "Apple Computer, Inc.")     // Safari
        {
            //document.write('<STYLE type=text/css>ul#tabnav{padding-bottom:30px;}</STYLE>');
            //document.write('<STYLE type=text/css>ul#tabnav li{padding-bottom:6px;}</STYLE>');
            
        }
        else if ((isFF == 68) || (isFF == 82))  //uavendor="Fedora", uaver="1.0.4-4" == 82       
        {
            document.write('<STYLE type=text/css>DIV#companytext1 P{FONT-SIZE: 12px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#companytext2 P{FONT-SIZE: 12px}</STYLE>');
        }
        else if ((isFF == 75) || (isFF == 76) || (isFF == 77) || (isFF == 78))
        {
            document.write('<STYLE type=text/css>DIV#companyname1 P{PADDING-LEFT:7px}</STYLE>');
        }
    }
} 

detBrowSupp();



