window.addEvent('domready', function() {
    

var scroll = new Scroller('slide', { area: 20, velocity: 1, onChange : function(x,y) { this.element.scrollTo(x, 0); }});
$('slide').addEvent ('mouseover', scroll.start.bind(scroll));
$('slide').addEvent ('mouseout', scroll.stop.bind(scroll));
  
  


// Sottomenu Animato ///////////////////////////////////////////////////////////////////////////////////////////////////


$$('.subbutton').addEvents({
	'mouseenter': function(){
		var childs = this.getChildren('div');
		this.set('tween', {
			duration: 500,
			transition: Fx.Transitions.Cubic.easeOut 
		}).tween('height', childs[0].getStyle('height').toInt()+45);
	},
	'mouseleave': function(){
		this.set('tween', {}).tween('height', '25px');
	}
});





// Chiusura del DOMREADY
});

