window.addEvent('domready', function() {
	if($('mainMenu'))
		FancyMenu = new SlideList($E('ul', 'mainMenu'), {transition: Fx.Transitions.backOut, duration: 700, onClick: function(ev, item) { /*ev.stop();document.location.href=item.href;*/ }});
});


/*
window.addEvent('domready', function(){
	var linksHome = $$('ul.prodotti li a');
	linksHome.each(function(element) {
		
		var fx = new Fx.Styles(element, {duration:300, wait:false});
		
		element.addEvent('mouseenter', function(){
			fx.start({
				//'padding-left': 20,
				'background-color': '#f5f5f5',
				'color': 'Red'
			});
		});
		
		element.addEvent('mouseleave', function(){
			fx.start({
				//'padding-left': 10,
				'background-color': '#FFF',
				'color': '#333'
			});
		});
		
	});
	
});
*/


/*
var szNormal = 85, szSmall  = 30, szFull   = 160;
 
var kwicks = $$("#range .btn");
var fx = new Fx.Elements(kwicks, {wait: false, duration: 300, transition: Fx.Transitions.Back.easeOut});
kwicks.each(function(kwick, i) {
	kwick.addEvent("mouseenter", function(event) {
		var o = {};
		o[i] = {height: [kwick.getStyle("height").toInt(), szFull]}
		kwicks.each(function(other, j) {
			if(i != j) {
				var w = other.getStyle("height").toInt();
				if(w != szSmall) o[j] = {height: [w, szSmall]};
			}
		});
		fx.start(o);
	});
});
 
window.addEvent('domready', function() {
	if($('btn'))
	$("btn").addEvent("mouseleave", function(event) {
		var o = {};
		kwicks.each(function(kwick, i) {
			o[i] = {height: [kwick.getStyle("height").toInt(), szNormal]}
		});
		fx.start(o);
	})

});
*/
	