window.addEvent('domready', function() {

var homeIcons = $$('.homeIcons');
var arrowLeft = $('arrowLeft');
var arrowRight = $('arrowRight');
var thumb = $$('.thumbimg');

homeIcons.setStyle('opacity', 1);

homeIcons.addEvent('mouseenter', function(){
	this.set('morph', { duration: 200});
	this.tween('opacity', 0.6);									  
	}).addEvent('mouseleave', function(){
		this.set('tween', { duration: 600});
		this.tween('opacity', 1);
		})

if (arrowLeft){
arrowLeft.addEvent('mouseenter', function(){
	this.set('tween', { duration: 300});
	this.tween('left', 70);									  
	}).addEvent('mouseleave', function(){
		this.set('tween', { duration: 400});
		this.tween('left', 90);
		})
}


if (arrowRight){
arrowRight.addEvent('mouseenter', function(){
	this.set('tween', { duration: 300});
	this.tween('left', 1020);									  
	}).addEvent('mouseleave', function(){
		this.set('tween', { duration: 400});
		this.tween('left', 1000);
		})
}

thumb.addEvent('mouseenter', function(){
	this.set('morph', { duration: 100 });
	this.morph({
		'width' : '50',
		'height' : '50'
		})								  
	}).addEvent('mouseleave', function(){
		this.set('morph', { duration: 200 });
		this.morph({
			'width' : '34',
			'height' : '34'
			})								  
		})


// Chiusura del DOMREADY
});