Loading = Class.create();
Object.extend(Loading.prototype, WebControl.prototype);

Object.extend(Loading.prototype,
    {
        initialize : function(config)
        {
            WebControl.prototype.initialize.call(this, config);
            
            var thisClass = this;
            
            // Show
            this.config.Show = function()
            {
                $(thisClass.config.container).hide();
                var img = new Element("img");
                img.src = "Themes/DefaultImages/loading.gif";
                $(thisClass.config.container).insert(img);
                $(thisClass.config.container).insert("<h6>Töltés...</h6>");
                //Utils.CenterScreen($(thisClass.config.container));
            };
            
            // Add Events
            this.config.AddEvents = function()
            {
            };
        },
        
        Start : function()
        {
            $(this.config.container).show();
        },
        
        Stop : function()
        {
            $(this.config.container).hide();
        }
    }
);

