function initmenu()
{
    var $ = INTEL.jquery; 
    menu  = $(".secondary-nav-focus").html();
    $(".mod-secondary-navigation-inner ul").hide();
    
     // standardize the pathname, if no filename, add index.htm
    var loc = location.pathname.replace(/\/$/,"\/index.htm").toLowerCase();
    var nav;
    // use the inner html of the menu item to determine which main menu item to hide
      nav = $(".secondary-nav-focus").attr("id").replace(/LHN-/,"").toLowerCase();

      //backward compatibility
      nav1 = $(".secondary-nav-focus").html().replace(/\s*$/,"").toLowerCase();

    
    $("#LHC-"+nav.replace(/\s+/g,"-")+"-menu").hide();
    $("#LHC-"+nav1.replace(/\s+/g,"-")+"-menu").hide(); 
    
    // turn off any third level nav that was already on

    
  	// set the current menu item to be "focused"
  	// due to case sensitivity we need to look at each href manually as opposed to using 
  	// css selector code
  	$(".mod-secondary-navigation-inner a").each(function()
  	{
        href = $(this).attr("href").toLowerCase();
        if ($.trim(href) == $.trim(loc))
        {
           $(this).addClass('secondary-nav-focus')
        }
    });
   //  $(".mod-secondary-navigation-inner a[href^='"+loc+"']").addClass('secondary-nav-focus') //.addClass('secondary-nav-current');

    var id = $(".mod-secondary-navigation").attr("id").split("-");

    if ( !id[0].match(/^\s*$/))
    {  // handle tab pages to turn the parent menu of the tabs on
        $(".mod-secondary-navigation-inner a."+id[0]).addClass('secondary-nav-focus') //.addClass('secondary-nav-current')
    }
    // see if there is a third level name 
    if (id.length > 1)
    {
        if ( !id[1].match(/^\s*$/))
        {  // handle tab pages to turn the parent menu of the tabs on
            $("a."+id[1]).addClass('secondary-nav-focus') //.addClass('secondary-nav-current')
        }
    }
	
    // now turn on any third level nav
    //$(".secondary-nav-current").next().show();
	$(".secondary-nav-focus").next().show();
    
    // turn off the top border on the first a tag - it is the page nav at the top of the left hand channel
    $(".secondary-nav-focus").css("border-top","none");    
    // turn the visibility on now.  Note that this keeps the menu from jumping around
  	$(".mod-secondary-navigation").css("visibility","visible");

    // find the first visible sub menu item and turn off its top border
    $("#LHC-menu-list a:visible")[0].className="firstMenu";

  	// find the last visible sub menu item and turn off its bottom border
    $("#LHC-menu-list a:visible")[$("#LHC-menu-list a:visible").length-1].className="lastMenu";

    // on nolink sections (see jobs at intel) hide and show ul when link is clicked
    $(".mod-secondary-navigation-inner .nolink").click(function()
    {
      // slide all up
	  $(".mod-secondary-navigation-inner .navOpen").next().slideUp();
	  if ($(this).attr("class").match(/navOpen/)) //already open close it and remove navOpen
	  {
		  $(this).next().slideUp();
		  $(".navOpen").removeClass("navOpen")
	  }
	  else
	  {
      $(".navOpen").removeClass("navOpen")
		  $(this).addClass("navOpen").next().slideDown();
	  }
	  
      return false;
    });
   
}
    

