function setFrontBottomModulesHeight(){
    var regexp = new RegExp("_mod([0-9]+)$");
    
    if ($$('.jm-module')) {
        var modules = $$('.jm-module');
        modules.each(function(element){
            var match = regexp.exec(element.className);
            if (match) {
                var modHeight = parseInt(match[1]);
                var module_in = element.getElement('.jm-moduleIn');
                if (module_in) {
                    module_in.setStyle('height', modHeight);
                }
            }
        });
    }
    
}

window.addEvent('domready', function(){
    setFrontBottomModulesHeight();
});

