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

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


  <style name="IconDefaultPointSpotStyle"
         url="%FIRSTXML%/spots/indicatorarrow_user_defaultpoint0.png"
         visible="false"
         edge="center"
         onhover="onhoverIconDefaultPointSpotStyle"
         onover="onoverIconDefaultPointSpotStyle"
         onout="onoutIconDefaultPointSpotStyle"


         width="132"
         height="prop"
         />
  <action name="onhoverIconDefaultPointSpotStyle">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconDefaultPointSpotStyle">
tween(scale, 1.2);

pauseautorotation(forcehotspot);

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

resumeautorotation(forcehotspot);

  </action>



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


    
  <!-- Spot Style - Info 1 -->


  <style name="IconInfo1"
         url="%FIRSTXML%/spots/hotspotwd_anchor_user_defaultpoint8.png"
         visible="false"
         edge="center"
         alpha="0.8"
         onhover="onhoverIconInfo1"
         onover="onoverIconInfo1"
         onout="onoutIconInfo1"


         />
  <action name="onhoverIconInfo1">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconInfo1">
tween(scale, 1.2);
tween(alpha, 1);
pauseautorotation(forcehotspot);

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

  </action>



<!-- ********** -->
<!-- Powered by Liberty 360 -->
<!-- id : logo1 -->
<!-- ********** -->





<!-- ********** -->
<!-- Previous/Next Keys -->
<!-- id : prevNextKeys -->
<!-- ********** -->


<events name="prevNextKeysEvents" 
	keep="true" 
	onkeyup="if(keycode == 33,loadPreviousGroup();
,if(keycode == 34,loadNextGroup();
););" 
	/>

  <!-- Tour Information -->
  <action name="hideTourInfo">set(tour_displayinfo, false);events.dispatch(onhidetourinfo);</action>
  <action name="showTourInfo">set(tour_displayinfo, true); events.dispatch(onshowtourinfo);</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>

  <!-- Load Previous Group -->
  <action name="loadPreviousGroup">
    if (scene[get(xml.scene)].group !== null,
      copy(currentgroup, scene[get(xml.scene)].group);
      copy(groupprevnexti, panoramagroup[get(currentgroup)].index);
      dec(groupprevnexti);
      if (groupprevnexti LT 0, sub(groupprevnexti, panoramagroup.count, 1););
      mainloadscene(get(panoramagroup[get(groupprevnexti)].mainscene));
    );
  </action>

  <!-- Load Next Group -->
  <action name="loadNextGroup">
    if (scene[get(xml.scene)].group !== null,
      copy(currentgroup, scene[get(xml.scene)].group);
      copy(groupprevnexti, panoramagroup[get(currentgroup)].index);
      inc(groupprevnexti);
      if (groupprevnexti GE panoramagroup.count, set(groupprevnexti, 0););
      mainloadscene(get(panoramagroup[get(groupprevnexti)].mainscene));
    );
  </action>
<action name="setViewNormal">
	stopSetViewTweens();
	if(current_view_isflat === true,
		setViewNonFlat(VFOV);
	);
	setViewNormalComplete();
</action>

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

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

</krpano>