/*
 * jQuery Beauty Tips (jquery.bt.js) on the "group exercise" pages
 * @example
 * <div title="Cycling" instructor="Jane" description="This is a description.." time="9am - 10am" price="$100 for 1 year">Cycling, 9am - 10am</div>
 */
jQuery.fn.getScheduleToolTipHTML = function() {
	var html = '';
	html += '<h2 style="margin-top: 0px; padding-top: 0px">' + $(this).attr('name') + "</h2>";
	if ($(this).attr('time'))        html += "<strong>Time:</strong> "       + $(this).attr('time') + "<br />";
	if ($(this).attr('instructor'))  html += "<strong>Instructor:</strong> " + $(this).attr('instructor') + "<br />";
	if ($(this).attr('price'))       html += "<strong>Price:</strong> "      + $(this).attr('price') + "<br />";
	if ($(this).attr('description')) html += "<p>" + $(this).attr('description') + "</p>";
	return html;
};

$('.exercisecalendar div').bt({
	titleSelector: "getScheduleToolTipHTML()",
	fill: "rgb(233, 246, 251)",
	width: '325',
	strokeStyle: '#999',
	animate: !$.browser.msie
});
