$(document).ready(function(){
            $('#slider').cycle({
                fxFn: 'fade',
                speed: 2000,
                sync: 0,
                delay: -1000,
                timeout: 3500
            });
            // show news
            $('#actualite_show').click(function(){
                //$(this).parent().fadeOut();
                $('#actualite_show').parent().css('visibility','hidden');
                $('#agenda').slideDown('slow');
                
                return false;
            });
            // hide news
            $('#close_desc').click(function(){
                $('#agenda').slideUp('slow');
                $('#actualite_show').parent().css('visibility','visible');
                //$('#actualite_show').parent().fadeIn('slow');
            
                return false;
            });
            
            var height = 0;
            
            $("div.actualite_home").each(function() {
               height += $(this).height() + 15;
            });

            $('div#agenda').css('height', height);
});
