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

  
  <!-- Spot Style - Default Polygon Spot Style -->
  <style name="PolygonDefaultPolygonSpotStyle"
           subdiv="true"
           visible="false"
           bordercolor="0xffffff"
           fillcolor="0x37de1a"
           borderwidth="1"
           borderalpha="1"
           fillalpha="0.80000000000000004"
           capture="false"
           onhover="onhoverPolygonDefaultPolygonSpotStyle"
           onover="onoverPolygonDefaultPolygonSpotStyle"
           onout="onoutPolygonDefaultPolygonSpotStyle"
           />
  <action name="onhoverPolygonDefaultPolygonSpotStyle">
    showTooltip('hotspot');
  </action>

  <action name="onoverPolygonDefaultPolygonSpotStyle">
    set(bordercolor, 0xffffff);
    set(fillcolor, 0x37de1a);
    set(borderalpha, 1);
    set(fillalpha, 0.59999999999999998);
    set(borderwidth, 4);pauseautorotation(forcehotspot);

  </action>

  <action name="onoutPolygonDefaultPolygonSpotStyle">

    set(bordercolor, 0xffffff);
    set(fillcolor, 0x37de1a);
    set(borderalpha, 1);
    set(fillalpha, 0.80000000000000004);

    set(borderwidth, 1);
    hideTooltip();resumeautorotation(forcehotspot);

  </action>



    
  <!-- Spot Style - GNC Court -->


  <style name="IconGNCCourt"
         url="%FIRSTXML%/spots/gnc_picto_short_user_defaultpoint81.png"
         visible="false"
         edge="center"
         onhover="onhoverIconGNCCourt"
         onover="onoverIconGNCCourt"
         onout="onoutIconGNCCourt"

         height="180"
         width="180"
         />
  <action name="onhoverIconGNCCourt">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconGNCCourt">


pauseautorotation(forcehotspot);

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


resumeautorotation(forcehotspot);

  </action>



<!-- ********** -->
<!-- Barre de contrôle classique -->
<!-- id : controlBar_classic -->
<!-- ********** -->

  <krpano controlBar_classicbarbuilt="false" controlBar_classicbackgroundwidthwhenclosed="0" controlBar_classicbackgroundwidthwhenopened="0" controlBar_classicIsOpened="false" />
  <events name="controlBar_classicevents" 
    onxmlcomplete="controlBar_classicbuildMenuBar();" 


    keep="true" />



  <action name="controlBar_classicbuildMenuBar">
    ifnot (controlBar_classicbarbuilt, controlBar_classicbuildMenu(); set(controlBar_classicbarbuilt, true););
  </action>

  <action name="controlBar_classicbuildMenu">
    
    set(controlBar_classicbutton_pos, 20);



    if (device.fullscreensupport,
      set(layer[controlBar_classicbtn_openfs ].x, get(controlBar_classicbutton_pos));
      set(layer[controlBar_classicbtn_closefs].x, get(controlBar_classicbutton_pos));
      inc(controlBar_classicbutton_pos, 36);
    );









    set(layer[controlBar_classicbtn_home].x, get(controlBar_classicbutton_pos));
    set(layer[controlBar_classicbtn_home].x, get(controlBar_classicbutton_pos));
    inc(controlBar_classicbutton_pos, 36);



    inc(controlBar_classicbutton_pos, 20);

    set(controlBar_classicbackgroundwidthwhenopened, get(controlBar_classicbutton_pos));



    
    add(controlBar_classicVerifyVisibility, 20, 20);
    if(controlBar_classicbackgroundwidthwhenopened == controlBar_classicVerifyVisibility,
      set(controlBar_classicbackgroundwidthwhenopened, 0);


    );

	
	
  </action>

	<events name="controlBar_classicStartTourEvents" onTourStart="controlBar_classicCallOnStartTour();" keep="true" />

	<action name="controlBar_classicCallOnStartTour">
		
		set(layer[controlBar_classicmenu_controlbar_bg_img].width, get(controlBar_classicbutton_pos));
		set(layer[controlBar_classicmenu_controlbar_bg].width, get(controlBar_classicbutton_pos));
		controlBar_classicshowMenuControls();
	</action>



  <style name="controlBar_classic_btn_style"
         keep="true"
         alpha="0.8"
         edge="right" align="right"
         width="36" height="36"
         zorder="3"
         onover="controlBar_classicctrlbaronoveraction();"
         onout="controlBar_classicctrlbaronoutaction();"
         onhover="showTooltip('plugin', controlBar_classicmenuTooltipStyle, bottom);"
         />
  <action name="controlBar_classicctrlbaronoveraction">
    tween(alpha,1,0.1,easeoutquad);
    tween(y,-2,0.1,easeoutquad);
  </action>  
  <action name="controlBar_classicctrlbaronoutaction">
    tween(alpha,0.8);
    tween(y,0,0.1,easeoutquad);
    hideTooltip();
  </action>

  <layer name="controlBar_classicmenu_controlbar_bg_img"
         keep="true"
         align="bottom"
         x="0" y="10"
         url="%FIRSTXML%/graphics/classiccontrolbar/footer.png"
         zorder="1"
         width="40"
         height="40"
         scale9grid="10|10|80|80"
         visible="false"
         />
  <layer name="controlBar_classicmenu_controlbar_bg"
         keep="true"
         align="bottom"
         x="0" y="10"
         type="container"
         zorder="2"
         width="40"
         height="40"
         visible="false"
         alpha="1.0"
         >



    <layer name="controlBar_classicbtn_home"
           url="%FIRSTXML%/graphics/classiccontrolbar/btn_home.png"
           onclick="controlBar_classicbtn_home_action();"
           style="controlBar_classic_btn_style"
           tooltip="controlBar_classichomeTip"
           visible="false"
           />




    <layer name="controlBar_classicbtn_openfs"
            url="%FIRSTXML%/graphics/classiccontrolbar/btn_enter_fs.png"
            onclick="enterFullscreen();
