/*******************************************************************************FILE: mud_Scripts.jsREQUIRES: prototype.js, mud_FadeGallery.jsAUTHOR: Takashi Okamoto mud(tm) - http://www.mudcorp.com/VERSION: 2.0 - converted to use prototype.jsDATE: 01/05/2006--------------------------------------------------------------------------------This file is part of MudFadeGallery.	MudFadeGallery is free for anyone to use, but this header MUST be	included, and may not be modified.*******************************************************************************/////////////////////////////////////////////////////////////////////////////////// GLOBAL VARSvar imgsGallery = new Array();var imgs;///////////////////////////////////////////////////////////////////////////////// MOUSE EVENTSfunction setOnMouseClick() {	var elements = document.getElementsByTagName("a");	for (var i = 0; i < elements.length; i++) {		switch(elements[i].className) {			case "next":				elements[i].onclick = function() {					 imgs.nextImg();					 return false;				}				break;			case "prev":				elements[i].onclick = function() {					 imgs.prevImg();					 return false;				}				break;			case "s0":				elements[i].onclick = function() {					 imgs.showImg(0);					 return false;				}				break;			case "s1":				elements[i].onclick = function() {					 imgs.showImg(1);					 return false;				}				break;			case "s2":				elements[i].onclick = function() {					 imgs.showImg(2);					 return false;				}				break;			case "s3":				elements[i].onclick = function() {					 imgs.showImg(3);					 return false;				}				break;		}	}}////////////////////////////////////////////////////////////////////////////////// INITfunction init() {	setOnMouseClick();	// images gallery	// load images note: imgsGallery[].image isn't an array of images, just strings to hold location		imgsGallery[0] = new Object();	imgsGallery[0].image = "images/etching_01.jpg";	imgsGallery[0].title = "Kohan, 1977";	imgsGallery[0].caption = "works";		imgsGallery[1] = new Object();	imgsGallery[1].image = "images/etching_02.jpg";	imgsGallery[1].title = "Jiyu Kuro, 1974";	imgsGallery[1].caption = "works";    imgsGallery[2] = new Object();	imgsGallery[2].image = "images/etching_03.jpg";	imgsGallery[2].title = "Kusamura, 1975";	imgsGallery[2].caption = "works";		imgsGallery[3] = new Object();	imgsGallery[3].image = "images/etching_04.jpg";	imgsGallery[3].title = "Kakki II, 1977";	imgsGallery[3].caption = "works";		imgsGallery[4] = new Object();	imgsGallery[4].image = "images/etching_05.jpg";	imgsGallery[4].title = "Miyabi, 1976";	imgsGallery[4].caption = "works";    imgsGallery[5] = new Object();	imgsGallery[5].image = "images/etching_06.jpg";	imgsGallery[5].title = "Shizukasa, 1976";	imgsGallery[5].caption = "works";    imgsGallery[6] = new Object();	imgsGallery[6].image = "images/etching_07.jpg";	imgsGallery[6].title = "Yugen II, 1981";	imgsGallery[6].caption = "works";		imgsGallery[7] = new Object();	imgsGallery[7].image = "images/etching_08.jpg";	imgsGallery[7].title = "Manji, 1980";	imgsGallery[7].caption = "works";		imgsGallery[8] = new Object();	imgsGallery[8].image = "images/etching_09.jpg";	imgsGallery[8].title = "Untitled, 1977";	imgsGallery[8].caption = "works";	    imgsGallery[9] = new Object();	imgsGallery[9].image = "images/etching_010.jpg";	imgsGallery[9].title = "Mori, 1977";	imgsGallery[9].caption = "works";					    var start = 0;	var page = document.location.toString().split("?")[1];	if (page != null) {		start = page;}	imgs = new MudFadeGallery('imgs', 'imgDisplay', imgsGallery, {startNum: start, preload: true, autoplay: 0});		// set the initial captions	var title = (imgs.imgsArray[imgs.imgCurrent].title) ? imgs.imgsArray[imgs.imgCurrent].title : "No Title";	var caption = (imgs.imgsArray[imgs.imgCurrent].caption) ? imgs.imgsArray[imgs.imgCurrent].caption : "No caption";	$("imgDisplay_title").innerHTML = title;	$("imgDisplay_caption").innerHTML = caption;	$(imgs.id+"_number").innerHTML = (parseInt(imgs.imgCurrent)+1) + " of " + imgs.imgTotal;	$("imgDisplay").src = imgsGallery[start].image;}////////////////////////////////////////////////////////////////////////////////// EVENTSEvent.observe(window, 'load', init, false);