﻿// JScript File
function Waiting(ID, Top, Left)
{
    //
    //
    //
    this.DisplayFloatingDiv = 
        function () 
        {
            var left = this.Left;
            var top = this.Top;
            if(this.Top == '')
            {
                top = screen.height / 3;
            }
            else
            {
            }
            if(this.Left == '')
            {
                left = screen.width / 3;
            }
                
            this.Dimmer.style.visibility = 'visible';
	        this.Flash.style.visibility = 'visible';
	            
            this.Flash.style.left = left + 'px';
            this.Flash.style.top = top + 'px';

            this.Flash.className = 'dimming';
	        this.Flash.focus();
        }

    //
    //
    //
    this.HiddenFloatingDiv = 
        function () 
        {
	        this.Dimmer.style.visibility = 'hidden';
	        this.Flash.style.visibility = 'hidden';
        }
    
    this.ID = ID;
    this.Top = Top;
    this.Left = Left;
    this.Dimmer = document.getElementById(this.ID + '_dimmer');
    this.Flash = document.getElementById(this.ID + '_flash');
}
