var Calendar = new Class({

	initialize: function(){
		
	},
	
	getCalender: function( month, year ){
		this.log('getting calendar');
		var req = new Request.HTML({url:'?getcalendar&cm='+month+'&cy='+year, 
			onSuccess: function(html) {
					gallery.log('calender loaded, show');

					$('calendar-holder').set('html', '');
					$('calendar-holder').adopt(html);
			},
			onFailure: function() {
				gallery.log('failed getting html');
			}
		});
		req.send();
		
	},
	
	log: function( msg ){
		try{
			console.log( msg );
		}catch(e){
			// skip its prob just not running firebug
		}
	}
});

var calendar = new Calendar();