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

    
  <!-- Spot Style - Load panorama -->
  <style name="IconLoadpanorama"
         url="%FIRSTXML%/spots/hotspot_neutral_user_defaultpoint5.png"
         visible="false"
         onhover="onhoverIconLoadpanorama"
         onout="onoutIconLoadpanorama"
         />
  <action name="onhoverIconLoadpanorama">
    showtooltip('hotspot');
  </action>
  <action name="onoutIconLoadpanorama">
    hideTooltip();



  </action>



    
  <!-- Spot Style - Load panorama -->
  <style name="IconLoadpanorama"
         url="%FIRSTXML%/spots/hotspot_neutral_user_defaultpoint51.png"
         visible="false"
         onhover="onhoverIconLoadpanorama"
         onover="onoverIconLoadpanorama"
         onout="onoutIconLoadpanorama"
         />
  <action name="onhoverIconLoadpanorama">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconLoadpanorama">


pauseautorotation(forcehotspot);

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


resumeautorotation(forcehotspot);

  </action>



  <!-- ********************* -->
  <!-- Title : current group -->
  <!-- ********************* -->

  <events name="title_currentgroup1_events" 
    onTourStart="showtitle_currentgroup1();"
    hidetourcontrols="hidetitle_currentgroup1();" 
    showtourcontrols="showtitle_currentgroup1();" 
    onnewpano="updatetitle_currentgroup1();" 
    keep="true" />

  <action name="hidetitle_currentgroup1">set(layer[title_currentgroup1].visible, false);</action>
  <action name="showtitle_currentgroup1">set(layer[title_currentgroup1].visible, true );</action>

  <action name="updatetitle_currentgroup1">
    set(mess, "");
    set(currentgroup, get(scene[get(xml.scene)].group));
    if (currentgroup != null,getmessage(mess, get(panoramagroup[get(currentgroup)].titleid)););
    set(layer[title_currentgroup1].html, get(mess));
    escape(layer[title_currentgroup1].html);
  </action>
  <layer name="title_currentgroup1" keep="true" zorder="0"
         url="%FIRSTXML%/graphics/textfield.swf"
         align="bottomleft" x="10" y="60" width="100%" autoheight="true"
         background="false" capture="false" handcursor="false" selectable="false" enabled="false"
         borderwidth="0"
         alpha="1"
         visible="false"
         textshadow="1"
         css="text-align:left;
              color:#ffffff;
              font-family:Myriad Pro;
              font-size:16px;"/>

  <!-- ********************** -->
  <!-- Previous / Next Strips -->
  <!-- ********************** -->

  <style name="prevnexttheme2btn_alpha_style" 
    alpha="0.0" onover="set(alpha, 1);" onout="set(alpha, 0.0);"
    devices="desktop"
  />
  <style name="prevnexttheme2btn_alpha_style" 
    alpha="1.0"
    devices="tablet|mobile"
  />
  <layer name="prevnexttheme2btn_prev_pano" keep="true" align="left"
         height="102%"
         width="5%"
         type="container"
         bgcapture="true"
         bgalpha="0.2"
         bgcolor="0xeeeeee"
         zorder="1"
         onclick="loadPreviousScene();
"
         style="prevnexttheme2btn_alpha_style"
         visible="false">
    <layer name="prevnexttheme2prevPanoramaArrow" keep="true" align="center"
         url="%FIRSTXML%/graphics/prevnextstrips/btn_scroll_left.png"
         alpha="1"
         zorder="0"
         tooltip="prevnexttheme2prevSceneTip"
         onhover="showTooltip('plugin',prevnexttheme2TooltipStyle,left);"
         onout="hideTooltip();"
         onclick="loadPreviousScene();
"
    />
  </layer>

  <layer name="prevnexttheme2btn_next_pano" keep="true" align="right"
         height="102%"
         width="5%"
         type="container"
         bgcapture="true"
         bgalpha="0.2"
         bgcolor="0xeeeeee"
         zorder="1"
         onclick="loadNextScene();
"
         style="prevnexttheme2btn_alpha_style"
         visible="false">
    <layer name="prevnexttheme2nextPanoramaArrow" keep="true" align="center"
         url="%FIRSTXML%/graphics/prevnextstrips/btn_scroll_right.png"
         alpha="1"
         zorder="0"
         tooltip="prevnexttheme2nextSceneTip"
         onhover="showTooltip('plugin',prevnexttheme2TooltipStyle,right);"
         onout="hideTooltip();"
         onclick="loadNextScene();
"
    />
  </layer>

  <events name="prevnexttheme2hideshowcontrolsevent" 
    onTourStart="prevnexttheme2showPrevNextControls();"
    keep="true"/>
  <action name="prevnexttheme2hidePrevNextControls">
    set(layer[prevnexttheme2btn_prev_pano].visible, false);
    set(layer[prevnexttheme2btn_next_pano].visible, false);
  </action>
  <action name="prevnexttheme2showPrevNextControls">
    set(layer[prevnexttheme2btn_prev_pano].visible, true);
    set(layer[prevnexttheme2btn_next_pano].visible, true);
  </action>

<layer name="prevnexttheme2TooltipStyle"
	keep="true"
	enabled="false"
	capture="false"
	url="%FIRSTXML%/graphics/textfield.swf"
	align="center"
	background="false"
	border="false"
	textshadow="1" textshadowrange="4.0" textshadowangle="45" textshadowcolor="0x000000" textshadowalpha="1"
	css="color:#e6e6e6;font-family:Helvetica;font-weight:bold;font-size:14px;text-align:left;"
	height="20"
	autoheight="true"
	autowidth="auto"
	selectable="false"
	zorder="0"
	padding="2"
	xoffset="0"
	yoffset="0"
	visible="false"
	html=""
/>


<!-- ************ -->
<!-- Double click -->
<!-- ************ -->
  <plugin name="doubleclick" url="%FIRSTXML%/graphics/doubleclick/fieldofview_dc.swf" alturl="%FIRSTXML%/graphics/doubleclick/fieldofview_dc.js" keep="true" ondblclick="ondoubleclick();"/>
  <action name="ondoubleclick">switchFullscreen();


  </action>

<!-- ********* -->
<!-- Gyroscope -->
<!-- ********* -->
<plugin name="gyroscope"
        url="graphics/gyro.js"
        keep="true"
        devices="no-desktop.and.html5"


        friction="0.5"
        onavailable="delayedcall(1, checkGyroAvailability(););"
        enabled="false"
        activated="false"
        />

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

