var bNoTabsSelectedMenu = false;

function highlightT2(iOption)
{   strOption = "t2o"+iOption
    if (nav_477_to_479)
    {   //document.eval('t2o'+iOption).color = "bold";
        //document.t2menu.document.t2o1.color = "bold";
    }
    else if (nav_post_5 || ie_post_5 || other_browser)
    { //document.getElementById('t2o'+iOption).style.fontVariant = "small-caps";  
      //document.getElementById('t2o'+iOption).style.color = "red";  
      //document.getElementById('t2o'+iOption).style.fontWeight = "600";  
      //document.getElementById('t2o'+iOption).style.fontWeight = "bold";   
    }
    else if (ie_pre_5)
    { //document.all['t2o'+iOption].style.fontWeight = "bold";
    }
    else
    { //alert("warning 1000: unrecognized browser");
    }
}

function hideAllT3()
{
    var i     = 0;
    if (nav_477_to_479) n = 1;
    if (nav_post_5 || ie_post_5 || other_browser) n = 2 ;
    if (ie_pre_5 ) n  = 3;
    while (i < tier2Options)
    {
        switch(n)
        {
            case 1:
                document.eval('t3b'+(i+1)).visibility = "hidden";
                break;
            case 2:
                document.getElementById('t3b'+(i+1)).style.visibility = "hidden"; 
                break;
            case 3:
                document.all['t3b'+(i+1)].style.visibility = "hidden";
                break;
            default:
                alert("warning 1010: unrecognized browser");
                break;
        }
        i++;
    }
}

function showT3(s)
{
    hideAllT3();
    if (nav_477_to_479)
    { document.eval(s).visibility = "visible";
    }
    else if (nav_post_5 || ie_post_5 || other_browser)
    { document.getElementById(s).style.visibility = "visible";
    }
    else if (ie_pre_5)
    { document.all[s.toString()].style.visibility = "visible";
    }
    else
    { //alert("warning 1020: unrecognized browser");
    }
}

function setX(s1, s2)
{   
    if (s2=="i") color="#66cc33";
    if (s2=="o") color="#FFFFFF";    
    if (nav_477_to_479)
    { document.eval(s1).style.backgroundColor = color;
    }
    else if (nav_post_5 || ie_post_5 || other_browser)
    { document.getElementById(s1).style.backgroundColor = color;   
    }
    else if (ie_pre_5)
    { document.all[s1.toString()].style.backgroundColor = color;
    }
    else
    { //alert("warning 1030: unrecognized browser");
    }
}

function positionMenu()
{               
    if (arguments[0]=="noTabSelectedMenu")
    {   bNoTabsSelectedMenu  = true;
    }
    else
    {   bNoTabsSelectedMenu  = false;
    }
    
    if (nav_477_to_479)
    {      

        document.eval('tier1v1').left      = 106;
        document.eval('t2menu').left       = 8;
        document.eval('t2box').left        = 8;
        
        var hasBottomGreenDiv;
        if (document.layers['bottomGreenV1'] != undefined)
        { hasBottomGreenDiv = true;
        }
        else
        { hasBottomGreenDiv = false;
        }
        
        if (bHomePage==0 && hasBottomGreenDiv) 
        { document.eval('bottomGreenV1').left= 8;
        }        

        document.eval('tier1v1').top       = "48";
        document.eval('t2menu').top        = "81";
        document.eval('t2box').top         = "74"; 
        
        if (hasBottomGreenDiv)
        {
            if (bHomePage==0) 
            { document.eval('bottomGreenV1').top = "102";
            }
            else
            {   
                document.eval('bottomGreenV1').top = "102";
                document.eval('bottomGreenV1').left = "8";
            } 
        }

    }
    else if (nav_post_5 || ie_post_5 || other_browser)
    {
        if (bNoTabsSelectedMenu)
        {   document.getElementById('tier1v1').style.top       = "64";
        }
        else
        {   document.getElementById('tier1v1').style.top       = "60";
        }
        
        document.getElementById('t2menu').style.top        = "93";
        document.getElementById('t2box').style.top         = "86";         
        if (bHomePage==0) 
        { document.getElementById('bottomGreenV1').style.top = "114";
        }
        else
        {   
            //alert(document.getElementById('bottomGreenV1'));
            if(document.getElementById('bottomGreenV1') != null)
            {
                document.getElementById('bottomGreenV1').style.top = "114";
            }
        }        
    }
    else if (ie_pre_5)
    {
        if (bNoTabsSelectedMenu)
        {   document.all['tier1v1'].style.top       = "64";
        }
        else
        {   document.all['tier1v1'].style.top       = "60";
        }        
        
        document.all['t2menu'].style.top        = "93";
        document.all['t2box'].style.top         = "86";
        if (bHomePage==0) 
        { document.all['bottomGreenV1'].style.top = "112";
        }
        else
        { document.all['bottomGreenV1'].style.top = "112";
        }          
    }
    
    else
    { 
    
        
    //alert("is navigator or something else");
    
    //alert("warning 1050: unrecognized browser");
    }
}

