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

    
  <!-- Spot Style - Default Point Spot Style -->


  <style name="IconDefaultPointSpotStyle"
         url="%FIRSTXML%/spots/hotspot_image_sequence_user_defaultpoint0.png"
         visible="false"
         frame="0"
         lastframe="12"
         framewidth="50"
         frameheight="50"
         stopspotsequence="false"
         crop="0|0|50|50"
         edge="center"
         alpha="0.8"
         onloaded="startspotanimation(0.1);"
         onhover="onhoverIconDefaultPointSpotStyle"
         onover="onoverIconDefaultPointSpotStyle"
         onout="onoutIconDefaultPointSpotStyle"


         />
  <action name="onhoverIconDefaultPointSpotStyle">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconDefaultPointSpotStyle">

tween(alpha, 1);
pauseautorotation(forcehotspot);

  </action>
  <action name="onoutIconDefaultPointSpotStyle">
    hideTooltip();

    tween(alpha, 0.8);
resumeautorotation(forcehotspot);

  </action>



    
  <!-- Spot Style - rower -->


  <style name="Iconrower"
         url="%FIRSTXML%/spots/hotspot_video_sequence_user_defaultpoint1.png"
         visible="false"
         frame="0"
         lastframe="12"
         framewidth="50"
         frameheight="50"
         stopspotsequence="false"
         crop="0|0|50|50"
         edge="center"
         zoom="true"

         onloaded="startspotanimation(0.1);if(scene[get(xml.scene)].planar,if(zoom,set(zoom, false);););"
         onhover="onhoverIconrower"
         onover="onoverIconrower"
         onout="onoutIconrower"


         />
  <action name="onhoverIconrower">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconrower">


pauseautorotation(forcehotspot);

  </action>
  <action name="onoutIconrower">
    hideTooltip();


resumeautorotation(forcehotspot);

  </action>



    
  <!-- Spot Style - tread -->


  <style name="Icontread"
         url="%FIRSTXML%/spots/hotspot_video_sequence_user_defaultpoint2.png"
         visible="false"
         frame="0"
         lastframe="12"
         framewidth="50"
         frameheight="50"
         stopspotsequence="false"
         crop="0|0|50|50"
         edge="center"
         onloaded="startspotanimation(0.1);"
         onhover="onhoverIcontread"
         onover="onoverIcontread"
         onout="onoutIcontread"


         />
  <action name="onhoverIcontread">
    showtooltip('hotspot');
  </action>
  <action name="onoverIcontread">


pauseautorotation(forcehotspot);

  </action>
  <action name="onoutIcontread">
    hideTooltip();


resumeautorotation(forcehotspot);

  </action>



    
  <!-- Spot Style - stepper -->


  <style name="Iconstepper"
         url="%FIRSTXML%/spots/hotspot_video_sequence_user_defaultpoint3.png"
         visible="false"
         frame="0"
         lastframe="12"
         framewidth="50"
         frameheight="50"
         stopspotsequence="false"
         crop="0|0|50|50"
         edge="center"
         zoom="true"

         onloaded="startspotanimation(0.1);if(scene[get(xml.scene)].planar,if(zoom,set(zoom, false);););"
         onhover="onhoverIconstepper"
         onover="onoverIconstepper"
         onout="onoutIconstepper"


         />
  <action name="onhoverIconstepper">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconstepper">


pauseautorotation(forcehotspot);

  </action>
  <action name="onoutIconstepper">
    hideTooltip();


resumeautorotation(forcehotspot);

  </action>



    
  <!-- Spot Style - Chest Press -->


  <style name="IconChestPress"
         url="%FIRSTXML%/spots/missingFile.png"
         visible="false"
         edge="center"
         onhover="onhoverIconChestPress"
         onover="onoverIconChestPress"
         onout="onoutIconChestPress"

         height="190"
         width="80"
         />
  <action name="onhoverIconChestPress">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconChestPress">


pauseautorotation(forcehotspot);

  </action>
  <action name="onoutIconChestPress">
    hideTooltip();


resumeautorotation(forcehotspot);

  </action>



    
  <!-- Spot Style - Lat Pulldown -->


  <style name="IconLatPulldown"
         url="%FIRSTXML%/spots/hotspot_video_sequence_user_defaultpoint5.png"
         visible="false"
         frame="0"
         lastframe="12"
         framewidth="50"
         frameheight="50"
         stopspotsequence="false"
         crop="0|0|50|50"
         edge="center"
         zoom="true"

         onloaded="startspotanimation(0.1);if(scene[get(xml.scene)].planar,if(zoom,set(zoom, false);););"
         onhover="onhoverIconLatPulldown"
         onover="onoverIconLatPulldown"
         onout="onoutIconLatPulldown"


         />
  <action name="onhoverIconLatPulldown">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconLatPulldown">


pauseautorotation(forcehotspot);

  </action>
  <action name="onoutIconLatPulldown">
    hideTooltip();


resumeautorotation(forcehotspot);

  </action>



    
  <!-- Spot Style - Leg Press -->


  <style name="IconLegPress"
         url="%FIRSTXML%/spots/hotspot_video_sequence_user_defaultpoint6.png"
         visible="false"
         frame="0"
         lastframe="12"
         framewidth="50"
         frameheight="50"
         stopspotsequence="false"
         crop="0|0|50|50"
         edge="center"
         zoom="true"

         onloaded="startspotanimation(0.1);if(scene[get(xml.scene)].planar,if(zoom,set(zoom, false);););"
         onhover="onhoverIconLegPress"
         onover="onoverIconLegPress"
         onout="onoutIconLegPress"


         />
  <action name="onhoverIconLegPress">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconLegPress">


pauseautorotation(forcehotspot);

  </action>
  <action name="onoutIconLegPress">
    hideTooltip();


resumeautorotation(forcehotspot);

  </action>



    
  <!-- Spot Style - seated ab crucnh -->


  <style name="Iconseatedabcrucnh"
         url="%FIRSTXML%/spots/hotspot_video_sequence_user_defaultpoint7.png"
         visible="false"
         frame="0"
         lastframe="12"
         framewidth="50"
         frameheight="50"
         stopspotsequence="false"
         crop="0|0|50|50"
         edge="center"
         zoom="true"

         onloaded="startspotanimation(0.1);if(scene[get(xml.scene)].planar,if(zoom,set(zoom, false);););"
         onhover="onhoverIconseatedabcrucnh"
         onover="onoverIconseatedabcrucnh"
         onout="onoutIconseatedabcrucnh"


         />
  <action name="onhoverIconseatedabcrucnh">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconseatedabcrucnh">


pauseautorotation(forcehotspot);

  </action>
  <action name="onoutIconseatedabcrucnh">
    hideTooltip();


resumeautorotation(forcehotspot);

  </action>



    
  <!-- Spot Style - Leg Extention -->


  <style name="IconLegExtention"
         url="%FIRSTXML%/spots/hotspot_video_sequence_user_defaultpoint8.png"
         visible="false"
         frame="0"
         lastframe="12"
         framewidth="50"
         frameheight="50"
         stopspotsequence="false"
         crop="0|0|50|50"
         edge="center"
         zoom="true"

         onloaded="startspotanimation(0.1);if(scene[get(xml.scene)].planar,if(zoom,set(zoom, false);););"
         onhover="onhoverIconLegExtention"
         onover="onoverIconLegExtention"
         onout="onoutIconLegExtention"


         />
  <action name="onhoverIconLegExtention">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconLegExtention">


pauseautorotation(forcehotspot);

  </action>
  <action name="onoutIconLegExtention">
    hideTooltip();


resumeautorotation(forcehotspot);

  </action>



    
  <!-- Spot Style - Hip Adductor -->


  <style name="IconHipAdductor"
         url="%FIRSTXML%/spots/hotspot_video_sequence_user_defaultpoint9.png"
         visible="false"
         frame="0"
         lastframe="12"
         framewidth="50"
         frameheight="50"
         stopspotsequence="false"
         crop="0|0|50|50"
         edge="center"
         zoom="true"

         onloaded="startspotanimation(0.1);if(scene[get(xml.scene)].planar,if(zoom,set(zoom, false);););"
         onhover="onhoverIconHipAdductor"
         onover="onoverIconHipAdductor"
         onout="onoutIconHipAdductor"


         />
  <action name="onhoverIconHipAdductor">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconHipAdductor">


pauseautorotation(forcehotspot);

  </action>
  <action name="onoutIconHipAdductor">
    hideTooltip();


resumeautorotation(forcehotspot);

  </action>



<!-- ********** -->
<!-- rower -->
<!-- id : webVideoViewer -->
<!-- ********** -->

