$(document).ready(function() {
  $('li#search').hover(function() {
    $('ul#sub').show();
  },
  function() {
    $('ul#sub').hide();
  });
});
