// Code from http://affinitybybosa.com
$(function(){
			$("#two-button, #three-button, #four-button, #five-button, #six-button, #seven-button, #eight-button, #nine-button, #ten-button, #eleven-button, #twelve-button, #thirteen-button, #fourteen-button, #fifteen-button, #sixteen-button").css({
				opacity: 0.4
			});
			$(".slideshow div.button").click(function(){
				$clicked = $(this);
				if ($clicked.css("opacity") != "1" && $clicked.is(":not(animated)")) {
					$clicked.animate({
						opacity: 1
					}, 200 );			
					var idToLoad = $clicked.attr("id").split('-');
					$(".slideshow-wrapper").find("div:visible").fadeOut("fast", function(){
						$(this).parent().find("#"+idToLoad[0]).fadeIn();
					})
				}
				$clicked.siblings(".button").animate({
					opacity: 0.4
				}, 200 );
			});
		});
