/*******************************************************************************FILE: mud_Scripts.jsREQUIRES: prototype.jsAUTHOR: Takashi Okamoto mud(tm) - http://www.mudcorp.com/VERSION: 2.1 - update to make it work more like MudFadeGalleryDATE: 04/07/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;var imgsGallery = new Array();////////////////////////////////////////////////////////////////////////////////// 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			imgsGallery[0] = new Object();	imgsGallery[0].image = new Image();	imgsGallery[0].image.src = "images/image_0.jpg";	imgsGallery[0].title = "Ambiente";	imgsGallery[0].caption = "Modern furniture shop";		imgsGallery[1] = new Object();	imgsGallery[1].image = new Image();	imgsGallery[1].image.src = "images/image_1.jpg";	imgsGallery[1].title = "Ambiente";	imgsGallery[1].caption = "Variation";		imgsGallery[2] = new Object();	imgsGallery[2].image = new Image();	imgsGallery[2].image.src = "images/image_2.jpg";	imgsGallery[2].title = "Considerate States of Apparel";	imgsGallery[2].caption = "Body conscious knit wear";		imgsGallery[3] = new Object();	imgsGallery[3].image = new Image();	imgsGallery[3].image.src = "images/image_3.jpg";	imgsGallery[3].title = "MuseStorm";	imgsGallery[3].caption = "Widget Manager Company";		imgsGallery[4] = new Object();	imgsGallery[4].image = new Image();	imgsGallery[4].image.src = "images/image_4.jpg";	imgsGallery[4].title = "Timeless Cities";	imgsGallery[4].caption = "3d online destinations";	imgsGallery[5] = new Object();	imgsGallery[5].image = new Image();	imgsGallery[5].image.src = "images/image_5.jpg";	imgsGallery[5].title = "Metrolight";	imgsGallery[5].caption = "Green Commercial and City Lighting";	imgsGallery[6] = new Object();	imgsGallery[6].image = new Image();	imgsGallery[6].image.src = "images/image_6.jpg";	imgsGallery[6].title = "Metrolight";	imgsGallery[6].caption = "Green Commercial and City Lighting";	imgsGallery[7] = new Object();	imgsGallery[7].image = new Image();	imgsGallery[7].image.src = "images/image_7.jpg";	imgsGallery[7].title = "Moka";	imgsGallery[7].caption = "Online mobile books";		imgsGallery[8] = new Object();	imgsGallery[8].image = new Image();	imgsGallery[8].image.src = "images/image_8.jpg";	imgsGallery[8].title = "Modern Design Source";	imgsGallery[8].caption = "Online modern furniture store";		imgsGallery[9] = new Object();	imgsGallery[9].image = new Image();	imgsGallery[9].image.src = "images/image_9.jpg";	imgsGallery[9].title = "WIRED Magazine";	imgsGallery[9].caption = "WIRED Magazine's annual charity auction";		imgsGallery[10] = new Object();	imgsGallery[10].image = new Image();	imgsGallery[10].image.src = "images/image_10.jpg";	imgsGallery[10].title = "WIRED Magazine";	imgsGallery[10].caption = "WIRED Magazine's pop-up store";		imgsGallery[11] = new Object();	imgsGallery[11].image = new Image();	imgsGallery[11].image.src = "images/image_11.jpg";	imgsGallery[11].title = "WIRED Magazine";	imgsGallery[11].caption = "Annual tech fest";	imgsGallery[12] = new Object();	imgsGallery[12].image = new Image();	imgsGallery[12].image.src = "images/image_12.jpg";	imgsGallery[12].title = "Petaluma PC Repair";	imgsGallery[12].caption = "Wanted friendly non-tech home service feel";		imgsGallery[13] = new Object();	imgsGallery[13].image = new Image();	imgsGallery[13].image.src = "images/image_13.jpg";	imgsGallery[13].title = "Petaluma PC Repair";	imgsGallery[13].caption = "Variation";		imgsGallery[14] = new Object();	imgsGallery[14].image = new Image();	imgsGallery[14].image.src = "images/image_14.jpg";	imgsGallery[14].title = "ZADA";	imgsGallery[14].caption = "Web development company <br> Build dot dreams tagline";		imgsGallery[15] = new Object();	imgsGallery[15].image = new Image();	imgsGallery[15].image.src = "images/image_15.jpg";	imgsGallery[15].title = "Certagon";	imgsGallery[15].caption = "Problem detection software company";				// MudShiftContent(id, unitX, unitTotal)	imgs = new MudShiftContent('imgs', imgsGallery);		// set init	if ($('imgs_title')) $('imgs_title').innerHTML = imgsGallery[0].title;	if ($('imgs_caption')) $('imgs_caption').innerHTML = imgsGallery[0].caption;}////////////////////////////////////////////////////////////////////////////////// EVENTSEvent.observe(window, 'load', init, false);