//var garrett_server  = "http://199.63.32.105:5550/sites/tgarrett";
//var garrett_server  = "/turbobygarrett";
//var garrett_server  = "/turbobygarrett";
var garrett_server  = "";

document.write('<script language="JavaScript" src="http://www.honeywell.com/inc/webtrends/dcs_tag.js"></script>');

function showSearch()
{
document.write("<table border='0' cellpadding='0' cellspacing='0' width='380'>");
document.write( "<form name='searchGForm' method=get ACTION='http://search.honeywell.com/search' onsubmit='return gsvalidate()'> "); 
document.write("<tr>");
document.write("<td class='topnav' align='center'><br/>");
document.write("<a href=\""+garrett_server+"\"><img src='"+garrett_server+"/images/header/home_btn.gif'  border='0' alt='Home'></a></td>");
document.write("<td class='topnav'><br/><img src='"+garrett_server+"/images/header/nav_divider_dots.gif' border='0' alt=''></td>");
document.write("<td class='topnav'><br/><a href=\"javascript:showGearheadform()\"><img src='"+garrett_server+"/images/header/becomeagearhead.gif'  border='0' alt='Become A Gearhead'></a></td>");
document.write("<td class='topnav'><br/><img src='"+garrett_server+"/images/header/nav_divider_dots.gif'  border='0' alt=''></td>");
document.write("<td class='topnav'><br/><a href=\"javascript:showContactus()\"><img src='"+garrett_server+"/images/header/contact_btn.gif' border='0' alt='Contact Us'></a></td>");
document.write("<td valign='middle'><br/><input class='formtext'  type='text' size='19' name='q' value='enter search terms here' maxlength='256' onFocus=\"document.searchGForm.q.value='';\"/>"); 


document.write( "<input type=hidden name=proxystylesheet value='default_frontend'>");
document.write( "<input type=hidden name=client value='default_frontend'>");
document.write( "<input type=hidden name=output value='xml_no_dtd'>");
document.write( "<input type=hidden name=filter value='p'>");
document.write( "<input type=hidden name=getfields value='description.keywords'>");
document.write( "<input type=hidden name=site value=''>");
document.write( "<input type=hidden name=proxystylesheet value='"+garrett_server+"/xslt/GARRETT.xslt'>");
document.write("</td>");
document.write("<td width='25' class='topnav' align='center'><br/>");
document.write(" <input type='image'  src='"+garrett_server+"/images/header/magifying_glass.gif' alt='Search'>");
document.write("</td></tr></form></table>");
}


function gsvalidate()
{   
  if(document.searchGForm.q.value == '' || document.searchGForm.q.value == 'enter search term')
  {
     alert("Please enter your search term.");   
     document.searchGForm.q.focus();
     return false;  
  }
  return true;  
}

function showHomeSearch()
{   
    showSearch()
}
function showFooter()
{
    document.write("&#169;&nbsp;Copyright Honeywell International Inc 2005-2006 ");
    document.write("[ <a href='"+garrett_server+"/copyright.html' target='_self' class='footer'>Terms & Conditions</a> ]");
    // Commented and Modified for SR 409223
    // document.write(" [ <a href='"+garrett_server+"/privacy.html' target='_self' class='footer'>Privacy Statement</a> ]");   
    document.write(" [ <a href='http://www51.honeywell.com/privacy/en.html' target='_self' class='footer'>Privacy Statement</a> ]");   
    // End of Modification for SR 409223
    document.write(" [ <a href='"+garrett_server+"/sitemap.html' class='footer'>Site Map</a> ]");
    document.write(" [ <a href='http://search.honeywell.com/search?site=turbo&q=&output=xml_no_dtd&client=default_frontend&proxystylesheet=default_frontend&proxycustom=<ADVANCED/>' class='footer'>Advanced Search</a> ]");

    document.write(" [ <a href='http://www.honeywell.com' target=_blank class='footer'>Honeywell</a> ]");
}
//Commented and Modified for SR 304542 & SR 304543
/*function showHeader()
{
    document.write('<table border="0" cellpadding="0" cellspacing="0" width="970" id="mainTable">');
    document.write(' <tr>');
    document.write('            <td valign="top">');
    document.write('                <table border="0" cellpadding="0" cellspacing="0" width="100%">');
    document.write('                    <tr>');
    document.write('                        <td align="left" width="153" class="topnav" valign="top"><a href="'+garrett_server+'"><img src="'+garrett_server+'/images/header/garrett_logo.gif" width="153" height="94" border="0" alt="Garrett Logo" /></a></td>');
    document.write('                        <td align="right" valign="top" width="817" class="topnav" valign="top">');
                     showSearch();  
    document.write('                        </td>');
    document.write('                    </tr>');
    document.write('       <tr>');
    document.write('                        <td class="topnav" colspan="2"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab##version=6,0,0,0" width="100%" height="60" id="mainnav" align="top" salign="T">');
    document.write('                            <param name="movie" value="'+garrett_server+'/images/mainnav_mx_test.swf" />');
    document.write('                            <param name="quality" value="high" />');
    document.write('                            <param name="bgcolor" value="#4A4A4A" />');
    document.write('                            <embed src="'+garrett_server+'/images/mainnav_mx_test.swf" quality="high" value="#4A4A4A" width="100%" height="60" name="mainnav" align="top" salign="T" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" />');
    document.write('                        </object></td>');
    document.write('                    </tr>');
    document.write('</table>');
    document.write('</td></tr>');
    document.write('</table>');
}*/

