var TextOverlay = function (id) {
	this.overlay = new Overlay(id, {	width: "420px",
										draggable: true,
										visible: false,
										zindex: 1000,
										fixedcenter: true,
										constraintoviewport: true
	});

	this.overlay.showEffect = { on: "mouseover",
								delay: 1
	};
	
	// Imposta la modalità debug
	this.overlay.debugMode = true;
	
	this.registerTransitions = function (anchor, text) {
		this.overlay.registerTransitions(anchor, this.overlay.generateOverlay(text), this.overlay.YUIoverlay.id);
	};
};