NameDay = Class.create();
Object.extend(NameDay.prototype, WebControl.prototype);

Object.extend(NameDay.prototype,
    {
        initialize : function(config)
        {
            WebControl.prototype.initialize.call(this, config);
            var thisClass = this;
            
            this.config.Show = function()
            {
                var nameDayData = ActionHandler.GetResponse(
                {
                    url: "Components/NameDay/NameDayActionHandler.php",
                    action: "GetNameDayData"
                });
                
                var label = new Element("h1");
                label.innerHTML = nameDayData.dateAndDay;
                $(thisClass.config.container).insert(label);
                
                var label = new Element("h1");
                label.innerHTML = nameDayData.name;
                $(thisClass.config.container).insert(label);
            }
        }
    }
);
