 /*-------------------------------------------------------------------- 
 jQuery Plugin : eqHeight
 by Steve Morton of Groove Commerce (http://www.groovecommerce.com)
 based on EqualHeights plugin by Filament Group (http://www.filamentgroup.com)
 
 Sets the min height of the immediate children of a specified element to that
 of the tallest child in the set.
 
 $(element).eqHeight();
--------------------------------------------------------------------*/

 (function($)
 {
     $.fn.eqHeight = function()
     {
         var minHeight = 0;
         $(this).children().each(function()
         {
             if ($(this).height() > minHeight)
             {
                 minHeight = $(this).height();
             }
         });
         $(this).children(arguments[0].restrictTo).css("min-height", minHeight);

         return this;
     };
 })(jQuery);
