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

    
  <!-- Spot Style - 360 Aerial view -->


  <style name="Icon360Aerialview"
         url="%FIRSTXML%/spots/icone-360-air_user_defaultpoint5.png"
         visible="false"
         edge="bottom" ox="0" oy="0"
         onhover="onhoverIcon360Aerialview"
         onover="onoverIcon360Aerialview"
         onout="onoutIcon360Aerialview"

         height="40"
         width="40"
         />
  <action name="onhoverIcon360Aerialview">
    showtooltip('hotspot');
  </action>
  <action name="onoverIcon360Aerialview">
tween(scale, 1.2);

pauseautorotation(forcehotspot);

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

resumeautorotation(forcehotspot);

  </action>



  
  <!-- Spot Style - My Polygon Spot Style -->
  <style name="PolygonMyPolygonSpotStyle"
           visible="false"
           bordercolor="0xffffff"
           fillcolor="0xffed00"
           borderwidth="2"
           borderalpha.desktop="0.0"
           fillalpha.desktop="0.0"
           borderalpha.tablet.or.mobile="1"
           fillalpha.tablet.or.mobile="0.20000000000000001"
           capture="false"
           onhover="onhoverPolygonMyPolygonSpotStyle"
           onover="onoverPolygonMyPolygonSpotStyle"
           onout="onoutPolygonMyPolygonSpotStyle"
           />
  <action name="onhoverPolygonMyPolygonSpotStyle">
    showTooltip('hotspot');
  </action>

  <action name="onoverPolygonMyPolygonSpotStyle">
    set(borderwidth, 2);
    set(borderalpha, 1);
    set(fillalpha, 0.20000000000000001);pauseautorotation(forcehotspot);

  </action>

  <action name="onoutPolygonMyPolygonSpotStyle">

    set(borderwidth, 2);
    set(borderalpha, 0.0);
    set(fillalpha, 0.0);
    hideTooltip();resumeautorotation(forcehotspot);

  </action>



    
  <!-- Spot Style - 360 Ground View -->


  <style name="Icon360GroundView"
         url="%FIRSTXML%/spots/icone-360-sol_user_defaultpoint8.png"
         visible="false"
         edge="bottom" ox="0" oy="0"
         onhover="onhoverIcon360GroundView"
         onover="onoverIcon360GroundView"
         onout="onoutIcon360GroundView"

         height="40"
         width="40"
         />
  <action name="onhoverIcon360GroundView">
    showtooltip('hotspot');
  </action>
  <action name="onoverIcon360GroundView">
tween(scale, 1.2);

pauseautorotation(forcehotspot);

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

resumeautorotation(forcehotspot);

  </action>



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


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


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


  </action>
<!-- ********** -->
<!-- Indicateur de Chargement -->
<!-- id : loaderinfo -->
<!-- ********** -->

  <events name="loaderinfoevent" onxmlcomplete="loaderinfoupdate();" keep="true"/>

  <action name="loaderinfoupdate">
    if(scene[get(xml.scene)].video,
      set(layer[loaderinfotextfield].visible, false);
    ,
      if (progress.progress == 1,
        delayedcall(0.5, set(layer[loaderinfotextfield].visible, false); );
      ,
        set(layer[loaderinfotextfield].visible, true);
      );
      mul(progresstext, get(progress.progress),100);
      roundval(progresstext);
      txtadd(progresstext, get(progresstext), %);
      set(layer[loaderinfotextfield].html, get(progresstext));
      ifnot(progress.progress GE 1, delayedcall(0.01, loaderinfoupdate() ));
    );
  </action>

  <layer name="loaderinfotextfield"
         keep="true"
         zorder="2"
         type="text"
         align="center"
         x="0"
         y="0"
         bgborder="0"
         bg="false"
         capture="false"
         handcursor="false"
         interactivecontent="false"
         alpha="1"
         visible="true"
         css="
         text-align:center;
         color:#000000;
         font-family:Arial;
         font-weight:bold;
         font-size:16px;
         "
  />

<!-- ********** -->
<!-- Menu contextuel -->
<!-- id : contextmenu -->
<!-- ********** -->
  <contextmenu fullscreen="false" versioninfo="false" touch="false">
    <item name="author" onclick="getmessage(urltoopen,project_author_url);openurl(get(urltoopen),_blank);" />
    <item name="normal"        onclick="setViewNormal();
" separator="true"/>
    <item name="architectural" onclick="setViewArchitectural();
"/>
    <item name="littleplanet"  onclick="setViewLittlePlanet();
"/>
    <item name="fullscreenentry" onclick="enterFullscreen();
" separator="true"/>
    <item name="vrmodeentry" onclick="if(scene[get(xml.scene)].full360 AND disableCurrentSceneVrConservation !== true,
    js(accessWebVr(get(xml.scene),get(videoscenestarttime)));
,
    js(accessWebVr(null));
);" />
  </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[author].caption, project_author_name);
    getmessage(contextmenu.item[normal].caption, contextmenunormallabel);
    getmessage(contextmenu.item[architectural].caption, contextmenuarchitecturallabel);
    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);
    );
    if (device.html5 AND tour_vrdevices,
      getmessage(contextmenu.item[vrmodeentry].caption, contextmenuopenVrLabel);
      set(contextmenu.item[vrmodeentry].onclick, if(scene[get(xml.scene)].full360 AND disableCurrentSceneVrConservation !== true,
    js(accessWebVr(get(xml.scene),get(videoscenestarttime)));
,
    js(accessWebVr(null));
););
     ,
      set(contextmenu.item[vrmodeentry].visible, false);
    );
  </action>

<!-- ********** -->
<!-- Sans Control Bar -->
<!-- id : SansControlBar -->
<!-- ********** -->

  <krpano SansControlBarbarbuilt="false" SansControlBarbackgroundwidthwhenclosed="0" SansControlBarbackgroundwidthwhenopened="0" SansControlBarIsOpened="false" />
  <events name="SansControlBarevents" 
    onxmlcomplete="SansControlBarbuildMenuBar();" 


    keep="true" />



  <action name="SansControlBarbuildMenuBar">
    ifnot (SansControlBarbarbuilt, SansControlBarbuildMenu(); set(SansControlBarbarbuilt, true););
  </action>

  <style name="SansControlBar_btn_style"
         keep="true"
         edge="bottom"
         align="bottom"
         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', NULL, right);"
         onout="hideTooltip();"
         />
  <style name="SansControlBar_btn_style_off"
         keep="true"
         edge="bottom"
         align="bottom"
         x="0" y="0"
         width="40" height="40"
         onhover="showTooltip('plugin', NULL, right);"
         onout="hideTooltip();"
         />

  <layer name="SansControlBar_menu_bg"
         keep="true"
         type="container"
         zorder="4"
         width="40"
         height="40"
         align="bottomright"
         x="0" y="10"
         maskchildren="true"
         rotate="0"
         visible="false"
         >






    <layer name="SansControlBarbtn_openfs"
            url="%FIRSTXML%/graphics/sans controlbar/btn_enter_fs.png"
            onclick="enterFullscreen();
"
            style="SansControlBar_btn_style"
            visible="false"
            devices="fullscreensupport"
            tooltip="SansControlBaropenFsTip"
            />
    <layer name="SansControlBarbtn_closefs"
            url="%FIRSTXML%/graphics/sans controlbar/btn_close_fs.png"
            onclick="exitFullscreen();
