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

  <!-- unsupported kind of display : PointMap -->


    
  <!-- Spot Style - showunitone -->


  <style name="Iconshowunitone"
         url="%FIRSTXML%/spots/showunitnl_user_defaultpoint1.png"
         visible="false"
         edge="center"
         alpha="0.8"
         onhover="onhoverIconshowunitone"
         onover="onoverIconshowunitone"
         onout="onoutIconshowunitone"

         height="40"
         width="104"
         />
  <action name="onhoverIconshowunitone">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconshowunitone">
tween(scale, 1.2);
tween(alpha, 1);

  </action>
  <action name="onoutIconshowunitone">
    hideTooltip();
    tween(scale, 1);
    tween(alpha, 0.8);

  </action>



    
  <!-- Spot Style - showunittwo -->


  <style name="Iconshowunittwo"
         url="%FIRSTXML%/spots/showunitnl_user_defaultpoint2.png"
         visible="false"
         edge="center"
         alpha="0.8"
         onhover="onhoverIconshowunittwo"
         onover="onoverIconshowunittwo"
         onout="onoutIconshowunittwo"

         height="40"
         width="104"
         />
  <action name="onhoverIconshowunittwo">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconshowunittwo">
tween(scale, 1.2);
tween(alpha, 1);

  </action>
  <action name="onoutIconshowunittwo">
    hideTooltip();
    tween(scale, 1);
    tween(alpha, 0.8);

  </action>



    
  <!-- Spot Style - glomaccentro -->


  <style name="Iconglomaccentro"
         url="%FIRSTXML%/spots/centronl_user_defaultpoint3.png"
         visible="false"
         edge="center"
         alpha="0.8"
         onhover="onhoverIconglomaccentro"
         onover="onoverIconglomaccentro"
         onout="onoutIconglomaccentro"

         height="46"
         width="120"
         />
  <action name="onhoverIconglomaccentro">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconglomaccentro">
tween(scale, 1.2);
tween(alpha, 1);

  </action>
  <action name="onoutIconglomaccentro">
    hideTooltip();
    tween(scale, 1);
    tween(alpha, 0.8);

  </action>



    
  <!-- Spot Style - glomacamansuria -->


  <style name="Iconglomacamansuria"
         url="%FIRSTXML%/spots/amansurianl_user_defaultpoint4.png"
         visible="false"
         edge="center"
         alpha="0.8"
         onhover="onhoverIconglomacamansuria"
         onover="onoverIconglomacamansuria"
         onout="onoutIconglomacamansuria"

         height="46"
         width="120"
         />
  <action name="onhoverIconglomacamansuria">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconglomacamansuria">
tween(scale, 1.2);
tween(alpha, 1);

  </action>
  <action name="onoutIconglomacamansuria">
    hideTooltip();
    tween(scale, 1);
    tween(alpha, 0.8);

  </action>



    
  <!-- Spot Style - glomacplazakelana -->


  <style name="Iconglomacplazakelana"
         url="%FIRSTXML%/spots/plazanl_user_defaultpoint5.png"
         visible="false"
         edge="center"
         alpha="0.8"
         onhover="onhoverIconglomacplazakelana"
         onover="onoverIconglomacplazakelana"
         onout="onoutIconglomacplazakelana"

         height="46"
         width="120"
         />
  <action name="onhoverIconglomacplazakelana">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconglomacplazakelana">
tween(scale, 1.2);
tween(alpha, 1);

  </action>
  <action name="onoutIconglomacplazakelana">
    hideTooltip();
    tween(scale, 1);
    tween(alpha, 0.8);

  </action>



    
  <!-- Spot Style - glomaconetwoone -->


  <style name="Iconglomaconetwoone"
         url="%FIRSTXML%/spots/_121nl_user_defaultpoint6.png"
         visible="false"
         edge="center"
         alpha="0.8"
         onhover="onhoverIconglomaconetwoone"
         onover="onoverIconglomaconetwoone"
         onout="onoutIconglomaconetwoone"

         height="46"
         width="120"
         />
  <action name="onhoverIconglomaconetwoone">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconglomaconetwoone">
tween(scale, 1.2);
tween(alpha, 1);

  </action>
  <action name="onoutIconglomaconetwoone">
    hideTooltip();
    tween(scale, 1);
    tween(alpha, 0.8);

  </action>



    
  <!-- Spot Style - glomaconetwoonemain -->


  <style name="Iconglomaconetwoonemain"
         url="%FIRSTXML%/spots/_121nl_user_defaultpoint8.png"
         visible="false"
         edge="center"
         alpha="0.8"
         onhover="onhoverIconglomaconetwoonemain"
         onover="onoverIconglomaconetwoonemain"
         onout="onoutIconglomaconetwoonemain"

         height="46"
         width="120"
         />
  <action name="onhoverIconglomaconetwoonemain">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconglomaconetwoonemain">
tween(scale, 1.2);
tween(alpha, 1);

  </action>
  <action name="onoutIconglomaconetwoonemain">
    hideTooltip();
    tween(scale, 1);
    tween(alpha, 0.8);

  </action>



    
  <!-- Spot Style - menaraglomac -->


  <style name="Iconmenaraglomac"
         url="%FIRSTXML%/spots/menaraglomacnl_user_defaultpoint9.png"
         visible="false"
         edge="center"
         alpha="0.8"
         onhover="onhoverIconmenaraglomac"
         onover="onoverIconmenaraglomac"
         onout="onoutIconmenaraglomac"

         height="46"
         width="120"
         />
  <action name="onhoverIconmenaraglomac">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconmenaraglomac">
tween(scale, 1.2);
tween(alpha, 1);

  </action>
  <action name="onoutIconmenaraglomac">
    hideTooltip();
    tween(scale, 1);
    tween(alpha, 0.8);

  </action>



    
  <!-- Spot Style - glomacplazakelanamain -->


  <style name="Iconglomacplazakelanamain"
         url="%FIRSTXML%/spots/plazanl_user_defaultpoint10.png"
         visible="false"
         edge="center"
         alpha="0.8"
         onhover="onhoverIconglomacplazakelanamain"
         onover="onoverIconglomacplazakelanamain"
         onout="onoutIconglomacplazakelanamain"

         height="46"
         width="120"
         />
  <action name="onhoverIconglomacplazakelanamain">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconglomacplazakelanamain">
tween(scale, 1.2);
tween(alpha, 1);

  </action>
  <action name="onoutIconglomacplazakelanamain">
    hideTooltip();
    tween(scale, 1);
    tween(alpha, 0.8);

  </action>



    
  <!-- Spot Style - Landmark -->


  <style name="IconLandmark"
         url="%FIRSTXML%/spots/hotspot_plan_sequence_user_defaultpoint11.png"
         visible="false"
         frame="0"
         lastframe="9"
         framewidth="67"
         frameheight="67"
         stopspotsequence="false"
         crop="0|0|67|67"
         edge="bottom" ox="0" oy="0"
         onloaded="startspotanimation(0.1);showPermanentTooltip(all, bottom);"
         onover="onoverIconLandmark"
         onout="onoutIconLandmark"

         height="25"
         width="25"
         />
  <action name="onoverIconLandmark">
tween(scale, 1.2);


  </action>
  <action name="onoutIconLandmark">
    tween(scale, 1);


  </action>



    
  <!-- Spot Style - Retail -->


  <style name="IconRetail"
         url="%FIRSTXML%/spots/hotspot_plan_sequence_user_defaultpoint0.png"
         visible="false"
         frame="0"
         lastframe="9"
         framewidth="67"
         frameheight="67"
         stopspotsequence="false"
         crop="0|0|67|67"
         edge="bottom" ox="0" oy="0"
         onloaded="startspotanimation(0.1);showPermanentTooltip(all, bottom);"
         onover="onoverIconRetail"
         onout="onoutIconRetail"

         height="25"
         width="25"
         />
  <action name="onoverIconRetail">
tween(scale, 1.2);


  </action>
  <action name="onoutIconRetail">
    tween(scale, 1);


  </action>



    
  <!-- Spot Style - Amenities -->


  <style name="IconAmenities"
         url="%FIRSTXML%/spots/hotspot_plan_sequence_user_defaultpoint12.png"
         visible="false"
         frame="0"
         lastframe="9"
         framewidth="67"
         frameheight="67"
         stopspotsequence="false"
         crop="0|0|67|67"
         edge="bottom" ox="0" oy="0"
         onloaded="startspotanimation(0.1);showPermanentTooltip(all, bottom);"
         onover="onoverIconAmenities"
         onout="onoutIconAmenities"

         height="25"
         width="25"
         />
  <action name="onoverIconAmenities">
tween(scale, 1.2);


  </action>
  <action name="onoutIconAmenities">
    tween(scale, 1);


  </action>



<!-- ********* -->
<!-- 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,
        switch(plugin[gyroscope].enabled);
        set(plugin[gyroscope].activated,true);
        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>


<!-- ********** -->
<!-- Website Box -->
<!-- id : websiteViewer -->
<!-- ********** -->

