/* dropdown menu */
(function($) {
  $.fn.dropDownMenu = function(options) {
    settings = $.extend(true, {
      fade_in: 500,
      fade_out: 100,
      a_class: 'menuhover',
      not_active: false
    },
    options);

    $(this).find((settings.not_active ? 'li:not(.active) ' : '') + 'ul').filter(function() {
      $(this).parent().hover(
        function() {
          $(this).find('a:first').addClass(settings.a_class);
          $(this).find('ul:first').fadeIn(settings.fade_in);
        },
        function() {
          $(this).find('ul').fadeOut(settings.fade_out);
          $(this).find('a:first').removeClass(settings.a_class);
        }
      );
    });
    return this;
  };
})(jQuery);
/* /dropdown menu */

