$(window).load(function() {		   
	var maxHeight = $("#sidebar1").height()
	if ($("#sidebar1").height() < $("#mainContent").height())
		maxHeight = $("#mainContent").height()
	if ((maxHeight < ($(window).height()-318)) && jQuery.browser.msie)
		maxHeight = $(window).height() - 318;							   
	else if (maxHeight < ($(window).height()-302))
		maxHeight = $(window).height() - 302;	
		
	$("#sidebar1").height(maxHeight)
	$("#mainContent").height(maxHeight)
});