<ptplugin name="websiteViewer" 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="1" type="int" />
		<option name="draggable_box" value="false" 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="ffffff" type="string" />
		<option name="container_alpha" value="0.80000000000000004" 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="0" type="int" />
		<option name="container_border_color" value="ffffff" type="string" />
		<option name="container_border_alpha" value="1" type="float" />
		<option name="overlay_displayed" value="true" 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="iframe_scrolling" value="auto" type="string" />
		<option name="iframe_default_width" value="1100" type="int" />
		<option name="iframe_default_height" value="800" type="int" />
		<option name="iframe_devices_width" value="1100" type="int" />
		<option name="iframe_devices_height" value="800" type="int" />
		<option name="force_ios_scrolling" value="true" type="bool" />
		<option name="fullscreen_displayed" value="true" type="bool" />
		<option name="fullscreen_position" value="topleft" type="string" />
		<option name="fullscreen_text" value="websiteViewerfullscreen_text" type="string" />




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

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

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

<action name="openWebsite_websiteViewer">
	ifnot(ptplugin[websiteViewer].isOpen,
		set(ptplugin[websiteViewer].isOpen, true);
		set(ptplugin[websiteViewer].doNotDeleteMe, false);
		getmessage(websiteViewer_boxurl, %1);
		txtadd(websiteViewer_boxurl, ?iframe=true);
		pauseautorotation(forceplugin);

		js(invokePluginFunction(websiteViewer, loadSingleArrayItem, get(websiteViewer_boxurl), %2));
		events.dispatch(onremovedisplayedobject);
	,
		if('%1' != websiteViewer_boxurl,
			closeKolorBox_websiteViewer();
			delayedcall(0.3,openWebsite_websiteViewer(%1,%2););
		);
	);
</action>

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


<action name="closeKolorBox_websiteViewer">
	js(invokePluginFunction(websiteViewer, closeKolorBox));
</action>

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

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

<action name="changeLanguage_websiteViewer">
	if(ptplugin[websiteViewer].jsready,
		stopdelayedcall(delay_websiteViewer);
		js(invokePluginFunction(websiteViewer, changeLanguage));
	,
		delayedcall(delay_websiteViewer, 0.1, changeLanguage_websiteViewer(););
	);
</action>

<events name="kolorBoxEvents_websiteViewer" 
	keep="true"
	changetourlanguage="changeLanguage_websiteViewer();"
	/>

<!-- ********** -->
<!-- Hotspots Menu -->
<!-- id : Hotspotsmenu -->
<!-- ********** -->
<!-- Hotspots Menu v 2 - Copyright Panotourplugin.com - 2020 - It is possible to modify the files but it is not allowed to resell the plugin or parts of code. -->
<!-- Code Maurizio Chiocchetti    -->




<include url="%FIRSTXML%/graphics/hotspotmenu/hs_core.xml" />


<krpano Hotspotsmenubuilt="false" Hotspotsmenubackgroundwidthwhenclosed="0" Hotspotsmenubackgroundwidthwhenopened="0"  HotspotsmenuBuildable="false" />


<events name="Hotspotsmenuhide_spot_ev0"
keep="true"
onnewpano="delayedcall(0, Hotspotsmenuhide_spot0(););"
onTourStart="delayedcall(0,if(tour_displayspots,delayedcall(0, Hotspotsmenuhide_spot0(););););"

/>

<action name="Hotspotsmenuhide_spot0">



txtadd(Hotspotsmenustyle_z0, "Icon",Landmark);
    for(set(hideHotspotsStyle_z0,0), hideHotspotsStyle_z0 LT hotspot.count, inc(hideHotspotsStyle_z0),
        set(hideHotspotsStyle_z0name, get(hotspot[get(hideHotspotsStyle_z0)].style));


if(Hotspotsmenuthis0,

        HotspotsmenuShow_show_plugin0(Landmark);
            ,
        HotspotsmenuHide_show_plugin0(Landmark);

      );
    );

  </action>


<action name="Hotspotsmenuopen_auto0" >
</action>

<action name="Hotspotsmenuswitch_auto0" >

  callwith(layer[Hotspotsmenuthumbbar_addimage0],onclick);

</action>

<events name="Hotspotsmenuhide_spot_ev1"
keep="true"
onnewpano="delayedcall(0, Hotspotsmenuhide_spot1(););"
onTourStart="delayedcall(0,if(tour_displayspots,delayedcall(0, Hotspotsmenuhide_spot1(););););"

/>

<action name="Hotspotsmenuhide_spot1">



txtadd(Hotspotsmenustyle_z1, "Icon",Retail);
    for(set(hideHotspotsStyle_z1,0), hideHotspotsStyle_z1 LT hotspot.count, inc(hideHotspotsStyle_z1),
        set(hideHotspotsStyle_z1name, get(hotspot[get(hideHotspotsStyle_z1)].style));


if(Hotspotsmenuthis1,

        HotspotsmenuShow_show_plugin1(Retail);
            ,
        HotspotsmenuHide_show_plugin1(Retail);

      );
    );

  </action>


<action name="Hotspotsmenuopen_auto1" >
</action>

<action name="Hotspotsmenuswitch_auto1" >

  callwith(layer[Hotspotsmenuthumbbar_addimage1],onclick);

</action>

<events name="Hotspotsmenuhide_spot_ev2"
keep="true"
onnewpano="delayedcall(0, Hotspotsmenuhide_spot2(););"
onTourStart="delayedcall(0,if(tour_displayspots,delayedcall(0, Hotspotsmenuhide_spot2(););););"

/>

<action name="Hotspotsmenuhide_spot2">



txtadd(Hotspotsmenustyle_z2, "Icon",Amenities);
    for(set(hideHotspotsStyle_z2,0), hideHotspotsStyle_z2 LT hotspot.count, inc(hideHotspotsStyle_z2),
        set(hideHotspotsStyle_z2name, get(hotspot[get(hideHotspotsStyle_z2)].style));


if(Hotspotsmenuthis2,

        HotspotsmenuShow_show_plugin2(Amenities);
            ,
        HotspotsmenuHide_show_plugin2(Amenities);

      );
    );

  </action>


<action name="Hotspotsmenuopen_auto2" >
</action>

<action name="Hotspotsmenuswitch_auto2" >

  callwith(layer[Hotspotsmenuthumbbar_addimage2],onclick);

</action>


<events name="Hotspotsmenuevents"
          onTourStart="if(get(ssta_ena),HotspotsmenubuildBar(););"
 keep="true"/>

  <action name="HotspotsmenubuildBar">
        ifnot (Hotspotsmenubuilt,
        set(layer[Hotspotsmenubackground].width, get(Hotspotsmenubackgroundwidthwhenopened));
        set(HotspotsmenuBuildable, true);
        set(layer[Hotspotsmenuthumbbar_addimage0].visible,true);
        set(layer[Hotspotsmenuthumbbar_addimage0].url,%FIRSTXML%/graphics/hotspotmenu/landmarkicons.png);
        set(HotspotsmenuBuildable, true);
        set(layer[Hotspotsmenuthumbbar_addimage1].visible,true);
        set(layer[Hotspotsmenuthumbbar_addimage1].url,%FIRSTXML%/graphics/hotspotmenu/retailicons.png);
        set(HotspotsmenuBuildable, true);
        set(layer[Hotspotsmenuthumbbar_addimage2].visible,true);
        set(layer[Hotspotsmenuthumbbar_addimage2].url,%FIRSTXML%/graphics/hotspotmenu/amenitiesicons.png);
        set(Hotspotsmenubuilt, true);
        );
  </action>

 <events name="HotspotsmenuStartEvents"

    onTourStart="showHotspotsmenu();"
    keep="true"
/>

<events name="startstart"
    keep="true"
    onTourStart="Hotspotsmenuscroll();"
/>

<action name="Hotspotsmenuscroll">
delayedcall(1,set(background, get(layer[Hotspotsmenubackground].width));
if(background GT stagewidth,
set(layer[Hotspotsmenubackground].draggable, true);
,
set(layer[Hotspotsmenubackground].draggable, false);
););


addlayer(Hotspotsmenuscroller);
set(layer[Hotspotsmenuscroller].keep,true);
set(layer[Hotspotsmenuscroller].alpha,0);
set(layer[Hotspotsmenuscroller].bgcapture,false);
set(layer[Hotspotsmenuscroller].enabled,true);
set(layer[Hotspotsmenuscroller].autoalpha,true);
set(layer[Hotspotsmenuscroller].visible,false);




set(layer[Hotspotsmenuscroller].x,0);
set(layer[Hotspotsmenuscroller].y,0);
set(layer[Hotspotsmenuscroller].width, 100%);
set(layer[Hotspotsmenuscroller].align,top);
set(layer[Hotspotsmenuscroller].height, 50);
set(layer[Hotspotsmenubackground].direction,h);



set(layer[Hotspotsmenuscroller].type,container);
set(layer[Hotspotsmenuscroller].zorder,4);
set(layer[Hotspotsmenuscroller].maskchildren, true);
set(layer[Hotspotsmenubackground].url,  '%FIRSTXML%/graphics/scrollarea.js');
set(layer[Hotspotsmenubackground].mwheel, );
set(layer[Hotspotsmenubackground].overscroll,50);
set(layer[Hotspotsmenubackground].friction,0.95);
set(layer[Hotspotsmenubackground].acceleration,0.01);
set(layer[Hotspotsmenubackground].returnacceleration,0.05);
set(layer[Hotspotsmenubackground].momentum,0.05);
set(layer[Hotspotsmenubackground].onhover_autoscrolling,);
set(layer[Hotspotsmenubackground].parent,layer[Hotspotsmenuscroller]);
</action>


  <layer name="Hotspotsmenubackground" type="container" keep="true"
        alpha="0"
        autoalpha="true"
        zorder="1"
        visible="false"
        maskchildren="true"
        bgroundedge=""
        bgshadow="1 1 30 0x000000 0.0"
        align="top"
        edge="top"
        />




  <layer name="Hotspotsmenuthumbbar_addimage0"
    onclick="HotspotsmenuShow_show_plugin0(Landmark);"
    onover="tween(alpha,0.8,0.5);"
    onout="tween(alpha,1,0.5);hideTooltip();"
    onhover="showTooltip('plugin', HotspotsmenumenuTooltipStyle, top);"
    visible= "false"
    keep= "true"
    tooltip="Hotspotsmenuttt_o0"
    style="Hotspotsmenu_btn_style"
    width="25"
    height="25"
    parent="layer[Hotspotsmenubackground]"
