var __calendar = {
	init: function() {
		this._bindTipEvent();
	},
	_bindTipEvent: function() {
		$('.cal td a').hover(function() {
			$(this).parent().find('.cal-tip').fadeIn();
		}, function() {
			$(this).parent().find('.cal-tip').fadeOut();
		});
	},
	load: function(source, section, year, month, container, url) {
		$('#'+source+'-'+container+' .cal-loader').show();
		$.get(this.baseUrl+source+'/', {section:section, year:year, month:month, container:container, url:url}, function(data) {
			$('#'+source+'-'+container).html(data);
			__calendar._bindTipEvent();
			$('#'+source+'-'+container+' .cal-loader').hide();
		});
	}
};
__calendar.init();
