$(document).ready(function() {
	$("#firstImg").addClass("open");
 	$("#secondImg").hide();
 	$("#thirdImg").hide();
 	$("#fourthImg").hide();
 	$("#fifthImg").hide();
	$("#sixthImg").hide();
	$("#seventhImg").hide();
	$("#eighthImg").hide();
	$("#ninthImg").hide();
	$("#tenthImg").hide();
	$("#eleventhImg").hide();
	$("#twelfthImg").hide();
	$("#thirteenthImg").hide();
 	$("#fourteenthImg").hide();
 	$("#fifteenthImg").hide();
	$("#sixteenthImg").hide();
	$("#seventeenthImg").hide();
	$("#eighteenthImg").hide();
	$("#nineteenthImg").hide();
	$("#twentiethImg").hide();
	$("#twentyfirstImg").hide();
	$("#twentysecondImg").hide();	
	
	
	
			
	$("#firstThumb").click(function() {
							   
			$(".open").removeClass('open').fadeOut(500, function() {
					$("#firstImg").fadeIn(1000).addClass("open");
			});							 
	});	
	
							   
	$("#secondThumb").click(function() {
			$(".open").removeClass('open').fadeOut(500, function() {
					$("#secondImg").fadeIn(1000).addClass("open");
			});							 
	});						   						   
	
	$("#thirdThumb").click(function() {
			$(".open").removeClass('open').fadeOut(500, function() {
					$("#thirdImg").fadeIn(1000).addClass("open");
			});							 
	});
	
	$("#fourthThumb").click(function() {
			$(".open").removeClass('open').fadeOut(500, function() {
					$("#fourthImg").fadeIn(1000).addClass("open");
			});							 
	});
	
	$("#fifthThumb").click(function() {
			$(".open").removeClass('open').fadeOut(500, function() {
					$("#fifthImg").fadeIn(1000).addClass("open");
			});							 
	});
	
	$("#sixthThumb").click(function() {
			$(".open").removeClass('open').fadeOut(500, function() {
					$("#sixthImg").fadeIn(1000).addClass("open");
			});							 
	});
	
	$("#seventhThumb").click(function() {
			$(".open").removeClass('open').fadeOut(500, function() {
					$("#seventhImg").fadeIn(1000).addClass("open");
			});							 
	});
	$("#eighthThumb").click(function() {
			$(".open").removeClass('open').fadeOut(500, function() {
					$("#eighthImg").fadeIn(1000).addClass("open");
			});							 
	});
	$("#ninthThumb").click(function() {
			$(".open").removeClass('open').fadeOut(500, function() {
					$("#ninthImg").fadeIn(1000).addClass("open");
			});							 
	});
	$("#tenthThumb").click(function() {
			$(".open").removeClass('open').fadeOut(500, function() {
					$("#tenthImg").fadeIn(1000).addClass("open");
			});							 
	});
	$("#eleventhThumb").click(function() {
			$(".open").removeClass('open').fadeOut(500, function() {
					$("#eleventhImg").fadeIn(1000).addClass("open");
			});							 
	});
	$("#twelfthThumb").click(function() {
			$(".open").removeClass('open').fadeOut(500, function() {
					$("#twelfthImg").fadeIn(1000).addClass("open");
			});
	});
	$("#thirteenthThumb").click(function() {
			$(".open").removeClass('open').fadeOut(500, function() {
					$("#thirteenthImg").fadeIn(1000).addClass("open");
			});
	});
	$("#fourteenthThumb").click(function() {
			$(".open").removeClass('open').fadeOut(500, function() {
					$("#fourteenthImg").fadeIn(1000).addClass("open");
			});
	});
	$("#fifteenthThumb").click(function() {
			$(".open").removeClass('open').fadeOut(500, function() {
					$("#fifteenthImg").fadeIn(1000).addClass("open");
			});
	});
	$("#sixteenthThumb").click(function() {
			$(".open").removeClass('open').fadeOut(500, function() {
					$("#sixteenthImg").fadeIn(1000).addClass("open");
			});
	});
	$("#seventeenthThumb").click(function() {
			$(".open").removeClass('open').fadeOut(500, function() {
					$("#seventeenthImg").fadeIn(1000).addClass("open");
			});
	});
	$("#eighteenthThumb").click(function() {
			$(".open").removeClass('open').fadeOut(500, function() {
					$("#eighteenthImg").fadeIn(1000).addClass("open");
			});
	});
	$("#nineteenthThumb").click(function() {
			$(".open").removeClass('open').fadeOut(500, function() {
					$("#nineteenthImg").fadeIn(1000).addClass("open");
			});
	});
	$("#twentiethThumb").click(function() {
			$(".open").removeClass('open').fadeOut(500, function() {
					$("#twentiethImg").fadeIn(1000).addClass("open");
			});
	});
	$("#twentyfirstThumb").click(function() {
			$(".open").removeClass('open').fadeOut(500, function() {
					$("#twentyfirstImg").fadeIn(1000).addClass("open");
			});
	});
	$("#twentysecondThumb").click(function() {
			$(".open").removeClass('open').fadeOut(500, function() {
					$("#twentysecondImg").fadeIn(1000).addClass("open");
			});
	});

	
	});	
	
		
							 
		
	