// JavaScript Document

		$(document).ready(function() {$('#widerTnWrapper_i').galleria({
    // #assembledImg is an empty div which holds full size images
    insert: '#widerGalleryImg',
 
    // enable history plugin
    history: true,
 
    // function fired when the full size image is displayed
    onImage: function(image, caption, thumb) {
 
        // fade in the image 
        image.hide().fadeIn(500);
	}
 	
	
	})
	.find('li:first').addClass('active') // displays first image when Galleria is loaded
	});
	
	$(document).ready(function() {$('#widerGalleryImg .caption').css('height', 0)
	});
 
    $(document).ready(function() {$('#widerGalleryImg')
    .trigger('image-loaded')
    .hover(
        // use .stop() to prevent animation queue buildup
        function(){ $('#widerGalleryImg .caption').stop().animate({height: 25}, 250) }, 
        function(){ $('#widerGalleryImg .caption').stop().animate({height: 0}, 250) }
    );
	
	});