    // Load theme
    Galleria.loadTheme('assets/perinet/lightbox/galleria.lightbox.js');
    
$('#galleria').galleria({
           data_source: '#content',
    	   extend: function() {
    	        this.bind(Galleria.LOADFINISH, function(e) {
    	            $(e.imageTarget).click(this.proxy(function(e) {
    	                e.preventDefault();
    	                this.next();
    	            }))
    	        })
    	    },
           keep_source: true,
		   thumbnails: false,
           data_config: function(img) {
               return {
                   title: $(img).parent().next('.legend').html(),
                   description: $(img).parent().next('.legend').next().html()
               }
           }
       });

