$(document).ready(function() 
{	

	$("#pub").fadeTo(1,0,'');
	$("#pub").fadeTo(1000,0.98,'');

	$("#pub").click(function(){
		$("#pub").fadeTo(1000,0, function(){$("#pub").hide();});
	});
			

	
	
	
	$('.diaporama_fond').cycle( 
	{
		fx:     'fade', 
	    speed:   1500, 
	    timeout: 3000
	});


	
	$(".diaporama2").hover(
		function () {
			$(this).parent().next('h3').css("background-color");
			$(this).parent().next('h3').css("background-color", "#888888");
		},
		function () {
			$('h3.accueil_h3').css("background-color", "#F08A00");
			$('h3.accueil2_h3').css("background-color", "#6b6fae");
		}
	);
	
});