/* `vjustify` plugin, by Michael Futreal
 * See: http://michael.futreal.com/jquery/vjustify
 *
 * Performs vertical justification (one of the items that's difficult in
 * CSS layouts that tables make easy).
 *
 * ``$(".row1-layout-column").vjustify();`` will make all items with class
 * `row1-layout-column` be of equal height.
 */
jQuery.fn.vjustify=function() {
    var maxHeight=0;
    this.each(function(){
        if (this.offsetHeight>maxHeight) {maxHeight=this.offsetHeight;}
    });
    this.each(function(){
        jQuery(this).height(maxHeight + "px");
        if (this.offsetHeight>maxHeight) {
            jQuery(this).height((maxHeight-(this.offsetHeight-maxHeight))+"px");
        }
    });
};