<action name="planarGyroscopeTest">
  if(plugin[gyroscope],
    ifnot (plugin[gyroscope].available === undefined, 
      if (plugin[gyroscope].available,
        if(scene[get(xml.scene)].planar,
          if(plugin[gyroscope].enabled,
            switch(plugin[gyroscope].enabled);
            if (plugin[gyroscope].enabled, events.dispatch(ongyroscopeon);, events.dispatch(ongyroscopeoff););
          );
        ,
          if(plugin[gyroscope].activated,
            ifnot(plugin[gyroscope].enabled,
              switch(plugin[gyroscope].enabled);
              if (plugin[gyroscope].enabled, events.dispatch(ongyroscopeon);, events.dispatch(ongyroscopeoff););
            );
          );
        );
      );
    );
  );
</action>

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

<action name="checkGyroAvailability">
  if(plugin[gyroscope],
    ifnot (plugin[gyroscope].available === undefined, 
      if (plugin[gyroscope].available,
        ifnot(scene[get(xml.scene)].planar,
          switch(plugin[gyroscope].enabled);
          set(plugin[gyroscope].activated,true);
        );
        set(tour_gyroscopedevices, true);
        events.dispatch(ongyroscopeavailable);
      ,
        set(tour_gyroscopedevices, false);
      );
    ,
      set(tour_gyroscopedevices, false);
    );
    if (plugin[gyroscope].enabled, events.dispatch(ongyroscopeon);, events.dispatch(ongyroscopeoff););
  );
</action>

	<!-- ***************************** -->
	<!-- Docked Thumbnails Control Bar -->
	<!-- ***************************** -->



<krpano themeunanimebarbuilt="false" themeunanimeIsOpened="false" />

<events name="themeunanimebarevents" 
	onxmlcomplete="themeunanimebuildMenuBar();"
	
	keep="true"/>

<action name="themeunanimebuildMenuBar">
	ifnot (themeunanimebarbuilt, themeunanimebuildMenu(); set(themeunanimebarbuilt, true););
</action>



<action name="themeunanimebuildMenu">
	
    set(themeunanimebutton_pos, 0);
    set(layer[themeunanimebtn_hidecontrols].x, get(themeunanimebutton_pos));
    inc(themeunanimebutton_pos, 36);


      if (device.desktop,
        set(layer[themeunanimebtn_display_help].x, get(themeunanimebutton_pos));
        
        set(layer[themeunanimebtn_close_help].x  , get(themeunanimebutton_pos));
        
        inc(themeunanimebutton_pos, 36);
      );

      if (device.fullscreensupport,
        set(layer[themeunanimebtn_openfs].x, get(themeunanimebutton_pos));
        set(layer[themeunanimebtn_closefs].x, get(themeunanimebutton_pos));
        inc(themeunanimebutton_pos, 36);
      );




      set(layer[themeunanimebtn_autotour_on].x , get(themeunanimebutton_pos));
      
      set(layer[themeunanimebtn_autotour_off].x, get(themeunanimebutton_pos));
      
      inc(themeunanimebutton_pos, 36);


      if (device.desktop,
        set(layer[themeunanimebtn_ctrlmode_drag_to].x, get(themeunanimebutton_pos));
        
        set(layer[themeunanimebtn_ctrlmode_move_to].x, get(themeunanimebutton_pos));
        
        inc(themeunanimebutton_pos, 36);
      );


      if(plugin[gyroscope],
        set(themeunanimeDisplayGyroscopeButton, false);
        if (device.tablet, set(themeunanimeDisplayGyroscopeButton, true););
        if (device.mobile, set(themeunanimeDisplayGyroscopeButton, true););
        if(themeunanimeDisplayGyroscopeButton,
          set(layer[themeunanimebtn_gyroscope_on].x, get(themeunanimebutton_pos));
          
          set(layer[themeunanimebtn_gyroscope_off].x, get(themeunanimebutton_pos));
          
          inc(themeunanimebutton_pos, 36);
        );
      );


      if (device.desktop,
        set(layer[themeunanimebtn_right].x, get(themeunanimebutton_pos));
        
        inc(themeunanimebutton_pos, 36);

        set(layer[themeunanimebtn_left].x, get(themeunanimebutton_pos));
        
        inc(themeunanimebutton_pos, 36);
      );

      if (device.desktop,
        set(layer[themeunanimebtn_down].x, get(themeunanimebutton_pos));
        
        inc(themeunanimebutton_pos, 36);

        set(layer[themeunanimebtn_up].x, get(themeunanimebutton_pos));
        
        inc(themeunanimebutton_pos, 36);
      );

      if (device.desktop,
        set(layer[themeunanimebtn_out].x, get(themeunanimebutton_pos));
        inc(themeunanimebutton_pos, 36);
        set(layer[themeunanimebtn_in].x, get(themeunanimebutton_pos));
        inc(themeunanimebutton_pos, 36);
      );


	
	
	
</action>

<events name="themeunanimeStartTourEvents" onTourStart="themeunanimeCallOnStartTour();" keep="true" />

<action name="themeunanimeCallOnStartTour">
	
	themeunanimeshowMenuControls();
