var EditorialOverlay = function (id) {
	this.overlay = new Overlay(id, {	width: "750px",
										draggable: true,
										visible: false,
										zindex: 1000,
										fixedcenter: true,
										constraintoviewport: true
	});

	// Imposta la modalità debug
	this.overlay.debugMode = YAHOO.env.ua.gecko > 0;
	
	// Chiamata Ajax
	
	this.overlay.scriptUrl="http://"+ location.hostname +"/editorial/read/";
	
	this.ajaxCall = function (ed_key) {
		
		//alert(ed_key);
		this.overlay.scriptUrl += ed_key+"/ajax/";
		this.overlay.setContentByAjax('editorial_key='+ ed_key + '/ajax', null, null, this);
		
	};
		
	this.show = function (anchorShow, text, anchorHide) {
		this.overlay.show(null, this.overlay.generateOverlay(text), null);
	};
};