$(function(){
    
    $("#nav").children('ul').children('li').children('a').css({
        opacity: 0.7
    });
    
     $("#nav").children('ul').children('li').children('ul').children('li').children('a').css({
//        opacity: 0.9,
        background: '#999999'
    });
       
    $("#nav").children('ul').children('li').children('ul').css({
        opacity: 0
    });
       
     $("#nav").children('ul').children('li').hover(function(){
        $(this).children('a').stop().animate({ 
            opacity: 1
        }, 200);
        
         $(this).children('ul').stop().animate({
           opacity: 0.9
        }, 300);
        
    }, function(){
        $(this).children('a').stop().animate({ 
            opacity: 0.7
        }, 300);
        
         $(this).children('ul').stop().animate({
           opacity: 0
        }, 500);
        
    });
	
	
    if (($.browser.msie) && ($.browser.version == 6.0)) {
		   $("#nav").children('ul').children('li').hover(function(){
				$(this).find("ul").show();
			}, function(){
				$(this).find("ul").hide();
			});
	}
	else {
		$("#nav").children('ul').children('li').find('li').find('a').hover(function(){

			$(this).stop().animate({ 
				backgroundColor: "#6b6b6b"
			}, 300);
		}, function(){
			$(this).stop().animate({ 
				backgroundColor: "#999999"
			}, 400);

		});
	}
	
	$(".dossier a.nom").bind("click", function(ev){
		ev.preventDefault();
		$(this).parent("div.dossier").toggleClass('on');
	});
	   
   
});