"
            style="SansControlBar_btn_style"
            visible="false"
            devices="fullscreensupport"
            tooltip="SansControlBarcloseFsTip"
            />



    <layer name="SansControlBarbtn_display_help"
            url="%FIRSTXML%/graphics/sans controlbar/btn_help.png"
            onclick="SansControlBardisplayHelp();"
            style="SansControlBar_btn_style"
            devices="desktop"
            visible="false"
            tooltip="SansControlBardisplayHelpTip"
            />
    <layer name="SansControlBarbtn_close_help"
            url="%FIRSTXML%/graphics/sans controlbar/btn_help.png"
            onclick="SansControlBarcloseHelp();"
            style="SansControlBar_btn_style"
            visible="false"
            devices="desktop"
            tooltip="SansControlBarhideHelpTip"
            />



    <layer name="SansControlBarbtn_hidecontrols"
           url="%FIRSTXML%/graphics/sans controlbar/btn_hide_controls.png"
           style="SansControlBar_btn_style"
           onclick="hideTourControls();
"
           visible="false"
           tooltip="SansControlBarhideControlsTip"
           />
    <layer name="SansControlBarbtn_showcontrols"
           url="%FIRSTXML%/graphics/sans controlbar/btn_show_controls.png"
           style="SansControlBar_btn_style"
           onclick="showTourControls();
"
           tooltip="SansControlBardisplayControlsTip"
           visible="false"
           />
 </layer>





	<events name="SansControlBarhideshowcontrolsevent" 
		hidetourcontrols="SansControlBarhideMenuControls();" 
		showtourcontrols="SansControlBarshowMenuControls();" 
		keep="true" />

  <action name="SansControlBarhideMenuControls">
    set(SansControlBarIsOpened, false);
    set(layer[SansControlBarbtn_hidecontrols].visible, false);
    set(layer[SansControlBarbtn_showcontrols].visible, true);


	SansControlBarupdateFullscreenButtons();
	SansControlBarupdateHelpButtons();








	set(layer[SansControlBar_menu_bg].height, get(SansControlBarbackgroundwidthwhenclosed));

	set(layer[SansControlBar_menu_bg].visible, true);
  </action>
  <action name="SansControlBarshowMenuControls">
    set(SansControlBarIsOpened, true);
    set(layer[SansControlBarbtn_hidecontrols].visible, true);
    set(layer[SansControlBarbtn_showcontrols].visible, false);
	set(layer[SansControlBar_menu_bg].visible, true);


	SansControlBarupdateFullscreenButtons();
	SansControlBarupdateHelpButtons();







    set(layer[SansControlBar_menu_bg].height, get(SansControlBarbackgroundwidthwhenopened));
  </action>

  <layer name="SansControlBarhelpScreenBg"
         align="center"
         keep="true"
         onclick="SansControlBarcloseHelp();"
         url="%FIRSTXML%/graphics/sans controlbar/help_screen_bg.png"
         visible="false"
         rotate="-90"
         height="50%"
         width="prop"
         zorder="97"
         x="100%" />
  <layer name="SansControlBarhelpScreenFg"
         align="center"
         keep="true"
         onclick="SansControlBarcloseHelp();"
         url="%FIRSTXML%/graphics/sans controlbar/help_screen_fg.png"
         height="50%"
         width="prop"
         visible="false"
         rotate="90"
         zorder="98"
         x="-100%"
         displayed="false" />
  <action name="SansControlBardisplayHelp">
  if (device.desktop,
    set(layer[SansControlBarhelpScreenFg].displayed,true);
    set(layer[SansControlBarhelpScreenBg].visible,true);
    set(layer[SansControlBarhelpScreenFg].visible,true);
    tween(layer[SansControlBarhelpScreenFg].rotate,0, 1);
    tween(layer[SansControlBarhelpScreenFg].x,0, 1);
    tween(layer[SansControlBarhelpScreenBg].rotate,0, 1);
    tween(layer[SansControlBarhelpScreenBg].x,0, 1);
    SansControlBarupdateHelpButtons();
  );
  </action>
  <action name="SansControlBarcloseHelp">
  if (device.desktop,
    set(layer[SansControlBarhelpScreenFg].displayed,false);
    tween(layer[SansControlBarhelpScreenFg].rotate,  90, 1, easeOutQuad, set(layer[SansControlBarhelpScreenFg].visible,false););
    tween(layer[SansControlBarhelpScreenFg].x, -100%, 1);
    tween(layer[SansControlBarhelpScreenBg].rotate, -90, 1, easeOutQuad, set(layer[SansControlBarhelpScreenBg].visible,false););
    tween(layer[SansControlBarhelpScreenBg].x, 100%, 1);
    SansControlBarupdateHelpButtons();
  );
  </action>
	<action name="SansControlBarHideHelpButtons">
		set(layer[SansControlBarbtn_display_help].visible, false);
		set(layer[SansControlBarbtn_close_help].visible, false);
	</action>
	<action name="SansControlBarShowHelpButtons">
		if (layer[SansControlBarhelpScreenFg].displayed,
			set(layer[SansControlBarbtn_close_help].visible, true);
			set(layer[SansControlBarbtn_display_help].visible, false);
		,
			set(layer[SansControlBarbtn_display_help].visible, true);
			set(layer[SansControlBarbtn_close_help].visible, false);
		);
	</action>
	<action name="SansControlBarupdateHelpButtons">
	if (device.desktop,
		if (tour_displaycontrols,
			SansControlBarShowHelpButtons();
		,
			SansControlBarHideHelpButtons();
		);
	,
		SansControlBarHideHelpButtons();
	);
	</action>




  <events name="SansControlBarmenufullscreenchangeevent"
          onenterfullscreen="SansControlBarupdateFullscreenButtons();"
          onexitfullscreen="SansControlBarupdateFullscreenButtons();"
          keep="true"/>
	<action name="SansControlBarHideFullscreenButtons">
		set(layer[SansControlBarbtn_openfs].visible , false);
		set(layer[SansControlBarbtn_closefs].visible, false);
	</action>
	<action name="SansControlBarShowFullscreenButtons">
		if (device.fullscreensupport,
			if(tour_fullscreen,
				set(layer[SansControlBarbtn_openfs].visible , false);
				set(layer[SansControlBarbtn_closefs].visible, true);
			,
				set(layer[SansControlBarbtn_openfs].visible ,true);
				set(layer[SansControlBarbtn_closefs].visible,false);
			);
		,
			SansControlBarHideFullscreenButtons();
		);
	</action>
	<action name="SansControlBarupdateFullscreenButtons">
		if (tour_displaycontrols,
			SansControlBarShowFullscreenButtons();
		,
			SansControlBarHideFullscreenButtons();
		);
	</action>



  <action name="SansControlBarbuildMenu">
    
    set(SansControlBarbutton_pos, 0);

	set(SansControlBarbackgroundwidthwhenclosed, 40);
    set(layer[SansControlBarbtn_hidecontrols].y, get(SansControlBarbutton_pos));
    set(layer[SansControlBarbtn_showcontrols].y, get(SansControlBarbutton_pos));
    inc(SansControlBarbutton_pos, 45);



      if (device.desktop,
        set(layer[SansControlBarbtn_display_help].y, get(SansControlBarbutton_pos));
        set(layer[SansControlBarbtn_close_help].y  , get(SansControlBarbutton_pos));
        inc(SansControlBarbutton_pos, 45);
      );

      if (device.fullscreensupport,
        set(layer[SansControlBarbtn_openfs].y , get(SansControlBarbutton_pos));
        set(layer[SansControlBarbtn_closefs].y, get(SansControlBarbutton_pos));
        inc(SansControlBarbutton_pos, 45);
      );











      dec(SansControlBarbutton_pos, 5);

      set(SansControlBarbackgroundwidthwhenopened, get(SansControlBarbutton_pos));


    
      set(layer[SansControlBar_menu_bg].height, get(SansControlBarbackgroundwidthwhenopened));
	
	
	
    </action>

	<events name="SansControlBarStartTourEvents" onTourStart="SansControlBarCallOnStartTour();" keep="true" />
	
	<action name="SansControlBarCallOnStartTour">
		
		showTourControls();

	</action>



