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

    
  <!-- Spot Style - Default Point Spot Style 1 -->
  <style name="IconDefaultPointSpotStyle1"
         url="%FIRSTXML%/spots/_360_cew_gold_user_defaultpoint0.png"
         visible="false"
         zoom="true"
         
         alpha="0.8"
         onhover="onhoverIconDefaultPointSpotStyle1"
         onover="onoverIconDefaultPointSpotStyle1"
         onout="onoutIconDefaultPointSpotStyle1"
         height="50"
         width="50"
         />
  <action name="onhoverIconDefaultPointSpotStyle1">
    showtooltip(hotspot);
  </action>
  <action name="onoverIconDefaultPointSpotStyle1">
tween(scale, 1.2);
tween(alpha, 1);

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

  </action>

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

<!-- ********* -->
<!-- Gyroscope -->
<!-- ********* -->
<plugin name="gyroscope"
        url="graphics/gyro.js"
        keep="true"
        devices="tablet|mobile"
        onavailable="delayedcall(1, checkGyroAvailability(););"
        enabled="true"
        />

<action name="changeGyroscopeState">
  ifnot (plugin[gyroscope].available === undefined,
    if (plugin[gyroscope].available,
      switch(plugin[gyroscope].enabled);
      if (plugin[gyroscope].enabled, events.dispatch(ongyroscopeon);, events.dispatch(ongyroscopeoff););
    );
  );
</action>

<action name="checkGyroAvailability">
	ifnot (plugin[gyroscope].available === undefined, 
		if (plugin[gyroscope].available,
			set(tour_gyroscopedevices, true);
			events.dispatch(ongyroscopeavailable);
			if (plugin[gyroscope].enabled, events.dispatch(ongyroscopeon);, events.dispatch(ongyroscopeoff););
		,
			set(tour_gyroscopedevices, false);
			set(plugin[gyroscope].enabled, false);
		);
	,
		set(tour_gyroscopedevices, false);
		set(plugin[gyroscope].enabled, false);
	);
</action>
<!-- ************ -->
<!-- Context Menu -->
<!-- ************ -->
  <contextmenu fullscreen="false">
    <item name="author" onclick="getmessage(urltoopen,project_author_url);openurl(get(urltoopen),_blank);" />
    <item name="fullscreenentry" onclick="enterFullscreen();" separator="true"/>
  </contextmenu>

  <events name="contextmenuevents" keep="true" onenterfullscreen="updateContextMenu" onexitfullscreen="updateContextMenu" onxmlcomplete="updateContextMenu"/>
  <action name="updateContextMenu">
    getmessage(contextmenu.item[author].caption, project_author_name);
    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(););
    );
  </action>
  <!-- ******************* -->
  <!-- Loading Information -->
  <!-- ******************* -->

  <events name="loaderinformationevent" onxmlcomplete="loaderinformationupdate();" keep="true" devices="flash" />

  <action name="loaderinformationupdate" devices="flash">
    if (progress.progress == 1,
      delayedcall(0.5, set(layer[loaderinformationtextfield].visible, false); );
     ,
         set(layer[loaderinformationtextfield].visible, true);
    );
    mul(progresstext, get(progress.progress),100);
    roundval(progresstext);
    txtadd(progresstext, get(progresstext), %);
    set(layer[loaderinformationtextfield].html, get(progresstext));
    ifnot(progress.progress GE 1, delayedcall(0.01, loaderinformationupdate() ));
  </action>

  <layer name="loaderinformationtextfield"
         devices="flash"
         keep="true"
         zorder="2"
         url="%FIRSTXML%/graphics/textfield.swf"
         align="center"
         x="0"
         y="0"
         borderwidth="0"
         background="false"
         autoheight="true"
         capture="false"
         handcursor="false"
         selectable="false"
         alpha="1"
         visible="true"
         css="
              text-align:center;
              color:#ffffff;
              font-family:Arial;
              font-weight:bold;
              font-size:16px;
             "
  />
<!-- ******* -->
<!-- Gallery -->
<!-- ******* -->

<ptplugin name="gallery" engine="kolorBox">
	<settings>
		<option name="position" value="center" type="string" />
		<option name="margin_x" value="0" type="int" />
		<option name="margin_y" value="0" type="int" />
		<option name="draggable_box" value="false" type="bool" />
		<option name="slideshow_autoplay" value="true" type="bool" />
		<option name="slideshow" value="5000" type="int" />
		<option name="container_auto_size" value="true" type="bool" />
		<option name="container_width" value="100" type="int" />
		<option name="container_width_unit" value="percent" type="string" />
		<option name="container_height" value="100" type="int" />
		<option name="container_height_unit" value="percent" type="string" />
		<option name="container_color" value="424242" type="string" />
		<option name="container_alpha" value="1" type="float" />
		<option name="container_topleft_border_radius" value="10" type="int" />
		<option name="container_topright_border_radius" value="10" type="int" />
		<option name="container_bottomleft_border_radius" value="10" type="int" />
		<option name="container_bottomright_border_radius" value="10" type="int" />
		<option name="container_border_width" value="2" type="int" />
		<option name="container_border_color" value="dac038" type="string" />
		<option name="overlay_displayed" value="false" type="bool" />
		<option name="overlay_color" value="424242" type="string" />
		<option name="overlay_alpha" value="1" type="float" />
		<option name="item_border_width" value="2" type="int" />
		<option name="item_border_color" value="dac038" type="string" />
		<option name="title_displayed" value="false" type="bool" />
		<option name="caption_displayed" value="false" type="bool" />
		<option name="play_displayed" value="true" type="bool" />
		<option name="play_position" value="bottomleft" type="string" /> 
		<option name="navigation_displayed" value="true" type="bool" />
		<option name="navigation_position" value="bottom" type="string" /> 
		<option name="fullscreen_displayed" value="false" type="bool" />
		<option name="fullscreen_position" value="topleft" type="string" /> 
		<option name="close_displayed" value="true" type="bool" />
		<option name="close_position" value="topright" type="string" /> 
		<option name="close_callback" value="invokeKrFunction('closeKolorBoxCallback-gallery')" type="string" />
		<option name="zorder" value="3" type="int" />
	</settings>
	<internaldata>
		<item name="item_1" title="" caption="" value="CEWurzer_Gracelanddata/graphics/gallery/img_8337r.jpg"/>
		<item name="item_2" title="" caption="" value="CEWurzer_Gracelanddata/graphics/gallery/img_8364.jpg"/>
		<item name="item_3" title="" caption="" value="CEWurzer_Gracelanddata/graphics/gallery/img_8365.jpg"/>
		<item name="item_4" title="" caption="" value="CEWurzer_Gracelanddata/graphics/gallery/img_8375.jpg"/>
		<item name="item_5" title="" caption="" value="CEWurzer_Gracelanddata/graphics/gallery/img_8378.jpg"/>
		<item name="item_6" title="" caption="" value="CEWurzer_Gracelanddata/graphics/gallery/img_8383.jpg"/>
		<item name="item_7" title="" caption="" value="CEWurzer_Gracelanddata/graphics/gallery/img_8384.jpg"/>
		<item name="item_8" title="" caption="" value="CEWurzer_Gracelanddata/graphics/gallery/img_8364.jpg"/>
		<item name="item_9" title="" caption="" value="CEWurzer_Gracelanddata/graphics/gallery/img_8390.jpg"/>
		<item name="item_10" title="" caption="" value="CEWurzer_Gracelanddata/graphics/gallery/img_8393.jpg"/>
		<item name="item_11" title="" caption="" value="CEWurzer_Gracelanddata/graphics/gallery/img_8394.jpg"/>
		<item name="item_12" title="" caption="" value="CEWurzer_Gracelanddata/graphics/gallery/img_8404.jpg"/>
		<item name="item_13" title="" caption="" value="CEWurzer_Gracelanddata/graphics/gallery/img_8405.jpg"/>
		<item name="item_14" title="" caption="" value="CEWurzer_Gracelanddata/graphics/gallery/img_8406.jpg"/>
		<item name="item_15" title="" caption="" value="CEWurzer_Gracelanddata/graphics/gallery/img_8407.jpg"/>
		<item name="item_16" title="" caption="" value="CEWurzer_Gracelanddata/graphics/gallery/img_8639.jpg"/>
		<item name="item_17" title="" caption="" value="CEWurzer_Gracelanddata/graphics/gallery/img_8640.jpg"/>
		<item name="item_18" title="" caption="" value="CEWurzer_Gracelanddata/graphics/gallery/img_8641.jpg"/>
		<item name="item_19" title="" caption="" value="CEWurzer_Gracelanddata/graphics/gallery/img_8644.jpg"/>
		<item name="item_20" title="" caption="" value="CEWurzer_Gracelanddata/graphics/gallery/img_8652.jpg"/>
	</internaldata>
