<!--

  /*
  Author: Nicolas BROUSSE
  Email: pro@nicolas-brousse.fr
  Date: 20 Aout 2010
  */

    $(document).ready( function () {
        // On cache les sous-menus
        // sauf celui qui porte la classe "open_at_load" :
        $("#liens_sociaux .item .details").hide();
        $("#search .search_barre").hide();
        $("#menu div.ss_menu").hide();
        

        $("#liens_sociaux div.item").hover(
        	function() {
				$(this).find("div").fadeIn("fast", function () { $(this).parent().addClass("open") } );
			}, 
			function() {
				$(this).find("div").fadeOut("slow", function () { $(this).parent().removeClass("open") } );
			}
        );
        $("#search .search_button").hover(
        	function() {
				$(this).find("div").fadeIn("fast", function () { $(this).parent().addClass("open") } );
			}, 
			function() {
				$(this).find("div").delay(800).fadeOut("slow", function () { $(this).parent().removeClass("open") } );
			}
        );
        $("#menu ul li").hover(
        	function() {
				$(this).find("div").fadeIn("fast", function () { $(this).parent().addClass("open") } );
			}, 
			function() {
				$(this).find("div").fadeOut("slow", function () { $(this).parent().removeClass("open") } );
			}
        );
    } ) ;
 // -->
