<?xml version="1.0" encoding="UTF-8"?>
<krpano version="1.20.11">

    
  <!-- Spot Style - Ring Hotspot -->


  <style name="IconRingHotspot"
         url="%FIRSTXML%/spots/circle5_user_defaultpoint0.png"
         visible="false"
         edge="center"
         onhover="onhoverIconRingHotspot"
         onout="onoutIconRingHotspot"


         />
  <action name="onhoverIconRingHotspot">
    showtooltip('hotspot');
  </action>
  <action name="onoutIconRingHotspot">
    hideTooltip();



  </action>



    
  <!-- Spot Style - www right -->


  <style name="Iconwwwright"
         url="%FIRSTXML%/spots/web_user_defaultpoint4.png"
         visible="false"
         edge="center"
         onhover="onhoverIconwwwright"
         onout="onoutIconwwwright"


         />
  <action name="onhoverIconwwwright">
    showtooltip('hotspot');
  </action>
  <action name="onoutIconwwwright">
    hideTooltip();



  </action>



    
  <!-- Spot Style - www left -->


  <style name="Iconwwwleft"
         url="%FIRSTXML%/spots/web_user_defaultpoint9.png"
         visible="false"
         edge="center"
         onhover="onhoverIconwwwleft"
         onout="onoutIconwwwleft"


         />
  <action name="onhoverIconwwwleft">
    showtooltip('hotspot');
  </action>
  <action name="onoutIconwwwleft">
    hideTooltip();



  </action>



    
  <!-- Spot Style - info center top very long  -->


  <style name="Iconinfocentertopverylong"
         url="%FIRSTXML%/spots/web_user_defaultpoint20.png"
         visible="false"
         edge="center"
         onhover="onhoverIconinfocentertopverylong"
         onout="onoutIconinfocentertopverylong"


         />
  <action name="onhoverIconinfocentertopverylong">
    showtooltip('hotspot');
  </action>
  <action name="onoutIconinfocentertopverylong">
    hideTooltip();



  </action>



    
  <!-- Spot Style - Baloon Hotspot -->


  <style name="IconBaloonHotspot"
         url="%FIRSTXML%/spots/circle5_user_defaultpoint1.png"
         visible="false"
         edge="center"
         onhover="onhoverIconBaloonHotspot"
         onout="onoutIconBaloonHotspot"


         />
  <action name="onhoverIconBaloonHotspot">
    showtooltip('hotspot');
  </action>
  <action name="onoutIconBaloonHotspot">
    hideTooltip();



  </action>



    
  <!-- Spot Style - www left info -->


  <style name="Iconwwwleftinfo"
         url="%FIRSTXML%/spots/web_user_defaultpoint24.png"
         visible="false"
         edge="center"
         onhover="onhoverIconwwwleftinfo"
         onout="onoutIconwwwleftinfo"


         />
  <action name="onhoverIconwwwleftinfo">
    showtooltip('hotspot');
  </action>
  <action name="onoutIconwwwleftinfo">
    hideTooltip();



  </action>



    
  <!-- Spot Style - info center top very long right -->


  <style name="Iconinfocentertopverylongright"
         url="%FIRSTXML%/spots/web_user_defaultpoint26.png"
         visible="false"
         edge="center"
         onhover="onhoverIconinfocentertopverylongright"
         onout="onoutIconinfocentertopverylongright"


         />
  <action name="onhoverIconinfocentertopverylongright">
    showtooltip('hotspot');
  </action>
  <action name="onoutIconinfocentertopverylongright">
    hideTooltip();



  </action>



    
  <!-- Spot Style - info left down long -->


  <style name="Iconinfoleftdownlong"
         url="%FIRSTXML%/spots/web_user_defaultpoint27.png"
         visible="false"
         edge="center"
         onhover="onhoverIconinfoleftdownlong"
         onout="onoutIconinfoleftdownlong"


         />
  <action name="onhoverIconinfoleftdownlong">
    showtooltip('hotspot');
  </action>
  <action name="onoutIconinfoleftdownlong">
    hideTooltip();



  </action>



    
  <!-- Spot Style - info right -->


  <style name="Iconinforight"
         url="%FIRSTXML%/spots/web_user_defaultpoint5.png"
         visible="false"
         edge="center"
         onhover="onhoverIconinforight"
         onout="onoutIconinforight"


         />
  <action name="onhoverIconinforight">
    showtooltip('hotspot');
  </action>
  <action name="onoutIconinforight">
    hideTooltip();



  </action>



<!-- ********** -->
<!-- Nadir Logo -->
<!-- id : logo -->
<!-- ********** -->


  <hotspot ath="0" atv="90"
         zorder="0"
         name="logo"
         keep="true"
         visible="false"
         capture="false"
         url="%FIRSTXML%/graphics/logo/_3dtrip-logo-wirtualne-spacery-nadir.png" 
         handcursor="false"


         />

  <events name="logoevents" 
    onTourStart="showlogo();"
    hidetourcontrols="hidelogo();"
    showtourcontrols="showlogo();"
    keep="true" />

  <action name="hidelogo">
    set(hotspot[logo].visible, false);
  </action>
  <action name="showlogo">
    if (tour_displaycontrols,
      set(hotspot[logo].visible, true);
    );
  </action>

    <events name="logorotationevents" onviewchanged="updatelogorotation" keep="true"/>
    <action name="updatelogorotation">
        copy(hotspot[logo].rz, view.hlookat);
    </action>


  <events name="logoshowevents" onremovepano="hidelogo" onPanoStart="showlogo" keep="true"/>




  <!-- Hide / Show Controls -->
  <action name="hideTourControls">set(tour_displaycontrols, false);events.dispatch(hidetourcontrols);</action>
  <action name="showTourControls">set(tour_displaycontrols, true); events.dispatch(showtourcontrols);</action>

