﻿function taille_blocs_1_2(){
    var contHome = document.getElementById("ContenuCentreHome");
    var countPanRessource = 1;
    var div1;
    var div2;
    if(contHome != null){
        for(var i=0;i<contHome.childNodes.length;i++){
            if((String(contHome.childNodes[i].id).indexOf("_PanRessource") != -1 || String(contHome.childNodes[i].id).indexOf("_panContenuLibre") != -1) && countPanRessource<3){
                if(document.getElementById(String(contHome.childNodes[i].id)) != null){
                    if(countPanRessource == 1){
                        div1 = document.getElementById(String(contHome.childNodes[i].id));
                    }
                    if(countPanRessource == 2){
                        div2 = document.getElementById(String(contHome.childNodes[i].id));
                    }
                }
            countPanRessource++;
            }
        }
    }
    if(div1 != null && div2 != null){
        var mxheight = Math.max(div1.offsetHeight, div2.offsetHeight);
        div1.style.minHeight=mxheight+"px";
        div2.style.minHeight=mxheight+"px";
    }
}
