$(window).load(function(){if($("#schoolIntro").length>0){$("#containerDiv3").css({height:"75px",top:225})}if($("#messageFromThe").length>0){$("#containerDiv4").css({height:"75px",top:225+$("#schoolIntroWrap").height()+15})}if($("#latestNews").length>0){$("#containerDiv5").css({height:"75px",top:225+$("#schoolIntroWrap").height()+15+$("#messageFromTheWrap").height()+15})}if($("#upcomingEvents").length>0){$("#containerDiv6").css({height:"75px",top:225+$("#schoolIntroWrap").height()+15+$("#messageFromTheWrap").height()+15+$("#latestNewsWrap").height()+15})}var a=$("#nav").height();if($("#schoolIntro").length>0){$("#miscNavOuter").css("min-height",$("#main").height()-$("#mainNavWrap").height()-28)}else{if(a<$("#main").height()){$("#miscNavOuter").css("min-height",$("#main").height()-$("#mainNavWrap").height()-33)}else{var b=$("#main").height();var c=Math.max(a,b);$("#mainContent").css("min-height",c-10)}}});