var ShowmmsOverlay = function (id) {
	this.overlay = new Overlay(id, {	draggable: true,
										visible: false,
										zindex: 1000,
										fixedcenter: true,
										constraintoviewport: true
	});
	
	// Identifica un overlay a pił passi
	this.overlay.stepOverlay = false;
	
	this.show = function (anchorShow, text, anchorHide) {
		this.overlay.show(null, this.overlay.generateOverlay(text));
	};
	
	this.stepOne = function (overlay, message, content_id, message_id) {
		this.overlay.scriptUrl = "http://" +  conf.baseUrl + "/overlay_manager/visualizza_mms";
		var actionString = "message=" + message + "&content_id=" + content_id + "&message_id=" + message_id;
		this.overlay.setContentByAjax(actionString, null, null, this);
	};
};

OverlayConfiguration.showmms = new ShowmmsOverlay('textOverlay');
OverlayManager.showmms = function (args) {
	OverlayConfiguration.showmms.stepOne('showmms', args[0] , args[1], args[2]);
};