

$(document).ready(function () {
    $("body").supersleight();

    $(window).resize(DoLayoutBottomFooter);
    $(window).load(DoLayoutBottomFooter);
});



function DoLayoutBottomFooter() {
    var availableHeight = $(window).height();
    $("#divCentre").height(availableHeight + "px");
    $("#divLeft").height(availableHeight + "px");
    $("#divRight").height(availableHeight + "px");

    var mainHeight = availableHeight - $("#divHeader").outerHeight(true) - $("#divFooter").outerHeight(true);
    $("#divContentScroll").height(mainHeight + "px");

}


