function component_EventIndexCalendar(auto_id)
{
	this.DOMConstruct('EventIndexCalendar', auto_id);
	
	var handler = this;
	
	this.references = [];
	
	this.delegates = {
	};
}

component_EventIndexCalendar.prototype =
	new SK_ComponentHandler({
		
		construct : function(){
			var handler = this;

			this.$('#events a').bind( 'click', function(){
				handler.$('#events').addClass('active');
				handler.$('#events a').addClass('active');				
				handler.$('#calendar').removeClass('active');
				handler.$('#calendar a').removeClass('active');
				handler.$('#calendar_cont').hide();
				handler.$('#list_cont').show();
			} );
			
			this.$('#calendar a').bind( 'click', function(){
				handler.$('#events').removeClass('active');
				handler.$('#events a').removeClass('active');				
				handler.$('#calendar').addClass('active');
				handler.$('#calendar a').addClass('active');
				handler.$('#list_cont').hide();
				handler.$('#calendar_cont').show();
			} );
			
		}
		
		
	});
