/**
 * @version		1.5.4 August 20, 2010
 * @author		RocketTheme, LLC http://www.rockettheme.com
 * @copyright 	Copyright (C) 2007 - 2010 RocketTheme, LLC
 * @license		http://www.rockettheme.com/legal/license.php RocketTheme Proprietary Use License
 */

var maxHeight = function(classname) {
    var divs = document.getElements(classname);
    var max = 0;
    divs.each(function(div) {
        max = Math.max(max, div.getSize().size.y);
    });
	divs.setStyle('height', max);
    return max;
};

window.addEvent('load', function() { 
	if (!window.ie6) {
		maxHeight('#mainmodules .block div div div');
		maxHeight('#mainmodules2 .block div div div');
	};
	maxHeight('div.main-height');
});
