RISE.MStatus = SZN.ClassMaker.makeClass({
	NAME: "MStatus",
	VERSION: "1.0",
	CLASS: "class",
	EXTEND: RISE.Module
});
RISE.MStatus.prototype.$constructor = function(mid,mn,mp) {
	var mn = mn;
	var mp = mp;
	var mid = mid;
	this.Module(mid,mn,mp);
	var self = this;
	self.status = $('#'+self.mid);

	self.hideEvent = function(event){ return self.hide(this,event); }
	self.showEvent = function(event){ return self.show(this,event); }
	self.loadingEvent = function(event){ return self.loading(this,event); }

	$(self.status).bind('ajaxStart',self.showEvent);
	$(self.status).bind('ajaxStop',self.hideEvent);
	
}

RISE.MStatus.prototype.show = function(elm,event){
	this.status.addClass('mStatus-loading');
	this.status.fadeIn('normal');
}
RISE.MStatus.prototype.hide = function(elm,event){
	this.status.fadeOut('normal');
}
