function LoadCalendar(calendarId, year, month) {
    jQuery('#calendar').html('<img src="/images/loading.gif" alt="Loading..." />');
    jQuery.post(
        "/IA/Calendar.ashx",
        jQuery.param({
            calendarId: calendarId,
            year: year,
            month: month
        }),
        function(response) {
            jQuery('#calendar').html(response);
            // See source code: http://plugins.jquery.com/project/bt
            jQuery('.show-tooltip').each(function() {
                jQuery(this).bt({
                    padding: 10,
                    width: 320,
                    spikeLength: 9,
                    spikeGirth: 9,
                    cornerRadius: 0,
                    fill: 'rgba(0, 0, 0, .8)',
                    strokeWidth: 2,
                    strokeStyle: { color: '#FFF' },
                    cssStyles: { color: '#FFF' }
                });
            });
        }
    );
}
function LoadMasterCalendar(StartDate, EndDate) {
    jQuery('#calendar').html('<img src="/images/loading.gif" alt="Loading..." />');
    jQuery.post(
        "/IA/Calendar.ashx",
        jQuery.param({
            StartDate: StartDate,
            EndDate: EndDate
        }),
        function(response) {
            jQuery('#calendar').html(response);
            // See source code: http://plugins.jquery.com/project/bt
            jQuery('.show-tooltip').each(function() {
                jQuery(this).bt({
                    padding: 10,
                    width: 320,
                    spikeLength: 9,
                    spikeGirth: 9,
                    cornerRadius: 0,
                    fill: 'rgba(0, 0, 0, .8)',
                    strokeWidth: 2,
                    strokeStyle: { color: '#FFF' },
                    cssStyles: { color: '#FFF' }
                });
            });
        }
    );
}

