<krpano version="1.0.8.14" onstart="startup();">
	<!-- vtour.xml template krpano tools version 1.0.8.14 -->

	<!-- <include url="skin/androidskin.xml" devices="android+flash" /> -->
	<include url="skin/defaultskin.xml" />
	<include url="skin/map.xml" />
	<include url="skin/timeline.xml" />
	<include url="skin/info.xml" />
	
	<action name="startup">	
		loadscene(get(scene[0].name), null, MERGE);
		plugin[info].onclick();
	</action>


	<!-- disable the default progress bar -->
	<progress showload="none" showwait="none" />


	<!-- disable the default progress bar -->
	<progress showwait="looping()" showload="bar(midbottom,30%,5,0,15%,shaded,0x505154,0xAACA17,0xAACA17,0x505154,0,0xFFFFFF,0)"/>

	<plugin name="cacheimage1" url="%FIRSTXML%/images/IMG_0966.jpg" visible="false" preload="true"/>
	<plugin name="cacheimage2" url="%FIRSTXML%/images/IMG_0958.jpg" visible="false" preload="true"/>
	<plugin name="cacheimage3" url="%FIRSTXML%/images/IMG_0957.jpg" visible="false" preload="true"/>
	<plugin name="cacheimage4" url="%FIRSTXML%/images/IMG_0843.jpg" visible="false" preload="true"/>
	<plugin name="cacheimage5" url="%FIRSTXML%/images/IMG_0844.jpg" visible="false" preload="true"/>
	<plugin name="cacheimage6" url="%FIRSTXML%/images/IMG_0852.jpg" visible="false" preload="true"/>
			
	<!-- hotspot styles (for Flash and HTML5) -->
	<style name="hotspot_rundherum"
	       url="%FIRSTXML%/hotspots/circle_hs.png"
		   scale="1"
		   onloaded="if(isdesktop, 
						preparehotspot(); 
						hotspot_animate_rundherum_cw();
						, 
						makemobilehs();
						);"
	       />
	
	<hotspot name="hs_over" keep="true" url="%FIRSTXML%/hotspots/circle_over.png" onhover="showtext(Standort laden., buttonstyle);" alpha="0" preload="true" visible="false"/>
	<hotspot name="hs_over_left" keep="true" url="%FIRSTXML%/hotspots/circle_over_left.png" onhover="showtext(Standort laden., buttonstyle);" alpha="0" preload="true" visible="false"/>
	<hotspot name="hs_over_right" keep="true" url="%FIRSTXML%/hotspots/circle_over_right.png" onhover="showtext(Standort laden., buttonstyle);" alpha="0" preload="true" visible="false"/>
	<hotspot name="hs_over_note" keep="true" url="%FIRSTXML%/hotspots/circle_over_note.png" onhover="showtext(Musik Abspielen oder Pausieren., buttonstyle);" alpha="0" preload="true" visible="false"/>
	<hotspot name="hs_over_lupe" keep="true" url="%FIRSTXML%/hotspots/circle_over_lupe.png" onhover="showtext(Detailansicht &#246;ffnen., buttonstyle);" alpha="0" preload="true" visible="false"/>

	<action name="makemobilehs">	
		//copy(url, hotspot[get(type)].url);
		set(zorder, 1);
		set(onover, "");
		set(onout, "");
	</action>
	
	<action name="hotspot_animate">
		inc(frame,1,get(frames),0);
		mul(ypos,frame,frameheight);
		txtadd(crop,'0|',get(ypos),'|',get(framewidth),'|',get(frameheight));
		delayedcall(0.03, hotspot_animate() );
	</action>
	
	<action name="preparehotspot">
		txtadd(hsname, get(name), '_in');
		addhotspot(get(hsname));
		set(hotspot[get(hsname)].url, %FIRSTXML%/hotspots/circle_hs_in.png);
		set(hotspot[get(hsname)].scale, 0.625);
		set(hotspot[get(hsname)].zorder, -100);
		set(hotspot[get(hsname)].ath, get(ath));
		set(hotspot[get(hsname)].atv, get(atv));
		set(hotspot[get(hsname)].onloaded, hotspot_animate_rundherum_ccw(););
		set(hotspot[get(hsname)].onclick, get(onclick));
	</action>
	
	<action name="hotspot_animate_rundherum_cw">
		set(rotate, 0); 
		tween(rotate, 360, 10, linear, hotspot_animate_rundherum_cw(););
	</action>
	
	<action name="hotspot_animate_rundherum_ccw">
		set(rotate, 360); 
		tween(rotate, 0, 14, linear, hotspot_animate_rundherum_ccw(););
	</action>
	
	<scene name="scene_pano001a" title="pano001a" onstart="start_scene();" thumburl="panos/pano001.tiles/thumb.jpg">
	
		<action name="start_scene">
			start_sounds();
			activatespot(mp1, 15.65); 
			showtext(Magdeburger Dom aus westlicher Sicht am Tag, middlestyle);
		</action>
		
		<action name="start_sounds">
			playsound(s1, sounds/scene001_glocken.mp3,0);
			tween(soundinterface.volume,get(volume),1);
		</action>

		<view hlookat="-15" vlookat="0" fovtype="MFOV" fov="90" maxpixelzoom="2.0" fovmin="60" fovmax="120" limitview="auto" />

		<preview url="panos/pano001.tiles/preview.jpg" />

		<image type="CUBE" multires="true" tilesize="729" progressive="false">
			<level tiledimagewidth="4737" tiledimageheight="4737">
				<cube url="panos/pano001.tiles/l3_%s_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="2369" tiledimageheight="2369">
				<cube url="panos/pano001.tiles/l2_%s_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="1185" tiledimageheight="1185">
				<cube url="panos/pano001.tiles/l1_%s_%0v%0h.jpg" />
			</level>
			<mobile>
				<cube url="panos/pano001.tiles/mobile_%s.jpg" />
			</mobile>
			<tablet>
				<cube url="panos/pano001.tiles/tablet_%s.jpg" />
			</tablet>
		</image>

		<hotspot name="spot1_1" style="hotspot_rundherum" 
		         ath="-15.5613" atv="  2.5229"
		         zoom="false"
				 type="hs_over"
		         onclick="lookto(get(ath),0, 60, smooth(300,50,40)); loadpanointime(scene_pano002, 153);"
				 onover="hotspotover(get(type), get(name));"
				 onout="hotspotout(get(type), get(name));"
		         />
	</scene>


	<scene name="scene_pano001b" title="pano001b" onstart="start_scene();" thumburl="panos/pano001b.tiles/thumb.jpg">
		
		<action name="start_scene">
			start_sounds();
			activatespot(mp1, 15.65); 
			showtext(Magdeburger Dom aus westlicher Sicht bei Nacht, middlestyle);
		</action>
		
		<action name="start_sounds">
			playsound(s2, sounds/scene001b.mp3,0);
			tween(soundinterface.volume,get(volume),1);
		</action>
	
		<view hlookat="-15" vlookat="0" fovtype="MFOV" fov="90" maxpixelzoom="2.0" fovmin="60" fovmax="120" limitview="auto" />

		<preview url="panos/pano001b.tiles/preview.jpg" />

		<image type="CUBE" multires="true" tilesize="729" progressive="false">
			<level tiledimagewidth="4738" tiledimageheight="4738">
				<cube url="panos/pano001b.tiles/l3_%s_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="2369" tiledimageheight="2369">
				<cube url="panos/pano001b.tiles/l2_%s_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="1185" tiledimageheight="1185">
				<cube url="panos/pano001b.tiles/l1_%s_%0v%0h.jpg" />
			</level>
			<mobile>
				<cube url="panos/pano001b.tiles/mobile_%s.jpg" />
			</mobile>
			<tablet>
				<cube url="panos/pano001b.tiles/tablet_%s.jpg" />
			</tablet>
		</image>

		<hotspot name="spot1_1" style="hotspot_rundherum" 
		         ath="-15.5613" atv="  2.5229"
		         zoom="false"
				 type="hs_over"
		         onclick="lookto(get(ath),0, 60, smooth(300,50,40)); loadpanointime(scene_pano002, 153);"
				 onover="hotspotover(get(type), get(name));"
				 onout="hotspotout(get(type), get(name));"
		         />

	</scene>


	<scene name="scene_pano002a" title="pano002a" onstart="start_scene();" thumburl="panos/pano002.tiles/thumb.jpg">

		<action name="start_scene">
			start_sounds();
			activatespot(mp2, 207.00); 
			showtext(Magdeburger Dom aus zentraler Sicht am Tag, middlestyle);
		</action>
		
		<action name="start_sounds">
				playsound(s3, sounds/scene002.mp3,0);
				tween(soundinterface.volume,get(volume),1);
		</action>
	
		<view hlookat="152.86" vlookat="0" fovtype="MFOV" fov="90" maxpixelzoom="2.0" fovmin="60" fovmax="120" limitview="auto" />

		<preview url="panos/pano002.tiles/preview.jpg" />

		<image type="CUBE" multires="true" tilesize="592" progressive="false">
			<level tiledimagewidth="4736" tiledimageheight="4736">
				<cube url="panos/pano002.tiles/l4_%s_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="2368" tiledimageheight="2368">
				<cube url="panos/pano002.tiles/l3_%s_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="1184" tiledimageheight="1184">
				<cube url="panos/pano002.tiles/l2_%s_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="592" tiledimageheight="592">
				<cube url="panos/pano002.tiles/l1_%s_%0v%0h.jpg" />
			</level>
			<mobile>
				<cube url="panos/pano002.tiles/mobile_%s.jpg" />
			</mobile>
			<tablet>
				<cube url="panos/pano002.tiles/tablet_%s.jpg" />
			</tablet>
		</image>

		<hotspot name="spot1_2" style="hotspot_rundherum" 
		         ath="196.46138269815108" atv="-1.333467104366526"
		         zoom="false"
				 type="hs_over_right"
		         onclick="lookto(get(ath),0, 60, smooth(300,50,40)); loadpanointime(scene_pano003, 60.82, -21.52);"
				 onover="hotspotover(get(type), get(name));"
				 onout="hotspotout(get(type), get(name));"
		         />
				 
		<hotspot name="spot2_2" style="hotspot_rundherum" 
		         ath="-27.4942" atv="  3.0001"
		         zoom="false"
				 type="hs_over"
		         onclick="lookto(get(ath),0, 60, smooth(300,50,40)); loadpanointime(scene_pano001, -195);"
				 onover="hotspotover(get(type), get(name));"
				 onout="hotspotout(get(type), get(name));"
		         />
				 
		<hotspot name="spot3_2" style="hotspot_rundherum" 
		         ath="107.1029" atv="-19.0118"
		         zoom="false"
				 type="hs_over_note"
		         onclick="if(ishtml5, 
								playsound(orgel, ./sounds/orgel.mp3, 0);
							,
								playsound3DHS(orgel, ./sounds/orgel.mp3, spot3_2, 360, get(volume), 1, 
									resetsound(spot3_2, orgel, ./sounds/orgel.mp3, 360); 
									); 
								set(onclick, pausesoundtoggle(orgel); );
							);"
				 onover="hotspotover(get(type), get(name));"
				 onout="hotspotout(get(type), get(name));"
		         />
				 
		<hotspot name="spot4_2" style="hotspot_rundherum" 
		         ath="-168.0440" atv=" -7.2183"
		         zoom="false"
				 type="hs_over_lupe"
				 pic="IMG_0966"
		         onclick="showpic();"
				 onover="hotspotover(get(type), get(name));"
				 onout="hotspotout(get(type), get(name));"
		         />
		
		<hotspot name="spot5_2" style="hotspot_rundherum" 
		         ath="177.6435" atv=" -8.8726"
		         zoom="false"
				 type="hs_over_lupe"
				 pic="IMG_0958"
		         onclick="showpic();"
				 onover="hotspotover(get(type), get(name));"
				 onout="hotspotout(get(type), get(name));"
		         />
				 
		<hotspot name="spot6_2" style="hotspot_rundherum" 
		         ath="177.8306" atv="-17.3495"
		         zoom="false"
				 type="hs_over_lupe"
				 pic="IMG_0957"
		         onclick="showpic();"
				 onover="hotspotover(get(type), get(name));"
				 onout="hotspotout(get(type), get(name));"
		         />
	</scene>


	<scene name="scene_pano002b" title="pano002b" onstart="start_scene();" thumburl="panos/pano002b.tiles/thumb.jpg">

		<action name="start_scene">
			start_sounds();
			activatespot(mp2, 207.00); 
			showtext(Magdeburger Dom aus zentraler Sicht bei Nacht, middlestyle);
		</action>
		
		<action name="start_sounds">
				playsound(s4, sounds/scene002b.mp3,0);
				tween(soundinterface.volume,get(volume),1);
		</action>
	
		<view hlookat="152.86" vlookat="0" fovtype="MFOV" fov="90" maxpixelzoom="2.0" fovmin="60" fovmax="120" limitview="auto" />

		<preview url="panos/pano002b.tiles/preview.jpg" />

		<image type="CUBE" multires="true" tilesize="677" progressive="false">
			<level tiledimagewidth="4739" tiledimageheight="4739">
				<cube url="panos/pano002b.tiles/l3_%s_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="2370" tiledimageheight="2370">
				<cube url="panos/pano002b.tiles/l2_%s_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="1185" tiledimageheight="1185">
				<cube url="panos/pano002b.tiles/l1_%s_%0v%0h.jpg" />
			</level>
			<mobile>
				<cube url="panos/pano002b.tiles/mobile_%s.jpg" />
			</mobile>
			<tablet>
				<cube url="panos/pano002b.tiles/tablet_%s.jpg" />
			</tablet>
		</image>

		<hotspot name="spot1_2" style="hotspot_rundherum" 
		         ath="-27.4942" atv="  3.0001"
		         zoom="false"
				 type="hs_over"
		         onclick="lookto(get(ath),0, 60, smooth(300,50,40)); loadpanointime(scene_pano001, -195);"
				 onover="hotspotover(get(type), get(name));"
				 onout="hotspotout(get(type), get(name));"
		         />
	</scene>


	<scene name="scene_pano003a" title="pano003a" onstart="start_scene();" thumburl="panos/pano003.tiles/thumb.jpg">

		<action name="start_scene">
			start_sounds();
			activatespot(mp3, 30.86); 
			showtext(Portal des Dom-Kreuzgangs, middlestyle);
		</action>
		
		<action name="start_sounds">
			playsound(s5, sounds/scene003.mp3,0);
			tween(soundinterface.volume,get(volume),1);
		</action>
	
		<view hlookat="60.82" vlookat="-21.52" fovtype="MFOV" fov="90" maxpixelzoom="2.0" fovmin="60" fovmax="120" limitview="auto" />

		<preview url="panos/pano003.tiles/preview.jpg" />

		<image type="CUBE" multires="true" tilesize="677" progressive="false">
			<level tiledimagewidth="4739" tiledimageheight="4739">
				<cube url="panos/pano003.tiles/l3_%s_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="2370" tiledimageheight="2370">
				<cube url="panos/pano003.tiles/l2_%s_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="1185" tiledimageheight="1185">
				<cube url="panos/pano003.tiles/l1_%s_%0v%0h.jpg" />
			</level>
			<mobile>
				<cube url="panos/pano003.tiles/mobile_%s.jpg" />
			</mobile>
			<tablet>
				<cube url="panos/pano003.tiles/tablet_%s.jpg" />
			</tablet>
		</image>

		<hotspot name="spot1_3" style="hotspot_rundherum" 
		         ath="149.8274" atv="  3.1294"
		         zoom="false"
				 type="hs_over"
		         onclick="lookto(get(ath),0, 60, smooth(300,50,40)); loadpanointime(scene_pano005, 105);"
				 onover="hotspotover(get(type), get(name));"
				 onout="hotspotout(get(type), get(name));"
		         />
				 
		<hotspot name="spot2_3" style="hotspot_rundherum" 
		         ath="130.81479060146924" atv="-5.044230164985931"
		         zoom="false"
				 type="hs_over_left"
		         onclick="lookto(get(ath),0, 60, smooth(300,50,40)); loadpanointime(scene_pano004);"
				 onover="hotspotover(get(type), get(name));"
				 onout="hotspotout(get(type), get(name));"
		         />
				 
		<hotspot name="spot3_3" style="hotspot_rundherum" 
		         ath="251.27209566545145" atv="-6.135944415076346"
		         zoom="false"
				 type="hs_over_left"
		         onclick="lookto(get(ath),0, 60, smooth(300,50,40)); loadpanointime(scene_pano002, -27);"
				 onover="hotspotover(get(type), get(name));"
				 onout="hotspotout(get(type), get(name));"
		         />
	</scene>


	<scene name="scene_pano004a" title="pano004a" onstart="start_scene();" thumburl="panos/pano004.tiles/thumb.jpg">

		<action name="start_scene">
			start_sounds();
			activatespot(mp4, -18.29); 
			showtext(Innenhof des Dom-Kreuzgangs, middlestyle);
		</action>
		
		<action name="start_sounds">
			playsound(s6, sounds/scene004.mp3,0);
			tween(soundinterface.volume,get(volume),1);
		</action>
	
		<view hlookat="-112.91" vlookat="-34.58" fovtype="MFOV" fov="90" maxpixelzoom="2.0" fovmin="60" fovmax="120" limitview="auto" />

		<preview url="panos/pano004.tiles/preview.jpg" />

		<image type="CUBE" multires="true" tilesize="729" progressive="false">
			<level tiledimagewidth="4741" tiledimageheight="4741">
				<cube url="panos/pano004.tiles/l3_%s_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="2371" tiledimageheight="2371">
				<cube url="panos/pano004.tiles/l2_%s_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="1186" tiledimageheight="1186">
				<cube url="panos/pano004.tiles/l1_%s_%0v%0h.jpg" />
			</level>
			<mobile>
				<cube url="panos/pano004.tiles/mobile_%s.jpg" />
			</mobile>
			<tablet>
				<cube url="panos/pano004.tiles/tablet_%s.jpg" />
			</tablet>
		</image>

		<hotspot name="spot1_4" style="hotspot_rundherum" 
		         ath="-85.6868" atv=" -1.4594"
		         zoom="false"
				 type="hs_over_right"
		         onclick="lookto(get(ath),0, 60, smooth(300,50,40)); loadpanointime(scene_pano003, 60.82, -21.52);"
				 onover="hotspotover(get(type), get(name));"
				 onout="hotspotout(get(type), get(name));"
		         />
				 
		<hotspot name="spot2_4" style="hotspot_rundherum" 
		         ath="-161.9286" atv=" -1.2095"
		         zoom="false"
				 type="hs_over_right"
		         onclick="lookto(get(ath),0, 60, smooth(300,50,40)); loadpanointime(scene_pano005, 285);"
				 onover="hotspotover(get(type), get(name));"
				 onout="hotspotout(get(type), get(name));"
		         />
				 
		<hotspot name="spot3_4" style="hotspot_rundherum" 
		         ath=" 80.1325" atv="  7.8535"
		         zoom="false"
				 type="hs_over_lupe"
				 pic="IMG_0843"
		         onclick="showpic();"
				 onover="hotspotover(get(type), get(name));"
				 onout="hotspotout(get(type), get(name));"
		         />
		
		<hotspot name="spot4_4" style="hotspot_rundherum" 
		         ath="43.87624476049542" atv="-10.189757452355428"
		         zoom="false"
				 type="hs_over_lupe"
				 pic="IMG_0844"
		         onclick="showpic();"
				 onover="hotspotover(get(type), get(name));"
				 onout="hotspotout(get(type), get(name));"
		         />
		
		<hotspot name="spot5_4" style="hotspot_rundherum" 
		         ath="-132.3000" atv="  2.3000"
		         zoom="false"
				 type="hs_over_lupe"
				 pic="IMG_0852"
		         onclick="showpic();"
				 onover="hotspotover(get(type), get(name));"
				 onout="hotspotout(get(type), get(name));"
		         />
				 
		<hotspot name="spot6_4" style="hotspot_rundherum" 
		         ath="-145.6583" atv="-48.0398"
		         zoom="false"
				 type="hs_over_note"
		         onclick="if(ishtml5, 
								playsound(orgel, ./sounds/orgel.mp3, 0);
							,
								playsound3DHS(glocken, ./sounds/glocken.mp3, spot6_4, 360, get(volume), 1, 
									resetsound(spot6_4, glocken, ./sounds/glocken.mp3, 360); ); 
								set(onclick, pausesoundtoggle(glocken); );
							);"
				 onover="hotspotover(get(type), get(name));"
				 onout="hotspotout(get(type), get(name));"
		         />

	</scene>


	<scene name="scene_pano005a" title="pano005a" onstart="start_scene();" thumburl="panos/pano005.tiles/thumb.jpg">

		<action name="start_scene">
			start_sounds();
			activatespot(mp5, 40.21); 
			showtext(nordwestliche Ecke des Dom-Kreuzgangs, middlestyle);
		</action>
		
		<action name="start_sounds">
			playsound(s7, sounds/scene005.mp3,0);
			tween(soundinterface.volume,get(volume),1);
		</action>
	
		<view hlookat="0" vlookat="0" fovtype="MFOV" fov="90" maxpixelzoom="2.0" fovmin="60" fovmax="120" limitview="auto" />

		<preview url="panos/pano005.tiles/preview.jpg" />

		<image type="CUBE" multires="true" tilesize="807" progressive="false">
			<level tiledimagewidth="5247" tiledimageheight="5247">
				<cube url="panos/pano005.tiles/l3_%s_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="2624" tiledimageheight="2624">
				<cube url="panos/pano005.tiles/l2_%s_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="1312" tiledimageheight="1312">
				<cube url="panos/pano005.tiles/l1_%s_%0v%0h.jpg" />
			</level>
			<mobile>
				<cube url="panos/pano005.tiles/mobile_%s.jpg" />
			</mobile>
			<tablet>
				<cube url="panos/pano005.tiles/tablet_%s.jpg" />
			</tablet>
		</image>

		<hotspot name="spot1_5" style="hotspot_rundherum" 
		         ath="54.19384537723619" atv="2.1657069459261966"
		         zoom="false"
				 type="hs_over_left"
		         onclick="lookto(get(ath),0, 60, smooth(300,50,40)); loadpanointime(scene_pano004);"
				 onover="hotspotover(get(type), get(name));"
				 onout="hotspotout(get(type), get(name));"
		         />
				 
		<hotspot name="spot2_5" style="hotspot_rundherum" 
		         ath="-40.316752468743886" atv="-1.4933566992360494"
		         zoom="false"
				 type="hs_over"
		         onclick="lookto(get(ath),0, 60, smooth(300,50,40)); loadpanointime(scene_pano003, 60.82, -21.52);"
				 onover="hotspotover(get(type), get(name));"
				 onout="hotspotout(get(type), get(name));"
		         />
	</scene>

	<action name="hotspotover">		
		set(hotspot[%1].alpha, 0);
		set(hotspot[%1].visible, true);	
		set(hotspot[%1].ath, get(hotspot[%2].ath));
		set(hotspot[%1].atv, get(hotspot[%2].atv));
		set(hotspot[%1].zorder, -100);

		set(hotspot[%2].onhover, hotspot[%1].onhover);
		
		tween(hotspot[%1].alpha, 1, .4, linear);
		tween(hotspot[%2].alpha, 0, .3, linear);
		tween(hotspot[%2_in].alpha, 0, .3, linear);
	</action>
	
	<action name="hotspotout">
		set(hotspot[%1].visible, false);
		
		set(hotspot[%2].onhover, "");
				
		tween(hotspot[%2].alpha, 1, .2, linear);
		tween(hotspot[%2_in].alpha, 1, .2, linear);	
	</action>
	
	<action name="resetsound">
		set(hotspot[%1].onclick, playsound3DHS(%2, %3, %1, %4, get(volume), 1, resetsound(%1, %2, %3, %4); ); set(onclick, pausesoundtoggle(%2); ); );
	</action>
	
	<action name="calc_flyout_size">
		div(screen_sideaspect, stagewidth, stageheight);
		div(hotspot_sideaspect, hotspot[%1].width, hotspot[%1].height);
		
		if(screen_sideaspect LT hotspot_sideaspect,
			<!-- align at screen width -->
			div(hotspot[%1].width,stagewidth,stageheight);
			mul(hotspot[%1].width,70);
			txtadd(hotspot[%1].width,'%');
			set(hotspot[%1].height,prop);
		  ,
		  <!-- align at screen height -->
			set(hotspot[%1].width,prop);
			set(hotspot[%1].height,70%);
		  );
		  
		  if(hotspot[%1].url == '%FIRSTXML%/skin/aufsteller.png', set(hotspot[%1].height,150%); );
	</action>

	<!-- fly in a hotspot = show hotspot fixed at screen -->
	<action name="flyin">
		ifnot( openflyingpic == null, flyout(get(openflyingpic)) );
	
		if(hotspot[%1].flying == 0.0, hotspot[%1].resetsize(); calc_flyout_size(%1); );
		if(hotspot[%1].oldscale === null, copy(hotspot[%1].oldscale, hotspot[%1].scale) );
		if(hotspot[%1].oldrx === null, copy(hotspot[%1].oldrx, hotspot[%1].rx) );
		if(hotspot[%1].oldry === null, copy(hotspot[%1].oldry, hotspot[%1].ry) );
		if(hotspot[%1].oldrz === null, copy(hotspot[%1].oldrz, hotspot[%1].rz) );
		set(hotspot[%1].enabled,true);
		set(hotspot[%1].visible,true);
		tween(hotspot[%1].alpha,  1.0);
		tween(hotspot[%1].flying, 1.0);
		
		if(get(hotspot[%1].bcanvas),
			tween(hotspot[%1].scale,  2.15);,
			tween(hotspot[%1].scale,  1.0);
			);
		
		
		tween(hotspot[%1].rx, 0.0);
		tween(hotspot[%1].ry, 0.0);
		tween(hotspot[%1].rz, 0.0);
		
		set(openflyingpic, %1);
	</action>

	<!-- fly the hotspot out/back -->
	<action name="flyout">
		if(get(hotspot[%1].bcanvas),
			tween(plugin[get(hotspot[%1].child2)].alpha, 0.0, .5, easeOutExpo, set(plugin[get(hotspot[%1].child2)].visible, false););
			);
	
		set(hotspot[%1].enabled,false);
		tween(hotspot[%1].alpha,  0.0, 0.5, default, set(hotspot[%1].visible,false); );
		tween(hotspot[%1].flying, 0.0);
		tween(hotspot[%1].scale,  get(hotspot[%1].oldscale));
		tween(hotspot[%1].rx,  get(hotspot[%1].oldrx));
		tween(hotspot[%1].ry,  get(hotspot[%1].oldry));
		tween(hotspot[%1].rz,  get(hotspot[%1].oldrz));
		
		set(openflyingpic, null);
		
	</action>	       
	       
	<action name="showpic">
		<!-- creates a new hotspot and fly it out -->
				
		if(hotspot[get(pic)] === null,
			txtadd(picfilename,'%FIRSTXML%/images/',get(pic),'.jpg');
			addhotspot(get(pic));
			getcenter(hsath,hsatv);
			copy(hotspot[get(pic)].ath, hsath);
			copy(hotspot[get(pic)].atv, hsatv);
			set(hotspot[get(pic)].visible,false);
			set(hotspot[get(pic)].distorted,true);
			set(hotspot[get(pic)].zorder,20);
			set(hotspot[get(pic)].scale,0.1);
			set(hotspot[get(pic)].alpha,0.0);
			set(hotspot[get(pic)].effect, glow(0xFFFFFF,0.9,20,10););
			set(hotspot[get(pic)].onhover, showtext(Klicken zum Schlie&#38;en., buttonstyle););
			<!--set(hotspot[get(pic)].effect,glow(0xFFFFFF,1.0,30,10000);dropshadow(10,45,0x000000,10,0.3););-->
			set(hotspot[get(pic)].onloaded, flyin(get(name)) );
			set(hotspot[get(pic)].onclick, flyout(get(name)) );
			copy(hotspot[get(pic)].url,picfilename); 
		,
			flyin(get(pic));
		);
	</action>

</krpano>
