Subversion Repositories My Stuff

Rev

Rev 15 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

$(document).ready(function(){
    var galleries = $('.ae-gallery').aeGallery({
            loader_image: 'modules/Gallery/templates/ae-gallery/loader.gif',
            slideshow: {
              autostart: false,
              speed: 5000,
              start_label: 'Start',
              stop_label: 'Stop',
              stop_on_scroll: false,
            },  
            callbacks: {
              init: function() {
                this.preloadImage(0);
              },
          afterImageVisible: function() {
                        $('.ae-image > img').click(function(){
                                $.fancybox(
                                                {
                                                        'speedIn':      300,
                                                        'speedOut':     300,
                                                        'overlayColor': '#000',
                                                        'overlayOpacity':       0.7,
                                                        'centerOnScroll': true,
                                                        'titlePosition': 'over',
                                                        'transitionIn':  'elastic',
                                                        'transitionOut': 'elastic',
                                                        'showNavArrows': false,
                                                        'showCloseButton':      true,
                                                        'href': $(this).attr('src'),
                                                        'title': $(this).parent().find('p').html(),
                                                        'onComplete'    :       function() {
                                                                $("#fancybox-wrap").hover(function() {
                                                                        $("#fancybox-title").slideDown();
                                                                }, function() {
                                                                        $("#fancybox-title").slideUp();
                                                                });
                                                        }
                                                }
                                        );
                        }).hover(function(){
                                $(this).parent().find('.ae-image-description:first').slideDown();
                        }, function(){
                                $(this).parent().find('.ae-image-description:first').slideUp();
                        });
                var context = this;
                this.preloadImage(this.current_index + 1);
                }
          }
    });
});