/>

  <layer name="Hotspotsmenuthumbbar_addimage1"
    onclick="HotspotsmenuShow_show_plugin1(Retail);"
    onover="tween(alpha,0.8,0.5);"
    onout="tween(alpha,1,0.5);hideTooltip();"
    onhover="showTooltip('plugin', HotspotsmenumenuTooltipStyle, top);"
    visible= "false"
    keep= "true"
    tooltip="Hotspotsmenuttt_o1"
    style="Hotspotsmenu_btn_style"
    width="25"
    height="25"
    parent="layer[Hotspotsmenubackground]"
/>

  <layer name="Hotspotsmenuthumbbar_addimage2"
    onclick="HotspotsmenuShow_show_plugin2(Amenities);"
    onover="tween(alpha,0.8,0.5);"
    onout="tween(alpha,1,0.5);hideTooltip();"
    onhover="showTooltip('plugin', HotspotsmenumenuTooltipStyle, top);"
    visible= "false"
    keep= "true"
    tooltip="Hotspotsmenuttt_o2"
    style="Hotspotsmenu_btn_style"
    width="25"
    height="25"
    parent="layer[Hotspotsmenubackground]"
/>




<action name="HotspotsmenuShow_show_plugin0">
set(Hotspotsmenuthis0, true);
txtadd(Hotspotsmenustyle0, "Icon", %1);

for(set(hideHotspotsStylei0,0), hideHotspotsStylei0 LT hotspot.count, inc(hideHotspotsStylei0),


if (hotspot[get(hideHotspotsStylei0)].style == Hotspotsmenustyle0,
        set(hotspot[get(hideHotspotsStylei0)].visible, true);

      );
    );
    set(hotspotstyle[%1].visible, true);
    set(hotspotstyle[%1].realname, Hotspotsmenustyle0);

    set(layer[Hotspotsmenuthumbbar_addimage0].url,%FIRSTXML%/graphics/hotspotmenu/landmarkicons.png);

    set(layer[Hotspotsmenuthumbbar_addimage0].tooltip, Hotspotsmenuttt0);

    set(layer[Hotspotsmenuthumbbar_addimage0].onclick, HotspotsmenuHide_show_plugin0(Landmark));
  </action>
<action name="HotspotsmenuShow_show_plugin1">
set(Hotspotsmenuthis1, true);
txtadd(Hotspotsmenustyle1, "Icon", %1);

for(set(hideHotspotsStylei1,0), hideHotspotsStylei1 LT hotspot.count, inc(hideHotspotsStylei1),


if (hotspot[get(hideHotspotsStylei1)].style == Hotspotsmenustyle1,
        set(hotspot[get(hideHotspotsStylei1)].visible, true);

      );
    );
    set(hotspotstyle[%1].visible, true);
    set(hotspotstyle[%1].realname, Hotspotsmenustyle1);

    set(layer[Hotspotsmenuthumbbar_addimage1].url,%FIRSTXML%/graphics/hotspotmenu/retailicons.png);

    set(layer[Hotspotsmenuthumbbar_addimage1].tooltip, Hotspotsmenuttt1);

    set(layer[Hotspotsmenuthumbbar_addimage1].onclick, HotspotsmenuHide_show_plugin1(Retail));
  </action>
<action name="HotspotsmenuShow_show_plugin2">
set(Hotspotsmenuthis2, true);
txtadd(Hotspotsmenustyle2, "Icon", %1);

for(set(hideHotspotsStylei2,0), hideHotspotsStylei2 LT hotspot.count, inc(hideHotspotsStylei2),


if (hotspot[get(hideHotspotsStylei2)].style == Hotspotsmenustyle2,
        set(hotspot[get(hideHotspotsStylei2)].visible, true);

      );
    );
    set(hotspotstyle[%1].visible, true);
    set(hotspotstyle[%1].realname, Hotspotsmenustyle2);

    set(layer[Hotspotsmenuthumbbar_addimage2].url,%FIRSTXML%/graphics/hotspotmenu/amenitiesicons.png);

    set(layer[Hotspotsmenuthumbbar_addimage2].tooltip, Hotspotsmenuttt2);

    set(layer[Hotspotsmenuthumbbar_addimage2].onclick, HotspotsmenuHide_show_plugin2(Amenities));
  </action>






<action name="HotspotsmenuHide_show_plugin0">
set(Hotspotsmenuthis0, false);

txtadd(Hotspotsmenustyle0, "Icon", %1);


for(set(ShowHotspotsStylei0,0), ShowHotspotsStylei0 LT hotspot.count, inc(ShowHotspotsStylei0),
      if (hotspot[get(ShowHotspotsStylei0)].style == Hotspotsmenustyle0,
        set(hotspot[get(ShowHotspotsStylei0)].visible, false);

      );
    );
    set(hotspotstyle[%1].visible, false);
    set(hotspotstyle[%1].realname, Hotspotsmenustyle0);
set(layer[Hotspotsmenuthumbbar_addimage0].url,%FIRSTXML%/graphics/hotspotmenu/landmarkicons.png);
    set(layer[Hotspotsmenuthumbbar_addimage0].onclick, HotspotsmenuShow_show_plugin0(Landmark));
    set(layer[Hotspotsmenuthumbbar_addimage0].tooltip, Hotspotsmenuttt_o0);
  </action>

<action name="HotspotsmenuHide_show_plugin1">
set(Hotspotsmenuthis1, false);

txtadd(Hotspotsmenustyle1, "Icon", %1);


for(set(ShowHotspotsStylei1,0), ShowHotspotsStylei1 LT hotspot.count, inc(ShowHotspotsStylei1),
      if (hotspot[get(ShowHotspotsStylei1)].style == Hotspotsmenustyle1,
        set(hotspot[get(ShowHotspotsStylei1)].visible, false);

      );
    );
    set(hotspotstyle[%1].visible, false);
    set(hotspotstyle[%1].realname, Hotspotsmenustyle1);
set(layer[Hotspotsmenuthumbbar_addimage1].url,%FIRSTXML%/graphics/hotspotmenu/retailicons.png);
    set(layer[Hotspotsmenuthumbbar_addimage1].onclick, HotspotsmenuShow_show_plugin1(Retail));
    set(layer[Hotspotsmenuthumbbar_addimage1].tooltip, Hotspotsmenuttt_o1);
  </action>

<action name="HotspotsmenuHide_show_plugin2">
set(Hotspotsmenuthis2, false);

txtadd(Hotspotsmenustyle2, "Icon", %1);


for(set(ShowHotspotsStylei2,0), ShowHotspotsStylei2 LT hotspot.count, inc(ShowHotspotsStylei2),
      if (hotspot[get(ShowHotspotsStylei2)].style == Hotspotsmenustyle2,
        set(hotspot[get(ShowHotspotsStylei2)].visible, false);

      );
    );
    set(hotspotstyle[%1].visible, false);
    set(hotspotstyle[%1].realname, Hotspotsmenustyle2);
set(layer[Hotspotsmenuthumbbar_addimage2].url,%FIRSTXML%/graphics/hotspotmenu/amenitiesicons.png);
    set(layer[Hotspotsmenuthumbbar_addimage2].onclick, HotspotsmenuShow_show_plugin2(Amenities));
    set(layer[Hotspotsmenuthumbbar_addimage2].tooltip, Hotspotsmenuttt_o2);
  </action>










<events name="Hotspotsmenueve"
keep="true"
onTourStart="Hotspotsmenu_bb();"
/>

<action name="Hotspotsmenu_bb">
        set(Hotspotsmenubutton_pos, 25);
        set(Hotspotsmenubackgroundwidthwhenclosed, 25);
        set(layer[Hotspotsmenuthumbbar_addimage0].x, get(Hotspotsmenubutton_pos));
        set(layer[Hotspotsmenuthumbbar_addimage0].x, get(Hotspotsmenubutton_pos));
        add(Hotspotsmenunehigth,25, 50 );
        set(layer[Hotspotsmenubackground].height, get(Hotspotsmenunehigth));
        inc(Hotspotsmenubutton_pos, 50);
        set(layer[Hotspotsmenuthumbbar_addimage1].x, get(Hotspotsmenubutton_pos));
        set(layer[Hotspotsmenuthumbbar_addimage1].x, get(Hotspotsmenubutton_pos));
        add(Hotspotsmenunehigth,25, 50 );
        set(layer[Hotspotsmenubackground].height, get(Hotspotsmenunehigth));
        inc(Hotspotsmenubutton_pos, 50);
        set(layer[Hotspotsmenuthumbbar_addimage2].x, get(Hotspotsmenubutton_pos));
        set(layer[Hotspotsmenuthumbbar_addimage2].x, get(Hotspotsmenubutton_pos));
        add(Hotspotsmenunehigth,25, 50 );
        set(layer[Hotspotsmenubackground].height, get(Hotspotsmenunehigth));
        inc(Hotspotsmenubutton_pos, 50);
        set(Hotspotsmenubackgroundwidthwhenopened, get(Hotspotsmenubutton_pos));
        set(layer[Hotspotsmenubackground].width, get(Hotspotsmenubackgroundwidthwhenopened));
