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;
var maxHeight = function(classname) {
var divs = document.getElements(classname);
var max = 0;
divs.each(function(div) {
max = Math.max(max, div.getSize().y);
});
divs.setStyle('height', max);
return max;
};
window.addEvent('load', function() {
if (!Browser.Engine.trident4) {
maxHeight('#mainmodules .block div div div');
maxHeight('#mainmodules2 .block div div div');
};
maxHeight('div.main-height');
});
/* Commented out for expanding left Column Module
window.addEvent('load', function() {
if (!window.ie6) {
maxHeight('#mainmodules .block div div div');
maxHeight('#mainmodules2 .block div div div');
};
maxHeight('div.main-height');
});
*/
window.addEvent('load', function() {
maxHeight.delay(2000, maxHeight, 'sameheight');
});
Time to create page: 0.088 seconds