<?xml version="1.0" encoding="UTF-8"?>
<krpano version="1.19-pr16">

  <!-- unsupported kind of display : PointMap -->


    
  <!-- Spot Style - Panorama Centre -->


  <style name="IconPanoramaCentre"
         url="%FIRSTXML%/spots/central_user_defaultpoint1.png"
         visible="false"
         edge="bottom" ox="0" oy="0"
         alpha="0.8"
         onhover="onhoverIconPanoramaCentre"
         onover="onoverIconPanoramaCentre"
         onout="onoutIconPanoramaCentre"

         height="100"
         width="50"
         />
  <action name="onhoverIconPanoramaCentre">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconPanoramaCentre">

tween(alpha, 1);

  </action>
  <action name="onoutIconPanoramaCentre">
    hideTooltip();

    tween(alpha, 0.8);

  </action>



    
  <!-- Spot Style - Panorama NORDOUEST -->


  <style name="IconPanoramaNORDOUEST"
         url="%FIRSTXML%/spots/nord_ouest_user_defaultpoint2.png"
         visible="false"
         edge="bottom" ox="0" oy="0"
         alpha="0.8"
         onhover="onhoverIconPanoramaNORDOUEST"
         onover="onoverIconPanoramaNORDOUEST"
         onout="onoutIconPanoramaNORDOUEST"

         height="100"
         width="50"
         />
  <action name="onhoverIconPanoramaNORDOUEST">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconPanoramaNORDOUEST">

tween(alpha, 1);

  </action>
  <action name="onoutIconPanoramaNORDOUEST">
    hideTooltip();

    tween(alpha, 0.8);

  </action>



    
  <!-- Spot Style - Panorama SUDOuest -->


  <style name="IconPanoramaSUDOuest"
         url="%FIRSTXML%/spots/sud_ouest_user_defaultpoint3.png"
         visible="false"
         edge="bottom" ox="0" oy="0"
         alpha="0.8"
         onhover="onhoverIconPanoramaSUDOuest"
         onover="onoverIconPanoramaSUDOuest"
         onout="onoutIconPanoramaSUDOuest"

         height="100"
         width="50"
         />
  <action name="onhoverIconPanoramaSUDOuest">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconPanoramaSUDOuest">

tween(alpha, 1);

  </action>
  <action name="onoutIconPanoramaSUDOuest">
    hideTooltip();

    tween(alpha, 0.8);

  </action>



    
  <!-- Spot Style - Panorama Sudest -->


  <style name="IconPanoramaSudest"
         url="%FIRSTXML%/spots/sud_est_user_defaultpoint4.png"
         visible="false"
         edge="bottom" ox="0" oy="0"
         alpha="0.8"
         onhover="onhoverIconPanoramaSudest"
         onover="onoverIconPanoramaSudest"
         onout="onoutIconPanoramaSudest"

         height="100"
         width="50"
         />
  <action name="onhoverIconPanoramaSudest">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconPanoramaSudest">

tween(alpha, 1);

  </action>
  <action name="onoutIconPanoramaSudest">
    hideTooltip();

    tween(alpha, 0.8);

  </action>



    
  <!-- Spot Style - Panorama Nordest -->


  <style name="IconPanoramaNordest"
         url="%FIRSTXML%/spots/nord_est_user_defaultpoint5.png"
         visible="false"
         edge="bottom" ox="0" oy="0"
         alpha="0.8"
         onhover="onhoverIconPanoramaNordest"
         onover="onoverIconPanoramaNordest"
         onout="onoutIconPanoramaNordest"

         height="100"
         width="50"
         />
  <action name="onhoverIconPanoramaNordest">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconPanoramaNordest">

tween(alpha, 1);

  </action>
  <action name="onoutIconPanoramaNordest">
    hideTooltip();

    tween(alpha, 0.8);

  </action>



<!-- ********** -->
<!-- Logo CEN -->
<!-- id : logo -->
<!-- ********** -->





<!-- ********** -->
<!-- Logo airscanner -->
<!-- id : logo1 -->
<!-- ********** -->





