
$(document).ready(function($){

	// Animation fond
	$('.animation').cycle({ 
    fx:     'fade', 
    speed:  1000, 
    timeout: 3000
	});
	
	$('.scroll').css({'height':(($(window).height())-163)+'px'});
    $('.scroll').jScrollPane({showArrows:true});

    $(window).resize(function(){
          $('.scroll').jScrollPaneRemove();
          $('.scroll').css({'height':(($(window).height())-163)+'px'});
          $('.scroll').jScrollPane();
    });
	
	// Ouvrir dans une nouvelle fenêtre
  $(".popup").click(function(){ 
    window.open($(this).attr("href")); 
    return false; 
	});	
	
	$(".corner").corner();
	
	$(".menuLevel0 a").corner("top");
	$(".menuLevel0 li a").uncorner();
	$(".menuLevel0 ul").corner("bottom");
	$(".menuLevel0Active a").corner("top");
	$(".menuLevel0Active li a").uncorner();
	$(".menuLevel0Active ul").corner("bottom");
	$(".menuLevel0Part a").corner("top");
	$(".menuLevel0Part li a").uncorner();
	$(".menuLevel0Part ul").corner("bottom");
	

  
	// Tabs avec les articles
	$("#tabContainer").tabs({ 
		fx: { opacity: 'toggle' }
		 })
 	$("a#btBlog").hover(function() {
	  $("#bulleBlog").animate({opacity: "show", bottom: "40"}, "slow");
	}, function() {
	  $("#bulleBlog").animate({opacity: "hide", bottom: "30"}, "fast");
	});
	
});

