/*******************************************************************************

FILE: mud_Scripts.js
REQUIRES: mud_API.js
AUTHOR: Takashi Okamoto mud(tm) - http://www.mudcorp.com/
VERSION: 2.0
DATE: 09/24/2005

--------------------------------------------------------------------------------

This file is part of MudFadeGallery.

	MudFadeGallery is free software; you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation; either version 2 of the License, or
	(at your option) any later version.
	
	MudFadeGallery is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.
	
	You should have received a copy of the GNU General Public License
	along with MudFadeGallery; if not, write to the Free Software
	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

*******************************************************************************/

////////////////////////////////////////////////////////////////////////////////
// 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;
				
			// Observatory Gardens
			
			case "ob01":
				elements[i].onclick = function() {
					 imgs.showImg(0);
					 return false;
				}
				break;
			case "ob02":
				elements[i].onclick = function() {
					 imgs.showImg(1);
					 return false;
				}
				break;
			case "ob03":
				elements[i].onclick = function() {
					 imgs.showImg(2);
					 return false;
				}
				break;
			case "ob04":
				elements[i].onclick = function() {
					 imgs.showImg(3);
					 return false;
				}
				break;
			case "ob05":
				elements[i].onclick = function() {
					 imgs.showImg(4);
					 return false;
				}
				break;
			case "ob06":
				elements[i].onclick = function() {
					 imgs.showImg(5);
					 return false;
				}
				break;
			case "ob07":
				elements[i].onclick = function() {
					 imgs.showImg(6);
					 return false;
				}
				break;
			case "ob08":
				elements[i].onclick = function() {
					 imgs.showImg(7);
					 return false;
				}
				break;
			case "ob09":
				elements[i].onclick = function() {
					 imgs.showImg(8);
					 return false;
				}
				break;
			case "ob10":
				elements[i].onclick = function() {
					 imgs.showImg(9);
					 return false;
				}
				break;
				
			// Earls Terrace
			
			case "ea01":
				elements[i].onclick = function() {
					 imgs.showImg(10);
					 return false;
				}
				break;
			case "ea02":
				elements[i].onclick = function() {
					 imgs.showImg(11);
					 return false;
				}
				break;
			case "ea03":
				elements[i].onclick = function() {
					 imgs.showImg(12);
					 return false;
				}
				break;
			case "ea04":
				elements[i].onclick = function() {
					 imgs.showImg(13);
					 return false;
				}
				break;
			case "ea05":
				elements[i].onclick = function() {
					 imgs.showImg(14);
					 return false;
				}
				break;
			case "ea06":
				elements[i].onclick = function() {
					 imgs.showImg(15);
					 return false;
				}
				break;
			case "ea07":
				elements[i].onclick = function() {
					 imgs.showImg(16);
					 return false;
				}
				break;
			case "ea08":
				elements[i].onclick = function() {
					 imgs.showImg(17);
					 return false;
				}
				break;
			
			// The Bromptons
			
			case "br01":
				elements[i].onclick = function() {
					 imgs.showImg(18);
					 return false;
				}
				break;
			case "br02":
				elements[i].onclick = function() {
					 imgs.showImg(19);
					 return false;
				}
				break;
			case "br03":
				elements[i].onclick = function() {
					 imgs.showImg(20);
					 return false;
				}
				break;
			case "br04":
				elements[i].onclick = function() {
					 imgs.showImg(21);
					 return false;
				}
				break;
			case "br05":
				elements[i].onclick = function() {
					 imgs.showImg(22);
					 return false;
				}
				break;
			case "br06":
				elements[i].onclick = function() {
					 imgs.showImg(23);
					 return false;
				}
				break;
			case "br07":
				elements[i].onclick = function() {
					 imgs.showImg(24);
					 return false;
				}
				break;
			case "br08":
				elements[i].onclick = function() {
					 imgs.showImg(25);
					 return false;
				}
				break;
			case "br09":
				elements[i].onclick = function() {
					 imgs.showImg(26);
					 return false;
				}
				break;
			case "br10":
				elements[i].onclick = function() {
					 imgs.showImg(87);
					 return false;
				}
				break;
			case "br11":
				elements[i].onclick = function() {
					 imgs.showImg(88);
					 return false;
				}
				break;
			case "br12":
				elements[i].onclick = function() {
					 imgs.showImg(89);
					 return false;
				}
				break;
			case "br13":
				elements[i].onclick = function() {
					 imgs.showImg(90);
					 return false;
				}
				break;
			case "br14":
				elements[i].onclick = function() {
					 imgs.showImg(91);
					 return false;
				}
				break;
				
			// Dilke Street
			
			case "di01":
				elements[i].onclick = function() {
					 imgs.showImg(27);
					 return false;
				}
				break;
			case "di02":
				elements[i].onclick = function() {
					 imgs.showImg(28);
					 return false;
				}
				break;
			case "di03":
				elements[i].onclick = function() {
					 imgs.showImg(29);
					 return false;
				}
				break;
			case "di04":
				elements[i].onclick = function() {
					 imgs.showImg(30);
					 return false;
				}
				break;
			case "di05":
				elements[i].onclick = function() {
					 imgs.showImg(31);
					 return false;
				}
				break;
			case "di06":
				elements[i].onclick = function() {
					 imgs.showImg(32);
					 return false;
				}
				break;
			case "di07":
				elements[i].onclick = function() {
					 imgs.showImg(33);
					 return false;
				}
				break;
			case "di08":
				elements[i].onclick = function() {
					 imgs.showImg(34);
					 return false;
				}
				break;
			case "di09":
				elements[i].onclick = function() {
					 imgs.showImg(35);
					 return false;
				}
				break;
			case "di10":
				elements[i].onclick = function() {
					 imgs.showImg(36);
					 return false;
				}
				break;
			case "di11":
				elements[i].onclick = function() {
					 imgs.showImg(37);
					 return false;
				}
				break;
			case "di12":
				elements[i].onclick = function() {
					 imgs.showImg(38);
					 return false;
				}
				break;
				
			// Meadow Cottage
			
			case "me01":
				elements[i].onclick = function() {
					 imgs.showImg(39);
					 return false;
				}
				break;
			case "me02":
				elements[i].onclick = function() {
					 imgs.showImg(40);
					 return false;
				}
				break;
				
			// Tregunter Road
			
			case "tr01":
				elements[i].onclick = function() {
					 imgs.showImg(41);
					 return false;
				}
				break;
			case "tr02":
				elements[i].onclick = function() {
					 imgs.showImg(42);
					 return false;
				}
				break;
			case "tr03":
				elements[i].onclick = function() {
					 imgs.showImg(43);
					 return false;
				}
				break;
			case "tr04":
				elements[i].onclick = function() {
					 imgs.showImg(44);
					 return false;
				}
				break;
			case "tr05":
				elements[i].onclick = function() {
					 imgs.showImg(45);
					 return false;
				}
				break;
			case "tr06":
				elements[i].onclick = function() {
					 imgs.showImg(46);
					 return false;
				}
				break;
			case "tr07":
				elements[i].onclick = function() {
					 imgs.showImg(47);
					 return false;
				}
				break;
				
			// Eaton Square
			
			case "eat01":
				elements[i].onclick = function() {
					 imgs.showImg(48);
					 return false;
				}
				break;
			case "eat02":
				elements[i].onclick = function() {
					 imgs.showImg(49);
					 return false;
				}
				break;
			case "eat03":
				elements[i].onclick = function() {
					 imgs.showImg(50);
					 return false;
				}
				break;
			case "eat04":
				elements[i].onclick = function() {
					 imgs.showImg(51);
					 return false;
				}
				break;
				
			// Park Street
			
			case "pa01":
				elements[i].onclick = function() {
					 imgs.showImg(52);
					 return false;
				}
				break;
			case "pa02":
				elements[i].onclick = function() {
					 imgs.showImg(53);
					 return false;
				}
				break;
			case "pa03":
				elements[i].onclick = function() {
					 imgs.showImg(54);
					 return false;
				}
				break;
			case "pa04":
				elements[i].onclick = function() {
					 imgs.showImg(55);
					 return false;
				}
				break;
			case "pa05":
				elements[i].onclick = function() {
					 imgs.showImg(56);
					 return false;
				}
				break;
			case "pa06":
				elements[i].onclick = function() {
					 imgs.showImg(57);
					 return false;
				}
				break;
				
			// Thomas Goode
			
			case "th01":
				elements[i].onclick = function() {
					 imgs.showImg(58);
					 return false;
				}
				break;
			case "th02":
				elements[i].onclick = function() {
					 imgs.showImg(59);
					 return false;
				}
				break;
			case "th03":
				elements[i].onclick = function() {
					 imgs.showImg(60);
					 return false;
				}
				break;
			case "th04":
				elements[i].onclick = function() {
					 imgs.showImg(61);
					 return false;
				}
				break;
				
			// Phillimore Square
			
			case "phs01":
				elements[i].onclick = function() {
					 imgs.showImg(62);
					 return false;
				}
				break;
			case "phs02":
				elements[i].onclick = function() {
					 imgs.showImg(63);
					 return false;
				}
				break;
			case "phs03":
				elements[i].onclick = function() {
					 imgs.showImg(64);
					 return false;
				}
				break;
			case "phs04":
				elements[i].onclick = function() {
					 imgs.showImg(65);
					 return false;
				}
				break;
			case "phs05":
				elements[i].onclick = function() {
					 imgs.showImg(66);
					 return false;
				}
				break;
			case "phs06":
				elements[i].onclick = function() {
					 imgs.showImg(67);
					 return false;
				}
				break;
				
			// The Phillimores
			
			case "phi01":
				elements[i].onclick = function() {
					 imgs.showImg(68);
					 return false;
				}
				break;
			case "phi02":
				elements[i].onclick = function() {
					 imgs.showImg(69);
					 return false;
				}
				break;
			case "phi03":
				elements[i].onclick = function() {
					 imgs.showImg(70);
					 return false;
				}
				break;
			case "phi04":
				elements[i].onclick = function() {
					 imgs.showImg(71);
					 return false;
				}
				break;
			case "phi05":
				elements[i].onclick = function() {
					 imgs.showImg(72);
					 return false;
				}
				break;
			case "phi05":
				elements[i].onclick = function() {
					 imgs.showImg(73);
					 return false;
				}
				break;
			case "phi06":
				elements[i].onclick = function() {
					 imgs.showImg(74);
					 return false;
				}
				break;
			case "phi07":
				elements[i].onclick = function() {
					 imgs.showImg(75);
					 return false;
				}
				break;
			case "phi08":
				elements[i].onclick = function() {
					 imgs.showImg(76);
					 return false;
				}
				break;
			case "phi09":
				elements[i].onclick = function() {
					 imgs.showImg(77);
					 return false;
				}
				break;
			case "phi10":
				elements[i].onclick = function() {
					 imgs.showImg(78);
					 return false;
				}
				break;
			case "phi11":
				elements[i].onclick = function() {
					 imgs.showImg(79);
					 return false;
				}
				break;
			case "phi12":
				elements[i].onclick = function() {
					 imgs.showImg(80);
					 return false;
				}
				break;
			case "phi13":
				elements[i].onclick = function() {
					 imgs.showImg(81);
					 return false;
				}
				break;
			case "phi14":
				elements[i].onclick = function() {
					 imgs.showImg(82);
					 return false;
				}
				break;
				
			// Cliveden
			
			case "cl01":
				elements[i].onclick = function() {
					 imgs.showImg(83);
					 return false;
				}
				break;
			case "cl02":
				elements[i].onclick = function() {
					 imgs.showImg(84);
					 return false;
				}
				break;
			case "cl03":
				elements[i].onclick = function() {
					 imgs.showImg(85);
					 return false;
				}
				break;
			case "cl04":
				elements[i].onclick = function() {
					 imgs.showImg(86);
					 return false;
				}
				break;
				
			// Phillimores Rev 2
			
			case "p01":
				elements[i].onclick = function() {
					 imgs.showImg(92);
					 return false;
				}
				break;
			case "p02":
				elements[i].onclick = function() {
					 imgs.showImg(93);
					 return false;
				}
				break;
			case "p03":
				elements[i].onclick = function() {
					 imgs.showImg(94);
					 return false;
				}
				break;
			case "p04":
				elements[i].onclick = function() {
					 imgs.showImg(95);
					 return false;
				}
				break;
			case "p05":
				elements[i].onclick = function() {
					 imgs.showImg(96);
					 return false;
				}
				break;
			case "p06":
				elements[i].onclick = function() {
					 imgs.showImg(97);
					 return false;
				}
				break;
			case "p07":
				elements[i].onclick = function() {
					 imgs.showImg(98);
					 return false;
				}
				break;
			case "p08":
				elements[i].onclick = function() {
					 imgs.showImg(99);
					 return false;
				}
				break;
			case "p09":
				elements[i].onclick = function() {
					 imgs.showImg(100);
					 return false;
				}
				break;
			case "p10":
				elements[i].onclick = function() {
					 imgs.showImg(101);
					 return false;
				}
				break;
			case "p11":
				elements[i].onclick = function() {
					 imgs.showImg(102);
					 return false;
				}
				break;
			case "p12":
				elements[i].onclick = function() {
					 imgs.showImg(103);
					 return false;
				}
				break;
			
			// Earls Terrace Rev 2
			
			case "ea09":
				elements[i].onclick = function() {
					 imgs.showImg(104);
					 return false;
				}
				break;
			case "ea10":
				elements[i].onclick = function() {
					 imgs.showImg(105);
					 return false;
				}
				break;
				
			// Phillimores Square Rev 2
			
			case "phsn05":
				elements[i].onclick = function() {
					 imgs.showImg(106);
					 return false;
				}
				break;
			case "phsn06":
				elements[i].onclick = function() {
					 imgs.showImg(107);
					 return false;
				}
				break;
				
			// Eaton Square Rev 2
			
			case "eat05":
				elements[i].onclick = function() {
					 imgs.showImg(108);
					 return false;
				}
				break;
				
			// The Lancasters
			
			case "lan01":
				elements[i].onclick = function() {
					 imgs.showImg(120);
					 return false;
				}
				break;
			
			case "lan02":
				elements[i].onclick = function() {
					 imgs.showImg(121);
					 return false;
				}
				break;
				
			case "lan03":
				elements[i].onclick = function() {
					 imgs.showImg(122);
					 return false;
				}
				break;
			
			case "lan04":
				elements[i].onclick = function() {
					 imgs.showImg(123);
					 return false;
				}
				break;
			
			case "lan05":
				elements[i].onclick = function() {
					 imgs.showImg(124);
					 return false;
				}
				break;			
			
			case "lan06":
				elements[i].onclick = function() {
					 imgs.showImg(125);
					 return false;
				}
				break;
			
			case "lan07":
				elements[i].onclick = function() {
					 imgs.showImg(126);
					 return false;
				}
				break;
			
		}
	}
}