</ptplugin>

<action name="kolorBoxJsReady-gallery">
	set(ptplugin[gallery].jsready, true);
</action>

<action name="showGallery-gallery">
	ifnot(ptplugin[gallery].isOpen,
		if(ptplugin[gallery].doNotDeleteMe,
			set(ptplugin[gallery].currentCall, false);
		set(ptplugin[gallery].isOpen, true);
		set(ptplugin[gallery].doNotDeleteMe, false);
		pauseautorotation();
		js(invokePluginFunction(gallery, openKolorBox, %1));
		,
			set(ptplugin[gallery].currentCall, true);
			set(ptplugin[gallery].doNotDeleteMe, true);
			events.dispatch(onremovedisplayedobject);
			delayedcall(1.0,showGallery-gallery(%1););
		);
	);
</action>

<action name="toggleGallery-gallery">
	js(invokePluginFunction(gallery, toggleKolorBox, %1));
</action>


<action name="closeKolorBox-gallery">
	if(ptplugin[gallery].doNotDeleteMe,
		set(ptplugin[gallery].doNotDeleteMe, false);
	,
	js(invokePluginFunction(gallery, closeKolorBox));
	);
</action>

<action name="closeKolorBoxCallback-gallery">
	resumeautorotation();
	set(ptplugin[gallery].doNotDeleteMe, false);
	set(ptplugin[gallery].isOpen, false);
</action>

<events name="kolorBoxEvents-gallery" 
	keep="true"
	onremovepano="if(ptplugin[gallery].isOpen,closeKolorBox-gallery(););"
	onremovedisplayedobject="ifnot(ptplugin[gallery].currentCall,if(ptplugin[gallery].isOpen,closeKolorBox-gallery();););"
/>

  <!-- ************ -->
  <!-- iControl Bar -->
  <!-- ************ -->


  <krpano theme11barbuilt="false" theme11backgroundwidthwhenclosed="0" theme11backgroundwidthwhenopened="0" theme11IsOpened="false" />
  <events name="theme11events" onxmlcomplete="theme11buildMenuBar();" keep="true"/>
  <action name="theme11buildMenuBar">
    ifnot (theme11barbuilt, theme11buildMenu(); set(theme11barbuilt, true););
  </action>

  <style name="theme11_btn_style"
         keep="true"
         edge="right"
         align="right"
         x="0" y="0"
         width="40" height="40"
         crop="0|0|60|60"
         onovercrop="0|60|60|60"
         ondowncrop="0|120|60|60"
         onhover="showTooltip(bottom, theme11menuTooltipStyle, bottom);"
         onout="hideTooltip();"
         />

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


    <layer name="theme11btn_ctrlmode_move_to"
            url="%FIRSTXML%/graphics/icontrolbar/btn_move_to.png"
            style="theme11_btn_style"
            tooltip="controlBar_ictrlmodeMoveTip"
            onclick="setControlModeMoveTo();"
            visible="false"
            devices="desktop"
            />
    <layer name="theme11btn_ctrlmode_drag_to"
            url="%FIRSTXML%/graphics/icontrolbar/btn_drag_to.png"
            style="theme11_btn_style"
            tooltip="controlBar_ictrlmodeDragTip"
            onclick="setControlModeDragTo();"
            visible="false"
            devices="desktop"
            />

    <layer name="theme11btn_in"
            url="%FIRSTXML%/graphics/icontrolbar/btn_zoom_in.png"
            ondown="set(fov_moveforce, -1);"
            onup="set(fov_moveforce, 0);"
            style="theme11_btn_style"
            visible="false"
            tooltip="controlBar_izoomInTip"
            devices="desktop"
            />
    <layer name="theme11btn_out"
            url="%FIRSTXML%/graphics/icontrolbar/btn_zoom_out.png"
            ondown="set(fov_moveforce, +1);"
            onup="set(fov_moveforce, 0);"
            style="theme11_btn_style"
            visible="false"
            tooltip="controlBar_izoomOutTip"
            devices="desktop"
            />

    <layer name="theme11btn_left"
            url="%FIRSTXML%/graphics/icontrolbar/btn_move_left.png"
            ondown="set(hlookat_moveforce, -1);"
            onup="set(hlookat_moveforce, 0);"
            style="theme11_btn_style"
            visible="false"
            tooltip="controlBar_imoveLeftTip"
            devices="desktop"
            />
    <layer name="theme11btn_right"
            url="%FIRSTXML%/graphics/icontrolbar/btn_move_right.png"
            ondown="set(hlookat_moveforce, +1);"
            onup="set(hlookat_moveforce, 0);"
            style="theme11_btn_style"
            visible="false"
            tooltip="controlBar_imoveRightTip"
            devices="desktop"
            />

    <layer name="theme11btn_up"
            url="%FIRSTXML%/graphics/icontrolbar/btn_move_up.png"
            ondown="set(vlookat_moveforce, -1);"
            onup="set(vlookat_moveforce, 0);"
            style="theme11_btn_style"
            visible="false"
            tooltip="controlBar_imoveUpTip"
            devices="desktop"
            />
    <layer name="theme11btn_down"
            url="%FIRSTXML%/graphics/icontrolbar/btn_move_down.png"
            ondown="set(vlookat_moveforce, +1);"
            onup="set(vlookat_moveforce, 0);"
            style="theme11_btn_style"
            visible="false"
            tooltip="controlBar_imoveDownTip"
            devices="desktop"
            />


    <layer name="theme11btn_sound_on"
            url="%FIRSTXML%/graphics/icontrolbar/btn_start_sound.png"
            onclick="playTourSounds();"
            style="theme11_btn_style"
            visible="false"
            tooltip="controlBar_isoundsOnTip"
            />
    <layer name="theme11btn_sound_off"
            url="%FIRSTXML%/graphics/icontrolbar/btn_stop_sound.png"
            onclick="stopTourSounds();"
            style="theme11_btn_style"
            visible="false"
            tooltip="controlBar_isoundsOffTip"
            />


    <layer name="theme11btn_prev_pano"
            url="%FIRSTXML%/graphics/icontrolbar/btn_previous_scene.png"
            onclick="loadPreviousScene();"
            style="theme11_btn_style"
            tooltip="controlBar_iprevSceneTip"
            visible="false"
            />
    <layer name="theme11btn_next_pano"
            url="%FIRSTXML%/graphics/icontrolbar/btn_next_scene.png"
            onclick="loadNextScene();"
            style="theme11_btn_style"
            tooltip="controlBar_inextSceneTip"
            visible="false"
            />


    <layer name="theme11btn_display_floorplan"
            url="%FIRSTXML%/graphics/icontrolbar/btn_floorplan.png"
            onclick="showFloorplan();"
            style="theme11_btn_style"
            visible="false"
            tooltip="controlBar_idisplayFloorplanTip"
            />
    <layer name="theme11btn_hide_floorplan"
            url="%FIRSTXML%/graphics/icontrolbar/btn_floorplan.png"
            onclick="hideFloorplan();"
            style="theme11_btn_style"
            visible="false"
            tooltip="controlBar_ihideFloorplanTip"
            />

    <layer name="theme11btn_share"
            url="%FIRSTXML%/graphics/icontrolbar/btn_share.png"
            onclick="shareTour();"
            style="theme11_btn_style"
            visible="false"
            tooltip="controlBar_ishareTip"
            />


    <layer name="theme11btn_openfs"
            url="%FIRSTXML%/graphics/icontrolbar/btn_enter_fs.png"
            onclick="enterFullscreen();"
            style="theme11_btn_style"
            visible="false"
            devices="fullscreensupport"
            tooltip="controlBar_iopenFsTip"
            />
    <layer name="theme11btn_closefs"
            url="%FIRSTXML%/graphics/icontrolbar/btn_close_fs.png"
            onclick="exitFullscreen();"
            style="theme11_btn_style"
            visible="false"
            devices="fullscreensupport"
            tooltip="controlBar_icloseFsTip"
            />

    <layer name="theme11btn_autorotate_on"
            url="%FIRSTXML%/graphics/icontrolbar/btn_start_autorotation.png"
            onclick="startautorotation();"
            style="theme11_btn_style"
            visible="false"
            tooltip="controlBar_iautorotateOnTip"
            />
    <layer name="theme11btn_autorotate_off"
            url="%FIRSTXML%/graphics/icontrolbar/btn_stop_autorotation.png"
            onclick="stopautorotation();"
            style="theme11_btn_style"
            visible="false"
            tooltip="controlBar_iautorotateOffTip"
            />



    <layer name="theme11btn_display_help"
            url="%FIRSTXML%/graphics/icontrolbar/btn_help.png"
            onclick="theme11displayHelp();"
            style="theme11_btn_style"
            devices="desktop"
            visible="false"
            tooltip="controlBar_idisplayHelpTip"
            />
    <layer name="theme11btn_close_help"
            url="%FIRSTXML%/graphics/icontrolbar/btn_help.png"
            onclick="theme11closeHelp();"
            style="theme11_btn_style"
            visible="false"
            devices="desktop"
            tooltip="controlBar_ihideHelpTip"
            />



    <layer name="theme11btn_hidecontrols"
           url="%FIRSTXML%/graphics/icontrolbar/btn_hide_controls.png"
           style="theme11_btn_style"
           onclick="hideTourControls();"
           visible="false"
           tooltip="controlBar_ihideControlsTip"
           />
    <layer name="theme11btn_showcontrols"
           url="%FIRSTXML%/graphics/icontrolbar/btn_show_controls.png"
           style="theme11_btn_style"
           onclick="showTourControls();"
           tooltip="controlBar_idisplayControlsTip"
           visible="false"
           />
 </layer>




	<events name="theme11controlmodechangedevent" 
		oncontrolmodechanged="theme11updateControlModeButtons();" 
		keep="true" />
	<action name="theme11HideControlModeButtons">
		set(layer[theme11btn_ctrlmode_move_to].visible, false);
		set(layer[theme11btn_ctrlmode_drag_to].visible, false);
	</action>
	<action name="theme11ShowControlModeButtons">
		if (tour_controlmodemousetype == "moveto",
			set(layer[theme11btn_ctrlmode_drag_to].visible, true);
			set(layer[theme11btn_ctrlmode_move_to].visible, false);
		,
			set(layer[theme11btn_ctrlmode_move_to].visible, true);
			set(layer[theme11btn_ctrlmode_drag_to].visible, false);
		);
	</action>
	<action name="theme11updateControlModeButtons">
	if (device.desktop,
		if (tour_displaycontrols,
			theme11ShowControlModeButtons();
		,
			theme11HideControlModeButtons();
		);
	,
		theme11HideControlModeButtons();
	);
	</action>

	<events name="theme11hideshowcontrolsevent" 
		hidetourcontrols="theme11hideMenuControls();" 
		showtourcontrols="theme11showMenuControls();" 
		keep="true" />

  <action name="theme11hideMenuControls">
    set(theme11IsOpened, false);
    set(layer[theme11btn_hidecontrols].visible, false);
    set(layer[theme11btn_showcontrols].visible, true);