</action>

  <action name="hideHotspotsmenu">
if(%1,
tween(layer[Hotspotsmenuscroller].alpha, 0,0);
,
tween(layer[Hotspotsmenubackground].alpha, 0,0.5);
);
tween(layer[Hotspotsmenuscroller].alpha,0,0.5);
  </action>

  <action name="showHotspotsmenu">

        set(displaythegallery_Hotspotsmenu, false);
        
        
        set(displaythegallery_Hotspotsmenu, true);
        
        if (displaythegallery_Hotspotsmenu,
        if(HotspotsmenuBuildable,

        Hotspotsmenuthumbbar_set_visible(true);

        );
        ,
        hideHotspotsmenu();
        );

  </action>

  <action name="Hotspotsmenu_hide_allimages">
Hotspotsmenu_hideimage(HotspotsmenuPicture0);Hotspotsmenu_hideimage(HotspotsmenuPicture1);Hotspotsmenu_hideimage(HotspotsmenuPicture2);
  </action>

  <action name="Hotspotsmenuthumbbar_set_visible">
  tween(layer[Hotspotsmenubackground].alpha, 1,0.5);
  tween(layer[Hotspotsmenuscroller].alpha,1,0.5);

    set(layer[HotspotsmenuPicture0].visible,true);
    set(layer[HotspotsmenuPicture1].visible,true);
    set(layer[HotspotsmenuPicture2].visible,true);


  </action>


<style name="Hotspotsmenu_btn_style"
        keep="true"
        edge="right"
        align="right"
        x="0" y="0"
        width="25" height="25"
        zorder="1"
       />


<style name="Hotspotsmenu_style_text"
        keep="true"
        align=""
        edge=""
        y="0" x="0"
        bgalpha=""
        bgcolor="0x"
        wordwrap="false"
        css="font-size:px;text-align:left; font-family:;padding:px;color:#;"
        zorder="20"
       />


<style name="Hotspotsmenu_style_border"
       keep="true"
       bgborder=" 0x 1"
       />
    <style name="Hotspotsmenu_style_border_hover"
       keep="true"
       bgborder=" 0x 1"
       />

<layer name="HotspotsmenumenuTooltipStyle"
	keep="true"
	enabled="false"
	capture="false"
	url="%FIRSTXML%/graphics/textfield.swf"
	align="center"
	roundedge="5"
	background="false"
	border="false"
	css="color:#656565;font-family:Helvetica;font-size:13px;text-align:left;"
	height="20"
	autoheight="true"
	autowidth="auto"
	padding="10"
	selectable="false"
	zorder="0"
	visible="false"
	html=""
	edge="top"
	xoffset="10"
	yoffset="10"
/>  







<!-- ********** -->
<!-- SkinPlus -->
<!-- id : SkinPlus -->
<!-- ********** -->

<!-- Skin Plus 3.3 - Copyright Panotourplugin.com - 2019 -->
<!-- Code Maurizio Chiocchetti    -->


 
<include url="%FIRSTXML%/graphics/skinplus3.5.1/core.xml" />
<action name="check_normal_hs">
  if(%1,
  for(set(hs_m,0), hs_m LT hotspot.count, inc(hs_m), if(hotspot[get(hs_m)].style == "IconHotspot_mark_1" || hotspot[get(hs_m)].style == "IconHotspot_mark_2" || hotspot[get(hs_m)].style == "IconHotspot_mark_3" || hotspot[get(hs_m)].style == "IconHotspot_mark_4" || hotspot[get(hs_m)].style == "IconHotspot_mark_5" || hotspot[get(hs_m)].style == "IconHotspot_mark_6" || hotspot[get(hs_m)].style == "IconHotspot_mark_7" || hotspot[get(hs_m)].style == "IconHotspot_mark_8" || hotspot[get(hs_m)].style == "IconHotspot_mark_8" || hotspot[get(hs_m)].style == "IconHotspot_mark_10", set(scenet_alt, get(hotspot[get(hs_m)].linktarget)); set(visit_alt, get(scene[get(scenet_alt)].seen));
      create_check_alt(get(hs_m));
      if(visit_alt,
      txtadd(nos_alt, checkicon_alt,get(hs_m) );
      set(layer[get(nos_alt)].visible,true);
      set(layer[get(nos_alt)].alpha,1);
        ););););
  </action>


<events name="langstart"
keep="true"
onxmlcomplete="if(lang !== null,
set(tour_language, get(lang));
events.dispatch(changetourlanguage);,
set(tour_language, get(tour_language)););"
/>


<action name="create_check">
addlayer(checkicon%1);
set(layer[checkicon%1].width,45);
set(layer[checkicon%1].height,prop);
set(layer[checkicon%1].type,image);
set(layer[checkicon%1].url, '%FIRSTXML%/graphics/skinplus3.5.1/');
set(layer[checkicon%1].enable,true);
set(layer[checkicon%1].align,bottomright);
set(layer[checkicon%1].edge,bottomright);
set(layer[checkicon%1].visible,false);
set(layer[checkicon%1].children,true);
set(layer[checkicon%1].scalechildren,true);
set(layer[checkicon%1].alpha,0);
set(layer[checkicon%1].capture, false);
set(layer[checkicon%1].x, -10);
set(layer[checkicon%1].y, -10);
set(layer[checkicon%1].parent, hotspot[%1]);
</action>

<action name="create_check_alt">
addlayer(checkicon_alt%1);
set(layer[checkicon_alt%1].width,45);
set(layer[checkicon_alt%1].height,prop);
set(layer[checkicon_alt%1].type,image);
set(layer[checkicon_alt%1].url, '%FIRSTXML%/graphics/skinplus3.5.1/');
set(layer[checkicon_alt%1].enable,true);
set(layer[checkicon_alt%1].align,bottomright);
set(layer[checkicon_alt%1].edge,bottomright);
set(layer[checkicon_alt%1].visible,false);
set(layer[checkicon_alt%1].children,true);
set(layer[checkicon_alt%1].scalechildren,true);
set(layer[checkicon_alt%1].alpha,0);
set(layer[checkicon_alt%1].capture, false);
set(layer[checkicon_alt%1].x, -10);
set(layer[checkicon_alt%1].y, -10);
set(layer[checkicon_alt%1].parent, hotspot[%1]);
</action>



<events name="SkinPlushotspot_mark" keep="true"
onxmlcomplete="check_normal_hs();"
onnewpano="check_normal_hs();"
/>














<krpano SkinPlusbarbuilt="false" SkinPlusbackgroundwidthwhenclosed="0" SkinPlusbackgroundwidthwhenopened="0" SkinPlusIsOpened="false" />

<k_setting
    speed="0.5"
    button_offset=""
    margin_flag_ico="100"
    flag_lang_1=""
    flag_lang_2=""
    flag_lang_3=""
    flag_lang_4=""
    flag_lang_5=""
    flag_lang_6=""
    flag_lang_7=""
    flag_lang_8=""
    flag_lang_9=""
    flag_lang_10=""
    context_menu_bool="true"
    plugname="SkinPlus"
    pluginDirectory="graphics/skinplus3.5.1"
    contextlogofile="glomaclogo.png"
    context_url="https://www.glomac.com.my/"
    code="ptpkimage17"
    range_value="50"
    alpharange="false"
    full="true"
    scalemobile="0.6"
    scaletablet="0.8"
/>














<events name="SkinPlusevents"
    onxmlcomplete=""   
    keep="true"
/>

<events name="SkinPlusLanguage_event"
    onTourStart="SkinPluslangg();"
    changetourlanguage="SkinPluslangg();"
    keep="true"
/>






<action name="SkinPluslangg">
set(language_var, get(tour_language));


if(device.touch,
set(layer[SkinPlushelpScreenFg].url, '%FIRSTXML%/graphics/skinplus3.5.1/help_screen_fg_mb.png');
,
set(layer[SkinPlushelpScreenFg].url, '%FIRSTXML%/graphics/skinplus3.5.1/help_screen_fg.png');
);

</action>



<action name="buildMenuBar">
    ifnot (SkinPlusbarbuilt, SkinPlusbuildMenu(); set(SkinPlusbarbuilt, true););
</action>


  <style name="SkinPlus_btn_style"
         keep="true"


         edge="right"
         align="right"

         x="0" y="0"


         width="40" height="40"

         crop="0|0|60|60"
         onovercrop="0|60|60|60"
         ondowncrop="0|120|60|60"




         onhover="showTooltip('plugin', SkinPlusmenuTooltipStyle, bottom);"
         onout="hideTooltip();"




         />

 <style name="SkinPlus_btn_style_icons"
         keep="true"


         edge="right"
         align="right"

         x="0" y="0"


         width="40" height="40"






         onhover="showTooltip('plugin', SkinPlusmenuTooltipStyle, bottom);"
         onout="tween(alpha,1,0.5);hideTooltip();"




         />


 <style name="SkinPlus_btnf_style"
        keep="true"
        edge="right"
        align="right"
        x="0" y="0"
        width="40" height="prop"
        scale="0.8"
        onover=""

        onhover="showTooltip('plugin', SkinPlusmenuTooltipStyle, bottom);"
        onout="hideTooltip();"
        />

  <style name="SkinPlus_style"
             keep="true"
             onhover="showTooltip('plugin', SkinPlusmenuTooltipStyle);"
             onout="hideTooltip();"