<!-- ********** -->
<!-- En-tête Centre -->
<!-- id : header -->
<!-- ********** -->

  <layer name="header"
         keep="true"
         type="container"
         bgcolor="0xffed00"
         bgalpha="1"
         align="top"
         x="0"
         y="0"
         zorder="5"
         enabled="false"
         capture="true"
         visible="false"
         height="50"
         width="100%"
         accuracy="1"
         />

  <events name="headerevents"
    onTourStart="showheader();"
    hidetourcontrols="hideheader();"
    showtourcontrols="showheader();"
    keep="true" />

  <action name="hideheader">
    set(layer[header].visible, false);
  </action>
  <action name="showheader">
    set(layer[header].visible, true);
  </action>

<!-- ********** -->
<!-- Barre de Titre -->
<!-- id : title1 -->
<!-- ********** -->

  <events name="title1_events" 
    onTourStart="showtitle1();"
    hidetourcontrols="hidetitle1();" 
    showtourcontrols="showtitle1();" 
    changetourlanguage="changeLanguagetitle1"
    keep="true" />

  <action name="hidetitle1">set(layer[title1].visible, false);</action>
  <action name="showtitle1">set(layer[title1].visible, true );</action>

  <action name="changeLanguagetitle1">
    getmessage(layer[title1].html,get(projecttitleid));
    escape(layer[title1].html);
  </action>

  <layer name="title1" keep="true" zorder="6"
         type="text"
         align="top" x="0" y="10"
         onloaded="getmessage(html,get(projecttitleid));escape(html);"
         bg="false"
         bgborder="0"
         alpha="1"
         visible="false"
         capture="false" handcursor="false" enabled="false"
         interactivecontent="false" 
         css="text-align:center;
              color:#000000;
              font-family:Arial;
              font-weight:bold;
              font-size:20px;"/>

<!-- ********** -->
<!-- Mon logo -->
<!-- id : logo1 -->
<!-- ********** -->


  <layer align="bottomleft"
         x="0"
         y="0"
         zorder="7"
         name="logo1"
         keep="true"
         visible="false"
         capture="false"

			tooltip="logo1tooltipText"
			onhover="showTooltip('plugin',logo1TooltipStyle);"
			onout="hideTooltip();"
         url="%FIRSTXML%/graphics/logo1/logo_rond_v3-panotour.png" 
         onclick="
getmessage(urltoopen,logo1websiteurl);openurl(get(urltoopen),_blank);
"

         height="60"
         width="60"

         />

  <events name="logo1events" 
    onTourStart="showlogo1();"
    keep="true" />

  <action name="hidelogo1">
    set(layer[logo1].visible, false);
  </action>
  <action name="showlogo1">
      set(layer[logo1].visible, true);
  </action>



<layer name="logo1TooltipStyle"
	keep="true"
	enabled="false"
	capture="false"
	type="text"
	align="center"
	bg="false"
	bgborder="0"
	css="color:#000000;font-family:Arial;font-size:10px;text-align:left;"
	edge="bottom"
	interactivecontent="false"
	zorder="0"
	padding="2"
	xoffset="0"
	yoffset="0"
	visible="false"
	html=""
/>


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


  <layer align="topleft"
         x="10"
         y="0"
         zorder="8"
         name="logo"
         keep="true"
         visible="false"
         capture="false"

			tooltip="logotooltipText"
			onhover="showTooltip('plugin');"
			onout="hideTooltip();"
         url="%FIRSTXML%/graphics/logo/my_sartorius-logo-200.png" 
         onclick="
getmessage(urltoopen,logowebsiteurl);openurl(get(urltoopen),_blank);
"

         height="50"
         width="prop"

         />

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

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





