jQuery.extend(jQuery.fn.galleryView.defaults, {
    //// listening functions
        onChange: function(){
            // do something here if needed
            //alert('change')
        },
            
        onEnd: function(){
            // do something when gallery completes a loop
            
            // stop animation timers
            jQuery(document).stopTime("transition");
			jQuery(document).stopTime("animation_pause");
                        
            jQuery('#myGallery_1').stop().animate({'opacity':0});
            window.location = "/home"
        },
	});
