<krpano version="1.0.8.14" onstart="buildthumbs(); play(music);  " logkey="true" showerrors="false">
	<!-- vtour.xml template krpano tools version 1.0.8.14 -->	
	
<events onkeydown="checkkey();" />

<action name="buildthumbs">
	if(isandriod, gotoscene(get(scene[0].name))); 
	if(ishtml5, gotoscene(get(scene[0].name))); 
	if(isflash,	autothumbsadd();
		if(scene.count == 1, set(thumbnails[thumbs1].width,0));
		if(scene.count == 2, set(thumbnails[thumbs1].width,125));
		if(scene.count == 3, set(thumbnails[thumbs1].width,200));
		if(scene.count == 4, set(thumbnails[thumbs1].width,260));
		if(scene.count GT 4, set(thumbnails[thumbs1].width,310)); thumbnails_build(thumbs1));
</action>

<include url="../../core/thumbsxml/thumbsbase.xml" />
<include url="data.xml"/>

<plugin name="logo" style="logo" url="extras/logo.png" />
<plugin name="photos" style="photos" />	
<plugin name="mapicon" style="mapicon" />
<plugin name="info" style="info"/>
<plugin name="snd" style="snd" ondown="snd()"/>

	<action name="snd">
		IF(actioncord == 2, play(music), stop()); switch(plugin[snd].actioncord,1,2);  switch(plugin[snd].crop, 0|0|75|75, 0|75|75|75); 
	</action>		

<style name="hotspot" zorder="0" edge="center" details="30" distorted="true"
	         keep="false"  zoom="true" 
			 onover="set(effect, glow(0x00ff00,2,3,3));" onout="set(effect, glow(0xff0000,2,3,3));"
			 effect="glow(0xff0000,1,3,10);dropshadow(2,45,0x000000,3,2);"
	         visible="true" enabled="true" usecontentsize="false" handcursor="true" capture="true" children="true"
			 devices="desktop"/>	
								
	
	<scene name="scene_Outside" title="Outside" onstart="set(plugin[titletext].html, '[p]Welcome to Shepherd of the Hills[/p]'); set(plugin[infotext].html, data:outside); thumbnails_visited(thumbs1,0,true); thumbnails_current(thumbs1,0); tween(plugin[map].x, 5); set(plugin[nomap].visible, true);" thumburl="panos/Outside.tiles/thumb.jpg">

		<events onloadcomplete="setswf(/outside/, Shepherd of the Hills Church); dragcursor();"/>

<view hlookat="0" vlookat="0" fov="90" fovmin="40" fovmax="120"/><display details="32" sharpen="12"/><control movetocursor="arrow"/>

		<preview url="panos/Outside.tiles/preview.jpg" />

		<image type="CUBE" multires="true" tilesize="512" progressive="false">
			<level tiledimagewidth="2048" tiledimageheight="2048">
				<left  url="panos/Outside.tiles/l3_l_%0v%0h.jpg" />
				<front url="panos/Outside.tiles/l3_f_%0v%0h.jpg" />
				<right url="panos/Outside.tiles/l3_r_%0v%0h.jpg" />
				<back  url="panos/Outside.tiles/l3_b_%0v%0h.jpg" />
				<up    url="panos/Outside.tiles/l3_u_%0v%0h.jpg" />
				<down  url="panos/Outside.tiles/l3_d_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="1024" tiledimageheight="1024">
				<left  url="panos/Outside.tiles/l2_l_%0v%0h.jpg" />
				<front url="panos/Outside.tiles/l2_f_%0v%0h.jpg" />
				<right url="panos/Outside.tiles/l2_r_%0v%0h.jpg" />
				<back  url="panos/Outside.tiles/l2_b_%0v%0h.jpg" />
				<up    url="panos/Outside.tiles/l2_u_%0v%0h.jpg" />
				<down  url="panos/Outside.tiles/l2_d_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="512" tiledimageheight="512">
				<left  url="panos/Outside.tiles/l1_l_%0v%0h.jpg" />
				<front url="panos/Outside.tiles/l1_f_%0v%0h.jpg" />
				<right url="panos/Outside.tiles/l1_r_%0v%0h.jpg" />
				<back  url="panos/Outside.tiles/l1_b_%0v%0h.jpg" />
				<up    url="panos/Outside.tiles/l1_u_%0v%0h.jpg" />
				<down  url="panos/Outside.tiles/l1_d_%0v%0h.jpg" />
			</level>
		</image>

	<hotspot name="church" style="hotspot"
 	         ath="-0.65" atv="1.5" alpha="0.75" scale="0.5"
			 url="extras/firespot.png" 
	         onhover="showtext('Welcome to our Family')"
	         onclick="looktohotspot(church); loadscene(scene_foyer,null,MERGE,BLEND(2));"/>				
	
	<hotspot name="preschool" style="hotspot"
 	         ath="71" atv="2" alpha="0.75" scale="0.75"
			 url="extras/preschoolspot.png"
	         onhover="showtext(Shepherds Little Lambs Preschool)"
	         onclick="looktohotspot(preschool); loadscene(scene_preschool,null,MERGE,BLEND(2));"/>	
			 
		 			

	</scene>
	

	<scene name="scene_preschool" title="Preschool" onstart="set(plugin[titletext].html, '[p]Shepheds Little Lambs Preschool[/p]'); set(plugin[infotext].html, data:preschool); thumbnails_visited(thumbs1,1,true); thumbnails_current(thumbs1,1); tween(plugin[map].x, -300); set(plugin[nomap].visible, false);" thumburl="panos/preschool.tiles/thumb.jpg">

		<events onloadcomplete="setswf(/preschool/, Shepherd of the Hills Church); dragcursor();"/>

<view hlookat="0" vlookat="0" fov="90" fovmin="50" fovmax="120"/><display details="32" sharpen="12"/><control movetocursor="arrow"/>

		<preview url="panos/preschool.tiles/preview.jpg" />

		<image type="CUBE" multires="true" tilesize="512" progressive="false">
			<level tiledimagewidth="2048" tiledimageheight="2048">
				<left  url="panos/preschool.tiles/l3_l_%0v%0h.jpg" />
				<front url="panos/preschool.tiles/l3_f_%0v%0h.jpg" />
				<right url="panos/preschool.tiles/l3_r_%0v%0h.jpg" />
				<back  url="panos/preschool.tiles/l3_b_%0v%0h.jpg" />
				<up    url="panos/preschool.tiles/l3_u_%0v%0h.jpg" />
				<down  url="panos/preschool.tiles/l3_d_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="1024" tiledimageheight="1024">
				<left  url="panos/preschool.tiles/l2_l_%0v%0h.jpg" />
				<front url="panos/preschool.tiles/l2_f_%0v%0h.jpg" />
				<right url="panos/preschool.tiles/l2_r_%0v%0h.jpg" />
				<back  url="panos/preschool.tiles/l2_b_%0v%0h.jpg" />
				<up    url="panos/preschool.tiles/l2_u_%0v%0h.jpg" />
				<down  url="panos/preschool.tiles/l2_d_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="512" tiledimageheight="512">
				<left  url="panos/preschool.tiles/l1_l_%0v%0h.jpg" />
				<front url="panos/preschool.tiles/l1_f_%0v%0h.jpg" />
				<right url="panos/preschool.tiles/l1_r_%0v%0h.jpg" />
				<back  url="panos/preschool.tiles/l1_b_%0v%0h.jpg" />
				<up    url="panos/preschool.tiles/l1_u_%0v%0h.jpg" />
				<down  url="panos/preschool.tiles/l1_d_%0v%0h.jpg" />
			</level>
		</image>

	<hotspot name="room" style="hotspot"
 	         ath="0" atv="2" alpha="0.75" scale="0.5"
			 url="extras/firespot.png"
	         onhover="showtext(Return to the Multi-purpose room)"
	         onclick="looktohotspot(room); loadscene(scene_multipurposeroom,null,MERGE,BLEND(2));"/>
			 
		 		

	</scene>

	<scene name="scene_Foyer" title="Foyer" onstart="set(plugin[titletext].html, '[p]Foyer[/p]'); set(plugin[infotext].html, data:outside); thumbnails_visited(thumbs1,2,true); thumbnails_current(thumbs1,2); tween(plugin[map].x, -300); set(plugin[nomap].visible, false);" thumburl="panos/Foyer.tiles/thumb.jpg">

		<events onloadcomplete="setswf(/foyer/, Shepherd of the Hills Church); dragcursor();"/>