</action>


    <layer name="themeunanime_bg"
           keep="true"
           url="%FIRSTXML%/graphics/dockedthumbscontrolbar/footer.png"
           zorder="4"
           width="100%"
           align="bottomleft"
           x="0"
           visible="false" />


    <style name="themeunanime_btn_style_on_bg"
           keep="true"
           parent="themeunanime_bg"
           crop="0|48|48|48"
           url="%FIRSTXML%/graphics/dockedthumbscontrolbar/btn_bg.png"
           align="bottomright"
           height="36"
           width="36"
           alpha="0.3"
           y="12"
           zorder="0"
           />

    <style name="themeunanime_btn_down_style"
           keep="true"
           parent="themeunanime_bg"
                 crop="0| 0|48|48"
           onovercrop="0|48|48|48"
           ondowncrop="0|96|48|48"
           align="bottomright"
           height="36"
           width="36"
           x="0" y="12"
           zorder="1"
           onhover="showTooltip('plugin',themeunanimemenuTooltipStyle);"
           onout="hideTooltip();"
           />

    <style name="themeunanime_btn_style"
           keep="true"
           parent="themeunanime_bg"
                 crop="0| 0|48|48"
           onovercrop="0|48|48|48"
           ondowncrop="0|96|48|48"
           align="bottomright"
           height="36"
           width="36"
           x="0" y="12"
           zorder="1"
           onhover="showTooltip('plugin',themeunanimemenuTooltipStyle);"
           onout="hideTooltip();"
           />


    <style name="themeunanime_btn_style_on"
            keep="true"
            parent="themeunanime_bg"
                  crop="0|48|48|48"
            onovercrop="0|48|48|48"
            ondowncrop="0|96|48|48"
            align="bottomright"
            height="36"
            width="36"
            y="12"
            zorder="1"
            onhover="showTooltip('plugin',themeunanimemenuTooltipStyle);" 
            onout="hideTooltip();"
            />


  <events name="themeunanimegyroscopeavailableevent"
          ongyroscopeavailable="themeunanimeupdateGyroscopeButtonsAvailability();"
          ongyroscopeon="themeunanimeenableGyroscopeButtons(true);"
          ongyroscopeoff="themeunanimeenableGyroscopeButtons(false);"
          keep="true"/>
  <krpano themeunanimemenugyroscopeavailable="false" themeunanimemenugyroscopeenabled="false"/>
  <action name="themeunanimeupdateGyroscopeButtonsAvailability">
    if (tour_gyroscopedevices,
      set(themeunanimemenugyroscopeavailable, true);
      themeunanimeupdateGyroscopeButtons();
    );
  </action>
  <action name="themeunanimeenableGyroscopeButtons">
    if (tour_gyroscopedevices,
      set(themeunanimemenugyroscopeenabled, %1);
      themeunanimeupdateGyroscopeButtons();
    );
  </action>
	<action name="themeunanimeHideGyroscopeButtons">
		set(layer[themeunanimebtn_gyroscope_off].visible, false);
		set(layer[themeunanimebtn_gyroscope_on].visible, false);
		
	</action>
	<action name="themeunanimeShowGyroscopeButtons">
		if (themeunanimemenugyroscopeavailable,
			if (themeunanimemenugyroscopeenabled,
				set(layer[themeunanimebtn_gyroscope_off].visible, true);
				set(layer[themeunanimebtn_gyroscope_on].visible, false);
				
			,
				set(layer[themeunanimebtn_gyroscope_off].visible, false);
				set(layer[themeunanimebtn_gyroscope_on].visible, true);
				
			);
		,
			themeunanimeHideGyroscopeButtons();
		);
	</action>
	<action name="themeunanimeupdateGyroscopeButtons">
	if (tour_gyroscopedevices,
		set(themeunanimeDisplayMenuGyroscopeButtons, false);
		if (themeunanimeIsOpened, set(themeunanimeDisplayMenuGyroscopeButtons, true););
		if (themeunanimeDisplayMenuGyroscopeButtons,
			themeunanimeShowGyroscopeButtons();
		,
			themeunanimeHideGyroscopeButtons();
		);
	,
		themeunanimeHideGyroscopeButtons();
	);
	</action>
	
    <layer name="themeunanimebtn_gyroscope_off"
            url="%FIRSTXML%/graphics/dockedthumbscontrolbar/btn_gyroscope.png"
            style="themeunanime_btn_style"
            onclick="disableGyroscope();
"
            devices="html5"
            tooltip="controlBar_dockedThumbnailsgyroOffTip"
            visible="false"
            />
    <layer name="themeunanimebtn_gyroscope_on"
            url="%FIRSTXML%/graphics/dockedthumbscontrolbar/btn_gyroscope.png"
            style="themeunanime_btn_style_on"
            onclick="enableGyroscope();
"
            devices="html5"
            tooltip="controlBar_dockedThumbnailsgyroOnTip"
            visible="false"
            />


	<events name="themeunanimecontrolmodechangedevent" oncontrolmodechanged="themeunanimeupdateControlModeButtons();" keep="true"/>
	<action name="themeunanimeHideControlModeButtons">
		set(layer[themeunanimebtn_ctrlmode_move_to].visible, false);
		set(layer[themeunanimebtn_ctrlmode_drag_to].visible, false);
		
	</action>
	<action name="themeunanimeShowControlModeButtons">
		if (tour_controlmodemousetype == "moveto",
			set(layer[themeunanimebtn_ctrlmode_drag_to].visible, true);
			set(layer[themeunanimebtn_ctrlmode_move_to].visible, false);
			
		,
			set(layer[themeunanimebtn_ctrlmode_move_to].visible, true);
			set(layer[themeunanimebtn_ctrlmode_drag_to].visible, false);
			
		);
	</action>
	<action name="themeunanimeupdateControlModeButtons">
	if (device.desktop,
		set(themeunanimeDisplayControlModeButtons, false);
		if (themeunanimeIsOpened, set(themeunanimeDisplayControlModeButtons, true););
		if (themeunanimeDisplayControlModeButtons,
			themeunanimeShowControlModeButtons();
		,
			themeunanimeHideControlModeButtons();
		);
	,
		themeunanimeHideControlModeButtons();
	);
	</action>
	
    <layer name="themeunanimebtn_ctrlmode_move_to"
           url="%FIRSTXML%/graphics/dockedthumbscontrolbar/btn_move_to.png"
           style="themeunanime_btn_style"
           tooltip="controlBar_dockedThumbnailsctrlmodeMoveTip"
           onclick="setControlModeMoveTo();
"
           visible="false"
           devices="desktop"
           />
    <layer name="themeunanimebtn_ctrlmode_drag_to"
           url="%FIRSTXML%/graphics/dockedthumbscontrolbar/btn_drag_to.png"
           style="themeunanime_btn_style"
           tooltip="controlBar_dockedThumbnailsctrlmodeDragTip"
           onclick="setControlModeDragTo();
"
           visible="false"
           devices="desktop"
           />

    <layer name="themeunanimebtn_in"
           url="%FIRSTXML%/graphics/dockedthumbscontrolbar/btn_zoom_in.png"
           style="themeunanime_btn_down_style"
           ondown="set(fov_moveforce, -1);
"
           onup="set(fov_moveforce, 0);
