var imageValue = 1;
function setImageValue(number){
	   	imageValue = number;
}
var cameraValue = 0;
var cameraName;
var prevImageValue;
var prevImageMorph;
function setCameraValue(number){
	cameraValue = number;
}

function menu_accordion() {
var currentURL = document.URL;
var mySplitResult = currentURL.split("?");
var displayVar = 9;
if((mySplitResult[1]=='page=150')||(mySplitResult[1]=='page=187')||(mySplitResult[1]=='page=185')){
	displayVar = 0;
}
if ((mySplitResult[1]=='page=177')||(mySplitResult[1]=='page=178')||(mySplitResult[1]=='page=177')||(mySplitResult[1]=='page=143')||(mySplitResult[1]=='page=184')){
	displayVar = 1;
}

var accordion = new Accordion('h4.toggler', 'div.stretch', $('accordion'),{display: eval(displayVar)});
}

window.addEvent('domready', function() {
	menu_accordion();
	var phase1Slider = new Fx.Styles('phase1Details', {duration: 100, wait:false});
	var phase2Slider = new Fx.Styles('phase2Details', {duration: 100, wait: false});
	var phase3Slider = new Fx.Styles('phase3Details', {duration: 100, wait: false});
	$('phaseOne').addEvent('mouseenter', function(e){
		e = new Event(e);
		$('aerialView').setStyle('background-image','url(/clients/www.brewerysquare.com/assets/image/aerial/aerial_CGI_phase1.jpg)');
		phase1Slider.start({'opacity': 1});
		phase2Slider.start({'opacity': 0});
		phase3Slider.start({'opacity': 0});
		e.stop();
  	});
	$('phaseOne').addEvent('mouseleave', function(e){
		e = new Event(e);
		$('aerialView').setStyle('background-image','url(/clients/www.brewerysquare.com/assets/image/aerial/aerial_CGI.jpg)');
		phase1Slider.start({'opacity': 0});
		phase2Slider.start({'opacity': 0});
		phase3Slider.start({'opacity': 0});
		e.stop();
	});
	$('phaseTwo').addEvent('mouseenter', function(e){
		e = new Event(e);
		$('aerialView').setStyle('background-image','url(/clients/www.brewerysquare.com/assets/image/aerial/aerial_CGI_phase2.jpg)');
		phase2Slider.start({'opacity': 1});
		phase1Slider.start({'opacity': 0});
		phase3Slider.start({'opacity': 0});
		e.stop();
 	});
	$('phaseTwo').addEvent('mouseleave', function(e){
		e = new Event(e);
		$('aerialView').setStyle('background-image','url(/clients/www.brewerysquare.com/assets/image/aerial/aerial_CGI.jpg)');
		phase2Slider.start({'opacity': 0});
		phase1Slider.start({'opacity': 0});
		phase3Slider.start({'opacity': 0});
		e.stop();
	});
	$('phaseThree').addEvent('mouseenter', function(e){
		e = new Event(e);
		$('aerialView').setStyle('background-image','url(/clients/www.brewerysquare.com/assets/image/aerial/aerial_CGI_phase3.jpg)');
		phase3Slider.start({'opacity': 1});
		phase1Slider.start({'opacity': 0});
		phase2Slider.start({'opacity': 0});
		e.stop();
	});
	$('phaseThree').addEvent('mouseleave', function(e){
		e = new Event(e);
		$('aerialView').setStyle('background-image','url(/clients/www.brewerysquare.com/assets/image/aerial/aerial_CGI.jpg)');
		phase3Slider.start({'opacity': 0});
		phase1Slider.start({'opacity': 0});
		phase2Slider.start({'opacity': 0});
		e.stop();
	});
		var myMorph = new Fx.Styles('smallImageHolder', {duration: 400,wait: false});
		var myMorpha = new Fx.Styles('shadowBox', {duration: 400,wait: false});
		var myMorph1 = new Fx.Styles('smallImage1', {duration: 400,wait:false});
		var myMorph2 = new Fx.Styles('smallImage2', {duration: 400,wait:false});
		var myMorph3 = new Fx.Styles('smallImage3', {duration: 400,wait:false});
		var myMorph4 = new Fx.Styles('smallImage4', {duration: 400,wait:false});
		var myMorph5 = new Fx.Styles('smallImage5', {duration: 400,wait:false});
		var myMorph6 = new Fx.Styles('smallImage6', {duration: 400,wait:false});
		var myMorph7 = new Fx.Styles('smallImage7', {duration: 400,wait:false});
		var myMorph8 = new Fx.Styles('smallImage8', {duration: 400,wait:false});
		var myMorph9 = new Fx.Styles('smallImage9', {duration: 400,wait:false});
		var myMorph10 = new Fx.Styles('smallImage10', {duration: 400,wait:false});
		var myMorph11 = new Fx.Styles('smallImage11', {duration: 400,wait:false});
		var myMorph12 = new Fx.Styles('smallImage12', {duration: 400,wait:false});
		var myMorph13 = new Fx.Styles('smallImage13', {duration: 400,wait:false});
		var myMorph14 = new Fx.Styles('smallImage14', {duration: 400,wait:false});
		var myMorph15 = new Fx.Styles('smallImage15', {duration: 400,wait:false});
		var myMorph16 = new Fx.Styles('smallImage16', {duration: 400,wait:false});
		var myMorph17 = new Fx.Styles('smallImage17', {duration: 400,wait:false});
		var myMorph18 = new Fx.Styles('smallImage18', {duration: 400,wait:false});
		var myMorph19 = new Fx.Styles('smallImage19', {duration: 400,wait:false});
		var myMorph20 = new Fx.Styles('smallImage20', {duration: 400,wait:false});
		var myMorph21 = new Fx.Styles('smallImage21', {duration: 400,wait:false});
		var myMorph22 = new Fx.Styles('smallImage22', {duration: 400,wait:false});
		var showImageInstructions = new Fx.Styles('enlarge', {duration: 400, transition: Fx.Transitions.linear});
		var hideImageInstructions = new Fx.Styles('enlarge', {duration: 40, transition: Fx.Transitions.linear});
		var showPicNavigation = new Fx.Styles('pictureNavigation', {duration: 400, transition: Fx.Transitions.linear});
		var hidePicNavigation = new Fx.Styles('pictureNavigation', {duration: 40, transition: Fx.Transitions.linear});
		
		$('cameraView1').addEvent('click', function(event) {
			event = new Event(event).stop();
			$$('img.largeImageImg').setStyle('display', 'none');
			document.getElementById('smallImage1').style.display = 'block';
			document.getElementById('enlarge').innerHTML="Health Centre - click image to continue exploring the site";
			showImageInstructions.start({
									'opacity':[0,1],
									'right':200,
									'bottom':11
									});
			myMorph.start({'opacity':1});
			myMorpha.start({'opacity':1});
			myMorph1.start({'opacity':[0,1]});
			cameraValue=1;
			setImageValue(1);
			showPicNavigation.start({'opacity':[0,1]});
			$$('div.cameraView').setStyle('z-index', 11);
			$('phasesBox').setStyle('z-index',9);
			$('aerialTour').setStyle('z-index',9);
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="NHS Dorchester Health Centre" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/dorchesterHealthCentre.gif" />';
		});
		$('cameraView2').addEvent('click', function(event) {
			event = new Event(event).stop();
			$$('img.largeImageImg').setStyle('display', 'none');
			document.getElementById('smallImage3').style.display = 'block';
			document.getElementById('enlarge').innerHTML="The Eldridge Pope Building - click image to continue exploring the site";
			showImageInstructions.start({
									'opacity':[0,1],
									'right':200,
									'bottom':11
									});
			myMorph.start({'opacity':1});  
			myMorpha.start({'opacity':1});
			myMorph3.start({'opacity':[0,1]});
			showImageInstructions.start({'opacity':[1,0]});
			cameraValue=2;
			setImageValue(3);
			showPicNavigation.start({'opacity':[0,1]});
			$$('div.cameraView').setStyle('z-index', 11);
			$('phasesBox').setStyle('z-index',9);
			$('aerialTour').setStyle('z-index',9);
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Eldridge Pope Building" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/eldridgePope.gif" />';
		});
		$('cameraView3').addEvent('click', function(event) {
			event = new Event(event).stop();
			$$('img.largeImageImg').setStyle('display', 'none');
			document.getElementById('smallImage4').style.display = 'block';
			document.getElementById('enlarge').innerHTML="The Completed Eldridge Pope Building - click image to continue exploring the site";
			showImageInstructions.start({
									'opacity':[0,1],
									'right':200,
									'bottom':11
									});
			cameraValue=3;
			myMorph.start({'opacity':[0,1]});
			myMorpha.start({'opacity':[0,1]});
			myMorph4.start({'opacity':[0,1]});
			showImageInstructions.start({'opacity':[1,0]});
			setImageValue(4);
			showPicNavigation.start({'opacity':[0,1]});
			$$('div.cameraView').setStyle('z-index', 11);
			$('phasesBox').setStyle('z-index',9);
			$('aerialTour').setStyle('z-index',9);
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Eldridge Pope Building" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/eldridgePopeCompleted.gif" />';
		});
		$('cameraView4').addEvent('click', function(event) {
			event = new Event(event).stop();
			$$('img.largeImageImg').setStyle('display', 'none');
			document.getElementById('smallImage5').style.display = 'block';
			document.getElementById('enlarge').innerHTML="The Eldridge Pope Building - click image to continue exploring the site";
			showImageInstructions.start({
									'opacity':[0,1],
									'right':200,
									'bottom':11
									});
			cameraValue=4;
			myMorph.start({'opacity':[0,1]});
			myMorpha.start({'opacity':[0,1]});
			myMorph5.start({'opacity':[0,1]});
			showImageInstructions.start({'opacity':[1,0]});
			setImageValue(5);
			showPicNavigation.start({'opacity':[0,1]});
			$$('div.cameraView').setStyle('z-index', 11);
			$('phasesBox').setStyle('z-index',9);
			$('aerialTour').setStyle('z-index',9);
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Eldridge Pope Building" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/eldridgePopeRear.gif" />';
		});
		
		$('cameraView5').addEvent('click', function(event) {
			event = new Event(event).stop();
			$$('img.largeImageImg').setStyle('display', 'none');
			document.getElementById('smallImage7').style.display = 'block';
			document.getElementById('enlarge').innerHTML="The Bonded Stores - click image to continue exploring the site";
			showImageInstructions.start({
									'opacity':[0,1],
									'right':200,
									'bottom':11
									});
			myMorph.start({'opacity':1});  
			myMorpha.start({'opacity':1});
			myMorph7.start({'opacity':[0,1]});
			showImageInstructions.start({'opacity':[1,0]});
			cameraValue=5;
			setImageValue(7);
			showPicNavigation.start({'opacity':[0,1]});
			$$('div.cameraView').setStyle('z-index', 11);
			$('phasesBox').setStyle('z-index',9);
			$('aerialTour').setStyle('z-index',9);
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Thomas Hardy Hall" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/thomasHardyHall.gif" />';
		});
		$('cameraView6').addEvent('click', function(event) {
			event = new Event(event).stop();
			$$('img.largeImageImg').setStyle('display', 'none');
			document.getElementById('smallImage8').style.display = 'block';
			document.getElementById('enlarge').innerHTML="Dray Horse Yard - click image to continue exploring the site";
			showImageInstructions.start({
									'opacity':[0,1],
									'right':200,
									'bottom':11
									});
			myMorph.start({'opacity':[0,1]});
			myMorpha.start({'opacity':[0,1]});
			myMorph8.start({'opacity':[0,1]});
			showImageInstructions.start({'opacity':[1,0]});
			cameraValue=6;
			setImageValue(8);
			showPicNavigation.start({'opacity':[0,1]});
			$$('div.cameraView').setStyle('z-index', 11);
			$('phasesBox').setStyle('z-index',9);
			$('aerialTour').setStyle('z-index',9);
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Dray Horse Yard" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/drayHorseYard.gif" />';
		});
		$('cameraView7').addEvent('click', function(event) {
			event = new Event(event).stop();
			$$('img.largeImageImg').setStyle('display', 'none');
			document.getElementById('smallImage9').style.display = 'block';
			document.getElementById('enlarge').innerHTML="Maumbury Gardens - click image to continue exploring the site.";
			showImageInstructions.start({
									'opacity':[0,1],
									'right':200,
									'bottom':11
									});
			cameraValue=7;
			myMorph.start({'opacity':[0,1]});
			myMorpha.start({'opacity':[0,1]});
			myMorph9.start({'opacity':[0,1]});
			showImageInstructions.start({'opacity':[1,0]});
			setImageValue(9);
			showPicNavigation.start({'opacity':[0,1]});
			$$('div.cameraView').setStyle('z-index', 11);
			$('phasesBox').setStyle('z-index',9);
			$('aerialTour').setStyle('z-index',9);
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Maumbury Gardens" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/maumburyGardens.gif" />';
		});
		$('cameraView8').addEvent('click', function(event) {
			event = new Event(event).stop();
			$$('img.largeImageImg').setStyle('display', 'none');
			document.getElementById('smallImage10').style.display = 'block';
			document.getElementById('enlarge').innerHTML="Screen House - click image to continue exploring the site";
			showImageInstructions.start({
									'opacity':[0,1],
									'right':200,
									'bottom':11
									});
			cameraValue=8;
			myMorph.start({'opacity':[0,1]});
			myMorpha.start({'opacity':[0,1]});
			myMorph10.start({'opacity':[0,1]});
			showImageInstructions.start({'opacity':[1,0]});
			setImageValue(10);
			showPicNavigation.start({'opacity':[0,1]});
			$$('div.cameraView').setStyle('z-index', 11);
			$('phasesBox').setStyle('z-index',9);
			$('aerialTour').setStyle('z-index',9);
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Screen House" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/screenHouse.gif" />';
			
		});
		$('cameraView9').addEvent('click', function(event) {
			event = new Event(event).stop();
			$$('img.largeImageImg').setStyle('display', 'none');
			document.getElementById('smallImage11').style.display = 'block';
			document.getElementById('enlarge').innerHTML="Screen on the Square - click image to continue exploring the site";
			showImageInstructions.start({
									'opacity':[0,1],
									'right':200,
									'bottom':11
									});
			cameraValue=9;
			myMorph.start({'opacity':[0,1]});
			myMorpha.start({'opacity':[0,1]});
			myMorph11.start({'opacity':[0,1]});
			showImageInstructions.start({'opacity':[1,0]});
			setImageValue(11);
			showPicNavigation.start({'opacity':[0,1]});
			$$('div.cameraView').setStyle('z-index', 11);
			$('phasesBox').setStyle('z-index',9);
			$('aerialTour').setStyle('z-index',9);
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Brewery Square" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/brewerySquare.gif" />';
		});
		$('cameraView10').addEvent('click', function(event) {
			event = new Event(event).stop();
			$$('img.largeImageImg').setStyle('display', 'none');
			document.getElementById('smallImage12').style.display = 'block';
			document.getElementById('enlarge').innerHTML="Brewery Hotel - click image to continue exploring the site";

			showImageInstructions.start({
									'opacity':[0,1],
									'right':200,
									'bottom':11
									});
			cameraValue=10;
			myMorph.start({'opacity':[0,1]});
			myMorpha.start({'opacity':[0,1]});
			myMorph12.start({'opacity':[0,1]});
			showImageInstructions.start({'opacity':[1,0]});
			setImageValue(12);
			showPicNavigation.start({'opacity':[0,1]});
			$$('div.cameraView').setStyle('z-index', 11);
			$('phasesBox').setStyle('z-index',9);
			$('aerialTour').setStyle('z-index',9);
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="The Heart and Soul of Dorchester" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/bondedStoresApartments.gif" />';
		});
		$('cameraView11').addEvent('click', function(event) {
			event = new Event(event).stop();
			$$('img.largeImageImg').setStyle('display', 'none');
			document.getElementById('smallImage13').style.display = 'block';
			document.getElementById('enlarge').innerHTML="The Maltings - click image to continue exploring the site";
			showImageInstructions.start({
									'opacity':[0,1],
									'right':200,
									'bottom':11
									});
			cameraValue=11;
			myMorph.start({'opacity':[0,1]});
			myMorpha.start({'opacity':[0,1]});
			myMorph13.start({'opacity':[0,1]});
			showImageInstructions.start({'opacity':[1,0]});
			setImageValue(13);
			showPicNavigation.start({'opacity':[0,1]});
			$$('div.cameraView').setStyle('z-index', 11);
			$('phasesBox').setStyle('z-index',9);
			$('aerialTour').setStyle('z-index',9);
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="The Maltings in Brewery Square" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/theMaltings.gif" />';
		});
		$('cameraView12').addEvent('click', function(event) {
			event = new Event(event).stop();
			$$('img.largeImageImg').setStyle('display', 'none');
			document.getElementById('smallImage14').style.display = 'block';
			document.getElementById('enlarge').innerHTML="The Cooperage - click image to continue exploring the site";
			showImageInstructions.start({
									'opacity':[0,1],
									'right':200,
									'bottom':11
									});
			cameraValue=12;
			myMorph.start({'opacity':[0,1]});
			myMorpha.start({'opacity':[0,1]});
			myMorph14.start({'opacity':[0,1]});
			showImageInstructions.start({'opacity':[1,0]});
			setImageValue(14);
			showPicNavigation.start({'opacity':[0,1]});
			$$('div.cameraView').setStyle('z-index', 11);
			$('phasesBox').setStyle('z-index',9);
			$('aerialTour').setStyle('z-index',9);
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Brewery Square and Pope Street" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/brewerySquareAndPopeStreet.gif" />';
		});
		$('cameraView13').addEvent('click', function(event) {
			event = new Event(event).stop();
			$$('img.largeImageImg').setStyle('display', 'none');
			document.getElementById('smallImage15').style.display = 'block';
			document.getElementById('enlarge').innerHTML="Dorchester South Station - click image to continue exploring the site";
			showImageInstructions.start({
									'opacity':[0,1],
									'right':200,
									'bottom':11
									});
			cameraValue=13;
			myMorph.start({'opacity':[0,1]});
			myMorpha.start({'opacity':[0,1]});
			myMorph15.start({'opacity':[0,1]});
			showImageInstructions.start({'opacity':[1,0]});
			setImageValue(15);
			showPicNavigation.start({'opacity':[0,1]});
			$$('div.cameraView').setStyle('z-index', 11);
			$('phasesBox').setStyle('z-index',9);
			$('aerialTour').setStyle('z-index',9);
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Dorchester South Station" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/dorchesterStation.gif" />';
		});
		$('cameraView14').addEvent('click', function(event) {
			event = new Event(event).stop();
			$$('img.largeImageImg').setStyle('display', 'none');
			document.getElementById('smallImage16').style.display = 'block';
			document.getElementById('enlarge').innerHTML="Ammonite & Copper Crescent - click image to continue exploring the site";
			showImageInstructions.start({
									'opacity':[0,1],
									'right':200,
									'bottom':11
									});
			cameraValue=14;
			myMorph.start({'opacity':[0,1]});
			myMorpha.start({'opacity':[0,1]});
			myMorph16.start({'opacity':[0,1]});
			showImageInstructions.start({'opacity':[1,0]});
			setImageValue(16);
			showPicNavigation.start({'opacity':[0,1]});
			$$('div.cameraView').setStyle('z-index', 11);
			$('phasesBox').setStyle('z-index',9);
			$('aerialTour').setStyle('z-index',9);
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Copper Crescent" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/copperCrescent.gif" />';
		});
		$('cameraView15').addEvent('click', function(event) {
			event = new Event(event).stop();
			$$('img.largeImageImg').setStyle('display', 'none');
			document.getElementById('smallImage17').style.display = 'block';
			document.getElementById('enlarge').innerHTML="Pope Street - click image to continue exploring the site";
			showImageInstructions.start({
									'opacity':[0,1],
									'right':200,
									'bottom':11
									});
			cameraValue=15;
			myMorph.start({'opacity':[0,1]});
			myMorpha.start({'opacity':[0,1]});
			myMorph17.start({'opacity':[0,1]});
			showImageInstructions.start({'opacity':[1,0]});
			setImageValue(17);
			showPicNavigation.start({'opacity':[0,1]});
			$$('div.cameraView').setStyle('z-index', 11);
			$('phasesBox').setStyle('z-index',9);
			$('aerialTour').setStyle('z-index',9);
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Pope Street" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/popeStreet.gif" />';
		});
		$('cameraView16').addEvent('click', function(event) {
			event = new Event(event).stop();
			$$('img.largeImageImg').setStyle('display', 'none');
			document.getElementById('smallImage18').style.display = 'block';
			document.getElementById('enlarge').innerHTML="Hop Hill - click image to continue exploring the site";
			showImageInstructions.start({
									'opacity':[0,1],
									'right':200,
									'bottom':11
									});
			cameraValue=16;
			myMorph.start({'opacity':[0,1]});
			myMorpha.start({'opacity':[0,1]});
			myMorph18.start({'opacity':[0,1]});
			showImageInstructions.start({'opacity':[1,0]});
			setImageValue(18);
			showPicNavigation.start({'opacity':[0,1]});
			$$('div.cameraView').setStyle('z-index', 11);
			$('phasesBox').setStyle('z-index',9);
			$('aerialTour').setStyle('z-index',9);
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Hop Hill" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/hopHill.gif" />';
		});
		$('cameraView17').addEvent('click', function(event) {
			event = new Event(event).stop();
			$$('img.largeImageImg').setStyle('display', 'none');
			document.getElementById('smallImage19').style.display = 'block';
			document.getElementById('enlarge').innerHTML="The Malt House - click image to continue exploring the site";
			showImageInstructions.start({
									'opacity':[0,1],
									'right':200,
									'bottom':11
									});
			cameraValue=17;
			myMorph.start({'opacity':[0,1]});
			myMorpha.start({'opacity':[0,1]});
			myMorph19.start({'opacity':[0,1]});
			showImageInstructions.start({'opacity':[1,0]});
			setImageValue(19);
			showPicNavigation.start({'opacity':[0,1]});
			$$('div.cameraView').setStyle('z-index', 11);
			$('phasesBox').setStyle('z-index',9);
			$('aerialTour').setStyle('z-index',9);
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Malt House" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/maltHouse.gif" />';
		});
		$('cameraView18').addEvent('click', function(event) {
			event = new Event(event).stop();
			$$('img.largeImageImg').setStyle('display', 'none');
			document.getElementById('smallImage20').style.display = 'block';
			document.getElementById('enlarge').innerHTML="Eldridge Street Houses- click image to continue exploring the site";
			showImageInstructions.start({
									'opacity':[0,1],
									'right':200,
									'bottom':11
									});
			cameraValue=18;
			myMorph.start({'opacity':[0,1]});
			myMorpha.start({'opacity':[0,1]});
			myMorph20.start({'opacity':[0,1]});
			hideImageInstructions.start({'opacity':[1,0]});
			setImageValue(20);
			showPicNavigation.start({'opacity':[0,1]});
			$$('div.cameraView').setStyle('z-index', 11);
			$('phasesBox').setStyle('z-index',9);
			$('aerialTour').setStyle('z-index',9);
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Bitter End" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/eldridgeStreetHouses.gif" />';
		});
		$('cameraView19').addEvent('click', function(event) {
			event = new Event(event).stop();
			$$('img.largeImageImg').setStyle('display', 'none');
			document.getElementById('smallImage21').style.display = 'block';
			document.getElementById('enlarge').innerHTML="Brewmasters & Hancock House - click image to continue exploring the site";
			showImageInstructions.start({
									'opacity':[0,1],
									'right':200,
									'bottom':11
									});
			cameraValue=19;
			myMorph.start({'opacity':[0,1]});
			myMorpha.start({'opacity':[0,1]});
			myMorph21.start({'opacity':[0,1]});
			hideImageInstructions.start({'opacity':[1,0]});
			setImageValue(21);
			showPicNavigation.start({'opacity':[0,1]});
			$$('div.cameraView').setStyle('z-index', 11);
			$('phasesBox').setStyle('z-index',9);
			$('aerialTour').setStyle('z-index',9);
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Bitter End" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/brewmasters.gif" />';
		});
		
		$('cameraView20').addEvent('click', function(event) {
			event = new Event(event).stop();
			$$('img.largeImageImg').setStyle('display', 'none');
			document.getElementById('smallImage22').style.display = 'block';
			document.getElementById('enlarge').innerHTML="Bitter End - click image to continue exploring the site";
			showImageInstructions.start({
									'opacity':[0,1],
									'right':200,
									'bottom':11
									});
			cameraValue=20;
			myMorph.start({'opacity':[0,1]});
			myMorpha.start({'opacity':[0,1]});
			myMorph22.start({'opacity':[0,1]});
			hideImageInstructions.start({'opacity':[1,0]});
			setImageValue(22);
			showPicNavigation.start({'opacity':[0,1]});
			$$('div.cameraView').setStyle('z-index', 11);
			$('phasesBox').setStyle('z-index',9);
			$('aerialTour').setStyle('z-index',9);
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Bitter End" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/bitterEnd.gif" />';
		});
		$('morph1').addEvent('click', function(e){
			new Event(e).stop();
			var morphName = "myMorph"+imageValue;
			myMorph.start({'opacity':[1,0]});
			myMorpha.start({'opacity':[1,0]});
			eval(morphName).start({'opacity':0});
			document.getElementById('enlarge').innerHTML="Health Centre";
			hideImageInstructions.start({
									'opacity':0,
									'right':10,
									'bottom':55
									});
			hidePicNavigation.start({'opacity':[1,0]});
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Explore the site heading" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/explorethesite.gif" />';
		});
		$('morph2').addEvent('click', function(e){
			new Event(e).stop();
			var morphName = "myMorph"+imageValue;
			myMorph.start({'opacity':[1,0]});
			myMorpha.start({'opacity':[1,0]});
			eval(morphName).start({'opacity':0});
			document.getElementById('enlarge').innerHTML="Health Centre";
			hideImageInstructions.start({
									'opacity':0,
									'right':10,
									'bottom':55
									});
			hidePicNavigation.start({'opacity':[1,0]});
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Explore the site heading" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/explorethesite.gif" />';
		});
		$('morph3').addEvent('click', function(e){
			new Event(e).stop();
			var morphName = "myMorph"+imageValue;
			myMorph.start({'opacity':[1,0]});
			myMorpha.start({'opacity':[1,0]});
			eval(morphName).start({'opacity':0});
			document.getElementById('enlarge').innerHTML="The Eldridge Pope Building";
			hideImageInstructions.start({
									'opacity':0,
									'right':10,
									'bottom':55
									});
			hidePicNavigation.start({'opacity':[1,0]});
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Explore the site heading" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/explorethesite.gif" />';
		});
		$('morph4').addEvent('click', function(e){
			new Event(e).stop();
			var morphName = "myMorph"+imageValue;
			myMorph.start({'opacity':[1,0]});
			myMorpha.start({'opacity':[1,0]});
			eval(morphName).start({'opacity':0});
			document.getElementById('enlarge').innerHTML="The Completed Eldridge Pope Building";
			hideImageInstructions.start({
									'opacity':0,
									'right':10,
									'bottom':55
									});
			hidePicNavigation.start({'opacity':[1,0]});
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Explore the site heading" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/explorethesite.gif" />';
		});
		$('morph5').addEvent('click', function(e){
			new Event(e).stop();
			var morphName = "myMorph"+imageValue;
			myMorph.start({'opacity':[1,0]});
			myMorpha.start({'opacity':[1,0]});
			eval(morphName).start({'opacity':0});
			document.getElementById('enlarge').innerHTML="The Eldridge Pope Building";
			hideImageInstructions.start({
									'opacity':0,
									'right':10,
									'bottom':55
									});
			hidePicNavigation.start({'opacity':[1,0]});
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Explore the site heading" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/explorethesite.gif" />';
		});
		$('morph6').addEvent('click', function(e){
			new Event(e).stop();
			var morphName = "myMorph"+imageValue;
			myMorph.start({'opacity':[1,0]});
			myMorpha.start({'opacity':[1,0]});
			eval(morphName).start({'opacity':0});
			document.getElementById('enlarge').innerHTML="The Eldridge Pope Building";
			hideImageInstructions.start({
									'opacity':0,
									'right':10,
									'bottom':55
									});
			hidePicNavigation.start({'opacity':[1,0]});
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Explore the site heading" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/explorethesite.gif" />';
		});
		
		$('morph7').addEvent('click', function(e){
			new Event(e).stop();
			var morphName = "myMorph"+imageValue;
			myMorph.start({'opacity':[1,0]});
			myMorpha.start({'opacity':[1,0]});
			eval(morphName).start({'opacity':0});
			document.getElementById('enlarge').innerHTML="The Bonded Stores";
			hideImageInstructions.start({
									'opacity':0,
									'right':10,
									'bottom':55
									});
			hidePicNavigation.start({'opacity':[1,0]});
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Explore the site heading" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/explorethesite.gif" />';
		});
		$('morph8').addEvent('click', function(e){
			new Event(e).stop();
			var morphName = "myMorph"+imageValue;
			myMorph.start({'opacity':[1,0]});
			myMorpha.start({'opacity':[1,0]});
			eval(morphName).start({'opacity':0});
			document.getElementById('enlarge').innerHTML="Dray Horse Yard";
			hideImageInstructions.start({
									'opacity':0,
									'right':10,
									'bottom':55
									});
			hidePicNavigation.start({'opacity':[1,0]});
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Explore the site heading" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/explorethesite.gif" />';
		});
		$('morph9').addEvent('click', function(e){
			new Event(e).stop();
			var morphName = "myMorph"+imageValue;
			myMorph.start({'opacity':[1,0]});
			myMorpha.start({'opacity':[1,0]});
			eval(morphName).start({'opacity':0});
			document.getElementById('enlarge').innerHTML="Maumbury Gardens";
			hideImageInstructions.start({
									'opacity':0,
									'right':10,
									'bottom':55
									});
			hidePicNavigation.start({'opacity':[1,0]});
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Explore the site heading" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/explorethesite.gif" />';
		});
		$('morph10').addEvent('click', function(e){
			new Event(e).stop();
			var morphName = "myMorph"+imageValue;
			myMorph.start({'opacity':[1,0]});
			myMorpha.start({'opacity':[1,0]});
			eval(morphName).start({'opacity':0});
			document.getElementById('enlarge').innerHTML="Screen House";
			hideImageInstructions.start({
									'opacity':0,
									'right':10,
									'bottom':55
									});
			hidePicNavigation.start({'opacity':[1,0]});
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Explore the site heading" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/explorethesite.gif" />';
		});
		$('morph11').addEvent('click', function(e){
			new Event(e).stop();
			var morphName = "myMorph"+imageValue;
			myMorph.start({'opacity':[1,0]});
			myMorpha.start({'opacity':[1,0]});
			eval(morphName).start({'opacity':0});
			document.getElementById('enlarge').innerHTML="Screen on the Square";
			hideImageInstructions.start({
									'opacity':0,
									'right':10,
									'bottom':55
									});
			hidePicNavigation.start({'opacity':[1,0]});
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Explore the site heading" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/explorethesite.gif" />';
		});
		$('morph12').addEvent('click', function(e){
			new Event(e).stop();
			var morphName = "myMorph"+imageValue;
			myMorph.start({'opacity':[1,0]});
			myMorpha.start({'opacity':[1,0]});
			eval(morphName).start({'opacity':0});
			document.getElementById('enlarge').innerHTML="Brewery Hotel";
			hideImageInstructions.start({
									'opacity':0,
									'right':10,
									'bottom':55
									});
			hidePicNavigation.start({'opacity':[1,0]});
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Explore the site heading" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/explorethesite.gif" />';
		});
		$('morph13').addEvent('click', function(e){
			new Event(e).stop();
			var morphName = "myMorph"+imageValue;
			myMorph.start({'opacity':[1,0]});
			myMorpha.start({'opacity':[1,0]});
			eval(morphName).start({'opacity':0});
			document.getElementById('enlarge').innerHTML="The Maltings";
			hideImageInstructions.start({
									'opacity':0,
									'right':10,
									'bottom':55
									});
			hidePicNavigation.start({'opacity':[1,0]});
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Explore the site heading" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/explorethesite.gif" />';
		});
		$('morph14').addEvent('click', function(e){
			new Event(e).stop();
			var morphName = "myMorph"+imageValue;
			myMorph.start({'opacity':[1,0]});
			myMorpha.start({'opacity':[1,0]});
			eval(morphName).start({'opacity':0});
			document.getElementById('enlarge').innerHTML="The Cooperage";
			hideImageInstructions.start({
									'opacity':0,
									'right':10,
									'bottom':55
									});
			hidePicNavigation.start({'opacity':[1,0]});
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Explore the site heading" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/explorethesite.gif" />';
		});
		$('morph15').addEvent('click', function(e){
			new Event(e).stop();
			var morphName = "myMorph"+imageValue;
			myMorph.start({'opacity':[1,0]});
			myMorpha.start({'opacity':[1,0]});
			eval(morphName).start({'opacity':0});
			document.getElementById('enlarge').innerHTML="Dorchester South Station";
			hideImageInstructions.start({
									'opacity':0,
									'right':10,
									'bottom':55
									});
			hidePicNavigation.start({'opacity':[1,0]});
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Explore the site heading" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/explorethesite.gif" />';
			
		});
		$('morph16').addEvent('click', function(e){
			new Event(e).stop();
			var morphName = "myMorph"+imageValue;
			myMorph.start({'opacity':[1,0]});
			myMorpha.start({'opacity':[1,0]});
			eval(morphName).start({'opacity':0});
			document.getElementById('enlarge').innerHTML="Ammonite & Copper Crescent";
			hideImageInstructions.start({
									'opacity':0,
									'right':10,
									'bottom':55
									});
			hidePicNavigation.start({'opacity':[1,0]});
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Explore the site heading" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/explorethesite.gif" />';
			
		});
		$('morph17').addEvent('click', function(e){
			new Event(e).stop();
			var morphName = "myMorph"+imageValue;
			myMorph.start({'opacity':[1,0]});
			myMorpha.start({'opacity':[1,0]});
			eval(morphName).start({'opacity':0});
			document.getElementById('enlarge').innerHTML="Pope Street";
			hideImageInstructions.start({
									'opacity':0,
									'right':10,
									'bottom':55
									});
			hidePicNavigation.start({'opacity':[1,0]});
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Explore the site heading" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/explorethesite.gif" />';
		});
		$('morph18').addEvent('click', function(e){
			new Event(e).stop();
			var morphName = "myMorph"+imageValue;
			myMorph.start({'opacity':[1,0]});
			myMorpha.start({'opacity':[1,0]});
			eval(morphName).start({'opacity':0});
			document.getElementById('enlarge').innerHTML="Hop Hill";
			hideImageInstructions.start({
									'opacity':0,
									'right':10,
									'bottom':55
									});
			hidePicNavigation.start({'opacity':[1,0]});
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Explore the site heading" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/explorethesite.gif" />';
		});
		$('morph19').addEvent('click', function(e){
			new Event(e).stop();
			var morphName = "myMorph"+imageValue;
			myMorph.start({'opacity':[1,0]});
			myMorpha.start({'opacity':[1,0]});
			eval(morphName).start({'opacity':0});
			document.getElementById('enlarge').innerHTML="The Malt House";
			hideImageInstructions.start({
									'opacity':0,
									'right':10,
									'bottom':55
									});
			hidePicNavigation.start({'opacity':[1,0]});
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Explore the site heading" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/explorethesite.gif" />';
		});
		$('morph20').addEvent('click', function(e){
			new Event(e).stop();
			var morphName = "myMorph"+imageValue;
			myMorph.start({'opacity':[1,0]});
			myMorpha.start({'opacity':[1,0]});
			eval(morphName).start({'opacity':0});
			document.getElementById('enlarge').innerHTML="Cork Store";
			hideImageInstructions.start({
									'opacity':0,
									'right':10,
									'bottom':55
									});
			hidePicNavigation.start({'opacity':[1,0]});
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Explore the site heading" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/explorethesite.gif" />';
		});
		$('morph21').addEvent('click', function(e){
			new Event(e).stop();
			var morphName = "myMorph"+imageValue;
			myMorph.start({'opacity':[1,0]});
			myMorpha.start({'opacity':[1,0]});
			eval(morphName).start({'opacity':0});
			document.getElementById('enlarge').innerHTML="Brewmasters";
			hideImageInstructions.start({
									'opacity':0,
									'right':10,
									'bottom':55
									});
			hidePicNavigation.start({'opacity':[1,0]});
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Explore the site heading" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/explorethesite.gif" />';
		});
		$('morph22').addEvent('click', function(e){
			new Event(e).stop();
			var morphName = "myMorph"+imageValue;
			myMorph.start({'opacity':[1,0]});
			myMorpha.start({'opacity':[1,0]});
			eval(morphName).start({'opacity':0});
			document.getElementById('enlarge').innerHTML="Bitter End";
			hideImageInstructions.start({
									'opacity':0,
									'right':10,
									'bottom':55
									});
			hidePicNavigation.start({'opacity':[1,0]});
			document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Explore the site heading" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/explorethesite.gif" />';
		});
		$('picNavBack').addEvent('click', function(e){
			new Event(e).stop();
			prevImageValue = imageValue -1;
						
			if(imageValue == 1) {
				prevImageValue = 22;
				
			}
			prevImageMorph = "myMorph"+prevImageValue;
			currentImageMorph = "myMorph"+imageValue;
			if(prevImageValue > 0){
				prevImageId = "smallImage"+prevImageValue;
				currentImageId = "smallImage"+imageValue;
				document.getElementById(prevImageId).style.display = 'block';
				eval(prevImageMorph).start({'opacity': [0,1]});
				eval(currentImageMorph).start({'opacity':[1,0]});
				imageValue = imageValue -1;
				if (imageValue == 0){
					imageValue = 22;
				}
				setTimeout("document.getElementById(currentImageId).style.display = 'none'",650);
				}
			switch (imageValue){
				case 1: document.getElementById('enlarge').innerHTML="Health Centre - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="NHS Dorchester Health Centre" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/dorchesterHealthCentre.gif" />'; break;
				case 2: document.getElementById('enlarge').innerHTML="Health Centre - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="NHS Dorchester Health Centre" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/dorchesterHealthCentre.gif" />'; break;
				case 3: document.getElementById('enlarge').innerHTML="The Eldridge Pope Building - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Eldridge Pope Building" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/eldridgePope.gif" />'; break;
				case 4: document.getElementById('enlarge').innerHTML="The Completed Eldridge Pope Building - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt=" Completed Eldridge Pope Building" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/eldridgePopeCompleted.gif" />'; break;
				case 5: document.getElementById('enlarge').innerHTML="The Eldridge Pope Building - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Eldridge Pope Building" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/eldridgePopeRear.gif" />'; break;
				case 6: document.getElementById('enlarge').innerHTML="The Eldridge Pope Building - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Eldridge Pope Building" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/eldridgePopeRear.gif" />'; break;
				case 7: document.getElementById('enlarge').innerHTML="The Bonded Stores - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Thomas Hardy Hall" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/thomasHardyHall.gif" />'; break;
				case 8: document.getElementById('enlarge').innerHTML="Dray Horse Yard - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Dray Horse Yard" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/drayHorseYard.gif" />'; break;
				case 9: document.getElementById('enlarge').innerHTML="Maumbury Gardens - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Maumbury Gardens" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/maumburyGardens.gif" />'; break;
				case 10: document.getElementById('enlarge').innerHTML="Screen House - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Screen House" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/screenHouse.gif" />'; break;
				case 11: document.getElementById('enlarge').innerHTML="Screen on the Square - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Brewery Square" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/brewerySquare.gif" />'; break;
				case 12: document.getElementById('enlarge').innerHTML="Brewery Hotel - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="The Heart and Soul of Dorchester" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/bondedStoresApartments.gif" />'; break;
				case 13: document.getElementById('enlarge').innerHTML="The Maltings - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="The Maltings in Brewery Square" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/theMaltings.gif" />'; break;
				case 14: document.getElementById('enlarge').innerHTML="The Cooperage - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Brewery Square and Pope Street" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/brewerySquareAndPopeStreet.gif" />'; break;
				case 15: document.getElementById('enlarge').innerHTML="Dorchester South Station - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Copper Crescent" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/dorchesterStation.gif" />'; break;
				case 16: document.getElementById('enlarge').innerHTML="Ammonite & Copper Crescent - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Copper Crescent" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/copperCrescent.gif" />'; break;
				case 17: document.getElementById('enlarge').innerHTML="Pope Street - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Copper Crescent" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/popeStreet.gif" />'; break;
				case 18: document.getElementById('enlarge').innerHTML="Hop Hill - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Copper Crescent" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/hopHill.gif" />'; break;
				case 19: document.getElementById('enlarge').innerHTML="The Malt House - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Copper Crescent" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/maltHouse.gif" />'; break;
				case 20: document.getElementById('enlarge').innerHTML="Eldridge Street Houses - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Copper Crescent" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/eldridgeStreetHouses.gif" />'; break;
				case 21: document.getElementById('enlarge').innerHTML="Brewmasters - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Copper Crescent" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/brewmasters.gif" />'; break;
				case 22: document.getElementById('enlarge').innerHTML="Bitter End - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Copper Crescent" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/bitterEnd.gif" />'; break;
			}
		});
		$('picNavFwd').addEvent('click', function(e){
			new Event(e).stop();
			nextImageValue = imageValue +1;
			if(imageValue == 22) {
				nextImageValue=1;
				
			}
			nextImageMorph = "myMorph"+nextImageValue;
			currentImageMorph = "myMorph"+imageValue;
			if(nextImageValue < 23){
				nextImageId = "smallImage"+nextImageValue;
				document.getElementById(nextImageId).style.display = 'block';
				eval(nextImageMorph).start({'opacity':[0,1]});
				eval(currentImageMorph).start({'opacity':[1,0]});
				imageValue = imageValue +1;
				if (imageValue == 23) {
					imageValue = 1;
				}	
			}
			switch (imageValue){
				case 1: document.getElementById('enlarge').innerHTML="Health Centre - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="NHS Dorchester Health Centre" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/dorchesterHealthCentre.gif" />'; break;
				case 2: document.getElementById('enlarge').innerHTML="Health Centre - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="NHS Dorchester Health Centre" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/dorchesterHealthCentre.gif" />'; break;
				case 3: document.getElementById('enlarge').innerHTML="The Eldridge Pope Building - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Eldridge Pope Building" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/eldridgePope.gif" />'; break;
				case 4: document.getElementById('enlarge').innerHTML="The Completed Eldridge Pope Building - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Completed Eldridge Pope Building" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/eldridgePopeCompleted.gif" />'; break;
				case 5: document.getElementById('enlarge').innerHTML="The Eldridge Pope Building - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Eldridge Pope Building" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/eldridgePopeRear.gif" />'; break;
				case 6: document.getElementById('enlarge').innerHTML="The Eldridge Pope Building - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Eldridge Pope Building" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/eldridgePopeRear.gif" />'; break;
				case 7: document.getElementById('enlarge').innerHTML="The Bonded Stores - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Thomas Hardy Hall" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/thomasHardyHall.gif" />'; break;
				case 8: document.getElementById('enlarge').innerHTML="Dray Horse Yard - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Dray Horse Yard" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/drayHorseYard.gif" />'; break;
				case 9: document.getElementById('enlarge').innerHTML="Maumbury Gardens - click image to continue exploring the site";  document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Maumbury Gardens" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/maumburyGardens.gif" />'; break;
				case 10: document.getElementById('enlarge').innerHTML="Screen House - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Screen House" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/screenHouse.gif" />'; break;
				case 11: document.getElementById('enlarge').innerHTML="Screen on the Square - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Brewery Square" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/brewerySquare.gif" />'; break;
				case 12: document.getElementById('enlarge').innerHTML="Brewery Hotel - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="The Heart and Soul of Dorchester" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/bondedStoresApartments.gif" />'; break;
				case 13: document.getElementById('enlarge').innerHTML="The Maltings - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="The Maltings in Brewery Square" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/theMaltings.gif" />'; break;
				case 14: document.getElementById('enlarge').innerHTML="The Cooperage - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Brewery Square and Pope Street" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/brewerySquareAndPopeStreet.gif" />'; break;
				case 15: document.getElementById('enlarge').innerHTML="Dorchester South Station - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Copper Crescent" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/dorchesterStation.gif" />'; break;
				case 16: document.getElementById('enlarge').innerHTML="Ammonite & Copper Crescent - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Copper Crescent" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/copperCrescent.gif" />'; break;
				case 17: document.getElementById('enlarge').innerHTML="Pope Street - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Copper Crescent" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/popeStreet.gif" />'; break;
				case 18: document.getElementById('enlarge').innerHTML="Hop Hill - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Copper Crescent" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/hopHill.gif" />'; break;
				case 19: document.getElementById('enlarge').innerHTML="The Malt House - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Copper Crescent" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/maltHouse.gif" />'; break;
				case 20: document.getElementById('enlarge').innerHTML="Eldridge Street Houses - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Copper Crescent" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/eldridgeStreetHouses.gif" />'; break;
				case 21: document.getElementById('enlarge').innerHTML="Brewmasters - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Copper Crescent" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/brewmasters.gif" />'; break;
				case 22: document.getElementById('enlarge').innerHTML="Bitter End - click image to continue exploring the site"; document.getElementById('pagetitle').innerHTML = '<img height="92" alt="Copper Crescent" width="617" src="/clients/www.brewerysquare.com/assets/Image/pageTitles/bitterEnd.gif" />'; break;
			}
		});
		$('EPLinks1').addEvent('click', function(e){
		new Event(e).stop();
		location.href="index.cfm?page=187";
		});
		$('EPLinks2').addEvent('click', function(e){
		new Event(e).stop();
		location.href="index.cfm?page=203";
		});
	
		$('EPLinks4').addEvent('click', function(e){
		new Event(e).stop();
		location.href="index.cfm?special=2";
		});
		$('EPRLinks1').addEvent('click', function(e){
		new Event(e).stop();
		location.href="index.cfm?page=187";
		});
		$('EPRLinks2').addEvent('click', function(e){
		new Event(e).stop();
		location.href="index.cfm?page=203";
		});
		
		$('EPRLinks4').addEvent('click', function(e){
		new Event(e).stop();
		location.href="index.cfm?special=2";
		});
		$('EPCLinks1').addEvent('click', function(e){
		new Event(e).stop();
		location.href="index.cfm?page=187";
		});
		$('EPCLinks2').addEvent('click', function(e){
		new Event(e).stop();
		location.href="index.cfm?page=203";
		});
		
		$('EPCLinks4').addEvent('click', function(e){
		new Event(e).stop();
		location.href="index.cfm?special=2";
		});
		$('DHYLinks1').addEvent('click', function(e){
		new Event(e).stop();
		location.href="index.cfm?page=185";
		});
		$('DHYLinks2').addEvent('click', function(e){
		new Event(e).stop();
		location.href="index.cfm?page=150";
		});
	
		$('DHYLinks4').addEvent('click', function(e){
		new Event(e).stop();
		location.href="index.cfm?special=2";
		});
		$('BSLinks1').addEvent('click', function(e){
		new Event(e).stop();
		location.href="index.cfm?page=204";
		});
		$('BSLinks2').addEvent('click', function(e){
		new Event(e).stop();
		location.href="index.cfm?page=150";
		});
	
		$('BSLinks4').addEvent('click', function(e){
		new Event(e).stop();
		location.href="index.cfm?special=2";
		});
		$('SHLinks1').addEvent('click', function(e){
		new Event(e).stop();
		location.href="index.cfm?page=211";
		});
		$('SHLinks2').addEvent('click', function(e){
		new Event(e).stop();
		location.href="index.cfm?page=150";
		});
	
		$('SHLinks4').addEvent('click', function(e){
		new Event(e).stop();
		location.href="index.cfm?special=2";
		});
		$('COOPLinks1').addEvent('click', function(e){
		new Event(e).stop();
		location.href="index.cfm?page=214";
		});
		$('COOPLinks2').addEvent('click', function(e){
		new Event(e).stop();
		location.href="index.cfm?page=150";
		});
	
		$('COOPLinks4').addEvent('click', function(e){
		new Event(e).stop();
		location.href="index.cfm?special=2";
		});
		$('AMMLinks1').addEvent('click', function(e){
		new Event(e).stop();
		location.href="index.cfm?page=213";
		});
		$('AMMLinks2').addEvent('click', function(e){
		new Event(e).stop();
		location.href="index.cfm?page=150";
		});
	
		$('AMMLinks4').addEvent('click', function(e){
		new Event(e).stop();
		location.href="index.cfm?special=2";
		});
});
