jQuery(function($) {
		
		$('.image_gallery_unstyled').addClass('image_gallery'); // adds new class name to maintain degradability
		$('.nav').css('display','none'); // hides the nav initially
		
		$('ul.image_gallery').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', // 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)
			caption   : '#caption',
			onImage   : function() { $('.nav').css('display','block'); $('#imagezz').css('display','none').fadeIn(); } // shows the nav when the image is showing
		});
	});