<ptplugin name="webVideoViewer" engine="kolorBox">
	<settings>
		<option name="position" value="center" type="string" />
		<option name="margin_x" value="0" type="int" />
		<option name="margin_y" value="0" type="int" />
		<option name="external_padding" value="15" type="int" />
		<option name="draggable_box" value="true" type="bool" />
		<option name="container_auto_size" value="true" type="bool" />
		<option name="container_width" value="100" type="int" />
		<option name="container_width_unit" value="percent" type="string" />
		<option name="container_height" value="100" type="int" />
		<option name="container_height_unit" value="percent" type="string" />
		<option name="container_color" value="000000" type="string" />
		<option name="container_alpha" value="0.7000076295109483" type="float" />
		<option name="container_topleft_border_radius" value="15" type="int" />
		<option name="container_topright_border_radius" value="15" type="int" />
		<option name="container_bottomleft_border_radius" value="15" type="int" />
		<option name="container_bottomright_border_radius" value="15" type="int" />
		<option name="container_border_width" value="2" type="int" />
		<option name="container_border_color" value="72be44" type="string" />
		<option name="container_border_alpha" value="1" type="float" />
		<option name="overlay_displayed" value="false" type="bool" />
		<option name="overlay_color" value="000000" type="string" />
		<option name="overlay_alpha" value="0.50000762951094835" type="float" />

		<option name="title_displayed" value="false" type="bool" />
		<option name="title_position" value="top" type="string" />
		<option name="title_font" value="Verdana" type="string" />
		<option name="title_size" value="14" type="int" />
		<option name="title_weight" value="normal" type="string" />
		<option name="title_style" value="normal" type="string" />
		<option name="title_decoration" value="none" type="string" />
		<option name="title_color" value="000000" type="string" />
		<option name="caption_displayed" value="false" type="bool" />
		<option name="video_autoplay" value="false" type="bool" />
		<option name="fullscreen_displayed" value="true" type="bool" />
		<option name="fullscreen_position" value="topleft" type="string" />
		<option name="fullscreen_text" value="webVideoViewerfullscreen_text" type="string" />




		<option name="close_displayed" value="true" type="bool" />
		<option name="close_position" value="topright" type="string" />
		<option name="close_text" value="webVideoViewerclose_text" type="string" />

		<option name="close_callback" value="invokeKrFunction('closeKolorBoxCallback_webVideoViewer')" type="string" />
		<option name="zorder" value="1" type="int" />
		<option name="use_i18n" value="true" type="bool" />
	</settings>
	<internaldata>
		
	</internaldata>
</ptplugin>

<action name="kolorBoxJsReady_webVideoViewer">
	set(ptplugin[webVideoViewer].jsready, true);
</action>

<action name="openWebVideo_webVideoViewer">
	ifnot(ptplugin[webVideoViewer].isOpen,
		set(ptplugin[webVideoViewer].isOpen, true);
		set(ptplugin[webVideoViewer].doNotDeleteMe, false);
		pauseautorotation(forceplugin);

		stopTourSounds();

		getmessage(webVideoViewer_boxurl, %1);
		js(invokePluginFunction(webVideoViewer, loadSingleArrayItem, get(webVideoViewer_boxurl), %2));
		events.dispatch(onremovedisplayedobject);
	,
		if('%1' != webVideoViewer_boxurl,
			closeKolorBox_webVideoViewer();
			delayedcall(0.3,openWebVideo_webVideoViewer(%1,%2););
		);
	);
</action>

<action name="toggleWebVideo_webVideoViewer">
	js(invokePluginFunction(webVideoViewer, toggleKolorBox, %1));
</action>


<action name="closeKolorBox_webVideoViewer">
	js(invokePluginFunction(webVideoViewer, closeKolorBox));
</action>

<action name="closeKolorBoxCallback_webVideoViewer">
	resumeautorotation(forceplugin);

	playTourSounds();

	set(ptplugin[webVideoViewer].isOpen, false);
</action>

<action name="changeLanguage_webVideoViewer">
	if(ptplugin[webVideoViewer].jsready,
		stopdelayedcall(delay_webVideoViewer);
		js(invokePluginFunction(webVideoViewer, changeLanguage));
	,
		delayedcall(delay_webVideoViewer, 0.1, changeLanguage_webVideoViewer(););
	);
</action>

<events name="kolorBoxEvents_webVideoViewer" 
	keep="true" 
	changetourlanguage="changeLanguage_webVideoViewer();"
	/>

<!-- ********** -->
<!-- treadmill -->
<!-- id : webVideoViewer1 -->
<!-- ********** -->

<ptplugin name="webVideoViewer1" engine="kolorBox">
	<settings>
		<option name="position" value="center" type="string" />
		<option name="margin_x" value="0" type="int" />
		<option name="margin_y" value="0" type="int" />
		<option name="external_padding" value="15" type="int" />
		<option name="draggable_box" value="true" type="bool" />
		<option name="container_auto_size" value="true" type="bool" />
		<option name="container_width" value="100" type="int" />
		<option name="container_width_unit" value="percent" type="string" />
		<option name="container_height" value="100" type="int" />
		<option name="container_height_unit" value="percent" type="string" />
		<option name="container_color" value="000000" type="string" />
		<option name="container_alpha" value="0.7000076295109483" type="float" />
		<option name="container_topleft_border_radius" value="15" type="int" />
		<option name="container_topright_border_radius" value="15" type="int" />
		<option name="container_bottomleft_border_radius" value="15" type="int" />
		<option name="container_bottomright_border_radius" value="15" type="int" />
		<option name="container_border_width" value="2" type="int" />
		<option name="container_border_color" value="72be44" type="string" />
		<option name="container_border_alpha" value="1" type="float" />
		<option name="overlay_displayed" value="false" type="bool" />
		<option name="overlay_color" value="000000" type="string" />
		<option name="overlay_alpha" value="0.50000762951094835" type="float" />

		<option name="title_displayed" value="false" type="bool" />
		<option name="title_position" value="top" type="string" />
		<option name="title_font" value="Verdana" type="string" />
		<option name="title_size" value="14" type="int" />
		<option name="title_weight" value="normal" type="string" />
		<option name="title_style" value="normal" type="string" />
		<option name="title_decoration" value="none" type="string" />
		<option name="title_color" value="000000" type="string" />
		<option name="caption_displayed" value="false" type="bool" />
		<option name="video_autoplay" value="false" type="bool" />
		<option name="fullscreen_displayed" value="true" type="bool" />
		<option name="fullscreen_position" value="topleft" type="string" />
		<option name="fullscreen_text" value="webVideoViewer1fullscreen_text" type="string" />




		<option name="close_displayed" value="true" type="bool" />
		<option name="close_position" value="topright" type="string" />
		<option name="close_text" value="webVideoViewer1close_text" type="string" />

		<option name="close_callback" value="invokeKrFunction('closeKolorBoxCallback_webVideoViewer1')" type="string" />
		<option name="zorder" value="2" type="int" />
		<option name="use_i18n" value="true" type="bool" />
	</settings>
	<internaldata>
		
	</internaldata>
</ptplugin>

<action name="kolorBoxJsReady_webVideoViewer1">
	set(ptplugin[webVideoViewer1].jsready, true);
</action>

<action name="openWebVideo_webVideoViewer1">
	ifnot(ptplugin[webVideoViewer1].isOpen,
		set(ptplugin[webVideoViewer1].isOpen, true);
		set(ptplugin[webVideoViewer1].doNotDeleteMe, false);
		pauseautorotation(forceplugin);

		stopTourSounds();

		getmessage(webVideoViewer1_boxurl, %1);
		js(invokePluginFunction(webVideoViewer1, loadSingleArrayItem, get(webVideoViewer1_boxurl), %2));
		events.dispatch(onremovedisplayedobject);
	,
		if('%1' != webVideoViewer1_boxurl,
			closeKolorBox_webVideoViewer1();
			delayedcall(0.3,openWebVideo_webVideoViewer1(%1,%2););
		);
	);
</action>

<action name="toggleWebVideo_webVideoViewer1">
	js(invokePluginFunction(webVideoViewer1, toggleKolorBox, %1));
</action>


<action name="closeKolorBox_webVideoViewer1">
	js(invokePluginFunction(webVideoViewer1, closeKolorBox));
</action>

<action name="closeKolorBoxCallback_webVideoViewer1">
	resumeautorotation(forceplugin);

	playTourSounds();

	set(ptplugin[webVideoViewer1].isOpen, false);
</action>

<action name="changeLanguage_webVideoViewer1">
	if(ptplugin[webVideoViewer1].jsready,
		stopdelayedcall(delay_webVideoViewer1);
		js(invokePluginFunction(webVideoViewer1, changeLanguage));
	,
		delayedcall(delay_webVideoViewer1, 0.1, changeLanguage_webVideoViewer1(););
	);
</action>

<events name="kolorBoxEvents_webVideoViewer1" 
	keep="true" 
	changetourlanguage="changeLanguage_webVideoViewer1();"
	/>

<!-- ********* -->
<!-- Gyroscope -->
<!-- ********* -->


<plugin name="gyroscope"
        url="%FIRSTXML%/graphics/gyro2.js"
        keep="true"
        devices="no-desktop.and.html5"

        onunavailable="checkGyroUnavailable();"
        sensor_mode="1"
        friction="auto"
        autocalibration="true"
        touch_mode="full"
        onavailable="delayedcall(1, checkGyroAvailability(););"
        enabled="false"
        activated="false"
        />

<events name="gyroscopeEvents" onnewpano="planarGyroscopeTest();" keep="true" />

