// jQuery(document).ready(function() {
jQuery(function($) {
 //Rounded corners on boxcontent
   $(".boxcontent").wrap('<div class="boxcorner"></div>')
   .parent()
     .prepend('<div class="boxtop"></div>')
     .append('<div class="boxbottom"></div>');
   $(".boxtop,.boxbottom").prepend('<div></div>');
});

jQuery.fn.vjustify=function() {
    var maxHeight=0;
    this.each(function(){
        if (this.offsetHeight>maxHeight) {maxHeight=this.offsetHeight;}
    });
    this.each(function(){
        $(this).height(maxHeight + "px");
        if (this.offsetHeight>maxHeight) {
            $(this).height((maxHeight-(this.offsetHeight-maxHeight))+"px");
        }
    });
};

jQuery(function($) {
       $(".boxcontent").vjustify();
});    

