﻿/// <reference path="jquery-1.4.1-vsdoc.js" />
// Intialization of the document (event handlers and properties)
$(document).ready
(
    function ()
    {
        $(document).click
        (
            function ()
            {
                $("#dvResult").css("display", "none");
            }
        );
        // scrolling div with window
        $(window).scroll
        (
            function ()
            {
                var containerDiv = $("#dvFullScreen");
                if (containerDiv != null)
                {
                    containerDiv.height($("body").outerHeight());
                }

                var scrollingDiv = $("#dvInnerScreen");
                if (scrollingDiv != null)
                {
                    scrollingDiv.animate({ "top": ($(document.documentElement).scrollTop() + 200) + "px" }, "fast");
                }

                var dvLoading = $("#dvPleaseWait");
                if (dvLoading != null)
                {
                    //                            alert('hi');
                    dvLoading.css("top", ($(document.documentElement).scrollTop() + 200) + "px");
                }
            }
        );
    }
);

