/*******************************************************************************FILE: mud_Scripts.jsREQUIRES: prototype.jsAUTHOR: Takashi Okamoto mud(tm) - http://www.mudcorp.com/VERSION: 2.0DATE: 03/01/2006--------------------------------------------------------------------------------This file is part of MudShiftContent.	MudShiftContent is free for anyone to use, but this header MUST be	included, and may not be modified.*******************************************************************************/////////////////////////////////////////////////////////////////////////////////// GLOBAL VARS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.move('next');					 return false;				}				break;			case "prev":				elements[i].onclick = function() {					 imgs.move('prev');					 return false;				}				break;		}	}}////////////////////////////////////////////////////////////////////////////////// INITfunction init() {	setOnMouseClick();	// images gallery	var total_units = 13; // ie. number of images	var unit_width = 500; // width of one unit in pixels	// MudShiftContent(id, unitX, unitTotal)	imgs = new MudShiftContent('imgs', unit_width, total_units);}////////////////////////////////////////////////////////////////////////////////// EVENTSEvent.observe(window, 'load', init, false);