// JavaScript Document
ddsmoothmenu.init({
	mainmenuid: "navigation1", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	//customtheme: ["#1c5a80", "#18374a"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]	
})

$(document).ready(function(){
	// Bloc expander
	$(".expanderBloc").each ( function(){
		var title = $(this).find(".titleExpanderBloc");	
		var corps = $(this).find(".corpsExpanderBloc");
		var galerie = $(this).find(".galerieArchive");
		
		$(title).css({ 'background-image' : 'url(/ecoute/images/ecoute_expander_plus.png)' });
		$(galerie).slideToggle("fast");	
		
		$(title).click(function (){	
			if($(corps).is(":hidden")){
				$(title).css({ 'background-image' : 'url(/ecoute/images/ecoute_expander_minus.png)' });
				
			}
			else{
				$(title).css({ 'background-image' : 'url(/ecoute/images/ecoute_expander_plus.png)' });	
				
			}
			$(corps).slideToggle("fast");
			$(galerie).slideToggle("fast");
			
 	    });		
	}); // fin expander	
	
	// Pour cacher les adresses emai
	$(".mailme").each(function(){
							   
		$(this).cacheMail();

	});
});

function calcul_annee(){
var myDate = new Date(); 
window.document.write(myDate.getFullYear());
}