<!-- ********** -->
<!-- Plan -->
<!-- id : floorPlan -->
<!-- ********** -->

	<ptplugin name="floorPlan" engine="KolorFloorPlan">
		<settings>
			<option name="background_color" value="ffed00" type="string" />
			<option name="background_lighter_color" value="fff133" type="string" />
			<option name="background_darker_color" value="d5c600" type="string" />
			<option name="background_alpha" value="1" type="float" />
			<option name="text_color" value="000000" type="string" />

			<option name="resize" value="false" type="bool" />
			<option name="fp_selector" value="multiple" type="string" />
			<option name="fp_selector_label" value="floorPlanmenu_label" type="string" />
			<option name="display_title" value="true" type="bool" />
			<option name="title" value="project_floor_title" type="string" />
			<option name="title_font" value="Arial" type="string" />
			<option name="title_size" value="14" type="int" />
			<option name="title_weight" value="normal" type="string" />
			<option name="title_decoration" value="normal" type="string" />
			<option name="title_color" value="000000" type="string" />
			<option name="display_orientation" value="false" type="bool" />
			<option name="display_radar" value="true" type="bool" />
			<option name="radar_radius" value="50" type="int" />
			<option name="radar_line_width" value="1" type="int" />
			<option name="radar_line_color" value="000000" type="string" />
			<option name="radar_line_alpha" value="1" type="float" />
			<option name="radar_fill_color" value="ffed00" type="string" />
			<option name="radar_fill_alpha" value="0.40000000000000002" type="float" />
			<option name="selected_effect" value="pulsate" type="string" />
			<option name="close_on_click" value="false" type="bool" />
			<option name="position" value="topright" type="string" />
			<option name="zorder" value="9" type="int" />
			<option name="use_i18n" value="true" type="bool" />
		</settings>
		
		<floorplanItems selectedItem="fpitemmain" selectedSpot="" selectedSpotScene="" selectedSpotHeading="" selectedSpotFov="">
				
				<floorplanItem 
					name="fpitemmain" 
					width="500" 
					height="500" 
					groupName="" 
					url="floorplan/plan-p14.jpg" 
					title="project_floor_title"
					heading="0">
				</floorplanItem>
			
			
							<floorplanItem 
								name="fpitempanogroup850" 
								width="500" 
								height="500" 
								groupName="panogroup850" 
								url="floorplan/plan-p1_panogroup850.jpg" 
								title="panogroup850_floor_title"
								heading="0">
										<spot name="spotmap29181" posX="0.00518134981" posY="0.725389004" heading="3.3999999999999768" desc="spotmap29181_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano685" jsClick="spotmap29181ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap29183" posX="0.984456003" posY="0.379101992" heading="0" desc="spotmap29183_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano42578" jsClick="spotmap29183ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap29189" posX="0.52590698" posY="0.873920977" heading="0" desc="spotmap29189_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano42574" jsClick="spotmap29189ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap46747" posX="0.340241998" posY="0.00777202006" heading="11.799999999999869" desc="spotmap46747_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano43720" jsClick="spotmap46747ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap46748" posX="0.0708116964" posY="0.789291978" heading="16.1999999999999" desc="spotmap46748_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano43716" jsClick="spotmap46748ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap46749" posX="0.836787999" posY="0.489636987" heading="23.999999999999861" desc="spotmap46749_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano43719" jsClick="spotmap46749ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap46750" posX="0.398963988" posY="0.746977985" heading="0" desc="spotmap46750_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano42667" jsClick="spotmap46750ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap46751" posX="0.586355984" posY="0.82901597" heading="-93.000000000000227" desc="spotmap46751_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano46736" jsClick="spotmap46751ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap46754" posX="0.697754979" posY="0.655439973" heading="-50.999999999999893" desc="spotmap46754_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano42663" jsClick="spotmap46754ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap46755" posX="0.478410989" posY="0.200344995" heading="0" desc="spotmap46755_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano42664" jsClick="spotmap46755ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap46756" posX="0.386009991" posY="0.346287012" heading="0" desc="spotmap46756_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano42665" jsClick="spotmap46756ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap46757" posX="0.392055005" posY="0.500864029" heading="-54.400000000000091" desc="spotmap46757_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano42666" jsClick="spotmap46757ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
							</floorplanItem>
							<floorplanItem 
								name="fpitempanogroup716" 
								width="500" 
								height="500" 
								groupName="panogroup716" 
								url="floorplan/plan-p5_panogroup716.jpg" 
								title="panogroup716_floor_title"
								heading="0">
										<spot name="spotmap29197" posX="0.0187573005" posY="0.81359899" heading="72.999999999999886" desc="spotmap29197_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano684" jsClick="spotmap29197ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap29198" posX="0.629290998" posY="0.180777997" heading="69.400000000000148" desc="spotmap29198_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano823" jsClick="spotmap29198ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap29199" posX="0.753809988" posY="0.93552202" heading="-86.199999999999747" desc="spotmap29199_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano689" jsClick="spotmap29199ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap29200" posX="0.283704996" posY="0.613129973" heading="91.399999999999864" desc="spotmap29200_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano694" jsClick="spotmap29200ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap29201" posX="0.143024996" posY="0.165298998" heading="113.7999999999996" desc="spotmap29201_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano691" jsClick="spotmap29201ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap29202" posX="0.438452989" posY="0.451348007" heading="161.5999999999994" desc="spotmap29202_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano692" jsClick="spotmap29202ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap29204" posX="0.854631007" posY="0.658851027" heading="-129.80000000000001" desc="spotmap29204_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano21660" jsClick="spotmap29204ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap29205" posX="0.785462976" posY="0.81359899" heading="28.599999999999969" desc="spotmap29205_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano21661" jsClick="spotmap29205ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap29206" posX="0.728018999" posY="0.960141003" heading="59.599999999999973" desc="spotmap29206_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano21662" jsClick="spotmap29206ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap29208" posX="0.276670992" posY="0.779600978" heading="83.799999999999727" desc="spotmap29208_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano21664" jsClick="spotmap29208ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap29209" posX="0.518171012" posY="0.874559999" heading="-154.00000000000031" desc="spotmap29209_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano21663" jsClick="spotmap29209ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
							</floorplanItem>
							<floorplanItem 
								name="fpitempanogroup21700" 
								width="500" 
								height="500" 
								groupName="panogroup21700" 
								url="floorplan/plan-p6_panogroup21700.jpg" 
								title="panogroup21700_floor_title"
								heading="0">
										<spot name="spotmap41789" posX="0.157013997" posY="0.80566299" heading="0" desc="spotmap41789_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano25739" jsClick="spotmap41789ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap41790" posX="0.842985988" posY="0.425996989" heading="19.999999999999769" desc="spotmap41790_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano21679" jsClick="spotmap41790ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap41791" posX="0.788932025" posY="0.63063103" heading="164.79999999999981" desc="spotmap41791_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano21678" jsClick="spotmap41791ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
							</floorplanItem>
							<floorplanItem 
								name="fpitempanogroup988" 
								width="500" 
								height="500" 
								groupName="panogroup988" 
								url="floorplan/plan-p8_panogroup988.jpg" 
								title="panogroup988_floor_title"
								heading="0">
										<spot name="spotmap29210" posX="0.933176994" posY="0.0832355991" heading="-135.1999999999999" desc="spotmap29210_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano963" jsClick="spotmap29210ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap29211" posX="0.834096014" posY="0.855835021" heading="-52.599999999999781" desc="spotmap29211_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano976" jsClick="spotmap29211ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap29212" posX="0.0257913005" posY="0.269636989" heading="148.19999999999951" desc="spotmap29212_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano973" jsClick="spotmap29212ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap29213" posX="0.0331807993" posY="0.688786983" heading="83.199999999999818" desc="spotmap29213_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano975" jsClick="spotmap29213ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap29214" posX="0.509965003" posY="0.274325997" heading="-97.600000000000037" desc="spotmap29214_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano965" jsClick="spotmap29214ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap29215" posX="0.762013972" posY="0.374141991" heading="-109.60000000000019" desc="spotmap29215_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano966" jsClick="spotmap29215ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap29216" posX="0.489703" posY="0.704805017" heading="0" desc="spotmap29216_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano970" jsClick="spotmap29216ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap29217" posX="0.316529989" posY="0.112544" heading="54.200000000000273" desc="spotmap29217_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano974" jsClick="spotmap29217ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap29218" posX="0.378663987" posY="0.860491991" heading="0" desc="spotmap29218_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano972" jsClick="spotmap29218ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap39614" posX="0.213496" posY="0.731194973" heading="-28.400000000000212" desc="spotmap39614_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano37085" jsClick="spotmap39614ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap39615" posX="0.209070995" posY="0.442478001" heading="68.800000000000011" desc="spotmap39615_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano37091" jsClick="spotmap39615ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap39616" posX="0.560841024" posY="0.430310011" heading="0" desc="spotmap39616_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="" jsClick="spotmap39616ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap39617" posX="0.42809701" posY="0.336282998" heading="17.999999999999972" desc="spotmap39617_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano37097" jsClick="spotmap39617ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap39618" posX="0.671459973" posY="0.398229986" heading="-104.40000000000011" desc="spotmap39618_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano37100" jsClick="spotmap39618ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap39619" posX="0.644912004" posY="0.471239001" heading="73.399999999999977" desc="spotmap39619_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano37103" jsClick="spotmap39619ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap39620" posX="0.514380991" posY="0.629424989" heading="-74.399999999999949" desc="spotmap39620_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano37106" jsClick="spotmap39620ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
							</floorplanItem>
							<floorplanItem 
								name="fpitempanogroup378" 
								width="500" 
								height="500" 
								groupName="panogroup378" 
								url="floorplan/plan-p11_panogroup378.jpg" 
								title="panogroup378_floor_title"
								heading="0">
										<spot name="spotmap35460" posX="0.570811987" posY="0.726252019" heading="20.199999999999928" desc="spotmap35460_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano43717" jsClick="spotmap35460ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap46790" posX="0.99654597" posY="0.486182988" heading="0" desc="spotmap46790_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano42579" jsClick="spotmap46790ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap46791" posX="0.263384998" posY="0.397237003" heading="10.60000000000008" desc="spotmap46791_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano42580" jsClick="spotmap46791ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap46792" posX="0.27374801" posY="0.379965007" heading="6.1999999999999602" desc="spotmap46792_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano43714" jsClick="spotmap46792ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap46794" posX="0.646804988" posY="0.275474995" heading="119.19999999999931" desc="spotmap46794_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano42659" jsClick="spotmap46794ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap46795" posX="0.702935994" posY="0.417097986" heading="-58.400000000000013" desc="spotmap46795_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano42660" jsClick="spotmap46795ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap46796" posX="0.52590698" posY="0.317788988" heading="-44.599999999999802" desc="spotmap46796_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano42668" jsClick="spotmap46796ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap46797" posX="0.403281987" posY="0.362693995" heading="77.599999999999966" desc="spotmap46797_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano42669" jsClick="spotmap46797ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap46798" posX="0.0785837993" posY="0.463730991" heading="-61.799999999999983" desc="spotmap46798_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano42670" jsClick="spotmap46798ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap46799" posX="0.865284979" posY="0.626942992" heading="-141.2000000000001" desc="spotmap46799_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano42661" jsClick="spotmap46799ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap46800" posX="0.966320992" posY="0.845422983" heading="0" desc="spotmap46800_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano43715" jsClick="spotmap46800ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap46801" posX="0.801382005" posY="0.310880989" heading="0" desc="spotmap46801_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano43718" jsClick="spotmap46801ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
							</floorplanItem>
							<floorplanItem 
								name="fpitempanogroup37122" 
								width="500" 
								height="500" 
								groupName="panogroup37122" 
								url="floorplan/plan-p13_panogroup37122.jpg" 
								title="panogroup37122_floor_title"
								heading="0">
										<spot name="spotmap41792" posX="0.505791008" posY="0.0115830004" heading="169.00000000000011" desc="spotmap41792_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano37751" jsClick="spotmap41792ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap41794" posX="0.841699004" posY="0.413127005" heading="-90.800000000000153" desc="spotmap41794_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano37757" jsClick="spotmap41794ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap41796" posX="0.768339992" posY="0.633204997" heading="-37.999999999999773" desc="spotmap41796_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano37758" jsClick="spotmap41796ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap41797" posX="0.444014996" posY="0.129987001" heading="0" desc="spotmap41797_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano37760" jsClick="spotmap41797ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap41799" posX="0.759330988" posY="0.441441" heading="-129.4000000000002" desc="spotmap41799_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano37127" jsClick="spotmap41799ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap41800" posX="0.682111025" posY="0.597168982" heading="-24.80000000000021" desc="spotmap41800_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano37124" jsClick="spotmap41800ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap41802" posX="0.485199004" posY="0.505791008" heading="9.9999999999998863" desc="spotmap41802_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano37130" jsClick="spotmap41802ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap41803" posX="0.724582016" posY="0.329472005" heading="174.20000000000019" desc="spotmap41803_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano37121" jsClick="spotmap41803ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
							</floorplanItem>
							<floorplanItem 
								name="fpitempanogroup37110" 
								width="500" 
								height="500" 
								groupName="panogroup37110" 
								url="floorplan/plan-p14_panogroup37110.jpg" 
								title="panogroup37110_floor_title"
								heading="0">
										<spot name="spotmap41805" posX="0.162162006" posY="0.383525997" heading="101.39999999999991" desc="spotmap41805_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano37747" jsClick="spotmap41805ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap41806" posX="0.906049013" posY="0.734878004" heading="26.799999999999841" desc="spotmap41806_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano37749" jsClick="spotmap41806ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap41807" posX="0.765766025" posY="0.698841989" heading="-62.799999999999812" desc="spotmap41807_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano37752" jsClick="spotmap41807ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap41808" posX="0.593307972" posY="0.276704997" heading="0" desc="spotmap41808_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano37755" jsClick="spotmap41808ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap41809" posX="0.885456979" posY="0.503217995" heading="-139" desc="spotmap41809_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano37756" jsClick="spotmap41809ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap41810" posX="0.516088009" posY="0.740025997" heading="-155.7999999999999" desc="spotmap41810_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano37112" jsClick="spotmap41810ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap41811" posX="0.715573013" posY="0.602316976" heading="-65.399999999999935" desc="spotmap41811_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano37118" jsClick="spotmap41811ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap41812" posX="0.561133027" posY="0.458171993" heading="-81.399999999999977" desc="spotmap41812_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano37115" jsClick="spotmap41812ActionSpotFloorPlan">
											<icon url="spots/icone-360-sol_user_defaultmap11.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
										<spot name="spotmap41813" posX="0.688546002" posY="0.792792976" heading="45.799999999999869" desc="spotmap41813_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano37109" jsClick="spotmap41813ActionSpotFloorPlan">
											<icon url="spots/icone-360-air_user_defaultmap13.png" iconWidth="30" iconHeight="30" iconAnchor="bottom" />
										</spot>
							</floorplanItem>
		</floorplanItems>
	</ptplugin>
	
	<action name="kolorFloorplanJsReady_floorPlan">
		set(ptplugin[floorPlan].jsready, true);
		
		ifnot(ptplugin[floorPlan].floorplanItems.selectedSpot == "",
			set(ptplugin[floorPlan].floorplanItems.selectedSpotFov, get(view.hfov));
			js(invokePluginFunction(floorPlan, setKolorFloorPlanSelectedSpotOptions, get(xml.scene), get(view.hlookat), get(view.hfov)));
		);
	</action>
	
	
	
					<!-- floorplan panogroup850 spots counter : 12 -->
						<action name="spotmap29181ActionSpotFloorPlan">
          mainloadscene(pano685);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap29183ActionSpotFloorPlan">
          mainloadscene(pano42578);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap29189ActionSpotFloorPlan">
          mainloadscene(pano42574);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap46747ActionSpotFloorPlan">
          mainloadscene(pano43720);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap46748ActionSpotFloorPlan">
          mainloadscene(pano43716);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap46749ActionSpotFloorPlan">
          mainloadscene(pano43719);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap46750ActionSpotFloorPlan">
          mainloadscene(pano42667);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap46751ActionSpotFloorPlan">
          mainloadscene(pano46736);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap46754ActionSpotFloorPlan">
          mainloadscene(pano42663);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap46755ActionSpotFloorPlan">
          mainloadscene(pano42664);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap46756ActionSpotFloorPlan">
          mainloadscene(pano42665);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap46757ActionSpotFloorPlan">
          mainloadscene(pano42666);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
					<!-- floorplan panogroup716 spots counter : 11 -->
						<action name="spotmap29197ActionSpotFloorPlan">
          mainloadscene(pano684);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap29198ActionSpotFloorPlan">
          mainloadscene(pano823);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap29199ActionSpotFloorPlan">
          mainloadscene(pano689);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap29200ActionSpotFloorPlan">
          mainloadscene(pano694);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap29201ActionSpotFloorPlan">
          mainloadscene(pano691);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap29202ActionSpotFloorPlan">
          mainloadscene(pano692);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap29204ActionSpotFloorPlan">
          mainloadscene(pano21660);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap29205ActionSpotFloorPlan">
          mainloadscene(pano21661);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap29206ActionSpotFloorPlan">
          mainloadscene(pano21662);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap29208ActionSpotFloorPlan">
          mainloadscene(pano21664);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap29209ActionSpotFloorPlan">
          mainloadscene(pano21663);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
					<!-- floorplan panogroup21700 spots counter : 3 -->
						<action name="spotmap41789ActionSpotFloorPlan">
          mainloadscene(pano25739);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap41790ActionSpotFloorPlan">
          mainloadscene(pano21679);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap41791ActionSpotFloorPlan">
          mainloadscene(pano21678);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
					<!-- floorplan panogroup988 spots counter : 16 -->
						<action name="spotmap29210ActionSpotFloorPlan">
          mainloadscene(pano963);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap29211ActionSpotFloorPlan">
          mainloadscene(pano976);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap29212ActionSpotFloorPlan">
          mainloadscene(pano973);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap29213ActionSpotFloorPlan">
          mainloadscene(pano975);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap29214ActionSpotFloorPlan">
          mainloadscene(pano965);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap29215ActionSpotFloorPlan">
          mainloadscene(pano966);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap29216ActionSpotFloorPlan">
          mainloadscene(pano970);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap29217ActionSpotFloorPlan">
          mainloadscene(pano974);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap29218ActionSpotFloorPlan">
          mainloadscene(pano972);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap39614ActionSpotFloorPlan">
          mainloadscene(pano37085);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap39615ActionSpotFloorPlan">
          mainloadscene(pano37091);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap39616ActionSpotFloorPlan">