function showHeader()
{
    document.write('<table border="0" cellpadding="0" cellspacing="0" width="970" id="mainTable" align="left">');
    document.write(' <tr>');
    document.write('            <td valign="top">');
    document.write('                <table border="0" cellpadding="0" cellspacing="0" width="100%">');
    document.write('                    <tr>');
    document.write('                        <td align="left" width="153" class="topnav" valign="top"><a href="'+garrett_server+'"><img src="'+garrett_server+'/images/header/garrett_logo.gif" width="153" height="67" border="0" alt="Garrett Logo" /></a></td>');
    document.write('                        <td align="right" valign="top" width="817" class="topnav" valign="top">');
                     showSearch();  
    document.write('                        </td>');
    document.write('                    </tr>');
    // Commented and Modified for SR 412976
    /*document.write('       <tr>');
    document.write('                        <td class="topnav" colspan="2"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab##version=6,0,0,0" width="100%" height="60" id="mainnav" align="top" salign="T">');
    document.write('                            <param name="movie" value="'+garrett_server+'/images/mainnav_mx_123.swf" />');
    document.write('                            <param name="quality" value="high" />');
    document.write('                            <param name="bgcolor" value="#4A4A4A" />');
    document.write('                            <embed src="'+garrett_server+'/images/mainnav_mx_123.swf" quality="high" value="#4A4A4A" width="100%" height="60" name="mainnav" align="top" salign="T" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" />');
    document.write('                        </object></td>');
    document.write('                    </tr>');*/
    showMenu();
    // End of Modification for SR 412976
    document.write('</table>');
    document.write('</td></tr>');
    document.write('</table>');
}

//End of Modification for SR 304542 & SR 304543

// Added for SR 333590
function showMainHeader()
{
    document.write('<table border="0" cellpadding="0" cellspacing="0" width="970" id="mainTable" align="left">');
    document.write(' <tr>');
    document.write('            <td valign="top">');
    document.write('                <table border="0" cellpadding="0" cellspacing="0" width="100%">');
    document.write('                    <tr>');
    document.write('                        <td align="left" width="153" class="topnav" valign="top"><a href="'+garrett_server+'"><img src="'+garrett_server+'/images/header/garrett_logo.gif" width="153" height="67" border="0" alt="Garrett Logo" /></a></td>');
    document.write('                        <td align="right" valign="top" width="817" class="topnav" valign="top">');
                     showSearch(); 
    document.write('<br>'); 
  // document.write("<a href = 'http://www.surveymonkey.com/s.aspx?sm=j96RANbW7sMpkU0EtqDnhg_3d_3d'> <img src = '"+garrett_server+"/images/Pmax_survey.jpg' border=0 ></a> &nbsp;&nbsp;&nbsp;&nbsp;");
    document.write('                        </td>');
    document.write('                    </tr>');
    // Commented and Modified for SR 412976
    /* document.write('       <tr>');
    document.write('                        <td class="topnav" colspan="2"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab##version=6,0,0,0" width="100%" height="60" id="mainnav" align="top" salign="T">');
    document.write('                            <param name="movie" value="'+garrett_server+'/images/mainnav_mx_123.swf" />');
    document.write('                            <param name="quality" value="high" />');
    document.write('                            <param name="bgcolor" value="#4A4A4A" />');
    document.write('                            <embed src="'+garrett_server+'/images/mainnav_mx_123.swf" quality="high" value="#4A4A4A" width="100%" height="60" name="mainnav" align="top" salign="T" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" />');
    document.write('                        </object></td>');
    document.write('                    </tr>'); */
    showMenu();
    // End of Modification for SR 412976
    document.write('</table>');
    document.write('</td></tr>');
    document.write('</table>');
}

// End of Addition for SR 333590



function showHomeHeader()
{
    showHeader();
}