"
            style="controlBar_classic_btn_style"
            devices="fullscreensupport"
            visible="false"
            tooltip="controlBar_classicopenFsTip"
            />
    <layer name="controlBar_classicbtn_closefs"
            url="%FIRSTXML%/graphics/classiccontrolbar/btn_close_fs.png"
            onclick="exitFullscreen();
"
            style="controlBar_classic_btn_style"
            visible="false"
            devices="fullscreensupport"
            tooltip="controlBar_classiccloseFsTip"
            />





  </layer>





  <action name="controlBar_classichideMenuControls">
    set(controlBar_classicIsOpened, false);
    controlBar_classicupdateFullscreenButtons();




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






    if(controlBar_classicbackgroundwidthwhenclosed == 0,
      set(layer[controlBar_classicmenu_controlbar_bg_img].visible, false);
      set(layer[controlBar_classicmenu_controlbar_bg].visible, false);
    ,
      set(layer[controlBar_classicmenu_controlbar_bg_img].visible, true);
      set(layer[controlBar_classicmenu_controlbar_bg].visible, true);
    );
    tween(layer[controlBar_classicmenu_controlbar_bg_img].width,get(controlBar_classicbackgroundwidthwhenclosed),0.5,easeOutQuad);
    tween(layer[controlBar_classicmenu_controlbar_bg].width,get(controlBar_classicbackgroundwidthwhenclosed),0.5,easeOutQuad);
    tween(layer[controlBar_classicmenu_controlbar_bg_img].alpha,1.0,0.5,easeOutQuad);
  </action>
  <action name="controlBar_classicshowMenuControls">
    set(controlBar_classicIsOpened, true);
    if(controlBar_classicbackgroundwidthwhenopened == 0,
      set(layer[controlBar_classicmenu_controlbar_bg_img].visible, false);
      set(layer[controlBar_classicmenu_controlbar_bg].visible, false);
    ,
      set(layer[controlBar_classicmenu_controlbar_bg_img].visible, true);
      set(layer[controlBar_classicmenu_controlbar_bg].visible, true);
    );
    tween(layer[controlBar_classicmenu_controlbar_bg_img].alpha,1.0,0.5,easeOutQuad);
    controlBar_classicshowMenuButtons();


      tween(layer[controlBar_classicmenu_controlbar_bg_img].width, get(controlBar_classicbackgroundwidthwhenopened),0.5,easeOutQuad);
      tween(layer[controlBar_classicmenu_controlbar_bg].width, get(controlBar_classicbackgroundwidthwhenopened),0.5,easeOutQuad);


  </action>
  <action name="controlBar_classicshowMenuButtons">
    set(layer[controlBar_classicbtn_home].visible, true);






    controlBar_classicupdateFullscreenButtons();




  </action>



	<events name="controlBar_classicmenufullscreenchangeevent"
		onenterfullscreen="controlBar_classicupdateFullscreenButtons();"
		onexitfullscreen="controlBar_classicupdateFullscreenButtons();"
		keep="true"/>
	<action name="controlBar_classicHideFullscreenButtons">
		set(layer[controlBar_classicbtn_openfs].visible , false);
		set(layer[controlBar_classicbtn_closefs].visible, false);
	</action>
	<action name="controlBar_classicShowFullscreenButtons">
		if (device.fullscreensupport,
			if(tour_fullscreen,
				set(layer[controlBar_classicbtn_openfs].visible , false);
				set(layer[controlBar_classicbtn_closefs].visible, true);
			,
				set(layer[controlBar_classicbtn_openfs].visible ,true);
				set(layer[controlBar_classicbtn_closefs].visible,false);
			);
		,
			controlBar_classicHideFullscreenButtons();
		);
	</action>
	<action name="controlBar_classicupdateFullscreenButtons">
		if (controlBar_classicIsOpened,
			controlBar_classicShowFullscreenButtons();
		,
			controlBar_classicHideFullscreenButtons();
		);
	</action>



    <action name="controlBar_classicbtn_home_action">
      mainloadscene(pano121);
    </action>

