/**
* name:          jquery-foxicols-0.1.js
* author:        Stefan Benicke - www.opusonline.at
* version:       0.1
* last update:   19.08.2009
* category:      jQuery plugin
* copyright:     (c) 2009 Stefan Benicke (www.opusonline.at)
* license:       GNU GPLv3
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
* documentation: http://www.opusonline.at/foxitools/foxicols/
*/

(function($) {
    $.fn.foxicols = function() {
        $(this).foxireset();
        var highest = 0;

        $(this).each(function() {
            var element_height = $(this).height();
            highest = (highest > element_height) ? highest : element_height;
        });
        $(this).each(function() {
            $(this).height(highest);
        });
    }

})(jQuery);

(function($) {
$.fn.foxireset = function() {

    $(this).each(function() {
        // $(this).height(null);
        $(this).css("height", "100%");
    });
}
})(jQuery);