// JavaScript Document//Menu listeners 
var menu = function(){
	
    //$('#menu_activite').hide();
	//$('#menu_foudre').hide();
	//$('#menu_dispositifs').hide();
	
	// MENU ACTIVITE
	
	$('.tx_menu_central').mouseenter(function(){$(this).next('#menu_activite').show(); $(this).addClass('hover')});
			
	$('#menu_activite').click(function(){$(this).hide(); $('a:eq(0)', this).removeClass('hover')});
	
	$('#menu_activite').mouseleave(function(){$(this).hide(); $('a:eq(0)', this).removeClass('hover')});
	
	
	// MENU FOUDRE
	
	$('.tx_menu_central').mouseenter(function(){$(this).next('#menu_foudre').show(); $(this).addClass('hover')});
	
	$('#menu_foudre').click(function(){$(this).hide(); $('a:eq(0)', this).removeClass('hover')});
	
	$('#menu_foudre').mouseleave(function(){$(this).hide(); $('a:eq(0)', this).removeClass('hover')});
	
	
	
	// MENU DISPOSITIFS
	
	$('.tx_menu_central').mouseenter(function(){$(this).next('#menu_dispositifs').show(); $(this).addClass('hover')});
	
	$('#menu_dispositifs').click(function(){$(this).hide(); $('a:eq(0)', this).removeClass('hover')});
	
	$('#menu_dispositifs').mouseleave(function(){$(this).hide(); $('a:eq(0)', this).removeClass('hover')});
	
	
};

	
//Launch actions when DOM is ready
$(document).ready(function(){
    menu();
	
});
