/*******************************************************************************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 = "Feinknopf Maioce &amp; Schappa Architects";	imgsGallery[0].caption = "Dog House for Humain Society Auction";		imgsGallery[1] = new Object();	imgsGallery[1].image = new Image();	imgsGallery[1].image.src = "images/image_1.jpg";	imgsGallery[1].title = "WIRED Magazine";	imgsGallery[1].caption = "James Cameron invite and posters<br>&#8220;Aleins of the Deep&#8221; Lecture";		imgsGallery[2] = new Object();	imgsGallery[2].image = new Image();	imgsGallery[2].image.src = "images/image_2.jpg";	imgsGallery[2].title = "WIRED Magazine";	imgsGallery[2].caption = "NextFest 2005 Shelter Signs";		imgsGallery[3] = new Object();	imgsGallery[3].image = new Image();	imgsGallery[3].image.src = "images/image_3.jpg";	imgsGallery[3].title = "WIRED Magazine";	imgsGallery[3].caption = "NextFest 2005 Wild Postings";		imgsGallery[4] = new Object();	imgsGallery[4].image = new Image();	imgsGallery[4].image.src = "images/image_4.jpg";	imgsGallery[4].title = "WIRED Magazine";	imgsGallery[4].caption = "NextFest city banners, postings, and bus kings";		imgsGallery[5] = new Object();	imgsGallery[5].image = new Image();	imgsGallery[5].image.src = "images/image_5.jpg";	imgsGallery[5].title = "WIRED Magazine";	imgsGallery[5].caption = "NextFest event signs";		imgsGallery[6] = new Object();	imgsGallery[6].image = new Image();	imgsGallery[6].image.src = "images/image_6.jpg";	imgsGallery[6].title = "WIRED Magazine";	imgsGallery[6].caption = "NextFest program event map and wall";		imgsGallery[7] = new Object();	imgsGallery[7].image = new Image();	imgsGallery[7].image.src = "images/image_7.jpg";	imgsGallery[7].title = "WIRED Magazine";	imgsGallery[7].caption = "NextFest Next Music Concert <br> Program, signs, email invites and ads";		imgsGallery[8] = new Object();	imgsGallery[8].image = new Image();	imgsGallery[8].image.src = "images/image_8.jpg";	imgsGallery[8].title = "WIRED Magazine";	imgsGallery[8].caption = "NextFest Next Music Concert video slides";		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 = "NextFest stage program slides and signs";		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 = "NextFest event image";		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 = "Rave Awards Event 2001 <br>program, in-book ad, evites, signs, <br>nominee cubes, award, stage video";		imgsGallery[12] = new Object();	imgsGallery[12].image = new Image();	imgsGallery[12].image.src = "images/image_12.jpg";	imgsGallery[12].title = "WIRED Magazine";	imgsGallery[12].caption = "Rave Awards Event 2003 <br>program, in-book ad, evites, signs, tickets, <br>award cube, stage video";		imgsGallery[13] = new Object();	imgsGallery[13].image = new Image();	imgsGallery[13].image.src = "images/image_13.jpg";	imgsGallery[13].title = "WIRED Magazine";	imgsGallery[13].caption = "Rave Awards Event 2003 <br>Wilco with award cube and nominee cube <br>in front of press wall";		imgsGallery[14] = new Object();	imgsGallery[14].image = new Image();	imgsGallery[14].image.src = "images/image_14.jpg";	imgsGallery[14].title = "WIRED Magazine";	imgsGallery[14].caption = "Rave Awards 2004 evites and website <br> see in web section";		imgsGallery[15] = new Object();	imgsGallery[15].image = new Image();	imgsGallery[15].image.src = "images/image_15.jpg";	imgsGallery[15].title = "WIRED Magazine";	imgsGallery[15].caption = "Rave Awards 2004 event slides and banner";		imgsGallery[16] = new Object();	imgsGallery[16].image = new Image();	imgsGallery[16].image.src = "images/image_16.jpg";	imgsGallery[16].title = "WIRED Magazine";	imgsGallery[16].caption = "Rave Awards 2005 in-book recap";		imgsGallery[17] = new Object();	imgsGallery[17].image = new Image();	imgsGallery[17].image.src = "images/image_17.jpg";	imgsGallery[17].title = "WIRED Magazine";	imgsGallery[17].caption = "Rave Awards 2005 event slides";		imgsGallery[18] = new Object();	imgsGallery[18].image = new Image();	imgsGallery[18].image.src = "images/image_18.jpg";	imgsGallery[18].title = "WIRED Magazine";	imgsGallery[18].caption = "Wired Auction in-book recap";		imgsGallery[19] = new Object();	imgsGallery[19].image = new Image();	imgsGallery[19].image.src = "images/image_19.jpg";	imgsGallery[19].title = "WIRED Magazine";	imgsGallery[19].caption = "Auction website during event";		imgsGallery[20] = new Object();	imgsGallery[20].image = new Image();	imgsGallery[20].image.src = "images/image_20.jpg";	imgsGallery[20].title = "WIRED Magazine";	imgsGallery[20].caption = "Microsoft Upgrade Your Lunch event";		imgsGallery[21] = new Object();	imgsGallery[21].image = new Image();	imgsGallery[21].image.src = "images/image_21.jpg";	imgsGallery[21].title = "WIRED Magazine";	imgsGallery[21].caption = "Microsoft Upgrade Your Lunch event<br> tent banners";		imgsGallery[22] = new Object();	imgsGallery[22].image = new Image();	imgsGallery[22].image.src = "images/image_22.jpg";	imgsGallery[22].title = "WIRED Magazine";	imgsGallery[22].caption = "Microsoft Upgrade Your Lunch event<br> Collateral pieces";		imgsGallery[23] = new Object();	imgsGallery[23].image = new Image();	imgsGallery[23].image.src = "images/image_23.jpg";	imgsGallery[23].title = "WIRED Magazine";	imgsGallery[23].caption = "Microsoft Upgrade Your Lunch event";		imgsGallery[24] = new Object();	imgsGallery[24].image = new Image();	imgsGallery[24].image.src = "images/image_24.jpg";	imgsGallery[24].title = "WIRED Magazine";	imgsGallery[24].caption = "Holiday card";		imgsGallery[25] = new Object();	imgsGallery[25].image = new Image();	imgsGallery[25].image.src = "images/image_25.jpg";	imgsGallery[25].title = "WIRED Magazine";	imgsGallery[25].caption = "NextFest Next Music postcard mailer";		// 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);