$(document).ready( function() {
	$("#sample1 .thumbnail img").click( function() {
		var changeSrc = this.src;
		$("#sample1 .target img").attr("src", changeSrc);
	});

	$("#sample2 .thumbnail img").click( function() {
		var changeSrc = this.src;
		$("#sample2 .target img").fadeOut(
//			"slow",
			"fast",
			function() {
				$(this).attr("src", changeSrc);
				$(this).fadeIn();
			}
		);
	});
	$("#room1 .thumbnail img").click( function() {
		var changeSrc = this.src;
		$("#room1 .target1 img").fadeOut(
			"fast",
			function() {
				$(this).attr("src", changeSrc);
				$(this).fadeIn();
			}
		);
	});

	$("#room2 .thumbnail img").click( function() {
		var changeSrc = this.src;
		$("#room2 .target2 img").fadeOut(
			"fast",
			function() {
				$(this).attr("src", changeSrc);
				$(this).fadeIn();
			}
		);
	});

	$("#room3 .thumbnail img").click( function() {
		var changeSrc = this.src;
		$("#room3 .target3 img").fadeOut(
			"fast",
			function() {
				$(this).attr("src", changeSrc);
				$(this).fadeIn();
			}
		);
	});

	$("#room4 .thumbnail img").click( function() {
		var changeSrc = this.src;
		$("#room4 .target4 img").fadeOut(
			"fast",
			function() {
				$(this).attr("src", changeSrc);
				$(this).fadeIn();
			}
		);
	});

	$("#room5 .thumbnail img").click( function() {
		var changeSrc = this.src;
		$("#room5 .target5 img").fadeOut(
			"fast",
			function() {
				$(this).attr("src", changeSrc);
				$(this).fadeIn();
			}
		);
	});

	$("#sample3 .thumbnail img").click( function() {
		var changeSrc = this.src;
		$("#sample3 .target1 img").slideUp(
			"fast",
			function() {
				$(this).attr("src", changeSrc);
				$(this).slideDown();
			}
		);
	});
});

