<krpano logkey="false" actionintervalbase="frame" onstart="action(loadfirstpano,restoran);" >
	<include url="i&s/settings.xml" />
	<include url="i&s/interface.xml" />

	<scene name="restoran" onstart="action(showinterface,Ресторан большой зал); action(createbuttons); "><view fov="80.0"  vlookat="0" hlookat="0"/>
		<image type="SPHERE"><sphere url="panoramas/restbol.jpg" /></image>
		<preview type="SPHERE" url="panopvs/restbol-pv.jpg" />
				<hotspot name="restbal" url="hotspot.png" ath="-85" atv="-25" />
				<hotspot name="klumba" url="hotspot.png" ath="87" atv="3" />
				<hotspot name="restmal" url="hotspot.png" ath="-120" atv="-40" />	
	</scene>
	<plugin name="restoran" url="panotns/restbol-tn.jpg" keep="true" visible="false"/>	
	
	<scene name="restbal" onstart="action(showinterface,Ресторан балкончик); action(createbuttons); "><view fov="80.0"  vlookat="0" hlookat="0"/>
		<image type="SPHERE"><sphere url="panoramas/restbal.jpg" /></image>
		<preview type="SPHERE" url="panopvs/restbal-pv.jpg" />
				<hotspot name="restoran" url="hotspot.png" ath="-90" atv="40" />
				<hotspot name="restmal" url="hotspot.png" ath="-175" atv="5" />
	</scene>
	<plugin name="restbal" url="panotns/restbal-tn.jpg" keep="true" visible="false"/>	
	
	<scene name="restmal" onstart="action(showinterface,Ресторан малый зал); action(createbuttons); "><view fov="80.0"  vlookat="0" hlookat="0"/>
		<image type="SPHERE"><sphere url="panoramas/restmal.jpg" /></image>
		<preview type="SPHERE" url="panopvs/restmal-pv.jpg" />
				<hotspot name="restbal" url="hotspot.png" ath="75" atv="25" />
				<hotspot name="restoran" url="hotspot.png" ath="77" atv="13" />
				<hotspot name="hall2" url="hotspot.png" ath="-104" atv="5" />	
	</scene>
	<plugin name="restmal" url="panotns/restmal-tn.jpg" keep="true" visible="false"/>
	
	<plugin name="hall2" url="panotns/hall2-tn.jpg" keep="true" visible="false"/>
	
	<plugin name="klumba" url="panotns/klumba-tn.jpg" keep="true" visible="false"/>	

	<action name="createbuttons">set(xpos,5); set(scrollw,477); 
			settingbutton( restoran, Ресторан большой зал, get(xpos)); inc(xpos,90); inc(scrollw,-90); 
			settingbutton( restbal, Ресторан балкончик, get(xpos)); inc(xpos,90); inc(scrollw,-90); 
			settingbutton( restmal, Ресторан малый зал, get(xpos)); inc(xpos,90); inc(scrollw,-90);
			settingbutton( klumba, Территория отеля, get(xpos)); inc(xpos,90); inc(scrollw,-90);
			settingbutton( hall2, Холл второй этаж, get(xpos)); inc(xpos,90); inc(scrollw,-90);

			settinghotspot( restoran, Ресторан большой зал, 5 );
			settinghotspot( restbal, Ресторан балкончик, 95 );
			settinghotspot( restmal, Ресторан малый зал, 185 );
			settinghotspot( klumba, Территория отеля, 275 ); gotoxmlpano(klumba, vxod1.xml, klumba, 455);
			settinghotspot( hall2, Холл второй этаж, 365 ); gotoxml(hall2,hall2.xml);
	</action>
	
	<action name="removeall">
			removeplugin( restoran); 
			removeplugin( restbal); 
			removeplugin( restmal); 
			removeplugin( klumba); 
			removeplugin( hall2); 

			removehotspot( restoran); 
			removehotspot( restbal); 
			removehotspot( restmal); 
			removehotspot( klumba); 
			removehotspot( hall2); 
	</action>	
	
</krpano>
