var mecPHPPlugin = new Class({

	Implements: [Options, Events],
	options: {
		cEvents:[]
	},
	initialize: function(options){
		this.setOptions(options);
	},
	getEvents: function(that,eventRangeStart,eventRangeEnd){
		var thisObj = this;
		new Request.JSON({
			method: 'get',
//			url: 'rpc/rpc.php?className=Events&procedure=feedCalendar',
			url: 'rpc/rpc.php?className=Events&procedure=feedCalendar2',
			onComplete: function(response){
				var cevents=response.data;
				that.options.cEvents = cevents;
				that.gotEvents = true;
				$('loading').fade('out');
				that.loadCalEvents();
			}
		}).send('startDate=' + eventRangeStart.ymd() + '&endDate=' + eventRangeEnd.ymd());
	}
});