/>

<style name="SkinPlus_style_lang"
     keep="true"
     onover="set(alpha, 0.8);  "
     onout="set(alpha, 1); hideTooltip();"
     onhover="showTooltip('plugin', SkinPlusmenuTooltipStyle);"
/>

<style name="SkinPlus_btnf_style_float"
       keep="true"

       scale="0.8"
       onover=""



       onhover="showTooltip('plugin', SkinPlusmenuTooltipStyle, bottom);"
       onout="hideTooltip();"




             width="100"
             height="prop"

       />
 <style name="SkinPlus_style"
            keep="true"
            onhover="showTooltip('plugin', SkinPlusmenuTooltipStyle);"
            onout="hideTooltip();"
/>



  <style name="SkinPlus_btn_style_off"
         keep="true"
         edge="right"
         align="right"

         x="0" y="0"
         width="40" height="40"
         onhover="showTooltip('plugin', SkinPlusmenuTooltipStyle, bottom);"
         onout="hideTooltip();"
         />

<layer name="SkinPlus_footer"
         keep="true"
		 type="container"
         bgcolor="0x000000"
         bgalpha="0"
         x="0"
         y="0"
         enabled="false"
		 visible="false"
		 align="bottom"
		 edge="bottom"
		 zorder="2"
         height="60"
         width="100%"
          />



<layer  name="SkinPlusmlogo"
        align.desktop="topleft"
        align.mobile="topleft"
        align.tablet="topleft"
        edge.desktop="topleft"
        edge.mobile="topleft"
        edge.tablet="topleft"
        x.desktop="5"
        y.desktop="5"
        x.mobile="5"
        y.mobile="5"
        x.tablet="5"
        y.tablet="5"

        zorder="4"
        keep="true"
        visible="false"
        style="SkinPlus_style"
        devices="desktop|tablet|mobile"
        capture="false"
        tooltip="SkinPlusmlogotooltip"
        scale.tablet="0.5"
        scale.mobile="0.5"
        onclick="SkinPlusmlOnClick();"
        alpha="1"

                 url="%FIRSTXML%/graphics/skinplus3.5.1/glomaclogo.png"
        handcursor="true"
     />

<events name="SkinPlusmlogologoevents"
onTourStart="SkinPlusmlogoshowlogo();"
hidetourcontrols="SkinPlusmlogohidelogo();"
showtourcontrols="SkinPlusmlogoshowlogo();"
keep="true" />



<action name="SkinPlusmlogohidelogo">
 SkinPlusmlogoshowlogo(); 
</action>

<action name="SkinPlusmlogoshowlogo">
    set(layer[SkinPlusmlogo].visible, true);
</action>

<action name="SkinPlusmlOnClick">getmessage(urltoopen,SkinPlusmlogoclick123867openurlwebsiteurl);openurl(get(urltoopen),_blank);


</action>




<events name="SkinPlus_footerevents"
    onTourStart=""
    keep="true" />


<action name="SkinPlushidefooter">
    tween(layer[SkinPlus_footer].y, -60, 0.2);
    delayedcall(0.4 ,set(layer[SkinPlus_footer].visible, false));
</action>

<action name="setTourLanguage">
  if (%1 == null,
    trace("CHANGE TOUR LANGUAGE : NO LANGUAGE SET");
   ,
    set(tour_language, %1);

    events.dispatch(changetourlanguage);
  );
</action>




<action name="SkinPlusshowfooter">

if (SkinPlusIsOpened,

	set(layer[SkinPlus_footer].visible, true);


    tween(layer[SkinPlus_footer].y, 0, 0.1);
    ,
    SkinPlushidefooter();

    );
</action>

<layer name="SkinPlus_menu_bg"
          keep="true"
          type="container"
          zorder="3"
          width="40"
          height="40"
          align="bottom"
          x="0" y="5"
          maskchildren="false"
          rotate="0"
          visible="false"
          scalechildren="true"




    >


<layer name="SkinPlusbtn_hide_hotspots"


            url="%FIRSTXML%/graphics/skinplus3.5.1/btn_hide_show_hotspots.png"
            style="SkinPlus_btn_style"


            onclick="hideHotspots();
"
            tooltip="SkinPlushideSpotsTip"
            visible="false"
            devices="desktop|tablet|mobile"
            />


<layer name="SkinPlusbtn_show_hotspots"

            url="%FIRSTXML%/graphics/skinplus3.5.1/btn_hide_show_hotspots.png"
            style="SkinPlus_btn_style"


            onclick="showHotspots();
"
            tooltip="SkinPlusshowSpotsTip"
            visible="false"
            devices="desktop|tablet|mobile"
            />

<layer name="SkinPlusbtn_home"



url="%FIRSTXML%/graphics/skinplus3.5.1/btn_home.png"
style="SkinPlus_btn_style"


           onclick="SkinPlusbtn_home_action();"
           visible="false"
           tooltip="SkinPlushomeTip"
           devices="desktop|tablet|mobile"
           />





<layer name="SkinPlusbtn_in"



url="%FIRSTXML%/graphics/skinplus3.5.1/btn_zoom_in.png"
style="SkinPlus_btn_style"




            ondown="viewControlZoomIn(false); "
            onup="viewControlZoomStop();
"

            visible="false"
            devices="desktop|tablet|mobile"
            tooltip="SkinPluszoomInTip"
            />
<layer name="SkinPlusbtn_out"



            url="%FIRSTXML%/graphics/skinplus3.5.1/btn_zoom_out.png"
            style="SkinPlus_btn_style"



            ondown="viewControlZoomOut(false);
  "
            onup="viewControlZoomStop();
"


            visible="false"
            devices="desktop|tablet|mobile"
            tooltip="SkinPluszoomOutTip"
            />
<layer name="SkinPlusbtn_sound_on"



           url="%FIRSTXML%/graphics/skinplus3.5.1/btn_start_sound.png"
           style="SkinPlus_btn_style"



            onclick="playTourSounds();
"

            visible="false"
            devices="desktop|tablet|mobile"
            tooltip="SkinPlussoundsOnTip"
            />

<layer name="SkinPlusbtn_sound_off"


           url="%FIRSTXML%/graphics/skinplus3.5.1/btn_stop_sound.png"
           style="SkinPlus_btn_style"




            onclick="stopTourSounds();
"

            visible="false"
            devices="desktop|tablet|mobile"
            tooltip="SkinPlussoundsOffTip"
            />












<layer name="SkinPlusbtn_openfs"


url="%FIRSTXML%/graphics/skinplus3.5.1/btn_enter_fs.png"
style="SkinPlus_btn_style"




            onclick="enterFullscreen();
 "


            visible="false"
            devices="fullscreensupport"
            tooltip="SkinPlusopenFsTip"
            />

<layer name="SkinPlusbtn_closefs"



url="%FIRSTXML%/graphics/skinplus3.5.1/btn_close_fs.png"
style="SkinPlus_btn_style"



            onclick="exitFullscreen();
 "


            visible="false"
            devices="fullscreensupport"
            tooltip="SkinPluscloseFsTip"
            />

<layer name="SkinPlusbtn_autorotate_on"



url="%FIRSTXML%/graphics/skinplus3.5.1/btn_start_autorotation.png"
style="SkinPlus_btn_style"




            onclick="resumeautorotation();
"

            visible="false"
            devices="desktop|tablet|mobile"
            tooltip="SkinPlusautorotateOnTip"
/>

<layer name="SkinPlusbtn_autorotate_off"


url="%FIRSTXML%/graphics/skinplus3.5.1/btn_stop_autorotation.png"
style="SkinPlus_btn_style"


            onclick="pauseautorotation();
"

            visible="false"
            devices="desktop|tablet|mobile"

            tooltip="SkinPlusautorotateOffTip"
/>















 </layer>


<action name="SkinPlusbtn_home_action">
      mainloadscene(pano18);
</action>





<action name="SkinPlushideMenuControls">

set(SkinPlusIsOpened, false);
set(layer[SkinPlusbtn_lang_off].visible, false);
set(layer[SkinPlusbtn_lang].visible, false);
set(layer[SkinPlusbtn_home].visible, false);
set(layer[SkinPlusbtn_in].visible, false);
set(layer[SkinPlusbtn_out].visible, false); 
SkinPlusupdateFullscreenButtons(); 
SkinPlusupdateAutorotationButtons(); 
SkinPlusupdateSoundButtons(); 
SkinPlusupdateHideShowHotspotsButtons(); 
set(layer[SkinPlus_menu_bg].width, get(SkinPlusbackgroundwidthwhenclosed));
set(layer[SkinPlus_menu_bg].visible, true);
SkinPlushidefooter();
</action>

<action name="SkinPlusshowMenuControls">
set(SkinPlusIsOpened, true);
SkinPlusshowfooter();
set(layer[SkinPlusbtn_home].visible, true);
set(layer[SkinPlus_menu_bg].visible, true);