function createBrowserTargetedStyles()
{
    document.writeln('<style type="text/css">');
    // set the style for the box that surrounds each item in the tier 4 drop down menus
    // mac nn7 will BREAK if using anything over 11px
    if (is_mac && nav_post_5)
    {      
    document.writeln('.t3itemBox {position: absolute; z-index: 0; top: 0px; left: 0px; font-size: 11px; color: #ffffff;  background-color: #ffffff; border-color: #c3c3c3; border-style: solid; border-width: 1px 0px 0px 0px;}');
    }
    else    
    {   
    document.writeln('.t3itemBox {position: absolute; z-index: 0; top: 0px; left: 0px; font-size: 12px; color: #ffffff;  background-color: #ffffff; border-color: #c3c3c3; border-style: solid; border-width: 1px 0px 0px 0px;}');
    }
    
    // set the style for the divider that separates tier 3 menu items
    if (is_mac && nav_post_5)
    {
    document.writeln('.menuDivider {position: absolute; top: 2px; color: #ffffff; font-size: 12px;}');
    }
    else    
    {
    document.writeln('.menuDivider {position: absolute; top: -2px; color: #ffffff; font-size: 12px;}');
    }        

    // set the style for the divider that separates tier 3 menu items
    if (is_mac && nav_post_5)
    {
    document.writeln('#bottomGreenV1 {position: absolute; z-index: 0; top: 134px;  left: 0px;   width: 760px; visibility: visible;}');
    }
    else    
    {
    document.writeln('#bottomGreenV1 {position: absolute; z-index: 0; top: 114px;  left: 0px;   width: 760px; visibility: visible;}');
    }

    // set the style for the box that surrounds each tier 4 drop down menu
    if (is_mac && nav_post_5)
    {
    document.writeln('.t3MenuBox {position: absolute; z-index: 20; top: 112px; color: black; background-color:#ffffff;  width: 100px; border-color: #707070; border-style: solid; border-width: 1px 2px 2px 2px; visibility: hidden;}');        
    }
    else if (nav_477_to_479 )
    {
    document.writeln('.t3MenuBox {position: absolute; z-index: 20; top: 102px; color: black; background-color:#ffffff;  width: 100px; border-color: #707070; border-style: solid; border-width: 1px 2px 2px 2px; visibility: hidden;}');        
    }
    else if (nav_post_5 || other_browser || ie_pre_5 || ie_post_5 )
    {
    document.writeln('.t3MenuBox {position: absolute; z-index: 20; top: 111px; color: black; background-color:#ffffff;  width: 100px; border-color: #707070; border-style: solid; border-width: 1px 2px 2px 2px; visibility: hidden;}');                
    }
    
    document.writeln('</style>');    
}


