/*******************************************************************************

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/banner/image_01.jpg";
	imgsGallery[0].title = "<a href=profile.htm target=_self>Welcome to Fleet Architects</a>";
	imgsGallery[0].caption = "Our buildings are designed to be used; lived in, worked in and healed in.  They are for the present, the future and the past of a place and the people that engage in them, not merely the designer at the instance when the hoarding is demounted.";
	
	imgsGallery[1] = new Object();
	imgsGallery[1].image = new Image();
	imgsGallery[1].image.src = "images/banner/image_02.jpg";
	imgsGallery[1].title = "<a href=work/goswell/goswell.htm target=_self>MORELANDS HEALTH FACILITY APPRAISALS</A>";
	imgsGallery[1].caption = "South Islington Health Centre combined with affordable housing in a tower or an upcycled community centre to create healthy living hub";	
	
	imgsGallery[2] = new Object();
	imgsGallery[2].image = new Image();
	imgsGallery[2].image.src = "images/banner/image_03.jpg";
	imgsGallery[2].title = "";
	imgsGallery[2].caption = "";
	
	imgsGallery[3] = new Object();
	imgsGallery[3].image = new Image();
	imgsGallery[3].image.src = "images/banner/image_04.jpg";
	imgsGallery[3].title = "<a href=work/fish/fish.htm target=_self>FISH & BREAD</A>";
	imgsGallery[3].caption = "Conversion of A Grade II listed YMCA charity shop into a Wet Fish and Freshly baked bread cafe.";	

	imgsGallery[4] = new Object();
	imgsGallery[4].image = new Image();
	imgsGallery[4].image.src = "images/banner/image_01.jpg";
	imgsGallery[4].title = "";
	imgsGallery[4].caption = "";
	
	imgsGallery[5] = new Object();
	imgsGallery[5].image = new Image();
	imgsGallery[5].image.src = "images/banner/image_06.jpg";
	imgsGallery[5].title = "<a href=work/soapbox/soapbox.htm target=_self>VILLAGE GREEN SOAPBOX</A>";
	imgsGallery[5].caption = "Demountable, Anti-tent, Glow-in-the-dark stage for the Village Green Festival";	
	
	imgsGallery[6] = new Object();
	imgsGallery[6].image = new Image();
	imgsGallery[6].image.src = "images/banner/image_07.jpg";
	imgsGallery[6].title = "<a href=work/eastcastle/eastcastle.htm target=_self>FLEXIBLE OFFICE</A>";
	imgsGallery[6].caption = "Affordable reprovision of an office shell to create flexible workspace ";
	
	imgsGallery[7] = new Object();
	imgsGallery[7].image = new Image();
	imgsGallery[7].image.src = "images/banner/image_08.jpg";
	imgsGallery[7].title = "<a href=work/dedworth/dedworth.htm target=_self>THE PORCH</A>";
	imgsGallery[7].caption = "Cloistered courtyard extension to 1960’s community church.";	

	imgsGallery[8] = new Object();
	imgsGallery[8].image = new Image();
	imgsGallery[8].image.src = "images/banner/image_09.jpg";
	imgsGallery[8].title = "<a href=work/teaching/teaching.htm target=_self>NEW TEACHING HOSPITAL</A>";
	imgsGallery[8].caption = "Best practice teaching hospital fully integrated into urban grain";
	
	imgsGallery[9] = new Object();
	imgsGallery[9].image = new Image();
	imgsGallery[9].image.src = "images/banner/image_10.jpg";
	imgsGallery[9].title = "";
	imgsGallery[9].caption = "";	
	
	imgsGallery[10] = new Object();
	imgsGallery[10].image = new Image();
	imgsGallery[10].image.src = "images/banner/image_11.jpg";
	imgsGallery[10].title = "<a href=work/royalharbour/royalharbour.htm target=_self>LOFTS PROJECT</A>";
	imgsGallery[10].caption = "Cliff top mews extension to Grade II listed boutique hotel";
	
	imgsGallery[11] = new Object();
	imgsGallery[11].image = new Image();
	imgsGallery[11].image.src = "images/banner/image_12.jpg";
	imgsGallery[11].title = "<a href=http://www.granvilletheatre.com/ target=_blank>The Granville Theatre & Cinema</A>";
	imgsGallery[11].caption = "The renaisance of a seaside cinema and arts complex";	
	
	imgsGallery[12] = new Object();
	imgsGallery[12].image = new Image();
	imgsGallery[12].image.src = "images/banner/image_13.jpg";
	imgsGallery[12].title = "<a href=work/mileend/mileend.htm target=_self>Mile End Health and Wellbeing Centre</A>";
	imgsGallery[12].caption = "Integrated Care Campus, with modularity and sustainability at its east-end heart";	
	
	imgsGallery[13] = new Object();
	imgsGallery[13].image = new Image();
	imgsGallery[13].image.src = "images/banner/image_14.jpg";
	imgsGallery[13].title = "<a href=work/afhstudent/afhstudent.htm target=_self>ARCHITECTS FOR HEALTH STUDENT DESIGN AWARDS</A>";
	imgsGallery[13].caption = "As an executive board member of AfH, Jaime Bishop conceived and runs the annual international student design competition with the goal of attracting talented young designers to work in the field of healthcare design";
	
	imgsGallery[14] = new Object();
	imgsGallery[14].image = new Image();
	imgsGallery[14].image.src = "images/banner/image_15.jpg";
	imgsGallery[14].title = "<a href=work/child/child.htm target=_self>CHILDREN’s PRIMARY CARE </A>";
	imgsGallery[14].caption = "Playful paediatric centre of excellence and catalyst for regeneration ";	

	
	imgsGallery[15] = new Object();
	imgsGallery[15].image = new Image();
	imgsGallery[15].image.src = "images/banner/image_16.jpg";
	imgsGallery[15].title = "";
	imgsGallery[15].caption = "";

	
	imgsGallery[16] = new Object();
	imgsGallery[16].image = new Image();
	imgsGallery[16].image.src = "images/banner/image_17.jpg";
	imgsGallery[16].title = "<a href=work/pfigen/pfigen.htm target=_self>PFI GENERAL HOSPITAL </A>";
	imgsGallery[16].caption = "Rationalisation of disparate Victorian hospital site, creating easily navigable state of the art General Hospital.";

	
	imgsGallery[17] = new Object();
	imgsGallery[17].image = new Image();
	imgsGallery[17].image.src = "images/banner/image_18.jpg";
	imgsGallery[17].title = "<a href=work/BHlift/BHlift.htm target=_self>HEALTH & SOCIAL CARE CENTRE </A>";
	imgsGallery[17].caption = "Landmark LIFT scheme that consolidates difficult site with new brown field master plan.";

	
	imgsGallery[18] = new Object();
	imgsGallery[18].image = new Image();
	imgsGallery[18].image.src = "images/banner/image_19.jpg";
	imgsGallery[18].title = "<a href=work/community/community.htm target=_self>ST MICHAEL's REPROVISION</A>";
	imgsGallery[18].caption = "Community Hospital revisited and replanned through intensive compact programme";

	
	imgsGallery[19] = new Object();
	imgsGallery[19].image = new Image();
	imgsGallery[19].image.src = "images/banner/image_20.jpg";
	imgsGallery[19].title = "<a href=profile.htm target=_self>The Source of the Fleet</A>";
	imgsGallery[19].caption = "Jaime Bishop & Richard Henson 2008";




	// 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);