/* resize the content to make sure it always fills the page */
$(document).ready(function() {
    sizeContent();
    $(document).resize(function() {
        sizeContent();
    });
});
var headerHeight = 0;
function sizeContent() {
    if (headerHeight == 0) {
        headerHeight = $('#header').height();
    }
    var $content = $('#content');
    var windowHeight = $(window).height();
    if ($content.height()+headerHeight < windowHeight) {
        $content.css('height', windowHeight-headerHeight);
    }
}