function showPageFooter()
{
    document.write('<br><table cellpadding="0" border="0" cellspacing="0" width="970" id="mainTable">');
    document.write(' <tr><td height="4" colspan="3" bgcolor="#950600"></td></tr>');
    document.write(' <tr><td colspan="3" class="topnav" height="55"></td></tr>');
    document.write(' <tr><td class="topnav" align="center" width="870" >');
    showFooter();                    
    document.write('</td><td valign="top" class="topnav"><a href="http://www.honeywell.com" target=_blank><img src="'+garrett_server+'/images/honeywell_logo.gif" width="80" height="15" border="0" alt="Honeywell"></a></td>');
    document.write('<td valign="top" class="topnav" width="20"><img src="'+garrett_server+'/images/shim.gif" width="20" height="15" border="0" alt="" /></td></tr>');
    document.write('<tr><td width="970" class="topnav" colspan="3"><img src="'+garrett_server+'/images/shim.gif" width="970" height="5" alt="" /></td></tr>');
    document.write('</table>'); 
}

function showLeftmenu(menuArray,selection,titleImage)
{
     var menuCount = menuArray.length;

     document.write('<table border="0" cellpadding="0" cellspacing="0" width="170"> ');
     document.write('<tr><td class="leftnav" colspan="2"><img src="../images/'+titleImage+'" width="172" height="27" border="0" alt="" /></td></tr>'); 
 
     for(var i=0;i<menuCount;i++)
     {
        document.write('<tr><td colspan="2"><img src="../images/shim.gif" width="172" height="2" border="0" alt="" /></td></tr>');
        document.write('<tr>'); 
    
        if(i==selection)
        {
            document.write('<td class="leftnavon" valign="top"><img src="../images/subnav_leftside_over.gif" width="4" height="23" border="0" alt="" /></td>');
            document.write('<td class="leftnavon" align="left" valign="bottom">&nbsp;&nbsp;'+menuArray[i][0]+' <img src="../images/shim.gif" width="163" height="1" border="0" alt="" /></td>');
        }
        else
        {
            document.write('<td class="leftnav" valign="top"><img src="../images/subnav_leftside.gif" width="4" height="23" border="0" alt="" /></td>');
            document.write('<td class="leftnav" align="left" valign="bottom">&nbsp;&nbsp;<a href="'+menuArray[i][1]+'" class="leftnav">'+menuArray[i][0]+'</a> <img src="../images/shim.gif" width="163" height="1" border="0" alt="" /></td>');
        }
        document.write('</tr>');                
     }
 
    document.write('<tr><td colspan="2"><img src="../images/shim.gif" width="172" height="1" border="0" alt="" /></td></tr>');
    document.write('<tr><td colspan="2"><img src="../images/leftnavEND_whole.gif" width="172" height="14" border="0" alt="" /></td></tr>');
    document.write('<tr><td colspan="2"><img src="../images/shim.gif" width="172" height="20" border="0" alt="" /></td></tr>');
    document.write('</table>');

}


function showLeftSubmenu(menuArray,show,selection,subMenuSelection,titleImage)
{
   var menuCount = menuArray.length;
        
   document.write('<table border="0" cellpadding="0" cellspacing="0" width="170"> ');
   if(show)
    document.write('<tr><td class="leftnav" colspan="2"><img src="../images/'+titleImage+'" width="172" height="27" border="0" alt="" /></td></tr>'); 
    var subMenuArray = null;    
     for(var i=0;i<menuCount;i++)
     {
     subMenuArray = menuArray[i][2];
       
     document.write('<tr><td colspan="2"><img src="../images/shim.gif" width="172" height="2" border="0" alt="" /></td></tr>');
     document.write('<tr>'); 
    
     if(i==selection) {
        
        document.write('<td class="leftnavon" valign="top"><img src="../images/subnav_leftside_over.gif" width="4" height="23" border="0" alt="" /></td>');
        document.write('<td class="leftnavon" align="left" valign="bottom">&nbsp;&nbsp;'+menuArray[i][0]+' <img src="../images/shim.gif" width="163" height="1" border="0" alt="" /></td>');
            
        if(subMenuArray != null) {          
            
             var subMenuCount = subMenuArray.length;
         for(var j=0;j<subMenuCount;j++) {               
                 
            if(subMenuSelection != j){
            document.write('<tr> <td class="leftsubnav" valign="top">&nbsp;</td>');
            document.write('<td class="leftsubnav" valign="bottom">&nbsp;&nbsp;<a href="'+subMenuArray[j][1]+'">'+subMenuArray[j][0]+'</a> <img src="../images/shim.gif" width="163" height="1" border="0" alt="" /></td></tr>');                       
             }else {
                document.write('<tr> <td class="leftsubnavon" valign="top">&nbsp;</td>');
                document.write('<td class="leftsubnavon" valign="bottom">&nbsp;&nbsp;<a href="'+subMenuArray[j][1]+'">'+subMenuArray[j][0]+'</a> <img src="../images/shim.gif" width="163" height="1" border="0" alt="" /></td></tr>');                                         
             }                      
          }
           }
       } else {
          document.write('<td class="leftnav" valign="top"><img src="../images/subnav_leftside.gif" width="4" height="23" border="0" alt="" /></td>');
          document.write('<td class="leftnav" align="left" valign="bottom">&nbsp;&nbsp;<a href="'+menuArray[i][1]+'" class="leftnav">'+menuArray[i][0]+'</a> <img src="../images/shim.gif" width="163" height="1" border="0" alt="" /></td>');
      }
          document.write('</tr>');              
      }
      document.write('<tr><td colspan="2"><img src="../images/shim.gif" width="172" height="1" border="0" alt="" /></td></tr>');
      document.write('<tr><td colspan="2"><img src="../images/leftnavEND_whole.gif" width="172" height="14" border="0" alt="" /></td></tr>');
      document.write('<tr><td colspan="2"><img src="../images/shim.gif" width="172" height="20" border="0" alt="" /></td></tr>');
      document.write('</table>');
}

