var ShowmmsOverlay = function (id) {
	this.overlay = new Overlay(id, {	width: '350px',
										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), null);
	};
	
	this.stepOne = function (overlay, message, content_id, message_id) {
		// this.show è il text che viene richiamato nell'html
		this.overlay.scriptUrl = "http://" +  conf.baseUrl + "/overlay_manager/visualizza_mms";
		
		var actionString = "message=" + message + "&content_id=" + content_id + "&message_id=" + message_id;
		
		// definisce cosa fare nello step 2, in realtà chiama step 2
		this.overlay.setContentByAjax(actionString, null, null, this);		
	};
};