$(document).ready(function(){
	//Gestion du menu horizontal
   $('.menuD .rubrique').hover(
   	function(){
	   	$(this).find('.liste').css('display','block');
		$(this).css('color','#000');
	},
	function(){
		$(this).find('.liste').hide();
	   	$(this).css('color','#000');
	}
   );
   
   $('.menuD .item a').hover(
	   function(){
	   		//~ $(this).parent().css('background-color','#7F7F7F');
			//~ $(this).css('background-color','#7F7F7F');
			$(this).parent().css('background-color','#f39d27');
			$(this).css('background-color','#f39d27');
			$(this).css('color','#fff');
	   },
	   function(){
	    	$(this).parent().css('background-color','#cacaca');
			$(this).css('background-color','#cacaca');
			$(this).css('color','#000');
	   }
   );
   //Affichage des news
  	
	if($("*").index($("#hidNews"))>-1){
		var aNews=$("#hidNews").val().split(";");
		
		var indiceNews=0;
		var afficherNews=function(){
			$("#pave-news #texte-news").hide();
			$("#pave-news #texte-news").html(aNews[indiceNews]);
			$("#pave-news #texte-news").show("slow");
			indiceNews=(indiceNews+1)%5;
		}
		
		var intervale=setInterval(afficherNews,3500);
	}
});

