(function($) {
// Sets list elements to equal height
$.fn.equalHeight = function(options) {
   var opts = $.extend({}, $.fn.equalHeight.defaults, options);

   return this.each(function() {
      var $$ = $(this);
      
      var maxHeight = 0;

      $$.find('.product-box').each(function(){
         var $this = $(this).find('p');
         
         if(maxHeight < $this.height())
            maxHeight = $this.height();
      }).find('p').height(maxHeight);
   });
};

// default options
$.fn.equalHeight.defaults = {
};

})(jQuery);

