// the menu uses the hoverIntent plugin (http://cherne.net/brian/resources/jquery.hoverIntent.html)
$(document).ready(function() {
  $('#nav > li').each(function(){
    offset = $(this).height();
    $(this).children('ul').css({
      'position' : 'absolute',
      'top' : offset + 'px'
    });
  });
  $('#nav > li:not(li#packages)').each(function(){
    width = 180;
    $(this).children('ul').css({
      'width': width + 'px'
    });
  });
  $('#nav > li:not(li#packages)').hoverIntent({
    sensitivity: 5, 
    interval: 50, 
    over: function() {
      $(this).addClass('active');
      $(this).children('ul').show();
    },
    timeout: 150, 
    out: function() {
      $(this).removeClass('active');
      $(this).children('ul').hide();
    }
  });
});