<action name="setTourLanguage">
  if (%1 == null,
    showlog();
    trace("CHANGE TOUR LANGUAGE : NO LANGUAGE SET");
   ,
    set(tour_language, %1);
    js(eventTourChangeLanguage(get(tour_language)));
    events.dispatch(changetourlanguage);
  );
</action>

  <!-- Share Tour -->
  <action name="shareTour">events.dispatch(onsharetour);</action>

<action name="viewControlMoveUp">
	if(%1,
		if(%2,
			set(isfullvertical, false);
			ifnot(scene[get(xml.scene)].planar,
				sub(viewvfov, panoview.vmax, panoview.vmin);
				if (viewvfov == 180,
					set(isfullvertical, true);
				);
			);
			if(isfullvertical == false AND calc(view.vlookat-%2) LT view.vlookatmin,
				moveto(get(view.hlookat), get(view.vlookatmin));
			,
				moveto(get(view.hlookat), calc(view.vlookat-%2));
			);
		,
			set(vlookat_moveforce, -1);
			delayedcall(0.1, viewControlMoveVertStop());
		);
	,
		set(vlookat_moveforce, -1);
	);
</action>
<action name="viewControlMoveDown">
	if(%1,
		if(%2,
			set(isfullvertical, false);
			ifnot(scene[get(xml.scene)].planar,
				sub(viewvfov, panoview.vmax, panoview.vmin);
				if (viewvfov == 180,
					set(isfullvertical, true);
				);
			);
			if(sceneisfull360 == false AND calc(view.vlookat+%2) GT view.vlookatmax,
				moveto(get(view.hlookat), get(view.vlookatmax));
			,
				moveto(get(view.hlookat), calc(view.vlookat+%2));
			);
		,
			set(vlookat_moveforce, +1);
			delayedcall(0.1, viewControlMoveVertStop());
		);
	,
		set(vlookat_moveforce, +1);
	);
</action>
<action name="viewControlMoveLeft">
	if(%1,
		if(%2,
			set(isfullhorizontal, false);
			ifnot(scene[get(xml.scene)].planar,
				sub(viewhfov, panoview.hmax, panoview.hmin);
				if (viewhfov == 360,
					set(isfullhorizontal, true);
				);
			);
			if(isfullhorizontal == false AND calc(view.hlookat-%2) LT view.hlookatmin,
				moveto(get(view.hlookatmin), get(view.vlookat));
			,
				moveto(calc(view.hlookat-%2), get(view.vlookat));
			);
		,
			set(hlookat_moveforce, -1);
			delayedcall(0.1, viewControlMoveHoriStop());
		);
	,
		set(hlookat_moveforce, -1);
	);
</action>
<action name="viewControlMoveRight">
	if(%1,
		if(%2,
			set(isfullhorizontal, false);
			ifnot(scene[get(xml.scene)].planar,
				sub(viewhfov, panoview.hmax, panoview.hmin);
				if (viewhfov == 360,
					set(isfullhorizontal, true);
				);
			);
			if(isfullhorizontal == false AND calc(view.hlookat+%2) GT view.hlookatmax,
				moveto(get(view.hlookatmax), get(view.vlookat));
			,
				moveto(calc(view.hlookat+%2), get(view.vlookat));
			);
		,
			set(hlookat_moveforce, +1);
			delayedcall(0.1, viewControlMoveHoriStop());
			
		);
	,
		set(hlookat_moveforce, +1);
	);
</action>
<action name="viewControlMoveHoriStop">
	set(hlookat_moveforce, 0);
</action>
<action name="viewControlMoveVertStop">
	set(vlookat_moveforce, 0);
</action>

  <!-- Tour Information -->
  <action name="hideTourInfo">set(tour_displayinfo, false);events.dispatch(onhidetourinfo);</action>
  <action name="showTourInfo">set(tour_displayinfo, true); events.dispatch(onshowtourinfo);</action>


  <!-- Fullscreen Management -->
  <action name="exitFullScreen" devices="fullscreensupport">set(tour_fullscreen,false);js(setFullscreen(false));</action>
  <action name="enterFullScreen" devices="fullscreensupport">set(tour_fullscreen,true);js(setFullscreen(true));</action>
  <action name="switchFullScreen">if(tour_fullscreen,exitFullScreen();,enterFullScreen(););</action>

  
  <events name="krpanoExitFullscreenEvent"
    onexitfullscreen="if(tour_fullscreen,exitFullScreenChangeEvent(););"
    keep="true" />

  <action name="exitFullScreenChangeEvent" devices="fullscreensupport">set(tour_fullscreen,false);events.dispatch(onexitfullscreen);</action>
  <action name="enterFullScreenChangeEvent" devices="fullscreensupport">set(tour_fullscreen,true);events.dispatch(onenterfullscreen);</action>
  <action name="exitFullScreenFallback">set(fullscreen,false);</action>
  <action name="enterFullScreenFallback">set(fullscreen,true);</action>
  
  <action name="resizeFullScreenEvent">delayedcall(0,updatescreen(););</action>

</krpano>