<action name="planarGyroscopeTest">
  if(plugin[gyroscope],
    if(scene[get(xml.scene)].full360,
      set(sceneisfull360, false);
      sub(viewhfov, panoview.hmax, panoview.hmin);
      if (viewhfov == 360,
        sub(viewvfov, panoview.vmax, panoview.vmin);
        if (viewvfov == 180,
          set(sceneisfull360, true);
        );
      );
      if (sceneisfull360,
        set(plugin[gyroscope].camroll, true);
      ,
        set(plugin[gyroscope].camroll, false);
      );
    ,
      set(plugin[gyroscope].camroll, false);
    );
  );
</action>

<action name="changeGyroscopeState">
  if(plugin[gyroscope],
    if (plugin[gyroscope].isavailable,
      if(%1,
        set(plugin[gyroscope].activated,true);
      ,
        set(plugin[gyroscope].activated,false);
      );
      if (%1 != plugin[gyroscope].enabled,
        if(plugin[gyroscope].activated,
          switch(plugin[gyroscope].enabled);
        ,
          set(plugin[gyroscope].enabled, false);
        );
        if (plugin[gyroscope].enabled, events.dispatch(ongyroscopeon);, events.dispatch(ongyroscopeoff););
      );
    );
  );
</action>

<action name="checkGyroAvailability">
  if(plugin[gyroscope],
    if (plugin[gyroscope].isavailable,
      
      set(sceneisfull360, false);
      if (scene[get(xml.scene)].full360,
        sub(viewhfov, panoview.hmax, panoview.hmin);
        if (viewhfov == 360,
          sub(viewvfov, panoview.vmax, panoview.vmin);
          if (viewvfov == 180,
            set(sceneisfull360, true);
          );
        );
      );
      set(delaythegyrocheck, false);
      if (sceneisfull360 AND tour_firstlittleplanet, set(delaythegyrocheck, true));

      ifnot(delaythegyrocheck,
        set(tour_gyroscopedevices, true);
        events.dispatch(ongyroscopeavailable);
      ,
        delayedcall(1, checkGyroAvailability(););
      );
    ,
      set(tour_gyroscopedevices, false);
    );
    if (plugin[gyroscope].enabled, events.dispatch(ongyroscopeon);, events.dispatch(ongyroscopeoff););
  ,
    checkGyroUnavailable();
  );
</action>

<action name="checkGyroUnavailable">
  set(plugin[gyroscope].activated, false);
  set(plugin[gyroscope].enabled, false);
  set(tour_gyroscopedevices, false);
  events.dispatch(ongyroscopeunavailable);
</action>

<!-- ********** -->
<!-- Gyro Button -->
<!-- id : gyroButton -->
<!-- ********** -->


  <layer name="gyroButton"
         keep="true"
         url="%FIRSTXML%/graphics/gyrobutton/disable_gyro2.png" 
         align="bottomright"
         x="30"
         y="30"
         zorder="4"
         tooltip=""
         onhover="gyroButtonOnHover"
         state="true"
         onclick="gyroButtonOnClick"
         onout="hideTooltip();"
         height="30"
         width="30"
         visible="false"
         />

  <action name="gyroButtonOnHover">
    if (state,
      set(tooltip, gyroButtonfirsttooltip);
     ,
      set(tooltip, gyroButtonsecondtooltip);
    );
    if (tooltip != "", showTooltip(bottomright,''););
  </action>
  <action name="gyroButtonOnClick">
    if (state,disableGyroscope();

     ,enableGyroscope();

    );
  </action>

  <events name="gyroButtonevents" 
    onTourStart="gyroButtonShowGyroscopeButtons();"
    hidetourcontrols="hidegyroButton();" 
    showtourcontrols="gyroButtonShowGyroscopeButtons();" 
	ongyroscopeavailable="gyroButtonupdateGyroscopeButtonsAvailability();"
	ongyroscopeunavailable="gyroButtonupdateGyroscopeButtonsAvailability();"
	ongyroscopeon="gyroButtonenableGyroscopeButtons(true);"
	ongyroscopeoff="gyroButtonenableGyroscopeButtons(false);"
    keep="true" device="html5" />

  <events name="gyroButtonDesktopEvents" onTourStart="delayedcall(gyroButton_desktopdelay,3.0,ifnot(plugin[gyroscope],gyroButtonHideGyroscopeButtons(true);););" keep="true" device="desktop" />

  <action name="hidegyroButton">if(layer[gyroButton],set(layer[gyroButton].visible, false););</action>
  <action name="showgyroButton">if(layer[gyroButton],set(layer[gyroButton].visible, true););</action>


  <krpano gyroButtongyroscopeavailable="false" gyroButtongyroscopeenabled="false"/>
  <action name="gyroButtonupdateGyroscopeButtonsAvailability">
    stopdelayedcall(gyroButton_desktopdelay);
	if (tour_gyroscopedevices,
      set(gyroButtongyroscopeavailable, true);
      gyroButtonupdateGyroscopeButtons();
    ,
      set(gyroButtongyroscopeavailable, false);
      gyroButtonHideGyroscopeButtons(true);
    );
  </action>
  <action name="gyroButtonenableGyroscopeButtons">
    if (tour_gyroscopedevices,
      set(gyroButtongyroscopeenabled, %1);
      gyroButtonupdateGyroscopeButtons();
    );
  </action>
  
  <action name="gyroButtonHideGyroscopeButtons">
		hidegyroButton();
		if('%1' == 'true',
			removelayer(gyroButton);
			set(events[gyroButtonevents].name, null);
			set(events[gyroButtonDesktopEvents].name, null);
		);
	</action>
	<action name="gyroButtonShowGyroscopeButtons">
		if (gyroButtongyroscopeavailable,
			if (gyroButtongyroscopeenabled,

				set(layer[gyroButton].state, true);
				set(layer[gyroButton].url,%FIRSTXML%/graphics/gyrobutton/enable_gyro2.png);
			,
				set(layer[gyroButton].state, false);

				set(layer[gyroButton].url,%FIRSTXML%/graphics/gyrobutton/disable_gyro2.png);
			);
			showgyroButton();
		,
			set(layer[gyroButton].state, false);
			gyroButtonHideGyroscopeButtons();
		);
	</action>
	<action name="gyroButtonupdateGyroscopeButtons">
	if (tour_gyroscopedevices,
		if (tour_displaycontrols,
			gyroButtonShowGyroscopeButtons();
		,
			gyroButtonHideGyroscopeButtons();
		);
	,
		gyroButtonHideGyroscopeButtons();
	);
	</action>


