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