// JavaScript Document
OverlayMessage = function ( container )
    {
    // Terminology:
    // +-----------------+
    // |wrapper          |
    // |+---------------+|
    // ||container      ||
    // ||   +-------+   ||
    // ||   |overlay|   ||
    // ||   +-------+   ||
    // ||               ||
    // |+---------------+|
    // +-----------------+

    // Get the parent.
	
    var parent = container.parentNode;

    // Make the wrapper div.
    var wrapper = document.createElement( 'div' );
    wrapper.style.cssText = container.style.cssText;
    parent.insertBefore( wrapper, container );

    // Move the container into the wrapper.
    parent.removeChild( container );
    wrapper.appendChild( container );
    container.style.cssText = 'position: relative; width: 100%; height: 100%;';

    // Add the overlay div.
    this.overlay = document.createElement( 'div' );
    wrapper.appendChild( this.overlay );

    //this.backgroundImage = 'url(Updating_Results.png)';
	
	this.overlay.style.position = 'relative';
    this.overlay.style.top = '-60%';
	this.overlay.style.backgroundImage = 'url(Updating_Results.png)';
	this.overlay.style.backgroundRepeat = 'no-repeat';
    this.overlay.style.width = '262px';
    this.overlay.style.height = '129px';	
    this.overlay.style.textAlign = 'center';
    this.overlay.style.marginLeft = 'auto';
    this.overlay.style.marginRight = 'auto';
    //this.overlay.style.padding = '2em';
    this.overlay.style.zIndex = '100';
    //this.overlay.style.opacity = '.75';
    //this.overlay.style.filter = 'alpha(opacity=75)';

    
    };


OverlayMessage.prototype.Clear = function ()
    {
    this.overlay.style.display = 'none';
    };


