﻿$("document").ready(resizeBackgroundDiv);

function popup(url, name, options) {
    window.open(url, name, options);
}

function resizeBackgroundDiv() {
    // The background image is only 2184px high, so if the
    // page content is larger than that, we need to use the
    // background div to fill the rest of the background
    if ($(document).height() > 2184) {
        $("#background").css("top", "2184px");
        $("#background").height($(document).height() - 2184)
    }
    else {
        $("#background").css("visibility", "hidden");
    }
}