/*Probleme LI:Hover sur IE6*/
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("menu");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList; 
/*JQUERY*/
$(document).ready(function() {
/*Effet sur les news*/
$(".cover", this).stop().animate({top:'150px'},{queue:false,duration:160});
$(".cover2", this).stop().animate({top:'100px'},{queue:false,duration:160});
 $('.boxgrid.caption').hover(function(){
					$(".cover", this).stop().animate({top:'110px'},{queue:false,duration:160});
				}, function() {
					$(".cover", this).stop().animate({top:'150px'},{queue:false,duration:160});
				});
				
 $('.boxgrid.caption').hover(function(){
					$(".cover2", this).stop().animate({top:'58px'},{queue:false,duration:160});
				}, function() {
					$(".cover2", this).stop().animate({top:'100px'},{queue:false,duration:160});
				});
				
/*Effet sur le menu*/			
$("#menu ul ul li").hide();
$("#menu ul li").hover(function(){
$(this).find("li").show();
},function() {
$(this).find("li").hide();
});

$("#menu ul li ul").hover(function(){
	$(this).prev("a").addClass('menu_hover');
	//$(this).prev("a").css({'border-color:' : '#000000'});
		$($(this).find("a")).hover(function(){
				$(this).css({'color' : '#e08400'});
				},function() {
				 $(this).css({'color' : '#453d2e'});
				 });
		},function() {
	 //$(this).find(".sous_menu").hide();
	 $("#menu ul li a").removeClass('menu_hover');
	 });
/*	 
$("#menu_gauche .page_item .children").hide();



$("#menu_gauche .page_item").click(function(){
$(this).find(".children").addClass("etat_click");
$(this).find("ul").show();
});

*/

$("#menu_gauche .page_item .children").hide();

$("#menu_gauche .current_page_ancestor .children").slideDown("slow");

if ($("#menu ul li").is('.current_page_ancestor')) {

$("#menu_gauche .current_page_item .children").slideDown("slow");
} else {

}


});