function logout()
{
    document.write('<table border="0" cellpadding="0" cellspacing="0" width="170"> ');
    document.write('<td class="leftnav" valign="top"><img src="../images/subnav_leftside.gif" width="4" height="23" border="0" alt="" /></td>');
    document.write('<td class="leftnav" align="left" valign="bottom">&nbsp;&nbsp;<a href="logout.jsp" class="leftnav"><b>Logout</b></a> <img src="../images/shim.gif" width="163" height="1" border="0" alt="" /></td>');
    document.write('</table>');
}

function showGearheadform()
{
  var newwin = window.open(garrett_server+"/admin/registerGearhead.jsp",'GH','toolbar=no,location=no,menubar=no,status=no,scrollbars=no,width=485,height=269,resizable=no');   
  newwin.document.close();
}

function showContactus()
{
  var newwin = window.open(garrett_server+"/contact_us/contact_us.html",'ContactUs','toolbar=no,location=no,menubar=no,status=no,scrollbars=no,width=485,height=340,resizable=no');   
  newwin.document.close();
}

function catalogenlargecomp(url)
{
 var newwin = window.open(url,'comp','toolbar=no,location=no,menubar=no,status=no,scrollbars=no,width=500,height=630,resizable=no');   
 newwin.document.close();
}
function catalogenlargeturb(url)
{
  var newwin = window.open(url,'turbo','toolbar=no,location=no,menubar=no,status=no,scrollbars=no,width=750,height=600,resizable=no');   
  newwin.document.close();
}

function othcatalogenlarge(image,name,wd,he){
window.open(image,name,'toolbar=no,location=no,menubar=no,status=no,scrollbars=no,width='+wd+',height='+he+',resizable=no');
}

function showHelp(filename,width,height)
{
  var newwin = window.open(filename,'GH1','toolbar=no,location=no,menubar=no,status=no,scrollbars=no,width='+width+',height='+height+',resizable=no');   
  newwin.document.close();
}
//Added for SR 323023
function catalogEnlargeNews(url)
{
 var newwin = window.open(url,'comp','toolbar=no,location=no,menubar=no,status=no,scrollbars=no,width=450,height=300,resizable=no');   
 newwin.document.close();
}
//End of Addition for SR 323023
//Event Schedule 
function EventSchedule(){
var eventurl=new Array()
eventurl[0]=garrett_server+"/news/event_schedule/event_schedules_jan.html";
eventurl[1]=garrett_server+"/news/event_schedule/event_schedules_feb.html";
eventurl[2]=garrett_server+"/news/event_schedule/event_schedules_mar.html";
eventurl[3]=garrett_server+"/news/event_schedule/event_schedules_apr.html";
eventurl[4]=garrett_server+"/news/event_schedule/event_schedules_may.html";
eventurl[5]=garrett_server+"/news/event_schedule/event_schedules_june.html";
eventurl[6]=garrett_server+"/news/event_schedule/event_schedules_july.html";
eventurl[7]=garrett_server+"/news/event_schedule/event_schedules_aug.html";
eventurl[8]=garrett_server+"/news/event_schedule/event_schedules_sep.html";
eventurl[9]=garrett_server+"/news/event_schedule/event_schedules_oct.html";
eventurl[10]=garrett_server+"/news/event_schedule/event_schedules_nov.html";
eventurl[11]=garrett_server+"/news/event_schedule/event_schedules_dec.html";
var now = new Date();
var monthnumber = now.getMonth();
window.location.href=eventurl[monthnumber];
}
//Event Schedules 
// Added for SR 412956
var bolEventSelect = "false";
// End of Addition for SR 412596
function EventSchedules(month){
    // Added for SR 412596
    if ("event_schedules_feb.html" == month)
    {
        bolEventSelect = "true";
    }
    // End of Addition for SR 412596
    window.location.href=month
}

