$(document).ready( function() {
  $('#nav div').hover( function() {
    $(this).children('ul').show();
  }, function() {
    $(this).children('ul').hide();
  });
});
