// reflow page for correct cross-browser footer positioning

function reflow() {
    var bodyouterdiv = document.getElementById("body_outer");
    var bodydiv = document.getElementById("body");

    //alert (document.body.clientHeight + " " + bodyouterdiv.clientHeight + " " + bodydiv.clientHeight);
    bodydiv.style.height = "auto";
    bodyouterdiv.style.height = "auto";

    //make sure #body has a min height of 825
    if (bodydiv.clientHeight < 825) {
        bodydiv.style.height = "825px";
    }

    //adjust #body_outer and #body
    var maxOfHeights = Math.max(document.body.clientHeight, bodydiv.clientHeight);
    if (bodyouterdiv.clientHeight < maxOfHeights) {
        bodyouterdiv.style.height = maxOfHeights + "px";
        bodydiv.style.height = maxOfHeights + "px";
    }
}



// run all necessary functions on page load

function loadAll() {
   reflow();
}
window.onload = loadAll;
window.onresize = reflow;