<!-- ********** -->
<!-- Double Click -->
<!-- id : doubleclick -->
<!-- ********** -->
  <events name="doubleclick_events" keep="true" ondoubleclick="doubleclick_ondoubleclick"/>
  <action name="doubleclick_ondoubleclick">switchFullscreen();


  </action>  <include url="%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/sidebar.xml"/><sidebar name="settings"  groupCount="11"     isRealGroup_0="false" totalPanos0="1"  groupName0="get:data[en_pano10_title].content" group0Contents="pano10|" group0MainPano="pano10" SceneName0="pano10" groupMessage0="pano10_title"      isRealGroup_1="false" totalPanos1="1"  groupName1="get:data[en_pano14_title].content" group1Contents="pano14|" group1MainPano="pano14" SceneName1="pano14" groupMessage1="pano14_title"      isRealGroup_2="false" totalPanos2="1"  groupName2="get:data[en_pano15_title].content" group2Contents="pano15|" group2MainPano="pano15" SceneName2="pano15" groupMessage2="pano15_title"      isRealGroup_3="false" totalPanos3="1"  groupName3="get:data[en_pano16_title].content" group3Contents="pano16|" group3MainPano="pano16" SceneName3="pano16" groupMessage3="pano16_title"      isRealGroup_4="false" totalPanos4="1"  groupName4="get:data[en_pano17_title].content" group4Contents="pano17|" group4MainPano="pano17" SceneName4="pano17" groupMessage4="pano17_title"      isRealGroup_5="false" totalPanos5="1"  groupName5="get:data[en_pano18_title].content" group5Contents="pano18|" group5MainPano="pano18" SceneName5="pano18" groupMessage5="pano18_title"      isRealGroup_6="false" totalPanos6="1"  groupName6="get:data[en_pano20_title].content" group6Contents="pano20|" group6MainPano="pano20" SceneName6="pano20" groupMessage6="pano20_title"      isRealGroup_7="false" totalPanos7="1"  groupName7="get:data[en_pano21_title].content" group7Contents="pano21|" group7MainPano="pano21" SceneName7="pano21" groupMessage7="pano21_title"      isRealGroup_8="false" totalPanos8="1"  groupName8="get:data[en_pano11_title].content" group8Contents="pano11|" group8MainPano="pano11" SceneName8="pano11" groupMessage8="pano11_title"      isRealGroup_9="false" totalPanos9="1"  groupName9="get:data[en_pano12_title].content" group9Contents="pano12|" group9MainPano="pano12" SceneName9="pano12" groupMessage9="pano12_title"      isRealGroup_10="false" totalPanos10="1"  groupName10="get:data[en_pano13_title].content" group10Contents="pano13|" group10MainPano="pano13" SceneName10="pano13" groupMessage10="pano13_title"    sbColor="000000" sbColorAlpha="0.70" sbWidth="245" sbAlign="left" startOpened="false" startOpenedMob="true" sbCloseIfnew="true" sbCloseIfnewMob="false" sbIconPosition="center" sbIconAlpha="80" sbIconAlphaSep="false" sbIconAlphaSepVal="90" sbIconOverState="false" sbIconOpenedState="false" sbIconOpenedOverState="false" sbIconPositionX="0" sbIconPositionY="0" sbIconPositionOpenUse="false" sbIconPositionOpen="top" sbIconPositionOpenX="0" sbIconPositionOpenY="0" sbIconHideShowDelay="false" sbIconDelay="6" sbOpenActions="0" sbCloseActions="0" sbMenuType="thumbscont"  sbIconUrl="%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/sidebar_open_black.png"     textFieldUrl="%FIRSTXML%/graphics/textfield.swf"  scrollUrl="%FIRSTXML%/graphics/scrollarea.swf"   scrollAltUrl="%FIRSTXML%/graphics/scrollarea.js"  sbcurrent_PanoTxt="alpo_sidebar_fullsbcurrent_PanoTxt" sbcurrent_PanoTxtFont="trebuchet ms" sbcurrent_PanoTxtFontSize="14" sbcurrent_PanoTxtColor="b7b7b7" sbcurrent_PanoTxtAlpha="0.70" sbcurrent_PanoTxtAlign="center"  sbcurrent_PanoTxtFontItalic=""   sbcurrent_PanoTxtFontBold=""   sbcurrent_PanoTxtFontTD=""  sbcurrent_PanoNameTxtColor="eeeeee" sbcurrent_PanoNameTxtSize="18"  sbcurrent_PanoNameTxtDecorU1="" sbcurrent_PanoNameTxtDecorU2=""   sbcurrent_PanoNameTxtDecorB1="" sbcurrent_PanoNameTxtDecorB2=""   sbcurrent_PanoNameTxtDecorI1="" sbcurrent_PanoNameTxtDecorI2=""  sbOpenCloseUseOpener="false" sbOpenCloseUseButton="true" sbContextMenuItem="false" sbZorder="98"/><style name="sbBlocks" keep="true" type="container" bgcapture="false" bgalpha="0.0" width="100%" accuracy="1"/>  <style name="sbOpenerST" keep="false"/>  <style name="sbIconST" visible="true"/><style name="scrollareaDescr" keep="true" devices="html5" url="get:sidebar[settings].scrollAltUrl" direction="v" draggable="true" mwheel="true" onhover_autoscrolling="false" overscroll="0.5" friction="0.95" acceleration="0.08" returnacceleration="0.15" momentum="0.06" accuracy="1" align="top" width="100%"/><events name="sbBlocksHEv" keep="true" onxmlcomplete="delayedcall(0, sbBlocksHEvAct());"/><action name="sbBlocksHEvAct">   calcBlock1H();    calcBlock2H();    calcBlock3H();     if(layer[backBtn].visible, calc(layer[scrolLayer].height, layer[calc(layer[scrolLayer].parent)].height - layer[backBtn].height - (layer[scrolLayer].y - layer[backBtn].height) ); , set(layer[scrolLayer].height, 100%); ); set(events[sbBlocksHEv].onresize, sbBlocksHEvAct());</action>  <style name="sbBlock1ST" parent="sb" align="top" minheight="80" maxheight="80" y="30"  /><layer name="sbBlock1" style="sbBlocks|sbBlock1ST"/><action name="calcBlock1H">calc(layer[sbBlock1].height, 25 * stageheight * 0.01); if(layer[sbBlock1].height LT layer[sbBlock1].minheight AND layer[sbBlock1].minheight != 0, copy(layer[sbBlock1].height, layer[sbBlock1].minheight); ); if(layer[sbBlock1].height GT layer[sbBlock1].maxheight AND layer[sbBlock1].maxheight != 0, copy(layer[sbBlock1].height, layer[sbBlock1].maxheight); ); calc(layer[sbBlock1].realBlockY, 0 + 30);</action>   <style name="sbBlock2ST" parent="sbBlock1" align="bottom" edge="top" minheight="0" maxheight="0" y="-30"  /><layer name="sbBlock2" style="sbBlocks|sbBlock2ST"/><action name="calcBlock2H">calc(layer[sbBlock2].height, 55 * stageheight * 0.01); if(layer[sbBlock2].height LT layer[sbBlock2].minheight AND layer[sbBlock2].minheight != 0, copy(layer[sbBlock2].height, layer[sbBlock2].minheight); ); if(layer[sbBlock2].height GT layer[sbBlock2].maxheight AND layer[sbBlock2].maxheight != 0, copy(layer[sbBlock2].height, layer[sbBlock2].maxheight); ); calc(layer[sbBlock2].realBlockY, layer[sbBlock1].realBlockY + layer[sbBlock1].height + 30);</action>   <style name="sbBlock3ST" parent="sbBlock2" align="bottom" edge="top" minheight="0" maxheight="0" y="-0"  /><layer name="sbBlock3" style="sbBlocks|sbBlock3ST"/><action name="calcBlock3H">calc(layer[sbBlock3].height, 20 * stageheight * 0.01); if(layer[sbBlock3].height LT layer[sbBlock3].minheight AND layer[sbBlock3].minheight != 0, copy(layer[sbBlock3].height, layer[sbBlock3].minheight); ); if(layer[sbBlock3].height GT layer[sbBlock3].maxheight AND layer[sbBlock3].maxheight != 0, copy(layer[sbBlock3].height, layer[sbBlock3].maxheight); ); calc(layer[sbBlock3].realBlockY, layer[sbBlock2].realBlockY + layer[sbBlock2].height + 0);</action>               <style name="sbLogoST" keep="true" url="" align="top" alpha="0" width="100%" height="prop" handcursor="true" accuracy="1" parent="sbBlock1" onclick="sbOnClickLogo()"/>                         <style name="current_PanoNameUseST" url="" keep="false"/>              <include url="%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/menutype/thumbscont.xml"/><style name="scrolLayerST" keep="true" type="container" align="top" parent="sbBlock2" accuracy="1" width="0" height="100%"/>                                    <style name="sbButtonsContST" parent="sbBlock3" keep="true" type="container" align="center" bgalpha="0.0" bgcapture="false" maskchildren="true" maxwidth="get:layer[sb].width"/><style name="sbButtonsST" keep="true" type="container" bgcapture="true" accuracy="1" maskchildren="true" parent="sbButtonsCont" align="lefttop"/><style name="sbButtonIconST" keep="true" x="0" y="0" accuracy="1" align="center" enabled="false" onloaded="sbSetIconScaling(get(name),80)"/><style name="sbButtonsCommonST" width="40" height="40" width.tablet="32" height.tablet="28" width.mobile="32" height.mobile="28" bgcolor="0x0cffa2" bgalpha="0.00" bgroundedge="5" bgroundedge.tablet="5" bgroundedge.mobile="5"  onout="hideTooltip();" visible="false" autoalpha="true" alpha="0" onloaded="delayedcall(0.5, tween(layer[get(name)].alpha, 1))"/> <action name="sbSetIconScaling">if(layer[%1].imagewidth GT layer[%1].imageheight, txtadd(layer[%1].width, %2, '%'); set(layer[%1].height, prop); , txtadd(layer[%1].height, %2, '%'); set(layer[%1].width, prop); );</action><action name="sbButtonToggle">if(sbButton%1FirstClicked == false OR sbButton%1FirstClicked === null, set(sbButton%1FirstClicked, true); copy(layer[sbButton%1icon].url, layer[sbButton%1icon].urlState2); sbButton%1ClickFirst(); , set(sbButton%1FirstClicked, false); copy(layer[sbButton%1icon].url, layer[sbButton%1icon].urlState1); sbButton%1ToggleClick(); );</action>               <layer name="sbButton1" style="sbButtonsST|sbButtonsCommonST" onclick="sbButton1ClickFirst()"  x="0" y="0"  x.tablet="0" y.tablet="0"   x.mobile="0" y.mobile="0"        /> <layer name="sbButton1icon" style="sbButtonIconST" url="%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/facebook_white.png" parent="sbButton1" urlState1="%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/facebook_white.png" urlState2="%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/"  />  <action name="sbButton1ClickFirst"> getmessage(urltoopen,alpo_sidebar_fullsbButton1Action101101812openurlwebsiteurl);openurl(get(urltoopen),_blank);

  </action>                <layer name="sbButton2" style="sbButtonsST|sbButtonsCommonST" onclick="sbButton2ClickFirst()"  x="45" y="0"  x.tablet="37" y.tablet="0"   x.mobile="37" y.mobile="0"        /> <layer name="sbButton2icon" style="sbButtonIconST" url="%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/twitter_white.png" urlState1="%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/twitter_white.png" urlState2="%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/" parent="sbButton2"  />  <action name="sbButton2ClickFirst"> getmessage(urltoopen,alpo_sidebar_fullsbButton2Action101101193openurlwebsiteurl);openurl(get(urltoopen),_blank);

 </action>                    <layer name="sbButton3" style="sbButtonsST|sbButtonsCommonST" onclick="sbButton3ClickFirst()"  x="90" y="0"  x.tablet="74" y.tablet="0"   x.mobile="74" y.mobile="0"        /> <layer name="sbButton3icon" style="sbButtonIconST" url="%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/instigram_white.png" parent="sbButton3" urlState1="%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/instigram_white.png" urlState2="%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/"  />  <action name="sbButton3ClickFirst"> getmessage(urltoopen,alpo_sidebar_fullsbButton3Action101101973openurlwebsiteurl);openurl(get(urltoopen),_blank);

  </action>                                <layer name="sbButtonsCont" style="sbButtonsContST" width="1" height="1" onloaded="if(device.desktop,sbButtonsContgetW( 135 ,0 ,5 ,0 ,0 ,40  ); );  if(device.tablet,sbButtonsContgetW_TAB( 111 ,0 ,5 ,0 ,0 ,28  ); );   if(device.mobile,sbButtonsContgetW_MOB( 111 ,0 ,5 ,0 ,0 ,28  ); );  sbButtonsContSetOffset(); sbButtondContSetMinHeight(sbBlock3); "/><action name="sbButtonsContgetW">if(%1 GE %2, sub(layer[sbButtonsCont].width, %1, %3);  , sub(layer[sbButtonsCont].width, %2, %3);  ); if(%5 GT 0, add(layer[sbButtonsCont].height, %5, %6);  , add(layer[sbButtonsCont].height, %4, %6);  );</action><action name="sbButtonsContgetW_TAB">if(%1 GE %2, sub(layer[sbButtonsCont].width, %1, %3);  , sub(layer[sbButtonsCont].width, %2, %3);  ); if(%5 GT 0, add(layer[sbButtonsCont].height, %5, %6);  , add(layer[sbButtonsCont].height, %4, %6);  );</action><action name="sbButtonsContgetW_MOB">if(%1 GE %2, sub(layer[sbButtonsCont].width, %1, %3);  , sub(layer[sbButtonsCont].width, %2, %3);  ); if(%5 GT 0, add(layer[sbButtonsCont].height, %5, %6);  , add(layer[sbButtonsCont].height, %4, %6);  );</action><action name="sbButtonsContSetOffset">if(layer[sbButtonsCont].align != top AND layer[sbButtonsCont].align != center AND layer[sbButtonsCont].align != bottom, set(layer[sbButtonsCont].x, 0); );</action><action name="sbButtondContSetMinHeight">if(layer[%1].minheight LT layer[sbButtonsCont].height, copy(layer[%1].minheight, layer[sbButtonsCont].height); );</action><sidebar name="settings" sbUseMainMenu="true"/><sidebar name="settings" sbUseLogo="true"  /><sidebar name="settings" sbUseLogo2="false"  /><sidebar name="settings" current_PanoNameUse="false" /><sidebar name="settings" useButtons="true" /><events name="alpoSBinitEV" keep="true" onxmlcomplete="alpoSBinit"/><plugin name="alpoSB" devices="html5" keep="true" url="%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/js/alpo.sidebar.js"/><action name="alpoSBinit" type="Javascript"><![CDATA[ window.alpoSB={ plugID : 'alpo_sidebar_full', plugDir : 'listers healthdata/graphics/alpo.sidebar-v1.0.72', flags : {}, font : '', jsonData : '{ "project" : { "data" : { "dataDir" : "listers healthdata", "bgClr" : "#ffffff", "fgClr" : "#000000", "groupsCount" : 11 }, "groups" : [  { "id" : "panogroup297", "title" : "panogroup297_title", "description" : "panogroup297_description", "url" : "%FIRSTXML%/_1_reception_10/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/panogroup297.png", "color" : "#808080", "real" : false, "panoCount" : 1, "mainPano" : "pano10", "panoramas" : [  { "id" : "pano10", "parentID" : "panogroup297", "title" : "pano10_title", "description" : "pano10_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/pano10.png", "url" : "%FIRSTXML%/_1_reception_10/thumbnail.jpg" }  ] },  { "id" : "panogroup298", "title" : "panogroup298_title", "description" : "panogroup298_description", "url" : "%FIRSTXML%/_2_lounge_14/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/panogroup298.png", "color" : "#808080", "real" : false, "panoCount" : 1, "mainPano" : "pano14", "panoramas" : [  { "id" : "pano14", "parentID" : "panogroup298", "title" : "pano14_title", "description" : "pano14_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/pano14.png", "url" : "%FIRSTXML%/_2_lounge_14/thumbnail.jpg" }  ] },  { "id" : "panogroup22", "title" : "panogroup22_title", "description" : "panogroup22_description", "url" : "%FIRSTXML%/_3_lounge_2_15/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/panogroup22.png", "color" : "#808080", "real" : false, "panoCount" : 1, "mainPano" : "pano15", "panoramas" : [  { "id" : "pano15", "parentID" : "panogroup22", "title" : "pano15_title", "description" : "pano15_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/pano15.png", "url" : "%FIRSTXML%/_3_lounge_2_15/thumbnail.jpg" }  ] },  { "id" : "panogroup299", "title" : "panogroup299_title", "description" : "panogroup299_description", "url" : "%FIRSTXML%/_4_infuse_beauty_room_16/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/panogroup299.png", "color" : "#808080", "real" : false, "panoCount" : 1, "mainPano" : "pano16", "panoramas" : [  { "id" : "pano16", "parentID" : "panogroup299", "title" : "pano16_title", "description" : "pano16_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/pano16.png", "url" : "%FIRSTXML%/_4_infuse_beauty_room_16/thumbnail.jpg" }  ] },  { "id" : "panogroup28", "title" : "panogroup28_title", "description" : "panogroup28_description", "url" : "%FIRSTXML%/_5_infuse_treatment_r_17/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/panogroup28.png", "color" : "#808080", "real" : false, "panoCount" : 1, "mainPano" : "pano17", "panoramas" : [  { "id" : "pano17", "parentID" : "panogroup28", "title" : "pano17_title", "description" : "pano17_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/pano17.png", "url" : "%FIRSTXML%/_5_infuse_treatment_r_17/thumbnail.jpg" }  ] },  { "id" : "panogroup300", "title" : "panogroup300_title", "description" : "panogroup300_description", "url" : "%FIRSTXML%/_6_infuse_treatment_r_18/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/panogroup300.png", "color" : "#808080", "real" : false, "panoCount" : 1, "mainPano" : "pano18", "panoramas" : [  { "id" : "pano18", "parentID" : "panogroup300", "title" : "pano18_title", "description" : "pano18_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/pano18.png", "url" : "%FIRSTXML%/_6_infuse_treatment_r_18/thumbnail.jpg" }  ] },  { "id" : "panogroup301", "title" : "panogroup301_title", "description" : "panogroup301_description", "url" : "%FIRSTXML%/_8_main_gym_2_20/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/panogroup301.png", "color" : "#808080", "real" : false, "panoCount" : 1, "mainPano" : "pano20", "panoramas" : [  { "id" : "pano20", "parentID" : "panogroup301", "title" : "pano20_title", "description" : "pano20_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/pano20.png", "url" : "%FIRSTXML%/_8_main_gym_2_20/thumbnail.jpg" }  ] },  { "id" : "panogroup302", "title" : "panogroup302_title", "description" : "panogroup302_description", "url" : "%FIRSTXML%/_9_main_gym_3_21/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/panogroup302.png", "color" : "#808080", "real" : false, "panoCount" : 1, "mainPano" : "pano21", "panoramas" : [  { "id" : "pano21", "parentID" : "panogroup302", "title" : "pano21_title", "description" : "pano21_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/pano21.png", "url" : "%FIRSTXML%/_9_main_gym_3_21/thumbnail.jpg" }  ] },  { "id" : "panogroup31", "title" : "panogroup31_title", "description" : "panogroup31_description", "url" : "%FIRSTXML%/_10_main_gym_4_11/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/panogroup31.png", "color" : "#808080", "real" : false, "panoCount" : 1, "mainPano" : "pano11", "panoramas" : [  { "id" : "pano11", "parentID" : "panogroup31", "title" : "pano11_title", "description" : "pano11_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/pano11.png", "url" : "%FIRSTXML%/_10_main_gym_4_11/thumbnail.jpg" }  ] },  { "id" : "panogroup24", "title" : "panogroup24_title", "description" : "panogroup24_description", "url" : "%FIRSTXML%/_11_weights___workout_12/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/panogroup24.png", "color" : "#808080", "real" : false, "panoCount" : 1, "mainPano" : "pano12", "panoramas" : [  { "id" : "pano12", "parentID" : "panogroup24", "title" : "pano12_title", "description" : "pano12_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/pano12.png", "url" : "%FIRSTXML%/_11_weights___workout_12/thumbnail.jpg" }  ] },  { "id" : "panogroup25", "title" : "panogroup25_title", "description" : "panogroup25_description", "url" : "%FIRSTXML%/_12_studio_13/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/panogroup25.png", "color" : "#808080", "real" : false, "panoCount" : 1, "mainPano" : "pano13", "panoramas" : [  { "id" : "pano13", "parentID" : "panogroup25", "title" : "pano13_title", "description" : "pano13_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/pano13.png", "url" : "%FIRSTXML%/_12_studio_13/thumbnail.jpg" }  ] }  ] }, "plugin" : { "includes" : { "textfield" : "%FIRSTXML%/graphics/textfield.swf", "scrollarea" : "%FIRSTXML%/graphics/scrollarea.js" }, "settings" : { "sb" : { "width" : 245, "specifyWidth" : false,  "color" : "000000", "alpha" : 0.00, "align" : "left", "zorder" : 98, "startOpened" : false, "startOpenedMob" : true, "closeIfnew" : true, "closeIfnewMob" : false, "menuType" : "thumbscont", "openerUse" : false, "contextMenuUse" : false }, "btn" : { "use" : true, "position" : "center", "alpha" : 80, "alphaOpenUse" : false, "alphaOpen" : 90, "overStateUse" : false, "openStateUse" : false, "openOverStateUse": false, "posX" : "0", "posY" : "0", "posOpenUse" : false, "posOpen" : "top", "posXOpen" : "0", "posYOpen" : "0", "showHideDelayUse": false, "showHideDelay" : 6, "sbOpenActions" : 0, "sbCloseActions" : 0, "url" :  "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/sidebar_open_black.png" , "urlOver" : "", "urlOpen" : "", "urlOpenOver" : "" }, "currentPano" : { "text" : "alpo_sidebar_fullsbcurrent_PanoTxt", "font" : "trebuchet ms", "fontSize" : 14, "color" : "b7b7b7", "alpha" : "0.70", "align" : "center", "italic" : "", "bold" : "", "underline" : "", "colorName" : "eeeeee", "fontSizeName" : "18", "italicNameUse" : "false", "boldNameUse" : "false", "underlineNameUse" : "false" }, "menu" : [ { "menuType" : "thumbscont", "thumbsContMargin" : 5, "tcScrollHeight" : 56, "tcScrollVSpace" : 0, "tcScrollXOffset": 0, "tcScrollMenuW" : 243   , "advTCMenuMobSets": { "tcScrollHeight" : 44, "tcScrollVSpace" : 3, "tcScrollXOffset" : 0, "tcScrollMenuW" : 243 }  }, { "menuType" : "hierarchical", "activeMenuHr" : false, "excludePano" : "", "groupAsText" : true, "panoAsText" : false, "custAsText" : false, "width" : 203, "height" : 50, "vSpace" : 5, "xOffset" : 20,   "loadMainPano" : false, "loadMainOpen" : false, "bgrColor" : "0x111111", "bgrAlpha" : 0.60, "txtOffsetL" : 10, "txtOffsetR" : 0, "txtAlign" : "left", "font" : "arial", "fontSize" : 13, "color" : "eeeeee", "italic" : " font-style:normal; ", "bold" : " font-weight:normal; ", "underline" : " text-decoration:none; ", "overStateUse" : false, "overColorUse" : true, "overColor" : "0x000000", "overAlpha" : 0.30, "itemIconUse" : true, "itemIconDflt" : true, "itemIcon" : "", "itemIconOffsetX" : "0", "itemIconOffsetY" : "0", "itemIconScale" : 100, "itemIconAlign" : "right", "itemIconSpecify" : false,  "itemBorderUse" : true, "itemBorder" : "0,0,1,0 0xeeeeee 0.60", "itemBorderT" : 0, "itemBorderR" : 0, "itemBorderB" : 1, "itemBorderL" : 0, "thumbPos" : "top", "thumbTxtPadT" : 15, "thumbTxtPadB" : 15, "thumbHeight" : 50, "thumbVStxtMarg" : 5, "thumbAlign" : "left", "thumbHorizOff" : 10,   "backBtn" : { "height" : 32, "width" : 245,   "bottomMarg" : 0, "align" : "lefttop", "bgrUse" : true, "bgrColor" : "0x0b0b0b", "bgrAlpha" : 0.40, "bgrChange" : true, "bgrChangeColor" : "0x0cffa2", "bgrChangeAlpha" : 0.50, "txtUse" : true, "txtSrc" : "group", "font" : "arial", "fontSize" : 14, "fontColor" : "eeeeee", "txtAlign" : "left", "txtVcenter" : true, "paddingT" :  0 , "paddingB" :  0 , "paddingR" : 8, "paddingL" : 30, "iconUse" : true, "iconWidth" : 24, "iconHeight" : 24, "iconUrl" : "  %FIRSTXML%/graphics/alpo.sidebar-v1.0.72/graphics/arr_back_left.png  ", "italic" : "  font-style:normal;  ", "bold" : "  font-weight:normal;  ", "underline" : "  text-decoration:none;  " }, "scrollInd" : { "use" : false, "color" : "0x505050", "alpha" : 1.00, "width" : 8, "zorder" : 98, "barUse" : false, "barColor" : "0x353526", "barAlpha" : 0.50 }, "scrollBtns" : { "use" : false, "width" : "20", "height" : "18", "scale" : 100, "bgcolor" : "0x505050", "bgalpha" : 1.00, "align" : "left", "zorder" : 98, "overStateUse" : true, "bgrOverColor" : "0x1a1a1a", "bgrOverAlpha" : 0.90, "iconOverAlpha" : 30, "iconDflt" : true, "iconFileT" : "", "iconFileB" : "", "iconAlpha" : 50 } } ], "customItemsSet" : { "menuOrganize" : "dflt", "ignoreRest" : true } }, "customSet" : [  { "title" : "alpo_sidebar_fullitemName", "image" : "", "elemIndex" : 0, "custom" : true, "isChild" : false, "subItemsInd" : "", "subGroupsColor" : "808080", "subPanoIDs" : "", "itemActions" :  ""  }  ] } } ' }; krpano.set('events[alpoSBinitEV].onxmlcomplete', null); ]]></action> <sidebar name="settings" loadGroupMainPano="false" sbThumbsContMargin="5" sbThumbsCloseIfnew="true" sbPanoContDescrUse="false" sbPanoContNameUse="false" sbPanoContNameSingleUse="false" sbPanoNameFontAlign="center"  sbPanoChooseContCloseUrl="%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/graphics/sb_close_w.png"  sbPanoContCloseAlpha="90" sbPanoContCloseScale="80" overAnimUse="true"  overAnimColor="true" overColor="000000" overColorAlpha="0.50"   overAnimLineColor="true" overLineColor="ffffff" overLineColorAlpha="0.60" overLineWidth="3"  sbScrollAreaHeight="56" sbScrollAreaVSpace="0" sbScrollAreaNameWidth="243" sbScrollNameTxtBgrColor="000000" sbScrollNameTxtBgrAlpha="0.30" sbPanoNameTxtLeftPadding="0" sbPanoNameTxtRightPadding="0" sbScrollAreaXOffset="0" sbPanoNameFont="trebuchet ms" sbPanoNameFontSize="12" sbPanoContNumOfTotalTxtSize="12" sbPrefixTotal="alpo_sidebar_fullsbPrefixTotal"  sbPanoContNumOfTotalColor="eeeeee"  sbPanoContNameUseFontSize="16" sbPanoNameFontColor="eeeeee" sbPanoContNameUsePosition="center"    sbPanoContNameUseAlign="top"  sbPanoContNameUseOffset="0" sbDisplayPanoTotalInGr=""  sbPanoNameFontItalic="font-style&#58;normal&#59;"   sbPanoNameFontBold="font-weight&#58;normal&#59;"   sbPanoNameFontTD="text-decoration&#58;none&#59;"   sbScrolling="true" sbScrollingColor="eeeeee" sbScrollingAlpha="0.70"  sbScrollingBar="true" sbScrollingBarColor="72be44" sbScrollingBarAlpha="0.00"  sbScrollIndicatorW="4"  sbPanoContNumOfTotal="false" sbPanoContOverlay="true" sbPanoContEye="true" sbPanoContThumbsBottomMargin="3" sbSinglePanoClick="true" sbMarkCurrentGroup="false" sbSyncExternalLoad="false" sbThumbsCloseIfnewIfClosed="false" delayOfSyncExternal="0.5" sbScrlBtnsUse="false"  sbTcMenuItemBorder="true"  sbTcMenuItemBorderSet="0,0,2,0 0xeeeeee 0.60"  itemTcBorderContW="243" itemTcBorderContH="54" itemTcBorderContXoff="0" itemTcBorderContYoff="0"/> <krpano devices="mobile"><sidebar name="settings" sbLightBoxed="false" sbCloseSBinLBStyle="false" sbOpenSBinLBStyle="false"/></krpano><layer name="sbScrollIndicatorBar" keep="true" parent="scrolLayer" type="container" style="sbScrollIndicatorBarST" width="4" height="100%" bgcolor="0x72be44" bgalpha="0.00" bgcapture="false" accuracy="1" x="0" y="0" visible="false" zorder="get:sidebar[settings].sbZorder"/><style name="sbScrollIndicatorBarST" align="lefttop"/> <layer name="sbScrollIndicator" keep="true" parent="scrolLayer" type="container" style="sbScrollIndicatorST" width="4" height="15" bgcolor="0xeeeeee" bgalpha="0.70" bgcapture="false" accuracy="1" x="0" y="0" zorder="get:sidebar[settings].sbZorder" visible="false"/><style name="sbScrollIndicatorST" align="lefttop"/> <style name="sbPanoDisplay_closeST" align="righttop"/><style name="sbPanoDisplayST" align="lefttop" bgcolor="0x000000" bgalpha="0.70"/><style name="sbPanoThumbInner" margin="3"/><style name="sbPanoThumbInnerInner" bgcolor="0x000000" bgalpha="0.6"/><style name="sboneOfTotalST" keep="false"/>  <style name="sbEyeMark" keep="true" url="%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/graphics/sb_eye.png"/>   <action name="sbThumbsCloseIfnewCallAct"> sbThumbsCloseIfnewAct();</action>     <style name="scrlBtnsMenuBgrST" keep="true" type="container" height="37" width="100%" parent="scrolLayer" bgcapture="true" bgcolor="0x1a1a1a" bgalpha="1.00" visible="false" alpha="0" autoalpha="true" zorder="get:sidebar[settings].sbZorder" ondown.mouse="pressToScrollMenu(calc(layer[get(name)].direction == top ? '+1' : '-1'))" onup.mouse=""  onover="scrlBtnsMenuBgOver( get(layer[get(name)].direction), 0x72be44, 1.00, calc(100 * 0.01) )" onout="scrlBtnsMenuBgOut( get(layer[get(name)].direction), 0x1a1a1a, 1.00, calc(50 * 0.01) )" ondown.no-mouse="scrlBtnsMenuBgOver( get(layer[get(name)].direction), 0x72be44, 1.00, calc(100 * 0.01) ); pressToScrollMenu(calc(layer[get(name)].direction == top ? '+1' : '-1'))" onup.no-mouse="scrlBtnsMenuBgOut( get(layer[get(name)].direction), 0x1a1a1a, 1.00, calc(50 * 0.01) )"/><style name="scrlBtnsMenuST" keep="true" align="center" enabled="false" alpha="calc:50 * 0.01"/><action name="pressToScrollMenu">asyncloop( pressed, layer[scrollarea].scrollby(0,%1) );</action><action name="scrlBtnsMenuBgOver">tween(layer[scrlBtnsMenuBgr%1].bgcolor|layer[scrlBtnsMenuBgr%1].bgalpha|layer[scrlBtnsMenu%1].alpha, %2|%3|%4, 0.6, easeOutCubic);</action><action name="scrlBtnsMenuBgOut">tween(layer[scrlBtnsMenuBgr%1].bgcolor|layer[scrlBtnsMenuBgr%1].bgalpha|layer[scrlBtnsMenu%1].alpha, %2|%3|%4, 0.6, easeOutCubic);</action><layer name="scrlBtnsMenuBgrtop" style="scrlBtnsMenuBgrST" direction="top" align="top"/><layer name="scrlBtnsMenutop" style="scrlBtnsMenuST" parent="scrlBtnsMenuBgrtop" rotate="90" url="%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/graphics/arr_top.png"/>  <layer name="scrlBtnsMenuBgrbottom" style="scrlBtnsMenuBgrST" direction="bottom" align="bottom"/><layer name="scrlBtnsMenubottom" style="scrlBtnsMenuST" parent="scrlBtnsMenuBgrbottom" rotate="90" url="%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/graphics/arr_bottom.png"/><action name="appendTHname"> set(thName_pano10, sbPanoThumbInner_0_0); set(thName_pano14, sbPanoThumbInner_1_0); set(thName_pano15, sbPanoThumbInner_2_0); set(thName_pano16, sbPanoThumbInner_3_0); set(thName_pano17, sbPanoThumbInner_4_0); set(thName_pano18, sbPanoThumbInner_5_0); set(thName_pano20, sbPanoThumbInner_6_0); set(thName_pano21, sbPanoThumbInner_7_0); set(thName_pano11, sbPanoThumbInner_8_0); set(thName_pano12, sbPanoThumbInner_9_0); set(thName_pano13, sbPanoThumbInner_10_0);</action>
