var Commenta = Class.create({
	initialize: function() {
		this.effetto = false;
		this.dimensioneIniziale = $('commenta').getStyle('font-size');
		this.dimensioneIngrandita = $$('div.testo')[0].getStyle('font-size');
		this.durata = 0.2;
		this.testo = new Testo();
	},
	
	ingrandisci: function() {
		if (this.effetto) this.effetto.cancel();
		this.effetto = new Effect.Morph('commenta', {
			style: 'font-size:' + this.dimensioneIngrandita,
			duration: this.durata
		});
		
		this.testo.riduci();
	},
	
	riduci: function() {
		if (this.effetto) this.effetto.cancel();
		this.effetto = new Effect.Morph('commenta', {
			style: 'font-size:' + this.dimensioneIniziale,
			duration: this.durata
		});
		
		this.testo.ingrandisci();
	}
});