if (scene.count GT 1,
	set(layer[theme11btn_next_pano].visible, false);
	set(layer[theme11btn_prev_pano].visible, false);
);

set(layer[theme11btn_share].visible, false);

if (device.desktop,
	set(layer[theme11btn_in].visible, false);
	set(layer[theme11btn_out].visible, false);
);
if (device.desktop,
	set(layer[theme11btn_up].visible, false);
	set(layer[theme11btn_down].visible, false);
);
if (device.desktop,
	set(layer[theme11btn_left].visible, false);
	set(layer[theme11btn_right].visible, false);
);
	theme11updateFullscreenButtons();
	theme11updateHelpButtons();


	theme11updateAutorotationButtons();

	theme11updateSoundButtons();

	theme11updateControlModeButtons();

	theme11updateFloorplanButtons();


    set(layer[theme11_menu_bg].width , get(theme11backgroundwidthwhenclosed));
	set(layer[theme11_menu_bg].visible, true);
  </action>
  <action name="theme11showMenuControls">
    set(theme11IsOpened, true);
    set(layer[theme11btn_hidecontrols].visible, true);
    set(layer[theme11btn_showcontrols].visible, false);
	set(layer[theme11_menu_bg].visible, true);
if (scene.count GT 1,
	set(layer[theme11btn_next_pano].visible, true);
	set(layer[theme11btn_prev_pano].visible, true);
);

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

