window.addEvent('domready', function(){
	
	
	// The same as before: adding events
	$('menu').addEvents({
		'mouseenter': function(){
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			this.set('tween', {
				duration: 1500,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '300px');
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {}).tween('height', '50px');
		}
	});

});

window.addEvent('domready', function() {
	
	//create our Accordion instance
	var myAccordion = new Accordion($('accordion'), 'h3.toggler', 'div.element', {
		opacity: false,
		onActive: function(toggler, element){
			toggler.setStyle('color', '#E22C18');
		},
		onBackground: function(toggler, element){
			toggler.setStyle('color', '#565656');
		}
	});

});
//fonction anti clic droit
function ejs_nodroit()
	{
	alert('Clic droit interdit');
	return(false);
	}

document.oncontextmenu = ejs_nodroit;
