/* 

  Main menu script
  
  This help the rollover effect of the main menu. When there is a mouseover on the dropdown
  it changes the class of it's parent list item (LI) to a hover-look state.
  
  Travis J. Todd
  Sept 11, 2008
  
*/

$(document).ready(function(){
  $('#menu > li ul').hover( function() { 
    $(this).parents("li").addClass("over"); 
  },function(){
    $(this).parents("li").removeClass("over");
  });
  
  $(".tour_toggle_open").click(function() {
    $("#tour").toggle();
    pageTracker._trackEvent("Sidebar", "Tour", "Open");
  });
  
  $(".about_open").click(function() {
    $("#tour").toggle();
    pageTracker._trackEvent("Sidebar", "Tour", "Open About");
  });
  
  $(".tour_toggle_close").click(function() {
    $("#tour").toggle();
    pageTracker._trackEvent("Sidebar", "Tour", "Close");
  });
  
  $("#query").focus(function() {
    $(this).css("color", "#838074");
    $(this).val("");
  });
  
});