/*OUVERTURE/FERMETURE du panneau actus en bas de page */
$(document).ready(function(){
//Full Box Sliding (Hidden to Visible)
$('#image_actu,.slider_actu').hover(/* .block = code original */
	function(){/*over*/
		$(".slider_actu").stop().animate({top:'0px'},{queue:false,duration:550});/*top = pour changer la hauteur du bloc ouvert*/
		
	}, 
	function() {/*out*/
		$(".slider_actu").stop().animate({top:'112px'},{queue:false,duration:550});
		/*queue: A Boolean indicating whether to place the animation in the effects queue. If false, the animation will begin immediately.*/
	});	     
});


/*Affichage des légendes des actus en bas du site*/
function AfficheLegende(id){
	$('div[id^=legende_]').each(function(){ //on masque tous les conteneurs
		$(this).hide();
	});
	
	// on affiche le contenu
	$('#'+id).show();	
}
function MasqueLegende(id){
	$('div[id^=legende_]').each(function(){ //on masque tous les conteneurs
		$(this).hide();
	});
	
	// on affiche le contenu
	$('#'+id).hide();	
}

/*Pour allumer les sous menu quand on survol les icones sur la page réalisations*/
function AllumeSsMenu(id){
	//document.getElementById('ss_menu_'+id).className='ss_menu_on';	
	$('#ss_menu_'+id).attr('class','ss_menu_on');
}
function EteintSsMenu(id){
	//document.getElementById('ss_menu_'+id).className='ss_menu_off';	
	$('#ss_menu_'+id).attr('class','ss_menu_off');
}

/*Pour allumer/éteindre les sous menus communication/sécurité/formation dans les réalistaions*/
function AllumeCom(){
	jQuery('#btn_com').attr('src','images/realisations/ss_menu/bt_com_on.png');
}
function EteintCom(){
	jQuery('#btn_com').attr('src','images/realisations/ss_menu/bt_com_off.png');
}
function AllumeSecurite(){
	jQuery('#btn_securite').attr('src','images/realisations/ss_menu/bt_securite_on.png');
}
function EteintSecurite(){
	jQuery('#btn_securite').attr('src','images/realisations/ss_menu/bt_securite_off.png');
}
function AllumeFormation(){
	jQuery('#btn_formation').attr('src','images/realisations/ss_menu/bt_formation_on.png');
}
function EteintFormation(){
	jQuery('#btn_formation').attr('src','images/realisations/ss_menu/bt_formation_off.png');
}
