(function($) {  
  $.fn.menu = function(options) {  
 
    options = $.extend({}, $.fn.menu.defaultOptions, options);
    
    this.each(function() {
      var nav = $(this);
		nav.find("li").each(function() {
		if ($(this).find("ul").length > 0) {						//show subnav on hover
			$(this).mouseenter(function() {
				$(this).find("ul").stop(true, true).slideDown();
			});
			//hide submenus on exit
			$(this).mouseleave(function() {
				$(this).find("ul").stop(true, true).slideUp();
			});
		}
	});
	});        
    
    return this;
  };
  
  //Public Function
  
  
  
  
  $.fn.menu.defaultOptions = {
    
  }
})(jQuery);
