<?xml version="1.0" encoding="UTF-8"?>
<krpano  version="1.20.11" 
        onstart="startaction"
        basedir="%FIRSTXML%"
        bgcolor="#ccc"
        idletime="0.5"
        strict="false"
        showerrors="true"
        logkey="true"
        debugmode="true"
        debugkeys="true"
        debugjsactions="true"
        debugjsplugins="true">
    
    <plugin name="gyro" url="plugins/gyro2.js" devices="ipad|iphone" keep="true" enabled="true"/>
            <include url="skin/vtourskin.xml" />
           <skin_settings maps="false" 
	               maps_type="custom"
	               maps_bing_api_key=""
	               maps_google_api_key=""
	               maps_zoombuttons="false"
	               maps_loadonfirstuse="true"
	               gyro="true"
	               gyro_keeplookingdirection="false"
	               webvr="true"
	               webvr_keeplookingdirection="true"
	               webvr_prev_next_hotspots="true"
	               littleplanetintro="false"
	               followmousecontrol="false"
	               title="true"
	               thumbs="true"
	               thumbs_width="120" thumbs_height="80" thumbs_padding="10" thumbs_crop="true"
	               thumbs_opened="false"
	               thumbs_text="true"
	               thumbs_dragging="true"
	               thumbs_onhoverscrolling="false"
	               thumbs_scrollbuttons="false"
	               thumbs_scrollindicator="false"
	               thumbs_loop="false"
	               tooltips_buttons="false"
	               tooltips_thumbs="false"
	               tooltips_hotspots="false"
	               tooltips_mapspots="false"
	               deeplinking="false"
	               loadscene_flags="MERGE"
	               loadscene_blend="OPENBLEND(0.5, 0.0, 0.75, 0.05, linear)"
	               loadscene_blend_prev="SLIDEBLEND(0.5, 180, 0.75, linear)"
	               loadscene_blend_next="SLIDEBLEND(0.5,   0, 0.75, linear)"
	               loadingtext="loading..."
	               layout_width="100%"
	               layout_maxwidth="814"
	               controlbar_width="-24"
	               controlbar_height="40"
	               controlbar_offset="0"
	               controlbar_offset_closed="-40"
	               controlbar_overlap.no-fractionalscaling="10"
	               controlbar_overlap.fractionalscaling="0"
	               design_skin_images="vtourskin.png"
	               design_bgcolor="0x304954"
	               design_bgalpha="0.7"
	               design_bgborder="0"
	               design_bgroundedge="1"
	               design_bgshadow="0 4 10 0x000000 0.3"
	               design_thumbborder_bgborder="3 0xFFFFFF 1.0"
	               design_thumbborder_padding="2"
	               design_thumbborder_bgroundedge="0"
	               design_text_css="color:#FFFFFF; font-family:Arial;"
	               design_text_shadow="1"
	               />

   
            
            <include url="plugins/combobox.xml" />
            
            <include url="plugins/showtext.xml" />

            <include url="plugins/loadinganimation.xml" />
            <include url="plugins/loadingpercenttext.xml" />
            <include url="plugins/loadingbar.xml" />

            <textstyle name="DEFAULT"
           origin="cursor"
           edge="bottom"
           xoffset="0"
           yoffset="-3"
           fadeintime="0.0"
           showtime="0.1"
           fadetime="0.0"
           font="Arial"
           fontsize="16.0"
           bold="true"
           italic="false"
           textcolor="0xFFFFFF"
           textalign="none"
           padding="5 10"
           css=""
           width=""
           height=""
           vcenter=""
           background="true"
           backgroundcolor="0x304954"
           backgroundalpha="0.7"
           border="false"
           bordercolor="0x000000"
           borderalpha="1.0"
           borderwidth="0"
           roundedge="1"
           shadow="0.0"
           shadowrange="4.0"
           shadowangle="10"
           shadowcolor="0x000000"
           shadowalpha="0.3"
           textshadow="0.0"
           textshadowrange="4.0"
           textshadowangle="45"
           textshadowcolor="0x000000"
           textshadowalpha="1.0"
           alpha="1.0"
           parent=""
           noclip="true"
           />
    <action name="startaction">
		hidepanospotsaction();
	</action>
    <action name="mainloadpano">
		closepanoobjects();
        layer[combobox].selectIdItem();
		loadscene(%1,NULL,NULL,BLEND(1));
	</action>

    <!--************** Pluginy i dane KRPano ******************************************************-->
    <plugin name="data" firstPanoHasBeenPlayed="false" introImageHasBeenPlayed="false" keep="true"/>
    <!--************** Otwórz pierwszą panoramę ***************************************************-->