"
           tooltip="controlBar_dockedThumbnailszoomInTip"
           devices="desktop"
           visible="false"
           />
    <layer name="themeunanimebtn_out"
           url="%FIRSTXML%/graphics/dockedthumbscontrolbar/btn_zoom_out.png"
           style="themeunanime_btn_down_style"
           ondown="set(fov_moveforce, +1);
"
           onup="set(fov_moveforce, 0);
"
           tooltip="controlBar_dockedThumbnailszoomOutTip"
           devices="desktop"
           visible="false"
           />

    <layer name="themeunanimebtn_left"
           url="%FIRSTXML%/graphics/dockedthumbscontrolbar/btn_move_left.png"
           style="themeunanime_btn_down_style"
           ondown="set(hlookat_moveforce, -1);
"
           onup="set(hlookat_moveforce, 0);
"
            tooltip="controlBar_dockedThumbnailsmoveLeftTip"
           devices="desktop"
           visible="false"
           />
    <layer name="themeunanimebtn_right"
           url="%FIRSTXML%/graphics/dockedthumbscontrolbar/btn_move_right.png"
           style="themeunanime_btn_down_style"
           ondown="set(hlookat_moveforce, +1);
"
           onup="set(hlookat_moveforce, 0);
"
            tooltip="controlBar_dockedThumbnailsmoveRightTip"
           devices="desktop"
           visible="false"
           />

    <layer name="themeunanimebtn_up"
           url="%FIRSTXML%/graphics/dockedthumbscontrolbar/btn_move_up.png"
           style="themeunanime_btn_down_style"
           ondown="set(vlookat_moveforce, -1);
"
           onup="set(vlookat_moveforce, 0);
"
            tooltip="controlBar_dockedThumbnailsmoveUpTip"
           devices="desktop"
           visible="false"
           />
    <layer name="themeunanimebtn_down"
           url="%FIRSTXML%/graphics/dockedthumbscontrolbar/btn_move_down.png"
           style="themeunanime_btn_down_style"
           ondown="set(vlookat_moveforce, +1);
"
           onup="set(vlookat_moveforce, 0);
"
            tooltip="controlBar_dockedThumbnailsmoveDownTip"
           devices="desktop"
           visible="false"
           />





    <layer name="themeunanimebtn_openfs"
           url="%FIRSTXML%/graphics/dockedthumbscontrolbar/btn_enter_fs.png"
           onclick="enterFullscreen();
"
           style="themeunanime_btn_style"
           visible="false"
           tooltip="controlBar_dockedThumbnailsopenFsTip"
           devices="fullscreensupport"
           />
    <layer name="themeunanimebtn_closefs"
           url="%FIRSTXML%/graphics/dockedthumbscontrolbar/btn_close_fs.png"
           onclick="exitFullscreen();
"
           style="themeunanime_btn_style_on"
           visible="false"
           tooltip="controlBar_dockedThumbnailscloseFsTip"
           devices="fullscreensupport"
           />


    <layer name="themeunanimebtn_autotour_on"
           url="%FIRSTXML%/graphics/dockedthumbscontrolbar/btn_start_automatic_tour.png"
           onclick="startautotour();
"
           style="themeunanime_btn_style"
           visible="false"
            tooltip="controlBar_dockedThumbnailsautotourOnTip"
           />
    <layer name="themeunanimebtn_autotour_off"
           url="%FIRSTXML%/graphics/dockedthumbscontrolbar/btn_stop_automatic_tour.png"
           onclick="stopautotour();
"
           style="themeunanime_btn_style_on"
           visible="false"
           tooltip="controlBar_dockedThumbnailsautotourOffTip"
           />


    <layer name="themeunanimebtn_display_help"
           url="%FIRSTXML%/graphics/dockedthumbscontrolbar/btn_help.png"
           onclick="themeunanimedisplayHelp();"
           style="themeunanime_btn_style"
           tooltip="controlBar_dockedThumbnailsdisplayHelpTip"
           devices="desktop"
           visible="false"
           />
    <layer name="themeunanimebtn_close_help"
           url="%FIRSTXML%/graphics/dockedthumbscontrolbar/btn_help.png"
           onclick="themeunanimecloseHelp();"
           style="themeunanime_btn_style_on"
           visible="false"
           tooltip="controlBar_dockedThumbnailshideHelpTip"
           devices="desktop"
           />



    <layer name="themeunanimebtn_hidecontrols"
           url="%FIRSTXML%/graphics/dockedthumbscontrolbar/btn_hide_controls.png"
           style="themeunanime_btn_style"
           onclick="themeunanimehideMenuControls();hideTourControls();
"
           visible="false"
            tooltip="controlBar_dockedThumbnailshideControlsTip"
           />

    <layer name="themeunanimebtn_showcontrols"
                  crop="0| 0|48|48"
            onovercrop="0|48|48|48"
            ondowncrop="0|96|48|48"
            keep="true"
            url="%FIRSTXML%/graphics/dockedthumbscontrolbar/btn_show_controls_bg.png"
            align="bottomright"
            zorder="4"
            height="36"
            width="36"
            visible="false"
            y="12"
            x="0" >
    <layer name="themeunanimebtn_showcontrols_fg"
                  crop="0| 0|48|48"
            onovercrop="0|48|48|48"
            ondowncrop="0|96|48|48"
            onclick="themeunanimeshowMenuControls();showTourControls();
"
            onhover="showTooltip('plugin',themeunanimemenuTooltipStyle);"
            onout="hideTooltip();"
            tooltip="controlBar_dockedThumbnailsdisplayControlsTip"
            keep="true"
            url="%FIRSTXML%/graphics/dockedthumbscontrolbar/btn_show_controls.png"
            align="center"
            height="36"
            width="36"
            />
    </layer>


<action name="themeunanimehideMenuControls">
	set(themeunanimeIsOpened, false);
	set(layer[themeunanime_bg].visible, false);
	set(layer[themeunanimebtn_showcontrols].visible, true);
	
	set(layer[themeunanimebtn_hidecontrols].visible, false);
	set(layer[themeunanimebtn_in].visible, false);
	set(layer[themeunanimebtn_out].visible, false);
	set(layer[themeunanimebtn_right].visible, false);
	set(layer[themeunanimebtn_left].visible, false);
	set(layer[themeunanimebtn_down].visible, false);
	set(layer[themeunanimebtn_up].visible, false);



		themeunanimeupdateGyroscopeButtons();

		themeunanimeupdateControlModeButtons();




		themeunanimeupdateFullscreenButtons();

		themeunanimeupdateAutotourButtons();

		themeunanimeupdateHelpButtons();


