$(document).ready(function() {

	$(".photoGallery:first").show();
	$(".photoGallery:first .next").show();
	$(".photoGallery:first .previous").hide();
	$(".photoGallery:first .desc").show(); //Show Banner

});



$(document).ready(function() {

	$(".previous").click(function(){
		$(".photoGallery").hide();
		var image = $(this).children('a').attr('class');
		var imagenumber = parseInt(image);
		var previousimage = (imagenumber - 1);
		var nextimage = (imagenumber + 1);
		$("#" + previousimage).show();
		$("#" + nextimage + " .desc").show();
		if (image = "1") {
			$("#" + nextimage + " .previous").hide();
		}
		return false;
	});
	
	$(".next").click(function(){
		$(".photoGallery").hide();
		var image = $(this).children('a').attr('class');
		var imagenumber = parseInt(image);
		var previousimage = (imagenumber - 1);
		var nextimage = (imagenumber + 1);
		if (image = "1") {
			$("#" + nextimage + " .previous").hide();
		}
		$("#" + nextimage).show();
		$("#" + nextimage + " .desc").show();
		$("#" + nextimage + " .previous").show();

		return false;
	});
	
});

