var AbuseReportOverlay = function (id) {
	this.overlay = new Overlay(id, {	width: '420px',
										draggable: true,
										visible: false,
										zindex: 1000,
										fixedcenter: true,
										constraintoviewport: true
	});

	// Identifica un overlay a pił passi
	this.overlay.stepOverlay = true;
	
	this.overlay.color = 'rosso';
	
	this.show = function (anchorShow, text, anchorHide) {
		this.overlay.show(null, this.overlay.generateOverlay(text), null);
	};
	
	this.stepOne = function (overlay, t_nick, t_profile_id, abuse_id, content_id, abuse_type, text) {
		this.overlay.scriptUrl = "http://" + conf.baseUrl + "/overlay_manager/segnala_" + abuse_type;
		var actionString = 'overlay=' + overlay + '&t_nick=' + t_nick + '&t_profile_id=' + t_profile_id + '&abuse_id=' + abuse_id + '&content_id=' + content_id + '&text=' + text;
		this.overlay.setContentByAjax(actionString, null, null, this);
	};
	/*
	this.stepTwo = function (overlay, t_nick, t_profile_id, abuseId, contentId, contentType, text) {
		this.overlay.scriptUrl = "http://"+ conf.baseUrl +"/gui_manager/segnala_" + contentType;		
		var actionString = 'overlay=' + overlay + '&t_nick=' + t_nick + '&t_profile_id=' + t_profile_id + '&abuse_id=' + abuseId + '&content_id=' + contentId + '&content_type=' + contentType + '&text=' + text;;
		this.overlay.stepTwo(actionString, null, null, this);		
	};*/
	
	this.stepTwo = function (overlay, formName, contentType) {
		this.overlay.scriptUrl = "http://"+ conf.baseUrl +"/gui_manager/segnala_" + contentType;
		this.overlay.setContentByAjax('', null, null, this, formName, true);
	};
};