$(document).ready(function()
{
    initialize_resize_image_container();
    initialize_check_resolution();

    $(window).resize(function ()
    {
        initialize_check_resolution();
    });
});

function initialize_resize_image_container()
{
    var document_height        = $(document).height();
    var header_height          = $("#header").outerHeight(true);
    var footer_height          = $("#footer").outerHeight(true);
    var image_container_height = 0;   

    if (document_height != 0 && document_height != null)
    {
        image_container_height = document_height - header_height - footer_height;

        $("#image_container img").height(image_container_height);
    }
}

function initialize_check_resolution()
{
    if ($(window).width() < 1200)
    {
        
    }
    else
    {
        
    }
}

function open_pop_up(path, name, width, height)
{
    var centerWidth  = (window.screen.width - width) / 2;
    var centerHeight = 200;

    window.open(path, name, 'width=' + width + ', height=' + height + ', scrollbars=yes, left=' + centerWidth + ', top=' + centerHeight);

    return false;
}