function openImage(url)
{
 var newwin = window.open(url,'comp','toolbar=no,location=no,menubar=no,status=no,scrollbars=no,width=500,height=630,resizable=no');
 newwin.document.close();
}

//Added for SR 325659
function catalogEnlargeCobalts(url)
{
 var newwin = window.open(url,'Cobalts','toolbar=no,location=no,menubar=no,status=no,scrollbars=no,width=600,height=450,resizable=no');   
 newwin.document.close();
}

//End of Addition for SR 325659

//Added for SR 326712
function catalogEnlargeCobaltsScrollable(url)
{
 var newwin = window.open(url,'Cobalts','toolbar=no,location=no,menubar=no,status=no,scrollbars=yes,width=600,height=450,resizable=yes');   
 newwin.document.close();
}
//End of Addition for SR 326712

function chkSpecial(strValue, strExpChrs)
{
    var chrValue = '';
    var chrList = '!%^&*:;?=<>\|"}{[]~'; // & removed from Special char check
    chkList = chrList + strExpChrs;
    for (var index = 0; index < strValue.length; ++index)
    {
        chrValue = strValue.charAt(index);
        if (chkList.indexOf(chrValue) != -1)
        {
                return false;
        }
    }
    return true;
}

// Added for SR 327099 
function selectCountry()
{
var x;
document.write('<select name="Country" size="1" >');
document.write('<OPTION selected>--Select Country--</OPTION>');
    document.write('<OPTION value="TPS">USA & Canada</OPTION>');
    document.write('<OPTION value="CPG">Europe</OPTION>');
    document.write('<OPTION value="CPG">Latin America</OPTION>');
    document.write('<OPTION value="CPG">Australia</OPTION>');
    document.write('<OPTION value="CPG">Africa</OPTION>');
    document.write('<OPTION value="CPG">Others</OPTION>');
document.write('</select>');
}

function redirectCountry(link)
{
 arrCountry = new Array("distributor_locator.html",
             "../jsp/SearchDistributor.jsp",
             "european_distributors.html",
             "latin_american_distributors.html",
             "australian_distributors.html",
             "Africa_distributors.html",
             "others.html");
  return arrCountry[link]
}

function redirectDist(link,zip)
{
    var url,retURL;
    var valzip = zip
    arrDist = new Array("performance_distributors.html",
             "north_american.html",
             "retail_distributors.html",
             "kit_manifacturers.html",
             "TurboByGarrett_com - Powermax Distributors.htm");
    if(link == "100")
    {
        alert("Please select a distributor");
        url = "distributor_locator_America.html"
    }
    else
    {
        url = arrDist[link]
    }
    retURL = url+"#"+valzip;
    return retURL
}

/**
* This function is used to maintain the focus to the textbox
*/
function resetFocus()
{
    document.frmAreaofInterest.txtZip.focus();
    document.frmAreaofInterest.hdop.value == 100;
    document.frmAreaofInterest.txtZip.value = "";
//    for (i = 0; i < 3; i++)
  //  {
      //  document.frmAreaofInterest.optArea[i].checked = false;
    //}
    document.frmAreaofInterest.optArea[0].checked = true;

}

/**
* This function is used to validate the fields
*/
function validateFields()
{
    var chrList = "._@+$#/()\,'";
if (trim(document.frmAreaofInterest.txtZip.value) == "")
    {
        alert('Please Enter the Zip code ');
        return false;
    }   
    
//else if (document.frmAreaofInterest.hdop.value == 100)
  //  {
    //    alert('Please Select a Distributor');
      //  return false;
    //}
    
    else if (trim(document.frmAreaofInterest.txtZip.value.length) > 10)
    {
        alert('Zip Code cannot exceed 10 digits');
        return false;
    }

else if ((document.frmAreaofInterest.txtZip.value.length) < 2)
    {
        alert('Please enter a valid zip code');
        return false;
    }


    else if (!chkSpecial(document.frmAreaofInterest.txtZip.value, chrList ))
    {
        alert('Zip code cannot contain special characters');
        return false;
    }
    else
    {
        document.frmAreaofInterest.submit();
    }
    return true;
}

