window.addEvent('domready', function(){
	//First Example
	var el = $('blocco1'),
		color = el.getStyle('backgroundColor');
	
	// Morphing div "blocco1 testata"
	$('blocco1').set('opacity', 0.6).addEvents({
		mouseenter: function(){
			// This morphes the opacity and backgroundColor
			this.morph({
				'opacity': 0.9,
				'background-color': ''
			});
		},
		mouseleave: function(){
			// Morphes back to the original style
			this.morph({
				opacity: 0.3,
				backgroundColor: color
			});
		}
	});
	// Morphing div "blocco2 testata"
	$('blocco2').set('opacity', 0.6).addEvents({
		mouseenter: function(){
			// This morphes the opacity and backgroundColor
			this.morph({
				'opacity': 0.9,
				'background-color': ''
			});
		},
		mouseleave: function(){
			// Morphes back to the original style
			this.morph({
				opacity: 0.3,
				backgroundColor: color
			});
		}
	});
	// Morphing div "blocco3 testata"
	$('blocco3').set('opacity', 0.6).addEvents({
		mouseenter: function(){
			// This morphes the opacity and backgroundColor
			this.morph({
				'opacity': 0.9,
				'background-color': ''
			});
		},
		mouseleave: function(){
			// Morphes back to the original style
			this.morph({
				opacity: 0.3,
				backgroundColor: color
			});
		}
	});

	// Morphing div "blocco4 ospite"
	$('blocco4utente').set('opacity', 0.6).addEvents({
		mouseenter: function(){
			// This morphes the opacity and backgroundColor
			this.morph({
				'opacity': 0.9,
				'background-color': ''
			});
		},
		mouseleave: function(){
			// Morphes back to the original style
			this.morph({
				opacity: 0.3,
				backgroundColor: color
			});
		}
	});
	

		
});