</action>
<action name="themeunanimeshowMenuControls">
	set(themeunanimeIsOpened, true);
      themeunanimeupdateFullscreenButtons();



      themeunanimeupdateAutotourButtons();
      themeunanimeupdateGyroscopeButtons();

      themeunanimeupdateControlModeButtons();




      themeunanimeupdateHelpButtons();
      set(layer[themeunanime_bg].visible, true);
	set(layer[themeunanimebtn_showcontrols].visible, false);
	
	set(layer[themeunanimebtn_hidecontrols].visible, true);
	set(layer[themeunanimebtn_in].visible, true);
	set(layer[themeunanimebtn_out].visible, true);
	set(layer[themeunanimebtn_right].visible, true);
	set(layer[themeunanimebtn_left].visible, true);
	set(layer[themeunanimebtn_down].visible, true);
	set(layer[themeunanimebtn_up].visible, true);


	
	
</action>


    <layer name="themeunanimehelpScreenBg" align="center" keep="true" onclick="themeunanimecloseHelp();"
           url="%FIRSTXML%/graphics/dockedthumbscontrolbar/help_screen_bg.png"
           visible="false"
           zorder="97"
           >
      <layer name="themeunanimehelpScreen" align="center" keep="true" onclick="themeunanimecloseHelp();" 
             url="%FIRSTXML%/graphics/dockedthumbscontrolbar/help_screen_fg.png"
             height="100%" 
             width="prop" 
             displayed="false"
             />
    </layer>
    <action name="themeunanimedisplayHelp">
      if (device.desktop,
        set(layer[themeunanimehelpScreen].displayed, true);
        set(layer[themeunanimehelpScreenBg].visible,true);
        themeunanimeupdateHelpButtons();
      );
    </action>
    <action name="themeunanimecloseHelp">
      if (device.desktop,
        set(layer[themeunanimehelpScreen].displayed, false);
        set(layer[themeunanimehelpScreenBg].visible,false);
        themeunanimeupdateHelpButtons();
      );
    </action>
	<action name="themeunanimeHideHelpButtons">
		set(layer[themeunanimebtn_display_help].visible, false);
		set(layer[themeunanimebtn_close_help].visible, false);
		
	</action>
	<action name="themeunanimeShowHelpButtons">
		if (layer[themeunanimehelpScreen].displayed,
			set(layer[themeunanimebtn_close_help].visible, true);
			set(layer[themeunanimebtn_display_help].visible, false);
			
		,
			set(layer[themeunanimebtn_display_help].visible, true);
			set(layer[themeunanimebtn_close_help].visible, false);
			
		);
	</action>
	<action name="themeunanimeupdateHelpButtons">
	if (device.desktop,
		set(themeunanimeDisplayHelpButtons, false);
		if (themeunanimeIsOpened, set(themeunanimeDisplayHelpButtons, true););
		if (themeunanimeDisplayHelpButtons,
			themeunanimeShowHelpButtons();
		,
			themeunanimeHideHelpButtons();
		);
	,
		themeunanimeHideHelpButtons();
	);
	</action>
    


	<events name="themeunanimemenufullscreenchangeevent"
		onenterfullscreen="themeunanimeupdateFullscreenButtons();"
		onexitfullscreen="themeunanimeupdateFullscreenButtons();"
		keep="true"/>
	<action name="themeunanimeHideFullscreenButtons">
		set(layer[themeunanimebtn_openfs].visible , false);
		set(layer[themeunanimebtn_closefs].visible, false);
		
	</action>
	<action name="themeunanimeShowFullscreenButtons">
		if (device.fullscreensupport,
			if(tour_fullscreen,
				set(layer[themeunanimebtn_openfs].visible , false);
				set(layer[themeunanimebtn_closefs].visible, true);
				
			,
				set(layer[themeunanimebtn_openfs].visible ,true);
				set(layer[themeunanimebtn_closefs].visible,false);
				
			);
		,
			themeunanimeHideFullscreenButtons();
		);
	</action>
	<action name="themeunanimeupdateFullscreenButtons">
		set(themeunanimeDisplayFullscreenButtons, false);
		if (themeunanimeIsOpened, set(themeunanimeDisplayFullscreenButtons, true););
		if (themeunanimeDisplayFullscreenButtons,
			themeunanimeShowFullscreenButtons();
		,
			themeunanimeHideFullscreenButtons();
		);
	</action>


	<events name="themeunanimeAutotourEvents"
		onstartautotour="themeunanimeupdateAutotourButtons();"
		onstopautotour="themeunanimeupdateAutotourButtons();"
		keep="true"/>
	<action name="themeunanimeHideAutotourButtons">
		set(layer[themeunanimebtn_autotour_off].visible, false);
		set(layer[themeunanimebtn_autotour_on].visible , false);
		
	</action>
	<action name="themeunanimeShowAutotourButtons">
		if (tour_autotourenabled == false,
			set(layer[themeunanimebtn_autotour_off].visible, false);
			set(layer[themeunanimebtn_autotour_on].visible , true);
			
		,
			set(layer[themeunanimebtn_autotour_off].visible, true);
			set(layer[themeunanimebtn_autotour_on].visible , false);
			
		);
	</action>
	<action name="themeunanimeupdateAutotourButtons">
		set(themeunanimeDisplayAutotourButtons, false);
		if (themeunanimeIsOpened, set(themeunanimeDisplayAutotourButtons, true););
		if (themeunanimeDisplayAutotourButtons,
			themeunanimeShowAutotourButtons();
		,
			themeunanimeHideAutotourButtons();
		);
	</action>


	<layer name="themeunanimemenuTooltipStyle"
	keep="true"
	enabled="false"
	capture="false"
	url="%FIRSTXML%/graphics/textfield.swf"
	align="center"
	background="true"
	backgroundcolor="0x000000"
	backgroundalpha="0.8"
	border="false"
	css="color:#ffffff;font-family:Myriad Pro;font-weight:bold;font-size:14px;text-align:left;"
	height="20"
	autoheight="true"
	autowidth="auto"
	edge="bottom"
	selectable="false"
	zorder="0"
	padding="2"
	xoffset="0"
	yoffset="0"
	visible="false"
	html=""
	/>



  <!-- ************* -->
  <!-- Panorama Menu -->
  <!-- ************* -->

