function resize( elements ) {
	var footer_height = 140;
	var max_bottom = 0;
	var footer_padding = 25;
	for ( var i = 0 ; i < elements.length ; i++ ) {
		var this_bottom = calculate_bottom( jQuery( '#'+elements[i] ) );

//		alert(this_bottom);
//		alert( 'el='+elements[i]+' b='+this_bottom );
		if ( this_bottom > max_bottom ) {
			max_bottom = this_bottom;
		}
	}
	jQuery(document).height( parseInt( max_bottom + footer_height + footer_padding ) );
	jQuery('#main_uber_content').height( parseInt( max_bottom + footer_height + footer_padding ) );
	jQuery('#main_background').height( parseInt( max_bottom + footer_height + footer_padding ) );
	jQuery('#page_left_pane').height( parseInt( max_bottom + footer_height + footer_padding - 345 ) );
	jQuery('#page_right_pane').height( parseInt( max_bottom + footer_height + footer_padding - 345 ) );
	jQuery('#footer').css( 'top' , parseInt( max_bottom + footer_padding ) );

}

function calculate_bottom( el ) {
	if ( el ) {
		var el_offset = el.offset();
		return el_offset.top + el.height();
	} else {
		return 0;
	}
}