<layer name="controlBar_classicmenuTooltipStyle"
	keep="true"
	enabled="false"
	capture="false"
	type="text"
	align="center"
	bg="false"
	bgborder="0"
	txtshadow="1.0 1.0 4.0 0x000000 1"
	css="color:#e6e6e6;font-family:Helvetica;font-weight:bold;font-size:14px;text-align:left;"
	interactivecontent="false"
	zorder="0"
	visible="false"
	html=""
	padding="2"
	xoffset="0"
	yoffset="0"
	edge="bottom"
	/>



<!-- ********** -->
<!-- Titre -->
<!-- id : title -->
<!-- ********** -->

  <events name="title_events" 
    onTourStart="showtitle();"
    hidetourcontrols="hidetitle();" 
    showtourcontrols="showtitle();" 
    onnewpano="updatetitle();"
    changetourlanguage="changeLanguagetitle"
    keep="true" />

  <action name="hidetitle">set(layer[title].visible, false);</action>
  <action name="showtitle">set(layer[title].visible, true );</action>

  <action name="changeLanguagetitle">
    updatetitle();
  </action>

  <action name="updatetitle">
    getmessage(layer[title].html, get(scene[get(xml.scene)].titleid));
    escape(layer[title].html);
  </action>
  <layer name="title" keep="true" zorder="4"
         type="text"
         align="top" x="0" y="0"
         bg="false"
         bgborder="0"
         alpha="1"
         visible="false"
         capture="false" handcursor="false" enabled="false"
         interactivecontent="false" 
         txtshadow="1.0 1.0 4.0 0x000000 1.0"
         css="text-align:center;
              color:#ffffff;
              font-family:Arial;
              font-weight:bold;
              font-size:16px;"/>

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


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

         url="%FIRSTXML%/graphics/logo/logo_version_ph-ok.png" 
         handcursor="false"

         height="50"
         width="200"

         />

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





<!-- ********** -->
<!-- Liste des Panoramas -->
<!-- id : panoramalist -->
<!-- ********** -->


<style name="panoramaliststyleselectedpanorama" 
    css="
