$(document).ready(function(){
    if ($('#content div.genericdivcms').length>0){
        var contheight = $('#content').height();
        $('#content div.genericdivcms').each(function(){
            $(this).height("auto");
            var thisdivheight = ($(this).height()+parseInt($(this).css("top")));
            if (thisdivheight>contheight){
                contheight=thisdivheight;
                $('#content').height(contheight+'px');
            }
        });
    }
});



