// JScript File

//******************************************************************************
//***** BANNERS                                                            *****
//******************************************************************************
function GenerateBanner(PageSet)
{
  intBannerCounts = 1;
  if (PageSet == 'aboutbrc')
  {
    intBannerCounts = 1;
  }
  
  rndNo = Math.ceil(Math.random() * intBannerCounts) - 1;
    
  document.write('                                                <table width="890" cellpadding="0" cellspacing="0" border="0">');
  document.write('                                                    <tr>');
  document.write('                                                        <td><img src="images/banners/' + PageSet + '/banner0' + rndNo + '1.jpg" alt="BRC International" width="890" height="48" /></td>');
  document.write('                                                    </tr>');
  document.write('                                                    <tr>');
  document.write('                                                        <td><img src="images/banners/' + PageSet + '/banner0' + rndNo + '2.jpg" alt="BRC International" width="890" height="48" /></td>');
  document.write('                                                    </tr>');
  document.write('                                                    <tr>');
  document.write('                                                        <td><img src="images/banners/' + PageSet + '/banner0' + rndNo + '3.jpg" alt="BRC International" width="890" height="48" /></td>');
  document.write('                                                    </tr>');
  document.write('                                                </table>');
}


//******************************************************************************
//***** MAIN NAVIGATION                                                    *****
//******************************************************************************
function WriteMenu(selectedMenu)
{
  document.write('                                    <table width="889" cellpadding="0" cellspacing="0" border="0">');
  document.write('                                        <tr style="vertical-align: middle;">');
  document.write('                                            <td><img src="images/menu/menu_left.jpg" width="16" height="30" /></td>');
  if (selectedMenu == 'DEFAULT') 
  {
    
  }  
  if ((selectedMenu == 'HOME') || (selectedMenu == 'INDEX'))
  {
    document.write('                                            <td><img src="images/menu/menu_home_on.jpg" width="75" height="30" style="border: 0px;" /></td>');
  }
  else
  {
    document.write('                                            <td><a href="index.htm"><img src="images/menu/menu_home_off.jpg" width="75" height="30" style="border: 0px;" /></a></td>');
  }  
  if (selectedMenu == 'ABOUTBRC')
  {
    document.write('                                            <td><img src="images/menu/menu_about_on.jpg" width="99" height="30" style="border: 0px;" /></td>');
  }
  else
  {
    document.write('                                            <td><a href="aboutbrc.htm"><img src="images/menu/menu_about_off.jpg" width="99" height="30" style="border: 0px;" /></a></td>');
  }
  if (selectedMenu == 'PRODUCTS')
  {
    document.write('                                            <td><img src="images/menu/menu_products_on.jpg" width="101" height="30" style="border: 0px;" /></td>');
  }
  else
  {
    document.write('                                            <td><a href="products.htm"><img src="images/menu/menu_products_off.jpg" width="101" height="30" style="border: 0px;" /></a></td>');
  }
  if (selectedMenu == 'PRODPROCESS')
  {
    document.write('                                            <td><img src="images/menu/menu_process_on.jpg" width="195" height="30" style="border: 0px;" /></td>');
  }
  else
  {
    document.write('                                            <td><a href="prodprocess.htm"><img src="images/menu/menu_process_off.jpg" width="195" height="30" style="border: 0px;" /></a></td>');
  }
  if (selectedMenu == 'SALESTECH')
  {
    document.write('                                            <td><img src="images/menu/menu_sales_on.jpg" width="231" height="30" style="border: 0px;" /></td>');
  }
  else
  {
    document.write('                                            <td><a href="salestech.htm"><img src="images/menu/menu_sales_off.jpg" width="231" height="30" style="border: 0px;" /></a></td>');
  }
  if (selectedMenu == 'CONTACTUS')
  {
    document.write('                                            <td><img src="images/menu/menu_contact_on.jpg" width="156" height="30" style="border: 0px;" /></td>');
  }
  else
  {
    document.write('                                            <td><a href="contacts_zone1.htm"><img src="images/menu/menu_contact_off.jpg" width="156" height="30" style="border: 0px;" /></a></td>');
  }
  document.write('                                            <td><img src="images/menu/menu_right.jpg" width="16" height="30" /></td>');
  document.write('                                        </tr>');
  document.write('                                        <tr valign="top">');
  document.write('                                            <td colspan="8"><img src="images/menu/menu_bottom.jpg" width="889" height="2" /></td>');
  document.write('                                        </tr>');
  document.write('                                        <tr valign="top">');
  document.write('                                            <td colspan="8"><img src="../common/images/spacer.gif" width="1" height="24" /></td>');
  document.write('                                        </tr>');
  document.write('                                    </table>');
}


function myLanguageBar(currentURL)
{
    strEnglishURL = currentURL.replace('/es/', '/en/');
    strSpanishURL = currentURL.replace('/en/', '/es/');
    //document.write('                                                <a class="menulink" href="' + strEnglishURL + '">English</a>');
    //document.write('                                                &nbsp; | &nbsp;');
    //document.write('                                                <a class="menulink" href="' + strSpanishURL + '">Espa&ntilde;ol</a>');
    document.write('                                                <a class="menulink" href="javascript:alert(\'Under Construction.\');">Espa&ntilde;ol</a>');
}

function AppsLogin()
{
    strLoginPage = fLoginPage(); //'/apps/login2.aspx';
    
    strLiveHost = fLiveHost(); //'www.brchina.com';
    strHost = window.location.host;
    
    if (strHost == strLiveHost)
    {
        document.write('                                                <b><a class="menulink" href="' + strLoginPage + '">Client Login</a></b>');
    }
    else
    {
        document.write('                                                <b><a class="menulink" href="javascript:ConfirmLogin()">Client Login</a></b>');
    }
}

function ConfirmLogin()
{
    strLoginPage = fLoginPage(); //'/apps/login2.aspx';
    strLiveHost = fLiveHost(); //'www.brchina.com';
    
    if (confirm('You must be connected to the internet to be able to log in.\n\nContinue?'))
    {
        parent.window.location = 'http://' + strLiveHost + strLoginPage;
    }
}


