<?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="false"
	               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();
        
                    hide_disallowed_hotspots();        
         
	</action>
    <action name="mainloadpano">
		closepanoobjects();
        layer[combobox].selectIdItem();
		loadscene(%1,NULL,NULL,BLEND(1));
        
                    hide_disallowed_hotspots();        
         
	</action>

    
            <events onxmlcomplete="hide_disallowed_hotspots();" />
        <action name="hide_disallowed_hotspots">
          for(set(i, 0), i LT hotspot.count, inc(i),
            copy(hs_onclick, hotspot[get(i)].onclick);
            
            if(indexof(hs_onclick, 'mainloadpano') == 0,
            set(is_allowed, false);        


                            if(hs_onclick == 'mainloadpano(build26.xml);', set(is_allowed, true););
            
            if(!is_allowed,
                set(hotspot[get(i)].visible, false);
            );
            );
        );
        </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="firstloadcompleteaction">
		if(plugin[data].firstPanoHasBeenPlayed==false,
            hidepanospotsaction();
            set(plugin[introimage].visible, true);
			setlittleplanet();
			set(plugin[data].firstPanoHasBeenPlayed,true);
			if (plugin[data].introImageHasBeenPlayed == true, startLittlePlanetIntroEffect(););
		);
	</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>
    
    	<events onxmlcomplete="onxmlcompleteaction2();"/>
    <action name="onxmlcompleteaction2">
        set(new_hlookat, get(view.hlookat));
        set(new_vlookat, get(view.vlookat));
        set(new_fov, get(view.fov));
        trace(new_hlookat);
        
        if(plugin[data].firstPanoHasBeenPlayed==false,
            hidepanospotsaction();
            set(plugin[introimage].visible, true);
			setlittleplanet();
			set(plugin[data].firstPanoHasBeenPlayed,true);
        
            if(plugin[data].firstPanoHasBeenPlayed == true,
                delayedcall(1.0,
                    tween(view.hlookat, get(new_hlookat), 3, easeInOutQuad);
                    tween(view.vlookat, get(new_vlookat), 3, easeInOutQuad);
                    tween(view.fov    , get(new_fov), 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    , 75);
		              showpanospotsaction();
                        hide_disallowed_hotspots();    
                );
            );
		);
	</action>
    	            
        
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                  <scene name="build26.xml" title="Przedsiębiorstwo Komunalne - Oczyszczalnia" thumburl="https://pano.zwiedzaj.lu/panodata/wronki3/builddata/build26/2/0/0_0.jpg">          
                        

          
            <include url="build26.xml"/>
    </scene>
                  
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
        <!-- 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>