/* ================================================================================ */
/* = fonctions = JQUERY*/
/* ================================================================================ */
	/* = fonctions = */
    var obj = null;
    
    function checkHover() {
        if (obj) {
            obj.find('ul').fadeOut('fast');	
        } //if
    } //checkHover
    
	$(document).ready(function() {

		
		//menu accordeon
	//	$(".schema h3").mouseover(function () {
		//      $(this).addClass("toto");
		  //  });
		
		$(".schema div").hide();
		
		$(".schema h3").hover(function(){
       $(this).next("div").slideToggle("slow").siblings("div:visible").slideUp("slow");
			 $(this).toggleClass("active");
			 $(this).siblings("h3").removeClass("active");
     },function(){
        $(this).next("div").slideToggle("slow").siblings("div:visible").slideUp("slow");
     });
		
		
		

	$("#mainNav ul li ul").hide();

				$('#mainNav ul li').hover(function() {
					if (obj) {
						obj.find('ul').fadeOut('fast');
						obj = null;
						$(this).addClass("current");
						} //if
						$(this).addClass("current");
						$(this).find('ul').fadeIn('fast');
					}, function() {
						obj = $(this);
						$(this).removeClass("current");
						setTimeout(
							"checkHover()",
							600);
							});
							$('.light').hide();
							$('a.lightbox').lightBox({fixedNavigation: true});
	});

