function srauscmaster_prepCalendar(){
    // calendar round corners
	$('.calendar-body').corner({
		autoPad: false,
		autoAlias: true,
		tl:{radius:8},
		bl:{radius:3},
		tr:{radius:8},
		br:{radius:3}
	});

	// set .calendar-empty div's to row height
	$('.calendar-calendar .month-view table tr').each(function(){
		var rowH = $(this).height();
		$('.calendar-empty', this).css('min-height', rowH+'px');
	});

	// add classes to match psuedo selectors
	$('.calendar-calendar tr:last-child').addClass('last-child');
	$('.calendar-calendar tr td:last-child').addClass('last-child');
	$('.calendar-calendar tr td:first-child').addClass('first-child');
}

// document.reay is sometimes firing too soon???
//$(document).ready(function(){
$(window).load(function(){
    //setTimeout('srauscmaster_prepCalendar();', 200);
    srauscmaster_prepCalendar();
});