if (device.desktop,
	set(layer[theme11btn_in].visible, true);
	set(layer[theme11btn_out].visible, true);
);
if (device.desktop,
	set(layer[theme11btn_up].visible, true);
	set(layer[theme11btn_down].visible, true);
);
if (device.desktop,
	set(layer[theme11btn_left].visible, true);
	set(layer[theme11btn_right].visible, true);
);
	theme11updateFullscreenButtons();
	theme11updateHelpButtons();


	theme11updateAutorotationButtons();

	theme11updateSoundButtons();

	theme11updateControlModeButtons();

	theme11updateFloorplanButtons();


    set(layer[theme11_menu_bg].width, get(theme11backgroundwidthwhenopened));
  </action>

  <layer name="theme11helpScreenBg"
         align="center"
         keep="true"
         onclick="theme11closeHelp();"
         url="%FIRSTXML%/graphics/icontrolbar/help_screen_bg.png"
         visible="false"
         rotate="-90"
         height="50%"
         width="prop"
         zorder="97"
         x="100%" />
  <layer name="theme11helpScreenFg"
         align="center"
         keep="true"
         onclick="theme11closeHelp();"
         url="%FIRSTXML%/graphics/icontrolbar/help_screen_fg.png"
         height="50%"
         width="prop"
         visible="false"
         rotate="90"
         zorder="98"
         x="-100%"
         displayed="false" />
  <action name="theme11displayHelp">
  if (device.desktop,
    set(layer[theme11helpScreenFg].displayed,true);
    set(layer[theme11helpScreenBg].visible,true);
    set(layer[theme11helpScreenFg].visible,true);
    tween(layer[theme11helpScreenFg].rotate,0, 1);
    tween(layer[theme11helpScreenFg].x,0, 1);
    tween(layer[theme11helpScreenBg].rotate,0, 1);
    tween(layer[theme11helpScreenBg].x,0, 1);
    theme11updateHelpButtons();
  );
  </action>
  <action name="theme11closeHelp">
  if (device.desktop,
    set(layer[theme11helpScreenFg].displayed,false);
    tween(layer[theme11helpScreenFg].rotate,  90, 1, easeOutQuad, set(layer[helpScreenFg].visible,false););
    tween(layer[theme11helpScreenFg].x, -100%, 1);
    tween(layer[theme11helpScreenBg].rotate, -90, 1, easeOutQuad, set(layer[helpScreenBg].visible,false););
    tween(layer[theme11helpScreenBg].x, 100%, 1);
    theme11updateHelpButtons();
  );
  </action>
	<action name="theme11HideHelpButtons">
		set(layer[theme11btn_display_help].visible, false);
		set(layer[theme11btn_close_help].visible, false);
	</action>
	<action name="theme11ShowHelpButtons">
		if (layer[theme11helpScreenFg].displayed,
			set(layer[theme11btn_close_help].visible, true);
			set(layer[theme11btn_display_help].visible, false);
		,
			set(layer[theme11btn_display_help].visible, true);
			set(layer[theme11btn_close_help].visible, false);
		);
	</action>
	<action name="theme11updateHelpButtons">
	if (device.desktop,
		if (tour_displaycontrols,
			theme11ShowHelpButtons();
		,
			theme11HideHelpButtons();
		);
	,
		theme11HideHelpButtons();
	);
	</action>


	<events name="theme11DisplayFloorPlanEvents" 
		onshowtourfloorplan="theme11updateFloorplanButtons();" 
		onhidetourfloorplan="theme11updateFloorplanButtons();" 
		keep="true" />
	<action name="theme11HideFloorplanButtons">
		set(layer[theme11btn_display_floorplan].visible, false);
		set(layer[theme11btn_hide_floorplan].visible, false);
	</action>
	<action name="theme11ShowFloorplanButtons">
		if (tour_displayfloorplan,
			set(layer[theme11btn_hide_floorplan].visible, true);
			set(layer[theme11btn_display_floorplan].visible, false);
		,
			set(layer[theme11btn_display_floorplan].visible, true);
			set(layer[theme11btn_hide_floorplan].visible, false);
		);
	</action>
	<action name="theme11updateFloorplanButtons">
		if (tour_displaycontrols,
			theme11ShowFloorplanButtons();
		,
			theme11HideFloorplanButtons();
		);
	</action>



  <events name="theme11menufullscreenchangeevent"
          onenterfullscreen="theme11updateFullscreenButtons();"
          onexitfullscreen="theme11updateFullscreenButtons();"
          keep="true"/>
	<action name="theme11HideFullscreenButtons">
		set(layer[theme11btn_openfs].visible , false);
		set(layer[theme11btn_closefs].visible, false);
	</action>
	<action name="theme11ShowFullscreenButtons">
		if (device.fullscreensupport,
			if(tour_fullscreen,
				set(layer[theme11btn_openfs].visible , false);
				set(layer[theme11btn_closefs].visible, true);
			,
				set(layer[theme11btn_openfs].visible ,true);
				set(layer[theme11btn_closefs].visible,false);
			);
		,
			theme11HideFullscreenButtons();
		);
	</action>
	<action name="theme11updateFullscreenButtons">
		if (tour_displaycontrols,
			theme11ShowFullscreenButtons();
		,
			theme11HideFullscreenButtons();
		);
	</action>

	<events name="theme11AutorotationEvents"
		onstartautorotation="theme11updateAutorotationButtons();"
		onresumeautorotation="theme11updateAutorotationButtons();"
		onstopautorotation="theme11updateAutorotationButtons();"
		onpauseautorotation="theme11updateAutorotationButtons();"
		keep="true"/>
	<action name="theme11HideAutorotationButtons">
		set(layer[theme11btn_autorotate_off].visible, false);
		set(layer[theme11btn_autorotate_on].visible , false);
	</action>
	<action name="theme11ShowAutorotationButtons">
		if(tour_autorotateenabled==false,
			set(layer[theme11btn_autorotate_off].visible, false);
			set(layer[theme11btn_autorotate_on].visible , true);
		,
			set(layer[theme11btn_autorotate_off].visible, true);
			set(layer[theme11btn_autorotate_on].visible , false);
		);
	</action>
	<action name="theme11updateAutorotationButtons">
		if (tour_displaycontrols,
			theme11ShowAutorotationButtons();
		,
			theme11HideAutorotationButtons();
		);
	</action>


  <events name="theme11playstopsoundsevent" playtoursoundsevent="theme11updateSoundButtons();" stoptoursoundsevent="theme11updateSoundButtons();" keep="true"/>
	<action name="theme11HideSoundButtons">
		set(layer[theme11btn_sound_off].visible, false);
		set(layer[theme11btn_sound_on].visible , false);
	</action>
	<action name="theme11ShowSoundButtons">
		if (tour_soundson == false,
			set(layer[theme11btn_sound_off].visible, false);
			set(layer[theme11btn_sound_on].visible , true);
		,
			set(layer[theme11btn_sound_off].visible, true);
			set(layer[theme11btn_sound_on].visible , false);
		);
	</action>
	<action name="theme11updateSoundButtons">
		if (tour_displaycontrols,
			theme11ShowSoundButtons();
		,
			theme11HideSoundButtons();
		);
	</action>


  <textstyle name="theme11menuTooltipStyle"
             font="Helvetica"
             fontsize="16"
             bold="true"
             italic="false"
             background="false"
             border="false"
             alpha="1"
             textcolor="0xb6a02e"
             effect="dropshadow(2,45,0xb6a02e,4,1);"
             origin="cursor"
             edge="bottom"
             yoffset="-20"
             xoffset="0"
             noclip="true"/>
<layer name="theme11menuTooltipStyle"
	keep="true"
	enabled="false"
	capture="false"
	url="%FIRSTXML%/graphics/textfield.swf"
	align="center"
	background="false"
	backgroundcolor="0x000000"
	backgroundalpha="0.3"
	border="false"
	bordercolor="0xffffff"
	textshadow="2" textshadowrange="10.0" textshadowangle="45" textshadowcolor="0xb6a02e" textshadowalpha="1.0"
	css="color:#b6a02e;font-family:Helvetica;font-weight:bold;font-size:16px;text-align:center;"
	width="200"
	height="20"
	autoheight="true"
		edge="bottom"
	selectable="false"
	zorder="0"
	visible="false"
	html=""
	devices="html5"
/>
  <action name="theme11buildMenu">
    
    set(theme11button_pos, 0);

	set(theme11backgroundwidthwhenclosed, 40);
    set(layer[theme11btn_hidecontrols].x, get(theme11button_pos));
    set(layer[theme11btn_showcontrols].x, get(theme11button_pos));
    inc(theme11button_pos, 45);



      if (device.desktop,
        set(layer[theme11btn_display_help].x, get(theme11button_pos));
        set(layer[theme11btn_close_help].x  , get(theme11button_pos));
        inc(theme11button_pos, 45);
      );

      if (device.fullscreensupport,
        set(layer[theme11btn_openfs].x , get(theme11button_pos));
        set(layer[theme11btn_closefs].x, get(theme11button_pos));
        inc(theme11button_pos, 45);
      );


      set(layer[theme11btn_share].x, get(theme11button_pos));
      inc(theme11button_pos, 45);

      set(layer[theme11btn_display_floorplan].x , get(theme11button_pos));
      set(layer[theme11btn_hide_floorplan].x    , get(theme11button_pos));
      inc(theme11button_pos, 45);


      set(layer[theme11btn_autorotate_on].x , get(theme11button_pos));
      set(layer[theme11btn_autorotate_off].x, get(theme11button_pos));
      inc(theme11button_pos, 45);


      set(layer[theme11btn_sound_on].x , get(theme11button_pos));
      set(layer[theme11btn_sound_off].x, get(theme11button_pos));
      inc(theme11button_pos, 45);


    if (device.desktop,
      set(layer[theme11btn_ctrlmode_drag_to].x, get(theme11button_pos));
      set(layer[theme11btn_ctrlmode_move_to].x, get(theme11button_pos));
      inc(theme11button_pos, 45);
    );



      if (device.desktop,
        set(layer[theme11btn_right].x, get(theme11button_pos));
        inc(theme11button_pos, 45);
        set(layer[theme11btn_left].x, get(theme11button_pos));
        inc(theme11button_pos, 45);
      );

      if (device.desktop,
        set(layer[theme11btn_down].x, get(theme11button_pos));
        inc(theme11button_pos, 45);
        set(layer[theme11btn_up].x, get(theme11button_pos));
        inc(theme11button_pos, 45);
      );

      if (device.desktop,
        set(layer[theme11btn_out].x, get(theme11button_pos));
        inc(theme11button_pos, 45);
        set(layer[theme11btn_in].x, get(theme11button_pos));
        inc(theme11button_pos, 45);
      );

    if (scene.count GT 1,
        set(layer[theme11btn_next_pano].x, get(theme11button_pos));
        inc(theme11button_pos, 45);
        set(layer[theme11btn_prev_pano].x, get(theme11button_pos));
        inc(theme11button_pos, 45);
      );

      dec(theme11button_pos, 5);

      set(theme11backgroundwidthwhenopened, get(theme11button_pos));
      set(layer[theme11_menu_bg].width, get(theme11backgroundwidthwhenopened));
	
	
	
    </action>

	<events name="theme11StartTourEvents" onTourStart="theme11CallOnStartTour();" keep="true" />
	
	<action name="theme11CallOnStartTour">
		
		showTourControls();
	</action>

  <!-- ******************************************* -->
  <!-- Button : right -->
  <!-- ******************************************* -->
  <layer name="button"
         keep="true"
         url="%FIRSTXML%/graphics/button/media-icon_without-relection_57.png" 
         align="right"
         x="30"
         y="10"
         zorder="5"
         visible="false"
         onclick="buttonOnClick"
         tooltip="buttontooltip"
         onhover="showTooltip(right);"
         onout="hideTooltip();tween(scale, 1.0,0.5,easeOutQuad);"
         onover="tween(scale, 1.2,0.5,easeOutQuad);"
         height="60"
         width="60"
         />
  <action name="buttonOnClick">
