var Ctrl_Calendar_Calendar = Class.extend({
    
    init: function(data) {
        for (var name in data) {
            this[name] = data[name];
        }
        
        this._hidden = false;
    },
    
    getEvents: function() {
        return EventModel.calendar[this.ID] || [];
    },
    
    show: function() { 
        this._hidden = false;
        jQuery.each(this.getEvents(), function(){ this.show() }); 
    },
    
    hide: function() { 
        this._hidden = true;
        jQuery.each(this.getEvents(), function(){ this.hide() }); 
    }
    
});
