﻿<krpano version="1.20.11"  onstart="splasher();" >
	
	<!-- <include url="followmouse.xml" /> -->

	<!-- iPhone X safe-area support: use the horizontal safe-area only -->	
	<display safearea="h-only" autofullscreen="false" />

	<!-- mouse / touch / keyboard(button) control settings - https://krpano.com/docu/xml/#control -->
	<control mouse="drag"
	         touch="drag"
	         zoomtocursor="true"
	         zoomoutcursor="true"
	         draginertia="0.1"
	         dragfriction="0.9"
	         movetoaccelerate="1.0"
	         movetospeed="10.0"
	         movetofriction="0.8"
	         keybaccelerate="0.09"
	         keybfriction="0.94"
	         keybfovchange="0.25"
	         mousefovchange="1.0"
	         fovspeed="3.0"
	         fovfriction="0.9"
	         bouncinglimits="false"
	         />

	<!-- mouse cursors - https://krpano.com/docu/xml/#cursors -->
	<cursors standard="grab"
	         dragging="grabbing"
	         moving="move"
	         />


	<!-- ensure stagescale 2x for mobile devices (regardless if mobilescale is 0.5 or 1.0) -->
	<krpano stagescale="calc:stagescale * 2" if="stagescale LT 1.0" devices="mobile" />
	
	<contextmenu fullscreen="false" versioninfo="false" touch="true" customstyle="default|default|default|0xFFFFFF|0x000000|0xBBBBBB|10|0xffffff|10|2|2|8|0x66000000|0|0|2|10|5|0xE0E0E0|none|4|0|0|0|3|0xEEEEEE|0|0|18|18">

		<!-- customstyle="font|fontsize|lineheight|backgroundcolor|textcolor|disabled-textcolor|borderwidth|bordercolor|borderradius|shadow-x-offset|shadow-y-offset|shadow-blur-range|shadow-color|innerborder|innerbordercolor|padding-top|padding-bottom|seperator-margin|seperator-color|seperator-second-line-color|item-padding|item-borderwidth|item-bordercolor|item-borderradius|item-margin|item-hover-backgroundcolor|item-hover-bordercolor|item-hover-textcolor|item-text-left-margin|item-text-right-margin" -->
		
		<item name="title"
			  caption="[lt]img style='width: 150px; padding: 10px 0 0 0' src='images/ats-logo.png'/[gt]"
			  visible="true"
			  separator="false"
			  onclick="openurl(https://ats-heritage.co.uk/, _blank)"
			/>

	</contextmenu>
	
	<!-- A helper script for getting into fullscreen mode on the iPhone. -->
	
	<events name="iphone_fullscreen_swipe" keep="true" devices="iphone"
			oniphonefullscreen="iphone_fullscreen_swipe();"
	/>
	
	<action name="iphone_fullscreen_swipe" scope="localonly">
		if(global.display.iphonefullscreen GT 0,
			if(!global.layer[iphone_fullscreen_info],
				addlayer('iphone_fullscreen_info', infolayer);
				set(infolayer, type=text, css='color:#FFFFFF; font-size:26px; font-weight:bold; text-align:center;', txtshadow='0 0 8 0x000000 1', mergedalpha=false, bgcolor=0x000000, bgalpha=0.7, bgcapture=true, align=lefttop, x=0, y=0, width=100%, height=100%, vcenter=true, keep=true, zorder=9999, safearea=false);
				if(global.display.iphonefullscreen == 1,
					set(infolayer.html, '[span style="font-size:60px;"]⇡[/span][br]Swipe Up');
				  ,
					set(infolayer.html, '[span style="font-size:60px;"]⇣ ⇡[/span][br]Swipe Down and Up');
				);
			);
		  ,
			removelayer('iphone_fullscreen_info');
		);
	</action>

	
	<project_colours
		clr_bg="0xffffff"
		clr_green="0xA8D5BA"
		clr_yellow="0xd59f0f"
		clr_blue="0x1e73be"
		clr_orange="0xFFA38B"
		clr_white="0xffffff"
		clr_black="0x000000"
		clr_grey="0xcccccc"
		clr_darkgrey="0x4c4c51"
	/>

	<plugin name="pp_blur" keep="true"
		url="%VIEWER%/plugins/pp_blur.js"
		enabled="true"
		range="0"
		linearrgb="false"
		order="1"
		phase="2"
	/>
		

	<!-- for HiDPI/Retina screens a larger radius is used to make the sharpening better visible -->
	<plugin name="pp_sharpen" keep="true"
		url="%VIEWER%/plugins/pp_sharpen.js"
		enabled="true"
		strength="2.0"
		sharpenradius="calc:device.pixelratio * 1.1"
		luminanceonly="true"
		order="1"
		phase="1"
	/>


	<!-- VIDEO TRANSITION HOTSPOT -->
	<layer name="video"
		url.html5="plugins/videoplayer.js"
		videourl=""
		align="center" x="0" y="0"
		volume="0.0"
		muted="true"
		enabled="true"
		capture="false"
		handcursor="false"
		alpha="0" autoalpha="true"
		height="100%"
		width="prop"
		onclick="pause();"
		pausedonstart="true"
		posterurl="videos/black_posterurl.gif"
		keep="true"
	/>

	<action name="hs_vid_click" scope="local" args="ini_ath, ini_atv, ini_fov, vid, gotoscene, end_ath, end_atv, end_fov">
		//if (device.desktop, set(global.events[followmouse].onviewchange, '' )); //disable followmouse
		lookto(get(ini_ath), get(ini_atv), get(ini_fov), default, true, false);
		layer[video].playvideo(get(vid), null, false);
		tween(layer[video].alpha, 1, 2);
		loadscene(get(gotoscene), null, MERGE, BLEND(1.5), tween(plugin[pp_blur].range, 40));
		tween(layer[space-intro-btn].x, -100);
		lookat(get(end_ath), get(end_atv), get(end_fov));
		//set(layer[video].onvideocomplete, ontransitionvideoend());
		set(layer[video].onvideopaused, ontransitionvideoend()); //speedup navigation by skipping video //event is called on video end as well
	</action>

	<action name="ontransitionvideoend">
		tween(layer[video].alpha, 0, 2); tween(plugin[pp_blur].range, 0);
		handleInfoPanel();
	</action>

	<action name="handleInfoPanel">
		set(layer[space-intro-btn].html, get(scene[get(xml.scene)].title));
		tween(layer[space-intro-btn].x, 0);
		delayedcall(1, js(showInfoPanel(get(scene[get(xml.scene)].title), get(scene[get(xml.scene)].infopanel))));
		//if (device.desktop, set(global.events[followmouse].onviewchange, followmouse_onviewchange() )); //enable followmouse
	</action>

	<style name="hs_vid_style" type="text" width="50" height="50" html="vid" vcenter="true" css="text-align:center" bgroundedge="25" />

	<!-- startup action - load the first scene -->
	<action name="startup" scope="local">
		//if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[0].name); );
		//loadscene(get(startscene), null, MERGE);
		//if(startactions !== null, startactions());
		
		loadscene(calc(isset(startscene) ? startscene : 0), null, MERGE, BLEND(1.5), handleInfoPanel());
		
		//trace(startscene);
	</action>

	<action name="splasher">
		js(hideLoader());
		
		//bypass splash and begin sequence if startscene is less than or equal to 31 else follow normal start
		if (startscene LE 31,
			begin();
		,
			//oninterrupt (begin(););

			tween(layer[splashbgimg].alpha, 0.3, 4);
			tween(layer[splashbgimg].scale, 1.4, 150); wait(1);
			tween(layer[splash1].alpha, 1, 6); wait(1);
			//tween(layer[skipbtn].alpha, 0.5, 2); //wait(2);
			tween(layer[splash2].alpha, 1, 6); wait(1);
			tween(layer[splash3].alpha, 1, 6); wait(1);
			tween(layer[beginbtn].alpha|layer[beginbtn2].alpha, 1, 6);
			//tween(layer[skipbtn].alpha, 0, 1);
		)
	</action>

	<tour_lang type="english" />

	<action name="begin">		
		layer[bsl_intro_vid].stop();
		startup();
		tween(layer[splashbg].alpha, 0, 1);
		tween(global.plugin[pp_blur].range, 0.0);
		tween(layer[showhide-interface-btn].x, 49, 1); wait(1);
		delayedcall(1, tween(layer[help-mouse-touch].alpha|layer[scaff_note_s01].alpha|layer[scaff_note_s02].alpha, 1));
	</action>

	<action name="addImgTxt2NavHS" scope="local">
		
		txtadd(lyrnm, %1, '-img'); 
		addlayer(get(lyrnm), lyr); 
		set(lyr.url, %2); 
		lyr.loadstyle(spotstyleimg);
		txtadd(lyr.parent, 'hotspot[', %1, ']'); //txtadd also sets

		txtadd(hsnm, %1, '-text');
		addhotspot(get(hsnm), hs);
		hs.loadstyle('spotstyletext');
		if (%4 == bottom, hs.loadstyle('setBottom'));
		if (%4 == top, hs.loadstyle('setTop'));
		set(hs.html, "%3");
		set(hs.ath, get(hotspot[%1].ath));
		set(hs.atv, get(hotspot[%1].atv));		

	</action>

	<action name="createNavHS" scope="local" args="hsname, hsath, hsatv, gotoscene, hsimg, hstooltip, tooltiploc, arrowdir, ini_ath, ini_atv, ini_fov, vid, end_ath, end_atv, end_fov" >
		addhotspot(get(hsname), hs);
		hs.loadstyle('circnavstyle');
		set(hs.ath, get(hsath));
		set(hs.atv, get(hsatv));
		hs.addevent(onclick, hs_vid_click(%9, %10, %11, %12, %4, %13, %14, %15)); //use %, args values are not retained
		
		addImgTxt2NavHS(get(hsname), get(hsimg), get(hstooltip), get(tooltiploc));

		txtadd(hsnm, get(hsname), 'arrow');
		addlayer(get(hsnm), hsarr);
		txtadd(hsarr.parent, 'hotspot[', get(hsname), ']'); //txtadd also sets
		hsarr.loadstyle(spotstylearr);
		if(get(arrowdir) != null, set(hsarr.rotate, get(arrowdir)));
	</action>

	<style name="circnavstyle"
		type="container"
		width="48" height="48"
		bgcolor="calc:project_colours.clr_blue"
		bgalpha=".9"
		bgborder="2 0xffffff .8"
		bgroundedge="200"
		bgcapture="true"
		enabled="true"
		tag="mainspot"
		onclick.addevent="	tween(width|height, 192);
							txtadd(x, get(name), '-img'); tween(layer[get(x)].alpha, 1);
							txtadd(y, get(name), '-text'); set(z, get(hotspot[get(y)].oy)); if(z LT 0, tween(hotspot[get(y)].oy, -125), tween(hotspot[get(y)].oy, 125));
							js(closeInfoPanel());
						"
		onover.addevent="	tween(width|height, 192);
							txtadd(x, get(name), '-img'); tween(layer[get(x)].alpha, 1);
							txtadd(y, get(name), '-text'); set(z, get(hotspot[get(y)].oy)); if(z LT 0, tween(hotspot[get(y)].oy, -125), tween(hotspot[get(y)].oy, 125));
						"
		onout.addevent="	tween(width|height, 48);
							txtadd(x, get(name), '-img'); tween(layer[get(x)].alpha, 0);
							txtadd(y, get(name), '-text'); set(z, get(hotspot[get(y)].oy)); if(z LT 0, tween(hotspot[get(y)].oy, -40), tween(hotspot[get(y)].oy, 40));
						"
		maskchildren="true"
		scalechildren="false"
		capture="false"
		accuracy="1"
		onloaded.addevent="txtadd(x, get(name), '-pulse'); setinterval(get(x), calc(random+3), tween(scale, 1.1, default, default, tween(scale, 1)))"
		zorder="90"
	/>
		
	<style name="spotstyletext"
		type="text"
		html=""
		css="font-weight: 600; color:#ffffff; text-align:center; line-height:1.1em"
		txtshadow="0 0 5 0x000000 1"
		align="center"
		alpha="1"
		bg="false"
		enabled="false"
		tag="mainspot"
		accuracy="1"
		mipmapping="true"
		oversampling="2"
	/>
		
	<style name="setBottom"
		edge="top"
		oy="40"
	/>
		
	<style name="setTop"
		edge="bottom"
		oy="-40"
	/>

	<style name="spotstyleimg"
		width="212"
		height="212"
		align="center"
		alpha="0"
		x="0" y="0"
		bg="false"
		enabled="false"
		zorder="80"
		accuracy="1"
	/>
	
	<style name="spotstylearr"
		url="images/Icon Up.png"
		width="16"
		height="16"
		align="center"
		vcenter="true"
		x="0" y="0"
		bg="false"
		enabled="false"
		zorder="80"
		accuracy="1"
		rotate="0"
	/>

	<action name="createInfoHS" scope="local">
		addhotspot(%1, hs);
		hs.loadstyle('spotstylecontainer_hs');
		set(hs.ath, %2);
		set(hs.atv, %3);
		hs.addevent(onclick, 
			js(closeInfoPanel());wait(0.6);
			if(stagewidth GT stageheight, lookto(calc(%2-10), %3, 40), lookto(calc(%2), %3, 40));
			wait(0.3); js(showInfoPanel(%4, %5));
		);
		
		//randomly animated ring
		txtadd(lyrnm1, %1, 'circleborder'); 
		addlayer(get(lyrnm1), lyr1);
		txtadd(lyr1.parent, 'hotspot[', %1, ']'); //txtadd also sets
		lyr1.loadstyle(spotstylecircleborder);
		
		//coloured circle - scales on hover
		txtadd(lyrnm2, %1, 'circle'); 
		addlayer(get(lyrnm2), lyr2);
		txtadd(lyr2.parent, 'hotspot[', %1, ']'); //txtadd also sets
		lyr2.loadstyle(spotstylecircle);
		
		//white dot - animates on click
		txtadd(lyrnm3, %1, 'plus'); 
		addlayer(get(lyrnm3), lyr3);
		txtadd(lyr3.parent, 'hotspot[', %1, ']'); //txtadd also sets
		lyr3.loadstyle(spotstyleplus);
		//if(%6 == 'creative', set(lyr3.bgcolor, calc(project_colours.clr_green)));
		//if(%6 == 'social', set(lyr3.bgcolor, calc(project_colours.clr_orange)));

		//text shown on hover
		txtadd(hsnm, %1, 'text');
		addhotspot(get(hsnm), hs);
		hs.loadstyle('spotstyletext-right');
		//if(%6 == 'creative', set(hs.bgcolor, calc(project_colours.clr_green)));
		//if(%6 == 'social', set(hs.bgcolor, calc(project_colours.clr_orange)); );
		set(hs.html, '%4');
		set(hs.ath, get(hotspot[%1].ath));
		set(hs.atv, get(hotspot[%1].atv));

	</action>

	<!-- HOTSPOT STYLES -->

	<!-- base hotspot receives clicks -->
	<style name="spotstylecontainer_hs"
		type="container"
		align="center"
		width="48" height="48"
		onclick.addevent="
                            tween(layer[intro].alpha, 0);							
							txtadd(y1, get(name), plus);
							txtadd(y2, get(name), plus);
                            tween(layer[get(y1)].width, 2, 1, default, tween(layer[get(y2)].width, 20, 1));
							"
		onover.addevent="
							txtadd(x, get(name), text);
							tween(hotspot[get(x)].alpha, 1);
							txtadd(y, get(name), circle);
							tween(layer[get(y)].scale, 1.25, 0.2);
						"
		onout.addevent="
							txtadd(x, get(name), text);
							tween(hotspot[get(x)].alpha, 0);
							txtadd(y, get(name), circle);
							tween(layer[get(y)].scale, 1, 0.2);
						"
		tag="mainspot"
		capture="false"
		bgcapture="true"
	/>
	
	<!-- coloured circle -->
	<style name="spotstylecircle"
		type="text"
		html=""
		align="center"
		alpha="1"
		bgcolor="calc:project_colours.clr_white"
		width="32" height="32"
		bgroundedge="24"
		capture="false"
	/>
	
	<!-- dot -->
	<style name="spotstyleplus"
		type="text"
		html=""
		width="20"
		height="20"
		bgcolor="calc:project_colours.clr_blue"
		bgroundedge="10"
		align="center"
		x="0" y="0"
		enabled="false"
	/>
	
	<!-- animated border -->
	<style name="spotstylecircleborder"
		type="container"
		bgcolor="calc:project_colours.clr_white"
		bgalpha="0"
		bgborder="1 0xffffff"
		bgroundedge="36"
		enabled="false"
		align="center"
		alpha="1"
		x="0" y="0"
		width="48" height="48"
		capture="false"
		onloaded.addevent="hotspot_animate(get(name))"
		accuracy="1"
	/>
	
	<!-- text shown on the right on hotspot hover -->
	<style name="spotstyletext-right"
		type="text"
		html=""
		css="font-weight: 400; color:#ffffff; line-height:1.2em"
		txtshadow="0 0 5 0x000000 1"
		align="center"
		edge="left"
		alpha="0"
		ox="28"
		bg="false"
		enabled="false"
		padding="10 15 15 15"
		accuracy="1"
		mipmapping="true"
		oversampling="2"
	/>

	<action name="hotspot_animate" scope="local">
		tween(layer[%1].scale|layer[%1].alpha, 1.2|0, calc(random+2), default, set(layer[%1].scale, 0.5); set(layer[%1].alpha, 1); hotspot_animate(%1)));
	</action>

	<!-- SPLASH -->

	<layer alpha="1" zorder="29" autoalpha="true" name="splashbg" keep="true" align="topright" type="container" width="100%" height="100%" bgcolor="0x000000" bgalpha="1" x="0" y="0">
		<layer alpha="0" zorder="31" if="stagewidth GT stageheight" autoalpha="true" name="splashbgimg" url="images/intro-photo.jpg" align="center" x="0" y="0" width="100%" height="prop" handcursor="false" accuracy="1" /> 
		<layer alpha="0" zorder="31" if="stagewidth LT stageheight" autoalpha="true" name="splashbgimg" url="images/intro-photo.jpg" align="center" x="0" y="0" width="prop" height="100%" handcursor="false" accuracy="1" /> 
		<layer alpha="0" style="splash_imgs_landscape" if="stagewidth GT stageheight" name="splash1" url="images/splash_01.png" />
		<layer alpha="0" style="splash_imgs_landscape" if="stagewidth GT stageheight" name="splash2" url="images/splash_02.png" />
		<layer alpha="0" style="splash_imgs_landscape" if="stagewidth GT stageheight" name="splash3" url="images/splash_03.png" />
		<layer alpha="0" style="splash_imgs_portrait" if="stagewidth LT stageheight" name="splash1" url="images/splash_01.png" y="-48" />
		<layer alpha="0" style="splash_imgs_portrait" if="stagewidth LT stageheight" name="splash2" url="images/splash_02.png" />
		<layer alpha="0" style="splash_imgs_portrait" if="stagewidth LT stageheight" name="splash3" url="images/splash_03.png" y="24" />
		<layer alpha="0" name="bsl_intro_vid" if="stagewidth GT stageheight" style="splash_imgs_landscape" autoalpha="false" url="plugins/videoplayer.js" videourl="infopanels_bs3/bslvideos/1. Overall Introduction_1.mp4" maxwidth="560" maxheight="315" y="-20" handcursor="true" onclick="if (ispaused, tween(alpha, 1); play(), stop(); tween(alpha, 0))" userinteractionworkarounds="false">
			<layer name="bsl_intro_vid_close" width="24" height="prop" keep="true" align="topright" x="10" y="10" url="images/close3_white.png" enabled="false" />
		</layer>
		<layer alpha="0" name="bsl_intro_vid" if="stagewidth LT stageheight" style="splash_imgs_portrait" autoalpha="false" url="plugins/videoplayer.js" videourl="infopanels_bs3/bslvideos/1. Overall Introduction_1.mp4" maxwidth="560" maxheight="315" y="-20" handcursor="true" onclick="if (ispaused, tween(alpha, 1); play(), stop(); tween(alpha, 0))" userinteractionworkarounds="false">
			<layer name="bsl_intro_vid_close" width="24" height="prop" keep="true" align="topright" x="10" y="10" url="images/close3_white.png" enabled="false" />
		</layer>
		<layer autoalpha="true" zorder="32" name="beginbtn" alpha="0" keep="true" handcursor="true" align="bottom" type="text" padding="5 20 10 20" bgcolor="calc:project_colours.clr_blue" bgalpha="1"  html="ENGLISH" x="-75" y="50" vcenter="true" css="color:#ffffff; font-size:20px; text-align:center" onclick.addevent="begin();" onover.addevent="set(bgalpha, 0.8);" onout.addevent="set(bgalpha, 1);" />
		<layer autoalpha="true" zorder="32" name="beginbtn2" alpha="0" keep="true" handcursor="true" align="bottom" type="text" padding="5 20 10 20" bgcolor="calc:project_colours.clr_blue" bgalpha="1"  html="[lt]img src='images/sign-language-icon.png' style='width:18px; height:18px' /[gt] BSL [lt]img src='images/sign-language-icon.png' style='width:18px; height:18px' /[gt]" x="75" y="50" vcenter="true" css="color:#ffffff; font-size:20px; text-align:center" onclick.addevent="set(tour_lang.type, bsl); begin();" onover.addevent="set(bgalpha, 0.8);" onout.addevent="set(bgalpha, 1);" />
		<layer autoalpha="true" zorder="33" name="skipbtn" alpha="0" keep="true" handcursor="true" align="bottom" type="text" padding="4 8" html="SKIP INTRO" bgalpha="0" bgborder="1 0xffffff 0.5" x="0" y="50" vcenter="true" css="color:#ffffff; font-size:16px; text-align:center" />
	</layer>

	<style name="splash_imgs_landscape" zorder="31" autoalpha="true" keep="true" align="center" x="0" y="0" width.normal="100%" width.mobile="prop" height.normal="prop" height.mobile="320" maxwidth="700" maxheight="788" handcursor="false" />
	<style name="splash_imgs_portrait" zorder="31" autoalpha="true" keep="true" align="center" x="0" y="0" width.normal="prop" width.mobile="360" height.normal="100%" height.mobile="prop" maxwidth="700" maxheight="788" handcursor="false" />

	<!-- USER INTERFACE -->

	<layer name="logo" if="stagewidth GT stageheight" keep="true" alpha="1" align="topleft" x.normal="28" x.mobile="100" y="28" url="images/canterbury_cathedral_white_logo.png" width.normal="150" width.mobile="100" height="prop" zorder="9" onclick.addevent="openurl(https://www.canterbury-cathedral.org/, _blank)" onover.addevent="tween(scale, 1.2);" onout.addevent="tween(scale, 1)" />
	<layer name="logo" if="stagewidth LT stageheight" keep="true" alpha="1" align="topleft" x="28" y="28" url="images/canterbury_cathedral_white_logo.png" width.normal="150" width.mobile="100" height="prop" zorder="9" onclick.addevent="openurl(https://www.canterbury-cathedral.org/, _blank)" onover.addevent="tween(scale, 1.2);" onout.addevent="tween(scale, 1)" />

	<!-- <layer name="intro-btn" type="text" html="Intro" bgcolor="calc:project_colours.clr_accnt_02" bgroundedge="5 5 0 0" css="font-family: futura-pt, arial, sans-serif; font-weight: 500; text-align:center;" keep="true" align="left" edge="bottomright" x="-156" y="0" padding="14 20 32 20" rotate="90" zorder="19" onclick.addevent="tween(layer[intro].alpha, 1)" onover.addevent="tween(x, 0); tween(bgcolor, calc(project_colours.clr_gry));" onout.addevent="tween(x, -16); tween(bgcolor, calc(project_colours.clr_accnt_02));" /> -->
	
	<layer zorder="5" autoalpha="true" name="vignette" keep="true" align="center" type="container" capture="false" width="100%" height="100%" bg="false" bgshadow.normal="0 0 400 25 0x000000 0.6 inset" bgshadow.mobile="0 0 400 25 0x000000 0.5 inset" x="0" y="0" handcursor="false" />
	
	<layer name="help" type="text" bgalpha="1" bgcolor="calc:project_colours.clr_blue" bgroundedge="28" keep="true" align="bottomright" x="48" y="48" width="48" height="48" alpha="0" zorder="15" autoalpha="true" edge="center" vcenter="true" onclick.addevent="tween(alpha, 0, default, default, tween(layer[help-mouse-touch].alpha|layer[guide_note_s07_01].alpha|layer[guide_note_s07_02].alpha|layer[guide_note_s07_03].alpha|layer[guide_note_s09_01].alpha, 1))" onover.addevent="tween(bgcolor, calc(project_colours.clr_black));" onout.addevent="tween(bgcolor, calc(project_colours.clr_blue))">
		<layer type="text" name="help-img" align="center" x="0" y="-3" html="[lt]img src='images/rotating-question.svg' style='width:20px; height:20px; vertical-align:middle' /[gt]" bg="false" enabled="false" />
	</layer>

	<layer name="space-intro-btn" type="text" html="Section" bgcolor="calc:project_colours.clr_blue" css="font-weight: 400; color:#ffffff; text-align:center; letter-spacing: 2px;" keep="true" align="left" edge="bottom"  x="0" y="0" oy="16" padding="14 20 32 20" rotate="90" vcenter="true" zorder="6" onclick.addevent="tween(layer[intro].alpha, 0); js(showInfoPanel(get(scene[get(xml.scene)].title), get(scene[get(xml.scene)].infopanel)))" onover.addevent="tween(oy, 0)" onout.addevent="tween(oy, 16)" />

	<layer name="zoom-in" type="text" zorder="19" bgalpha="0" width="48" height="48" keep="true" align="right" edge="center" x="49" y="-50" ondown="set(fov_moveforce,-1);" onup="set(fov_moveforce,0);" onover.addevent="set(bgalpha, 0.1);" onout.addevent="set(bgalpha, 0)">
		<layer name="zoom-in-img" width="16" height="prop" keep="true" align="center" x="0" y="0" url="images/plus-white-thin.png" enabled="false" />
	</layer>

	<layer name="zoom-out" type="text" zorder="19" bgalpha="0" width="48" height="48" keep="true" align="right" edge="center" x="49" y="0" ondown="set(fov_moveforce,+1);" onup="set(fov_moveforce,0);" onover.addevent="set(bgalpha, 0.1);" onout.addevent="set(bgalpha, 0)">
		<layer name="zoom-out-img" width="16" height="prop" keep="true" align="center" x="0" y="0" url="images/minus-n.png" enabled="false" />
	</layer>

	<layer name="support-btn" type="text" bgalpha="1" bgcolor="calc:project_colours.clr_yellow" rotate="45" keep="true" align="topright" x="45" y="45" width="300" height="32" zorder="9" edge="center" onover.addevent="set(bgalpha, 0.8);" onout.addevent="set(bgalpha, 1);" onclick="openurl(https://www.canterbury-cathedral.org/support-us/, _blank)">
		<layer autoalpha="true" zorder="10" alpha="1" name="support-btn-txt" keep="true" enabled="false" align="center" type="text" html="Support us" padding="0 0 2 0" bg="false" x="0" y="0" vcenter="true" css="font-size:16px; font-weight: 300; color:#ffffff; text-align:center; letter-spacing:1px" />
	</layer>

	<!-- HELP -->
	<layer name="help-mouse-touch" type="container" bg="false" width="100%" height="100%" align="center" x="-4" y="-4" keep="true" alpha="0" zorder="10">

		<layer name="help-mouse-scroll" type="container" align="bottomright" x="20" y="25" enabled="false" devices="desktop" width="110" height="150">
			<layer name="help-mouse-scroll-pic" type="text" align="center" x="0" y="0" html="[lt]img src='images/mouse-scroll-01-min.svg' style='width:48px; height:48px' /[gt]" bg="false" enabled="false" /><!-- svg as krpano type img does not work in Firefox due to lack of size so using textfield -->
			<layer name="help-mouse-scroll-text" style="style-rect-help-text" html="Use scrollwheel[lt]br/[gt]to zoom in/out" />
		</layer>

		<layer name="help-mouse-drag" type="container" align="bottomright" x="135" y="25" enabled="false" devices="desktop" width="110" height="150">
			<layer name="help-mouse-drag-pic" type="text" align="center" x="0" y="0" html="[lt]img src='images/mouse-drag2.svg' style='width:48px; height:48px' /[gt]" bg="false" enabled="false" /><!-- svg as krpano type img does not work in Firefox due to lack of size so using textfield -->
			<layer name="help-mouse-drag-text" style="style-rect-help-text" html="Click and drag[lt]br/[gt]to look around" />
		</layer>

		<layer name="help-touch-pinch" type="container" align="bottomright" x="0" y="15" enabled="false" devices="handheld" width="110" height="150">
			<layer name="help-touch-pinch-pic" type="text" align="center" x="0" y="5" alpha="0.8" html="[lt]img src='images/pinch-spread2.svg' style='width:42px; height:42px' /[gt]" bg="false" enabled="false" /><!-- svg as krpano type img does not work in Firefox due to lack of size so using textfield -->
			<layer name="help-touch-pinch-text" style="style-rect-help-text" html="Pinch to[lt]br/[gt]zoom in/out" />
		</layer>
		
		<layer name="help-touch-swipe" type="container" align="bottomright" x="90" y="15" enabled="false" devices="handheld" width="110" height="150">
			<layer name="help-touch-swipe-pic" type="text" align="center" x="0" y="5" html="[lt]img src='images/swipe-finger2.svg' style='width:48px; height:48px' /[gt]" bg="false" enabled="false" /><!-- svg as krpano type img does not work in Firefox due to lack of size so using textfield -->
			<layer name="help-touch-swipe-text" style="style-rect-help-text" html="Swipe to[lt]br/[gt]look around" />
		</layer>

	</layer>

	<!-- HELP TEXT STYLE -->
	<style name="style-rect-help-text"
		type="text"
		bg="false"		
		enabled="false"
		vcenter="true"
		css="font-weight: 400; font-size:16px; color:#ffffff; text-align:center; line-height: 20px"
		txtshadow="0 0 5 0x000000 1"
		width="110"
		height="50"
		align="center" x="0" y="60"
	/>

	<!-- scaffolding note style -->
	<style autoalpha="true" zorder="33" enabled="false" alpha="1" name="scaff_note_style" type="text" height="144" width="200" padding="0 16 8 16" vcenter="true" accuracy="1" mipmapping="true" oversampling="2" html="[div style='font-weight: 400; color:#ffffff; font-size:20px; width:100%; text-align:right; ']&amp;#9432;[/div]Since these images were captured, much of the scaffolding and renovation works in the precincts has been removed" bgcolor="calc:project_colours.clr_blue" css="font-weight: 400; color:#ffffff; font-size:16px; line-height:1.1" />
	
	<!-- guidance note style -->
	<style autoalpha="true" zorder="33" enabled="false" alpha="0" name="guide_note_style" type="text" padding="12" bgcolor="calc:project_colours.clr_blue" x="0" css="font-weight: 400; color:#ffffff; font-size:16px; text-align:center; line-height:1.3" />


	<!-- default view settings for all scenes -->
	<view hlookat="-90.0" vlookat="0.0" fovtype="VFOV" fov="70" maxpixelzoom="1.0" fovmin="70" fovmax="90" limitview="auto" architectural=".5" />

	<!-- 0 -->

	<scene name="scene_s01_2820" title="Buttermarket / Christchurch Gate" infopanel="infopanels_bs3/s01_buttermarket_christchurch_gate.html" >
		
		<!-- <view hlookat="-90.0" vlookat="0.0" fovtype="VFOV" fov="70" maxpixelzoom="1.0" fovmin="70" fovmax="90" limitview="auto" architectural=".5" /> -->

		<image>
			<cube url="panos/s01_2820.tiles/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,640,1280,2560,5120" />
		</image>

		<events name="addHotspots"
			onloadcomplete="
				wait(1.5);
				createNavHS('s01-circnav01', -87, 0, scene_s02_2803, 'images/s02.jpg', 'South-West[br]Precinct', 'bottom', 0, -87.09, -0.5, 34, 'videos/Entrance from Buttercross.mp4', -89, -1.53, 37);

				createInfoHS('s01_hs02', -43.51, -3.82, 'Visitor[br/]Centre', 'infopanels_bs3/s01_hs01_visitor_centre.html', 'creative');
		" />

		<hotspot name="scaff_note_hs01" style="scaff_note_style" ath="-93.03" atv="-25.90" />

		<!-- <layer name="scaff_note_s01" style="scaff_note_style" /> -->

	</scene>


	<!-- 1 -->

	<scene name="scene_s02_2803" title="South-West Precinct" infopanel="infopanels_bs3/s02_south_west_precinct.html" >

		<image>
			<cube url="panos/s02_2803.tiles/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,640,1280,2560,5120" />
		</image>

		<events name="addHotspots" 
			onloadcomplete="
				wait(1.5);
				createNavHS('s02-circnav01', -90, 1, scene_s03_2413-r, 'images/s03r.jpg', 'Nave', 'bottom', 0, -90, -5, 38.7, 'videos/South West Entrance - Nave.mp4', 0, 0, 41);
				createNavHS('s02-circnav02', 141.75, -1.73, scene_s01_2820, 'images/s01.jpg', 'Buttermarket/[br]Christchurch Gate', 'bottom', 325, 141.75, -1.73, 41, 'videos/blank2.mp4', 100.87, 2.31, 70);

				createInfoHS('s02_hs01', -90, -11.78, 'Great[br/]South-West[br/]Door', 'infopanels_bs3/s02_hs01_great_south_west_door.html', 'creative');
				createInfoHS('s02_hs02', 22.57, -3.37, 'Cathedral Lodge', 'infopanels_bs3/s02_hs02_cathedral_lodge.html', 'creative');
		" />

		<hotspot name="scaff_note_hs02" style="scaff_note_style" ath="-66.98" atv="-15.66" />
		<hotspot name="scaff_note_hs03" style="scaff_note_style" ath="141.04" atv="-28.86" />

		<!-- <layer name="scaff_note_s02" style="scaff_note_style" /> -->

	</scene>

	<!-- <scene name="scene_s03_2832" title="Nave" infopanel="infopanels_bs3/s03_nave.html" >

		<image>
			<cube url="panos/s03_2832.tiles/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,640,1280,2560,5120" />
		</image>

		<events name="addHotspots" 
			onloadcomplete="
				wait(1.5);
				createNavHS('s03-circnav01', -5, 0, scene_s05_2874, 'images/s05.jpg', 'Martyrdom', 'top', 270, -12, 0, 41, 'videos/blank2.mp4', -90, 0, 70);
				createNavHS('s03-circnav02', 172, 0, scene_s02_2803, 'images/s02.jpg', 'South-West[br]Precinct', 'bottom', 270, 172, 0, 41, 'videos/blank2.mp4', 90, 0, 70);

				createInfoHS('s03_hs01', -119.10, -4.96, 'Font', 'infopanels_bs3/s03_hs01_font.html', 'creative');
				createInfoHS('s03_hs02', 180, -16.62, 'West Window', 'infopanels_bs3/s03_hs02_west_window.html', 'creative');
				createInfoHS('s03_hs03', 2.53, 3.17, 'Compass Rose', 'infopanels_bs3/s03_hs03_compass_rose.html', 'creative');
		" />

	</scene> -->

	<!-- createNavHS('s03-circnav01', 0, 0, scene_s04_2853, 'images/s04.jpg', 'Nave (East)', 'bottom', 0, 0, 0, 41, 'videos/blank2.mp4', 0, 0, 70); -->

	<!-- <scene name="scene_s04_2853" title="Nave (East)" infopanel="infopanels_bs3/s01.html" >

		<image>
			<cube url="panos/s04_2853.tiles/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,640,1280,2560,5120" />
		</image>

		<events name="addHotspots" 
			onloadcomplete="
				wait(1.5);
				createNavHS('s04-circnav01', -12, 0, scene_s05_2874, 'images/s05.jpg', 'Martyrdom', 'top', 270, -12, 0, 41, 'videos/blank2.mp4', -90, 0, 70);
				createNavHS('s04-circnav02', 180, 0, scene_s03_2832, 'images/s03.jpg', 'Nave (West)', 'bottom', 0, 180, 0, 41, 'videos/blank2.mp4', 180, 0, 70);
		" /> 

	</scene>-->
	

	<!-- 2 -->

	<scene name="scene_s03_2413-r" title="Nave" infopanel="infopanels_bs3/s03_nave.html" >

		<image>
			<cube url="panos/s03_2413-r.tiles/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,640,1280,2560,5120" />
		</image>

		<events name="addHotspots" 
			onloadcomplete="
				wait(1.5);
				createNavHS('s03-circnav01', -5, 0, scene_s05_2874, 'images/s05.jpg', 'Martyrdom', 'top', 270, -12, 0, 41, 'videos/blank2.mp4', -90, 0, 70);
				createNavHS('s03-circnav02', 172, 0, scene_s02_2803, 'images/s02.jpg', 'South-West[br]Precinct', 'bottom', 270, 172, 0, 41, 'videos/blank2.mp4', 90, 0, 70);

				createInfoHS('s03_hs01', -119.10, -4.96, 'Font', 'infopanels_bs3/s03_hs01_font.html', 'creative');
				createInfoHS('s03_hs02', 180, -16.62, 'West Window', 'infopanels_bs3/s03_hs02_west_window.html', 'creative');
				createInfoHS('s03_hs03', 2.53, 3.17, 'Compass Rose', 'infopanels_bs3/s03_hs03_compass_rose.html', 'creative');
		" />

	</scene>


	<!-- 3 -->

	<scene name="scene_s05_2874" title="Martyrdom" infopanel="infopanels_bs3/s05_martyrdom.html" >

		<image>
			<cube url="panos/s05_2874.tiles/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,640,1280,2560,5120" />
		</image>

		<events name="addHotspots" 
			onloadcomplete="
				wait(1.5);
				createNavHS('s05-circnav01', -177.19, 5.51, scene_s06_2925, 'images/s06.jpg', 'The Great[br/]Cloister', 'bottom', 0, -175.93, 3.02, 34, 'videos/Martyrdom - Cloisters.mp4', -178.36, -3.90, 53);
				createNavHS('s05-circnav02', 120.56, -9.47, scene_s09_2451-r, 'images/s09r.jpg', 'Crossing/[br]Pulpitum Steps', 'top', 290, 179.37, 2.96, 34, 'videos/Martyrdom - Pulpitum.mp4', 87.68, -10.51, 41.4);
				createNavHS('s05-circnav03', 132.01, -3.48, scene_s03_2413-r, 'images/s03r.jpg', 'Nave', 'bottom', 90, 132.01, -3.48, 41, 'videos/blank2.mp4', 180, 0, 70);
				createNavHS('s05-circnav04', 43.98, 3.17, scene_s17_250, 'images/s17.jpg', 'Western Crypt', 'bottom', 250, 45.57, -1.12, 70, 'videos/blank2.mp4', 44, 0, 70);

				createInfoHS('s05_hs01', 39.96, -8.71, 'Altar of the[br/]Sword’s Point', 'infopanels_bs3/s05_hs01_altar_swords_point.html', 'creative');
		" />

	</scene>


	<!-- 4 -->

	<scene name="scene_s06_2925" title="The Great Cloister" infopanel="infopanels_bs3/s06_great_cloister.html" >

		<image>
			<cube url="panos/s06_2925.tiles/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,640,1280,2560,5120" />
		</image>

		<events name="addHotspots" 
			onloadcomplete="
				wait(1.5);
				createNavHS('s06-circnav01', 1, 0, scene_s05_2874, 'images/s05.jpg', 'Martyrdom', 'bottom', 90, 1.00, -1.80, 24, 'videos/Cloister - Martrydom.mp4', 3.04, 2.35, 64);

				createInfoHS('s06_hs01', -157.98, -0.33, 'Novice Monks’ Lodgings[br/](On the other side of[br/]the Cloister wall)', 'infopanels_bs3/s06_hs01_novice_monks_lodgings.html', 'creative');
				createInfoHS('s06_hs02', -104.90, -0.11, 'Refectory', 'infopanels_bs3/s06_hs02_refectory.html', 'creative');
				createInfoHS('s06_hs03', -49.57, -0.80, 'Great[br/]Dormitory', 'infopanels_bs3/s06_hs03_great_dormitory.html', 'creative');
				createInfoHS('s06_hs04', 4.94, -23.67, 'Chapter House', 'infopanels_bs3/s06_hs04_chapter_house.html', 'creative');
		" />

	</scene>


	<!-- 5 -->

	<scene name="scene_s07_2967" title="Eastern Crypt" infopanel="infopanels_bs3/s07_eastern_crypt.html" >

		<image>
			<cube url="panos/s07_2967.tiles/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,640,1280,2560,5120" />
		</image>

		<events name="addHotspots" 
			onloadcomplete="
				wait(1.5);
				createNavHS('s07-circnav01', 144.39, -0.17, scene_s17_250, 'images/s17.jpg', 'Western Crypt', 'bottom', 60, 144.39, 0.53, 70, 'videos/blank2.mp4', 180, 0, 70);
				createNavHS('s07-circnav02', -140.63, -0.17, scene_s17_250, 'images/s17.jpg', 'Western Crypt', 'bottom', -60, -140.63, 0.53, 70, 'videos/blank2.mp4', 180, 0, 70);

				createInfoHS('s07_hs01', -16.45, 44.35, 'Site of Becket’s[br/]Original Tomb', 'infopanels_bs3/s07_hs01_beckets_original_tomb_site.html', 'creative');
				createInfoHS('s07_hs02', 174.39, -77.89, '‘Transport’ by[br/]Antony Gormley', 'infopanels_bs3/s07_hs02_transport_antony_gormley.html', 'creative');

				tween(layer[guide_note_s07_01].alpha|layer[guide_note_s07_02].alpha|layer[guide_note_s07_03].alpha, 1);
		" />

		<layer name="guide_note_s07_01" style="guide_note_style" html="&#8679;[br]Sculpture by Antony Gormley" align="top" y="20" />
		<layer name="guide_note_s07_03" style="guide_note_style" html="&#8678; Turn for link to Western Crypt &#8680;" align="center" y="0" />
		<layer name="guide_note_s07_02" style="guide_note_style" html="Site of Becket's Original Tomb[br]&#8681;" align="bottom" y="20" y.mobile="104" />

	</scene>

	<!-- 
		createNavHS('s07-circnav02', -175.05, 0.53, scene_s05_2874, 'images/s05.jpg', 'Martyrdom', 'bottom', 70, -175.05, 0.53, 70, 'videos/blank2.mp4', 180, 0, 70); 		
		createNavHS('s07-circnav01', -142.37, -0.17, scene_s08_2949, 'images/s08.jpg', 'Monastery Ruins', 'bottom', 70, -142.37, -0.17, 70, 'videos/blank2.mp4', 180, 0, 70);
	-->


	<!-- 6 -->

	<scene name="scene_s16_2487" title="Exhibition" infopanel="infopanels_bs3/s16_exhibition.html" >

		<image>
			<cube url="panos/s16_2487.tiles/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,640,1280,2560,5120" />
		</image>

		<events name="addHotspots" 
			onloadcomplete="
				wait(1.5);
				createNavHS('s16-circnav02', 0, 0, scene_s17_250, 'images/s17.jpg', 'Western Crypt', 'bottom', 0, 0, 0, 70, 'videos/blank2.mp4', 0, 0, 70);
		" />

	</scene>

	<!-- createNavHS('s16-circnav01', -36.97, 0, scene_s08_2949, 'images/s08.jpg', 'Monastery Ruins', 'top', -90, -142.37, -0.17, 70, 'videos/blank2.mp4', 180, 0, 70); -->


	<!-- 7 -->

	<scene name="scene_s17_250" title="Western Crypt" infopanel="infopanels_bs3/s17_western_crypt.html" >

		<image>
			<cube url="panos/s17_250.tiles/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,640,1280,2560,5120" />
		</image>

		<events name="addHotspots" 
			onloadcomplete="
				wait(1.5);
				createNavHS('s17-circnav01', -108.64, -0.37, scene_s08_2949, 'images/s08.jpg', 'Monastery Ruins', 'bottom', 0, -108.64, -0.37, 70, 'videos/blank2.mp4', -90, 0, 70);
				createNavHS('s17-circnav02', 180, 0, scene_s16_2487, 'images/s16.jpg', 'Exhibition', 'bottom', 0, -175.05, 0.53, 70, 'videos/blank2.mp4', 180, 0, 70);
				createNavHS('s17-circnav03', -50.26, 0, scene_s07_2967, 'images/s07.jpg', 'Eastern Crypt', 'bottom', 90, -50, 0, 70, 'videos/blank2.mp4', 0, 0, 70);
				createNavHS('s17-circnav04', -153.86, 0, scene_s05_2874, 'images/s05.jpg', 'Martyrdom', 'bottom', 70, -153, 0, 70, 'videos/blank2.mp4', -153, 0, 70);

				createInfoHS('s17_hs01', 17.86, 0, 'St Gabriel’s Chapel', 'infopanels_bs3/s17_hs01_st_gabriels_chapel.html', 'creative');
				createInfoHS('s17_hs02', 84.70, -1.23, 'Hugenot Chapel', 'infopanels_bs3/s17_hs02_hugenot_chapel.html', 'creative');
		" />

	</scene>


	<!-- 8 -->

	<scene name="scene_s08_2949" title="Monastic Ruins" infopanel="infopanels_bs3/s08_monastic_ruins.html" >

		<image>
			<cube url="panos/s08_2949.tiles/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,640,1280,2560,5120" />
		</image>

		<events name="addHotspots" 
			onloadcomplete="
				wait(1.5);
				createNavHS('s08-circnav02', 83.93, 2.94, scene_s17_250, 'images/s17.jpg', 'Western Crypt', 'top', 0, 83.93, 2.94, 70, 'videos/blank2.mp4', 90, 0, 70);

				createInfoHS('s08_hs01', -23.81, -5.85, 'Prior’s Lodgings[br/](not open to public)', 'infopanels_bs3/s08_hs01_priors_lodgings.html', 'creative');
				createInfoHS('s08_hs02', 14.30, -0.68, 'Infirmary', 'infopanels_bs3/s08_hs02_infirmary.html', 'creative');
				createInfoHS('s08_hs03', -167.52, -0.37, 'Herb Garden', 'infopanels_bs3/s08_hs03_herb_garden.html', 'creative');
				createInfoHS('s08_hs04', 70.31, -25.76, 'Water Tower', 'infopanels_bs3/s08_hs04_water_tower.html', 'creative');
		" />

	</scene>

	<!-- createNavHS('s08-circnav02', 72.51, -21.92, scene_s12_2986, 'images/s12.jpg', 'Water Tower', 'bottom', 0, 72.51, -21.92, 70, 'videos/blank2.mp4', 115, 0, 70);
		createNavHS('s08-circnav01', 67.52, 2.94, scene_s07_2967, 'images/s07.jpg', 'Eastern Crypt', 'bottom', 0, 67.52, 2.94, 70, 'videos/blank2.mp4', 90, 0, 70); -->

	<!-- <scene name="scene_s09_2889" title="Crossing / Pulpitum Steps" infopanel="infopanels_bs3/s09_crossing_pulpitum_steps.html" >

		<image>
			<cube url="panos/s09_2889.tiles/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,640,1280,2560,5120" />
		</image>

		<events name="addHotspots" 
			onloadcomplete="
				wait(1.5);
				createNavHS('s09-circnav01', -105.41, 5.79, scene_s05_2874, 'images/s05.jpg', 'Martyrdom', 'top', 120, -95.51, 1.74, 38.68, 'videos/Pulpitum - Martyrdom.mp4', 39.29, 2.47, 43.85);
				createNavHS('s09-circnav02', 1.46, -5.48, scene_s11_2907, 'images/s10.jpg', 'Quire', 'bottom', 0, 0.94, -7.58, 38.6, 'videos/Pulpitum Screen - Quire Front.mp4', -3.45, -1, 41.92);

				createInfoHS('s09_hs01', -86.22, -82.14, 'Bell Harry Tower', 'infopanels_bs3/s09_hs01_bell_harry_tower.html', 'creative');
				createInfoHS('s09_hs02', 91.24, -29.32, 'Great South Window', 'infopanels_bs3/s09_hs02_great_south_window.html', 'creative');
		" />

	</scene>	 -->

		<!-- createNavHS('s09-circnav02', -178.72, 4.44, scene_s04_2853, 'images/s04.jpg', 'Nave (East)', 'top', 0, -178.72, 4.44, 41, 'videos/blank2.mp4', 180, 0, 70); -->
	

	<!-- 9 -->

	<scene name="scene_s09_2451-r" title="Crossing / Pulpitum Steps" infopanel="infopanels_bs3/s09_crossing_pulpitum_steps.html" >

		<image>
			<cube url="panos/s09_2451-r.tiles/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,640,1280,2560,5120" />
		</image>

		<events name="addHotspots" 
			onloadcomplete="
				wait(1.5);
				createNavHS('s09-circnav01', -105.41, 5.79, scene_s05_2874, 'images/s05.jpg', 'Martyrdom', 'top', 120, -95.51, 1.74, 38.68, 'videos/Pulpitum - Martyrdom.mp4', 39.29, 2.47, 43.85);
				createNavHS('s09-circnav02', 1.46, -5.48, scene_s11_2907, 'images/s10.jpg', 'Quire', 'bottom', 0, 0.94, -7.58, 38.6, 'videos/Pulpitum Screen - Quire Front.mp4', -3.45, -1, 41.92);

				createInfoHS('s09_hs01', -86.22, -82.14, 'Bell Harry Tower', 'infopanels_bs3/s09_hs01_bell_harry_tower.html', 'creative');
				createInfoHS('s09_hs02', 91.24, -29.32, 'Great South Window', 'infopanels_bs3/s09_hs02_great_south_window.html', 'creative');

				delayedcall(9, tween(layer[guide_note_s09_01].alpha, 1));
		" />

		<layer name="guide_note_s09_01" style="guide_note_style" html="&#8679;[br]Look up to The Bell Tower" align="top" y="56" />

	</scene>

	<!-- <scene name="scene_s10_3013" title="s10_3013" infopanel="infopanels_bs3/s01.html" >

		<image>
			<cube url="panos/s10_3013.tiles/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,640,1280,2560,5120" />
		</image>

	</scene> -->


	<!-- 10 -->

	<scene name="scene_s11_2907" title="Quire" infopanel="infopanels_bs3/s11_quire.html" >

		<image>
			<cube url="panos/s11_2907.tiles/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,640,1280,2560,5120" />
		</image>

		<events name="addHotspots" 
			onloadcomplete="
				wait(1.5);
				createNavHS('s11-circnav01', -104.96, 0.72, scene_s12_2986, 'images/s12.jpg', 'Water Tower', 'bottom', 45, -104.96, 0.72, 38, 'videos/Quire - Water Tower.mp4', -65, 7.15, 86);
				createNavHS('s11-circnav02', 82.80, 1.82, scene_s13_3028, 'images/s13.jpg', 'South Quire Aisle', 'bottom', 0, 90, 0, 70, 'videos/blank2.mp4', 90, 0, 70);
				createNavHS('s11-circnav03', 179.44, -6.04, scene_s09_2451-r, 'images/s09r.jpg', 'Crossing/[br]Pulpitum Steps', 'top', 180, 179.44, -6.04, 70, 'videos/blank2.mp4', 180, 0, 70);

				createInfoHS('s11_hs01', 1.58, -4.78, 'St Augustine’s Chair', 'infopanels_bs3/s11_hs01_st_augustines_chair.html', 'creative');
				createInfoHS('s11_hs02', -77.36, -2.53, 'Tomb of[br/]Archbishop[br/]Chichele', 'infopanels_bs3/s11_hs02_chichele_tomb.html', 'creative');
		" />

	</scene>


	<!-- 11 -->

	<scene name="scene_s12_2986" title="Water Tower" infopanel="infopanels_bs3/s12_water_tower.html" >

		<image>
			<cube url="panos/s12_2986.tiles/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,640,1280,2560,5120" />
		</image>

		<events name="addHotspots" 
			onloadcomplete="
				wait(1.5);
				createNavHS('s12-circnav01', 114.97, 2.29, scene_s11_2907, 'images/s11.jpg', 'Quire', 'bottom', 0, 115.21, 2.40, 38.6, 'videos/Water Tower - Quire.mp4', 97.84, 3.22, 50);

				createInfoHS('s12_hs01', 123.91, 12.52, 'Cathedral Life[br/]Exhibition', 'infopanels_bs3/s12_hs01_cathedral_life_exhibition.html', 'creative');
		" />

	</scene>

	<!-- createNavHS('s12-circnav02', -62.92, 6.41, scene_s08_2949, 'images/s08.jpg', 'Monastery Ruins', 'bottom', 180, -62.92, 6.41, 70, 'videos/blank2.mp4', 270, 0, 70); -->


	<!-- 12 -->

	<scene name="scene_s13_3028" title="South Quire Aisle" infopanel="infopanels_bs3/s13_south_quire_aisle.html" >

		<image>
			<cube url="panos/s13_3028.tiles/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,640,1280,2560,5120" />
		</image>

		<events name="addHotspots" 
			onloadcomplete="
				wait(1.5);
				createNavHS('s13-circnav01', -87.37, 0.71, scene_s11_2907, 'images/s11.jpg', 'Quire', 'bottom', 0, -90, 0, 70, 'videos/blank2.mp4', -90, 0, 70);
				createNavHS('s13-circnav02', -59.24, 0.71, scene_s15_3061, 'images/s15.jpg', 'Corona Chapel', 'bottom', 90, -59.24, 0, 50, 'videos/blank2.mp4', 0, 0, 70);
		" />

	</scene>


	<!-- 13 -->

	<scene name="scene_s14_3048" title="Trinity Chapel" infopanel="infopanels_bs3/s14_trinity_chapel.html" >

		<image>
			<cube url="panos/s14_3048.tiles/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,640,1280,2560,5120" />
		</image>

		<events name="addHotspots" 
			onloadcomplete="
				wait(1.5);
				createNavHS('s14-circnav01', 0, 5.76, scene_s15_3061, 'images/s15.jpg', 'Corona Chapel', 'bottom', 0, 0, 5.76, 70, 'videos/blank2.mp4', 0, 9, 70);

				createInfoHS('s14_hs01', 179.20, 18.07, 'Mosaic floor', 'infopanels_bs3/s14_hs01_mosaic_floor.html', 'creative');
				createInfoHS('s14_hs02', -73.19, 8.49, 'Tomb of[br/]King Henry IV &amp;[br/]Joan of Navarre', 'infopanels_bs3/s14_hs02_henry_iv_joan_navarre_tomb.html', 'creative');
				createInfoHS('s14_hs03', 79.96, 6.23, 'Tomb of the[br/]Black Prince', 'infopanels_bs3/s14_hs03_black_prince_tomb.html', 'creative');
				createInfoHS('s14_hs05', 35.06, -13.17, 'Miracle[br/]Windows', 'infopanels_bs3/s14_hs05_miracle_windows.html', 'creative');
				createInfoHS('s14_hs06', -47.15, -12.58, 'Miracle[br/]Windows', 'infopanels_bs3/s14_hs05_miracle_windows.html', 'creative');
		" />

	</scene>

	<!-- createNavHS('s14-circnav02', 178.5, -5, scene_s11_2907, 'images/s11.jpg', 'Quire', 'top', 180, 178.5, -5, 70, 'videos/blank2.mp4', 180, 9, 70); -->


	<!-- 14 -->
	
	<scene name="scene_s15_3061" title="Corona Chapel" infopanel="infopanels_bs3/s15_corona_chapel.html" >

		<image>
			<cube url="panos/s15_3061.tiles/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,640,1280,2560,5120" />
		</image>

		<events name="addHotspots" 
			onloadcomplete="
				wait(1.5);
				createNavHS('s15-circnav01', 98.33, -2.99, scene_s13_3028, 'images/s13.jpg', 'South Quire Aisle', 'top', 90, 93.75, 1.9, 41, 'videos/Trinity Chapel - South Transept.mp4', 98.76, -12.71, 93.9);
				createNavHS('s15-circnav02', 178, 1.5, scene_s14_3048, 'images/s14.jpg', 'Trinity Chapel', 'top', 0, 180, 0, 41, 'videos/blank2.mp4', 180, 0, 70);
				
				createInfoHS('s15_hs01', 121.02, 2.89, 'Tomb of the[br/]Archbishop Walter', 'infopanels_bs3/s14_hs04_archbishop_walter_tomb.html', 'creative');
				createInfoHS('s15_hs02', 86.33, -22.36, 'Miracle[br/]Windows', 'infopanels_bs3/s14_hs05_miracle_windows.html', 'creative');
				createInfoHS('s15_hs03', -104.54, -14.56, 'Miracle[br/]Windows', 'infopanels_bs3/s14_hs05_miracle_windows.html', 'creative');
		" />

	</scene>

	
	<!-- HELPERS -->

	<action name="get-fp-hs-xy">
		screentolayer(floorplan, mouse.x,mouse.y, layerx, layery);
		trace('x="', calc(roundval(layerx, 0)) , '" y="', calc(roundval(layery, 0)), '"');
	</action>

	<action name="fixNavTxtPos" scope="local">
		set(x, calc(175 - view.fov));
		for(set(i,0), i LT hotspot.count, inc(i),
			if (hotspot[get(i)].navtxttag == ntt, tween(hotspot[get(i)].ox, get(x)))
		)

	</action>

	<!-- EVENTS ON ALL SCENES -->
	<events 
		onnewscene="	
					" 
		onclick="tween(layer[help-mouse-touch].alpha|layer[guide_note_s07_01].alpha|layer[guide_note_s07_02].alpha|layer[guide_note_s07_03].alpha|layer[guide_note_s09_01].alpha, 0, default, default, tween(layer[help].alpha, 1))"
		onmousedown="tween(layer[help-mouse-touch].alpha|layer[guide_note_s07_01].alpha|layer[guide_note_s07_02].alpha|layer[guide_note_s07_03].alpha|layer[guide_note_s09_01].alpha, 0, default, default, tween(layer[help].alpha, 1))"
		onmouseup="tween(layer[help-mouse-touch].alpha|layer[guide_note_s07_01].alpha|layer[guide_note_s07_02].alpha|layer[guide_note_s07_03].alpha|layer[guide_note_s09_01].alpha, 0, default, default, tween(layer[help].alpha, 1))"
		onviewchange="calc(plugin[pp_sharpen].range, plugin[pp_sharpen].sharpenradius*view.maxpixelzoom*tan(0.5*view.fovmin*Math.PI/180)/tan(0.5*view.fov*Math.PI/180)  );"
	/>

</krpano>
