$(document).ready( function(){
    $('#slides').slides({
        preload: false,
        preloadImage: base_path + 'images/highlight/loading.gif',
        play: 5000,
        pause: 2500,
        hoverPause: true,
        generateNextPrev: true,
        animationStart: function(current){
            $('.caption').animate({
                bottom:-35
            },100);
        },
        animationComplete: function(current){
            $('.caption').animate({
                bottom:0
            },200);
        },
        slidesLoaded: function() {
            $('.caption').animate({
                bottom:0
            },200);
        }
    });
    $('#slides-gallery').slides({
        preload: false,
        preloadImage: base_path + 'images/highlight/loading.gif',
        play: 5000,
        pause: 2500,
        hoverPause: true,
        generateNextPrev: true
    });
    $('#slides-gallery-sidebar').slides({
        preload: false,
        preloadImage: base_path + 'images/highlight/loading.gif',
        play: 5000,
        pause: 2500,
        hoverPause: true,
        generateNextPrev: true
    });
});

