$(function(){
	$("#thumbnailBox img").mouseover(function(){
		
		org_thumbURL = $(this).attr("src");
		if (org_thumbURL.indexOf("s_1")!=-1) { return false; }
		
		for(var i = 0; i<=$("#thumbnail img").length; i++){
			thumbURL = $(this).attr("src");
			smallimgURL = thumbURL.replace(/.._s_0/gi,ZeroFormat([i],2)+"_s_0");
			$("#thumbnailimg"+ZeroFormat([i],2)).attr("src",smallimgURL);
		}
		
		thumbURL = $(this).attr("src");
		smallimgURL = thumbURL.replace("_s_0","_s_1");
		$(this).attr("src",smallimgURL);

		bigimgURL = thumbURL.replace("_s_0","_b");
		var image = new Image();
		image.bigimgURL;
		
		$("#bigimg").fadeOut(120,
			function() {
				$("#bigimg").attr("src", bigimgURL);
				$("#bigimg").load(function () {
					$("#bigimg").fadeIn(120);
				});
			}
		);

	});
});

function ZeroFormat(num,max){
var tmp=""+num;
while(tmp.length<max){ tmp="0"+tmp; } return tmp;
}

