$(document).ready(function(){
	
	if ($("#thumbnails").length) {
		// select the thumbnails and make them trigger our overlay 
		$("#thumbnails a").overlay({ 
		 
			// each trigger uses the same overlay with the id "gallery" 
			target: '#gallery', 
		 
			// optional exposing effect 
			expose: { 
				color: '#999999', 
				opacity: 0.5, 
				closeSpeed: 500 
			}
		 
		// let the gallery plugin do its magic! 
		}).gallery({ 
		 
			// the plugin accepts its own set of configuration options 
			speed: 800
		});
	}
	
	$("a.readMore").click(showReadMore);
	$("a.readLess").click(hideReadMore);

});

function showReadMore() {	
	$(this).hide();
	$("#readMore").show();
}

function hideReadMore() {	
	$("a.readMore").show();	
	$("#readMore").hide();
}
