$(document).ready(function() {
	
	/* Make sure both columns are the same height */
	setEqualHeight($("#sidebar, #main"));
	
	
	/*$("#main #content").bind("resize", function(){
		setEqualHeight($("#sidebar, #main"));
	});*/
	
});


function setEqualHeight(columns) {
	var tallestcolumn = 0;
	
	columns.each(
		function() {
			currentHeight = $(this).height();
			if(currentHeight > tallestcolumn) {
				tallestcolumn  = currentHeight;
			}
		}
	);
	
	columns.height(tallestcolumn);
}




