var obj = null;

$(document).ready(function() {

//animation des liens

$("a").click(function(){
$(this).animate({ opacity: 0.7 }, "fast" );
});



listeli.apply($("p.TXT").parent());
function listeli () {
$(this).addClass("LI_CDoc");
}/*Pour supprimer les puces de la partie documentation*/



	$("#Nav > li").hover(function() {
	
		if (obj) {
			//obj.find("ul").fadeOut("fast");
                        $(obj).hide();
			obj = null;
		} //if
                obj = $(this).find("ul")[0];
                $(obj).show();
                  //$(this).find("ul").fadeIn("fast");
		
	}, function() {
          $(obj).hide();
          obj = null;
	});
	
setTimeout ("Loop()", 10);
  
});

function Loop () {
$("#ANNONCE #block1").animate( { width:"90%" }, { queue:false, duration:5000 } )
     .animate( { fontSize:"20px" }, 1500 );
  $("#ANNONCE #block2").animate( { width:"45%"}, 1000 )
     .animate( { fontSize:"16px",
        paddingLeft: "2in" } , 1000 )
setTimeout (move2, 4000);
setInterval (move1, 8000);


function move1()
{
$("#ANNONCE div").css({width:"", fontSize:"", opacity:1});
$("#ANNONCE #block1").animate( { width:"90%" }, { queue:false, duration:5000 } )
     .animate( { fontSize:"20px" }, 1000 );
  $("#ANNONCE #block2").animate( { width:"45%"}, 1000 )
     .animate( { fontSize:"16px",
        paddingLeft: "2in" } , 1000 )
setTimeout (move2, 3000);
}
function move2()
{$("#ANNONCE #block2")
     .animate({ opacity: 0,
        paddingLeft: "4in"}, 2000);
$("#ANNONCE #block1")
     .animate({ opacity: 0}, 2000);
}


}