$(document).ready(function(){

// FONCTION RETOUR EN HAUT
	$("#foo_retour").click(function () {
		$("html").scrollTo( 0, 2000, {queue:true} );
	});

// SUPPRIM LE FOCUS DES BOUTON SUBMIT
	$("input[type=submit]").focus(function(){ $(this).blur(); });


// MENU DEROUL
	// Création du div overflow
	//$("#menu li ul").wrap("<div></div>");

	$("#menu .deroul").hover(function () {
		/*Récup taille du bloc menu*/
		var objul  = $('> div ul', this);
		var objdiv = $('> div', this)
		
		objdiv.css({
			'width' : objul.width()+20
		});
		
		/*Remonte le bloc ul pour effet descente*/
		objul.css("top", -objul.height());
		
		/*Animation du bloc ul*/

		objul.animate({ top:0}, {queue: false}, 400);
		objdiv.animate({opacity: 1, height : objul.height()}, {queue: false}, 400);

	}, function() {
		
		/*Récup taille du bloc menu*/
		var objul  = $('> div ul', this);
		var objdiv = $('> div', this)

		/*Animation du bloc on remonte ul*/
		objul.animate({top:-objul.height()}, {queue: false}, 350);

		/*remonte du div*/
		$('> div', this).animate({opacity: 1,height:0}, {queue: false}, 350);

	});

});