text-align:left;
color:#000000;
font-family:Arial;
font-weight:bold;
font-size:16px;"
  />

  <style name="panoramaliststyleitempanoramacolor"
         height="26"
         type="text"
         alpha="1"
         textshadow="1.0 1.0 4.0 0x000000 1.0"
         css="
              text-align:left;
              color:#ffffff;
              font-family:Arial;
              font-weight:bold;
              font-size:16px;
             " />

  <style name="panoramaliststyleitempanorama"
         align="topleft"
         interactivecontent="false"
         bg="false"
         handcursor="true"
         x="0"

         width="100%"

  />

  <layer keep="true"
         name="panoramalistbg"
         type="image"
         url="%FIRSTXML%/graphics/panoramalisttext/background.png"
         scale9grid="10|10|80|80"
         zorder="6"
         visible="false"
         width="170"

         height="182"

         align="topleft"
         x="5" y="75"
         >

    <layer name="panoramalistpanopano121"
           style="panoramaliststyleitempanorama|panoramaliststyleitempanoramacolor"
           onloaded="getmessage(html, pano121_title);escape(html);"  
           onclick="mainloadscene(pano121);" 
           y="0"/>
    <layer name="panoramalistpanopano122"
           style="panoramaliststyleitempanorama|panoramaliststyleitempanoramacolor"
           onloaded="getmessage(html, pano122_title);escape(html);"  
           onclick="mainloadscene(pano122);" 
           y="26"/>
    <layer name="panoramalistpanopano125"
           style="panoramaliststyleitempanorama|panoramaliststyleitempanoramacolor"
           onloaded="getmessage(html, pano125_title);escape(html);"  
           onclick="mainloadscene(pano125);" 
           y="52"/>
    <layer name="panoramalistpanopano123"
           style="panoramaliststyleitempanorama|panoramaliststyleitempanoramacolor"
           onloaded="getmessage(html, pano123_title);escape(html);"  
           onclick="mainloadscene(pano123);" 
           y="78"/>
    <layer name="panoramalistpanopano124"
           style="panoramaliststyleitempanorama|panoramaliststyleitempanoramacolor"
           onloaded="getmessage(html, pano124_title);escape(html);"  
           onclick="mainloadscene(pano124);" 
           y="104"/>
    <layer name="panoramalistpanopano126"
           style="panoramaliststyleitempanorama|panoramaliststyleitempanoramacolor"
           onloaded="getmessage(html, pano126_title);escape(html);"  
           onclick="mainloadscene(pano126);" 
           y="130"/>
    <layer name="panoramalistpanopano127"
           style="panoramaliststyleitempanorama|panoramaliststyleitempanoramacolor"
           onloaded="getmessage(html, pano127_title);escape(html);"  
           onclick="mainloadscene(pano127);" 
           y="156"/>

  </layer>






  <action name="panoramalistUpdateLanguage">
    if(layer[panoramalistpanopano121],
      getmessage(panoHtml, pano121_title);escape(get(panoHtml));
      set(layer[panoramalistpanopano121].html, get(panoHtml));
    );
    if(layer[panoramalistpanopano122],
      getmessage(panoHtml, pano122_title);escape(get(panoHtml));
      set(layer[panoramalistpanopano122].html, get(panoHtml));
    );
    if(layer[panoramalistpanopano125],
      getmessage(panoHtml, pano125_title);escape(get(panoHtml));
      set(layer[panoramalistpanopano125].html, get(panoHtml));
    );
    if(layer[panoramalistpanopano123],
      getmessage(panoHtml, pano123_title);escape(get(panoHtml));
      set(layer[panoramalistpanopano123].html, get(panoHtml));
    );
    if(layer[panoramalistpanopano124],
      getmessage(panoHtml, pano124_title);escape(get(panoHtml));
      set(layer[panoramalistpanopano124].html, get(panoHtml));
    );
    if(layer[panoramalistpanopano126],
      getmessage(panoHtml, pano126_title);escape(get(panoHtml));
      set(layer[panoramalistpanopano126].html, get(panoHtml));
    );
    if(layer[panoramalistpanopano127],
      getmessage(panoHtml, pano127_title);escape(get(panoHtml));
      set(layer[panoramalistpanopano127].html, get(panoHtml));
    ); 
  </action>

  <events name="panoramalistevents" 
    onTourStart="showpanoramalist();"
    hidetourcontrols="hidepanoramalist();"
    showtourcontrols="showpanoramalist();"
    onnewpano="selectItempanoramalist();"
    changetourlanguage="panoramalistUpdateLanguage();"
    keep="true"/>

<action name="selectItempanoramalist">
	
	for(set(ipanoramalist,0), ipanoramalist LT layer.count, inc(ipanoramalist),
		if(layer[get(ipanoramalist)].parent == panoramalistbg,
			
			if(layer[get(ipanoramalist)].style == "panoramaliststyleitempanorama|panoramaliststyleitempanoramacolor",
				txtadd(currentLayerNamepanoramalist, panoramalist, pano, get(xml.scene));
			);
			
			if(layer[get(ipanoramalist)].name == currentLayerNamepanoramalist,
				if(layer[get(ipanoramalist)].style == "panoramaliststyleitemgroup|panoramaliststyleitemgroupcolor",
					set(layer[get(ipanoramalist)].css, get(style[panoramaliststyleselectedgroup].css));
				,
					set(layer[get(ipanoramalist)].css, get(style[panoramaliststyleselectedpanorama].css));
				);
			,
				
				indexoftxt(dest, layer[get(ipanoramalist)].name, group);
				if(dest LT 0,
					
					if(layer[get(ipanoramalist)].style == "panoramaliststyleitemgroup|panoramaliststyleitemgroupcolor",
						set(layer[get(ipanoramalist)].css, get(style[panoramaliststyleitemgroupcolor].css));
					,
						set(layer[get(ipanoramalist)].css, get(style[panoramaliststyleitempanoramacolor].css));
						set(layer[get(ipanoramalist)].txtshadow, '1.0 1.0 4.0 0x000000 1.0');
					);
				);
			);
			delete(currentLayerNamepanoramalist);
		);
	);
</action>

  <action name="hidepanoramalist">
    set(layer[panoramalistbg].visible, false);
  </action>
  <action name="showpanoramalist">
    set(layer[panoramalistbg].visible, true);
  </action>


  <!-- Fullscreen Management -->
  <action name="exitFullScreen" devices="fullscreensupport">set(tour_fullscreen,false);set(fullscreen,false);</action>
  <action name="enterFullScreen" devices="fullscreensupport">set(tour_fullscreen,true);set(fullscreen,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>

</krpano>