<!-- ********** -->
<!-- Context menu -->
<!-- id : contextmenu -->
<!-- ********** -->
  <contextmenu fullscreen="false" versioninfo="false" touch="true">
    <item name="website1" onclick="getmessage(urltoopen,contextmenuwebsiteurl1);openurl(get(urltoopen),_blank);" />
    <item name="normal"        onclick="setViewNormal();
" separator="true"/>
    <item name="littleplanet"  onclick="setViewLittlePlanet();
"/>
    <item name="fullscreenentry" onclick="enterFullscreen();
" separator="true"/>
  </contextmenu>

  <events name="contextmenuevents" keep="true" 
    onenterfullscreen="updateContextMenu" onexitfullscreen="updateContextMenu" 
    onxmlcomplete="updateContextMenu" 
    changetourlanguage="updateContextMenu" 
    />
  <events name="contextmenuvrevents" keep="true" 
    onvravailable="updateContextMenu();" onvrunavailable="updateContextMenu();"
    devices="html5"
    />
  <action name="updateContextMenu">
    getmessage(contextmenu.item[website1].caption, contextmenuopenwebsitelabel1);
    getmessage(contextmenu.item[normal].caption, contextmenunormallabel);
    set(sceneisfull360, false);
    if(scene[get(xml.scene)].full360,
      sub(viewhfov, panoview.hmax, panoview.hmin);
      if (viewhfov == 360,
        sub(viewvfov, panoview.vmax, panoview.vmin);
        if (viewvfov == 180,
          set(sceneisfull360, true);
        );
      );
    );
    if (sceneisfull360 AND (device.webgl OR device.flash),
      set(contextmenu.item[littleplanet].visible, true);
      getmessage(contextmenu.item[littleplanet].caption, contextmenulittleplanetlabel);
    ,
      set(contextmenu.item[littleplanet].visible, false);
    );
    if (device.fullscreensupport,
      if(tour_fullscreen,
        getmessage(contextmenu.item[fullscreenentry].caption, contextmenucloseFsLabel);
        set(contextmenu.item[fullscreenentry].onclick, exitFullscreen();
);
       ,
        getmessage(contextmenu.item[fullscreenentry].caption, contextmenuopenFsLabel);
        set(contextmenu.item[fullscreenentry].onclick, enterFullscreen();
);
      );
     ,
      set(contextmenu.item[fullscreenentry].visible, false);
    );
  </action>