set(layer[SkinPlusbtn_share].visible, true);
set(layer[SkinPlusbtn_search].visible, true);
set(layer[SkinPlusbtn_shotp].visible, true);
set(layer[SkinPlusbtn_menu].visible, true);
set(layer[SkinPlusbtn_gallery].visible, true);
set(layer[SkinPlusbtn_pdf].visible, true);
set(layer[SkinPlusbtn_web].visible, true);
set(layer[SkinPlusbtn_lang_off].visible, false);
set(layer[SkinPlusbtn_lang].visible, true);

set(layer[SkinPlusbtn_in].visible, true);
set(layer[SkinPlusbtn_out].visible, true);
SkinPlusupdateFullscreenButtons();


SkinPlusupdateAutorotationButtons();


SkinPlusupdateSoundButtons();



SkinPlusupdateHideShowHotspotsButtons();





set(layer[SkinPlus_menu_bg].width, get(SkinPlusbackgroundwidthwhenopened));


</action>





<events name="SkinPlusControlplan_pano"
keep="true"
onnewpano="set(little, 0);if (SkinPlusIsOpened,set(layer[SkinPlusbtn_little].visible, true);set(layer[SkinPlusbtn_little_off].visible, false););SkinPlusControlplan();"

/>

<action name="SkinPlusControlplan">
if (scene[get(xml.scene)].planar,
set(layer[SkinPlusbtn_little].alpha, 0.4);
set(layer[SkinPlusbtn_little].onclick, "");
set(layer[SkinPlusbtn_little].tooltip, "SkinPluslittle_disable_tip");
,
set(layer[SkinPlusbtn_little].alpha, 1.0);
set(layer[SkinPlusbtn_little].tooltip, "SkinPluslittle_tip");
set(layer[SkinPlusbtn_little].onclick, "SkinPlussetViewLittlePlanet();hideHotspots();
pauseautorotation();
");
);
</action>


<action name="SkinPlusHideLittle_btn">

	set(layer[SkinPlusbtn_little].visible, false);
    set(layer[SkinPlusbtn_little_off].visible, false);

</action>

<action name="SkinPlusShowlittle_btn">
if ( little != 1,
	set(layer[SkinPlusbtn_little].visible, true);
    set(layer[SkinPlusbtn_little_off].visible, false);

    ,

    set(layer[SkinPlusbtn_little].visible, false);
    set(layer[SkinPlusbtn_little_off].visible, true);
    );
</action>

<action name="SkinPlusupdateLittleButtons">

    if (SkinPlusIsOpened,

        SkinPlusShowlittle_btn();
    ,
        SkinPlusHideLittle_btn();
    );
</action>


<action name="SkinPlussetViewLittlePlanet">


	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);
		);
		SkinPlussetViewLittlePlanetComplete();

        
	);
</action>

<action name="SkinPlussetViewLittlePlanetComplete">
set(little, 1);
SkinPlusupdateLittleButtons();
	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>

<action name="SkinPlussetViewNormal">

	if(current_view_isflat === true,
		setViewNonFlat(VFOV);
	);
	SkinPlussetViewNormalComplete();
</action>

<action name="SkinPlussetViewNormalComplete">
set(little, 0);
SkinPlusupdateLittleButtons();
	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>




<action name="SkinPlusshow_language_box">
set(layer[SkinPlusbtn_lang].visible, true);
set(layer[SkinPlusbtn_lang_off].visible, false);
</action>

<action name="SkinPlushide_language_box">
set(layer[SkinPlusbtn_lang_off].visible, true);
set(layer[SkinPlusbtn_lang].visible, false);
</action>



<events name="SkinPlusmenufullscreenchangeevent"
          onenterfullscreen="SkinPlusupdateFullscreenButtons();"
          onexitfullscreen="SkinPlusupdateFullscreenButtons();"
          keep="true"/>

<action name="SkinPlusHideFullscreenButtons">
		set(layer[SkinPlusbtn_openfs].visible , false);
		set(layer[SkinPlusbtn_closefs].visible, false);
</action>

<action name="SkinPlusShowFullscreenButtons">
		if (device.fullscreensupport,
        if (!device.ipad,
			if(tour_fullscreen,
				set(layer[SkinPlusbtn_openfs].visible , false);
				set(layer[SkinPlusbtn_closefs].visible, true);
			,
				set(layer[SkinPlusbtn_openfs].visible ,true);
				set(layer[SkinPlusbtn_closefs].visible,false);
			););
		,
			SkinPlusHideFullscreenButtons();
		);
</action>
<action name="SkinPlusupdateFullscreenButtons">
		if (SkinPlusIsOpened,
			SkinPlusShowFullscreenButtons();
		,
			SkinPlusHideFullscreenButtons();
		);
</action>

<events name="SkinPlusAutorotationEvents"
		onstartautorotation="SkinPlusupdateAutorotationButtons();"
		onresumeautorotation="SkinPlusupdateAutorotationButtons();"
		onstopautorotation="SkinPlusupdateAutorotationButtons();"
		onpauseautorotation="SkinPlusupdateAutorotationButtons();"
		keep="true"/>

<action name="SkinPlusHideAutorotationButtons">
		set(layer[SkinPlusbtn_autorotate_off].visible, false);
		set(layer[SkinPlusbtn_autorotate_on].visible , false);
</action>
<action name="SkinPlusShowAutorotationButtons">
		if(autorotate.enabled == false,
			set(layer[SkinPlusbtn_autorotate_off].visible, false);
			set(layer[SkinPlusbtn_autorotate_on].visible , true);
		,
			set(layer[SkinPlusbtn_autorotate_off].visible, true);
			set(layer[SkinPlusbtn_autorotate_on].visible , false);
		);
</action>
<action name="SkinPlusupdateAutorotationButtons">
		if (SkinPlusIsOpened,
			SkinPlusShowAutorotationButtons();
		,
			SkinPlusHideAutorotationButtons();
		);
</action>


<events name="SkinPlusplaystopsoundsevent" playtoursoundsevent="SkinPlusupdateSoundButtons();" stoptoursoundsevent="SkinPlusupdateSoundButtons();" keep="true"/>
<action name="SkinPlusHideSoundButtons">
		set(layer[SkinPlusbtn_sound_off].visible, false);
		set(layer[SkinPlusbtn_sound_on].visible , false);
</action>
<action name="SkinPlusShowSoundButtons">
		if (tour_soundson == false,
			set(layer[SkinPlusbtn_sound_off].visible, false);
			set(layer[SkinPlusbtn_sound_on].visible , true);
		,
			set(layer[SkinPlusbtn_sound_off].visible, true);
			set(layer[SkinPlusbtn_sound_on].visible , false);
		);
</action>
<action name="SkinPlusupdateSoundButtons">
		if (SkinPlusIsOpened,
			SkinPlusShowSoundButtons();
		,
			SkinPlusHideSoundButtons();
		);
</action>




<events name="SkinPlushotspotsdisplayevents"
          hotspots_visibility_changed="SkinPlusupdateHideShowHotspotsButtons"
          keep="true"/>
<action name="SkinPlusHideHideShowHotspotsButtons">
		set(layer[SkinPlusbtn_show_hotspots].visible, false);
		set(layer[SkinPlusbtn_hide_hotspots].visible, false);
</action>
<action name="SkinPlusShowHideShowHotspotsButtons">
		if (tour_displayspots,
			set(layer[SkinPlusbtn_hide_hotspots].visible, true);
			set(layer[SkinPlusbtn_show_hotspots].visible, false);
		,
			set(layer[SkinPlusbtn_show_hotspots].visible, true);
			set(layer[SkinPlusbtn_hide_hotspots].visible, false);
		);
</action>

<action name="SkinPlusupdateHideShowHotspotsButtons">
		if (SkinPlusIsOpened,
			SkinPlusShowHideShowHotspotsButtons();
		,
			SkinPlusHideHideShowHotspotsButtons();
		);
</action>




<layer name="SkinPlusmenuTooltipStyle"
	keep="true"
	enabled="false"
	capture="false"
	url="%FIRSTXML%/graphics/textfield.swf"
	align="center"
	roundedge="5"
	background="true"
	backgroundcolor="0x000000"
	backgroundalpha="0"
	border="false"
	css="color:#ffffff;font-family:Helvetica;font-size:13px;text-align:left;"
	height="20"
	autoheight="true"
	autowidth="auto"
	padding="10"
	selectable="false"
	zorder="0"
	visible="false"
	html=""
	edge="bottom"
	xoffset="-10"
	yoffset="-10"
/>  








<layer name="SkinPlusspotTooltipStyle"
	keep="true"
	enabled="false"
	capture="false"
	url="%FIRSTXML%/graphics/textfield.swf"
	align="center"
	roundedge="5"
     
	background="true"
	backgroundcolor="0xa63fd0"
	backgroundalpha="1"  
	border="false"  
	css="color:#ffffff;font-family:Helvetica;font-size:13px;text-align:left;"
	height="20"
	autoheight="true"
	autowidth="auto"
	padding="10"
	selectable="false"
	zorder="0"
	visible="false"
	html=""

    edge="top"
	xoffset="0"
	yoffset="10"


/>
 




<action name="SkinPlusbuildMenu">
    
    set(SkinPlusbutton_pos, 0);
    set(nnn,0);







      if (device.fullscreensupport,
      if (!device.ipad,
      inc(nnn, 1);
        set(layer[SkinPlusbtn_openfs].x , get(SkinPlusbutton_pos));
        set(layer[SkinPlusbtn_closefs].x, get(SkinPlusbutton_pos));
        inc(SkinPlusbutton_pos, 45); ); );























