$(document).ready(function () {

	$(".iframeCB").colorbox({iframe:true, width: "85%", height: "85%", transition:"none" });

	$(".videoCB").colorbox({iframe:true, innerWidth:640, innerHeight:360, transition:"none"});
	
	$(".ficheCB").colorbox({iframe:true, innerWidth:600, innerHeight:400, transition:"none", scrolling:false});

	$('.slideshow-ban').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		random: 1,
		startingSlide: 5,
		speed:         3000,
		timeout:       6000
	});
	
	$("a.lienHrOuverture").click(function() {
		$("#bloc_NsJoindre").hide();
		$("#bloc_NsTrouver").hide();
		$("#bloc_HrOuverture").fadeIn(350);
	});
	
	$("a.lienNsTrouver").click(function() {
		$("#bloc_NsJoindre").hide();
		$("#bloc_HrOuverture").hide();
		$("#bloc_NsTrouver").fadeIn(350);
	});
	
	$("a.lienNsJoindre").click(function() {
		$("#bloc_HrOuverture").hide();
		$("#bloc_NsTrouver").hide();
		$("#bloc_NsJoindre").fadeIn(350);
	});
	
		$("a.lienFermer").click(function() {
		$("#bloc_HrOuverture").hide();
		$("#bloc_NsTrouver").hide();
		$("#bloc_NsJoindre").hide();
	});

});