<ptplugin name="panoramaMenu" engine="kolorMenu">
	<settings>
		<option name="position" value="top" type="string" />
		<option name="orientation" value="horizontal" type="string" />
		<option name="sub_orientation" value="vertical" type="string" />
		<option name="margin_x" value="0" type="int" />
		<option name="margin_y" value="0" type="int" />
		<option name="margins_on_items" value="true" type="bool" />
		<option name="margins_both" value="true" type="bool" />
		<option name="background_color" value="000000" type="string" />
		<option name="background_alpha" value="0.500007629510948" type="float" />
		<option name="item_spacer" value="0" type="int" />
		<option name="border_radius" value="0" type="int" />
		<option name="full_size" value="true" type="bool" />
		<option name="use_out_effect" value="true" type="bool" />
		<option name="item_out_border_radius" value="0" type="int" />
		<option name="item_hover_border_radius" value="0" type="int" />
		<option name="item_out_border_width" value="0" type="int" />
		<option name="item_hover_border_width" value="0" type="int" />
		<option name="item_out_bg_color" value="000000" type="string" />
		<option name="item_out_bg_alpha" value="0.500007629510948" type="float" />
		<option name="item_out_font_color" value="ffffff" type="string" />
		<option name="item_out_font_family" value="Myriad Pro" type="string" />
		<option name="item_out_font_size" value="14" type="int" />
		<option name="item_out_font_weight" value="bold" type="string" />
		<option name="item_out_font_style" value="normal" type="string" />
		<option name="item_out_font_decoration" value="normal" type="string" />
		<option name="use_hover_effect" value="true" type="bool" />
		<option name="item_hover_bg_color" value="000000" type="string" />
		<option name="item_hover_bg_alpha" value="0.500007629510948" type="float" />
		<option name="item_hover_font_color" value="ffffff" type="string" />
		<option name="item_hover_font_family" value="Myriad Pro" type="string" />
		<option name="item_hover_font_size" value="14" type="int" />
		<option name="item_hover_font_weight" value="bold" type="string" />
		<option name="item_hover_font_style" value="normal" type="string" />
		<option name="item_hover_font_decoration" value="normal" type="string" />
		<option name="text_align" value="right" type="string" />
		<option name="item_thumb_max_width" value="150" type="int" />
		<option name="item_thumb_max_height" value="75" type="int" />
		<option name="zorder" value="5" type="int" />
	</settings>
	<internaldata>
				<group name="group_1"
						titleID="panogroup52_title"
						thumbnail=""
						subMenu="true"
						cssClass="panogroup52"> 

				
				
						<item name="group_1_item_1"
							action="invokeKrFunction('mainloadscene', 'pano20')"
								titleID="pano20_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_01_20/thumbnail.jpg"
							cssClass="pano20">
						
						
						</item>
						<item name="group_1_item_2"
							action="invokeKrFunction('mainloadscene', 'pano21')"
								titleID="pano21_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_02_21/thumbnail.jpg"
							cssClass="pano21">
						
						
						</item>
					
				
				</group>
				<group name="group_2"
						titleID="panogroup91_title"
						thumbnail=""
						subMenu="true"
						cssClass="panogroup91"> 

				
				
						<item name="group_2_item_1"
							action="invokeKrFunction('mainloadscene', 'pano22')"
								titleID="pano22_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_03_22/thumbnail.jpg"
							cssClass="pano22">
						
						
						</item>
						<item name="group_2_item_2"
							action="invokeKrFunction('mainloadscene', 'pano26')"
								titleID="pano26_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_07_26/thumbnail.jpg"
							cssClass="pano26">
						
						
						</item>
						<item name="group_2_item_3"
							action="invokeKrFunction('mainloadscene', 'pano23')"
								titleID="pano23_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_04_23/thumbnail.jpg"
							cssClass="pano23">
						
						
						</item>
						<item name="group_2_item_4"
							action="invokeKrFunction('mainloadscene', 'pano24')"
								titleID="pano24_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_05_24/thumbnail.jpg"
							cssClass="pano24">
						
						
						</item>
					
				
				</group>
				<group name="group_3"
						titleID="panogroup93_title"
						thumbnail=""
						subMenu="true"
						cssClass="panogroup93"> 

				
				
						<item name="group_3_item_1"
							action="invokeKrFunction('mainloadscene', 'pano27')"
								titleID="pano27_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_08_27/thumbnail.jpg"
							cssClass="pano27">
						
						
						</item>
						<item name="group_3_item_2"
							action="invokeKrFunction('mainloadscene', 'pano36')"
								titleID="pano36_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_17_36/thumbnail.jpg"
							cssClass="pano36">
						
						
						</item>
						<item name="group_3_item_3"
							action="invokeKrFunction('mainloadscene', 'pano35')"
								titleID="pano35_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_16_35/thumbnail.jpg"
							cssClass="pano35">
						
						
						</item>
						<item name="group_3_item_4"
							action="invokeKrFunction('mainloadscene', 'pano31')"
								titleID="pano31_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_12_31/thumbnail.jpg"
							cssClass="pano31">
						
						
						</item>
						<item name="group_3_item_5"
							action="invokeKrFunction('mainloadscene', 'pano29')"
								titleID="pano29_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_10_29/thumbnail.jpg"
							cssClass="pano29">
						
						
						</item>
						<item name="group_3_item_6"
							action="invokeKrFunction('mainloadscene', 'pano28')"
								titleID="pano28_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_09_28/thumbnail.jpg"
							cssClass="pano28">
						
						
						</item>
					
				
				</group>
				<group name="group_4"
						titleID="panogroup83_title"
						thumbnail=""
						subMenu="true"
						cssClass="panogroup83"> 

				
				
						<item name="group_4_item_1"
							action="invokeKrFunction('mainloadscene', 'pano30')"
								titleID="pano30_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_11_30/thumbnail.jpg"
							cssClass="pano30">
						
						
						</item>
						<item name="group_4_item_2"
							action="invokeKrFunction('mainloadscene', 'pano51')"
								titleID="pano51_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_32_51/thumbnail.jpg"
							cssClass="pano51">
						
						
						</item>
						<item name="group_4_item_3"
							action="invokeKrFunction('mainloadscene', 'pano50')"
								titleID="pano50_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_31_50/thumbnail.jpg"
							cssClass="pano50">
						
						
						</item>
					
				
				</group>
				<group name="group_5"
						titleID="panogroup66_title"
						thumbnail=""
						subMenu="true"
						cssClass="panogroup66"> 

				
				
						<item name="group_5_item_1"
							action="invokeKrFunction('mainloadscene', 'pano33')"
								titleID="pano33_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_14_33/thumbnail.jpg"
							cssClass="pano33">
						
						
						</item>
						<item name="group_5_item_2"
							action="invokeKrFunction('mainloadscene', 'pano34')"
								titleID="pano34_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_15_34/thumbnail.jpg"
							cssClass="pano34">
						
						
						</item>
						<item name="group_5_item_3"
							action="invokeKrFunction('mainloadscene', 'pano32')"
								titleID="pano32_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_13_32/thumbnail.jpg"
							cssClass="pano32">
						
						
						</item>
					
				
				</group>
				<group name="group_6"
						titleID="panogroup80_title"
						thumbnail=""
						subMenu="true"
						cssClass="panogroup80"> 

				
				
						<item name="group_6_item_1"
							action="invokeKrFunction('mainloadscene', 'pano37')"
								titleID="pano37_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_18_37/thumbnail.jpg"
							cssClass="pano37">
						
						
						</item>
						<item name="group_6_item_2"
							action="invokeKrFunction('mainloadscene', 'pano47')"
								titleID="pano47_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_28_47/thumbnail.jpg"
							cssClass="pano47">
						
						
						</item>
						<item name="group_6_item_3"
							action="invokeKrFunction('mainloadscene', 'pano48')"
								titleID="pano48_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_29_48/thumbnail.jpg"
							cssClass="pano48">
						
						
						</item>
					
				
				</group>
				<group name="group_7"
						titleID="panogroup86_title"
						thumbnail=""
						subMenu="true"
						cssClass="panogroup86"> 

				
				
						<item name="group_7_item_1"
							action="invokeKrFunction('mainloadscene', 'pano25')"
								titleID="pano25_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_06_25/thumbnail.jpg"
							cssClass="pano25">
						
						
						</item>
						<item name="group_7_item_2"
							action="invokeKrFunction('mainloadscene', 'pano38')"
								titleID="pano38_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_19_38/thumbnail.jpg"
							cssClass="pano38">
						
						
						</item>
						<item name="group_7_item_3"
							action="invokeKrFunction('mainloadscene', 'pano41')"
								titleID="pano41_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_22_41/thumbnail.jpg"
							cssClass="pano41">
						
						
						</item>
						<item name="group_7_item_4"
							action="invokeKrFunction('mainloadscene', 'pano39')"
								titleID="pano39_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_20_39/thumbnail.jpg"
							cssClass="pano39">
						
						
						</item>
						<item name="group_7_item_5"
							action="invokeKrFunction('mainloadscene', 'pano40')"
								titleID="pano40_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_21_40/thumbnail.jpg"
							cssClass="pano40">
						
						
						</item>
					
				
				</group>
				<group name="group_8"
						titleID="panogroup78_title"
						thumbnail=""
						subMenu="true"
						cssClass="panogroup78"> 

				
				
						<item name="group_8_item_1"
							action="invokeKrFunction('mainloadscene', 'pano42')"
								titleID="pano42_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_23_42/thumbnail.jpg"
							cssClass="pano42">
						
						
						</item>
						<item name="group_8_item_2"
							action="invokeKrFunction('mainloadscene', 'pano44')"
								titleID="pano44_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_25_44/thumbnail.jpg"
							cssClass="pano44">
						
						
						</item>
						<item name="group_8_item_3"
							action="invokeKrFunction('mainloadscene', 'pano43')"
								titleID="pano43_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_24_43/thumbnail.jpg"
							cssClass="pano43">
						
						
						</item>
						<item name="group_8_item_4"
							action="invokeKrFunction('mainloadscene', 'pano45')"
								titleID="pano45_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_26_45/thumbnail.jpg"
							cssClass="pano45">
						
						
						</item>
						<item name="group_8_item_5"
							action="invokeKrFunction('mainloadscene', 'pano46')"
								titleID="pano46_title"
								thumbnail="EXECUTIVE RESIDENCEdata/_27_46/thumbnail.jpg"
							cssClass="pano46">
						
						
						</item>
					
				
				</group>
	</internaldata>
