﻿(function($) {
    $.fn.flatHeight = function(target) {
        return this.each(function() {
            $.flatHeight(this, target);
        });
    };

    $.flatHeight = function(elm, target) {
        var maxHeight = 0;
        $(target, elm).each(function () {
            var height = $(this).height();
            if (height > maxHeight) maxHeight = height;
        });
        $(target, elm).height(maxHeight);
    };
    
    
    
})(jQuery);