<!-- ********** -->
<!-- Call actions on tour events -->
<!-- id : callActionsOnTourEvents -->
<!-- ********** -->
    <events name="callActionsOnTourEventsevents" keep="true"
            onendlittleplanetintroduction="callActionsOnTourEventsonlittleplanetend()"
            openvideointerface="callActionsOnTourEventsopenvideointerface();"
            onxmlcomplete="callActionsOnTourEvents_applyvideoevent();"

     />



    <action name="callActionsOnTourEventsonlittleplanetend">
sidebarcloseaction();


    </action>





    <action name="callActionsOnTourEventsopenvideointerface">
sidebarcloseaction();


    </action>
    <action name="callActionsOnTourEvents_applyvideoevent">
        if(scene[get(xml.scene)].video == true,
            if(scene[get(xml.scene)].scenevideoloop == false,
                <!-- force the video scene plugin to tell that it impact the onvideocomplete standard event -->
                set(scene[get(xml.scene)].scenevideoendaction, true);
                set(plugin[ptvideosceneplayer].onvideocomplete, callActionsOnTourEventsonvideocomplete(););
            );
        );
    </action>
    <action name="callActionsOnTourEventsonvideocomplete">
        pause();
        set(scene[get(xml.scene)].scenevideoendaction, false);
loadNextScene();
setViewLittlePlanet();



    </action>
 <!-- ********** --> <!-- 360Images CoOL Hotspots Plugin --> <!-- CoOL Hotspots --> <!-- id : cool_hotspot --> <!-- ********** -->    <include url="%FIRSTXML%/graphics/coolhotspots.xml"/>        <style 	cooltype="customicon"  	name="Default Point Spot Style 1" 	type="container"  	width="0"  	height="0"  	bgcolor="0xffffff" 	bgalpha="1"  	bgcapture="true"  	accuracy="1"  	edge="bottom"  	ttalign="top" 	ttedge="bottom" 	 	onover="hidebbhs();set(zorder,20);if(layer[get(permanentTooltipForSpot)].html, 	tween(layer[get(permanentTooltipForSpot)].oy,calc(-10 - 150)); 	); 	"  	  	onout="set(zorder,2);if(layer[get(permanentTooltipForSpot)].html, 	tween(layer[get(permanentTooltipForSpot)].oy,calc(-10 - 50)); 	); 	 	"  	ondown.touch="onover();" 	 	onloaded=" 	txtadd(hotspot[get(name)].permanentTooltipForSpot, get(tooltip), '_permanent'); 	delayedcall(0.1, 	if(layer[get(permanentTooltipForSpot)].html, 		set(layer[get(permanentTooltipForSpot)].ox,0); 		set(layer[get(permanentTooltipForSpot)].oy,calc(-10 - 50)); 		); 	); 	 	txtadd(mybubble,'bubble',get(name)); 	addlayer(get(mybubble)); 	copy(hotspot[get(name)].mybubble,mybubble); 	layer[get(mybubble)].loadstyle(cool_hotspotcustomicon); 	txtadd(parentlayer,'hotspot[',get(name),']'); 	copy(layer[get(mybubble)].parent,parentlayer); 	 	txtadd(clickaction,'callwith(hotspot[',get(name),'],onclick)'); 	copy(layer[get(mybubble)].onclick,clickaction); 	 	  " /> <style  	name="cool_hotspotcustomicon"  	           url="%FIRSTXML%/graphics/360imageshotspots/hotspot_plan_sequence_greeen.png"                    height="200"          width="200"            	align="top" 	edge="bottom"  	ondown.touch="callwith(get(parent),onover);" /> <style  	name="cool_hotspotcustomicon_onover"  	           url="%FIRSTXML%/graphics/360imageshotspots/"                    height="200"          width="200"            	align="top" 	edge="bottom"  	alpha="0" 	enabled="false" />  
