/**
 *	Boost Calendar
 *
 *	Extend the default mini-calendar with some jQuery Javascript
 *
 *	@author Benjamin Falk <bfalk@golden-tech.com>
 *
 */

jQuery(document).ready(function(){
	
	// We love pointers
	jQuery('#calendar-mini td.event').css('cursor', 'pointer');
	
	jQuery('#calendar-mini td.event').click(function(){
		var href = jQuery(this).find('.eventcontent a:first').attr('href');
		window.open(href, 'CalendarWindow', 'width=600,height=500');
	});

	jQuery('#calendar-mini td.event').tooltip({
		bodyHandler : function(){
			var content = '';
			jQuery(this).find('.eventcontent').each(function(){
				content += jQuery(this).html();
			});
			return content;
		}
	});
	
	
});