showGallery-gallery();
  </action>

  <events name="buttonevents" 
    onTourStart="showbutton();"
    hidetourcontrols="hidebutton();" 
    showtourcontrols="showbutton();" 
    keep="true" />
  <action name="hidebutton">set(layer[button].visible, false);</action>
  <action name="showbutton">set(layer[button].visible, true);</action>



	
	<!-- ********* -->
	<!-- FloorPlan -->
	<!-- ********* -->
	
	<ptplugin name="floorPlan" engine="KolorFloorPlan">
		<settings>
			<option name="background_color" value="424242" type="string" />
			<option name="background_lighter_color" value="4f4f4f" type="string" />
			<option name="background_darker_color" value="373737" type="string" />
			<option name="background_alpha" value="1" type="float" />
			<option name="text_color" value="dac038" type="string" />
			<option name="resize" value="true" 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="Verdana" 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="dac038" type="string" />
			<option name="display_orientation" value="false" type="bool" />
			<option name="display_radar" value="false" type="bool" />
			<option name="close_on_click" value="true" type="bool" />
			<option name="zorder" value="6" type="int" />
		</settings>
		
		<floorplanItems selectedItem="fpitemmain" selectedSpot="" selectedSpotScene="" selectedSpotHeading="" selectedSpotFov="">
				
				<floorplanItem 
					name="fpitemmain" 
					width="400" 
					height="400" 
					groupName="" 
					url="floorplan/graceland-floor-plan-main-level.png" 
					title="project_floor_title"
					heading="0">
							<spot name="spotmap1478" posX="0.45442" posY="0.406522" heading="0" desc="spotmap1478_tooltip" descType="tooltip" groupName="" isScene="true" scene="pano127" jsClick="spotmap1478ActionSpotFloorPlan">
								<icon url="spots/pin_no_button_cew_gold_user_defaultmap0.png" iconWidth="60" iconHeight="60" iconAnchor="center" />
							</spot>
							<spot name="spotmap1479" posX="0.625691" posY="0.4" heading="0" desc="spotmap1479_tooltip" descType="tooltip" groupName="" isScene="true" scene="pano119" jsClick="spotmap1479ActionSpotFloorPlan">
								<icon url="spots/pin_no_button_cew_gold_user_defaultmap0.png" iconWidth="60" iconHeight="60" iconAnchor="center" />
							</spot>
							<spot name="spotmap1480" posX="0.718232" posY="0.323913" heading="0" desc="spotmap1480_tooltip" descType="tooltip" groupName="" isScene="true" scene="pano120" jsClick="spotmap1480ActionSpotFloorPlan">
								<icon url="spots/pin_no_button_cew_gold_user_defaultmap0.png" iconWidth="60" iconHeight="60" iconAnchor="center" />
							</spot>
				</floorplanItem>
			
			
		</floorplanItems>
	</ptplugin>
	
	<action name="kolorFloorplanJsReady-floorPlan">
		set(ptplugin[floorPlan].jsready, true);
	</action>
	
	
		<!-- floorplan main spots counter : 3 -->
			<action name="spotmap1478ActionSpotFloorPlan">
          if (xml.scene != pano127,
            mainloadscene(pano127);
          );
      lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
    </action>
			<action name="spotmap1479ActionSpotFloorPlan">
          if (xml.scene != pano119,
            mainloadscene(pano119);
          );
      lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
    </action>
			<action name="spotmap1480ActionSpotFloorPlan">
          if (xml.scene != pano120,
            mainloadscene(pano120);
          );
      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(1.0,floorPlanCloseTourFloorPlan(););" 
	onshowtourfloorplan="if(tour_displayfloorplan,floorPlanOpenTourFloorPlan(););" 
	onTourStart=""
	keep="true" />
	
	
	<krpano floorPlanFloorPlanLoaded="false" />
	
	<action name="floorPlanHideTourFloorPlan">
		hideKolorArea-floorPlanArea(true);
	</action>
	
	<action name="floorPlanCloseTourFloorPlan">
		if(ptplugin[floorPlanArea].isOpen,
			closeKolorArea-floorPlanArea();
		);
	</action>
	
	<action name="floorPlanShowTourFloorPlan">
		showKolorArea-floorPlanArea(true);
	</action>
	
	<action name="floorPlanOpenTourFloorPlan">
		ifnot(ptplugin[floorPlanArea].isOpen,
			openKolorArea-floorPlanArea();
		);
	</action>
	
	<action name="floorPlanOnViewChange">
		if (floorPlanFloorPlanLoaded == true,
			ifnot(ptplugin[floorPlan].floorplanItems[0].selectedSpot == "",
				js(invokePluginFunction(floorPlan, changeDirection, get(xml.scene), get(view.hlookat), get(view.fov)));
			);
		);
	</action>
	
	<action name="floorPlanActivateSpot">
		
		set(ptplugin[floorPlan].floorplanItems[0].selectedSpot, %1);
		set(ptplugin[floorPlan].floorplanItems[0].selectedItem, %2);
		
		ifnot(%1 == "",
			set(ptplugin[floorPlan].floorplanItems[0].selectedSpotScene, get(xml.scene));
			set(ptplugin[floorPlan].floorplanItems[0].selectedSpotHeading, get(view.hlookat));
			set(ptplugin[floorPlan].floorplanItems[0].selectedSpotFov, get(view.fov));
		);
		
		js(invokePluginFunction(floorPlan, selectSpot, %1, %2, %3));
	</action>
	
	<action name="floorPlanDeactivateSpot">
		set(ptplugin[floorPlan].floorplanItems[0].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(floorPlanSpotSearchContinue, true);
		
		
		set(defaultfloorplaniteminc-wait,50);
		for(set(defaultfloorplaniteminc,0), defaultfloorplaniteminc LT ptplugin[floorPlan].floorplanItems[0].floorplanItem.count , inc(defaultfloorplaniteminc),
			if(defaultfloorplaniteminc-wait == defaultfloorplaniteminc,
				add(defaultfloorplaniteminc-wait,50);
				wait(0);
			);
			if(floorPlanSpotSearch == true,
				
				if(ptplugin[floorPlan].floorplanItems[0].floorplanItem[get(defaultfloorplaniteminc)].groupName == scene[get(xml.scene)].group,
					set(floorPlanItemFound, get(ptplugin[floorPlan].floorplanItems[0].floorplanItem[get(defaultfloorplaniteminc)].name));
					set(ptplugin[floorPlan].floorplanItems[0].selectedItem, get(ptplugin[floorPlan].floorplanItems[0].floorplanItem[get(defaultfloorplaniteminc)].name));
					set(floorPlanItemSearch, false);
				,
					
					if(floorPlanItemFound == "",
						set(floorPlanItemFound, get(ptplugin[floorPlan].floorplanItems[0].floorplanItem[fpitemmain].name));
						set(ptplugin[floorPlan].floorplanItems[0].selectedItem, get(ptplugin[floorPlan].floorplanItems[0].floorplanItem[fpitemmain].name));
					);
				);
			);
			if(floorPlanSpotSearch == true,
				set(defaultspotinc-wait,50);
				for(set(defaultspotinc,0), defaultspotinc LT ptplugin[floorPlan].floorplanItems[0].floorplanItem[get(defaultfloorplaniteminc)].spot.count , inc(defaultspotinc),
					if(defaultspotinc-wait == defaultspotinc,
						add(defaultspotinc-wait,50);
						wait(0);
					);
					if(ptplugin[floorPlan].floorplanItems[0].floorplanItem[get(defaultfloorplaniteminc)].spot[get(defaultspotinc)].isScene == true,
					
						if(floorPlanSpotSearchContinue == true,
							if(ptplugin[floorPlan].floorplanItems[0].floorplanItem[get(defaultfloorplaniteminc)].spot[get(defaultspotinc)].scene == xml.scene,
								set(floorPlanSpotFound, get(ptplugin[floorPlan].floorplanItems[0].floorplanItem[get(defaultfloorplaniteminc)].spot[get(defaultspotinc)].name));
								set(floorPlanSpotScene, get(ptplugin[floorPlan].floorplanItems[0].floorplanItem[get(defaultfloorplaniteminc)].spot[get(defaultspotinc)].scene));
								set(ptplugin[floorPlan].floorplanItems[0].selectedItem, get(ptplugin[floorPlan].floorplanItems[0].floorplanItem[get(defaultfloorplaniteminc)].name));
								if(floorPlanItemSearch == false,
									set(floorPlanSpotSearchContinue, false);
									set(floorPlanSpotSearch, false);
								);
							);
						);
					);
					
				);
			);
		);
		
		if(floorPlanSpotFound == "",
			
			
			floorPlanDeactivateSpot();
			
			
			set(ptplugin[floorPlan].floorplanItems[0].selectedItem, get(floorPlanItemFound));
			
			
			ifnot(ptplugin[floorPlan].floorplanItems[0].selectedItem == "",
				floorPlanActivateSpot("", get(ptplugin[floorPlan].floorplanItems[0].selectedItem), "");
			);
		,
			
			floorPlanActivateSpot(get(floorPlanSpotFound), get(ptplugin[floorPlan].floorplanItems[0].selectedItem), get(floorPlanSpotScene));
		);
	</action>
	
	<action name="floorPlanChangeTitle">
		js(invokePluginFunction(floorPlan, changeTitle, %1));
	</action>
	
	<ptplugin name="floorPlanArea" engine="kolorArea">
	<settings>
		<option name="position" value="right" type="string" />
		<option name="start_position" value="right" type="string" />
		<option name="margin_x" value="0" type="int" />
		<option name="margin_y" value="0" type="int" />
		<option name="display_title" value="true" type="bool" />
		<option name="title" value="project_floor_title" type="string" />
		<option name="title_font" value="Verdana" type="string" />
		<option name="title_size" value="14" type="int" />
		<option name="title_weight" value="normal" type="string" />
		<option name="title_decoration" value="normal" type="string" />
		<option name="title_color" value="dac038" type="string" />
		<option name="close_displayed" value="true" type="bool" />
		<option name="background_color" value="424242" 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.500007629510948" type="float" />
		<option name="padding" value="10" type="int" />
		<option name="topleft_radius" value="4" type="int" />
		<option name="topright_radius" value="4" type="int" />
		<option name="bottomleft_radius" value="4" type="int" />
		<option name="bottomright_radius" value="4" type="int" />
		<option name="area_border_width" value="2" type="int" />
		<option name="area_border_color" value="424242" type="string" />
		<option name="area_width" value="600" type="int" />
		<option name="area_height" value="400" 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="true" 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="6" type="int" />
	</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].isOpen, true);
			set(ptplugin[floorPlanArea].visible, true);
			set(ptplugin[floorPlanArea].doNotDeleteMe, false);
			pauseautorotation();
			js(showKolorArea(floorPlanArea, &lt;div id="floorPlanArea-floorplanDIV"&gt;&lt;/div&gt;));
			,
				set(ptplugin[floorPlanArea].currentCall, true);
				set(ptplugin[floorPlanArea].doNotDeleteMe, true);
				events.dispatch(onremovedisplayedobject);
				delayedcall(1.0,openKolorArea-floorPlanArea(););
			);
		);
	</action>
	
	<action name="closeKolorArea-floorPlanArea">
		if(ptplugin[floorPlanArea].isOpen,
			if(ptplugin[floorPlanArea].doNotDeleteMe,
				set(ptplugin[floorPlanArea].doNotDeleteMe, false);
			,
			resumeautorotation();
			js(invokePluginFunction(floorPlanArea, closeKolorArea));
			set(ptplugin[floorPlanArea].isOpen, false);
			);
		);
	</action>
	
	<action name="toggleKolorArea-floorPlanArea">
		if(ptplugin[floorPlanArea].isOpen,
			closeKolorArea-floorPlanArea();
		,
			openKolorArea-floorPlanArea();
		);
	</action>
	
	<action name="closeKolorAreaCallback-floorPlanArea">
		resumeautorotation();
		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].visible, true);
		set(ptplugin[floorPlanArea].doNotDeleteMe, false);
		pauseautorotation();
		js(invokePluginFunction(floorPlanArea, showKolorArea, %1));
		,
			set(ptplugin[floorPlanArea].currentCall, true);
			set(ptplugin[floorPlanArea].doNotDeleteMe, true);
			events.dispatch(onremovedisplayedobject);
			delayedcall(1.0,showKolorArea-floorPlanArea(););
		);
	</action>
		
	<action name="hideKolorArea-floorPlanArea">
		if(ptplugin[floorPlanArea].doNotDeleteMe,
			set(ptplugin[floorPlanArea].doNotDeleteMe, false);
		,
		resumeautorotation();
		set(ptplugin[floorPlanArea].visible, false);
		js(invokePluginFunction(floorPlanArea, hideKolorArea, %1));
		);
	</action>
	
	<events name="kolorAreaEvents-floorPlanArea" 
		keep="true"
		onremovepano="if(ptplugin[floorPlanArea].visible,hideFloorplan(););"
		onremovedisplayedobject="ifnot(ptplugin[floorPlanArea].currentCall,if(ptplugin[floorPlanArea].visible,hideFloorplan();););"
	/>
	
	
  <!-- ************ -->
  <!-- Social Share -->
  <!-- ************ -->
 



