$(document).ready(function(){
    var column = $('#presentation_en_colone');
    var show = true;
    if((column.children().length > 0) && (show == true)){        
        var  columnR, clear;
        var sumHeight = 0;
        var sumHeightChildren = 0;
        var limit = 0;
        var widthColumn = Math.round(column.width()/2)-15;
        column.css({'float':'left','width' : widthColumn+'px'});
        columnR = column.clone().empty().addClass("col2").removeAttr("id");    
        column.children().each(function () {sumHeight += $(this).height();});
        limit = sumHeight/2;
        column.children().each(function (key) {
            sumHeightChildren += $(this).height();
            if(( (sumHeightChildren-$(this).height() ) > limit) && (key > 0) ){
                $(this).appendTo(columnR);
            }
        });
        columnR.insertAfter(column).after('<div class="clear"></div>');
    }    
});

function p(x){
    console.log(x);
}