//******************************************************************************
//***** ABOUT BRC MENU                                                     *****
//******************************************************************************
function WriteAboutBRCMenu(MenuItem, langoption)
{
  if (langoption == 'es')
  {
    strAboutBRC = 'Acera De BRC';
    strHeadOffice = 'Global Head Office: Hong Kong';
//    strChairmansMsg = 'Message from the Executive Chairman';
    strBRCProductionOffice = 'China Office and Foundry';
    strRegionalOffice = 'Regional Offices';
    strMfgGallery = 'Fotos de Producc&iacute;on';
    strReferences = 'Referencias';
    strNewsroom = 'Newsroom';
  }
  else
  {
    strAboutBRC = 'About BRC';
    strHeadOffice = 'Global Head Office: Hong Kong';
//    strChairmansMsg = 'Message from the Executive Chairman';
    strBRCProductionOffice = 'China Office and Foundry';
    strRegionalOffice = 'Regional Offices';
    strMfgGallery = 'Manufacture Gallery';
    strReferences = 'References';
    strNewsroom = 'Newsroom';
  }

  document.write('                                                <table id="tblAboutBRCMenu" width="240" cellpadding="0" cellspacing="0" border="0">');
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td width="210" style="height: 24px;">');
  if (MenuItem == 'ABOUTBRC')
  {
    document.write('                                                            <span class="HeaderRed">' + strAboutBRC + '</span>');
  }
  else
  {
    document.write('                                                            <a href="aboutbrc.htm" class="HeaderBlack">' + strAboutBRC + '</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td width="210" style="height: 24px;">');
  
  if (MenuItem == 'HEADOFFICE')
  {
    document.write('                                                            <span class="HeaderRed">' + strHeadOffice + '</span>');
  }
  else
  {
    document.write('                                                            <a href="headoffice.htm" class="HeaderBlack">' + strHeadOffice + '</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td width="210" style="height: 24px;">');
  
  
//  if (MenuItem == 'CHAIRMANMSG')
//  {
//    document.write('                                                            <span class="HeaderRed">' + strChairmansMsg + '</span>');
//  }
//  else
//  {
//    document.write('                                                            <a href="default.htm" class="HeaderBlack">' + strChairmansMsg + '</a>');
//  }
//  document.write('                                                        </td>');
//  document.write('                                                    </tr>');
  
//  document.write('                                                    <tr>');
//  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
//  document.write('                                                        <td width="210" style="height: 24px;">');
  
    
  if (MenuItem == 'BRCPRODUCTIONOFFICE')
  {
    document.write('                                                            <span class="HeaderRed">' + strBRCProductionOffice + '</span>');
  }
  else
  {
    document.write('                                                            <a href="prodoffices.htm" class="HeaderBlack">' + strBRCProductionOffice + '</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');  
  document.write('                                                    <tr>'); 
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 24px;">');
  
  if (MenuItem == 'REGIONALOFFICE')
  {
    document.write('                                                            <span class="HeaderRed">' + strRegionalOffice + '</span>');
  }
  else
  {
    document.write('                                                            <a href="regionaloffice.htm" class="HeaderBlack">' + strRegionalOffice + '</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');  
  document.write('                                                    <tr>');  
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 24px;">');
  
  if (MenuItem == 'MFGGALLERY')
  {
    document.write('                                                            <span class="HeaderRed">' + strMfgGallery + '</span>');
  }
  else
  {
    document.write('                                                            <a href="mfggallery.htm" class="HeaderBlack">' + strMfgGallery + '</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 24px;">');
  if (MenuItem == 'REFERENCES')
  {
    document.write('                                                            <span class="HeaderRed">' + strReferences + '</span>');
  }
  else
  {
    document.write('                                                            <a href="references.htm" class="HeaderBlack">' + strReferences + '</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 24px;">');
  if (MenuItem == 'NEWSROOM')
  {
    document.write('                                                            <span class="HeaderRed">' + strNewsroom + '</span>');
  }
  else
  {
    document.write('                                                            <a href="newsroom.htm" class="HeaderBlack">' + strNewsroom + '</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  document.write('                                                </table>');
}

//******************************************************************************
//***** PRODUCTS MENU                                                      *****
//******************************************************************************
function WriteProductsMenu(MenuItem, langoption)
{

if (langoption == 'es')
  {
    strProducts = 'Productos';
    strLPRMill = 'Long Products Rolling';
    strRodBarMill = 'Rod and Bar Mills';
    strSectionMill = 'Section Mills';
    strFlatProductsRolling = 'Flat Products Rolling';
    strNarrowHotStrip = 'Narrow HSMs';
    strColdMills = 'Cold Mills';
    //strBeamRolling = 'Beam Rolling';
    strBeamRolling = 'Beam &amp; Rail Rolling';
    strSeamlessProductsRolling = 'Seamless P&amp;T Rolling';
    strQualities = 'Specifications/Hardness Table';
    strSteelPacking = 'Patented Steel Packaging';
  }
  else
  {
    strProducts = 'Products';
    strLPRMill = 'Long Products Rolling';
    strRodBarMill = 'Rod and Bar Mills';
    strSectionMill = 'Section Mills';
    strFlatProductsRolling = 'Flat Products Rolling';
    strNarrowHotStrip = 'Narrow HSMs';
    strColdMills = 'Cold Mills';
    //strBeamRolling = 'Beam Rolling';
    strBeamRolling = 'Beam &amp; Rail Rolling';
    strSeamlessProductsRolling = 'Seamless P&amp;T Rolling';
    strQualities = 'Specifications/Hardness Table';
    strSteelPacking = 'Patented Steel Packaging';
  }
  
  document.write('                                                <table id="tblAboutBRCMenu" width="240" cellpadding="0" cellspacing="0" border="0">');
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td width="210" style="height: 24px;">');
  if (MenuItem == 'PRODUCTS')
  {
    document.write('                                                            <span class="HeaderBlue">'+ strProducts +'</span>');
  }
  else
  {
    document.write('                                                            <a href="products.htm" class="HeaderBlack">'+ strProducts +'</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  
  //LONG PRODUCTS
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 24px;">');
  if ((MenuItem == 'LONGPRODUCTS') || (MenuItem == 'RODANDBAR') || (MenuItem == 'SECTION'))
  {
    //document.write('                                                            <span class="HeaderBlue">'+ strLPRMill +'</span>');
    document.write('                                                            <span class="HeaderBlue">'+ strLPRMill +'</span>');
  }
  else
  {
    //document.write('                                                            <a href="prod_long.htm" class="HeaderBlack">'+ strLPRMill +'</a>');
    document.write('                                                            <a href="rodandbar.htm" class="HeaderBlack">'+ strLPRMill +'</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  //ROD AND BAR
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 20px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 20px;">');
  if ((MenuItem == 'LONGPRODUCTS') || (MenuItem == 'RODANDBAR'))
  {
    document.write('                                                            &nbsp; &#149; <span class="HeaderBlue">'+ strRodBarMill +'</span>');
  }
  else
  {
    document.write('                                                            &nbsp; &#149; <a href="rodandbar.htm" class="HeaderBlack">'+ strRodBarMill +'</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  //SECTION
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 20px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 20px;">');
  if ((MenuItem == 'LONGPRODUCTS') || (MenuItem == 'SECTION'))
  {
    document.write('                                                            &nbsp; &#149; <span class="HeaderBlue">'+ strSectionMill +'</span>');
  }
  else
  {
    document.write('                                                            &nbsp; &#149; <a href="section.htm" class="HeaderBlack">'+ strSectionMill +'</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  
  
  //BEAM & RAIL
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 24px;">');
  if (MenuItem == 'BEAMROLLING')
  {
    document.write('                                                            <span class="HeaderBlue">'+ strBeamRolling  +'</span>');
  }
  else
  {
    document.write('                                                            <a href="beamrolling.htm" class="HeaderBlack">'+ strBeamRolling  +'</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  
  //FLAT PRODUCTS
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 24px;">');
  if ((MenuItem == 'FLATPRODUCTS') || (MenuItem == 'NARROWHOTSTRIPMILLS') || (MenuItem == 'COLDMILLS'))
  {
    //document.write('                                                            <span class="HeaderBlue">'+ strFlatProductsRolling +'</span>');
    document.write('                                                            <span class="HeaderBlue">'+ strFlatProductsRolling +'</span>');
  }
  else
  {
    //document.write('                                                            <a href="flatproductsrolling.htm" class="HeaderBlack">'+ strFlatProductsRolling +'</a>');
    document.write('                                                            <a href="narrowhotstrip.htm" class="HeaderBlack">'+ strFlatProductsRolling +'</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  
  //NARROW HOT STRIP MILLS
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 20px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 20px;">');
  if ((MenuItem == 'FLATPRODUCTS') || (MenuItem == 'NARROWHOTSTRIPMILLS'))
  {
    document.write('                                                            &nbsp; &#149; <span class="HeaderBlue">'+ strNarrowHotStrip +'</span>');
  }
  else
  {
    document.write('                                                            &nbsp; &#149; <a href="narrowhotstrip.htm" class="HeaderBlack">'+ strNarrowHotStrip +'</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  //COLD MILLS
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 20px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 20px;">');
  if ((MenuItem == 'FLATPRODUCTS') || (MenuItem == 'COLDMILLS'))
  {
    document.write('                                                            &nbsp; &#149; <span class="HeaderBlue">'+ strColdMills +'</span>');
  }
  else
  {
    document.write('                                                            &nbsp; &#149; <a href="coldmills.htm" class="HeaderBlack">'+ strColdMills +'</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  
  //SEAMLESS
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 24px;">');
  if (MenuItem == 'SEAMLESSPRODUCTS')
  {
    document.write('                                                            <span class="HeaderBlue">'+ strSeamlessProductsRolling +'</span>');
  }
  else
  {
    document.write('                                                            <a href="seamlessproduct.htm" class="HeaderBlack">'+ strSeamlessProductsRolling +'</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  
  //SPECIFICATIONS
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 24px;">');
  if ((MenuItem == 'QUALITIES') || (MenuItem == 'SPECIFICATIONS'))
  {
    document.write('                                                            <span class="HeaderBlue">'+ strQualities +'</span>');
  }
  else
  {
    document.write('                                                            <a href="qualities.htm" class="HeaderBlack">'+ strQualities +'</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  
  //STEEL PACKING
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 24px;">');
  if (MenuItem == 'STEELPACKAGING')
  {
    document.write('                                                            <span class="HeaderBlue">'+ strSteelPacking +'</span><img src="../common/images/new.gif" width="30" height="16" />');
  }
  else
  {
    document.write('                                                            <a href="steelpackaging.htm" class="HeaderBlack">'+ strSteelPacking +'</a><img src="../common/images/new.gif" width="30" height="16" />');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  document.write('                                                </table>');
}

//******************************************************************************
//***** PRODUCTION PROCESS MENU                                            *****
//******************************************************************************
function WriteProductionProcess(MenuItem, langoption)
{
  if (langoption == 'es')
  {
    strProcessTechnology = 'Proceso y Tecnolog&iacute;a';
    strMelting = 'Fundic&iacute;on';
    strCentrifugalCasting = 'Fundic&iacute;on Centrifuga';
    strStaticCasting = 'Fundic&iacute;&oacute;n Est&aacute;tica';
    strESRForging = 'ESR Forging';
    strHeatTreatment = 'Tratamiento T&eacute;rmico';
    strQualityControl = 'Control de Calidad';
    strRD = 'R&D';
    strBreakthroughDevelopments = 'Breakthrough Developments';
    //strTrackingMgtSoftware = 'Tracking/ManagementSoftware';
    strTrackingMgtSoftware = 'SmartRolls&reg;';
    strIRMS = "iRMS"
  }
  else
  {
    strProcessTechnology = 'Process and Technology';
    strMelting = 'Melting';
    strCentrifugalCasting = 'Centrifugal Casting';
    strStaticCasting = 'Static Casting';
    strESRForging = 'ESR Forging';
    strHeatTreatment = 'Heat Treatment';
    strBreakthroughDevelopments = 'Breakthrough Developments';
    strQualityControl = 'Quality Control';
    strRD = 'R&D';
    //strTrackingMgtSoftware = 'Tracking/ManagementSoftware';
    strTrackingMgtSoftware = 'SmartRolls&reg;';
    strIRMS = "iRMS"
  }
  
  
  document.write('                                                <table id="tblProductionProcessMenu" width="240" cellpadding="0" cellspacing="0" border="0">');
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td width="210" style="height: 24px;">');
    if (MenuItem == 'PROCESSTECHNOLOGY')
  {
    document.write('                                                            <span class="HeaderOrange">'+ strProcessTechnology +'</span>');
  }
  else
  {
    document.write('                                                            <a href="prodprocess.htm" class="HeaderBlack">'+ strProcessTechnology +'</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 24px;">');
    if (MenuItem == 'MELTING')
  {
    document.write('                                                            <span class="HeaderOrange">'+ strMelting +'</span>');
  }
  else
  {
    document.write('                                                            <a href="melting.htm" class="HeaderBlack">'+ strMelting +'</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 24px;">');
  if (MenuItem == 'CENTRIFUGALCASTING')
  {
    document.write('                                                            <span class="HeaderOrange">'+ strCentrifugalCasting +'</span>');
  }
  else
  {
    document.write('                                                            <a href="centrifugalcasting.htm" class="HeaderBlack">'+ strCentrifugalCasting +'</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 24px;">');
  if (MenuItem == 'STATICCASTING')
  {
    document.write('                                                            <span class="HeaderOrange">'+ strStaticCasting +'</span>');
  }
  else
  {
    document.write('                                                            <a href="staticcasting.htm" class="HeaderBlack">'+ strStaticCasting +'</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 24px;">');
  if (MenuItem == 'ESRFORGING')
  {
    document.write('                                                            <span class="HeaderOrange">'+ strESRForging +'</span>');
  }
  else
  {
    document.write('                                                            <a href="esrforging.htm" class="HeaderBlack">'+ strESRForging +'</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 24px;">');
  if (MenuItem == 'HEATTREATMENT')
  {
    document.write('                                                            <span class="HeaderOrange">'+ strHeatTreatment +'</span>');
  }
  else
  {
    document.write('                                                            <a href="heattreatment.htm" class="HeaderBlack">'+ strHeatTreatment +'</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 24px;">');
  if (MenuItem == 'QUALITYCONTROL')
  {
    document.write('                                                            <span class="HeaderOrange">'+ strQualityControl +'</span>');
  }
  else
  {
    document.write('                                                            <a href="qualitycontrol.htm" class="HeaderBlack">'+ strQualityControl +'</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 24px;">');
  if (MenuItem == 'RD')
  {
    document.write('                                                            <span class="HeaderOrange">'+ strRD +'</span>');
  }
  else
  {
    document.write('                                                            <a href="rd.htm" class="HeaderBlack">'+ strRD +'</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');  
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 24px;">');
  
  //BREAKTHrough Developments
  if ((MenuItem == 'BREAKTHROUGHDEVELOPMENTS') || (MenuItem == 'TRACKING') || (MenuItem == 'IRMS'))
  {    
    document.write('                                                            <span class="HeaderOrange">'+ strBreakthroughDevelopments +'</span>');
  }
  else
  {    
    document.write('                                                            <a href="tracking.htm" class="HeaderBlack">'+ strBreakthroughDevelopments +'</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 24px;">');
  if ((MenuItem == 'BREAKTHROUGHDEVELOPMENTS') || (MenuItem == 'TRACKING'))
  {
    document.write('                                                            &nbsp; &#149; <span class="HeaderOrange">'+ strTrackingMgtSoftware +'</span>');
  }
  else
  {
    document.write('                                                            &nbsp; &#149; <a href="tracking.htm" class="HeaderBlack">'+ strTrackingMgtSoftware +'</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 24px;">');
  if ((MenuItem == 'BREAKTHROUGHDEVELOPMENTS') || (MenuItem == 'IRMS'))
  {
    document.write('                                                            &nbsp; &#149; <span class="HeaderOrange">'+ strIRMS +'</span>');
  }
  else
  {
    document.write('                                                            &nbsp; &#149; <a href="irms.htm" class="HeaderBlack">'+ strIRMS +'</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  //END BREAKTHROUGH
  
  document.write('                                                </table>');
}

//******************************************************************************
//***** SALES AND TECHNICAL SUPPORT MENU                                   *****
//******************************************************************************
function WriteSalesTechnicalSupport(MenuItem, langoption)
{
  if (langoption == 'es')
  {
    strTechnicalSupport = 'BRC Technical Support';
    strTechnicalExperts = 'Technical Experts';
    strRMillAudit = 'Mill Audit';
    strAfterSales = 'After Sales Service';
    strTraining = 'Training';
    strTechnicalPapers = 'Articulos t&eacute;cnicos';
  }
  else
  {
    strTechnicalSupport = 'BRC Technical Support';
    strTechnicalExperts = 'Technical Experts';
    strRMillAudit = 'Mill Audit';
    strAfterSales = 'After Sales Service';
    strTraining = 'Training';
    strTechnicalPapers = 'Technical Papers';
  }


  document.write('                                                <table id="tblProductionProcessMenu" width="240" cellpadding="0" cellspacing="0" border="0">');
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td width="210" style="height: 24px;">');
  if (MenuItem == 'SALESTECH')
  {
    document.write('                                                            <span class="HeaderPurple">'+ strTechnicalSupport +'</span>');
  }
  else
  {
    document.write('                                                            <a href="salestech.htm" class="HeaderBlack">'+ strTechnicalSupport +'</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 24px;">');
  if (MenuItem == 'TECHNICALEXPERTS')
  {
    document.write('                                                            <span class="HeaderPurple">'+ strTechnicalExperts +'</span>');
  }
  else
  {
    document.write('                                                            <a href="techexperts.htm" class="HeaderBlack">'+ strTechnicalExperts +'</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 24px;">');
  if (MenuItem == 'MILLAUDIT')
  {
    document.write('                                                            <span class="HeaderPurple">'+ strRMillAudit +'</span>');
  }
  else
  {
    document.write('                                                            <a href="millaudit.htm" class="HeaderBlack">'+ strRMillAudit +'</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 24px;">');
  if (MenuItem == 'AFTERSALESSERVICE')
  {
    document.write('                                                            <span class="HeaderPurple">'+ strAfterSales +'</span>');
  }
  else
  {
    document.write('                                                            <a href="aftersales.htm" class="HeaderBlack">'+ strAfterSales +'</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 24px;">');
  if (MenuItem == 'TRAINING')
  {
    document.write('                                                            <span class="HeaderPurple">'+ strTraining +'</span><img src="../common/images/new.gif" width="30" height="16" />');
  }
  else
  {
    document.write('                                                            <a href="training.htm" class="HeaderBlack">'+ strTraining +'</a><img src="../common/images/new.gif" width="30" height="16" />');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 24px;"><img src="../common/images/spacer.gif" width="30" height="1" /></td>');
  document.write('                                                        <td style="height: 24px;">');  
  if (MenuItem == 'TECHNICALPAPERS')
  {
    document.write('                                                            <span class="HeaderPurple">'+ strTechnicalPapers +'</span>');
  }
  else
  {
    document.write('                                                            <a href="technicalpapers.htm" class="HeaderBlack">'+ strTechnicalPapers +'</a>');
  }
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  document.write('                                                </table>');
}


//******************************************************************************
//***** OTHER BLOCKS                                                       *****
//******************************************************************************
function WriteWhatsNew(classColor, langoption)
{
  if (langoption == 'es')
  {
    strEvent = 'NOTICIAS y EVENTOS';
  }
  else
  {
    strEvent = 'NEWS And EVENTS';
  }
  document.write('                                                <table id="trWhatsNew" width="240" cellpadding="0" cellspacing="0" border="0">');
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 27px; background-image: url(\'../common/images/tab.jpg\'); background-repeat: no-repeat;">');
  document.write('                                                            <img src="../common/images/spacer.gif" width="30" height="1" /><span class="black"><b>'+ strEvent +'</b></span>');
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  document.write('                                                    <tr>');
  document.write('                                                        <td>');
  document.write('                                                            <div style="overflow:auto; height:240px; width:240px"><br />');
  document.write('                                                                <table width="220" cellpadding="0" cellspacing="0" border="0">');
  document.write('                                                                    <tr valign="top">');
  document.write('                                                                        <td style="width: 30px;" align="right"><img src="../common/images/arrow_red.jpg" width="8" height="7" alt="" />&nbsp;</td>');
  document.write('                                                                        <td style="width: 210px;"><b><span class="' + classColor + '">BRC Events 10/05-07/2011</span></b>');
  document.write('                                                                            <br /><a href="../en/home.htm" class="black">The 81st AIKW Conference - Italy </a>');
  document.write('                                                                            <br />&nbsp;');
  document.write('                                                                        </td>');
  document.write('                                                                    </tr>'); 
  document.write('                                                                    <tr valign="top">');
  document.write('                                                                        <td style="width: 30px;" align="right"><img src="../common/images/arrow_red.jpg" width="8" height="7" alt="" />&nbsp;</td>');
  document.write('                                                                        <td style="width: 210px;"><b><span class="' + classColor + '">BRC Events 05/05-11/2011</span></b>');
  document.write('                                                                            <br /><a href="javascript:OpenGallery(\'PDS-June2011\');" class="black">Pass Design Seminar 2011 - Peru </a>');
  document.write('                                                                            <br />&nbsp;');
  document.write('                                                                        </td>');
  document.write('                                                                    </tr>');  
  document.write('                                                                    <tr valign="top">');
  document.write('                                                                        <td style="width: 30px;" align="right"><img src="../common/images/arrow_red.jpg" width="8" height="7" alt="" />&nbsp;</td>');
  document.write('                                                                        <td style="width: 210px;"><b><span class="' + classColor + '">BRC Events 10/03-05/2010</span></b>');
  document.write('                                                                            <br /><a href="javascript:OpenGallery(\'CONAC2010\');" class="black">CONAC 2010, October - Monterrey, Mexico </a>');
  document.write('                                                                            <br />&nbsp;');
  document.write('                                                                        </td>');
  document.write('                                                                    </tr>');  
  document.write('                                                                    <tr valign="top">');
  document.write('                                                                        <td style="width: 30px;" align="right"><img src="../common/images/arrow_red.jpg" width="8" height="7" alt="" />&nbsp;</td>');
  document.write('                                                                        <td style="width: 210px;"><b><span class="' + classColor + '">BRC Newsletter Jun 2010</span></b>');
  document.write('                                                                            <br /><a href="../common/newsletter/201006en.htm" target="_blank" class="black">June 2010 Newsletter</a>');
  document.write('                                                                            <br />&nbsp;');
  document.write('                                                                        </td>');
  document.write('                                                                    </tr>');  
  document.write('                                                                    <tr valign="top">');
  document.write('                                                                        <td style="width: 30px;" align="right"><img src="../common/images/arrow_red.jpg" width="8" height="7" alt="" />&nbsp;</td>');
  document.write('                                                                        <td style="width: 210px;"><b><span class="' + classColor + '">BRC Events 04/26-30/2010</span></b>');
  document.write('                                                                            <br /><a href="javascript:OpenGallery(\'RollTechnologyTraining2010\');" class="black">Fundamentals of Roll Technology Training at BRC Roll Institute</a>');
  document.write('                                                                            <br />&nbsp;');
  document.write('                                                                        </td>');
  document.write('                                                                    </tr>');
  document.write('                                                                    <tr valign="top">');
  document.write('                                                                        <td style="width: 30px;" align="right"><img src="../common/images/arrow_red.jpg" width="8" height="7" alt="" />&nbsp;</td>');
  document.write('                                                                        <td style="width: 210px;"><b><span class="' + classColor + '">BRC Events 01/2009</span></b>');
  document.write('                                                                            <br /><a href="javascript:OpenGallery(\'RollInst200901\');" class="black">1st Seminar at BRC Roll Institute </a>');
  document.write('                                                                            <br />&nbsp;');
  document.write('                                                                        </td>');
  document.write('                                                                    </tr>');
  document.write('                                                                    <tr valign="top">');
  document.write('                                                                        <td style="width: 30px;" align="right"><img src="../common/images/arrow_red.jpg" width="8" height="7" alt="" />&nbsp;</td>');
  document.write('                                                                        <td style="width: 210px;"><b><span class="' + classColor + '">BRC Newsletter Jan 2009</span></b>');
  document.write('                                                                            <br /><a href="../common/newsletter/200901en.htm" target="_blank" class="black">January 2009 Newsletter</a>');
  document.write('                                                                            <br />&nbsp;');
  document.write('                                                                        </td>');
  document.write('                                                                    </tr>');  
  document.write('                                                                    <tr valign="top">');
  document.write('                                                                        <td style="width: 30px;" align="right"><img src="../common/images/arrow_red.jpg" width="8" height="7" alt="" />&nbsp;</td>');
  document.write('                                                                        <td style="width: 210px;"><b><span class="' + classColor + '">BRC Events 11/10-13/2008</span></b>');
  document.write('                                                                            <br /><a href="javascript:OpenGallery(\'IAS2008\');" class="black">IAS Conference, Argentina </a>');
  document.write('                                                                            <br />&nbsp;');
  document.write('                                                                        </td>');
  document.write('                                                                    </tr>');
  
  document.write('                                                                    <tr valign="top">');
  document.write('                                                                        <td style="width: 30px;" align="right"><img src="../common/images/arrow_red.jpg" width="8" height="7" alt="" />&nbsp;</td>');
  document.write('                                                                        <td style="width: 210px;"><b><span class="' + classColor + '">BRC Events 09/3-6/2008</span></b>');
  document.write('                                                                            <br /><a href="javascript:OpenGallery(\'PDSMexico2008\');" class="black">Pass Design Seminar 2008 - Mexico</a>');
  document.write('                                                                            <br />&nbsp;');
  document.write('                                                                        </td>');
  document.write('                                                                    </tr>');
  document.write('                                                                    <tr valign="top">');
  document.write('                                                                        <td style="width: 30px;" align="right"><img src="../common/images/arrow_red.jpg" width="8" height="7" alt="" />&nbsp;</td>');
  document.write('                                                                        <td style="width: 210px;"><b><span class="' + classColor + '">BRC Events 04/7-8/2008</span></b>');
  document.write('                                                                            <br /><a href="javascript:OpenGallery(\'Nansha2008\');" class="black">BRC Operation Excellence Conference 2008 - Nansha, China</a>');
  document.write('                                                                            <br />&nbsp;');
  document.write('                                                                        </td>');
  document.write('                                                                    </tr>');
  document.write('                                                                    <tr valign="top">');
  document.write('                                                                        <td style="width: 30px;" align="right"><img src="../common/images/arrow_red.jpg" width="8" height="7" alt="" />&nbsp;</td>');
  document.write('                                                                        <td style="width: 210px;"><b><span class="' + classColor + '">BRC Events 11/11-13/2007</span></b>');
  document.write('                                                                            <br /><a href="javascript:OpenGallery(\'CONAC2007\');" class="black">CONAC 2007, November - Monterrey, Mexico</a>');
  document.write('                                                                            <br />&nbsp;');
  document.write('                                                                        </td>');
  document.write('                                                                    </tr>');
  document.write('                                                                    <tr valign="top">');
  document.write('                                                                        <td style="width: 30px;" align="right"><img src="../common/images/arrow_red.jpg" width="8" height="7" alt="" />&nbsp;</td>');
  document.write('                                                                        <td style="width: 210px;"><b><span class="' + classColor + '">BRC Events 09/25/2007</span></b>');
  document.write('                                                                            <br /><a href="javascript:OpenGallery(\'BRCGolf2007\');" class="black">The BRC Golf Classic 2007, Mont St-Hilaire, Qu&#233;bec</a>');
  document.write('                                                                            <br />&nbsp;');
  document.write('                                                                        </td>');
  document.write('                                                                    </tr>');
  document.write('                                                                    <tr valign="top">');
  document.write('                                                                        <td style="width: 30px;" align="right"><img src="../common/images/arrow_red.jpg" width="8" height="7" alt="" />&nbsp;</td>');
  document.write('                                                                        <td style="width: 210px;"><b><span class="' + classColor + '">BRC Events 11/6-9/2006</span></b>');
  document.write('                                                                            <br /><a href="javascript:OpenGallery(\'IAS16Arg2006\');" class="black">IAS 16th Rolling Conference, Argentina 2006</a>');
  document.write('                                                                            <br />&nbsp;');
  document.write('                                                                        </td>');
  document.write('                                                                    </tr>');
  document.write('                                                                    <tr valign="top">');
  document.write('                                                                        <td style="width: 30px;" align="right"><img src="../common/images/arrow_red.jpg" width="8" height="7" alt="" />&nbsp;</td>');
  document.write('                                                                        <td style="width: 210px;"><b><span class="' + classColor + '">BRC Newsletter 02/28/2007</span></b>');
  document.write('                                                                            <br /><a href="../newsletters/feb07.htm" target="_blank" class="black">February 2007 Newsletter</a>');
  document.write('                                                                            <br />&nbsp;');
  document.write('                                                                        </td>');
  document.write('                                                                    </tr>');
//  document.write('                                                                    <tr valign="top">');
//  document.write('                                                                        <td style="width: 30px;" align="right"><img src="../common/images/arrow_red.jpg" width="8" height="7" alt="" />&nbsp;</td>');
//  document.write('                                                                        <td style="width: 210px;"><b><span class="' + classColor + '">BRC Events 10/11-14/2006</span></b>');
//  document.write('                                                                            <br /><a href="javascript:OpenGallery(\'IRDFC2006\');" class="black">IRD Fall Conference, Memphis TN 2006</a>');
//  document.write('                                                                            <br />&nbsp;');
//  document.write('                                                                        </td>');
//  document.write('                                                                    </tr>');
  //document.write('                                                                    <tr valign="top">');
  //document.write('                                                                        <td style="width: 30px;" align="right"><img src="../common/images/arrow_red.jpg" width="8" height="7" alt="" />&nbsp;</td>');
  //document.write('                                                                        <td style="width: 210px;"><b><span class="' + classColor + '">BRC Events 10/10/2006</span></b>');
  //document.write('                                                                            <br /><a href="javascript:OpenGallery(\'BRCGolf2006\');" class="black">BRC Golf Classic, Memphis, Tennessee</a>');
  //document.write('                                                                            <br />&nbsp;');
  //document.write('                                                                        </td>');
  //document.write('                                                                    </tr>');
  document.write('                                                                </table>');
  document.write('                                                            </div>');
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  document.write('                                                </table>');
}


function WriteQuickLinks(classColor, langoption, filterGroup)
{

  ImgNew = ' <img src="../common/images/new.gif" width="30" height="16" />';
  
  if (langoption == 'es')
  {
    strQuickLinks = 'QUICK LINKS';
    strCentrifugalCasting = 'Fundic&iacute;on Centrifuga';
    strQualityControl = 'Control de Calidad';
    strBeamRolling = 'Beam &amp; Rail Rolling';
    strBreakthroughDevelopments = 'Breakthrough Developments';
    strSectionMill = 'Section Mills';
  }
  else
  {
    strQuickLinks = 'QUICK LINKS';
    strCentrifugalCasting = 'Centrifugal Casting';
    strQualityControl = 'Quality Control';
    strBeamRolling = 'Beam &amp; Rail Rolling';
    strBreakthroughDevelopments = 'Breakthrough Developments';
    strSectionMill = 'Section Mills';
  }
  document.write('                                                <table id="tblQuickLinks" width="240" cellpadding="0" cellspacing="0" border="0">');
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 27px; background-image: url(\'../common/images/tab.jpg\'); background-repeat: no-repeat;">');
  document.write('                                                            <img src="../common/images/spacer.gif" width="30" height="1" /><span class="black"><b>' + strQuickLinks + '</b></span>');
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  
  document.write('                                                    <tr>');
  document.write('                                                        <td><img src="../common/images/spacer.gif" width="30" height="10" /></td>');
  document.write('                                                    </tr>');
    
  //LONG PRODUCTS ROLLING
  if (filterGroup != 'PRODUCTS')
  {
      document.write('                                                    <tr>');
      document.write('                                                        <td style="height: 18px;">');
      document.write('                                                            <img src="../common/images/spacer.gif" width="30" height="1" /><b><a href="prod_long.htm" class="' + classColor + '">Long Products Rolling</a></b>');
      document.write('                                                        </td>');
      document.write('                                                    </tr>');
  }
  //LONG PRODUCTS ROLLING - Rod And Bar Mills
  if (filterGroup != 'PRODUCTS')
  {
      document.write('                                                    <tr>');
      document.write('                                                        <td style="height: 18px;">');
      document.write('                                                            <img src="../common/images/spacer.gif" width="30" height="1" /><b><a href="rodandbar.htm" class="' + classColor + '">&nbsp; &#149; Rod And Bar Mills</a></b>');
      document.write('                                                        </td>');
      document.write('                                                    </tr>');
  }
  //LONG PRODUCTS ROLLING - Section Mills
  if (filterGroup != 'PRODUCTS')
  {
      document.write('                                                    <tr>');
      document.write('                                                        <td style="height: 18px;">');
      document.write('                                                            <img src="../common/images/spacer.gif" width="30" height="1" /><b><a href="section.htm" class="' + classColor + '">&nbsp; &#149; ' + strSectionMill + '</a></b>');
      document.write('                                                        </td>');
      document.write('                                                    </tr>');
  }
  //BEAM ROLLING
  if (filterGroup != 'PRODUCTS')
  {
      document.write('                                                    <tr>');
      document.write('                                                        <td style="height: 18px;">');
      document.write('                                                            <img src="../common/images/spacer.gif" width="30" height="1" /><b><a href="beamrolling.htm" class="' + classColor + '">' + strBeamRolling + '</a></b>');
      document.write(ImgNew);
      document.write('                                                        </td>');
      document.write('                                                    </tr>');
  }
  //FLAT PRODUCTS ROLLING
  if (filterGroup != 'PRODUCTS')
  {
      document.write('                                                    <tr>');
      document.write('                                                        <td style="height: 18px;">');
      document.write('                                                            <img src="../common/images/spacer.gif" width="30" height="1" /><b><a href="narrowhotstrip.htm" class="' + classColor + '">Flat Products Rolling</a></b>');
      document.write('                                                        </td>');
      document.write('                                                    </tr>');
  }
    //FLAT PRODUCTS ROLLING - Narrow Hot Strip Mills
  if (filterGroup != 'PRODUCTS')
  {
      document.write('                                                    <tr>');
      document.write('                                                        <td style="height: 18px;">');
      document.write('                                                            <img src="../common/images/spacer.gif" width="30" height="1" /><b><a href="narrowhotstrip.htm" class="' + classColor + '">&nbsp; &#149; Narrow HSMs</a></b>');
      document.write('                                                        </td>');
      document.write('                                                    </tr>');
  }
    //FLAT PRODUCTS ROLLING - Cold Mills
  if (filterGroup != 'PRODUCTS')
  {
      document.write('                                                    <tr>');
      document.write('                                                        <td style="height: 18px;">');
      document.write('                                                            <img src="../common/images/spacer.gif" width="30" height="1" /><b><a href="coldmills.htm" class="' + classColor + '">&nbsp; &#149; Cold Mills</a></b>');
      document.write('                                                        </td>');
      document.write('                                                    </tr>');
  }

  //NARROW STRIP ROLLING
  if (filterGroup == 'HIDDEN') //Hide this link, no link available
  {
      document.write('                                                    <tr>');
      document.write('                                                        <td style="height: 18px;">');
      document.write('                                                            <img src="../common/images/spacer.gif" width="30" height="1" /><b><a href="#" class="' + classColor + '">Narrow Strip Rolling</a></b>');
      document.write('                                                        </td>');
      document.write('                                                    </tr>');
  }
  //SEAMLESS P&T ROLLING
  if (filterGroup != 'PRODUCTS')
  {
      document.write('                                                    <tr>');
      document.write('                                                        <td style="height: 18px;">');
      document.write('                                                            <img src="../common/images/spacer.gif" width="30" height="1" /><b><a href="seamlessproduct.htm" class="' + classColor + '">Seamless P&T Rolling</a></b>');
      document.write('                                                        </td>');
      document.write('                                                    </tr>');
  }
  
   //Patented Steel Packaging
  if (filterGroup != 'PRODUCTS')
  {
      document.write('                                                    <tr>');
      document.write('                                                        <td style="height: 18px;">');
      document.write('                                                            <img src="../common/images/spacer.gif" width="30" height="1" /><b><a href="steelpackaging.htm" class="' + classColor + '">Patented Steel Packaging</a></b>');
      document.write(ImgNew);
      document.write('                                                        </td>');
      document.write('                                                    </tr>');
  }
    
  //QUALITY CONTROL
  if (filterGroup != 'PROCESSTECH')
  {
      document.write('                                                    <tr>');
      document.write('                                                        <td style="height: 18px;">');
      document.write('                                                            <img src="../common/images/spacer.gif" width="30" height="1" /><b><a href="qualitycontrol.htm" class="' + classColor + '">' + strQualityControl + '</a></b>');
      document.write('                                                        </td>');
      document.write('                                                    </tr>');
  }
  //CENTRIFUGAL CASTING
  if (filterGroup != 'PROCESSTECH')
  {
      document.write('                                                    <tr>');
      document.write('                                                        <td style="height: 18px;">');
      document.write('                                                            <img src="../common/images/spacer.gif" width="30" height="1" /><b><a href="centrifugalcasting.htm" class="' + classColor + '">' + strCentrifugalCasting + '</a></b>');
      document.write('                                                        </td>');
      document.write('                                                    </tr>');
  }
  //TECHNICAL TEAM
  if (filterGroup != 'SALESTECH')
  {
      document.write('                                                    <tr>');
      document.write('                                                        <td style="height: 18px;">');
      document.write('                                                            <img src="../common/images/spacer.gif" width="30" height="1" /><b><a href="techexperts.htm" class="' + classColor + '">Technical Team</a></b>');
      document.write('                                                        </td>');
      document.write('                                                    </tr>');
  }
  
    //TRAINING
  if (filterGroup != 'SALESTECH')
  {
      document.write('                                                    <tr>');
      document.write('                                                        <td style="height: 18px;">');
      document.write('                                                            <img src="../common/images/spacer.gif" width="30" height="1" /><b><a href="training.htm" class="' + classColor + '">Training</a></b>');
      document.write(ImgNew);
      document.write('                                                        </td>');
      document.write('                                                    </tr>');
  }
  
  //BREAKTHrough Developments
  if (filterGroup != 'PROCESSTECH')
  {
      document.write('                                                    <tr>');
      document.write('                                                        <td style="height: 18px;">');
      document.write('                                                            <img src="../common/images/spacer.gif" width="30" height="1" /><b><a href="tracking.htm" class="' + classColor + '">Breakthrough Developments</a></b>');      
      document.write('                                                        </td>');
      document.write('                                                    </tr>');
  }
  //SMARTROLLS
  if (filterGroup != 'PROCESSTECH')
  {
      document.write('                                                    <tr>');
      document.write('                                                        <td style="height: 18px;">');
      document.write('                                                            <img src="../common/images/spacer.gif" width="30" height="1" /><b><a href="tracking.htm" class="' + classColor + '">&nbsp; &#149; SmartRolls&reg;</a></b>');
      document.write(ImgNew);
      document.write('                                                        </td>');
      document.write('                                                    </tr>');
  }
  //IRMS
  if (filterGroup != 'PROCESSTECH')
  {
      document.write('                                                    <tr>');
      document.write('                                                        <td style="height: 18px;">');
      document.write('                                                            <img src="../common/images/spacer.gif" width="30" height="1" /><b><a href="irms.htm" class="' + classColor + '">&nbsp; &#149; iRMS</a></b>');
      document.write(ImgNew);
      document.write('                                                        </td>');
      document.write('                                                    </tr>');
  }
  //REFERENCES
  if (filterGroup != 'ABOUTBRC')
  {
      document.write('                                                    <tr>');
      document.write('                                                        <td style="height: 18px;">');
      document.write('                                                            <img src="../common/images/spacer.gif" width="30" height="1" /><b><a href="references.htm" class="' + classColor + '">References</a></b>');
      document.write('                                                        </td>');
      document.write('                                                    </tr>');
  }
  //SPECIFICATION/HARDNESS
  if (filterGroup != 'PRODUCTS')
  {
      document.write('                                                    <tr>');
      document.write('                                                        <td style="height: 18px;">');
      document.write('                                                            <img src="../common/images/spacer.gif" width="30" height="1" /><b><a href="qualities.htm" class="' + classColor + '">Specifications/Hardness Table</a></b>');
      document.write('                                                        </td>');
      document.write('                                                    </tr>');
  }
  
  document.write('                                                </table>');
  
  document.write('                                                <br />');
  document.write('                                                <br />');
  
  document.write('                                                <table id="tblBrochures" width="240" cellpadding="0" cellspacing="0" border="0">');
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 18px;" align="center">');
  document.write('                                                            <img src="images/download_brochure.jpg" width="188" height="43" />');
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  document.write('                                                    <tr>');
  document.write('                                                        <td><img src="../common/images/spacer.gif" width="30" height="10" /></td>');
  document.write('                                                    </tr>');
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 18px;">');
  document.write('                                                          <img src="../common/images/spacer.gif" width="30" height="1" /><a class="' + classColor + '" href="javascript:OpenDownLoad(\'brochures2007\', \'English_BRC_Brochure-r1.pdf\');"><b>English</b></a><br />');
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 18px;">');
  document.write('                                                          <img src="../common/images/spacer.gif" width="30" height="1" /><a class="' + classColor + '" href="javascript:OpenDownLoad(\'brochures2007\', \'French_BRC_Brochure-r1.pdf\');"><b>French</b></a><br />');
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 18px;">');
  document.write('                                                          <img src="../common/images/spacer.gif" width="30" height="1" /><a class="' + classColor + '" href="javascript:OpenDownLoad(\'brochures2007\', \'German_BRC_Brochure-r1.pdf\');"><b>German</b></a><br />');
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 18px;">');
  document.write('                                                          <img src="../common/images/spacer.gif" width="30" height="1" /><a class="' + classColor + '" href="javascript:OpenDownLoad(\'brochures2007\', \'Portuguese_BRC_Brochure-r1.pdf\');"><b>Portuguese</b></a><br />');
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  document.write('                                                    <tr>');
  document.write('                                                        <td style="height: 18px;">');
  document.write('                                                          <img src="../common/images/spacer.gif" width="30" height="1" /><a class="' + classColor + '" href="javascript:OpenDownLoad(\'brochures2007\', \'Spanish_BRC_Brochure-r1.pdf\');"><b>Spanish</b></a><br />');
  document.write('                                                        </td>');
  document.write('                                                    </tr>');
  document.write('                                                </table>');
  
  //download_2007brochure.jpg
}

function OpenDownLoad(downloadfolder, downloadfile)
{
 
    strLiveHost = fLiveHost(); //'www.brchina.com';
    strHost = window.location.host;
    
    if (strHost == strLiveHost)
    {
        strDownloadPath = '../apps/user/downloadinfo.aspx?cab=' + downloadfolder +'&file=' + downloadfile;
        winWidth = 500;
        winHeight = 400;
    }
    else
    {
        strDownloadPath = '../common/downloads/' + downloadfolder +'/' + downloadfile;
        winWidth = 800;
        winHeight = 600;
    }
    
    
    window.open(strDownloadPath,'download','scrollbars=yes,width=' + winWidth + ',height=' + winHeight + ',location=no,resizable=yes,toolbar=no,status=no,menubar=no');
}

function OpenGallery(foldername)
{
    galleryURL = '../common/eventgallery/' + foldername +'/';
    window.open(galleryURL,foldername,'scrollbars=yes,width=700,height=700,location=no,resizable=yes,toolbar=no,status=no,menubar=no');
}

function fLoginPage()
{
//   return '/apps/login2.aspx';
    return '/apps/login.aspx';
}

function fLiveHost()
{
    return 'www.brcil.com';
}