</action>
						<action name="spotmap39617ActionSpotFloorPlan">
          mainloadscene(pano37097);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap39618ActionSpotFloorPlan">
          mainloadscene(pano37100);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap39619ActionSpotFloorPlan">
          mainloadscene(pano37103);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap39620ActionSpotFloorPlan">
          mainloadscene(pano37106);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
					<!-- floorplan panogroup378 spots counter : 12 -->
						<action name="spotmap35460ActionSpotFloorPlan">
          mainloadscene(pano43717);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap46790ActionSpotFloorPlan">
          mainloadscene(pano42579);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap46791ActionSpotFloorPlan">
          mainloadscene(pano42580);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap46792ActionSpotFloorPlan">
          mainloadscene(pano43714);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap46794ActionSpotFloorPlan">
          mainloadscene(pano42659);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap46795ActionSpotFloorPlan">
          mainloadscene(pano42660);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap46796ActionSpotFloorPlan">
          mainloadscene(pano42668);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap46797ActionSpotFloorPlan">
          mainloadscene(pano42669);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap46798ActionSpotFloorPlan">
          mainloadscene(pano42670);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap46799ActionSpotFloorPlan">
          mainloadscene(pano42661);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap46800ActionSpotFloorPlan">
          mainloadscene(pano43715);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap46801ActionSpotFloorPlan">
          mainloadscene(pano43718);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
					<!-- floorplan panogroup37122 spots counter : 8 -->
						<action name="spotmap41792ActionSpotFloorPlan">
          mainloadscene(pano37751);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap41794ActionSpotFloorPlan">
          mainloadscene(pano37757);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap41796ActionSpotFloorPlan">
          mainloadscene(pano37758);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap41797ActionSpotFloorPlan">
          mainloadscene(pano37760);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap41799ActionSpotFloorPlan">
          mainloadscene(pano37127);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap41800ActionSpotFloorPlan">
          mainloadscene(pano37124);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap41802ActionSpotFloorPlan">
          mainloadscene(pano37130);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap41803ActionSpotFloorPlan">
          mainloadscene(pano37121);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
					<!-- floorplan panogroup37110 spots counter : 9 -->
						<action name="spotmap41805ActionSpotFloorPlan">
          mainloadscene(pano37747);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap41806ActionSpotFloorPlan">
          mainloadscene(pano37749);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap41807ActionSpotFloorPlan">
          mainloadscene(pano37752);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap41808ActionSpotFloorPlan">
          mainloadscene(pano37755);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap41809ActionSpotFloorPlan">
          mainloadscene(pano37756);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap41810ActionSpotFloorPlan">
          mainloadscene(pano37112);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap41811ActionSpotFloorPlan">
          mainloadscene(pano37118);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap41812ActionSpotFloorPlan">
          mainloadscene(pano37115);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
						<action name="spotmap41813ActionSpotFloorPlan">
          mainloadscene(pano37109);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
	
	
	<events name="floorPlanEvents" 
	onxmlcomplete="ifnot(floorPlanFloorPlanLoaded,set(tour_displayfloorplan,false););floorPlanActivateDefaultSpot();" 
	onviewchanged="floorPlanOnViewChange();" 
	onhidetourfloorplan="delayedcall(0.3,floorPlanCloseTourFloorPlan(););" 
	onshowtourfloorplan="if(tour_displayfloorplan,floorPlanOpenTourFloorPlan(););" 
	onTourStart=""
	changetourlanguage="floorPlanChangeLanguage();"
	keep="true" />
	
	<action name="floorPlanChangeLanguage">
		if(ptplugin[floorPlan].jsready,
			stopdelayedcall(delay_floorPlan);
			js(invokePluginFunction(floorPlanArea, changeLanguage, false, false));
			js(invokePluginFunction(floorPlan, changeLanguage));
		,
			delayedcall(delay_floorPlan, 0.1, floorPlanChangeLanguage(););
		);
	</action>
	
	
	<krpano floorPlanFloorPlanLoaded="false" />
	
	<action name="floorPlanHideTourFloorPlan">
		hideKolorArea_floorPlanArea(true);
	</action>
	
	<action name="floorPlanCloseTourFloorPlan">
		closeKolorArea_floorPlanArea();
	</action>
	
	<action name="floorPlanShowTourFloorPlan">
		if(ptplugin[floorPlanArea].isOpen === null,
			openKolorArea_floorPlanArea();
		,
			showKolorArea_floorPlanArea(true);
		);
	</action>
	
	<action name="floorPlanOpenTourFloorPlan">
		openKolorArea_floorPlanArea();
	</action>
	
	<action name="floorPlanOnViewChange">
		if (floorPlanFloorPlanLoaded == true,
			ifnot(ptplugin[floorPlan].floorplanItems.selectedSpot == "",
				ifnot(scene[get(xml.scene)].planar,
					js(invokePluginFunction(floorPlan, changeDirection, get(xml.scene), get(view.hlookat), get(view.hfov)));
				);
			);
		);
	</action>
	
	<action name="floorPlanActivateSpot">
		
		set(ptplugin[floorPlan].floorplanItems.selectedSpot, %1);
		set(ptplugin[floorPlan].floorplanItems.selectedItem, %2);
		
		if(%1 !== "",
			set(ptplugin[floorPlan].floorplanItems.selectedSpotScene, get(xml.scene));
			set(ptplugin[floorPlan].floorplanItems.selectedSpotHeading, get(view.hlookat));
			set(ptplugin[floorPlan].floorplanItems.selectedSpotFov, get(view.hfov));
		);
		
		
		if(ptplugin[floorPlanArea].isOpen,
			floorPlanSelectActivatedSpot(%1, %2, %3);
		);
	</action>
	
	<action name="floorPlanSelectActivatedSpot">
		js(invokePluginFunction(floorPlan, selectSpot, %1, %2, %3));

		if(%1 !== "",
			if(scene[get(xml.scene)].planar,
				js(invokePluginFunction(floorPlan, hideRadar));
			,
				js(invokePluginFunction(floorPlan, changeDirection, get(xml.scene), get(view.hlookat), get(view.hfov)));
			);
		);
	</action>
	
	<action name="floorPlanDeactivateSpot">
		set(ptplugin[floorPlan].floorplanItems.selectedSpot, "");
		
		js(invokePluginFunction(floorPlan, unselectSpot));
	</action>
	
	<action name="floorPlanActivateDefaultSpot">
		set(floorPlanFloorPlanLoaded, true);
		
		set(floorPlanSpotFound, "");
		set(floorPlanSpotScene, "");
		set(floorPlanItemFound, "");
		set(floorPlanItemSearch, true);
		set(floorPlanSpotSearch, true);
		set(floorPlanSpotSearchActivated, true);
		set(floorPlanSpotSearchContinue, true);
		
		
		for(set(defaultfloorplaniteminc,0), defaultfloorplaniteminc LT ptplugin[floorPlan].floorplanItems.floorplanItem.count , inc(defaultfloorplaniteminc),
                        if(floorPlanSpotSearchActivated == true,
				
				if(ptplugin[floorPlan].floorplanItems.floorplanItem[get(defaultfloorplaniteminc)].groupName == scene[get(xml.scene)].group,
					set(floorPlanItemFound, get(ptplugin[floorPlan].floorplanItems.floorplanItem[get(defaultfloorplaniteminc)].name));
					set(ptplugin[floorPlan].floorplanItems.selectedItem, get(ptplugin[floorPlan].floorplanItems.floorplanItem[get(defaultfloorplaniteminc)].name));
					set(floorPlanItemSearch, false);
					set(floorPlanSpotSearch, true);
				,
					set(floorPlanSpotSearch, false);
					
					if(floorPlanItemFound == "",
						set(floorPlanItemFound, get(ptplugin[floorPlan].floorplanItems.floorplanItem[fpitemmain].name));
						set(ptplugin[floorPlan].floorplanItems.selectedItem, get(ptplugin[floorPlan].floorplanItems.floorplanItem[fpitemmain].name));
					);
				);
			);
			if(floorPlanSpotSearch == true,
                                for(set(defaultspotinc,0), defaultspotinc LT ptplugin[floorPlan].floorplanItems.floorplanItem[get(defaultfloorplaniteminc)].spot.count , inc(defaultspotinc),
                                        if(ptplugin[floorPlan].floorplanItems.floorplanItem[get(defaultfloorplaniteminc)].spot[get(defaultspotinc)].isScene == true,
					
						if(floorPlanSpotSearchContinue == true,
							if(ptplugin[floorPlan].floorplanItems.floorplanItem[get(defaultfloorplaniteminc)].spot[get(defaultspotinc)].scene == xml.scene,
								set(floorPlanSpotFound, get(ptplugin[floorPlan].floorplanItems.floorplanItem[get(defaultfloorplaniteminc)].spot[get(defaultspotinc)].name));
								set(floorPlanSpotScene, get(ptplugin[floorPlan].floorplanItems.floorplanItem[get(defaultfloorplaniteminc)].spot[get(defaultspotinc)].scene));
								set(ptplugin[floorPlan].floorplanItems.selectedItem, get(ptplugin[floorPlan].floorplanItems.floorplanItem[get(defaultfloorplaniteminc)].name));
								if(floorPlanItemSearch == false,
									set(floorPlanSpotSearchContinue, false);
									set(floorPlanSpotSearchActivated, false);
									set(floorPlanSpotSearch, false);
								);
							);
						);
					);
					
				);
			);
		);
		
		if(floorPlanSpotFound == "",
			
			
			floorPlanDeactivateSpot();
			
			
			set(ptplugin[floorPlan].floorplanItems.selectedItem, get(floorPlanItemFound));
			
			
			ifnot(ptplugin[floorPlan].floorplanItems.selectedItem == "",
				floorPlanActivateSpot("", get(ptplugin[floorPlan].floorplanItems.selectedItem), "");
			);
		,
			
			floorPlanActivateSpot(get(floorPlanSpotFound), get(ptplugin[floorPlan].floorplanItems.selectedItem), get(floorPlanSpotScene));
		);
	</action>
	
	<action name="floorPlanChangeTitle">
		js(invokePluginFunction(floorPlan, changeTitle, %1));
	</action>
	
	<ptplugin name="floorPlanArea" engine="kolorArea">
	<settings>
		<option name="position" value="topright" type="string" />
		<option name="start_position" value="right" type="string" />
		<option name="margin_x" value="0" type="int" />
		<option name="margin_y" value="50" type="int" />
		<option name="display_title" value="true" type="bool" />
		<option name="title" value="project_floor_title" type="string" />
		<option name="title_font" value="Arial" type="string" />
		<option name="title_size" value="14" type="int" />
		<option name="title_weight" value="normal" type="string" />
		<option name="title_decoration" value="normal" type="string" />
		<option name="title_color" value="000000" type="string" />
		<option name="close_displayed" value="true" type="bool" />
		<option name="close_text" value="floorPlandisplay_close_text" type="string" />

		<option name="background_color" value="ffed00" type="string" />
		<option name="background_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="padding" value="5" type="int" />
		<option name="topleft_radius" value="0" type="int" />
		<option name="topright_radius" value="0" type="int" />
		<option name="bottomleft_radius" value="0" type="int" />
		<option name="bottomright_radius" value="0" type="int" />
		<option name="area_border_width" value="0" type="int" />
		<option name="area_border_color" value="ffed00" type="string" />
		<option name="area_border_alpha" value="1" type="float" />
		<option name="area_width" value="510" type="int" />
		<option name="area_height" value="540" type="int" />
		<option name="area_width_unit" value="pixel" type="string" />
		<option name="area_height_unit" value="pixel" type="string" />
		<option name="animation" value="true" type="bool" />
		<option name="animation_duration" value="500" type="int" />
		<option name="close_on_click" value="false" type="bool" />
		<option name="refresh_content" value="false" type="bool" />
		<option name="open_callback" value="addKolorFloorPlan('floorPlan', 'floorPlanArea_floorplanDIV');" type="string" />
		<option name="close_callback" value="invokeKrFunction('closeKolorAreaCallback_floorPlanArea')" type="string" />
		<option name="zorder" value="9" type="int" />
		<option name="use_i18n" value="true" type="bool" />
	</settings>
	</ptplugin>
	
	<action name="kolorAreaJsReady_floorPlanArea">
		set(ptplugin[floorPlanArea].jsready, true);

	</action>
	
	<action name="openKolorArea_floorPlanArea">
		ifnot(ptplugin[floorPlanArea].isOpen,
			if(ptplugin[floorPlanArea].doNotDeleteMe,
				set(ptplugin[floorPlanArea].currentCall, false);
				set(ptplugin[floorPlanArea].doNotDeleteMe, false);
			set(ptplugin[floorPlanArea].isOpen, true);
			
			js(showKolorArea(floorPlanArea, &lt;div id="floorPlanArea_floorplanDIV"&gt;&lt;/div&gt;));
			
			if(ptplugin[floorPlan].floorplanItems.selectedSpot != "",
				floorPlanSelectActivatedSpot(get(ptplugin[floorPlan].floorplanItems.selectedSpot), get(ptplugin[floorPlan].floorplanItems.selectedItem), get(ptplugin[floorPlan].floorplanItems.selectedSpotScene));
			);
			,
				set(ptplugin[floorPlanArea].currentCall, true);
				set(ptplugin[floorPlanArea].doNotDeleteMe, true);
				events.dispatch(onremovedisplayedobject);
				delayedcall(0.3,openKolorArea_floorPlanArea(););
			);
		);
	</action>
	
	<action name="closeKolorArea_floorPlanArea">
		if(ptplugin[floorPlanArea].isOpen,
			if(ptplugin[floorPlanArea].doNotDeleteMe,
				set(ptplugin[floorPlanArea].doNotDeleteMe, false);
			,
			js(invokePluginFunction(floorPlanArea, closeKolorArea));
			);
		);
	</action>
	
	<action name="toggleKolorArea_floorPlanArea">
		if(ptplugin[floorPlanArea].isOpen,
			closeKolorArea_floorPlanArea();
		,
			openKolorArea_floorPlanArea();
		);
	</action>
	
	<action name="closeKolorAreaCallback_floorPlanArea">
		set(ptplugin[floorPlanArea].doNotDeleteMe, false);
		set(ptplugin[floorPlanArea].isOpen, false);hideFloorplan();

	</action>
	
	<action name="changeTitleKolorArea_floorPlanArea">
		js(invokePluginFunction(floorPlanArea, changeTitle, %1));
	</action>
	
	<action name="showKolorArea_floorPlanArea">
		if(ptplugin[floorPlanArea].doNotDeleteMe,
			set(ptplugin[floorPlanArea].currentCall, false);
			set(ptplugin[floorPlanArea].doNotDeleteMe, false);
		set(ptplugin[floorPlanArea].isOpen, true);
		
		js(invokePluginFunction(floorPlanArea, showKolorArea, %1));
		,
			set(ptplugin[floorPlanArea].currentCall, true);
			set(ptplugin[floorPlanArea].doNotDeleteMe, true);
			events.dispatch(onremovedisplayedobject);
			delayedcall(0.3,showKolorArea_floorPlanArea(););
		);
	</action>
		
	<action name="hideKolorArea_floorPlanArea">
		if(ptplugin[floorPlanArea].doNotDeleteMe,
			set(ptplugin[floorPlanArea].doNotDeleteMe, false);
		,
		
		set(ptplugin[floorPlanArea].isOpen, false);
		js(invokePluginFunction(floorPlanArea, hideKolorArea, %1));
		);
	</action>
	
	<events name="kolorAreaEvents_floorPlanArea" 
		keep="true"
		hidetourcontrols="if(ptplugin[floorPlanArea].isOpen,set(restore_floorPlanArea, true);hideKolorArea_floorPlanArea(false);,set(restore_floorPlanArea, false););"
		showtourcontrols="if(tour_displayfloorplan,if(restore_floorPlanArea,showKolorArea_floorPlanArea(false);););"
		onremovedisplayedobject="ifnot(ptplugin[floorPlanArea].currentCall,if(ptplugin[floorPlanArea].isOpen,hideFloorplan();
););"
	/>
	

