$(document).ready( function()
{
  
  $('#menu li').mouseover( function()
  {
    $('.submenu').hide();
    if ( $(this).find('.submenu').length == 1 )
    {
      $(this).find('.submenu').show();
    }
  });


});
