	$(document).ready(function(){
		
		$('.gallery_unstyled').addClass('gallery_thumbs'); // adds new class name to maintain degradability
		$('.nav').css('display','none'); // hides the nav initially
		
		$('ul.gallery_thumbs').galleria({
			history   : false, // deactivates the history object for bookmarking, back-button etc.
			clickNext : false, // helper for making the image clickable. Let's not have that in this example.
			insert    : '#image_container', // the containing selector for our main image. 
								   // If not found or undefined (like here), galleria will create a container 
								   // before the ul with the class .galleria_container (see CSS)
			onImage   : function(image,caption,thumb) { // let's add some image effects for demonstration purposes
			  $('.hide').html("Hide image.");
			}
		});
		$('.hide').click( function() { 
			$('.replaced').css('display','none'); 
			$('.caption').css('display','none');
		    $('.hide').html("Click thumbnail to view images.");
		} );
	});