<!-- ********** -->
<!-- Bouton Home -->
<!-- id : togglebutton1 -->
<!-- ********** -->



  <layer name="togglebutton1"
         keep="true"
         url="%FIRSTXML%/graphics/togglebutton1/house.png" 
         align="topright"
         x="5"
         y="5"
         zorder="10"
         tooltip=""
         onhover="togglebutton1OnHover"
         state="true"
         onclick="togglebutton1OnClick"
         onout="hideTooltip();"
         height="40"
         width="40"
         visible="false"
         />

  <action name="togglebutton1OnHover">
    if (state,
      set(tooltip, togglebutton1firsttooltip);
     ,
      set(tooltip, "");
    );
    if (tooltip != "", showTooltip('plugin'););
  </action>
  <action name="togglebutton1OnClick">
    if (state,
      set(state, false);getmessage(urltoopen,togglebutton1openurlwebsiteurl);openurl(get(urltoopen),_self);


     ,
      set(state, true);

    );
  </action>

  <events name="togglebutton1events" 
    onTourStart="showtogglebutton1();"
    hidetourcontrols="hidetogglebutton1();" 
    showtourcontrols="showtogglebutton1();" 
    keep="true" />
  <action name="hidetogglebutton1">set(layer[togglebutton1].visible, false);</action>
  <action name="showtogglebutton1">if(tour_displaycontrols,set(layer[togglebutton1].visible, true);,hidetogglebutton1(););</action>


