//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: 28px;}</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>DIV#stripPgDesc P{WIDTH: 660px}</STYLE>');
            document.write('<STYLE type=text/css>#servsubnav li{WIDTH: 180px}</STYLE>');
            document.write('<STYLE type=text/css>#servsubnav li{MARGIN-LEFT:10px}</STYLE>');
            document.write('<STYLE type=text/css>#servsubnav li{MARGIN-BOTTOM:-20px}</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:29px;}</STYLE>');
            document.write('<STYLE type=text/css>ul#tabnav li{padding-bottom:0px;}</STYLE>');
            document.write('<STYLE type=text/css>ul#tabnav a:hover{padding-bottom:4px;}</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:9px;}</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:-5px}</STYLE>');
        }
        else if ((isFF == 68) || (isFF == 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>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>#secnav{padding-left:4px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contenttext P{FONT-FAMILY: Arial}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contenttext P{FONT-size: 12px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contenttext1 P{FONT-FAMILY: Arial}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contenttext1 P{FONT-size: 12px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contentvalue P{FONT-FAMILY: Arial}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contentvalue P{FONT-size: 12px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contenttitle P{FONT-FAMILY: Arial}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contenttitle P{FONT-size: 16px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contenttitle1 P{FONT-FAMILY: Arial}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contenttitle1 P{FONT-SIZE: 15px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contenttitle2 P{FONT-FAMILY: Arial}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contenttitle2 P{FONT-SIZE: 15px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contentsubsvc P{FONT-FAMILY: Arial}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contentsubsvc P{FONT-size: 12px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contentsubsvc1 P{FONT-FAMILY: Arial}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contentsubsvc1 P{FONT-size: 12px}</STYLE>');
            document.write('<STYLE type=text/css>.clsText{FONT-FAMILY: Arial}</STYLE>');
            document.write('<STYLE type=text/css>.clsText{FONT-size: 12px}</STYLE>');
            document.write('<STYLE type=text/css>.clsList{FONT-FAMILY: Arial}</STYLE>');
            document.write('<STYLE type=text/css>.clsList{FONT-size: 12px}</STYLE>');
            document.write('<STYLE type=text/css>#servsubnav{FONT-FAMILY: Arial}</STYLE>');
            document.write('<STYLE type=text/css>#servsubnav{FONT-size: 12px}</STYLE>');
        }
    }
} 


function detBrowSuppOld() {
    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: 28px;}</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>DIV#stripPgDesc P{WIDTH: 660px}</STYLE>');
            document.write('<STYLE type=text/css>#servsubnav li{WIDTH: 180px}</STYLE>');
            document.write('<STYLE type=text/css>#servsubnav li{MARGIN-LEFT:10px}</STYLE>');
            document.write('<STYLE type=text/css>#servsubnav li{MARGIN-BOTTOM:-20px}</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:29px;}</STYLE>');
            document.write('<STYLE type=text/css>ul#tabnav li{padding-bottom:0px;}</STYLE>');
            document.write('<STYLE type=text/css>ul#tabnav a:hover{padding-bottom:4px;}</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:9px;}</STYLE>');             
        }
        //else    // Mozilla Firefox
        //{
            //if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent))
            //{
            //    var ffversion=new Number(RegExp.$1);
            //    if (ffversion>=1)
            //    {
        else if ((uavendor == "Fedora") && (uaver == "1.0.4-4")) // Firefox
        {
            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>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>#secnav{padding-left:4px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contenttext P{FONT-FAMILY: Arial}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contenttext P{FONT-size: 12px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contenttext1 P{FONT-FAMILY: Arial}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contenttext1 P{FONT-size: 12px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contentvalue P{FONT-FAMILY: Arial}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contentvalue P{FONT-size: 12px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contenttitle P{FONT-FAMILY: Arial}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contenttitle P{FONT-size: 16px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contenttitle1 P{FONT-FAMILY: Arial}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contenttitle1 P{FONT-SIZE: 15px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contenttitle2 P{FONT-FAMILY: Arial}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contenttitle2 P{FONT-SIZE: 15px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contentsubsvc P{FONT-FAMILY: Arial}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contentsubsvc P{FONT-size: 12px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contentsubsvc1 P{FONT-FAMILY: Arial}</STYLE>');
            document.write('<STYLE type=text/css>DIV#contentsubsvc1 P{FONT-size: 12px}</STYLE>');
            document.write('<STYLE type=text/css>.clsText{FONT-FAMILY: Arial}</STYLE>');
            document.write('<STYLE type=text/css>.clsText{FONT-size: 12px}</STYLE>');
            document.write('<STYLE type=text/css>.clsList{FONT-FAMILY: Arial}</STYLE>');
            document.write('<STYLE type=text/css>.clsList{FONT-size: 12px}</STYLE>');
            document.write('<STYLE type=text/css>#servsubnav{FONT-FAMILY: Arial}</STYLE>');
            document.write('<STYLE type=text/css>#servsubnav{FONT-size: 12px}</STYLE>');
        }
            //else if (ffversion>=2)
            //{
            //        document.write('<STYLE type=text/css>DIV#stripPgDesc P{MARGIN-BOTTOM:-5px}</STYLE>');
            //        document.write('<STYLE type=text/css>ul#tabnav a:hover{padding-bottom:5px;}</STYLE>'); 
            //}
            //else if (ffversion>=3)
            //{
            //}
            //}
            //}
       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:-5px}</STYLE>');
       }
    }
} 



// Not used
function IEVer5SvcJa() {
    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");

    // For debug...  
    //document.write("detected IE version=", verIE);
    //document.write("detected msie  =", msie);
 
    // Check for older versions of IE
    if( msie > 0 ) {
        if (verIE == 5){
            document.write('<STYLE type=text/css>#content {MARGIN-TOP: 26px; MARGIN-LEFT: -1px}</STYLE>');
            document.write('<STYLE type=text/css>ul#tabnav{MARGIN-RIGHT: -4px;padding-bottom: 26px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#stripPgDesc P{WIDTH: 660px}</STYLE>');
            document.write('<STYLE type=text/css>#secnav{MARGIN-LEFT: 10px}</STYLE>');
        }
    }
}

function IEVer5SvcFrEn() {
    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");

    // For debug...  
    //document.write("detected IE version=", verIE);
    //document.write("detected msie  =", msie);
 
    // Check for older versions of IE
    if( msie > 0 ) {
        if (verIE == 5){
            document.write('<STYLE type=text/css>#content {MARGIN-TOP: 28px; MARGIN-LEFT: -1px}</STYLE>');
            document.write('<STYLE type=text/css>ul#tabnav{MARGIN-RIGHT: -4px}</STYLE>');
            document.write('<STYLE type=text/css>DIV#stripPgDesc P{WIDTH: 660px}</STYLE>');
            document.write('<STYLE type=text/css>#secnav{MARGIN-LEFT: 10px}</STYLE>');
        }
    }
}


detBrowSupp();
