// JavaScript Document



function swapImg() {

	if(document.getElementsByTagName) {

		var target01 = document.getElementById("target01").getElementsByTagName("img");

		var thumbs01 = document.getElementById("thumbnail01").getElementsByTagName("img");
	

		for(var i=0; i < thumbs01.length; i++) {

			thumbs01[i].onmouseover = function() {

				target01[0].setAttribute("src", this.getAttribute("src").replace("_of.", "."));
				this.setAttribute("src", this.getAttribute("src").replace("_of.", "__on."));


			}
			
			thumbs01[i].onmouseout = function() {

				target01[0].src = "img/img_main.jpg";
				this.setAttribute("src", this.getAttribute("src").replace("__on.", "_of."));
				


			}
			
			
			

		}

	}

}



if(window.addEventListener) {

	window.addEventListener("load", swapImg, false);

}

else if(window.attachEvent) {

	window.attachEvent("onload", swapImg);

}


