$(document).ready(function(){
        /*
        $('#actu_precedent').click(function(){ animate_actu('precedent'); });
       
        $('#actu_suivant').click(function(){ animate_actu('suivant'); });

        function animate_actu(type){
            if(type=='auto'){
               var contenu = $("#actu li:first").html();
               $("#actu li:first").animate({height: "0px"}, 500, function() { $(this).remove(); } );
               $("#actu ul").append('<li>'+contenu+'</li>');
               setTimeout(function() { animate_actu('auto') },7000);
            }
            else if(type=='suivant'){
               var contenu = $("#actu li:first").html();
               $("#actu li:first").animate({height: "0px"}, 500, function() { $(this).remove(); } );
               $("#actu ul").append('<li>'+contenu+'</li>');
            }
            else if(type=='precedent'){
               var contenu = $("#actu li:last").html();
               $("#actu li:last").remove();
               $("#actu ul").prepend('<li>'+contenu+'</li>');
               $("#actu li:first").hide();
               $("#actu li:first").slideDown(500);
            }
        }
        */
       (function($) {
                $(function() { //on DOM ready
                        $("#actu_ul").simplyScroll({
                                className: 'vert',
                                horizontal: false,
                                frameRate: 10,
                                speed: 1,
                                autoMode: 'loop'
                        });
                });
        })(jQuery);
       
        function animer_phrase_bandeaux(compteur){
            
            $("#bandeau span").html(phrase_bandeaux[compteur]).css({ marginRight: "70px", opacity : '0' }).hide().animate({marginRight : '20', opacity : '1'},1000).css({ display: "block" });
            setTimeout(function() { $("#bandeau span").fadeOut('slow') },3000);
            if(compteur < (phrase_bandeaux.length)-1) compteur++; else compteur = 0;
            setTimeout(function() { animer_phrase_bandeaux(compteur) },4000);
        }
        
        setTimeout(function() { animate_actu('auto') },7000);
        
        animer_phrase_bandeaux(0);
        
});