<view hlookat="0" vlookat="0" fov="90" fovmin="50" fovmax="120"/><display details="32" sharpen="12"/><control movetocursor="arrow"/>

		<preview url="panos/Foyer.tiles/preview.jpg" />

		<image type="CUBE" multires="true" tilesize="512" progressive="false">
			<level tiledimagewidth="2048" tiledimageheight="2048">
				<left  url="panos/Foyer.tiles/l3_l_%0v%0h.jpg" />
				<front url="panos/Foyer.tiles/l3_f_%0v%0h.jpg" />
				<right url="panos/Foyer.tiles/l3_r_%0v%0h.jpg" />
				<back  url="panos/Foyer.tiles/l3_b_%0v%0h.jpg" />
				<up    url="panos/Foyer.tiles/l3_u_%0v%0h.jpg" />
				<down  url="panos/Foyer.tiles/l3_d_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="1024" tiledimageheight="1024">
				<left  url="panos/Foyer.tiles/l2_l_%0v%0h.jpg" />
				<front url="panos/Foyer.tiles/l2_f_%0v%0h.jpg" />
				<right url="panos/Foyer.tiles/l2_r_%0v%0h.jpg" />
				<back  url="panos/Foyer.tiles/l2_b_%0v%0h.jpg" />
				<up    url="panos/Foyer.tiles/l2_u_%0v%0h.jpg" />
				<down  url="panos/Foyer.tiles/l2_d_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="512" tiledimageheight="512">
				<left  url="panos/Foyer.tiles/l1_l_%0v%0h.jpg" />
				<front url="panos/Foyer.tiles/l1_f_%0v%0h.jpg" />
				<right url="panos/Foyer.tiles/l1_r_%0v%0h.jpg" />
				<back  url="panos/Foyer.tiles/l1_b_%0v%0h.jpg" />
				<up    url="panos/Foyer.tiles/l1_u_%0v%0h.jpg" />
				<down  url="panos/Foyer.tiles/l1_d_%0v%0h.jpg" />
			</level>
		</image>

	<hotspot name="sanctuary" style="hotspot"
 	         ath="-0.65" atv="1.5" alpha="0.75" scale="0.5"
			 url="extras/firespot.png" 
	         onhover="showtext('Enter the Sanctuary')"
	         onclick="looktohotspot(sanctuary); loadscene(scene_sanctuary,null,MERGE,BLEND(2));"/>				
	
	<hotspot name="room" style="hotspot"
 	         ath="68" atv="2" alpha="0.75" scale="0.5"
			 url="extras/firespot.png"
	         onhover="showtext(Enter the Multi-purpose room)"
	         onclick="looktohotspot(room); loadscene(scene_multipurposeroom,null,MERGE,BLEND(2));"/>
			 
	<hotspot name="outside" style="hotspot"
 	         ath="178" atv="2" alpha="0.75" scale="0.5"
			 url="extras/firespot.png"
	         onhover="showtext(Go Outside)"
	         onclick="looktohotspot(outside); loadscene(scene_outside,null,MERGE,BLEND(2));"/>			 
			 
			 			

	</scene>


	<scene name="scene_multipurposeroom" title="Fellowship Hall" onstart="set(plugin[titletext].html, '[p]Fellowship Hall[/p]'); set(plugin[infotext].html, data:room); thumbnails_visited(thumbs1,3,true); thumbnails_current(thumbs1,3); tween(plugin[map].x, -300); set(plugin[nomap].visible, false);" thumburl="panos/multipurposeroom.tiles/thumb.jpg">

		<events onloadcomplete="setswf(/room/, Shepherd of the Hills Church); dragcursor();"/>

<view hlookat="0" vlookat="0" fov="90" fovmin="50" fovmax="120"/><display details="32" sharpen="12"/><control movetocursor="arrow"/>

		<preview url="panos/multipurposeroom.tiles/preview.jpg" />

		<image type="CUBE" multires="true" tilesize="512" progressive="false">
			<level tiledimagewidth="2048" tiledimageheight="2048">
				<left  url="panos/multipurposeroom.tiles/l3_l_%0v%0h.jpg" />
				<front url="panos/multipurposeroom.tiles/l3_f_%0v%0h.jpg" />
				<right url="panos/multipurposeroom.tiles/l3_r_%0v%0h.jpg" />
				<back  url="panos/multipurposeroom.tiles/l3_b_%0v%0h.jpg" />
				<up    url="panos/multipurposeroom.tiles/l3_u_%0v%0h.jpg" />
				<down  url="panos/multipurposeroom.tiles/l3_d_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="1024" tiledimageheight="1024">
				<left  url="panos/multipurposeroom.tiles/l2_l_%0v%0h.jpg" />
				<front url="panos/multipurposeroom.tiles/l2_f_%0v%0h.jpg" />
				<right url="panos/multipurposeroom.tiles/l2_r_%0v%0h.jpg" />
				<back  url="panos/multipurposeroom.tiles/l2_b_%0v%0h.jpg" />
				<up    url="panos/multipurposeroom.tiles/l2_u_%0v%0h.jpg" />
				<down  url="panos/multipurposeroom.tiles/l2_d_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="512" tiledimageheight="512">
				<left  url="panos/multipurposeroom.tiles/l1_l_%0v%0h.jpg" />
				<front url="panos/multipurposeroom.tiles/l1_f_%0v%0h.jpg" />
				<right url="panos/multipurposeroom.tiles/l1_r_%0v%0h.jpg" />
				<back  url="panos/multipurposeroom.tiles/l1_b_%0v%0h.jpg" />
				<up    url="panos/multipurposeroom.tiles/l1_u_%0v%0h.jpg" />
				<down  url="panos/multipurposeroom.tiles/l1_d_%0v%0h.jpg" />
			</level>
		</image>

	<hotspot name="foyer" style="hotspot"
 	         ath="-13" atv="1.5" alpha="0.75" scale="0.5"
			 url="extras/firespot.png" 
	         onhover="showtext('Enter the Foyer')"
	         onclick="looktohotspot(foyer); loadscene(scene_foyer,null,MERGE,BLEND(2));"/>				
			 
	<hotspot name="preschool" style="hotspot"
 	         ath="-152" atv="2" alpha="0.75" scale="0.75"
			 url="extras/preschoolspot.png"
	         onhover="showtext(Shepherds Little Lambs Pre-school)"
	         onclick="looktohotspot(preschool); loadscene(scene_preschool,null,MERGE,BLEND(2));"/>
			 				 		

	</scene>



	<scene name="scene_sanctuary" title="Sanctuary" onstart="set(plugin[titletext].html, '[p]Sanctuary[/p]'); set(plugin[infotext].html, data:tvs); thumbnails_visited(thumbs1,4,true); thumbnails_current(thumbs1,4); tween(plugin[map].x, -300); set(plugin[nomap].visible, false);" thumburl="panos/sanctuary.tiles/thumb.jpg">

		<events onloadcomplete="setswf(/sanctuary/, Shepherd of the Hills Church); dragcursor();"/>

