//Function to determine browser support
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>');
	    document.write('<STYLE type=text/css>#content {MARGIN-LEFT:-1px}</STYLE>');
            document.write('<STYLE type=text/css>ul#tabnav{MARGIN-RIGHT:-4px}</STYLE>');
            document.write('<STYLE type=text/css>ul#tabnav{padding-bottom:26px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#stripPgDesc P{WIDTH: 660px}</STYLE>');
            document.write('<STYLE type=text/css>#servsubnav li{WIDTH: 170px}</STYLE>');
            document.write('<STYLE type=text/css>#servsubnav li{MARGIN-LEFT:10px}</STYLE>');
            document.write('<STYLE type=text/css>#servsubnav li{MARGIN-BOTTOM:-15px}</STYLE>');
            document.write('<STYLE type=text/css>#servsubnav li{MARGIN-TOP:-20px}</STYLE>');
        }
        if (verIE == 6)
        {
            document.write('<STYLE type=text/css>ul#tabnav{padding-bottom:26px;}</STYLE>');
            document.write('<STYLE type=text/css>ul#tabnav a:hover{padding-bottom:5px}</STYLE>');
            document.write('<STYLE type=text/css>ul#tabnav li{padding-bottom: 0px}</STYLE>');
            document.write('<STYLE type=text/css>ul#tabnav li{height: 23px}</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>');
            document.write('<STYLE type=text/css>ul#tabnav a:hover{padding-bottom:8px;}</STYLE>');
            document.write('<STYLE type=text/css>#servsubnav ul{margin-left: 20px}</STYLE>');             
        }
        else if ((isFF == 68) || (isFF == 82))  //uavendor="Fedora", uaver="1.0.4-4" == 82       
        {
            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>');
            document.write('<STYLE type=text/css>ul#tabnav a:hover{padding-bottom:2px;}</STYLE>');
            document.write('<STYLE type=text/css>DIV#stripPgDesc P{MARGIN-LEFT:35px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#stripPgDesc P{MARGIN-BOTTOM:-1px}</STYLE>');
            document.write('<STYLE type=text/css>#servsubnav ul{margin-left: 20px}</STYLE>');
        }
        else if ((isFF == 75) || (isFF == 76) || (isFF == 77) || (isFF == 78))
        {
            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>');
            document.write('<STYLE type=text/css>ul#tabnav a:hover{padding-bottom:5px;}</STYLE>');
            document.write('<STYLE type=text/css>DIV#stripPgDesc P{MARGIN-LEFT:35px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#stripPgDesc P{MARGIN-BOTTOM:-3px}</STYLE>');
            document.write('<STYLE type=text/css>#servsubnav ul{margin-left: 20px}</STYLE>');
        }
    }
} 

detBrowSupp();