<action name="setViewLittlePlanet">
	set(sceneisfull360, false);
	if(scene[get(xml.scene)].full360,
		sub(viewhfov, panoview.hmax, panoview.hmin);
		if (viewhfov == 360,
			sub(viewvfov, panoview.vmax, panoview.vmin);
			if (viewvfov == 180,
				set(sceneisfull360, true);
			);
		);
	);
	if (sceneisfull360 AND (device.webgl OR device.flash),
		if(normalViewActivated,stopSetViewTweens(););
		if(current_view_isflat === true,
			setViewNonFlat(VFOV);
		);
		setViewLittlePlanetComplete();
	);
</action>

<action name="setViewLittlePlanetComplete">
	set(backtonormalfirst,false);
	if(view.pannini GE 1.0, set(backtonormalfirst,true));
	if(view.stereographic == false, set(backtonormalfirst,true));
	if(backtonormalfirst, hideTooltip();tween(view.fisheye, 0.0 ,distance(1.0, 0.25), easeOutQuad, WAIT); );
	set(view.stereographic, true);
	set(view.fisheyefovlink, 1.5);
	tween(view.architectural, 0.0, 0.25);
	tween(view.vlookat, 90, distance(179, 1.50));
	tween(view.pannini, 0.0, distance(1.0, 0.75), easeOutQuad, if(panniniViewActivated,restoreViewFromPannini();););
	if(panoview.fovmax LE 150, set(view.fovmax, 150); , set(view.fovmax, get(panoview.fovmax)); );
	tween(view.fisheye, 1.0, distance(1.0, 0.75));
	tween(view.fov, 150, distance(179, 0.75));
