$(document).ready(function() {  
      var galleries = $('.ad-gallery').adGallery({
                slideshow: {
                      
                       start_label: '<img class="diaporama" src="images/play.gif"  alt="Commencer"/>',
                       stop_label: '<img class="diaporama"  src="images/stop.gif"  alt="Arreter" style="display:none;margin-right:-15px;"/>',
                       onStart: function(){
                       $(".diaporama").toggle();
                       },
                       onStop: function(){
                      $(".diaporama").toggle();
                       }
                     }
                });
      
      $('#switch-effect').change(
        function() {
          galleries[0].settings.effect = $(this).val();
          return false;
        }
      ); 
      
  /*    $('.toggle-slideshow').click(
        function() {
          galleries[0].slideshow.toggle();
          $(".toggle-slideshow").toggle();
          return false;
        }
      ); 
      */
   //  $('.ad-image-wrapper').corner("round 8px")
    // $('#Galerie').corner("round 10px");
    });// JavaScript Document

