$(document).ready(function(){$(window).load(function(){resizeHeight()});$("#add_event").click(function(){resizeHeight()});$("#add_latestnews").click(function(){resizeHeight()})});function resizeHeight(){var d=$("#siteInfoWrap").height();$("#content").css("min-height",$("#content").height()+d);var b=$("#content").height();var c=$("#mainNavWrap").height();var a=$("#miscNavWrap").height();if(b>(c+$("#miscNavWrap").height())){$("#miscNavOuter").css("min-height",b-c-$("#miscNavWrap > .wrapTop").height()-40)}else{if($("#newsEventsWrap").length>0){$("#newsEventsWrap").css("min-height",c+a-$("#schoolIntroWrap").height()-$("#messageFromTheWrap").height())}else{$("#main").css("min-height",c+a-d)}}};