<view hlookat="0" vlookat="0" fov="90" fovmin="50" fovmax="120"/><display details="32" sharpen="12"/><control movetocursor="arrow"/>

		<preview url="panos/sanctuary.tiles/preview.jpg" />

		<image type="CUBE" multires="true" tilesize="512" progressive="false">
			<level tiledimagewidth="2048" tiledimageheight="2048">
				<left  url="panos/sanctuary.tiles/l3_l_%0v%0h.jpg" />
				<front url="panos/sanctuary.tiles/l3_f_%0v%0h.jpg" />
				<right url="panos/sanctuary.tiles/l3_r_%0v%0h.jpg" />
				<back  url="panos/sanctuary.tiles/l3_b_%0v%0h.jpg" />
				<up    url="panos/sanctuary.tiles/l3_u_%0v%0h.jpg" />
				<down  url="panos/sanctuary.tiles/l3_d_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="1024" tiledimageheight="1024">
				<left  url="panos/sanctuary.tiles/l2_l_%0v%0h.jpg" />
				<front url="panos/sanctuary.tiles/l2_f_%0v%0h.jpg" />
				<right url="panos/sanctuary.tiles/l2_r_%0v%0h.jpg" />
				<back  url="panos/sanctuary.tiles/l2_b_%0v%0h.jpg" />
				<up    url="panos/sanctuary.tiles/l2_u_%0v%0h.jpg" />
				<down  url="panos/sanctuary.tiles/l2_d_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="512" tiledimageheight="512">
				<left  url="panos/sanctuary.tiles/l1_l_%0v%0h.jpg" />
				<front url="panos/sanctuary.tiles/l1_f_%0v%0h.jpg" />
				<right url="panos/sanctuary.tiles/l1_r_%0v%0h.jpg" />
				<back  url="panos/sanctuary.tiles/l1_b_%0v%0h.jpg" />
				<up    url="panos/sanctuary.tiles/l1_u_%0v%0h.jpg" />
				<down  url="panos/sanctuary.tiles/l1_d_%0v%0h.jpg" />
			</level>
		</image>

	<hotspot name="foyer" style="hotspot"
 	         ath="177" atv="2.5" alpha="0.75" scale="0.5"
			 url="extras/firespot.png" 
	         onhover="showtext('Enter the Foyer')"
	         onclick="looktohotspot(foyer); loadscene(scene_foyer,null,MERGE,BLEND(2));"/>				
			 
	<hotspot name="preschool" style="hotspot"
 	         ath="85" atv="2" alpha="0.75" scale="0.75"
			 url="extras/preschoolspot.png"
	         onhover="showtext(Shepherds Little Lambs Pre-school)"
	         onclick="looktohotspot(preschool); loadscene(scene_preschool,null,MERGE,BLEND(2));"/>
			 
	<hotspot name="tv1"
	         keep="false"
	         visible="true" enabled="true" usecontentsize="false" handcursor="true" capture="true" children="true"
	         fillcolor     ="0xff9933" fillalpha     ="0.5" borderwidth     ="2.0" bordercolor     ="0xfd0101" borderalpha     ="1"
	         fillcolorhover="0xff9933" fillalphahover="0.0" borderwidthhover="3.0" bordercolorhover="0x01ff1f1" borderalphahover="0.5"
	         fadeintime="0.150" fadeouttime="0.300" fadeincurve="1.100" fadeoutcurve="0.700"
	         onhover="showtext('Why are TVs in the Sanctuary?')"
	         onclick="snd(); set(plugin[infotext].html, data:tvs); set(plugin[noinfo].visible, true); set(hotspot[video].visible, true); set(hotspot[video2].visible, true); set(plugin[infotext].visible, true); hotspot[video].resume(); hotspot[video2].resume();"
	         autoalpha="false"
	         devices="all"
		>
		<point ath="  9.3967" atv=" -5.3238" />
		<point ath=" 16.2751" atv=" -5.1808" />
		<point ath=" 16.2751" atv="  0.1288" />
		<point ath="  9.4837" atv="  0.0441" />
	</hotspot>

	<hotspot name="tv2"
	         keep="false"
	         visible="true" enabled="true" usecontentsize="false" handcursor="true" capture="true" children="true"
	         fillcolor     ="0xff9933" fillalpha     ="0.5" borderwidth     ="2.0" bordercolor     ="0xfd0101" borderalpha     ="1"
	         fillcolorhover="0xff9933" fillalphahover="0.0" borderwidthhover="3.0" bordercolorhover="0x01ff1f1" borderalphahover="0.5"
	         fadeintime="0.150" fadeouttime="0.300" fadeincurve="1.100" fadeoutcurve="0.700"
	         onhover="showtext('Why are TVs in the Sanctuary?')"
	         onclick="snd(); set(plugin[infotext].html, data:tvs); set(plugin[noinfo].visible, true); set(hotspot[video].visible, true); set(hotspot[video2].visible, true); set(plugin[infotext].visible, true); hotspot[video].resume(); hotspot[video2].resume();"
	         autoalpha="false"
	         devices="all"
		>
		<point ath="-19.0650" atv=" -1.3883" />
		<point ath="-14.4454" atv=" -1.4290" />
		<point ath="-14.5293" atv="  2.2934" />
		<point ath="-18.9560" atv="  2.2408" />
		<point ath="-19.0360" atv="  0.5496" />
	</hotspot>
	
<style name="video" 
			zorder="1" scale9grid="" scalechildren="false" rotate="0"
			keep="false" devices="desktop"
			zoom="false" distorted="true" details="8" flying="0"
			edge="center" ox="" oy=""
			visible="false" enabled="true" usecontentsize="false" handcursor="true" capture="true" children="true"
			alpha="1.00" blendmode="normal" effect="" smoothing="true"
			onhover="showtext(Toggle Pause);"
			onclick="hotspot[video2].togglepause(); hotspot[video].togglepause();"
			refreshrate="auto" buffertime="0.1"
			directionalsound="true" iscomplete="false"
			isvideoready="true" loop="true"
			outofrangevolume="0" pausedonstart="true"
			range="90" rangefalloff="1"
			updateeveryframe="true" volume="0.45"
			/>	
			
	<hotspot name="video" style="video"
	         url="../../core/plugins/videoplayer.swf"
			 width="400" height="300"
	         ath="12.95" atv="-2.6635940942219457"
	         scale="0.146"
	         rx="2.75" ry="-11.75" rz="0.5295402412407272"
	         totaltime="122.189"
	         videourl="../duluth/shepherdchurch/extras/video.flv"/>	
			 
	<hotspot name="video2" style="video"
	         url="../../core/plugins/videoplayer.swf"
			 width="400" height="300"
	         ath="-16.77491410887805" atv="0.3962993194200628"
	         scale="0.10027385696186948"
	         rx="-7.5" ry="13.75" rz="1.1521596593044272"
	         videourl="../duluth/shepherdchurch/extras/video.flv"/>				 		
	
	 		

	</scene>	

	<action name="urlchange">
		if(%1 == /, opentour(0));
		if(%1 == /outside/, opentour(0));
		if(%1 == /foyer/, opentour(2));
		if(%1 == /room/, opentour(3));
		if(%1 == /preschool/, opentour(1));
		if(%1 == /sanctuary/, opentour(4));
	</action>

	<action name="addgallery">removing_plugins(tag,photos);
		create_thumbbar(12, bottom, h, 0, 45, 40,40, 6);
		thumbbar_addimage('extras/1.jpg');
		thumbbar_addimage('extras/2.jpg');
		thumbbar_addimage('extras/3.jpg');
		thumbbar_addimage('extras/4.jpg');
		thumbbar_addimage('extras/5.jpg');
		thumbbar_addimage('extras/6.jpg');
		thumbbar_addimage('extras/7.jpg');
		thumbbar_addimage('extras/8.jpg');
		thumbbar_addimage('extras/9.jpg');
		thumbbar_addimage('extras/10.jpg');
		thumbbar_addimage('extras/11.jpg');
		thumbbar_addimage('extras/12.jpg');
	</action>
	

