/* 
	Looks at heights of the blocks on the home page and addes top padding to "footerLinks" 
	so everything fits if there isn't enough content for it all to line up
*/
function checkBlockHeights() {
	// height of the "sports" floating right column.
	var block_home_right_column_include_height = parseInt(document.getElementById('home_right_column_include').offsetHeight);
	
	// height of blocks that are on the left of the right column
	var block_home_top_include_height = parseInt(document.getElementById('home_top_include').offsetHeight);
	var block_HomeBCverity_search_container_height = parseInt(document.getElementById('HomeBCverity_search_container').offsetHeight);
	var block_homeNews_height = parseInt(document.getElementById('homeNews').offsetHeight);
	var block_home_page_content_container_height = parseInt(document.getElementById('home_page_content_container').offsetHeight);
	var block_home_page_cb_includes_height = parseInt(document.getElementById('home_page_cb_includes').offsetHeight);

	// define minimums
	var minimum_height_required = 1 * (block_home_right_column_include_height + 20);
	var combined_left_side_height = 1 * (block_home_top_include_height + block_HomeBCverity_search_container_height + block_homeNews_height + block_home_page_content_container_height + block_home_page_cb_includes_height);

	if (combined_left_side_height < minimum_height_required) {
		var amount_to_increase_height = minimum_height_required - combined_left_side_height + 20;
		/*
		alert("Right Height: " + block_home_right_column_include_height +
			"\nLeft Combined Height: " + combined_left_side_height +
			"\nAmount to increase height by:" + amount_to_increase_height);
		*/
		document.getElementById('footerLinks').style.paddingTop = amount_to_increase_height + "px";
	}
	
}