<ptplugin name="socialShare" engine="kolorBox">
	<settings>
		<option name="position" value="topleft" type="string" />
		<option name="margin_x" value="10" type="int" />
		<option name="margin_y" value="10" type="int" />
		<option name="animate" value="false" type="bool" />
		<option name="draggable_box" value="false" type="bool" />
		<option name="container_auto_size" value="true" type="bool" />
		<option name="container_color" value="444444" type="string" />
		<option name="container_alpha" value="0" type="float" />
		<option name="container_topleft_border_radius" value="2" type="int" />
		<option name="container_topright_border_radius" value="2" type="int" />
		<option name="container_bottomleft_border_radius" value="2" type="int" />
		<option name="container_bottomright_border_radius" value="2" type="int" />
		<option name="container_border_width" value="2" type="int" />
		<option name="container_border_color" value="dac038" type="string" />
		<option name="overlay_displayed" value="false" type="bool" />
		<option name="overlay_color" value="000000" type="string" />
		<option name="overlay_alpha" value="0.500007629510948" type="float" />
		<option name="social_btn" value="facebook#twitter#google#linkedin" type="string" />
		<option name="social_orientation" value="horizontal" type="string" />
		<option name="title_displayed" value="false" type="bool" />
		<option name="caption_displayed" value="false" type="bool" />
		<option name="close_displayed" value="true" type="bool" />
		<option name="close_position" value="bottomright" type="string" />
		<option name="close_callback" value="invokeKrFunction('closeKolorBoxCallback-socialShare')" type="string" />
		<option name="zorder" value="7" type="int" />
	</settings>
	<internaldata>
		
	</internaldata>
</ptplugin>

<action name="kolorBoxJsReady-socialShare">
	set(ptplugin[socialShare].jsready, true);
</action>

<action name="startOpenSocialShare-socialShare">
	if(ptplugin[socialShare].jsready,
		showSocialShare-socialShare();
	,
		delayedcall(1.0,startOpenSocialShare-socialShare(););
	);
</action>

<action name="showSocialShare-socialShare">
	ifnot(ptplugin[socialShare].isOpen,
		set(ptplugin[socialShare].isOpen, true);
		pauseautorotation();
			js(invokePluginFunction(socialShare, loadSingleArrayItem, social));
		events.dispatch(onremovedisplayedobject);
	);
</action>

<action name="toggleSocialShare-socialShare">
	js(invokePluginFunction(socialShare, toggleKolorBox, %1));
</action>