if (device.desktop || device.tablet || device.mobile,
inc(nnn, 1);
      set(layer[SkinPlusbtn_autorotate_on].x , get(SkinPlusbutton_pos));
      set(layer[SkinPlusbtn_autorotate_off].x, get(SkinPlusbutton_pos));
      inc(SkinPlusbutton_pos, 45); ); 



inc(nnn, 1);
    if (device.desktop || device.tablet || device.mobile,
          set(layer[SkinPlusbtn_sound_on].x , get(SkinPlusbutton_pos));
          set(layer[SkinPlusbtn_sound_off].x, get(SkinPlusbutton_pos));
          inc(SkinPlusbutton_pos, 45););



if (device.desktop || device.tablet || device.mobile,
inc(nnn, 1);
        set(layer[SkinPlusbtn_show_hotspots].x, get(SkinPlusbutton_pos));
        set(layer[SkinPlusbtn_hide_hotspots].x, get(SkinPlusbutton_pos));
        inc(SkinPlusbutton_pos, 45); );








 if (device.desktop || device.tablet || device.mobile,
set(layer[SkinPlusbtn_home].x,
get(SkinPlusbutton_pos));
inc(SkinPlusbutton_pos, 45);
);





if (device.desktop || device.tablet || device.mobile,
inc(nnn, 2);
        set(layer[SkinPlusbtn_out].x, get(SkinPlusbutton_pos));
        inc(SkinPlusbutton_pos, 45);
        set(layer[SkinPlusbtn_in].x, get(SkinPlusbutton_pos));
        inc(SkinPlusbutton_pos, 45);
);

if (device.desktop || device.tablet || device.mobile,

      dec(SkinPlusbutton_pos, 5);
      set(SkinPlusbackgroundwidthwhenopened, get(SkinPlusbutton_pos));
      set(layer[SkinPlus_menu_bg].width, get(SkinPlusbackgroundwidthwhenopened));
	 
);
</action>




<events name="SkinPlusStartTourEvents" onTourStart="SkinPlusCallOnStartTour();" keep="true" />
<action name="SkinPlusCallOnStartTour">

		
		SkinPlusshowMenuControls();

</action>


<action name="SkinPlusbluron" type="Javascript" >
myname = 'blur(10px)'
$("canvas")
  .css('filter',myname),
  ('-webkitFilter',myname),
  ('-mozFilter',myname),
  ('-oFilter',myname),
  ('-msFilter',myname);
</action>

<action name="SkinPlusbluroff" type="Javascript" >
$( "canvas" ).css({"-webkit-filter": "blur(0px)","filter": "blur(0px)" });
</action>
<style name="button" type="text"
	       css="text-align:center;"
	       padding="4 8"
	       mergedalpha="false"
	       bgborder="4 0xFFFFFF 1"
	       bgroundedge="5"
	       bgshadow="0 1 4 0x000000 1.0"
	       onover="set(bgcolor, 0xC7E4FC);"
	       onout="calc(bgcolor, pressed ? 0x90CAF9 : 0xFFFFFF);"
	       ondown="set(bgcolor, 0x90CAF9);"
	       onup="calc(bgcolor, hovering ? 0xC7E4FC : 0xFFFFFF);"
	       />




<!-- ********** -->
<!-- Compass -->
<!-- id : compass -->
<!-- ********** -->

  <layer name="compassbackground"
         url="%FIRSTXML%/graphics/compass/compassbg936533.png"
         keep="true"
         handcursor="false"
         capture="false"
         align="topright"
         x="0"
         y="0"
         zorder="8"
         visible="false"
         active="true"
         started="false"

         height="75"
         width="75"

         >




    <layer name="compasspointer"
           url="%FIRSTXML%/graphics/compass/compasspointerb12038.png"
           keep="true"
           align="center"
           handcursor="false"
           capture="false"
           zorder="1"
           height="100%"
           width="100%"
          />
  </layer>

  <events name="compassevts"
          keep="true"
          onnewpano="compassUpdateOrientation();"
          onviewchanged="compassUpdateOrientation();"
    onTourStart="set(layer[compassbackground].started, true);showcompass();"
         />

  <action name="compassUpdateOrientation">
    if(scene[get(xml.scene)].planar,
      set(layer[compassbackground].active, false);
      hidecompass();
    ,

      set(layer[compassbackground].active, true);
      mod(compasshlookat, view.hlookat, 360);
      mul(compassheading, -1, get(scene[get(xml.scene)].heading));
      if (compassheading == null, set(compassheading, 0));
      sub(layer[compasspointer].rotate, compasshlookat, compassheading);

      showcompass();
    );
  </action>

 
  <action name="hidecompass">
    set(layer[compassbackground].visible, false);
  </action>
  <action name="showcompass">

    if(layer[compassbackground].active AND layer[compassbackground].started,set(layer[compassbackground].visible, true););

  </action>


<action name="viewControlZoomIn">
	if(%1,
		if(%2,
			if(%2 LT view.fovmin,
				zoomto(get(view.fovmin));
			,
				if(%2 LT view.fov,
					zoomto(%2);
				);
			);
		,
			set(fov_moveforce, -1);
			delayedcall(0.1, viewControlZoomStop());
		);
	,
		set(fov_moveforce, -1);
	);
</action>
<action name="viewControlZoomOut">
	if(%1,
		if(%2,
			if(%2 GT view.fovmax,
				zoomto(get(view.fovmax));
			,
				if(%2 GT view.fov,
					zoomto(%2);
				);
			);
		,
			set(fov_moveforce, +1);
			delayedcall(0.1, viewControlZoomStop());
		);
	,
		set(fov_moveforce, +1);
	);
</action>
<action name="viewControlZoomStop">
	set(fov_moveforce, 0);
