DAL = {
    getSchedules: function() {
	    $('#loading').show();
	    $.getJSON('/Services/Schedules.ashx?GetSchedules', function(data) { 
		    DAL.bind(data);
		    $('#loading').hide();
	    });
    },
    getCalendar: function(id) {
        $('#loading').show();
	        $.getJSON('/Services/Schedules.ashx?GetCalendar', {id: id}, function(data) { 
	        DAL.bind(data);
	        $('#loading').hide();
        });
    },
    bind: function(data) {
        $.get('./assets/jst/meetingList.v120.jst?v=' + (new Date()).valueOf(), function(templateData) {
	        try { 
		        var template = TrimPath.parseTemplate(templateData);
		        $('#schedules').html(template.process(data));
	        } catch(e) { if (console && console.error) { console.error(e); } }
        });
    }
}