function trim(strValue)
{
    var strValue    = ''+strValue;
    var startIndex  = 0;
    var endIndex    = 0;
    for (startIndex=0; strValue.length > startIndex && (strValue.charAt(startIndex) == ' ' || strValue.charCodeAt(startIndex) == 15);startIndex++);
    for (endIndex = strValue.length - 1; endIndex > startIndex && (strValue.charAt(endIndex) == ' '  || strValue.charCodeAt(endIndex) == 15); endIndex--);
    return strValue.substring(startIndex,endIndex+1);
}
//End of Addition for SR 327099
// Added for SR 343520
function dodgecumminsenlarge(url)
{
 var newwin = window.open(url,'comp','toolbar=no,location=no,menubar=no,status=no,scrollbars=yes,width=500,height=630,resizable=no');   
 newwin.document.close();
}
// end of Addition for SR 343520

// Added for SR 412976
var timeout = 500;
var closetimer  = 0;
var ddmenuitem  = 0;

// open hidden layer
function mopen(id)
{   
    // cancel close timer
    mcancelclosetime();

    // close old layer
    if (ddmenuitem)
    {
        ddmenuitem.style.visibility = 'hidden';
    }

    // get new layer and show it
    ddmenuitem = document.getElementById(id);
    ddmenuitem.style.visibility = 'visible';

}

// close showed layer
function mclose()
{
    if (ddmenuitem)
    {
        ddmenuitem.style.visibility = 'hidden';
    }
}

// go close timer
function mclosetime()
{
    closetimer = window.setTimeout(mclose, timeout);
}

// cancel close timer
function mcancelclosetime()
{
    if (closetimer)
    {
        window.clearTimeout(closetimer);
        closetimer = null;
    }
}

// close layer when click-out
document.onclick = mclose; 

