﻿/*
 * Script that sets the main content to fill the screen so that 
 * the footer is displayed at the bottom.
 *
 * 100308   HE      Initial version
 */

var minsize;

/*
 * Sets the content height
 */
function setContentSize() {
    $("#main").height(Math.max($(window).height() - $("#header").height() - 50, minsize));
    return false;
}

/*
 * First time initialization
 */
$(window).load(function() {
    minsize = $("#main").height();
    setContentSize();
    $("#footer").fadeIn("fast");
    return false;
});

/*
 * Perform on resize
 */
$(window).resize(function() {
    return setContentSize();
});

