function carousel_veille_reglementaire_initCallback(carousel) {
   
    jQuery('#carousel-vedette-next').bind('click', function() {
        carousel.next();	
        return false;
    });

    jQuery('#carousel-vedette-prev').bind('click', function() {
        carousel.prev();
        return false;
    });
    
    jQuery('#carousel-vedette-pause').bind('click', function() {
        
    	if ($("#carousel-vedette-pause").hasClass("paused")) {			       
    		$("#carousel-vedette-pause").removeClass("paused");
    		
	    }
	    else {			     
	    	$("#carousel-vedette-pause").addClass("paused");
	    	carousel.stopAuto();
	    }
        return false;
    });
};


jQuery(document).ready(function(){

	// Configuration carousels
	jQuery('#carousel-vedette').jcarousel({
        auto: 10,
        scroll: 1,
        wrap: 'both',
        initCallback: carousel_veille_reglementaire_initCallback
    })

});