<!-- ********** -->
<!-- My Snapshot button -->
<!-- id : togglebutton2 -->
<!-- ********** -->



  <layer name="togglebutton2"
         keep="true"
         url="%FIRSTXML%/graphics/togglebutton2/snapshot.png" 
         align="topright"
         x="100"
         y="5"
         zorder="11"
         tooltip=""
         onhover="togglebutton2OnHover"
         state="true"
         onclick="togglebutton2OnClick"
         onout="hideTooltip();"
         height="40"
         width="prop"
         visible="false"
         />

  <action name="togglebutton2OnHover">
    if (state,
      set(tooltip, togglebutton2firsttooltip);
     ,
      set(tooltip, "");
    );
    if (tooltip != "", showTooltip('plugin'););
  </action>
  <action name="togglebutton2OnClick">
    if (state,
      set(state, false);show_snapshot(true);

     ,
      set(state, true);show_snapshot(false);

    );
  </action>

  <events name="togglebutton2events" 
    onTourStart="showtogglebutton2();"
    hidetourcontrols="hidetogglebutton2();" 
    showtourcontrols="showtogglebutton2();" 
    keep="true" />
  <action name="hidetogglebutton2">set(layer[togglebutton2].visible, false);</action>
  <action name="showtogglebutton2">if(tour_displaycontrols,set(layer[togglebutton2].visible, true);,hidetogglebutton2(););</action>