<!-- ********** -->
<!-- Logo Glisy -->
<!-- id : logo2 -->
<!-- ********** -->





  <!-- 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="viewControlMoveUp">
	if(%1,
		if(%2,
			set(isfullvertical, false);
			ifnot(scene[get(xml.scene)].planar,
				sub(viewvfov, panoview.vmax, panoview.vmin);
				if (viewvfov == 180,
					set(isfullvertical, true);
				);
			);
			if(isfullvertical == false AND calc(view.vlookat-%2) LT view.vlookatmin,
				moveto(get(view.hlookat), get(view.vlookatmin));
			,
				moveto(get(view.hlookat), calc(view.vlookat-%2));
			);
		,
			set(vlookat_moveforce, -1);
			delayedcall(0.1, viewControlMoveVertStop());
		);
	,
		set(vlookat_moveforce, -1);
	);
</action>
<action name="viewControlMoveDown">
	if(%1,
		if(%2,
			set(isfullvertical, false);
			ifnot(scene[get(xml.scene)].planar,
				sub(viewvfov, panoview.vmax, panoview.vmin);
				if (viewvfov == 180,
					set(isfullvertical, true);
				);
			);
			if(sceneisfull360 == false AND calc(view.vlookat+%2) GT view.vlookatmax,
				moveto(get(view.hlookat), get(view.vlookatmax));
			,
				moveto(get(view.hlookat), calc(view.vlookat+%2));
			);
		,
			set(vlookat_moveforce, +1);
			delayedcall(0.1, viewControlMoveVertStop());
		);
	,
		set(vlookat_moveforce, +1);
	);
</action>
<action name="viewControlMoveLeft">
	if(%1,
		if(%2,
			set(isfullhorizontal, false);
			ifnot(scene[get(xml.scene)].planar,
				sub(viewhfov, panoview.hmax, panoview.hmin);
				if (viewhfov == 360,
					set(isfullhorizontal, true);
				);
			);
			if(isfullhorizontal == false AND calc(view.hlookat-%2) LT view.hlookatmin,
				moveto(get(view.hlookatmin), get(view.vlookat));
			,
				moveto(calc(view.hlookat-%2), get(view.vlookat));
			);
		,
			set(hlookat_moveforce, -1);
			delayedcall(0.1, viewControlMoveHoriStop());
		);
	,
		set(hlookat_moveforce, -1);
	);
</action>
<action name="viewControlMoveRight">
	if(%1,
		if(%2,
			set(isfullhorizontal, false);
			ifnot(scene[get(xml.scene)].planar,
				sub(viewhfov, panoview.hmax, panoview.hmin);
				if (viewhfov == 360,
					set(isfullhorizontal, true);
				);
			);
			if(isfullhorizontal == false AND calc(view.hlookat+%2) GT view.hlookatmax,
				moveto(get(view.hlookatmax), get(view.vlookat));
			,
				moveto(calc(view.hlookat+%2), get(view.vlookat));
			);
		,
			set(hlookat_moveforce, +1);
			delayedcall(0.1, viewControlMoveHoriStop());
			
		);
	,
		set(hlookat_moveforce, +1);
	);
</action>
<action name="viewControlMoveHoriStop">
	set(hlookat_moveforce, 0);
</action>
<action name="viewControlMoveVertStop">
	set(vlookat_moveforce, 0);
</action>

<action name="viewControlZoomIn">
	if(%1,
		if(%2,
			if(%2 LT view.fovmin,
				zoomto(get(view.fovmin));
			,
				if(%2 LT view.fov,
					zoomto(%2);
				);
			);
		,
			set(fov_moveforce, -1);
			delayedcall(0.1, viewControlZoomStop());
		);
	,
		set(fov_moveforce, -1);
	);
</action>
<action name="viewControlZoomOut">
	if(%1,
		if(%2,
			if(%2 GT view.fovmax,
				zoomto(get(view.fovmax));
			,
				if(%2 GT view.fov,
					zoomto(%2);
				);
			);
		,
			set(fov_moveforce, +1);
			delayedcall(0.1, viewControlZoomStop());
		);
	,
		set(fov_moveforce, +1);
	);
</action>
<action name="viewControlZoomStop">
	set(fov_moveforce, 0);
</action>

  <action name="enableGyroscope">
    changeGyroscopeState(true);
  </action>
  <action name="disableGyroscope">
    changeGyroscopeState(false);
  </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>