////////////////////////////////////////////////////////////////////////////////
// INIT

function mudInit() {
	initDHTMLAPI();
	setOnMouseClick();
	// images gallery
	// load images note: imgsGallery isn't a array of images, just strings to hold location
	
	// Observatory Gardens
	
	imgsGallery[0] = new Object();
	imgsGallery[0].image = "images/portfolio/observatory/01.jpg";
	imgsGallery[0].caption = "this is image 0";
	
	imgsGallery[1] = new Object();
	imgsGallery[1].image = "images/portfolio/observatory/02.jpg";
	imgsGallery[1].caption = "this is image 1";
	
	imgsGallery[2] = new Object();
	imgsGallery[2].image = "images/portfolio/observatory/03.jpg";
	imgsGallery[2].caption = "this is image 2";
	
	imgsGallery[3] = new Object();
	imgsGallery[3].image = "images/portfolio/observatory/04.jpg";
	imgsGallery[3].caption = "this is image 3";
	
	imgsGallery[4] = new Object();
	imgsGallery[4].image = "images/portfolio/observatory/05.jpg";
	imgsGallery[4].caption = "this is image 5";
	
	imgsGallery[5] = new Object();
	imgsGallery[5].image = "images/portfolio/observatory/06.jpg";
	imgsGallery[5].caption = "this is image 6";
	
	imgsGallery[6] = new Object();
	imgsGallery[6].image = "images/portfolio/observatory/07.jpg";
	imgsGallery[6].caption = "this is image 7";
	
	imgsGallery[7] = new Object();
	imgsGallery[7].image = "images/portfolio/observatory/08.jpg";
	imgsGallery[7].caption = "this is image 8";
	
	imgsGallery[8] = new Object();
	imgsGallery[8].image = "images/portfolio/observatory/09.jpg";
	imgsGallery[8].caption = "this is image 9";
	
	imgsGallery[9] = new Object();
	imgsGallery[9].image = "images/portfolio/observatory/10.jpg";
	imgsGallery[9].caption = "this is image 10";
	
	// Earls Terrace
	
	imgsGallery[10] = new Object();
	imgsGallery[10].image = "images/portfolio/earls/01.jpg";
	imgsGallery[10].caption = "this is image 10";
	
	imgsGallery[11] = new Object();
	imgsGallery[11].image = "images/portfolio/earls/02.jpg";
	imgsGallery[11].caption = "this is image 10";
	
	imgsGallery[12] = new Object();
	imgsGallery[12].image = "images/portfolio/earls/03.jpg";
	imgsGallery[12].caption = "this is image 10";
	
	imgsGallery[13] = new Object();
	imgsGallery[13].image = "images/portfolio/earls/04.jpg";
	imgsGallery[13].caption = "this is image 10";
	
	imgsGallery[14] = new Object();
	imgsGallery[14].image = "images/portfolio/earls/05.jpg";
	imgsGallery[14].caption = "this is image 10";
	
	imgsGallery[15] = new Object();
	imgsGallery[15].image = "images/portfolio/earls/06.jpg";
	imgsGallery[15].caption = "this is image 10";
	
	imgsGallery[16] = new Object();
	imgsGallery[16].image = "images/portfolio/earls/07.jpg";
	imgsGallery[16].caption = "this is image 10";
	
	imgsGallery[17] = new Object();
	imgsGallery[17].image = "images/portfolio/earls/08.jpg";
	imgsGallery[17].caption = "this is image 10";
	
	// The Bromptons
	
	imgsGallery[18] = new Object();
	imgsGallery[18].image = "images/portfolio/bromptons/01.jpg";
	imgsGallery[18].caption = "this is image 10";
	
	imgsGallery[19] = new Object();
	imgsGallery[19].image = "images/portfolio/bromptons/02.jpg";
	imgsGallery[19].caption = "this is image 10";
	
	imgsGallery[20] = new Object();
	imgsGallery[20].image = "images/portfolio/bromptons/03.jpg";
	imgsGallery[20].caption = "this is image 10";
	
	imgsGallery[21] = new Object();
	imgsGallery[21].image = "images/portfolio/bromptons/04.jpg";
	imgsGallery[21].caption = "this is image 10";
	
	imgsGallery[22] = new Object();
	imgsGallery[22].image = "images/portfolio/bromptons/05.jpg";
	imgsGallery[22].caption = "this is image 10";
	
	imgsGallery[23] = new Object();
	imgsGallery[23].image = "images/portfolio/bromptons/06.jpg";
	imgsGallery[23].caption = "this is image 10";
	
	imgsGallery[24] = new Object();
	imgsGallery[24].image = "images/portfolio/bromptons/07.jpg";
	imgsGallery[24].caption = "this is image 10";
	
	imgsGallery[25] = new Object();
	imgsGallery[25].image = "images/portfolio/bromptons/08.jpg";
	imgsGallery[25].caption = "this is image 10";
	
	imgsGallery[26] = new Object();
	imgsGallery[26].image = "images/portfolio/bromptons/09.jpg";
	imgsGallery[26].caption = "this is image 10";
	
	// Dilke Street
	
	imgsGallery[27] = new Object();
	imgsGallery[27].image = "images/portfolio/dilke/01.jpg";
	imgsGallery[27].caption = "this is image 10";
	
	imgsGallery[28] = new Object();
	imgsGallery[28].image = "images/portfolio/dilke/02.jpg";
	imgsGallery[28].caption = "this is image 10";
	
	imgsGallery[29] = new Object();
	imgsGallery[29].image = "images/portfolio/dilke/03.jpg";
	imgsGallery[29].caption = "this is image 10";
	
	imgsGallery[30] = new Object();
	imgsGallery[30].image = "images/portfolio/dilke/04.jpg";
	imgsGallery[30].caption = "this is image 10";
	
	imgsGallery[31] = new Object();
	imgsGallery[31].image = "images/portfolio/dilke/05.jpg";
	imgsGallery[31].caption = "this is image 10";
	
	imgsGallery[32] = new Object();
	imgsGallery[32].image = "images/portfolio/dilke/06.jpg";
	imgsGallery[32].caption = "this is image 10";
	
	imgsGallery[33] = new Object();
	imgsGallery[33].image = "images/portfolio/dilke/07.jpg";
	imgsGallery[33].caption = "this is image 10";
	
	imgsGallery[34] = new Object();
	imgsGallery[34].image = "images/portfolio/dilke/08.jpg";
	imgsGallery[34].caption = "this is image 10";
	
	imgsGallery[35] = new Object();
	imgsGallery[35].image = "images/portfolio/dilke/09.jpg";
	imgsGallery[35].caption = "this is image 10";
	
	imgsGallery[36] = new Object();
	imgsGallery[36].image = "images/portfolio/dilke/10.jpg";
	imgsGallery[36].caption = "this is image 10";
	
	imgsGallery[37] = new Object();
	imgsGallery[37].image = "images/portfolio/dilke/11.jpg";
	imgsGallery[37].caption = "this is image 10";
	
	imgsGallery[38] = new Object();
	imgsGallery[38].image = "images/portfolio/dilke/12.jpg";
	imgsGallery[38].caption = "this is image 10";
	
	// Meadow Cottage
	
	imgsGallery[39] = new Object();
	imgsGallery[39].image = "images/portfolio/meadow/01.jpg";
	imgsGallery[39].caption = "this is image 10";
	
	imgsGallery[40] = new Object();
	imgsGallery[40].image = "images/portfolio/meadow/02.jpg";
	imgsGallery[40].caption = "this is image 10";
	
	// Tregunter Road
	
	imgsGallery[41] = new Object();
	imgsGallery[41].image = "images/portfolio/tregunter/01.jpg";
	imgsGallery[41].caption = "this is image 10";
	
	imgsGallery[42] = new Object();
	imgsGallery[42].image = "images/portfolio/tregunter/02.jpg";
	imgsGallery[42].caption = "this is image 10";
	
	imgsGallery[43] = new Object();
	imgsGallery[43].image = "images/portfolio/tregunter/03.jpg";
	imgsGallery[43].caption = "this is image 10";
	
	imgsGallery[44] = new Object();
	imgsGallery[44].image = "images/portfolio/tregunter/04.jpg";
	imgsGallery[44].caption = "this is image 10";
	
	imgsGallery[45] = new Object();
	imgsGallery[45].image = "images/portfolio/tregunter/05.jpg";
	imgsGallery[45].caption = "this is image 10";
	
	imgsGallery[46] = new Object();
	imgsGallery[46].image = "images/portfolio/tregunter/06.jpg";
	imgsGallery[46].caption = "this is image 10";
	
	imgsGallery[47] = new Object();
	imgsGallery[47].image = "images/portfolio/tregunter/07.jpg";
	imgsGallery[47].caption = "this is image 10";
	
	// Eaton Square
	
	imgsGallery[48] = new Object();
	imgsGallery[48].image = "images/portfolio/eaton/01.jpg";
	imgsGallery[48].caption = "this is image 10";
	
	imgsGallery[49] = new Object();
	imgsGallery[49].image = "images/portfolio/eaton/02.jpg";
	imgsGallery[49].caption = "this is image 10";
	
	imgsGallery[50] = new Object();
	imgsGallery[50].image = "images/portfolio/eaton/03.jpg";
	imgsGallery[50].caption = "this is image 10";
	
	imgsGallery[51] = new Object();
	imgsGallery[51].image = "images/portfolio/eaton/04.jpg";
	imgsGallery[51].caption = "this is image 10";
	
	// Park Street
	
	imgsGallery[52] = new Object();
	imgsGallery[52].image = "images/portfolio/park/01a.jpg";
	imgsGallery[52].caption = "this is image 10";
	
	imgsGallery[53] = new Object();
	imgsGallery[53].image = "images/portfolio/park/02a.jpg";
	imgsGallery[53].caption = "this is image 10";
	
	imgsGallery[54] = new Object();
	imgsGallery[54].image = "images/portfolio/park/03a.jpg";
	imgsGallery[54].caption = "this is image 10";
	
	imgsGallery[55] = new Object();
	imgsGallery[55].image = "images/portfolio/park/04a.jpg";
	imgsGallery[55].caption = "this is image 10";
	
	imgsGallery[56] = new Object();
	imgsGallery[56].image = "images/portfolio/park/05a.jpg";
	imgsGallery[56].caption = "this is image 10";
	
	imgsGallery[57] = new Object();
	imgsGallery[57].image = "images/portfolio/park/06a.jpg";
	imgsGallery[57].caption = "this is image 10";
	
	// Thomas Goode
	
	imgsGallery[58] = new Object();
	imgsGallery[58].image = "images/portfolio/thomas/01.jpg";
	imgsGallery[58].caption = "this is image 10";
	
	imgsGallery[59] = new Object();
	imgsGallery[59].image = "images/portfolio/thomas/02.jpg";
	imgsGallery[59].caption = "this is image 10";
	
	imgsGallery[60] = new Object();
	imgsGallery[60].image = "images/portfolio/thomas/03.jpg";
	imgsGallery[60].caption = "this is image 10";
	
	imgsGallery[61] = new Object();
	imgsGallery[61].image = "images/portfolio/thomas/04.jpg";
	imgsGallery[61].caption = "this is image 10";
	
	// Phillimore Square
	
	imgsGallery[62] = new Object();
	imgsGallery[62].image = "images/portfolio/phillimoresquare/01.jpg";
	imgsGallery[62].caption = "this is image 10";

	imgsGallery[63] = new Object();
	imgsGallery[63].image = "images/portfolio/phillimoresquare/02.jpg";
	imgsGallery[63].caption = "this is image 10";
	
	imgsGallery[64] = new Object();
	imgsGallery[64].image = "images/portfolio/phillimoresquare/03.jpg";
	imgsGallery[64].caption = "this is image 10";
	
	imgsGallery[65] = new Object();
	imgsGallery[65].image = "images/portfolio/phillimoresquare/04.jpg";
	imgsGallery[65].caption = "this is image 10";
	
	// The Phillimores
	
	imgsGallery[68] = new Object();
	imgsGallery[68].image = "images/portfolio/phillimores/01.jpg";
	imgsGallery[68].caption = "this is image 10";
	
	imgsGallery[69] = new Object();
	imgsGallery[69].image = "images/portfolio/phillimores/02.jpg";
	imgsGallery[69].caption = "this is image 10";
	
	imgsGallery[70] = new Object();
	imgsGallery[70].image = "images/portfolio/phillimores/03.jpg";
	imgsGallery[70].caption = "this is image 10";
	
	imgsGallery[71] = new Object();
	imgsGallery[71].image = "images/portfolio/phillimores/04.jpg";
	imgsGallery[71].caption = "this is image 10";
	
	imgsGallery[72] = new Object();
	imgsGallery[72].image = "images/portfolio/phillimores/05.jpg";
	imgsGallery[72].caption = "this is image 10";
	
	imgsGallery[73] = new Object();
	imgsGallery[73].image = "images/portfolio/phillimores/06.jpg";
	imgsGallery[73].caption = "this is image 10";
	
	imgsGallery[74] = new Object();
	imgsGallery[74].image = "images/portfolio/phillimores/07.jpg";
	imgsGallery[74].caption = "this is image 10";
	
	imgsGallery[75] = new Object();
	imgsGallery[75].image = "images/portfolio/phillimores/08.jpg";
	imgsGallery[75].caption = "this is image 10";
	
	imgsGallery[76] = new Object();
	imgsGallery[76].image = "images/portfolio/phillimores/09.jpg";
	imgsGallery[76].caption = "this is image 10";
	
	imgsGallery[77] = new Object();
	imgsGallery[77].image = "images/portfolio/phillimores/10.jpg";
	imgsGallery[77].caption = "this is image 10";
	
	imgsGallery[78] = new Object();
	imgsGallery[78].image = "images/portfolio/phillimores/11.jpg";
	imgsGallery[78].caption = "this is image 10";
	
	imgsGallery[79] = new Object();
	imgsGallery[79].image = "images/portfolio/phillimores/12.jpg";
	imgsGallery[79].caption = "this is image 10";
	
	imgsGallery[80] = new Object();
	imgsGallery[80].image = "images/portfolio/phillimores/13.jpg";
	imgsGallery[80].caption = "this is image 10";
	
	imgsGallery[81] = new Object();
	imgsGallery[81].image = "images/portfolio/phillimores/14.jpg";
	imgsGallery[81].caption = "this is image 10";
	
	imgsGallery[82] = new Object();
	imgsGallery[82].image = "images/portfolio/phillimores/15.jpg";
	imgsGallery[82].caption = "this is image 10";
	
	// Cliveden
	
	imgsGallery[83] = new Object();
	imgsGallery[83].image = "images/portfolio/cliveden/01.jpg";
	imgsGallery[83].caption = "this is image 10";
	
	imgsGallery[84] = new Object();
	imgsGallery[84].image = "images/portfolio/cliveden/02.jpg";
	imgsGallery[84].caption = "this is image 10";
	
	imgsGallery[85] = new Object();
	imgsGallery[85].image = "images/portfolio/cliveden/03.jpg";
	imgsGallery[85].caption = "this is image 10";
	
	imgsGallery[86] = new Object();
	imgsGallery[86].image = "images/portfolio/cliveden/04.jpg";
	imgsGallery[86].caption = "this is image 10";
	
	// Additional Bromptons
	
	imgsGallery[87] = new Object();
	imgsGallery[87].image = "images/portfolio/bromptons/10.jpg";
	imgsGallery[87].caption = "this is image 10";
	
	imgsGallery[88] = new Object();
	imgsGallery[88].image = "images/portfolio/bromptons/11.jpg";
	imgsGallery[88].caption = "this is image 10";
	
	imgsGallery[89] = new Object();
	imgsGallery[89].image = "images/portfolio/bromptons/12.jpg";
	imgsGallery[89].caption = "this is image 10";
	
	imgsGallery[90] = new Object();
	imgsGallery[90].image = "images/portfolio/bromptons/13.jpg";
	imgsGallery[90].caption = "this is image 10";
	
	imgsGallery[91] = new Object();
	imgsGallery[91].image = "images/portfolio/bromptons/14.jpg";
	imgsGallery[91].caption = "this is image 10";
	
	// Phillimores Rev 2 
	
	imgsGallery[92] = new Object();
	imgsGallery[92].image = "images/portfolio/phillimores/01.jpg";
	imgsGallery[92].caption = "this is image 10";
	
	imgsGallery[93] = new Object();
	imgsGallery[93].image = "images/portfolio/phillimores/02.jpg";
	imgsGallery[93].caption = "this is image 10";
	
	imgsGallery[94] = new Object();
	imgsGallery[94].image = "images/portfolio/phillimores/03.jpg";
	imgsGallery[94].caption = "this is image 10";
	
	imgsGallery[95] = new Object();
	imgsGallery[95].image = "images/portfolio/phillimores/04.jpg";
	imgsGallery[95].caption = "this is image 10";
	
	imgsGallery[96] = new Object();
	imgsGallery[96].image = "images/portfolio/phillimores/05.jpg";
	imgsGallery[96].caption = "this is image 10";
	
	imgsGallery[97] = new Object();
	imgsGallery[97].image = "images/portfolio/phillimores/06.jpg";
	imgsGallery[97].caption = "this is image 10";
	
	imgsGallery[98] = new Object();
	imgsGallery[98].image = "images/portfolio/phillimores/07.jpg";
	imgsGallery[98].caption = "this is image 10";
	
	imgsGallery[99] = new Object();
	imgsGallery[99].image = "images/portfolio/phillimores/08.jpg";
	imgsGallery[99].caption = "this is image 10";
	
	imgsGallery[100] = new Object();
	imgsGallery[100].image = "images/portfolio/phillimores/09.jpg";
	imgsGallery[100].caption = "this is image 10";
	
	imgsGallery[101] = new Object();
	imgsGallery[101].image = "images/portfolio/phillimores/10.jpg";
	imgsGallery[101].caption = "this is image 10";
	
	imgsGallery[102] = new Object();
	imgsGallery[102].image = "images/portfolio/phillimores/11.jpg";
	imgsGallery[102].caption = "this is image 10";
	
	imgsGallery[103] = new Object();
	imgsGallery[103].image = "images/portfolio/phillimores/12.jpg";
	imgsGallery[103].caption = "this is image 10";
	
	// Earls Terrace Rev 2
	
	imgsGallery[104] = new Object();
	imgsGallery[104].image = "images/portfolio/earls/09.jpg";
	imgsGallery[104].caption = "this is image 10";
	
	imgsGallery[105] = new Object();
	imgsGallery[105].image = "images/portfolio/earls/11.jpg";
	imgsGallery[105].caption = "this is image 10";
	
	// Phillimores Square Rev 2
	
	imgsGallery[106] = new Object();
	imgsGallery[106].image = "images/portfolio/phillimoresquare/05.jpg";
	imgsGallery[106].caption = "this is image 10";
	
	imgsGallery[107] = new Object();
	imgsGallery[107].image = "images/portfolio/phillimoresquare/06.jpg";
	imgsGallery[107].caption = "this is image 10";
	
	// Eaton Square Rev 2
	
	imgsGallery[108] = new Object();
	imgsGallery[108].image = "images/portfolio/eaton/05.jpg";
	imgsGallery[108].caption = "this is image 10";
	
	// The Lancasters
	
	imgsGallery[120] = new Object();
	imgsGallery[120].image = "images/portfolio/lancaster/01.jpg";
	imgsGallery[120].caption = "";
	
	imgsGallery[121] = new Object();
	imgsGallery[121].image = "images/portfolio/lancaster/02.jpg";
	imgsGallery[121].caption = "";
	
	imgsGallery[122] = new Object();
	imgsGallery[122].image = "images/portfolio/lancaster/03.jpg";
	imgsGallery[122].caption = "";
	
	imgsGallery[123] = new Object();
	imgsGallery[123].image = "images/portfolio/lancaster/04.jpg";
	imgsGallery[123].caption = "";
	
	imgsGallery[124] = new Object();
	imgsGallery[124].image = "images/portfolio/lancaster/05.jpg";
	imgsGallery[124].caption = "";
	
	imgsGallery[125] = new Object();
	imgsGallery[125].image = "images/portfolio/lancaster/06.jpg";
	imgsGallery[125].caption = "";
	
	imgsGallery[126] = new Object();
	imgsGallery[126].image = "images/portfolio/lancaster/07.jpg";
	imgsGallery[126].caption = "";
	
	imgs = new MudFadeGallery('imgs', 'proj_image', imgsGallery);
}

////////////////////////////////////////////////////////////////////////////////
// EVENTS

// gecko, safari, konqueror and generic
if (typeof window.addEventListener != 'undefined') {
	window.addEventListener('load', mudInit, false);
}
// opera 7
else if (typeof document.addEventListener != 'undefined') {
	document.addEventListener('load', mudInit, false);
}
// win/ie
else if (typeof window.attachEvent != 'undefined') {
	window.attachEvent("onload", mudInit);
}
// rest
else {
	window.onload = mudInit;
}