function OthBrowSupp1() {
    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);

    // For debug...  
    //document.write("detected IE version=", verIE);
    //document.write("detected msie  =", msie);
    // document.write("supportAll =", supportAll);

    if (supportAll <= 0)  
    {
        //Not all the capabilities are supported (supportAll=false)
        //Use different mainNF.css file
        document.write('<link rel="stylesheet" type="text/css" href="Style/servAlt.css" /> ');
    }

    // Check for older versions of IE (note: the file is temp)
    if (( msie > 0 ) && (verIE == 5)){
        document.write('<link rel="stylesheet" type="text/css" href="Style/servIE5.css" />');
    }
}
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#icontitle P{WIDTH: 85%}');
            document.write('DIV#icontext P{MARGIN-TOP: -12px;LINE-HEIGHT: 13px}');
            document.write('DIV#companytext2 P{WIDTH:50%}</STYLE>'); 
        }
        else {
            document.write('<STYLE type=text/css>');
            document.write('DIV#icontext P{MARGIN-TOP: -12px;LINE-HEIGHT: 13px}</STYLE>');
        }
    }
    else if ((osb.nav) || (supportAll <= 0))
        document.write('<link rel="stylesheet" type="text/css" href="Style/servAlt.css" /> ');
    else if ((osb.win) && (osb.ie5))
        document.write('<link rel="stylesheet" type="text/css" href="Style/servIE5.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);
    //document.write("  FF=", isFF);

    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>');
            document.write('<STYLE type=text/css>DIV#icontext P{MARGIN-TOP:-8px}</STYLE>'); 
            document.write('<STYLE type=text/css>DIV#companytext1 P{WIDTH: 88%}</STYLE>');   
            document.write('<STYLE type=text/css>DIV#pagedesc P{MARGIN-BOTTOM: 20px}</STYLE>'); 
            document.write('<STYLE type=text/css>DIV#companytext1 P{PADDING-BOTTOM: -2px}</STYLE>');  
        }
    }
    else 
    {
        if (uavendor == "Apple Computer, Inc.")     // Safari
        {
            document.write('<STYLE type=text/css>DIV#icontext P{MARGIN-TOP:-6px}</STYLE>'); 
            document.write('<STYLE type=text/css>DIV#icontext P{FONT-SIZE:11px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#companytext1 P{WIDTH: 85%}</STYLE>');   
            document.write('<STYLE type=text/css>DIV#pagedesc P{MARGIN-BOTTOM: 20px}</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#companytext1 P{WIDTH: 87%}</STYLE>');
            document.write('<STYLE type=text/css>DIV#companytext1 P{PADDING-LEFT:37px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#companytext2 P{PADDING-LEFT:37px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#companytext2 P{FONT-SIZE: 12px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#companytext2 P{WIDTH: 60%}</STYLE>');
            document.write('<STYLE type=text/css>DIV#pagedesc P{MARGIN-BOTTOM: 18px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#icontext P{MARGIN-TOP:-8px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#icontext P{FONT-SIZE:11px}</STYLE>');
        }
        else if ((isFF == 75) || (isFF == 76) || (isFF == 77) || (isFF == 78))
        {
            document.write('<STYLE type=text/css>DIV#icontext P{MARGIN-TOP:-8px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#icontext P{FONT-SIZE:11px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#companyname1 P{PADDING-LEFT: 7px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#companytext1 P{WIDTH: 85%}</STYLE>');
            document.write('<STYLE type=text/css>DIV#companytext1 P{PADDING-LEFT: 38px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#companytext1 P{LINE-HEIGHT: 15px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#companytext2 P{LINE-HEIGHT: 15px}</STYLE>');
        }
    }
} 

detBrowSupp();

