<?xml version="1.0" encoding="UTF-8"?>
<!-- for xml compliance -->
<!-- Generated By Kolor Panotour 1.8.0 -->
<krpano version="1.0.8.14" logkey="false">
    <action name="mainloadpano">
		closepanoobjects();
		ifnot(stopSequence === undefined,interruptAnimation(););
		loadpano(%1,NULL,NULL,BLEND(1));
	</action>
    <plugin name="gyro" url="testdata/graphics/gyro.js" devices="ipad|iphone" keep="true" enabled="true"/>
    <!--************** KrPano Pluginsund Daten ****************************************************-->
    <plugin name="data" firstPanoHasBeenPlayed="false" soundOn="true" keep="true"/>
    <!--************** Das erste Pano öffnen ******************************************************-->
    <include url="test0.xml"/>
    <autorotate enabled="false"/>
    <plugin name="soundinterface" preload="true" url="testdata/graphics/soundinterface.swf" alturl="testdata/graphics/soundinterface.js" keep="true"/>
    <action name="playsoundaction">
		set(plugin[data].soundOn, true);
		playpanosounds(forcesounds);
	</action>
    <action name="stopsoundaction">
		set(plugin[data].soundOn, false);
		stoppanosounds();
	</action>
    <!--************** Schriftarten ***************************************************************-->
    <textstyle name="DEFAULT" bold="false" font="Arial Narrow" fontsize="16" italic="false" textcolor="0xff000000"/>
    <!--************** Einführung *****************************************************************-->
    <action name="firstloadcompleteaction">
		if(plugin[data].firstPanoHasBeenPlayed==false,
			set(plugin[data].firstPanoHasBeenPlayed,true);
			set(autorotate.enabled,true);
		);
	</action>
	<!--************** Logo ***********************************************************************-->
   
	<plugin name="logo1" url="testdata/graphics/harmata.swf" keep="true" align="lefttop" x="185" y="5" width="210" height="70" onclick="openurl(http://www.harmata-dachy.pl/,_blank)"/>
	<plugin name="logo2" url="testdata/graphics/wypozyczalnia.swf" keep="true" align="lefttop" x="5" y="5" width="175" height="80" />
	<plugin name="logo3" url="testdata/graphics/wawrzinek_log3.jpg" keep="true" align="leftbottom" x="5" y="5" width="180" height="85" onclick="openurl(http://www.wawrzinek.pl/,_blank)"/>
	<plugin name="logo4" url="testdata/graphics/umschalter_winter.png" keep="true" align="rightbottom" x="10" y="20" width="180" height="85" onclick="openurl(http://www.grosspeterwitz.de/de/panowinter,_top)"/>
	
	<plugin name="logo5" url="testdata/graphics/logo_lukas1.png" keep="true" align="rightbottom" x="10" y="1" width="200" height="18" onclick="openurl(http://www.kubiczek.org/,_top)"/>
	
	
	<plugin name="logo6" url="testdata/graphics/Logo_80.jpg" keep="true" align="lefttop" x="400" y="5" width="112" height="80" onclick="openurl(http://www.masny.pietrowicewielkie.info/,_blank)"/>
    <!--************** Menü ***********************************************************************-->
    <plugin name="in" align="bottom" crop="0|0|65|65" customColor="true" height="prop" keep="true" ondown="set(fov_moveforce,-1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(fov_moveforce,0);" url="testdata/graphics/menu/menu0.png" width="40" x="-140" y="10"/>
    <plugin name="out" align="bottom" crop="0|0|65|65" customColor="true" height="prop" keep="true" ondown="set(fov_moveforce,+1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(fov_moveforce,0);" url="testdata/graphics/menu/menu1.png" width="40" x="-100" y="10"/>
    <plugin name="left" align="bottom" crop="0|0|65|65" customColor="true" height="prop" keep="true" ondown="set(hlookat_moveforce,-1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(hlookat_moveforce,0);" url="testdata/graphics/menu/menu2.png" width="40" x="-60" y="10"/>
    <plugin name="right" align="bottom" crop="0|0|65|65" customColor="true" height="prop" keep="true" ondown="set(hlookat_moveforce,+1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(hlookat_moveforce,0);" url="testdata/graphics/menu/menu3.png" width="40" x="-20" y="10"/>
    <plugin name="up" align="bottom" crop="0|0|65|65" customColor="true" height="prop" keep="true" ondown="set(vlookat_moveforce,-1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(vlookat_moveforce,0);" url="testdata/graphics/menu/menu4.png" width="40" x="20" y="10"/>
    <plugin name="down" align="bottom" crop="0|0|65|65" customColor="true" height="prop" keep="true" ondown="set(vlookat_moveforce,+1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(vlookat_moveforce,0);" url="testdata/graphics/menu/menu5.png" width="40" x="60" y="10"/>
    <plugin name="home" align="bottom" crop="0|0|65|65" customColor="true" height="prop" keep="true" onclick="lookto(get(panoview.h),get(panoview.v),get(panoview.fov),smooth(100,20,50));" onout="" onover="" onovercrop="0|65|65|65" url="testdata/graphics/menu/menu6.png" width="40" x="100" y="10"/>
    <plugin name="openfs" align="bottom" crop="0|0|65|65" customColor="true" height="prop" keep="true" onclick="set(fullscreen,true);" onout="" onover="" onovercrop="0|65|65|65" url="testdata/graphics/menu/menu7.png" width="40" x="140" y="10"/>
    <plugin name="closefs" align="bottom" crop="0|0|65|65" customColor="true" height="prop" keep="true" onclick="set(fullscreen,false);" onout="" onover="" onovercrop="0|65|65|65" url="testdata/graphics/menu/menu8.png" visible="false" width="40" x="140" y="10"/>
    <events onenterfullscreen="set(plugin[openfs].visible,false); set(plugin[closefs].visible,true);" onexitfullscreen="set(plugin[openfs].visible,true); set(plugin[closefs].visible,false);"/>
    <!--************** Pano-Liste *****************************************************************-->
    <plugin name="combobox" url="testdata/graphics/combobox.swf" preload="true" alturl="testdata/graphics/combobox.js" keep="true" align="righttop" x="10" y="10">
        <item name="combobox0" caption="Vorm Altar" onClick="mainloadpano(test0.xml);"/>
        <item name="combobox1" caption="Mitte" onClick="mainloadpano(test1.xml);"/>
        <item name="combobox2" caption="Altar" onClick="mainloadpano(test2.xml);"/>
    </plugin>
    <!--************** Hintergrundmusik ***********************************************************-->
    <action name="playbackgroundsound">
		if(%1 == none,
			stopallsounds();
			set(plugin[soundinterface].background,%1);
			,
			if(plugin[soundinterface].background == %1,
				if (%3 == forcesounds,
					stopallsounds();playsound(backgroundsound,%1,%2);
				)
				,
				stopallsounds();playsound(backgroundsound,%1,%2);
				set(plugin[soundinterface].background,%1);
			)
		);
	</action>
    <action name="stopbackgroundsound">
		stopsound(backgroundsound);
	</action>
    <!-- Raise sequence stopper and wait sequence time to break the delayed calls -->
    <action name="interruptAnimation">
		ifnot (stopSequence === undefined,
			set(stopSequence, true);
			wait(0);
		);
	</action>
</krpano>