<events onkeydown="checkkey();" />
<action name="checkkey">if(keycode == 32, showUI());</action>	

<!-- <plugin name="options" url="plugins/options.swf" keep="true" zorder="10"/> 
<plugin name="editor" url="plugins/editor.swf" keep="true" zorder="10"/> -->

	<plugin name="soundinterface" url="../../core/plugins/soundinterface.swf" alturl="../../core/plugins/soundinterface.js" keep="true" preload="true" volume="0.5" />
	
	<action name="play">
			 playsound(id1,extras/%1.mp3);
			 set(plugin[snd].effect, glow(0x01ff1f1,1,3,10)); 
	</action>	
	
	<action name="stop">
			stopallsounds();
			set(plugin[snd].effect, glow(0xfd0101,1,3,10)); 
	</action>
	
	<plugin name="mobile" url="extras/mobile.png" devices="desktop" scale="0.5"
  	        keep="true" x="5" y="5" align="topright" edge="topright" handcursor="false"
			zorder="0" onhover="showtext(This tour is Iphone | Ipad | Android Compatible)"/>	
	
	<plugin name="bottombarl" url="../../core/images/steel.png" devices="desktop"
  	        keep="true" x="5" y="5" align="bottomleft" handcursor="false"
			width="210" height="27" zorder="0" effect="glow(0x000000,2,5,5);"/>
			
	<plugin name="bottombarr" url="../../core/images/steel.png" devices="desktop"
  	        keep="true" x="3" y="5" align="bottomright" handcursor="false"
			width="210" height="27" zorder="0" effect="glow(0x000000,2,5,5);"/>					
			
	<plugin name="titletext" url="../../core/plugins/textfield.swf"
	        keep="true" y="5" visible="true" enabled="false" handcursor="false" capture="false" children="false"
	        zorder="103" alpha="1" blendmode="normal" smoothing="true" align="topcenter" edge="topcenter"
 	        width="400" height="50" background="false" devices="desktop"
	        css="p{color:#FFFFFF; font-family:comic sans ms; font-weight:bold; font-size:20; margin-left:5; margin-right:5; text-align:center; }" 
	        glowcolor="16777215" html="[p][/p]" selectable="false"
	        shadow="0" textglow="20" textglowcolor="ffffffff" textheight="200" textshadow="2" />
			
	<plugin name="infotext" url="../../core/plugins/textfield.swf"
	        keep="true" y="100" visible="false" enabled="true" handcursor="true" capture="true" children="true"
	        zorder="103" alpha="1" blendmode="normal" smoothing="true" align="center" edge="center"
 	        autosize="true" background="true" roundedge="10"
	        css="data:cssdata1" onhover="showtext(Click to Close);" onclick="set(visible, false); set(plugin[noinfo].visible, false);"
	        glowcolor="16777215" html="data:infodata" selectable="false"
	        shadow="0" textglow="0" textglowcolor="ffffffff" textheight="200" textshadow="0" />	
	
			<data name="cssdata1">
		    a:hover { color:#885500; }
			pheader{color:#000000; font-family:comic sans ms; font-weight:bold; font-size:18; margin-left:5; margin-right:5; text-align:center; }
		    ptitle{color:#000000; font-family:comic sans ms; font-weight:bold; font-size:15; margin-left:5; margin-right:5; text-align:center; }
		    pbody{color:#000000; font-family:comic sans ms; font-weight:normal; font-size:13; margin-left:5; margin-right:5; text-align:left; }
		    plink{color:#000000;  font-family:comic sans ms; text-decoration:underline; font-weight:bold; color:#0000ff; font-size:16; margin-left:5; margin-right:5;            text-align:center; }
			</data>  

	<style name="button" url="../../core/images/buttons.png" devices="desktop" keep="true" y="8" effect="glow(0x000000,2,5,5);" zorder="11"/>

	<!-- some default buttons (zooming, direction, hotspots on/off, fullscreen) -->
	<plugin name="in"       devices="desktop" align="bottomright" x="6"  style="button" crop="80|0|20|20" onovercrop="80|20|20|20" ondowncrop="80|40|20|20" ondown=					"set(fov_moveforce,-1);" onup="set(fov_moveforce,0);" onhover="showtext(Zoom In, BUTTONSTYLERR);"/>
	<plugin name="out"      devices="desktop" align="bottomright" x="29"  style="button" crop="100|0|20|20" onovercrop="100|20|20|20" ondowncrop="100|40|20|20" ondown="set(fov_moveforce,+1);" onup="set(fov_moveforce,0);" onhover="showtext(Zoom Out, BUTTONSTYLER);"/>
	<plugin name="left"     devices="desktop" align="bottomright" x="51"   style="button" crop=  "0|0|20|20" onovercrop=  "0|20|20|20" ondowncrop=  "0|40|20|20" ondown="set(hlookat_moveforce,-1);" onup="set(hlookat_moveforce,0);" onhover="showtext(Pan Left, BUTTONSTYLER);"/>
	<plugin name="right"    devices="desktop" align="bottomright" x="74"   style="button" crop= "20|0|20|20" onovercrop= "20|20|20|20" ondowncrop= "20|40|20|20" ondown="set(hlookat_moveforce,+1);" onup="set(hlookat_moveforce,0);" onhover="showtext(Pan Right, BUTTONSTYLER);"/>
	<plugin name="up"       devices="desktop" align="bottomright" x="97"    style="button" crop= "40|0|20|20" onovercrop= "40|20|20|20" ondowncrop= "40|40|20|20" ondown="set(vlookat_moveforce,-1);" onup="set(vlookat_moveforce,0);" onhover="showtext(Pan Up, BUTTONSTYLER);"/>
	<plugin name="down"     devices="desktop" align="bottomright" x="120"   style="button" crop="60|0|20|20" onovercrop="60|20|20|20" ondowncrop="60|40|20|20" ondown="set(vlookat_moveforce,+1);" onup="set(vlookat_moveforce,0);" onhover="showtext(Pan Down, BUTTONSTYLER);"/>
	<plugin name="starbtn"  devices="desktop" align="bottomright" x="143"   style="button" crop="120|0|20|20" onovercrop="120|20|20|20" ondowncrop="120|40|20|20" onhover="showtext(Hide All UI Elements, BUTTONSTYLER);" onclick="hideui();" />
	<plugin name="dragmode" devices="desktop" align="bottomright" x="166"  style="button" crop="200|0|20|20" onovercrop="200|20|20|20" ondowncrop="200|40|20|20" onhover="showtext(Change Controlmode, BUTTONSTYLER);" onclick="dragcursor();" visible="true"  />
	<plugin name="movemode" devices="desktop" align="bottomright" x="166"  style="button" crop="180|0|20|20" onovercrop="180|20|20|20" ondowncrop="180|40|20|20" onhover="showtext(Change Controlmode, BUTTONSTYLER);" onclick="qtvrcursor();" visible="false" />
	<plugin name="openfs"   devices="desktop" align="bottomright" x="189"  style="button" crop="140|0|20|20" onovercrop="140|20|20|20" ondowncrop="140|40|20|20" onhover="showtext(Fullscreen, BUTTONSTYLER);" onclick="set(fullscreen,true); set(visible,false); set(plugin[closefs].visible, true);" visible="true"  zorder="12" />
	<plugin name="closefs"  devices="desktop" align="bottomright" x="189"  style="button" crop="160|0|20|20" onovercrop="160|20|20|20" ondowncrop="160|40|20|20" onhover="showtext(Exit Fullscreen, BUTTONSTYLER);" onclick="set(fullscreen,false); set(visible, false); set(plugin[openfs].visible,true);" visible="false" />

	<!-- android buttons -->
	<plugin name="android_in"       devices="android" align="rightbottom"  x="5"  y="5" scale="2.0" style="button" crop="80|0|20|20" onovercrop="80|20|20|20" ondowncrop="160|80|40|40" ondown="set(fov_moveforce,-1);" onup="set(fov_moveforce,0);" />
	<plugin name="android_out"      devices="android" align="rightbottom"  x="28" y="5" scale="2.0" style="button" crop="200|0|20|20" onovercrop="100|20|20|20" ondowncrop="200|80|40|40" ondown="set(fov_moveforce,+1);" onup="set(fov_moveforce,0);" />
	<plugin name="android_openfs"   devices="android" align="rightbottom" x="50"  y="5" scale="2.0" style="button" crop="140|0|20|20" onovercrop="140|20|20|20" ondowncrop="280|80|40|40" onhover="showtext(Fullscreen, BUTTONSTYLER);"  onclick="set(fullscreen,true); set(visible,false); set(plugin[android_closefs].visible, true);" visible="true"  />
	<plugin name="android_closefs"  devices="android" align="rightbottom" x="50"  y="5" scale="2.0" style="button" crop="160|0|20|20" onovercrop="160|20|20|20" ondowncrop="320|80|40|40" onhover="showtext(Exit Fullscreen, BUTTONSTYLER);" onclick="set(fullscreen,false); set(visible, false); set(plugin[android_openfs].visible,true);" visible="false" />			

	<textstyle name="default" font="Arial" fontsize="16" bold="true" italic="false"
	           textcolor="0x000000" background="true" border="true"
	           blendmode="layer" effect="glow(0xFFFFFF,0.85,4,4);dropshadow(2,45,0x000000,4,1);"
	           origin="bottomcenter" edge="bottomcenter" xoffset="0" yoffset="105" showtime="0.1" fadeintime="0.1" fadetime="0.1"/>
			   
	<textstyle name="infostyle" font="Times" fontsize="40" bold="false" italic="false" 
	           textcolor="16777215" background="false" backgroundcolor="16777215" border="false" bordercolor="0" 
	           alpha="1" blendmode="normal" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);" 
	           origin="center" edge="center" textalign="center" xoffset="0" yoffset="-80" noclip="true" showtime="0.1" fadetime="0" fadeintime="0"/>
			   
	<textstyle name="BUTTONSTYLER" font="Arial" fontsize="16" bold="true" italic="false"
	           textcolor="0x000000" background="true" border="true"
	           blendmode="layer" effect="glow(0xFFFFFF,0.85,4,4);dropshadow(2,45,0x000000,4,1);"
	           origin="bottomright" edge="center" xoffset="100" yoffset="50" showtime="0.1" fadeintime="0.1" fadetime="0.1"/>
			   
	<textstyle name="BUTTONSTYLEL" font="Arial" fontsize="16" bold="true" italic="false"
	           textcolor="0x000000" background="true" border="true"
	           blendmode="layer" effect="glow(0xFFFFFF,0.85,4,4);dropshadow(2,45,0x000000,4,1);"
	           origin="bottomleft" edge="center" xoffset="100" yoffset="50" showtime="0.1" fadeintime="0.1" fadetime="0.1"/>			   
	           
	<textstyle name="INFOTEXT" font="Arial" fontsize="26" bold="true" italic="true"
	           textcolor="0x000000" background="false" border="false"
	           blendmode="layer" effect="glow(0xFFFFFF,0.85,4,4);dropshadow(2,45,0x000000,4,1);"
	           origin="center" edge="center" xoffset="0" yoffset="0" showtime="2.0" fadeintime="0.25" fadetime="0.5"/>			   
			   
	<style name="logo" 
			zorder="2" effect="glow(0xff9933,2,5,5);"
			handcursor="false" alpha="1" 
			scale="1" altscale="1"
			visible="true" keep="true"
			align="topleft" edge="topleft" 
			x="20" y="10" />
		
	<style name="snd" url="../../core/images/soundonoff.png"
			keep="true" actioncord="1"
			effect="glow(0xff9933,2,5,5);"
			handcursor="true" alpha="1" crop="0|0|30|30"
			scale="0.9" altscale="1"
			visible="true" zorder="11"
			align="bottomleft" edge="bottomleft" 
			x="38" y="0" parent="bottombarl"
			onhover="showtext(Audio On/Off,BUTTONSTYLEL)" />

	<style name="video" url="../../core/plugins/videoplayer.swf" devices="desktop"
			zorder="1" scale9grid="" scalechildren="false" 
			keep="true" zoom="false" distorted="false" details="8" flying="0"
			edge="center" align="center" ox="" oy=""
			visible="false" enabled="true" usecontentsize="false" handcursor="false" capture="true" children="true"
			alpha="1.00" blendmode="normal" smoothing="true"
			onhover="IF(ispaused, showtext(Click to Watch), showtext(Click to Pause));"
			onclick="togglepause();"
			effect="glow(0xff9933,2,5,5);"
			refreshrate="auto" buffertime="0.1"
			directionalsound="true" iscomplete="false"
			isvideoready="true" loop="true"
			outofrangevolume="0" pausedonstart="true"
			range="90" rangefalloff="1"
			updateeveryframe="true" volume="0.5" 
			onvideoready="do_time_bar(video,video,bottom,top,100%,6,0,20,false,10);"/>			
			
	<style name="photos" url="../../core/images/camera_icon.png"
			keep="true" devices="" parent="bottombarl"
			effect="glow(0xff9933,2,5,5);"
			handcursor="true" alpha="1" 
			scale="0.8" altscale="1.75"
			visible="true" ondown="set(plugin[nophotos].visible, true); set(plugin[thumbs1].visible,false); wait(0.25); addgallery());"
			align="bottomleft" edge="bottomleft" 
			x="78" y="1" zorder="11"
			onhover="showtext(Show Photo Gallery,BUTTONSTYLEL)" /> 													
			
	<plugin name="nophotos" url="../../core/images/no.png" parent="bottombarl"
	        keep="true" visible="false" enabled="true" handcursor="true" 
 	        zorder="12" alpha="1.00" blendmode="normal"
 	        smoothing="true" align="bottomleft" edge="bottomleft" 
			x="78" y="1" ondown="set(visible,false); removing_plugins(tag,photos); wait(0.25); set(plugin[thumbs1].visible, true);"
 	        onhover="showtext(Close Photo Gallery,BUTTONSTYLEL);" scale="0.18" altscale="1.1"
			effect="glow(0xffffff,2,5,5);" jsborder="1px solid #FFFFFF" />
			
	<style name="mapicon" url="../../core/images/gmap.png"
			keep="true" actioncord="2" parent="bottombarl"
			effect="glow(0xff9933,2,5,5);"
			handcursor="true" alpha="1" 
			scale="1" altscale="1.75" x="118" y="0"
			visible="true" zorder="11"
			align="bottomleft" edge="bottomleft" 
			ondown="set(plugin[map].visible,true); set(plugin[nomap].visible, true);"
			onhover="showtext(Click to View Map,BUTTONSTYLEL)" 
			devices="desktop"/>			
			
			<plugin name="nomap" url="../../core/images/no.png" devices="desktop"
	        keep="true" visible="true" enabled="true" handcursor="true" 
 	        zorder="12" alpha="1.00" blendmode="normal" parent="bottombarl"
 	        smoothing="true" align="bottomleft" edge="bottomleft" 
			x="118" y="1" ondown="set(plugin[map].visible,false); set(visible, false);"
 	        onhover="showtext(Close Map,BUTTONSTYLEL);" scale="0.17" altscale="1.1"
			effect="glow(0xffffff,2,5,5);" jsborder="1px solid #FFFFFF" 
			/>
			
	<style name="info" url="../../core/images/info.png"
			effect="glow(0xff9933,2,5,5);"
			handcursor="true" alpha="1" 
			scale="0.8" altscale="1.5"
			visible="true" keep="true"
			align="bottomleft" edge="bottomleft" 
			x="185" y="1" zorder="11" parent="bottombarl"
			onhover="showtext(Show Information,BUTTONSTYLEL)" 
			onclick="set(plugin[infotext].visible,true); set(plugin[noinfo].visible, true);"
			onloaded=""/>						
			
			<plugin name="noinfo" url="../../core/images/no.png"
	        keep="true" visible="false" enabled="true" handcursor="true" 
 	        zorder="12" alpha="1.00" blendmode="normal"
 	        smoothing="true" align="bottomleft" edge="bottomleft" 
			x="185" y="2" ondown="set(plugin[infotext].visible,false); set(visible, false);"
 	        onhover="showtext(Close Info,BUTTONSTYLEL);" scale="0.16" altscale="0.65"
			effect="glow(0xffffff,2,5,5);" jsborder="1px solid #FFFFFF"
			onloaded=""  parent="bottombarl"
			/>													
			
	<plugin name="navinfo" url="../../core/images/navinfo.png"
	        keep="true" visible="true" enabled="true" handcursor="true" 
 	        zorder="5" alpha="1.00" blendmode="normal"
 	        smoothing="true" align="center" edge="center"
 	        ondown="action(hidenav);"  onhover="showtext(Click to Close);"
	        scale="1" altscale="1.1" effect="glow(0x000000,2,5,5);" jsborder="1px solid #000000"/>
			
				<action name="hidenav">
				tween(plugin[navinfo].scale,0);
				tween(plugin[navinfo].alpha,0); wait(.3);
				set(plugin[navinfo].visible,false);
				</action>
		
	<plugin name="swfaddress" preload="true"
			url="../../core/plugins/swfaddress.swf"
			mode="manual" devices="desktop"
			onurlchange="urlchange(%PATH);"
			onparamschange="paramschangeaction();"
			>
	</plugin>
	
	<plugin name="bitly"
		   url="../../core/plugins/bitly.swf"
		   apikey="R_36ae3e567b70b56f950ccbae99ec2869"
		   login="virtualnorthland"
		   onsuccess="trace(bit.ly OK)"
		   onerror="trace(bit.ly ERROR);"
		   keep="true"
		   />	
	
	<action name="setswf">
			set(plugin[swfaddress].path, %1);
			set(plugin[swfaddress].title, %2);
	</action>

	<action name="paramschangeaction">
		if (plugin[swfaddress].hasparams == true, parseparams(););
	</action>
	
	<action name="parseparams">
		if (plugin[swfaddress].param_ath !== null, copy(view.hlookat, plugin[swfaddress].param_ath));
		if (plugin[swfaddress].param_atv !== null, copy(view.vlookat, plugin[swfaddress].param_atv));
		if (plugin[swfaddress].param_fov !== null, copy(view.fov, plugin[swfaddress].param_fov));
		plugin[swfaddress].removeparams();
	</action>
	
	<action name="resetview">
		lookto(0, 0, 90);
	</action>
	
	<action name="prepareurl">
		getlinktothisview();
		plugin[bitly].shorten(plugin[swfaddress].fullurlescaped);
	</action>
	
	<action name="getlinktothisview">
		plugin[swfaddress].removeparams();
		plugin[swfaddress].setparams(ath=r(view.hlookat),atv=r(view.vlookat),fov=view.fov);
	</action>
	
	<action name="opentour">
		loadscene(get(scene[%1].name)); paramschangeaction();
	</action>
	
	<plugin name="share" url="../../core/images/ecard.png" alpha="1"
			handcursor="true"  parent="bottombarl"
			keep="true" visible="true" 
			onhover="showtext(Share this Tour with Friends,BUTTONSTYLEL)"
	        ondown="showecard();"
			effect="glow(0xff9933,2,5,5);"
			jsborder="1px solid #ff9933"
		 	zorder="15" scale="0.95"
			align="bottomleft" edge="bottomleft"
 	        x="155" y="3" 
			onover="" onout=""
			devices="desktop" 
			/>	
			
			<plugin name="noshare" url="../../core/images/no.png"
	        keep="true" visible="false" enabled="true" handcursor="true" 
 	        zorder="16" alpha="1.00" blendmode="normal"
 	        smoothing="true" align="bottomleft" edge="bottomleft" 
			x="155" y="2" ondown="hideecard()"
 	        onhover="showtext(Close Ecard,BUTTONSTYLEL);" scale="0.16" altscale="0.65"
			effect="glow(0xffffff,2,5,5);" jsborder="1px solid #FFFFFF"
			onloaded=""  parent="bottombarl"
			/>				
			
	<plugin name="ecard" url="../../core/plugins/ecard.swf"
			scriptpath="../../panos/duluth2/ecard/ecard.php"
			configpath="../../panos/duluth2/ecard/configuration2.xml"
			useimagelayer="true"
			closeinside="all"
			jpgcompress="80"
			formsize=""
			borderwidth="600"
			borderheight="400"
			usefinderresize="true"
			swfaddressname="swfaddress"
			useshares="true"
			shareurl="http://www.virtualnorthland.com"
			keep="true"
			bitlyname="bitly"
			devices="desktop"
			/> 
			
			<action name="showecard" devices="desktop">
					plugin[ecard].showecard();
					set(plugin[ecardbtn].url, ecard_btn2.png);
					set(plugin[ecardbtn].onhover, showtext(Close e-card));
					set(plugin[ecardbtn].ondown, hide());
					set(plugin[noshare].visible, true);
			</action>
	
			<action name="hideecard" devices="desktop">
					plugin[ecard].hideecard();
					set(plugin[ecardbtn].url, ecard_btn1.png);
					set(plugin[ecardbtn].onhover, showtext(Open e-card));
					set(plugin[ecardbtn].ondown, show());
					set(plugin[noshare].visible, false);
					
			</action>			

	<action name="create_thumbbar">
		set(thumbbar_images,      %1);
		set(thumbbar_align,       %2);
		set(thumbbar_orientation, %3);
		set(thumbbar_x,           %4);
		set(thumbbar_y,           %5);
		set(thumbbar_thumbwidth,  %6);
		set(thumbbar_thumbheight, %7);
		set(thumbbar_border,      %8);
		set(thumbbar_image_index, 0);

		set(thumbbar_xoffset, get(thumbbar_border) );
		set(thumbbar_yoffset, get(thumbbar_border) );
		set(thumbbar_xborder, 0);
		set(thumbbar_yborder, 0);

		if(thumbbar_orientation == h,
			add(thumbbar_yborder, thumbbar_y, thumbbar_thumbheight);
			add(thumbbar_yborder, thumbbar_yborder, thumbbar_border);
			add(thumbbar_yborder, thumbbar_yborder, thumbbar_border);
			add(thumbbar_yborder, thumbbar_yborder, thumbbar_border);
			mul(thumbbar_yborder, thumbbar_yborder, 2);
			mul(thumbbar_xborder, thumbbar_border, 2);
			if(%2 == left,   set(thumbbar_yoffset,0); );
			if(%2 == right,  set(thumbbar_yoffset,0); );
			if(%2 == top,    mul(thumbbar_xoffset,thumbbar_border,0.5); );
			if(%2 == bottom, mul(thumbbar_xoffset,thumbbar_border,0.5); );
			if(%2 == center, mul(thumbbar_xoffset,thumbbar_border,0.5); set(thumbbar_yoffset,0); mul(thumbbar_yborder,thumbbar_border,2); );
		  ,
			add(thumbbar_xborder, thumbbar_x, thumbbar_thumbwidth);
			add(thumbbar_xborder, thumbbar_xborder, thumbbar_border);
			add(thumbbar_xborder, thumbbar_xborder, thumbbar_border);
			add(thumbbar_xborder, thumbbar_xborder, thumbbar_border);
			mul(thumbbar_xborder, thumbbar_xborder, 2);
			mul(thumbbar_yborder, thumbbar_border, 2);
			if(%2 == left,   mul(thumbbar_yoffset,thumbbar_border,0.5); );
			if(%2 == right,  mul(thumbbar_yoffset,thumbbar_border,0.5); );
			if(%2 == top,    set(thumbbar_xoffset,0); );
			if(%2 == bottom, set(thumbbar_xoffset,0); );
			if(%2 == center, set(thumbbar_xoffset,0); mul(thumbbar_yoffset,thumbbar_border,0.5); mul(thumbbar_xborder,thumbbar_border,2); );
		  );

		addplugin(thumbbar);
		set(plugin[thumbbar].align, get(thumbbar_align));
		set(plugin[thumbbar].x, get(thumbbar_x));
		set(plugin[thumbbar].y, get(thumbbar_y));
		set(plugin[thumbbar].url, '../../core/images/white.jpg');
		set(plugin[thumbbar].alpha, 0.5);
		set(plugin[thumbbar].zorder, 1);
		set(plugin[thumbbar].enabled, false);
		set(plugin[thumbbar].keep, true);
		set(plugin[thumbbar].tag, photos);
	</action>


	<action name="thumbbar_addimage">
		txtadd(pname, 'thumbbar_image_', get(thumbbar_image_index));
		addplugin(get(pname));
		set(plugin[%pname].zorder, 2);
		set(plugin[%pname].url, %CURRENTXML%/%1);
		set(plugin[%pname].align,  get(thumbbar_align));
		set(plugin[%pname].width,  get(thumbbar_thumbwidth));
		set(plugin[%pname].height, get(thumbbar_thumbheight));
		set(plugin[%pname].keep, true);
		set(plugin[%pname].tag, photos);
		set(plugin[%pname].effect, glow(0xff9933,2,5,5));
		if (thumbbar_orientation == 'v',
			<!-- vertical thumbs -->
			add(plugin[%pname].x, thumbbar_x, thumbbar_xoffset);
			add(tmp, thumbbar_border, thumbbar_thumbheight);
			mul(tmp, tmp, thumbbar_image_index);
			add(tmp, tmp, thumbbar_yoffset);
			add(plugin[%pname].y, thumbbar_y, tmp );
			set(thumbbar_vcenter,false);
			if(thumbbar_align == left,   set(thumbbar_vcenter,true));
			if(thumbbar_align == center, set(thumbbar_vcenter,true));
			if(thumbbar_align == right,  set(thumbbar_vcenter,true));
			if(thumbbar_vcenter,
				add(tmp2, thumbbar_border, thumbbar_thumbheight);
				mul(tmp2, tmp2, thumbbar_images);
				mul(tmp2, tmp2, 0.5);
				sub(plugin[%pname].y, plugin[%pname].y, tmp2 );
				mul(tmp3, thumbbar_thumbheight, 0.5);
				add(plugin[%pname].y, plugin[%pname].y, tmp3 );
			  );
			sub(tmp, tmp, thumbbar_yoffset);
			add(tmp, tmp, thumbbar_border);
			add(tmp, tmp, thumbbar_thumbheight);
			add(tmp, tmp, thumbbar_border);
			set(plugin[thumbbar].height, get(tmp));
			mul(tmp, thumbbar_border, 2);
			add(plugin[thumbbar].width, tmp, thumbbar_thumbwidth);
		   ,
			<!-- horizontal thumbs -->
			add(plugin[%pname].y, thumbbar_y, thumbbar_yoffset);
			add(tmp, thumbbar_border, thumbbar_thumbwidth);
			mul(tmp, tmp, thumbbar_image_index);
			add(tmp, tmp, thumbbar_xoffset);
			add(plugin[%pname].x, thumbbar_x, tmp );
			set(thumbbar_hcenter,false);
			if(thumbbar_align == top,    set(thumbbar_hcenter,true));
			if(thumbbar_align == center, set(thumbbar_hcenter,true));
			if(thumbbar_align == bottom, set(thumbbar_hcenter,true));
			if(thumbbar_hcenter,
				add(tmp2, thumbbar_border, thumbbar_thumbwidth);
				mul(tmp2, tmp2, thumbbar_images);
				mul(tmp2, tmp2, 0.5);
				sub(plugin[%pname].x, plugin[%pname].x, tmp2 );
				mul(tmp3, thumbbar_thumbwidth, 0.5);
				add(plugin[%pname].x, plugin[%pname].x, tmp3 );
			  );
			sub(tmp, tmp, thumbbar_xoffset);
			add(tmp, tmp, thumbbar_border);
			add(tmp, tmp, thumbbar_thumbwidth);
			add(tmp, tmp, thumbbar_border);
			set(plugin[thumbbar].width, get(tmp));
			mul(tmp, thumbbar_border, 2);
			add(plugin[thumbbar].height, tmp, thumbbar_thumbheight);
		   );
		copy(plugin[%pname].thumbx, plugin[%pname].x);
		copy(plugin[%pname].thumby, plugin[%pname].y);
		IF(isdesktop, set(plugin[%pname].onclick, thumbbar_showimage(get(name))), set(plugin[%pname].ondown, thumbbar_showimage(get(name))));
		inc(thumbbar_image_index);
	</action>


	<action name="thumbbar_showimage">
		thumbbar_hide_allimages();
		set(plugin[%1].zorder, 3);
		push(plugin[%1].width);
		push(plugin[%1].height);
		plugin[%1].resetsize();
		copy(plugin[%1].originalwidth, plugin[%1].width);
		copy(plugin[%1].originalheight, plugin[%1].height);
		pop(plugin[%1].height);
		pop(plugin[%1].width);
		set(imgwidth, get(plugin[%1].originalwidth));
		set(imgheight, get(plugin[%1].originalheight));
		set(maxwidth, get(stagewidth));
		sub(maxwidth, maxwidth, thumbbar_xborder);
		set(maxheight, get(stageheight));
		sub(maxheight, maxheight, thumbbar_yborder);
		if(imgwidth GT maxwidth,
		   mul(imgheight, imgheight, maxwidth);
		   div(imgheight, imgheight, imgwidth);
		   copy(imgwidth, maxwidth);
		  );
		if(imgheight GT maxheight,
		   mul(imgwidth, imgwidth, maxheight);
		   div(imgwidth, imgwidth, imgheight);
		   copy(imgheight, maxheight);
		  );
		tween(plugin[%1].width, get(imgwidth));
		tween(plugin[%1].height, get(imgheight));
		mul(tmp, thumbbar_border, 3);
		add(tmp, tmp, thumbbar_thumbwidth);
		plugin[%1].changeorigin(center,center);
		tween(plugin[%1].x, 0);
		tween(plugin[%1].y, 0);
		set(plugin[%1].onclick, thumbbar_hideimage(%1) );
	</action>


	<action name="thumbbar_hideimage">
		plugin[%1].changeorigin(get(thumbbar_align),get(thumbbar_align));
		set(plugin[%1].zorder, 2);
		tween(plugin[%1].width, get(thumbbar_thumbwidth));
		tween(plugin[%1].height, get(thumbbar_thumbheight));
		tween(plugin[%1].x, get(plugin[%1].thumbx));
		tween(plugin[%1].y, get(plugin[%1].thumby));
		set(plugin[%1].onclick, thumbbar_showimage(%1) );
	</action>


	<action name="thumbbar_hide_allimages">
		if(%1 != NEXT, set(i,0));
		txtadd(pname, 'thumbbar_image_', get(i));
		thumbbar_hideimage(get(pname));
		inc(i);
		if(i LT thumbbar_images, thumbbar_hide_allimages(NEXT));
	</action>
	
<action name="removing_plugins">
		sub(i,plugin.count,1);
		if(i GE 0,removing_loop_all_plugins(get(i),%1,%2));
</action>

<action name="removing_loop_all_plugins">
		if(%2 == null,
			removeplugin(%1);
			,
			if(plugin[%1].%2 == %3,
				removeplugin(%1);
				);
			);
		dec(i);
		if(i GE 0, removing_loop_all_plugins(get(i),%2,%3) );
</action>	

					
	<!-- right-click context menu to change the viewing settings -->
	<contextmenu>
		<item caption="KRPANO" />
		<item caption="FULLSCREEN" />
		<item caption="normal view"        onclick="view_normal();"        separator="true" />
		<item caption="fisheye view"       onclick="view_fisheye();"       />
		<item caption="architectural view" onclick="view_architectural();" />
		<item caption="stereographic view" onclick="view_stereographic();" />
		<item caption="pannini view"       onclick="view_pannini();"       />
		<item caption="little planet view" onclick="view_littleplanet();"  />
	</contextmenu>
	
	<!-- hide/show user interface actions -->
	<action name="hideui">
		set(plugin.enabled,false);
		set(hotspot.enabled,false);
		tween(plugin.alpha, 0.0, 0.5, default, set(plugin.visible,false));
		tween(hotspot.alpha, 0.0, 0.5, default, set(hotspot.visible,false));
		delayedcall(0.5, showtext('...press SPACE to show the UI Elements again...', INFOTEXT));
	</action>
	
	<action name="showui">
		set(plugin.enabled,true);
		set(hotspot.enabled,true);
		set(plugin.visible,true);
		set(hotspot.visible,true);   
		tween(plugin.alpha, 1.0);
		tween(hotspot.alpha, 1.0);
	</action>

	<!-- actions to change the mouse cursor -->
	<action name="dragcursor">
		set(plugin[dragmode].visible, false);
		set(plugin[movemode].visible, true);
		set(control.mousetype, drag2D);
		set(cursors.url, ../../core/images/drag-cursors.png);
		set(cursors.type, drag);
		set(cursors.move,  2|0|30|32);
		set(cursors.drag, 37|0|30|32);
	</action>

	<action name="qtvrcursor">
		set(plugin[dragmode].visible, true);
		set(plugin[movemode].visible, false);
		set(control.mousetype, moveto);
		set(cursors.url, null);
		set(cursors.type, 8way);
		set(cursors.move,       0|0|16|16);
		set(cursors.drag,      16|0|16|16);
		set(cursors.arrow_u,   32|0|16|16);
		set(cursors.arrow_d,   48|0|16|16);
		set(cursors.arrow_l,   64|0|16|16); 
		set(cursors.arrow_r,   80|0|16|16);
		set(cursors.arrow_lu,  96|0|16|16);
		set(cursors.arrow_ru, 112|0|16|16);
		set(cursors.arrow_rd, 128|0|16|16);
		set(cursors.arrow_ld, 144|0|16|16);
	</action>

	<!-- actions for view changing -->
	<action name="view_normal">
		tween(view.fovmax,       150.0, distance(179, 1.00), easeoutquad);
		tween(view.architectural,  0.0, distance(1.0, 0.45), easeoutquad);
		tween(view.fisheye,        0.0, distance(1.0, 0.45), easeoutquad, set(view.stereographic,false); set(view.pannini,false); set(display.flash10,on); );
	</action>

	<action name="view_fisheye">
		set(display.flash10,off);
		tween(view.architectural, 0.0, distance(1.0, 0.30), easeoutquad);
		tween(view.fisheye,       0.0 ,distance(1.0, 0.30), easeoutquad, set(view.stereographic,false); set(view.pannini,false); set(view.fovmax,179); tween(view.fisheye, 0.35, distance(1.0,1.25)); );
	</action>

	<action name="view_architectural">
		tween(view.fovmax,       150.0, distance(179, 1.00), easeoutquad);
		tween(view.architectural,  1.0, distance(1.0, 0.45), easeoutquad);
		tween(view.fisheye,        0.0, distance(1.0, 0.45), easeoutquad, set(view.stereographic,false);set(view.pannini,false);set(display.flash10,on); );
	</action>

	<action name="view_stereographic">
		set(display.flash10,off);
		tween(view.architectural, 0.0, 0.25);
		set(backtonormalfirst,false);
		if(view.pannini       == true,  set(backtonormalfirst,true) );
		if(view.stereographic == false, set(backtonormalfirst,true) );
		if(backtonormalfirst, tween(view.fisheye, 0.0 ,distance(1.0, 0.25), easeoutquad, WAIT); );
		set(view.pannini, false);
		set(view.stereographic, true);
		set(view.fovmax, 150);
		tween(view.fisheye, 1.0, distance(1.0, 0.75), easeoutquad);
	</action>

	<action name="view_pannini">
		set(display.flash10,off);
		tween(view.architectural, 0.0, 0.25);
		set(backtonormalfirst,false);
		if(view.pannini       == false, set(backtonormalfirst,true) );
		if(view.stereographic == false, set(backtonormalfirst,true) );
		if(backtonormalfirst, tween(view.fisheye, 0.0 ,distance(1.0, 0.25), easeoutquad, WAIT); );
		set(view.pannini, true);
		set(view.stereographic, true);
		set(view.fovmax, 150);
		tween(view.fisheye, 1.0, distance(1.0, 0.75), easeoutquad);
	</action>

	<action name="view_littleplanet">
		set(display.flash10,off);
		tween(view.architectural, 0.0, 0.25);
		tween(view.vlookat,  90, distance(179, 1.50), easeoutquad);
		set(backtonormalfirst,false);
		if(view.pannini       == true,  set(backtonormalfirst,true) );
		if(view.stereographic == false, set(backtonormalfirst,true) );
		if(backtonormalfirst, tween(view.fisheye, 0.0 ,distance(1.0, 0.25), easeoutquad, WAIT); );
		set(view.pannini, false);
		set(view.stereographic, true);
		set(view.fovmax, 150);
		tween(view.fisheye, 1.0, distance(1.0, 0.75), easeoutquad);
		tween(view.fov,     150, distance(179, 0.75), easeoutquad);
	</action>
	
<plugin name="cb" keep="true" devices="ipad|iphone|andriod"
        url="plugins/combobox.swf"
        alturl="plugins/combobox.js"
        align="topright" x="0" y="0"
        onloaded="fillbox();" zorder="15"
        />
		
<action name="fillbox"> 
		for(set(i,0), i LT scene.count, inc(i),
  		set(scenename, get(scene[get(i)].name));
		set(titlename, get(scene[get(i)].title));
  		txtadd(itemaction, 'loadscene(', get(scenename),',null,MERGE,BLEND(1));');
  		plugin[cb].additem(get(titlename), get(itemaction));
		);
</action>

 
<plugin name="map" url="../../core/plugins/googlemaps.swf" handcursor="false"
			align="bottomleft"
			x="10"
			y="45"
			width="205"
			height="215"
			zorder="0"
			visible="true"
			key="ABQIAAAAAOUDvWwlS_Wxbh9Jgbx1fBR5aKurEJ6TSpp_I-EAQPQB7zYUUxSK_8Sk1pOF8OJ8m4zZyG4T5QEXvQ"

			lat="46.80724"
			lng="-92.148525"
			zoom="15"

			maptype="normal"

			dragging="true"
			scrollwheel="true"
			continuouszoom="false"
			keyboard="false"
			crosshairs="false"
			effect="glow(0x000000,2,5,5);"
			onmapready=""
			onmapmoved=""
			onmapzoomed=""
			keep="true"
			
	>

		<positioncontrol visible="true" anchor="topleft"  x="2" y="2" />
		<zoomcontrol     visible="true" anchor="topright" x="2" y="2" hasscrolltrack="true" />

	<spot name="s1" lat="46.80724" lng="-92.148525" 
		      onhover="showtext(Get directions to the Shepherd of the Hills Church);" 
		      onclick="openurl(http://vn-links.com/pluGH5);" />			  


</plugin> 	

														
	
</krpano>