<action name="closeKolorBox-socialShare">
	js(invokePluginFunction(socialShare, closeKolorBox));
</action>

<action name="closeKolorBoxCallback-socialShare">
	resumeautorotation();
	set(ptplugin[socialShare].isOpen, false);
</action>

<events name="kolorBoxEvents-socialShare" 
	keep="true"
	onsharetour="showSocialShare-socialShare();" 
	
/>
  <!-- ****** -->
  <!-- Header -->
  <!-- ****** -->
  <layer name="header"
         keep="true"
         type="container"
         bgcolor="0x424242"
         bgalpha="1"
         align="top"
         x="0"
         y="0"
         zorder="8"
         enabled="false"
         capture="true"
         visible="false"

         height="100"
         width="100%"

         />

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

  <!-- ************ -->
  <!-- Logo : viewport / topleft -->
  <!-- ************ -->


  <layer align="topleft"
         x="10"
         y="10"
         zorder="9"
         name="logo"
         keep="true"
         visible="false"
         capture="false"
		
			tooltip="logotooltipText"
			onhover="showTooltip(topleft);"
			onout="hideTooltip();"
         url="%FIRSTXML%/graphics/logo/cew_web_header.jpg" 
         handcursor="false"


         />

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

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





  <!-- ***************** -->
  <!-- Small Gallery Bar -->
  <!-- Based on krpano imagegallery sample, a krpano xml controlled thumbnails image bar -->
  <!-- ***************** -->

  <krpano smallgallerybarbuilt="false" smallgallerybarBuildable="false" />
  <events name="smallgallerybarevents"
          onxmlcomplete="smallgallerybarbuildBar();"
          hidetourcontrols="hidesmallgallerybar();"
          showtourcontrols="showsmallgallerybar();"
          keep="true"/>
  <action name="smallgallerybarbuildBar">
    ifnot (smallgallerybarbuilt,
      set(smallgallerybarBuildable, true);
      smallgallerybarthumbbar_addimage(0,%FIRSTXML%/graphics/smallgallerybar/img_8337r.jpg);
      set(smallgallerybarBuildable, true);
      smallgallerybarthumbbar_addimage(1,%FIRSTXML%/graphics/smallgallerybar/img_8364.jpg);
      set(smallgallerybarBuildable, true);
      smallgallerybarthumbbar_addimage(2,%FIRSTXML%/graphics/smallgallerybar/img_8365.jpg);
      set(smallgallerybarBuildable, true);
      smallgallerybarthumbbar_addimage(3,%FIRSTXML%/graphics/smallgallerybar/img_8375.jpg);
      set(smallgallerybarBuildable, true);
      smallgallerybarthumbbar_addimage(4,%FIRSTXML%/graphics/smallgallerybar/img_8378.jpg);
      set(smallgallerybarBuildable, true);
      smallgallerybarthumbbar_addimage(5,%FIRSTXML%/graphics/smallgallerybar/img_8383.jpg);
      set(smallgallerybarBuildable, true);
      smallgallerybarthumbbar_addimage(6,%FIRSTXML%/graphics/smallgallerybar/img_8384.jpg);
      set(smallgallerybarBuildable, true);
      smallgallerybarthumbbar_addimage(7,%FIRSTXML%/graphics/smallgallerybar/img_8386.jpg);
      set(smallgallerybarBuildable, true);
      smallgallerybarthumbbar_addimage(8,%FIRSTXML%/graphics/smallgallerybar/img_8390.jpg);
      set(smallgallerybarBuildable, true);
      smallgallerybarthumbbar_addimage(9,%FIRSTXML%/graphics/smallgallerybar/img_8393.jpg);
      set(smallgallerybarBuildable, true);
      smallgallerybarthumbbar_addimage(10,%FIRSTXML%/graphics/smallgallerybar/img_8394.jpg);
      set(smallgallerybarBuildable, true);
      smallgallerybarthumbbar_addimage(11,%FIRSTXML%/graphics/smallgallerybar/img_8404.jpg);
      set(smallgallerybarBuildable, true);
      smallgallerybarthumbbar_addimage(12,%FIRSTXML%/graphics/smallgallerybar/img_8405.jpg);
      set(smallgallerybarBuildable, true);
      smallgallerybarthumbbar_addimage(13,%FIRSTXML%/graphics/smallgallerybar/img_8406.jpg);
      set(smallgallerybarBuildable, true);
      smallgallerybarthumbbar_addimage(14,%FIRSTXML%/graphics/smallgallerybar/img_8407.jpg);
      set(smallgallerybarBuildable, true);
      smallgallerybarthumbbar_addimage(15,%FIRSTXML%/graphics/smallgallerybar/img_8639.jpg);
      set(smallgallerybarBuildable, true);
      smallgallerybarthumbbar_addimage(16,%FIRSTXML%/graphics/smallgallerybar/img_8640.jpg);
      set(smallgallerybarBuildable, true);
      smallgallerybarthumbbar_addimage(17,%FIRSTXML%/graphics/smallgallerybar/img_8641.jpg);
      set(smallgallerybarBuildable, true);
      smallgallerybarthumbbar_addimage(18,%FIRSTXML%/graphics/smallgallerybar/img_8644.jpg);
      set(smallgallerybarBuildable, true);
      smallgallerybarthumbbar_addimage(19,%FIRSTXML%/graphics/smallgallerybar/img_8652.jpg);
      set(smallgallerybarbuilt, true);
      
    );
  </action>

  <events name="smallgallerybarStartEvents" onTourStart="showsmallgallerybar();" keep="true" />



  <layer name="smallgallerybarbackground" type="container" keep="true"
         bgcolor="0x424242"
         bgalpha="1"
         alpha="1.0"
         align="bottomleft"
         x="10"
         y="0"
         zorder="10"
         visible="false"
         height="1010"
         width="80"
         />

  <action name="hidesmallgallerybar">
	smallgallerybarthumbbar_set_visible(false);
  </action>
  <action name="showsmallgallerybar">
    if(smallgallerybarBuildable,
    smallgallerybarthumbbar_set_visible(true);
    );
  </action>


  <action name="smallgallerybarthumbbar_addimage">
    txtadd(pname, 'smallgallerybarPicture', %1);
    addplugin(get(pname));
    set(layer[%pname].zorder, 11);
    set(layer[%pname].url, %2);
    set(layer[%pname].align, bottomleft);
    set(layer[%pname].width, 60);
    set(layer[%pname].height, 40);
    set(layer[%pname].onclick, smallgallerybar_showimage(get(name)));
    set(layer[%pname].visible, false);
    set(layer[%pname].keep, true);

    
    set(layer[%pname].x, 20);

    mul(tmp, 50, %1);
    add(tmp, tmp, 10);
    add(layer[%pname].y, 0, tmp );


    copy(layer[%pname].thumbx, layer[%pname].x);
    copy(layer[%pname].thumby, layer[%pname].y);
  </action>

  <action name="smallgallerybar_showimage">
    smallgallerybar_hide_allimages();

    set(layer[%1].zorder, 12);

    push(layer[%1].width);
    push(layer[%1].height);
    layer[%1].resetsize();
    copy(layer[%1].originalwidth , layer[%1].width);
    copy(layer[%1].originalheight, layer[%1].height);
    pop(layer[%1].height);
    pop(layer[%1].width);

    set(imgwidth , get(layer[%1].originalwidth));
    set(imgheight, get(layer[%1].originalheight));

    set(maxwidth, get(stagewidth));
    sub(maxwidth, get(stagewidth), 200);

    set(maxheight, get(stageheight));
    sub(maxheight, get(stageheight), 20);

    if(imgwidth GT maxwidth,
      mul(imgheight, imgheight, maxwidth);
      div(imgheight, imgheight, imgwidth);
      copy(imgwidth, maxwidth);
    );

    if(imgheight GT maxheight,
      mul(imgwidth, imgwidth, maxheight);
      div(imgwidth, imgwidth, imgheight);
      copy(imgheight, maxheight);
    );

    tween(layer[%1].width , get(imgwidth));
    tween(layer[%1].height, get(imgheight));

    layer[%1].changeorigin(center,center);

    tween(layer[%1].x, 0);
    tween(layer[%1].y, 0);

    set(layer[%1].onclick, smallgallerybar_hideimage(%1) );
  </action>

  <action name="smallgallerybar_hideimage">
    layer[%1].changeorigin(bottomleft,bottomleft);

    set(layer[%1].zorder, 11);

    tween(layer[%1].width , 60);
    tween(layer[%1].height, 40);
    tween(layer[%1].x, get(layer[%1].thumbx));
    tween(layer[%1].y, get(layer[%1].thumby));

    set(layer[%1].onclick, smallgallerybar_showimage(%1) );
  </action>

  <action name="smallgallerybar_hide_allimages">
    smallgallerybar_hideimage(smallgallerybarPicture0);
    smallgallerybar_hideimage(smallgallerybarPicture1);
    smallgallerybar_hideimage(smallgallerybarPicture2);
    smallgallerybar_hideimage(smallgallerybarPicture3);
    smallgallerybar_hideimage(smallgallerybarPicture4);
    smallgallerybar_hideimage(smallgallerybarPicture5);
    smallgallerybar_hideimage(smallgallerybarPicture6);
    smallgallerybar_hideimage(smallgallerybarPicture7);
    smallgallerybar_hideimage(smallgallerybarPicture8);
    smallgallerybar_hideimage(smallgallerybarPicture9);
    smallgallerybar_hideimage(smallgallerybarPicture10);
    smallgallerybar_hideimage(smallgallerybarPicture11);
    smallgallerybar_hideimage(smallgallerybarPicture12);
    smallgallerybar_hideimage(smallgallerybarPicture13);
    smallgallerybar_hideimage(smallgallerybarPicture14);
    smallgallerybar_hideimage(smallgallerybarPicture15);
    smallgallerybar_hideimage(smallgallerybarPicture16);
    smallgallerybar_hideimage(smallgallerybarPicture17);
    smallgallerybar_hideimage(smallgallerybarPicture18);
    smallgallerybar_hideimage(smallgallerybarPicture19);
  </action>

  <action name="smallgallerybarthumbbar_set_visible">
    set(layer[smallgallerybarPicture0].visible,%1);
    set(layer[smallgallerybarPicture1].visible,%1);
    set(layer[smallgallerybarPicture2].visible,%1);
    set(layer[smallgallerybarPicture3].visible,%1);
    set(layer[smallgallerybarPicture4].visible,%1);
    set(layer[smallgallerybarPicture5].visible,%1);
    set(layer[smallgallerybarPicture6].visible,%1);
    set(layer[smallgallerybarPicture7].visible,%1);
    set(layer[smallgallerybarPicture8].visible,%1);
    set(layer[smallgallerybarPicture9].visible,%1);
    set(layer[smallgallerybarPicture10].visible,%1);
    set(layer[smallgallerybarPicture11].visible,%1);
    set(layer[smallgallerybarPicture12].visible,%1);
    set(layer[smallgallerybarPicture13].visible,%1);
    set(layer[smallgallerybarPicture14].visible,%1);
    set(layer[smallgallerybarPicture15].visible,%1);
    set(layer[smallgallerybarPicture16].visible,%1);
    set(layer[smallgallerybarPicture17].visible,%1);
    set(layer[smallgallerybarPicture18].visible,%1);
    set(layer[smallgallerybarPicture19].visible,%1);
    set(layer[smallgallerybarbackground].visible, %1);
  </action>

  <!-- ******************************* -->
  <!-- Combobox : groups and panoramas -->
  <!-- ******************************* -->