</action>

  <!-- Sounds Management -->

  <action name="play3DLocalSounds">
    if (xml.scene, if (scene[get(xml.scene)].haslocalsounds, playpanolocalsounds();););
  </action>
  <action name="stop3DLocalSounds">
    if (xml.scene, if (scene[get(xml.scene)].haslocalsounds, stoppanolocalsounds();););
  </action>
  <action name="resume3DLocalSounds">
    if (xml.scene, if (scene[get(xml.scene)].haslocalsounds, 
      set(kill3dSoundOnResume, true);
      if(layer[displayedStandardVideo],
      if(layer[displayedStandardVideo].pausebgsound,
      if(tour_current_played_video,
        set(kill3dSoundOnResume, false);
      );););
      if(layer[webvideodisplay_player],
      if(layer[webvideodisplay_player].pausebgsound,
      if(tour_current_played_web_video,
        set(kill3dSoundOnResume, false);
      );););
      if(tour_current_played_sound_pausesound,
      if(tour_current_played_sound,
        set(kill3dSoundOnResume, false);
      ););
      if(kill3dSoundOnResume,
        resumepanolocalsounds();
      );
    ););
  </action>
  <action name="pause3DLocalSounds">
    if (xml.scene, if (scene[get(xml.scene)].haslocalsounds, pausepanolocalsounds();););
  </action>
  <action name="set3DLocalSoundsVolume">
    if (xml.scene, if (scene[get(xml.scene)].haslocalsounds, setpanolocalsoundsvolume();););
  </action>
  <action name="playTourSounds">
    set(tour_soundson, true);events.dispatch(playtoursoundsevent);
    resumeTourSoundsActions(true,true,true,true,true);
  </action>
  <action name="stopTourSounds">
    set(tour_soundson, false);events.dispatch(stoptoursoundsevent);
    pauseTourSoundsActions(true,true,true,true,true);
  </action>
  <action name="setTourSoundsVolume">
    set(tour_soundsvolume, %1);events.dispatch(changetoursoundsevent);
    set3DLocalSoundsVolume();
  </action>
  <action name="playTourSoundsActions">
    if(%1,
        play3DLocalSounds();
    );
  </action>
  <action name="stopTourSoundsActions">
    if(%1,
      stop3DLocalSounds();
    );
    if(%3,
      stopVideoActionsSounds();
    );
  </action>
  <action name="resumeTourSoundsActions">
    if(%1,
        resume3DLocalSounds();
    );
    if(%3,
      resumeVideoActionsSounds();
    );
  </action>
  <action name="pauseTourSoundsActions">
    if(%1,
      pause3DLocalSounds();
    );
    if(%3,
      pauseVideoActionsSounds();
    );
  </action>
  <action name="stopVideoActionsSounds">
    if(tour_current_played_video,
      if(layer[displayedStandardVideo],
        layer[displayedStandardVideo].stop();
        removelayer(displayedStandardVideo);
        if(layer[displayedStandardVideoOverlayButton], removelayer(displayedStandardVideoOverlayButton); );
        if(layer[displayedStandardVideoOverlay], removelayer(displayedStandardVideoOverlay); );
        delete(tour_current_played_video);
        set(tour_current_played_video_state, 0);
      );
    );
    if(tour_current_played_web_video,
      displayWebVideoObjectClose();
    );
  </action>
  <action name="resumeVideoActionsSounds">
    if(tour_current_played_video,
      set(resumeVideoActionsVerification, true);
      if(tour_current_played_sound,
        if(tour_current_played_video_state LT tour_current_played_sound_state,
          set(resumeVideoActionsVerification, false);
        );
      );
      if(resumeVideoActionsVerification,
        if (tour_soundson,
          if(device.flash OR (device.webgl AND !device.ios),
            div(volume, tour_soundsvolume, 100);
            set(layer[displayedStandardVideo].volume, get(volume));
          ,
            ifnot(device.ios,
              js(kpanotour.Sounds.startVideosSounds(get(volume)));
            ,
              if(tour_soundsvolume GT 0,
                set(layer[displayedStandardVideo].muted, false);
              ,
                set(layer[displayedStandardVideo].muted, true);
              );
            );
          );
        ,
          if(device.flash OR (device.webgl AND !device.ios),
            set(layer[displayedStandardVideo].volume, 0);
          ,
            ifnot(device.ios,
              js(kpanotour.Sounds.stopVideosSounds());
            ,
              set(layer[displayedStandardVideo].muted, true);
            );
          );
        );
      );
    );
  </action>
  <action name="pauseVideoActionsSounds">
    if(tour_current_played_video,
      if(device.flash OR (device.webgl AND !device.ios),
        set(layer[displayedStandardVideo].volume, 0);
      ,
        ifnot(device.ios,
          js(kpanotour.Sounds.stopVideosSounds());
        ,
          set(layer[displayedStandardVideo].muted, true);
        );
      );
    );
  </action>

  <action name="enableGyroscope">
    changeGyroscopeState(true);
  </action>
  <action name="disableGyroscope">
    changeGyroscopeState(false);
  </action>


<action name="setViewNormal">
	stopSetViewTweens();
	if(current_view_isflat === true,
		setViewNonFlat(VFOV);
	);
	setViewNormalComplete();
</action>

<action name="setViewNormalComplete">
	set(view.fisheyefovlink, 0.5);
	set(view.fovmax, get(panoview.fovmax));
	tween(view.architectural, 0.0, distance(1.0, 0.45));
	tween(view.pannini, 0.0, distance(1.0, 0.45), easeOutQuad, if(panniniViewActivated,restoreViewFromPannini();););
	tween(view.vlookat, get(panoview.v), distance(90, 0.45));
	tween(view.fov, get(panoview.fov), distance(50, 0.45));
	tween(view.fisheye, 0.0, distance(1.0, 0.45),
		set(view.stereographic,false);
	);
</action>

<krpano normalViewActivated="true" />
<action name="stopSetViewTweens">
	stoptween(view.fov);
	stoptween(view.vlookat);
	stoptween(view.fisheye);
	stoptween(view.architectural);
	stoptween(view.pannini);
</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>