</ptplugin>

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

<action name="showKolorMenu-panoramaMenu">
	
	ifnot(ptplugin[panoramaMenu].isOpen,
		set(ptplugin[panoramaMenu].isOpen, true);
		js(openKolorMenu(panoramaMenu));
	,
		if(ptplugin[panoramaMenu].jsready,
			js(invokePluginFunction(panoramaMenu, showKolorMenu));
		);
	);
</action>

<action name="hideKolorMenu-panoramaMenu">
	if(ptplugin[panoramaMenu].jsready,
		js(invokePluginFunction(panoramaMenu, hideKolorMenu));
	);
</action>


<events name="kolorMenuEvents-panoramaMenu" 
	keep="true"
	
	
	onTourStart="showKolorMenu-panoramaMenu();"
	hidetourcontrols="hideKolorMenu-panoramaMenu();"
	showtourcontrols="showKolorMenu-panoramaMenu();"
/>

<!-- ************ -->
<!-- Context Menu -->
<!-- ************ -->
  <contextmenu fullscreen="false" versioninfo="false" touch="true">
    <item name="normal"        onclick="setViewNormal();
" separator="true"/>
    <item name="fisheye"       onclick="setViewFisheye();
"/>
    <item name="architectural" onclick="setViewArchitectural();
"/>
    <item name="littleplanet"  onclick="setViewLittlePlanet();