<!-- ************************* -->
<!-- 360Images Snapshot plugin -->
<!-- ************************* -->
<include url="%FIRSTXML%/graphics/360imagessnapshot/panoshoot.xml"/>


<panoshot  
	show_snapshot_onstart="false"

	use_default_button="false"
	hideonhidecontrols="true"

	zoom_to_position="false"

	snapshot_UI_icon_align="topright"
	snapshot_UI_icon_x="150"
	snapshot_UI_icon_y="25"
	
	snapshot_UI_mobile_icon_align="bottom"
	snapshot_UI_mobile_icon_x="0"
	snapshot_UI_mobile_icon_y="50"
	
	maxsize="2048" 
	jpeg_quality="1" 
	watermark="false" 
	snapshot_name="360_Snapshot"
	hidehotspots="true"
	
	show_ratio="true"

	ratio_icon_position_align="right"
	ratio_icon_position_x="0"
	ratio_icon_position_y="0"
	
	viewfinder_ratio_width="16" 
	viewfinder_ratio_height="9"
	viewfinder_padding="150"
	viewfinder_glass="true"
    viewfinder_bg_color="0x000000"
    viewfinder_bg_alpha="0.70"
    viewfinder_border="3 0xffed00 1.00"
	
	camera_icon_y="100"
	camera_mobile_icon_align="bottom"
	camera_mobile_icon_x="0"
	camera_mobile_icon_y="50"
				
	email_subject="Snapshot" 
	email_line1="I took this snapshot from the Sartorius AubagneVirtual" 
	email_line2="Complete VirtualTour available here" 
	email_dest="" 

	show_msg="true"	
	tutorial_msg="Snapshot"
	share_msg="[b]Yep, nice pic ![/b][br]You can now download it or [b]share it[/b] on your social networks ![br]"
	share_txt="Share on"
	
	plugin_path="VTAubagnedata/graphics/360imagessnapshot/"
	
	custom_url=""
	
	aws="false"
	aws_path=""
	
	zorder="12"
/>

<social_but name="panoshot_facebook" show="true"/>
<social_but name="panoshot_twitter" show="false"/>
<social_but name="panoshot_googleplus" show="false"/>
<social_but name="panoshot_linkedin" show="true"/>
<social_but name="panoshot_pininterest" show="false"/>
<social_but name="panoshot_tumblr" show="false"/>

<social_but name="panoshot_vk" show="false"/>
<social_but name="panoshot_weibo" show="false"/>

<social_but name="panoshot_email" show="true"/>
<social_but name="panoshot_download" show="true"/>

<social_but name="panoshot_customurl" show="false"/>
<!-- ********** -->
<!-- Affichage Plan -->
<!-- id : togglebutton -->
<!-- ********** -->



  <layer name="togglebutton"
         keep="true"
         url="%FIRSTXML%/graphics/togglebutton/plan.png" 
         align="topright"
         x="50"
         y="5"
         zorder="13"
         tooltip=""
         onhover="togglebuttonOnHover"
         state="true"
         onclick="togglebuttonOnClick"
         onout="hideTooltip();"
         height="38"
         width="38"
         visible="false"
         />

  <action name="togglebuttonOnHover">
    if (state,
      set(tooltip, togglebuttonfirsttooltip);
     ,
      set(tooltip, togglebuttonsecondtooltip);
    );
    if (tooltip != "", showTooltip('plugin'););
  </action>
  <action name="togglebuttonOnClick">
    if (state,
      set(state, false);showFloorplan();



      set(url,%FIRSTXML%/graphics/togglebutton/plan.png);
     ,
      set(state, true);hideFloorplan();



      set(url,%FIRSTXML%/graphics/togglebutton/plan.png);
    );
  </action>

  <events name="togglebuttonevents" 
    onTourStart="showtogglebutton();"
    hidetourcontrols="hidetogglebutton();" 
    showtourcontrols="showtogglebutton();" 
    keep="true" />
  <action name="hidetogglebutton">set(layer[togglebutton].visible, false);</action>
  <action name="showtogglebutton">if(tour_displaycontrols,set(layer[togglebutton].visible, true);,hidetogglebutton(););</action>


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

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

<action name="setViewArchitectural">
	if(normalViewActivated,stopSetViewTweens(););
	if(current_view_isflat === true,
		setViewNonFlat(VFOV);
	);
	setViewArchitecturalComplete();
</action>

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

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


	<!-- WebVR plugin for VR availability tests -->

	<plugin name="ptpvrmode" devices="html5" keep="true"
		url="%FIRSTXML%/graphics/webvr.js"
		mobilevr_support="true"
		mobilevr_fake_support="true"
		vr_cursor=""
		vr_cursor_enabled="false"
		onavailable="delayedcall(1, checkVrAvailability(););"
		onunavailable="checkVrUnavailable();"
		/>
	<action name="checkVrAvailability">
		if(plugin[ptpvrmode],
			if (plugin[ptpvrmode].isavailable,
				set(tour_vrdevices, true);
				events.dispatch(onvravailable);
			,
				set(tour_vrdevices, false);
			);
		,
			checkVrUnavailable();
		);
	</action>
	<action name="checkVrUnavailable">
		set(tour_vrdevices, false);
		events.dispatch(onvrunavailable);
	</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>


  <!-- Sounds Management -->
  <plugin name="soundinterface"
          preload="true"
          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("shutter.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>

</krpano>