var longueurMenu=200;

window.addEvent('domready', function(){
	// MENU -----------------------------------------
	// Au chargement de la page
	
	
	
	$('menu-agence-web-challans').set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', longueurMenu);
	var myTimer = cacheMenu3.delay(2000);
	
	function cacheMenu3() {
		$('menu-agence-web-challans').set('tween', {duration: 1000}).tween('height', '55px');
	}
	$('menu-agence-web-challans').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: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', longueurMenu);
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {duration: 700}).tween('height', '55px');
		}
	});	

	
	$('menu-agence-web').set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', longueurMenu);
	var myTimer = cacheMenu1.delay(2000);
	
	function cacheMenu1() {
		$('menu-agence-web').set('tween', {duration: 1000}).tween('height', '55px');
	}
	$('menu-agence-web').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: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', longueurMenu);
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {duration: 700}).tween('height', '55px');
		}
	});
	
	$('menu-creation-site-vendee').set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', longueurMenu);
	var myTimer = cacheMenu2.delay(2000);
	
	function cacheMenu2() {
		$('menu-creation-site-vendee').set('tween', {duration: 1000}).tween('height', '55px');
	}
	$('menu-creation-site-vendee').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: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', longueurMenu);
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {duration: 700}).tween('height', '55px');
		}
	});
});