</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>

  <!-- Sounds Management -->
  <plugin name="soundinterface"
          preload="true"
          url.flash="%SWFPATH%/graphics/soundinterface.swf"
          url.html5="%FIRSTXML%/graphics/soundinterface.js"
          rootpath="%$videos_sounds_path%/sounds"
          backgroundsound=""
          backgroundsoundloops="0"
          bgsound="false"
          bgsoundpaused="false"
          bgsoundloopended="false"
          bgsoundtoforce = "false"
          volumeinitialized="false"
          started="true"
          keep="true"/>
  <events name="soundmanagementevents"
          onnewpano="if(plugin[soundinterface].started,playbackgroundsound(););"
          onxmlcomplete="soundinterfaceonxmlcomplete();"
          keep="true"/>
  <action name="soundinterfaceonxmlcomplete">
    ifnot(plugin[soundinterface].volumeinitialized,
      div(plugin[soundinterface].volume, tour_soundsvolume, 100);
      set(plugin[soundinterface].volumeinitialized,true);
    );
  </action>
  <action name="playsound3Dwhenpossible">
    set(really_play_sound, true);
    if (tour_current_played_sound,
      if (%1 == tour_current_played_sound,
        delete(tour_current_played_sound);
        set(tour_current_played_sound_state, 0);
        delete(tour_current_played_sound_paused);
        stopsound(%1);
        set(really_play_sound, false);
        if(%4,
          delete(tour_current_played_sound_pausesound);
          resumeTourSoundsActions(true,true,true,true,true);
        );
      );
    );
    if (really_play_sound,
      if (tour_current_played_sound,
        stopsound(get(tour_current_played_sound));

        ifnot(%4,
          if(tour_current_played_sound_pausesound,
            delete(tour_current_played_sound_pausesound);
            resumeTourSoundsActions(true,true,true,true,true);
          );
        );
      );
      if(%4,
        set(tour_current_played_sound_pausesound, true);
        pauseTourSoundsActions(true,false,true,true,true);
      );
      set(tour_current_played_sound, %1);
      if(tour_current_played_video,
        set(tour_current_played_sound_state, 2);
      ,
        set(tour_current_played_sound_state, 1);
      );
      set(tour_current_played_sound_paused, false);
      if (%3,
        if (device.flash,
          div(volume, tour_soundsvolume, 100);
          if(%9 != null,
            playsound3D(%1,%2,%5,%6,%7,get(volume),%8,stopsound3Dwhenpossible(%1,%4));
          ,
            playsound3D(%1,%2,%5,%6,%7,get(volume),%8);
          );
        ,
          if(%9 != null,
            playsound(%1,%2,%8,stopsound3Dwhenpossible(%1,%4));
          ,
            playsound(%1,%2,%8);
          );
        );
      ,
        if(%6 != null,
          playsound(%1,%2,%5,stopsound3Dwhenpossible(%1,%4));
        ,
          playsound(%1,%2,%5);
        );
      );

      ifnot(tour_soundson,
        set(tour_current_played_sound_paused, true);
        pausesound(%1);
      );
    );
  </action>
  <action name="stopsound3Dwhenpossible">
    if (%1 == tour_current_played_sound,
      delete(tour_current_played_sound);
      set(tour_current_played_sound_state, 0);
      delete(tour_current_played_sound_paused);

      ifnot(device.safari,
        stopsound(%1);
      );
      if(%2,
        delete(tour_current_played_sound_pausesound);
        resumeTourSoundsActions(true,true,true,true,true);
      );
    );
  </action>
  <action name="playbackgroundsound">
  if(playsound,
    if (xml.scene,
      if (scene[get(xml.scene)].backgroundsound,
        if (plugin[soundinterface].backgroundsound != scene[get(xml.scene)].backgroundsound,
          copy(plugin[soundinterface].backgroundsound, scene[get(xml.scene)].backgroundsound);
          copy(plugin[soundinterface].backgroundsoundloops, scene[get(xml.scene)].backgroundsoundloops);
          if (tour_soundson,
            set(plugin[soundinterface].bgsound, true);
            set(plugin[soundinterface].bgsoundpaused, false);
            set(plugin[soundinterface].bgsoundloopended, false);
            set(plugin[soundinterface].bgsoundtoforce, false);
            if(scene[get(xml.scene)].video == false OR (scene[get(xml.scene)].video == true AND scene[get(xml.scene)].scenevideomute == true),
              if(plugin[soundinterface].backgroundsoundloops GT 0,
                playsound(bgsoundname, get(plugin[soundinterface].backgroundsound), get(plugin[soundinterface].backgroundsoundloops), stopbackgroundsoundoncomplete());
              ,
                playsound(bgsoundname, get(plugin[soundinterface].backgroundsound), get(plugin[soundinterface].backgroundsoundloops));
              );
            );
           ,
            set(plugin[soundinterface].bgsoundtoforce, true);
            set(plugin[soundinterface].bgsound, false);
          );
        ,
          if (tour_soundson,
            if((plugin[soundinterface].bgsoundpaused == true AND scene[get(xml.scene)].video == false) OR (scene[get(xml.scene)].video == true AND scene[get(xml.scene)].scenevideomute == true),
              resumesound(bgsoundname);
              set(plugin[soundinterface].bgsoundpaused, false);
            );
          ,
            set(plugin[soundinterface].bgsoundtoforce, true);
            set(plugin[soundinterface].bgsound, false);
          );
        );
      );
    );
  ,
    delayedcall(0.2, playbackgroundsound());
  );
  </action>
  <action name="stopbackgroundsoundoncomplete">
    if (plugin[soundinterface].backgroundsound,
    if (plugin[soundinterface].backgroundsoundloops GT 0,

      set(plugin[soundinterface].backgroundsoundloops, 0);
      set(plugin[soundinterface].bgsound, false);
      set(plugin[soundinterface].bgsoundpaused, false);
      set(plugin[soundinterface].bgsoundloopended, true);
    );
    );
  </action>
  <action name="resetbackgroundsoundifneeded">
    if (xml.scene,
      if (scene[get(xml.scene)].backgroundsound != scene[%1].backgroundsound,
        if(plugin[soundinterface].backgroundsound,
          stopsound(bgsoundname);
        );
        set(plugin[soundinterface].backgroundsound, "");
        set(plugin[soundinterface].backgroundsoundloops, 0);
        set(plugin[soundinterface].bgsound, false);
        set(plugin[soundinterface].bgsoundpaused, false);
        set(plugin[soundinterface].bgsoundloopended, false);
      );
    );
  </action>
  <action name="pausebackgroundsound">
    if(plugin[soundinterface].backgroundsound,
      if (plugin[soundinterface].bgsound,
        if(plugin[soundinterface].bgsoundpaused == false AND plugin[soundinterface].bgsoundloopended == false,
          pausesound(bgsoundname);
          set(plugin[soundinterface].bgsoundpaused, true);
        );
      );
    );
    
  </action>
  <action name="resumebackgroundsound">
    set(bgSoundOnResume, true);
    set(forceBgSoundOnResume, true);
    if(layer[displayedStandardVideo],
    if(layer[displayedStandardVideo].pausebgsound AND tour_current_played_video,
      set(bgSoundOnResume, false);
      set(forceBgSoundOnResume, false);
    ););
    if(layer[webvideodisplay_player],
    if(layer[webvideodisplay_player].pausebgsound AND tour_current_played_web_video,
      set(bgSoundOnResume, false);
      set(forceBgSoundOnResume, false);
    ););
    if(tour_current_played_sound_pausesound AND tour_current_played_sound,
      set(bgSoundOnResume, false);
    );
    ifnot(plugin[soundinterface].backgroundsound AND scene[get(xml.scene)].backgroundsound,
      set(bgSoundOnResume, false);
    );
    if(videospots_playing GT 0,
      set(bgSoundOnResume, false);
      set(forceBgSoundOnResume, false);
    );
    if(bgSoundOnResume,
      if (plugin[soundinterface].backgroundsound,
        if (tour_soundson,
          if (plugin[soundinterface].bgsound AND plugin[soundinterface].bgsoundloopended == false,
            if((plugin[soundinterface].bgsoundpaused == true AND scene[get(xml.scene)].video == false) OR (scene[get(xml.scene)].video == true AND scene[get(xml.scene)].scenevideomute == true),
              resumesound(bgsoundname);
              set(plugin[soundinterface].bgsoundpaused, false);
            ,

              if(device.mobile OR device.tablet OR device.safari OR device.chrome,
                resumesound(bgsoundname);
                set(plugin[soundinterface].bgsoundpaused, false);
              );
            );
          ,
            if(((plugin[soundinterface].bgsoundpaused == true OR plugin[soundinterface].bgsoundtoforce == true) AND scene[get(xml.scene)].video == false) OR (scene[get(xml.scene)].video == true AND scene[get(xml.scene)].scenevideomute == true),
              set(plugin[soundinterface].bgsound, true);
              set(plugin[soundinterface].bgsoundpaused, false);
              set(plugin[soundinterface].bgsoundloopended, false);
              set(plugin[soundinterface].bgsoundtoforce, false);
              if(plugin[soundinterface].backgroundsoundloops GT 0,
                playsound(bgsoundname, get(plugin[soundinterface].backgroundsound), get(plugin[soundinterface].backgroundsoundloops), stopbackgroundsoundoncomplete());
              ,
                playsound(bgsoundname, get(plugin[soundinterface].backgroundsound), get(plugin[soundinterface].backgroundsoundloops));
              );
            );
          );
        );
      );
      
    ,
      if(forceBgSoundOnResume,
        playbackgroundsound();
        
      );
    );
  </action>
  <action name="preloadSounds">
    preloadsound("_12_full_paradise-found_0129.mp3");
  </action>

  <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);
    div(volume, tour_soundsvolume, 100);
    set(plugin[soundinterface].volume, get(volume));
    set3DLocalSoundsVolume();
  </action>
  <action name="playTourSoundsActions">
    if(%1,
      if(plugin[soundinterface],
        if(plugin[soundinterface].started,
        play3DLocalSounds();
        );
      );
    );
    if(%2,
      if(plugin[soundinterface],
        if(plugin[soundinterface].started,
          resumebackgroundsound();
        );
      );
    );
  </action>
  <action name="stopTourSoundsActions">
    if(%1,
      stop3DLocalSounds();
    );
    if(%2,
      stopSoundActionsSounds();
    );
    if(%3,
      stopVideoActionsSounds();
    );
    if(%4,
      pausebackgroundsound();
    );
  </action>
  <action name="resumeTourSoundsActions">
    if(%1,
      if(plugin[soundinterface],
        if(plugin[soundinterface].started,
        resume3DLocalSounds();
        );
      );
    );
    if(%2,
      resumeSoundActionsSounds();
    );
    if(%3,
      resumeVideoActionsSounds();
    );
    if(%4,
      if(%5,
        if(plugin[soundinterface],
          if(plugin[soundinterface].started,
            resumebackgroundsound();
          );
        );
      ,
        pausebackgroundsound();
      );
    );
  </action>
  <action name="pauseTourSoundsActions">
    if(%1,
      pause3DLocalSounds();
    );
    if(%2,
      pauseSoundActionsSounds();
    );
    if(%3,
      pauseVideoActionsSounds();
    );
    if(%4,
      if(%5,
        pausebackgroundsound();
      ,
        if(plugin[soundinterface],
          if(plugin[soundinterface].started,
            resumebackgroundsound();
          );
        );
      );
    );
  </action>
  <action name="stopSoundActionsSounds">
    if (tour_current_played_sound,
      delete(tour_current_played_sound_paused);
      stopsound(get(tour_current_played_sound));
      delete(tour_current_played_sound);
      set(tour_current_played_sound_state, 0);
    );
  </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="resumeSoundActionsSounds">
    if (tour_current_played_sound,
      set(resumeSoundActionsVerification, true);
      if(tour_current_played_video,
        if(tour_current_played_sound_state LT tour_current_played_video_state,
          set(resumeSoundActionsVerification, false);
        );
      );
      if(resumeSoundActionsVerification,
        if (tour_soundson,
          if(tour_current_played_sound_paused,
            set(tour_current_played_sound_paused, false);
            resumesound(get(tour_current_played_sound));
          ,

            if(device.mobile OR device.tablet OR device.safari OR device.chrome,
              set(tour_current_played_sound_paused, false);
              resumesound(get(tour_current_played_sound));
            );
          );
        );
      );
    );
  </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="pauseSoundActionsSounds">
    if (tour_current_played_sound,
      ifnot(tour_current_played_sound_paused,
        set(tour_current_played_sound_paused, true);
        pausesound(get(tour_current_played_sound));
      );
    );
  </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>

  <!-- 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>


  <!-- FLOORPLAN -->
  <action name="hideFloorplan">set(tour_displayfloorplan, false);events.dispatch(onhidetourfloorplan);</action>
  <action name="showFloorplan">set(tour_displayfloorplan, true); events.dispatch(onshowtourfloorplan);</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>