"/>
    <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[normal].caption, contextmenunormallabel);
    getmessage(contextmenu.item[architectural].caption, contextmenuarchitecturallabel);
    
    set(sceneisfull360, false);
    if(scene[get(xml.scene)].full360,
      sub(viewhfov, view.hlookatmax, view.hlookatmin);
      if (viewhfov == 360,
        sub(viewvfov, view.vlookatmax, view.vlookatmin);
        if (viewvfov == 180,
          set(sceneisfull360, true);
        );
      );
    );
    if (sceneisfull360 AND (device.webgl OR device.flash),
      set(contextmenu.item[fisheye].visible, true);
      getmessage(contextmenu.item[fisheye].caption, contextmenufisheyelabel);
      set(contextmenu.item[littleplanet].visible, true);
      getmessage(contextmenu.item[littleplanet].caption, contextmenulittleplanetlabel);
    ,
      set(contextmenu.item[fisheye].visible, false);
      set(contextmenu.item[littleplanet].visible, false);
    );
    if (device.fullscreensupport,
      if(tour_fullscreen,
        getmessage(contextmenu.item[fullscreenentry].caption, contextmenucloseFsLabel);
        set(contextmenu.item[fullscreenentry].onclick, exitFullscreen();
);
       ,
        getmessage(contextmenu.item[fullscreenentry].caption, contextmenuopenFsLabel);
        set(contextmenu.item[fullscreenentry].onclick, enterFullscreen();
);
      );
     ,
      set(contextmenu.item[fullscreenentry].visible, false);
    );
  </action>


  <!-- ************************* -->
  <!-- Progress Bar and Loopings -->
  <!-- ************************* -->
  <progress showload="bar(
                midbottom
                ,
				100%,
                5,
				0,
                0,
				solid,
				0x000000,0x555555,0x555555,
				0x111111,0,
				0xffffff,0
				)"
			showwait="loopings(
				0xffffff,
				15,15,
				0,0,
				0xffffff,0,
				0,0,center
				)"
			showreloads="false"
			parent=""
			/>

  <!-- ************************ -->
  <!-- Title : current panorama -->
  <!-- ************************ -->

  <events name="title_currentpanorama_events" 
    onTourStart="showtitle_currentpanorama();"
    hidetourcontrols="hidetitle_currentpanorama();" 
    showtourcontrols="showtitle_currentpanorama();" 
    onnewpano="updatetitle_currentpanorama();" 
    keep="true" />

  <action name="hidetitle_currentpanorama">set(layer[title_currentpanorama].visible, false);</action>
  <action name="showtitle_currentpanorama">set(layer[title_currentpanorama].visible, true );</action>

  <action name="updatetitle_currentpanorama">
    getmessage(layer[title_currentpanorama].html, get(scene[get(xml.scene)].titleid));
    escape(layer[title_currentpanorama].html);
  </action>
  <layer name="title_currentpanorama" keep="true" zorder="8"
         url="%FIRSTXML%/graphics/textfield.swf"
         align="bottomleft" x="13" y="15" width="100%" autoheight="true"
         background="false" capture="false" handcursor="false" selectable="false" enabled="false"
         borderwidth="0"
         alpha="1"
         visible="false"
         css="text-align:left;
              color:#ffffff;
              font-family:Myriad Pro;
              font-weight:bold;
              font-size:16px;"/>

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


<action name="setViewLittlePlanet">
	set(sceneisfull360, false);
	if(scene[get(xml.scene)].full360,
		sub(viewhfov, view.hlookatmax, view.hlookatmin);
		if (viewhfov == 360,
			sub(viewvfov, view.vlookatmax, view.vlookatmin);
			if (viewvfov == 180,
				set(sceneisfull360, true);
			);
		);
	);
	if (sceneisfull360 AND (device.webgl OR device.flash),
		stopSetViewTweens();
		setViewLittlePlanetComplete();
	);
</action>

<action name="setViewLittlePlanetComplete">
	tween(view.architectural, 0.0, 0.25, easeoutquad, 
		tween(view.vlookat, 90, distance(179, 1.50), easeoutquad);
		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); );
		tween(view.pannini, 0.0, distance(1.0, 0.75));
		if(panoview.fovmax LE 150, set(view.fovmax, 150); , set(view.fovmax, get(panoview.fovmax)); );
		set(view.stereographic, true);
		set(view.fisheyefovlink, 1.5);
		tween(view.fisheye, 1.0, distance(1.0, 0.75), easeoutquad);
		tween(view.fov, 150, distance(179, 0.75), easeoutquad);
	);
</action>

<action name="setViewNormal">
	stopSetViewTweens();
	setViewNormalComplete();
</action>

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

<action name="stopSetViewTweens">
	stoptween(view.fov);
	stoptween(view.fovmax);
	stoptween(view.vlookat);
	stoptween(view.fisheye);
	stoptween(view.architectural);
	stoptween(view.pannini);
</action>

<action name="setViewArchitectural">
	stopSetViewTweens();
	setViewArchitecturalComplete();
</action>

<action name="setViewArchitecturalComplete">
	tween(view.fovmax, get(panoview.fovmax), distance(179, 1.00), easeoutquad);
	tween(view.architectural, 1.0, distance(1.0, 0.45), easeoutquad, 
		tween(view.pannini, 0.0, distance(1.0, 0.45));
		tween(view.fisheye, 0.0, distance(1.0, 0.45), easeoutquad, 
			set(view.fisheyefovlink, 0.5);
			set(view.stereographic,false);
			tween(view.vlookat, get(panoview.v), 1.25);
			if(panoview.fov LE view.fov, tween(view.fov, get(panoview.fov), distance(50, 0.45)); );
		);
	);
</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>


<action name="setViewFisheye">
	set(sceneisfull360, false);
	if(scene[get(xml.scene)].full360,
		sub(viewhfov, view.hlookatmax, view.hlookatmin);
		if (viewhfov == 360,
			sub(viewvfov, view.vlookatmax, view.vlookatmin);
			if (viewvfov == 180,
				set(sceneisfull360, true);
			);
		);
	);
	if (sceneisfull360 AND (device.webgl OR device.flash),
		stopSetViewTweens();
		setViewFisheyeComplete();
	);
</action>

<action name="setViewFisheyeComplete">
	tween(view.architectural, 0.0, distance(1.0, 0.30), easeoutquad, 
		tween(view.fisheye, 0.0, distance(1.0, 0.30), easeoutquad,
			set(view.stereographic,false);
			tween(view.pannini, 0.0, distance(1.0, 0.75));
			tween(view.fovmax, 179, 0.5);
			set(view.fisheyefovlink, 1.5);
			if(panoview.fov LE view.fov, tween(view.fov, get(panoview.fov), distance(50, 0.45)); );
			tween(view.fisheye, 0.40, distance(1.0, 0.75));
			tween(view.vlookat, get(panoview.v), 1.25);
		);
	);
</action>

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

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

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

</krpano>