$(document).ready(function(){
  $('.slider .ad-gallery').adGallery({
     animate_first_image: false, // Should first image just be displayed, or animated in?
     animation_speed: 1500, // Which ever effect is used to switch images, how long should it take?
     display_next_and_prev: true, // Can you navigate by clicking on the left/right on the image?
     slideshow: {
           enable: true,
           autostart: true,
           speed: 5000
     },
      effect: 'slide-hori', // 'slide-hori'or 'slide-vert', 'resize', 'fade', 'none' or false
  		enable_keyboard_move: false, // Move to next/previous image with keyboard arrows?
   		cycle: true // If set to false, you can't go from the last image to the first, and vice versa
   });

   $('.ad-gallery').adGallery();
});