<events name="combopanolistallpanoramasandgroupsStartTourEvents" onTourStart="set(layer[combopanolistallpanoramasandgroups].isStarted, true);if(layer[combopanolistallpanoramasandgroups].isLoaded,combopanolistallpanoramasandgroupsShow(););" keep="true" />


  <layer name="combopanolistallpanoramasandgroups"
         url="%FIRSTXML%/graphics/combobox.swf"
         alturl="%FIRSTXML%/graphics/combobox.js"
         keep="true"
         visible="false"
         zorder="13"
         align="topright"
         x="5" y="10"
         rowcount="10"
         onloaded="combopanolistallpanoramasandgroupsLoaded();"
         isStarted="false"
         isLoaded="false"
         itemcount="0"
         />

  <action name="combopanolistallpanoramasandgroupsLoaded">
    
    layer[combopanolistallpanoramasandgroups].removeAll();
    set(layer[combopanolistallpanoramasandgroups].itemcount, 0);
    
    combopanolistallpanoramasandgroupsAddItem(pano127_title, pano127, pano127, false);
    combopanolistallpanoramasandgroupsAddItem(pano119_title, pano119, pano119, false);
    combopanolistallpanoramasandgroupsAddItem(pano120_title, pano120, pano120, false);
    combopanolistallpanoramasandgroupsAddItem(pano121_title, pano121, pano121, false);
    set(layer[combopanolistallpanoramasandgroups].isLoaded, true);
    
    if(layer[combopanolistallpanoramasandgroups].isStarted,
      combopanolistallpanoramasandgroupsShow();
    );
  </action>


  <action name="combopanolistallpanoramasandgroupsAddItem">
    getmessage(caption, %1);
    
    indexoftxt(found, get(caption), '&amp;');
    if(found GE 0,
      subtxt(part1, get(caption), 0, get(found));
      add(found, 5);
      subtxt(part2, get(caption), get(found), get(caption.length));
      txtadd(caption, get(part1), '&amp;', get(part2));
    );
    if(%4,
      txtadd(title, "&#x00A0;&#x00A0;&#x00A0;", get(caption));
    ,
      set(title, get(caption));
    );
    layer[combopanolistallpanoramasandgroups].addIdItem(%2, get(title), mainloadscene(%3));
    inc(layer[combopanolistallpanoramasandgroups].itemcount);
  </action>

  <events name="combopanolistallpanoramasandgroupsEvents"
          hidetourcontrols="combopanolistallpanoramasandgroupsHide();"
          showtourcontrols="combopanolistallpanoramasandgroupsShow();"
          onnewpano="combopanolistallpanoramasandgroupsOnPanorama();"
          keep="true"/>

  <action name="combopanolistallpanoramasandgroupsHide">
    set(layer[combopanolistallpanoramasandgroups].visible, false);
  </action>
  <action name="combopanolistallpanoramasandgroupsShow">
  if(layer[combopanolistallpanoramasandgroups].isLoaded,
    if (layer[combopanolistallpanoramasandgroups].itemcount GT 0,
      set(layer[combopanolistallpanoramasandgroups].visible, true);
    ,
      set(layer[combopanolistallpanoramasandgroups].visible, false);
    );
  ,
    set(layer[combopanolistallpanoramasandgroups].visible, false);
  );
  </action>

  <action name="combopanolistallpanoramasandgroupsOnPanorama">
    combopanolistallpanoramasandgroupsUpdateList();
  </action>


  <action name="combopanolistallpanoramasandgroupsUpdateList">
    set(itemtoselect, get(scene[get(xml.scene)].name));
    layer[combopanolistallpanoramasandgroups].selectIdItem(get(itemtoselect));
  </action>


  <!-- FLOORPLAN -->
  <action name="hideFloorplan">set(tour_displayfloorplan, false);events.dispatch(onhidetourfloorplan);</action>
  <action name="showFloorplan">set(tour_displayfloorplan, true); events.dispatch(onshowtourfloorplan);</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 -->
  <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="set3DLocalSoundsVolume">
    if (xml.scene, if (scene[get(xml.scene)].haslocalsounds, setpanolocalsoundsvolume();););
  </action>
  <action name="playTourSounds">
    set(tour_soundson, true);events.dispatch(playtoursoundsevent);
    play3DLocalSounds();
  </action>
  <action name="stopTourSounds">
    set(tour_soundson, false);events.dispatch(stoptoursoundsevent);
    stop3DLocalSounds();
    if (tour_current_played_sound,
      stopsound(get(tour_current_played_sound));
      delete(tour_current_played_sound);
    );
  </action>
  <action name="setTourSoundsVolume">
    set(tour_soundsvolume, %1);
    set3DLocalSoundsVolume();
  </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>
  <!-- Share Tour -->
  <action name="shareTour">events.dispatch(onsharetour);</action>
</krpano>