window.onload = function(){
for(i = 0; i < $('div.box').size(); i += 2){

box = $('div.box:eq('+ i +')');

h_height = box.find('h3').height();
b_height = box.find('div.body').height();

nBox = $('div.box:eq('+ (i + 1) +')');

if(nBox != 'undefined'){

h2_height = nBox.find('h3').height();
b2_height = nBox.find('div.body').height();

if(h_height > h2_height) nBox.find('h3').css('height', h_height + 'px');
else box.find('h3').css('height', h2_height + 'px');

if(b_height > b2_height) nBox.find('div.body').css('height', b_height + 'px');
else box.find('div.body').css('height', b2_height + 'px');

if(nBox.height() % 2 != 0) nBox.css("height", parseInt(nBox.height() + 1) + 'px');

}

if(box.height() % 2 != 0) box.css("height", parseInt(box.height() + 1) + 'px');
}
};
