$(document).ready(function(){
	// THICKBOX
	$(".thickbox").fancybox({
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic',
		'titlePosition': 'inside' 
	});
	$(".iframe").fancybox();

	$(document).pngFix();
      
  // MENU ACCORDEON
	$("div.accordion_content:not(.noHide)").hide();
	$("div.accordion_headings span").click(function(){
		$("div.accordion_content:visible:not(.noHide)").slideUp("medium");
		if ($(this).parent().next().is(':hidden'))
			$(this).parent().next().slideDown("medium");
	});
	
	// SLIDING MENU
	$(".btn-slide").click(function(){
		$("#panel").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
	
	$(".comm-slide").click(function(){
		$("#CommPanel").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
			
	$(".Cont2").hover(function() { 
	},function() {
  	//alert("sortie...");
		$(".Col2",$(this)).html("");
		$(".Col3",$(this)).html("");
		$("a:not(.Selected)").removeClass("SelectedJQ");
  			
	}); 
  	
	$(".liLvl2").hover(function() { 
    	$(".Col2",$(this).parent().parent().parent()).html("");
    	$(".Col3",$(this).parent().parent().parent()).html("");
      if ($(".ulLvl3",this).length!=0){
      	//alert("sous nav exist"+$("div",this).html());
      	var SousNavNiv3 = $("div",this).html();
      	
      	var Col1 = $(".Col1",$(this).parent().parent().parent().parent());
      	$("a",Col1).removeClass("SelectedJQ");
      	$("a:first",this).addClass("SelectedJQ");
      	$("li",Col1).removeClass("arrowselJQ");
      	$(this).addClass("arrowselJQ");
      	
      	var Col2 = $(".Col2",$(this).parent().parent().parent().parent());
      	
      	if ($.browser.msie)
      		$(Col2).stop().html(SousNavNiv3);
      	else
				$(Col2).stop().hide()
		    .html("")
		    .html(SousNavNiv3)
		    .fadeTo('medium',1);
			

		$(".liLvl3").hover(function() { 
			$(".Col3",$(this).parent().parent().parent()).html("");
            if ($(".ulLvl4",this).length!=0){
            	//alert("sous nav exist");
            	var SousNavNiv4 = $("div",this).html();
            
	            var Col1 = $(".Col2",$(this).parent().parent().parent().parent());
            	$("a",Col2).removeClass("SelectedJQ");
            	$("a:first",this).addClass("SelectedJQ");
            	$("li",Col2).removeClass("arrowselJQ");
            	$(this).addClass("arrowselJQ");
        	
            	var Col3 = $(".Col3",$(this).parent().parent().parent().parent());
            	if ($.browser.msie)
            		$(Col3).stop().html(SousNavNiv4);
            	else
	            	$(Col3).stop().hide()
					    .html("")
					    .html(SousNavNiv4)
					    .fadeTo('medium',1);
            }
        },function() {
            if ($(".ulLvl4",this).length==0){
            	
            } else {
         
            }
        });       	

        }
   },function() {
        if ($(".ulLvl3",this).length==0){
        } else {
        }
    });   
        	
  
  
});