function showMenu()
{
    document.write(" <tr rowspan = '5' bgcolor = '#4A4A4A' width = '100%'> ");
    document.write(" <td colspan = '2'> ");
    document.write(" &nbsp; ");
    document.write(" </td> ");
    document.write(" </tr> ");
    document.write(" <tr  bgcolor = '#4A4A4A' width = '100%'> ");
    document.write(" <td colspan = '2'> ");
    document.write(" <table border = '0' cellpadding = '0' cellspacing = '0' width = '100%'> ");
    document.write(" <tr  bgcolor = '#4A4A4A' width = '67%'> ");
    document.write(" <td align = 'left'> ");
    document.write(" <ul  id  =  'sddm'> ");
    document.write(" <li> ");
    document.write(" <a  href  ='/turbobygarrett/about/about_us.html'  onmouseover  =  'mopen(\"AboutUs\")'  onmouseout  =  'mclosetime()'> ");
    document.write(" &nbsp;&nbsp;ABOUT  US ");
    document.write(" </a> ");
    document.write(" <div  style ='z-index: 2' id  =  'AboutUs'  onmouseover  =  'mcancelclosetime()'  onmouseout  =  'mclosetime()'> ");
    document.write(" <a  href  =  '/turbobygarrett/about/garrett_history.html'><b><font  color  =  'red'>  ::  </font></b> Garrett  History</a> ");
    document.write(" <a  href  =  '/turbobygarrett/about/garrett_capabilities.html'><b><font  color  =  'red'>  ::  </font></b> Garrett  Capabilities</a> ");
    document.write(" <a  href  =  '/turbobygarrett/about/gt_racecar.html'><b><font  color  =  'red'>  ::  </font></b> Garrett  Racecar</a> ");
    document.write(" <a  href  =  '/turbobygarrett/about/garrett_advantage.html'><b><font  color  =  'red'>  ::  </font></b> Garrett  Advantage/Technology</a> ");
    document.write(" </div> ");
    document.write(" </li> ");
    document.write(" <li>  <a  herf  =  '#'><b><font  color  =  'red'>  ::  </font></b></a></li> ");
    document.write(" <li> ");
    document.write(" <a  href  =  '/turbobygarrett/products/products.html'  onmouseover  =  'mopen(\"Product\")'  onmouseout  =  'mclosetime()'> ");
    document.write(" PRODUCTS ");
    document.write(" </a> ");
    document.write(" <div  id  =  'Product'  onmouseover  =  'mcancelclosetime()'  onmouseout  =  'mclosetime()'> ");
    document.write(" <a  href  =  '/turbobygarrett/products/turbo_kits.html'><b><font  color  =  'red'>  ::  </font></b> Turbo  Kits</a> ");
    document.write(" <a  href  =  '/turbobygarrett/products/turbochargers.html'><b><font  color  =  'red'>  ::  </font></b> Turbo  Chargers</a> ");
    document.write(" <a  href  =  '/turbobygarrett/products/performance_diesel.html'><b><font  color  =  'red'>  ::  </font></b> Performance  Diesel</a> ");
    document.write(" <a  href  =  '/turbobygarrett/products/OEReplacement.html'><b><font  color  =  'red'>  ::  </font></b> OE  Replacement</a> ");
    document.write(" <a  href  =  '/turbobygarrett/products/intercoolers.html'><b><font  color  =  'red'>  ::  </font></b> Intercoolers</a> ");
    document.write(" <a  href  =  '/turbobygarrett/products/wastegates.html'><b><font  color  =  'red'>  ::  </font></b> Wastegates</a> ");
    document.write(" <a  href  =  '/turbobygarrett/products/blowoff_valves.html'><b><font  color  =  'red'>  ::  </font></b> Blow-Off  Valves</a> ");
    document.write(" <a  href  =  '/turbobygarrett/products/catalog.html'><b><font  color  =  'red'>  ::  </font></b> Catalog</a> ");
    document.write(" <a  href  =  '/turbobygarrett/products/BBService.html'><b><font  color  =  'red'>  ::  </font></b> BB  Service</a> ");
    document.write(" <a  href  =  '/turbobygarrett/products/accessories.html'><b><font  color  =  'red'>  ::  </font></b> Accessories</a> ");
    document.write(" </div> ");
    document.write(" </li> ");
    document.write(" <li>  <a  herf  =  '#'><b><font  color  =  'red'>  ::  </font></b></a></li> ");
    document.write(" <li> ");
    document.write(" <a  href  =  '/turbobygarrett/tech_center/tech_center.html'  onmouseover  =  'mopen(\"TurboTech\")'  onmouseout  =  'mclosetime()'> ");
    document.write(" TURBO  TECH ");
    document.write(" </a> ");
    document.write(" <div  id  =  'TurboTech'  onmouseover  =  'mcancelclosetime()'  onmouseout  =  'mclosetime()'> ");
    document.write(" <a  href  =  '/turbobygarrett/tech_center/why_garrett.html'><b><font  color  =  'red'>  ::  </font></b> Why  Garrett</a> ");
    document.write(" <a  href  =  '/turbobygarrett/tech_center/gt_basics.html'><b><font  color  =  'red'>  ::  </font></b> GT  Basics</a> ");
    document.write(" <a  href  =  '/turbobygarrett/tech_center/troubleshooting.html'><b><font  color  =  'red'>  ::  </font></b> Troubleshooting</a> ");
    document.write(" <a  href  =  '/turbobygarrett/tech_center/turbo_systems_tech_center.html'><b><font  color  =  'red'>  ::  </font></b> Turbo  Systems  Tech  Center</a> ");
    document.write(" <a  href  =  '/turbobygarrett/tech_center/turbo_tech101.html'><b><font  color  =  'red'>  ::  </font></b> Turbo  Tech  101</a> ");
    document.write(" <a  href  =  '/turbobygarrett/tech_center/turbo_tech102.html'><b><font  color  =  'red'>  ::  </font></b> Turbo  Tech  102</a> ");
    document.write(" <a  href  =  '/turbobygarrett/tech_center/turbo_tech103.html'><b><font  color  =  'red'>  ::  </font></b> Turbo  Tech  103</a> ");
    document.write(" <a  href  =  '/turbobygarrett/tech_center/diesel_tech.html'><b><font  color  =  'red'>  ::  </font></b> Diesel  Tech</a> ");
    document.write(" <a  href  =  '/turbobygarrett/tech_center/turbo_optimization.html'><b><font  color  =  'red'>  ::  </font></b> Turbo  Optimization</a> ");
    document.write(" <a  href  =  '/turbobygarrett/tech_center/faqs.html'><b><font  color  =  'red'>  ::  </font></b> FAQs</a> ");
    document.write(" <a  href  =  '/turbobygarrett/tech_center/acronyms.html'><b><font  color  =  'red'>  ::  </font></b> Acronyms</a> ");
    document.write(" </div> ");
    document.write(" </li> ");
    document.write(" <li>  <a  herf  =  '#'><b><font  color  =  'red'>  ::  </font></b></a></li> ");
    document.write(" <li> ");
    document.write(" <a  href  =  '/turbobygarrett/news/news_events.html'  onmouseover  =  'mopen(\"NewsEvents\")'  onmouseout  =  'mclosetime()'> ");
    document.write(" NEWS  &  EVENTS ");
    document.write(" </a> ");
    document.write(" <div  id  =  'NewsEvents'  onmouseover  =  'mcancelclosetime()'  onmouseout  =  'mclosetime()'> ");
    document.write(" <a  href  =  '/turbobygarrett/news/sponsored_vehicles.html'><b><font  color  =  'red'>  ::  </font></b> Garrett  Sponsored  Vehicles</a> ");
    document.write(" <a  href  =  '/turbobygarrett/news/ride_of_the_month.html'><b><font  color  =  'red'>  ::  </font></b> GT  Ride  of  the  Month</a> ");
    document.write(" <a  href  =  '/turbobygarrett/news/event_schedule/event_schedules_feb.html'><b><font  color  =  'red'>  ::  </font></b> Event  Schedule</a> ");
    document.write(" </div> ");
    document.write(" </li> ");
    document.write(" <li>  <a  herf  =  '#'><b><font  color  =  'red'>  ::  </font></b></a></li> ");
    document.write(" <li> ");
    document.write(" <a  href  =  '/turbobygarrett/multimedia/multimedia.html'  onmouseover  =  'mopen(\"Multimedia\")'  onmouseout  =  'mclosetime()'> ");
    document.write(" MULTIMEDIA ");
    document.write(" </a> ");
    document.write(" <div  id  =  'Multimedia'  onmouseover  =  'mcancelclosetime()'  onmouseout  =  'mclosetime()'> ");
    document.write(" <a  href  =  '/turbobygarrett/multimedia/photos.html'><b><font  color  =  'red'>  ::  </font></b> Photos</a> ");
    document.write(" <a  href  =  '/turbobygarrett/multimedia/videos.html'><b><font  color  =  'red'>  ::  </font></b> Videos</a> ");
    document.write(" <a  href  =  '/turbobygarrett/multimedia/other_downloads.html'><b><font  color  =  'red'>  ::  </font></b> Other  Downloads</a> ");
    document.write(" </div> ");
    document.write(" </li> ");
    document.write(" <li>  <a  herf  =  '#'><b><font  color  =  'red'>  ::  </font></b></a></li> ");
    document.write(" <li> ");
    document.write(" <a  href  =  '/turbobygarrett/distributor_locator/distributor_locator.html'  onmouseover  =  'mopen(\"DistributorLocator\")'  onmouseout  =  'mclosetime()'> ");
    document.write(" DISTRIBUTOR  LOCATOR ");
    document.write(" </a> ");
    document.write(" <div  id  =  'DistributorLocator'  onmouseover  =  'mcancelclosetime()'  onmouseout  =  'mclosetime()'> ");
    document.write(" <a  href  =  '/turbobygarrett/distributor_locator/distributor_locator.html'><b><font  color  =  'red'>  ::  </font></b> Garrett  Distributors</a> ");
    document.write(" <a  href  =  '/turbobygarrett/distributor_locator/garrett_kit_manufacturers.html'><b><font  color  =  'red'>  ::  </font></b> Kit  Manufacturers</a> ");
    document.write(" </div> ");
    document.write(" </li> ");
    document.write(" </ul> ");
    document.write(" </td> ");
    document.write(" <td> ");
    document.write(" <ul  id  =  'sddm'> ");
    document.write(" <li> ");
    document.write(" <a  href  =  '/turbobygarrett/turbo_application_search/turbo_search.jsp'  onmouseout  =  'mclosetime()'> ");
    document.write(" &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
    document.write(" TURBO APPLICATION SEARCH ENGINE <font color = 'red' family = 'Arial'>>>>></font> ");
    document.write(" </a> ");
    document.write(" </li> ");
    document.write(" </ul> ");
    document.write(" </td> ");
    document.write(" </tr> ");
    document.write(" <tr bgcolor  = '#4A4A4A' width='100%'> ");
    document.write(" <td  bgcolor  = 'black' width = '100%' colspan = '2'> ");
    document.write(" <img src  = '/turbobygarrett/menu_border.gif' width = '100%' height = '11px'> ");
    document.write(" </td> ");
    document.write(" </tr> ");
    document.write(" <tr bgcolor  = 'black' height = '7px'> ");
    document.write(" <td colspan = '2' bgcolor  = 'black'> ");
    document.write(" &nbsp; ");
    document.write(" </td> ");
    document.write(" </tr> ");
    document.write(" <div  style  =  'clear:both'></div> ");
}
// End of Addition for SR 412976

// Added for SR 34357
function test(pass)
{
  var value = pass;
  window.location = "TurboByGarrett_com - Powermax Distributors.htm#"+pass;
  if(document.all(pass))
  {
    noLoc.innerHTML = "";
  }
  else
  {
    
    noLoc.innerHTML = "I'm Sorry no distributors are listed in the selected state";
    
  }
}

// Addition ends for SR 34357