<!--    <include url="build0.xml"/>-->
    <autorotate enabled="false"/>
    <!--************** Czcionki *******************************************************************-->
    <!--************** Obrazek startowy ***********************************************************-->
    <action name="fromlittleplanetintrotonormalview">
		tweennormalview();
		showpanospotsaction();
	</action>
    <action name="tweennormalview">
		tween(view.hlookat, 0, 3, easeInOutQuad);
		tween(view.vlookat, 0, 3, easeInOutQuad);
		tween(view.fov    , 55, 3, easeInOutQuad );
		tween(view.maxpixelzoom,1.0, 3, easeInOutQuad );
		tween(view.fisheye, 0.0, 3, easeInOutQuad, WAIT);
		set(display.flash10, on);
		set(view.limitview , range);
		set(view.vlookatmin, -90);
		set(view.vlookatmax, 90);
		set(view.hlookatmin, -180);
		set(view.hlookatmax, 180);
		set(view.maxpixelzoom, 1.0);
		set(view.fovmax    , 90);
	</action>
    <action name="firstloadcompleteaction">
		if(plugin[data].firstPanoHasBeenPlayed==false,
            hidepanospotsaction();
            set(plugin[introimage].visible, true);
			setlittleplanet();
			set(plugin[data].firstPanoHasBeenPlayed,true);
			if (plugin[data].introImageHasBeenPlayed == true, startLittlePlanetIntroEffect(););
        hideintroimage();
		);
	</action>
    <action name="startLittlePlanetIntroEffect">
		if(plugin[data].firstPanoHasBeenPlayed == true,
			delayedcall(1.0,
				fromlittleplanetintrotonormalview();
			);
		);
	</action>
    <action name="setlittleplanet">
		set(view.stereographic, true);
		set(view.fisheye      , 1.0);
		set(view.limitview    , lookat);
		set(view.vlookatmin   , -90);
		set(view.vlookatmax   , 90);
		set(view.fov          , 150);
		set(view.fovmax       , 150);
		set(view.hlookat      , 0);
		set(view.vlookat      , 90);
		set(display.flash10   , off);
		set(display.details   , 14);
	</action>
  
    <action name="hideintroimage">
		if(plugin[introimage].enabled,	set(plugin[introimage].enabled,false);tween(plugin[introimage].alpha, 0.0, 0.5, default, removeplugin(introimage)););
		startLittlePlanetIntroEffect();
	</action>
    <action name="autohideintroimage">
		if(plugin[data].introImageHasBeenPlayed==false, 	set(plugin[introimage].alpha,0); tween(plugin[introimage].alpha,1.0,WAIT);
		set(plugin[data].introImageHasBeenPlayed,true););
	</action>
	
	<!--************** Menu kontekstowe ***********************************************************-->
    <contextmenu>
        <item name="item_0" caption="www.tellogistic.pl"/>
        <item name="item_1" caption="Autor: Jacek Scherer"/>
    </contextmenu>
	
	
	
	
	
    <!--************** Lista panoram **************************************************************-->
    <combobox name="combobox" design="vtour" keep="true" align="righttop" x="10" y="10"> 
        <item name="combobox7" caption="[img src=[dq]https://pano.zwiedzaj.lu/panodata/gminaprzytoczna2/builddata/build7/2/0/0_0.jpg[dq] style=[dq]border:1px solid rgba(255,255,255,0.5);width:42px;height:28px;vertical-align:middle;margin-right:8px;[dq]/] Przedszkole 'Kasztanowa Kraina' w Przytocznej – plac zabaw" onClick="mainloadpano(build7);"/>
	   <item name="combobox8" caption="[img src=[dq]https://pano.zwiedzaj.lu/panodata/gminaprzytoczna2/builddata/build8/2/0/0_0.jpg[dq] style=[dq]border:1px solid rgba(255,255,255,0.5);width:42px;height:28px;vertical-align:middle;margin-right:8px;[dq]/] Przedszkole Miejskie 'Kasztanowa Kraina' - wnętrze" onClick="mainloadpano(build8);"/>
    </combobox>

    
      <scene name="build7" title="Przedszkole 'Kasztanowa Kraina' w Przytocznej – plac zabaw" thumburl="https://pano.zwiedzaj.lu/panodata/gminaprzytoczna2/builddata/build7/2/0/0_0.jpg"> 
          <events onxmlcomplete="onxmlcompleteaction();"/>
        
        <action name="onxmlcompleteaction">
            plugin[combobox].selectiditem(combobox0);
            if(autorotate.enabled==false,set(plugin[autorotationOFF].visible,false); set(plugin[autorotationON].visible,true);,set(plugin[autorotationOFF].visible,true); set(plugin[autorotationON].visible,false););
            firstloadcompleteaction();
        </action><action name="playpanosounds">
		playbackgroundsound(none);
	</action>
    <action name="stoppanosounds">
		stopbackgroundsound();
	</action>
    <action name="closepanoobjects">
	</action>
    <!--************** Panorama *******************************************************************-->
    <!-- @File="build7" @PanoName="Przedszkole "Kasztanowa Kraina" w  Przytocznej – plac zabaw" @FilePath="F:/WIRTUALNE PANORAMY/ARCHIWIZOWANE 5/TERESA/Pano/02. Gmina Przytoczna/3. Przytoczna/22.tif" -->
    <panoview h="0" v="0" fov="55"/>
    <!-- parametry widoku -->
    <view fisheye="0" limitview="range" hlookatmin="-180" hlookatmax="180" vlookatmin="-90" vlookatmax="90" maxpixelzoom="1.0" fovmax="75" fov="55" hlookat="0" vlookat="0"/>
    <progress showload="none" showwait="none"/>
    <autorotate horizon="0" tofov="55" waittime="1" speed="5"/>
    <!-- obraz podglądu -->
    <preview url="builddata/build7/preview.jpg" type="CUBESTRIP" striporder="FRBLUD" details="16"/>
    <!-- aktualnej panoramy -->
    <image type="CUBE" multires="true" tilesize="961" baseindex="0">
        <level tiledimagewidth="3842" tiledimageheight="3842">
            <left url="builddata/build7/3/2/%v_%u.jpg"/>
            <front url="builddata/build7/0/2/%v_%u.jpg"/>
            <right url="builddata/build7/1/2/%v_%u.jpg"/>
            <back url="builddata/build7/2/2/%v_%u.jpg"/>
            <up url="builddata/build7/4/2/%v_%u.jpg"/>
            <down url="builddata/build7/5/2/%v_%u.jpg"/>
        </level>
        <level tiledimagewidth="1921" tiledimageheight="1921">
            <left url="builddata/build7/3/1/%v_%u.jpg"/>
            <front url="builddata/build7/0/1/%v_%u.jpg"/>
            <right url="builddata/build7/1/1/%v_%u.jpg"/>
            <back url="builddata/build7/2/1/%v_%u.jpg"/>
            <up url="builddata/build7/4/1/%v_%u.jpg"/>
            <down url="builddata/build7/5/1/%v_%u.jpg"/>
        </level>
        <level tiledimagewidth="960" tiledimageheight="960">
            <left url="builddata/build7/3/0/%v_%u.jpg"/>
            <front url="builddata/build7/0/0/%v_%u.jpg"/>
            <right url="builddata/build7/1/0/%v_%u.jpg"/>
            <back url="builddata/build7/2/0/%v_%u.jpg"/>
            <up url="builddata/build7/4/0/%v_%u.jpg"/>
            <down url="builddata/build7/5/0/%v_%u.jpg"/>
        </level>
        <!-- mobile phone / iphone images -->
        <mobile>
            <left url="builddata/build7/3/mobile_face.jpg"/>
            <front url="builddata/build7/0/mobile_face.jpg"/>
            <right url="builddata/build7/1/mobile_face.jpg"/>
            <back url="builddata/build7/2/mobile_face.jpg"/>
            <up url="builddata/build7/4/mobile_face.jpg"/>
            <down url="builddata/build7/5/mobile_face.jpg"/>
        </mobile>
        <!-- tablet pc / ipad images -->
        <tablet>
            <left url="builddata/build7/3/tablet_face.jpg"/>
            <front url="builddata/build7/0/tablet_face.jpg"/>
            <right url="builddata/build7/1/tablet_face.jpg"/>
            <back url="builddata/build7/2/tablet_face.jpg"/>
            <up url="builddata/build7/4/tablet_face.jpg"/>
            <down url="builddata/build7/5/tablet_face.jpg"/>
        </tablet>
    </image>
    <!--************** Hotspoty i Flary ***********************************************************-->
    <hotspot name="spot26" onclick="mainloadpano(build8);" url="builddata/graphics/spots/spot1.png" ath="-53.3095" atv="1.68224"/>
    <hotspot name="spot28" onclick="closeallobjects();set(plugin[spot28object].visible,true);tween(plugin[spot28object].alpha, 1);" url="builddata/graphics/spots/spot2.png" ath="-99.1595" atv="-0.668869"/>
    <plugin name="spot28object" visible="false" url="builddata/graphics/spots/object5.jpg" align="center" alpha="0" onclick="closespot28object();"/>
    <action name="closespot28object">
		if(plugin[spot28object].visible,
		tween(plugin[spot28object].alpha, 0);
		delayedcall(0.5,set(plugin[spot28object].visible,false));
		);
	</action>
    <action name="hidepanospotsaction">
		set(hotspot[spot26].visible, false);
		set(hotspot[spot27].visible, false);
		set(hotspot[spot28].visible, false);
	</action>
    <action name="showpanospotsaction">
		set(hotspot[spot26].visible, true);
		set(hotspot[spot27].visible, true);
		set(hotspot[spot28].visible, true);
	</action>
    <!-- zamknij wszystkie Hotspoty -->
    <action name="closeallobjects">
		closespot28object();
	</action>
    </scene>
      <scene name="build8" title="Przedszkole Miejskie 'Kasztanowa Kraina' - wnętrze" thumburl="https://pano.zwiedzaj.lu/panodata/gminaprzytoczna2/builddata/build8/2/0/0_0.jpg">
   <events onxmlcomplete="onxmlcompleteaction();"/>
    <action name="onxmlcompleteaction">
		plugin[combobox].selectiditem(combobox8);
	</action>
    <action name="playpanosounds">
		playbackgroundsound(none);
	</action>
    <action name="stoppanosounds">
		stopbackgroundsound();
	</action>
    <action name="closepanoobjects">
	</action>
    <!--************** Panorama *******************************************************************-->
    <!-- @File="build8" @PanoName="Przedszkole Miejskie "Kasztanowa Kraina" - wnętrze" @FilePath="F:/WIRTUALNE PANORAMY/ARCHIWIZOWANE 5/TERESA/Pano/02. Gmina Przytoczna/Pano/111.tif" -->
    <panoview h="-34.97" v="3.87" fov="55"/>
    <!-- parametry widoku -->
    <view fisheye="0" limitview="range" hlookatmin="-180" hlookatmax="180" vlookatmin="-90" vlookatmax="90" maxpixelzoom="1.0" fovmax="75" fov="55" hlookat="-34.97" vlookat="3.87"/>
    <progress showload="none" showwait="none"/>
    <autorotate horizon="3.87" tofov="55" waittime="1" speed="5"/>
    <!-- obraz podglądu -->
    <preview url="builddata/build8/preview.jpg" type="CUBESTRIP" striporder="FRBLUD" details="16"/>
    <!-- aktualnej panoramy -->
    <image type="CUBE" multires="true" tilesize="959" baseindex="0">
        <level tiledimagewidth="3834" tiledimageheight="3834">
            <left url="builddata/build8/3/2/%v_%u.jpg"/>
            <front url="builddata/build8/0/2/%v_%u.jpg"/>
            <right url="builddata/build8/1/2/%v_%u.jpg"/>
            <back url="builddata/build8/2/2/%v_%u.jpg"/>
            <up url="builddata/build8/4/2/%v_%u.jpg"/>
            <down url="builddata/build8/5/2/%v_%u.jpg"/>
        </level>
        <level tiledimagewidth="1917" tiledimageheight="1917">
            <left url="builddata/build8/3/1/%v_%u.jpg"/>
            <front url="builddata/build8/0/1/%v_%u.jpg"/>
            <right url="builddata/build8/1/1/%v_%u.jpg"/>
            <back url="builddata/build8/2/1/%v_%u.jpg"/>
            <up url="builddata/build8/4/1/%v_%u.jpg"/>
            <down url="builddata/build8/5/1/%v_%u.jpg"/>
        </level>
        <level tiledimagewidth="958" tiledimageheight="958">
            <left url="builddata/build8/3/0/%v_%u.jpg"/>
            <front url="builddata/build8/0/0/%v_%u.jpg"/>
            <right url="builddata/build8/1/0/%v_%u.jpg"/>
            <back url="builddata/build8/2/0/%v_%u.jpg"/>
            <up url="builddata/build8/4/0/%v_%u.jpg"/>
            <down url="builddata/build8/5/0/%v_%u.jpg"/>
        </level>
        <!-- mobile phone / iphone images -->
        <mobile>
            <left url="builddata/build8/3/mobile_face.jpg"/>
            <front url="builddata/build8/0/mobile_face.jpg"/>
            <right url="builddata/build8/1/mobile_face.jpg"/>
            <back url="builddata/build8/2/mobile_face.jpg"/>
            <up url="builddata/build8/4/mobile_face.jpg"/>
            <down url="builddata/build8/5/mobile_face.jpg"/>
        </mobile>
        <!-- tablet pc / ipad images -->
        <tablet>
            <left url="builddata/build8/3/tablet_face.jpg"/>
            <front url="builddata/build8/0/tablet_face.jpg"/>
            <right url="builddata/build8/1/tablet_face.jpg"/>
            <back url="builddata/build8/2/tablet_face.jpg"/>
            <up url="builddata/build8/4/tablet_face.jpg"/>
            <down url="builddata/build8/5/tablet_face.jpg"/>
        </tablet>
    </image>
    <!--************** Hotspoty i Flary ***********************************************************-->
    <hotspot name="spot29" onclick="mainloadpano(build7);" url="builddata/graphics/spots/spot1.png" onhover="showtext(Przedszkole &quot;Kasztanowa Kraina&quot; w  Przytocznej – plac zabaw);" ath="106.023" atv="3.82979"/>
    <action name="hidepanospotsaction">
		set(hotspot[spot29].visible, false);
	</action>
    <action name="showpanospotsaction">
		set(hotspot[spot29].visible, true);
	</action>
    </scene>
    
     <action name="interruptAnimation">
		ifnot (stopSequence === undefined,
			set(stopSequence, true);
			wait(0);
		);
	</action>
</krpano>