	function Titolo(id, text, color, size, bold, italic, underline, coorX, coorY, link_type, link, admin) {
		this.id = id;
		this.text = text;
		this.color = color;
		this.size = size;

		if(bold == 1) this.bold = "bold";
		else this.bold = "normal";

		if(italic == 1) this.italic = "italic";
		else this.italic = "normal";

		if(underline == 1) this.underline = "underline";
		else this.underline = "none";

		this.coorX = coorX;
		this.coorY = coorY;
		this.link_type = link_type;
		this.link = link;
		this.admin = admin;


		if(this.admin) {
			this.codice = "<div id=tit_" + this.id + " onmousedown=move(this.id) style=cursor:pointer;position:absolute;top:" + this.coorY + ";left:" + this.coorX + ">";
				this.codice += this.getCodiceTit();
			this.codice += "</div>";
		}
		else {
			this.codice = "<div id=tit_" + this.id + " style=position:absolute;top:" + this.coorY + ";left:" + this.coorX + ">";
				this.codice += this.getCodiceTit();
			this.codice += "</div>";
		}

		titoli[this.id] = this;
	}

	Titolo.prototype.getCodiceTit = function() {
		var codiceTit = "";

		if(this.admin) {
			if(this.link_type == "nessuno") {
				codiceTit += "<font style=\"color:" + this.color + ";font-size:" + this.size + "px;font-weight:" + this.bold + ";font-style:" + this.italic + ";text-decoration:" + this.underline + "\">";
					codiceTit += this.text;
				codiceTit += "</font>";
			}
			else if(this.link_type == "esterno") {
				codiceTit += "<div title=\"Link: " + this.link + "\">";
					codiceTit += "<font style=\"color:" + this.color + ";font-size:" + this.size + "px;font-weight:" + this.bold + ";font-style:" + this.italic + ";text-decoration:" + this.underline + "\">";
						codiceTit += this.text;
					codiceTit += "</font>";
				codiceTit += "</div>";
			}
			else if(this.link_type == "file") {
				codiceTit += "<div title=\"Link: File -> " + this.link + "\">";
					codiceTit += "<font style=\"color:" + this.color + ";font-size:" + this.size + "px;font-weight:" + this.bold + ";font-style:" + this.italic + ";text-decoration:" + this.underline + "\">";
						codiceTit += this.text;
					codiceTit += "</font>";
				codiceTit += "</div>";
			}
		}
		else {
			if(this.link_type == "nessuno") {
				codiceTit += "<font style=\"color:" + this.color + ";font-size:" + this.size + "px;font-weight:" + this.bold + ";font-style:" + this.italic + ";text-decoration:" + this.underline + "\">";
					codiceTit += this.text;
				codiceTit += "</font>";
			}
			else if(this.link_type == "esterno" || this.link_type == "file") {
				codiceTit += "<a class=nostyle href=\"" + this.link + "\" target=_new>";
					codiceTit += "<font style=\"color:" + this.color + ";font-size:" + this.size + "px;font-weight:" + this.bold + ";font-style:" + this.italic + ";text-decoration:" + this.underline + "\">";
						codiceTit += this.text;
					codiceTit += "</font>";
				codiceTit += "</a>";
			}
		}

		return codiceTit;
	}

	Titolo.prototype.setText = function(text) {
		this.text = text;
		this.aggiorna();
	}

	Titolo.prototype.setColor = function(color) {
		this.color = color;
		this.aggiorna();
	}

	Titolo.prototype.setSize = function(size) {
		this.size = size;
		this.aggiorna();
	}

	Titolo.prototype.setBold = function(bold) {
		this.bold = bold;
		this.aggiorna();
	}

	Titolo.prototype.setItalic = function(italic) {
		this.italic = italic;
		this.aggiorna();
	}

	Titolo.prototype.setUnderline = function(underline) {
		this.underline = underline;
		this.aggiorna();
	}

	Titolo.prototype.setCoorX = function(coorX) {
		coorX = coorX.toString();

		if(coorX.indexOf("px") != -1) this.coorX = parseInt(coorX.substring(0, coorX.length - 2));
		else this.coorX = parseInt(coorX);

		document.getElementById("tit_" + this.id).style.left = this.coorX;
		document.titoli.coorX.value = this.coorX;
	}

	Titolo.prototype.setCoorY = function(coorY) {
		coorY = coorY.toString();

		if(coorY.indexOf("px") != -1) this.coorY = parseInt(coorY.substring(0, coorY.length - 2));
		else this.coorY = parseInt(coorY);

		document.getElementById("tit_" + this.id).style.top = this.coorY;
		document.titoli.coorY.value = this.coorY;
	}

	Titolo.prototype.setLinkType = function(link_type) {
		this.link_type = link_type;
		this.aggiorna();
	}

	Titolo.prototype.setLink = function(link) {
		this.link = link;
		this.aggiorna();
	}

	Titolo.prototype.aggiorna = function() {
		document.getElementById("tit_" + this.id).innerHTML = this.getCodiceTit();
	}

	Titolo.prototype.toString = function() {
		ritorno = "text:" + this.text + "-";
		ritorno += "color:" + this.color + "-";
		ritorno += "size:" + this.size + "-";
		ritorno += "bold:" + this.bold + "-";
		ritorno += "italic:" + this.italic + "-";
		ritorno += "underline:" + this.underline + "-";
		ritorno += "coorX:" + this.coorX + "-";
		ritorno += "coorY:" + this.coorY + "-";
		ritorno += "link_type:" + this.link_type + "-";
		ritorno += "link:" + this.link + "-fine:";

		return ritorno;
	}