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

    
  <!-- Spot Style - Zoom1 -->


  <style name="IconZoom1"
         url="%FIRSTXML%/spots/hotspot_neutral_user_defaultpoint0.png"
         visible="false"
         edge="center"
         onhover="onhoverIconZoom1"
         onout="onoutIconZoom1"


         />
  <action name="onhoverIconZoom1">
    showtooltip('hotspot');
  </action>
  <action name="onoutIconZoom1">
    hideTooltip();



  </action>



    
  <!-- Spot Style - Info -->


  <style name="IconInfo"
         url="%FIRSTXML%/spots/info_user_defaultpoint2.png"
         visible="false"
         edge="center"
         alpha="0.8"
         onhover="onhoverIconInfo"
         onover="onoverIconInfo"
         onout="onoutIconInfo"

         height="60"
         width="60"
         />
  <action name="onhoverIconInfo">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconInfo">
tween(scale, 1.2);
tween(alpha, 1);

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

  </action>



    
  <!-- Spot Style - Zoom2 -->


  <style name="IconZoom2"
         url="%FIRSTXML%/spots/hotspot_neutral_user_defaultpoint4.png"
         visible="false"
         edge="center"
         onhover="onhoverIconZoom2"
         onout="onoutIconZoom2"


         />
  <action name="onhoverIconZoom2">
    showtooltip('hotspot');
  </action>
  <action name="onoutIconZoom2">
    hideTooltip();



  </action>



    
  <!-- Spot Style - Zoom3 -->


  <style name="IconZoom3"
         url="%FIRSTXML%/spots/hotspot_neutral_user_defaultpoint5.png"
         visible="false"
         edge="center"
         onhover="onhoverIconZoom3"
         onout="onoutIconZoom3"


         />
  <action name="onhoverIconZoom3">
    showtooltip('hotspot');
  </action>
  <action name="onoutIconZoom3">
    hideTooltip();



  </action>



    
  <!-- Spot Style - Zoom4 -->


  <style name="IconZoom4"
         url="%FIRSTXML%/spots/hotspot_neutral_user_defaultpoint6.png"
         visible="false"
         edge="center"
         onhover="onhoverIconZoom4"
         onout="onoutIconZoom4"


         />
  <action name="onhoverIconZoom4">
    showtooltip('hotspot');
  </action>
  <action name="onoutIconZoom4">
    hideTooltip();



  </action>



    
  <!-- Spot Style - Zoom3b -->


  <style name="IconZoom3b"
         url="%FIRSTXML%/spots/hotspot_neutral_user_defaultpoint7.png"
         visible="false"
         edge="center"
         onhover="onhoverIconZoom3b"
         onout="onoutIconZoom3b"


         />
  <action name="onhoverIconZoom3b">
    showtooltip('hotspot');
  </action>
  <action name="onoutIconZoom3b">
    hideTooltip();



  </action>



    
  <!-- Spot Style - Zoom3a -->


  <style name="IconZoom3a"
         url="%FIRSTXML%/spots/hotspot_neutral_user_defaultpoint11.png"
         visible="false"
         edge="center"
         onhover="onhoverIconZoom3a"
         onout="onoutIconZoom3a"


         />
  <action name="onhoverIconZoom3a">
    showtooltip('hotspot');
  </action>
  <action name="onoutIconZoom3a">
    hideTooltip();



  </action>



    
  <!-- Spot Style - Zoom5 -->


  <style name="IconZoom5"
         url="%FIRSTXML%/spots/hotspot_neutral_user_defaultpoint12.png"
         visible="false"
         edge="center"
         onhover="onhoverIconZoom5"
         onout="onoutIconZoom5"


         />
  <action name="onhoverIconZoom5">
    showtooltip('hotspot');
  </action>
  <action name="onoutIconZoom5">
    hideTooltip();



  </action>



    
  <!-- Spot Style - Zoom6 -->


  <style name="IconZoom6"
         url="%FIRSTXML%/spots/hotspot_neutral_user_defaultpoint13.png"
         visible="false"
         edge="center"
         onhover="onhoverIconZoom6"
         onout="onoutIconZoom6"


         />
  <action name="onhoverIconZoom6">
    showtooltip('hotspot');
  </action>
  <action name="onoutIconZoom6">
    hideTooltip();



  </action>



<!-- ********** -->
<!-- Transition de chargement -->
<!-- id : blendmode -->
<!-- ********** -->
	<action name="blendmode_prepareblendmode" autorun="preinit">

			set(ptblendmode, 'BLEND(0.080000000000000002, easeInCubic)');

	</action>
 <!-- ********** --> <!-- 360Images CoOL Hotspots Plugin --> <!-- CoOL Hotspots1 --> <!-- id : cool_hotspot --> <!-- ********** -->    <include url="%FIRSTXML%/graphics/coolhotspots.xml"/>   <style 	cooltype="bubble" 	name="Zoom1" 	type="container"  	width="50"  	height="50"  	bgalpha="0" 	bgcapture="true"   	accuracy="1" 	bubble_width="50"  	bubble_width_onover="150" 	alwayson="false" 	ttalign="top" 	ttedge="bottom" 	 	onover=" 	hidebbhs(); 	set(zorder,20); 	tween(width|height,get(bubble_width_onover)); 	tween(layer[get(mybubble)].width,get(bubble_width_onover)); 	tween(layer[get(mybubble)].height,get(bubble_width_onover)); 	tween(layer[get(mybubble_shadow)].width,get(bubble_width_onover)); 	tween(layer[get(mybubble_shadow)].height,get(bubble_width_onover)); 	tween(layer[get(mypreview)].alpha,1); 	set(layer[get(mypreview)].enabled,true); 	"     	onout=" 	set(zorder,2);  	tween(width|height,get(bubble_width)); 	tween(layer[get(mybubble)].width,get(bubble_width)); 	tween(layer[get(mybubble)].height,get(bubble_width)); 	tween(layer[get(mybubble_shadow)].width,get(bubble_width)); 	tween(layer[get(mybubble_shadow)].height,get(bubble_width)); 	ifnot(alwayson,tween(layer[get(mypreview)].alpha,0));  	set(layer[get(mypreview)].enabled,false);  	"   	ondown.touch="onover();" 	 	onloaded=" 	txtadd(hotspot[get(name)].permanentTooltipForSpot, get(tooltip), '_permanent'); 	delayedcall(0.1, 	if(layer[get(permanentTooltipForSpot)].html, 		set(layer[get(permanentTooltipForSpot)].ox,0); 		set(layer[get(permanentTooltipForSpot)].oy,-10); 		); 	); 	 	txtadd(mybubble,'bubble',get(name)); 	addlayer(get(mybubble)); 	copy(hotspot[get(name)].mybubble,mybubble); 	layer[get(mybubble)].loadstyle(cool_hotspotbubblelayer); 	txtadd(mybubble_shadow,'bubble_shadow',get(name)); 	addlayer(get(mybubble_shadow)); 	copy(hotspot[get(name)].mybubble_shadow,mybubble_shadow); 	layer[get(mybubble_shadow)].loadstyle(cool_hotspotbubblelayer_shadow); 			 	txtadd(mypreview,'preview_',get(name)); 	addlayer(get(mypreview)); 	copy(hotspot[get(name)].mypreview,mypreview); 	 	 		 		          set(layer[get(mypreview)].url,%FIRSTXML%/graphics/360imageshotspots/_1.png);  		 	 	 	layer[get(mypreview)].loadstyle(cool_hotspotbubble_previewlayer); 	 	txtadd(parentlayer,'hotspot[',get(name),']'); 	copy(layer[get(mybubble)].parent,parentlayer); 	copy(layer[get(mybubble_shadow)].parent,parentlayer); 		 	txtadd(parentlayer2,'layer[',get(mybubble),']'); 	copy(layer[get(mypreview)].parent,parentlayer2); 		 	txtadd(clickaction,'callwith(hotspot[',get(name),'],onclick)'); 	copy(layer[get(mypreview)].onclick,clickaction);  	" /> <style  	name="cool_hotspotbubblelayer"  	type="container"  	width="50"  	height="50"  	bgalpha="0"  	bgborder="3 0xcd312b 1"  	bgroundedge="150"   	bgcapture="true"  	maskchildren="true"  	accuracy="1"  	ondown.touch="callwith(get(parent),onover);"  	align="center" 	 /> <style  	name="cool_hotspotbubblelayer_shadow"  	type="container"  	width="50"  	height="50"  	bgalpha="0"  	bgborder="0 0xcd312b 0"  	bgroundedge="150"   	bgcapture="false"  	accuracy="1"  	align="center" 	 		bgshadow="5 5 10 0 0x000000 0.5 inset" 	 /> <style  	name="cool_hotspotbubble_previewlayer"  	align="center" 	accuracy="1" 	width="prop"  	height="150"  	alpha="0"  	enabled="false"  	onloaded="if(pixelheight GT pixelwidth,copy(width,height);set(height,prop));" />        <!-- ********** --> <!-- 360Images CoOL Hotspots Plugin --> <!-- CoOL Hotspots2 --> <!-- id : cool_hotspot1 --> <!-- ********** -->     <style 	cooltype="bubble" 	name="Zoom2" 	type="container"  	width="50"  	height="50"  	bgalpha="0" 	bgcapture="true"   	accuracy="1" 	bubble_width="50"  	bubble_width_onover="150" 	alwayson="false" 	ttalign="top" 	ttedge="bottom" 	 	onover=" 	hidebbhs(); 	set(zorder,20); 	tween(width|height,get(bubble_width_onover)); 	tween(layer[get(mybubble)].width,get(bubble_width_onover)); 	tween(layer[get(mybubble)].height,get(bubble_width_onover)); 	tween(layer[get(mybubble_shadow)].width,get(bubble_width_onover)); 	tween(layer[get(mybubble_shadow)].height,get(bubble_width_onover)); 	tween(layer[get(mypreview)].alpha,1); 	set(layer[get(mypreview)].enabled,true); 	"     	onout=" 	set(zorder,2);  	tween(width|height,get(bubble_width)); 	tween(layer[get(mybubble)].width,get(bubble_width)); 	tween(layer[get(mybubble)].height,get(bubble_width)); 	tween(layer[get(mybubble_shadow)].width,get(bubble_width)); 	tween(layer[get(mybubble_shadow)].height,get(bubble_width)); 	ifnot(alwayson,tween(layer[get(mypreview)].alpha,0));  	set(layer[get(mypreview)].enabled,false);  	"   	ondown.touch="onover();" 	 	onloaded=" 	txtadd(hotspot[get(name)].permanentTooltipForSpot, get(tooltip), '_permanent'); 	delayedcall(0.1, 	if(layer[get(permanentTooltipForSpot)].html, 		set(layer[get(permanentTooltipForSpot)].ox,0); 		set(layer[get(permanentTooltipForSpot)].oy,-10); 		); 	); 	 	txtadd(mybubble,'bubble',get(name)); 	addlayer(get(mybubble)); 	copy(hotspot[get(name)].mybubble,mybubble); 	layer[get(mybubble)].loadstyle(cool_hotspot1bubblelayer); 	txtadd(mybubble_shadow,'bubble_shadow',get(name)); 	addlayer(get(mybubble_shadow)); 	copy(hotspot[get(name)].mybubble_shadow,mybubble_shadow); 	layer[get(mybubble_shadow)].loadstyle(cool_hotspot1bubblelayer_shadow); 			 	txtadd(mypreview,'preview_',get(name)); 	addlayer(get(mypreview)); 	copy(hotspot[get(name)].mypreview,mypreview); 	 	 		 		          set(layer[get(mypreview)].url,%FIRSTXML%/graphics/360imageshotspots1/_2.png);  		 	 	 	layer[get(mypreview)].loadstyle(cool_hotspot1bubble_previewlayer); 	 	txtadd(parentlayer,'hotspot[',get(name),']'); 	copy(layer[get(mybubble)].parent,parentlayer); 	copy(layer[get(mybubble_shadow)].parent,parentlayer); 		 	txtadd(parentlayer2,'layer[',get(mybubble),']'); 	copy(layer[get(mypreview)].parent,parentlayer2); 		 	txtadd(clickaction,'callwith(hotspot[',get(name),'],onclick)'); 	copy(layer[get(mypreview)].onclick,clickaction);  	" /> <style  	name="cool_hotspot1bubblelayer"  	type="container"  	width="50"  	height="50"  	bgalpha="0"  	bgborder="3 0xcd312b 1"  	bgroundedge="150"   	bgcapture="true"  	maskchildren="true"  	accuracy="1"  	ondown.touch="callwith(get(parent),onover);"  	align="center" 	 /> <style  	name="cool_hotspot1bubblelayer_shadow"  	type="container"  	width="50"  	height="50"  	bgalpha="0"  	bgborder="0 0xcd312b 0"  	bgroundedge="150"   	bgcapture="false"  	accuracy="1"  	align="center" 	 		bgshadow="5 5 10 0 0x000000 0.5 inset" 	 /> <style  	name="cool_hotspot1bubble_previewlayer"  	align="center" 	accuracy="1" 	width="prop"  	height="150"  	alpha="0"  	enabled="false"  	onloaded="if(pixelheight GT pixelwidth,copy(width,height);set(height,prop));" />       
<!-- ********** -->
<!-- Liste des Panoramas -->
<!-- id : panoramalist -->
<!-- ********** -->

<style name="panoramaliststyleselectedgroup" 
    css="
text-align:left;
color:#cd312b;
font-family:Ubuntu;
font-weight:bold;
font-size:16px;"
  />

  <style name="panoramaliststyleitemgroupcolor"
         height="26"
         type="text"
         alpha="1"
         css="
              text-align:left;
              color:#ffffff;
              font-family:Ubuntu;
              font-weight:bold;
              font-size:16px;
             " />

  <style name="panoramaliststyleitemgroup"
         align="topleft"

         interactivecontent="false"
         bg="false"
         handcursor="true"
  />


  <layer keep="true"
         name="panoramalistbg"
         type="container"
         zorder="4"
         visible="false"

         height="234"

         align="topleft"
         x="60" y="140"
         >

    <layer name="panoramalistgrouppanogroup20" 
           style="panoramaliststyleitemgroup|panoramaliststyleitemgroupcolor" onautosized="panoramalistfixitemwidth(panoramalistgrouppanogroup20)" 
           onclick="mainloadscene(pano10);" 
           y="0" 
           onloaded="getmessage(html, panogroup20_title);escape(html);"/>
    <layer name="panoramalistgrouppanogroup18" 
           style="panoramaliststyleitemgroup|panoramaliststyleitemgroupcolor" onautosized="panoramalistfixitemwidth(panoramalistgrouppanogroup18)" 
           onclick="mainloadscene(pano11);" 
           y="26" 
           onloaded="getmessage(html, panogroup18_title);escape(html);"/>
    <layer name="panoramalistgrouppanogroup19" 
           style="panoramaliststyleitemgroup|panoramaliststyleitemgroupcolor" onautosized="panoramalistfixitemwidth(panoramalistgrouppanogroup19)" 
           onclick="mainloadscene(pano12);" 
           y="52" 
           onloaded="getmessage(html, panogroup19_title);escape(html);"/>
    <layer name="panoramalistgrouppanogroup50" 
           style="panoramaliststyleitemgroup|panoramaliststyleitemgroupcolor" onautosized="panoramalistfixitemwidth(panoramalistgrouppanogroup50)" 
           onclick="mainloadscene(pano37);" 
           y="78" 
           onloaded="getmessage(html, panogroup50_title);escape(html);"/>
    <layer name="panoramalistgrouppanogroup51" 
           style="panoramaliststyleitemgroup|panoramaliststyleitemgroupcolor" onautosized="panoramalistfixitemwidth(panoramalistgrouppanogroup51)" 
           onclick="mainloadscene(pano38);" 
           y="104" 
           onloaded="getmessage(html, panogroup51_title);escape(html);"/>
    <layer name="panoramalistgrouppanogroup52" 
           style="panoramaliststyleitemgroup|panoramaliststyleitemgroupcolor" onautosized="panoramalistfixitemwidth(panoramalistgrouppanogroup52)" 
           onclick="mainloadscene(pano39);" 
           y="130" 
           onloaded="getmessage(html, panogroup52_title);escape(html);"/>
    <layer name="panoramalistgrouppanogroup617" 
           style="panoramaliststyleitemgroup|panoramaliststyleitemgroupcolor" onautosized="panoramalistfixitemwidth(panoramalistgrouppanogroup617)" 
           onclick="mainloadscene(pano612);" 
           y="156" 
           onloaded="getmessage(html, panogroup617_title);escape(html);"/>
    <layer name="panoramalistgrouppanogroup495" 
           style="panoramaliststyleitemgroup|panoramaliststyleitemgroupcolor" onautosized="panoramalistfixitemwidth(panoramalistgrouppanogroup495)" 
           onclick="mainloadscene(pano493);" 
           y="182" 
           onloaded="getmessage(html, panogroup495_title);escape(html);"/>
    <layer name="panoramalistgrouppanogroup496" 
           style="panoramaliststyleitemgroup|panoramaliststyleitemgroupcolor" onautosized="panoramalistfixitemwidth(panoramalistgrouppanogroup496)" 
           onclick="mainloadscene(pano494);" 
           y="208" 
           onloaded="getmessage(html, panogroup496_title);escape(html);"/>

  </layer>



  <krpano panoramalistnbfixwidthcall="0" panoramalistmaxwidth="0"/>
  <action name="panoramalistfixitemwidth">
    inc(panoramalistnbfixwidthcall);
    if (layer[%1].width GT panoramalistmaxwidth,
      copy(panoramalistmaxwidth, layer[%1].width);
    );
    if (panoramalistnbfixwidthcall == 9,
      copy(layer[panoramalistgrouppanogroup20].width, panoramalistmaxwidth);
      copy(layer[panoramalistgrouppanogroup18].width, panoramalistmaxwidth);
      copy(layer[panoramalistgrouppanogroup19].width, panoramalistmaxwidth);
      copy(layer[panoramalistgrouppanogroup50].width, panoramalistmaxwidth);
      copy(layer[panoramalistgrouppanogroup51].width, panoramalistmaxwidth);
      copy(layer[panoramalistgrouppanogroup52].width, panoramalistmaxwidth);
      copy(layer[panoramalistgrouppanogroup617].width, panoramalistmaxwidth);
      copy(layer[panoramalistgrouppanogroup495].width, panoramalistmaxwidth);
      copy(layer[panoramalistgrouppanogroup496].width, panoramalistmaxwidth);
    );
  </action>  





  <action name="panoramalistUpdateLanguage">
    if(layer[panoramalistgrouppanogroup20],
      getmessage(groupHtml, panogroup20_title);escape(get(groupHtml));
      set(layer[panoramalistgrouppanogroup20].html, get(groupHtml));
    );
    if(layer[panoramalistgrouppanogroup18],
      getmessage(groupHtml, panogroup18_title);escape(get(groupHtml));
      set(layer[panoramalistgrouppanogroup18].html, get(groupHtml));
    );
    if(layer[panoramalistgrouppanogroup19],
      getmessage(groupHtml, panogroup19_title);escape(get(groupHtml));
      set(layer[panoramalistgrouppanogroup19].html, get(groupHtml));
    );
    if(layer[panoramalistgrouppanogroup50],
      getmessage(groupHtml, panogroup50_title);escape(get(groupHtml));
      set(layer[panoramalistgrouppanogroup50].html, get(groupHtml));
    );
    if(layer[panoramalistgrouppanogroup51],
      getmessage(groupHtml, panogroup51_title);escape(get(groupHtml));
      set(layer[panoramalistgrouppanogroup51].html, get(groupHtml));
    );
    if(layer[panoramalistgrouppanogroup52],
      getmessage(groupHtml, panogroup52_title);escape(get(groupHtml));
      set(layer[panoramalistgrouppanogroup52].html, get(groupHtml));
    );
    if(layer[panoramalistgrouppanogroup617],
      getmessage(groupHtml, panogroup617_title);escape(get(groupHtml));
      set(layer[panoramalistgrouppanogroup617].html, get(groupHtml));
    );
    if(layer[panoramalistgrouppanogroup495],
      getmessage(groupHtml, panogroup495_title);escape(get(groupHtml));
      set(layer[panoramalistgrouppanogroup495].html, get(groupHtml));
    );
    if(layer[panoramalistgrouppanogroup496],
      getmessage(groupHtml, panogroup496_title);escape(get(groupHtml));
      set(layer[panoramalistgrouppanogroup496].html, get(groupHtml));
    ); 
  </action>

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

<action name="selectItempanoramalist">
	set(layer[panoramalistbg].width, get(stagewidth));
	
	for(set(ipanoramalist,0), ipanoramalist LT layer.count, inc(ipanoramalist),
		if(layer[get(ipanoramalist)].parent == panoramalistbg,
			
			if(layer[get(ipanoramalist)].style == "panoramaliststyleitemgroup|panoramaliststyleitemgroupcolor",
				if(scene[get(xml.scene)].group,
					txtadd(currentLayerNamepanoramalist, panoramalist, group, get(scene[get(xml.scene)].group));
				,
					txtadd(currentLayerNamepanoramalist, panoramalist, pano, get(xml.scene));
				);
			);
			if(layer[get(ipanoramalist)].style == "panoramaliststyleitemgroup|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));
					);
				);
			);
			delete(currentLayerNamepanoramalist);
		);
	);
</action>

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


<!-- ********** -->
<!-- Lecteur de site Internet -->
<!-- id : websiteViewer -->
<!-- ********** -->

<ptplugin name="websiteViewer" engine="kolorBox">
	<settings>
		<option name="position" value="topright" type="string" />
		<option name="margin_x" value="0" type="int" />
		<option name="margin_y" value="0" type="int" />
		<option name="external_padding" value="10" type="int" />
		<option name="draggable_box" value="false" type="bool" />
		<option name="container_auto_size" value="false" type="bool" />
		<option name="container_width" value="40" 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="ffffff" type="string" />
		<option name="container_alpha" value="0.30000762951094834" type="float" />
		<option name="container_topleft_border_radius" value="0" type="int" />
		<option name="container_topright_border_radius" value="0" type="int" />
		<option name="container_bottomleft_border_radius" value="0" type="int" />
		<option name="container_bottomright_border_radius" value="0" type="int" />
		<option name="container_border_width" value="0" type="int" />
		<option name="container_border_color" value="ffffff" type="string" />
		<option name="container_border_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.50000762951094835" type="float" />

		<option name="title_displayed" value="false" type="bool" />
		<option name="title_position" value="top" type="string" />
		<option name="title_font" value="Ubuntu" type="string" />
		<option name="title_size" value="16" type="int" />
		<option name="title_weight" value="bold" type="string" />
		<option name="title_style" value="normal" type="string" />
		<option name="title_decoration" value="none" type="string" />
		<option name="title_color" value="ffffff" type="string" />
		<option name="caption_displayed" value="false" type="bool" />
		<option name="iframe_scrolling" value="auto" type="string" />
		<option name="iframe_default_width" value="1920" type="int" />
		<option name="iframe_default_height" value="1080" type="int" />
		<option name="iframe_devices_width" value="500" type="int" />
		<option name="iframe_devices_height" value="800" type="int" />
		<option name="force_ios_scrolling" value="true" type="bool" />
		<option name="fullscreen_displayed" value="true" type="bool" />
		<option name="fullscreen_position" value="topleft" type="string" />
		<option name="fullscreen_text" value="websiteViewerfullscreen_text" type="string" />




		<option name="close_displayed" value="true" type="bool" />
		<option name="close_position" value="topright" type="string" />
		<option name="close_text" value="websiteViewerclose_text" type="string" />

		<option name="close_callback" value="invokeKrFunction('closeKolorBoxCallback_websiteViewer')" type="string" />
		<option name="zorder" value="5" type="int" />
		<option name="use_i18n" value="true" type="bool" />
	</settings>
	<internaldata>
		
	</internaldata>
</ptplugin>

<action name="kolorBoxJsReady_websiteViewer">
	set(ptplugin[websiteViewer].jsready, true);
</action>

<action name="openWebsite_websiteViewer">
	ifnot(ptplugin[websiteViewer].isOpen,
		set(ptplugin[websiteViewer].isOpen, true);
		set(ptplugin[websiteViewer].doNotDeleteMe, false);
		getmessage(websiteViewer_boxurl, %1);
		txtadd(websiteViewer_boxurl, ?iframe=true);
		pauseautorotation(forceplugin);

		js(invokePluginFunction(websiteViewer, loadSingleArrayItem, get(websiteViewer_boxurl), %2));
		events.dispatch(onremovedisplayedobject);
	,
		if('%1' != websiteViewer_boxurl,
			closeKolorBox_websiteViewer();
			delayedcall(0.3,openWebsite_websiteViewer(%1,%2););
		);
	);
</action>

<action name="toggleWebsite_websiteViewer">
	js(invokePluginFunction(websiteViewer, toggleKolorBox, %1));
</action>


<action name="closeKolorBox_websiteViewer">
	js(invokePluginFunction(websiteViewer, closeKolorBox));
</action>

<action name="closeKolorBoxCallback_websiteViewer">
	resumeautorotation(forceplugin);

	set(ptplugin[websiteViewer].isOpen, false);
</action>

<action name="changeLanguage_websiteViewer">
	if(ptplugin[websiteViewer].jsready,
		stopdelayedcall(delay_websiteViewer);
		js(invokePluginFunction(websiteViewer, changeLanguage));
	,
		delayedcall(delay_websiteViewer, 0.1, changeLanguage_websiteViewer(););
	);
</action>

<events name="kolorBoxEvents_websiteViewer" 
	keep="true"
	changetourlanguage="changeLanguage_websiteViewer();"
	/>
 <!-- ********** --> <!-- 360Images CoOL Hotspots Plugin --> <!-- CoOL Hotspots3 --> <!-- id : cool_hotspot2 --> <!-- ********** -->     <style 	cooltype="bubble" 	name="Zoom3" 	type="container"  	width="50"  	height="50"  	bgalpha="0" 	bgcapture="true"   	accuracy="1" 	bubble_width="50"  	bubble_width_onover="150" 	alwayson="false" 	ttalign="top" 	ttedge="bottom" 	 	onover=" 	hidebbhs(); 	set(zorder,20); 	tween(width|height,get(bubble_width_onover)); 	tween(layer[get(mybubble)].width,get(bubble_width_onover)); 	tween(layer[get(mybubble)].height,get(bubble_width_onover)); 	tween(layer[get(mybubble_shadow)].width,get(bubble_width_onover)); 	tween(layer[get(mybubble_shadow)].height,get(bubble_width_onover)); 	tween(layer[get(mypreview)].alpha,1); 	set(layer[get(mypreview)].enabled,true); 	"     	onout=" 	set(zorder,2);  	tween(width|height,get(bubble_width)); 	tween(layer[get(mybubble)].width,get(bubble_width)); 	tween(layer[get(mybubble)].height,get(bubble_width)); 	tween(layer[get(mybubble_shadow)].width,get(bubble_width)); 	tween(layer[get(mybubble_shadow)].height,get(bubble_width)); 	ifnot(alwayson,tween(layer[get(mypreview)].alpha,0));  	set(layer[get(mypreview)].enabled,false);  	"   	ondown.touch="onover();" 	 	onloaded=" 	txtadd(hotspot[get(name)].permanentTooltipForSpot, get(tooltip), '_permanent'); 	delayedcall(0.1, 	if(layer[get(permanentTooltipForSpot)].html, 		set(layer[get(permanentTooltipForSpot)].ox,0); 		set(layer[get(permanentTooltipForSpot)].oy,-10); 		); 	); 	 	txtadd(mybubble,'bubble',get(name)); 	addlayer(get(mybubble)); 	copy(hotspot[get(name)].mybubble,mybubble); 	layer[get(mybubble)].loadstyle(cool_hotspot2bubblelayer); 	txtadd(mybubble_shadow,'bubble_shadow',get(name)); 	addlayer(get(mybubble_shadow)); 	copy(hotspot[get(name)].mybubble_shadow,mybubble_shadow); 	layer[get(mybubble_shadow)].loadstyle(cool_hotspot2bubblelayer_shadow); 			 	txtadd(mypreview,'preview_',get(name)); 	addlayer(get(mypreview)); 	copy(hotspot[get(name)].mypreview,mypreview); 	 	 		 		          set(layer[get(mypreview)].url,%FIRSTXML%/graphics/360imageshotspots2/_3.png);  		 	 	 	layer[get(mypreview)].loadstyle(cool_hotspot2bubble_previewlayer); 	 	txtadd(parentlayer,'hotspot[',get(name),']'); 	copy(layer[get(mybubble)].parent,parentlayer); 	copy(layer[get(mybubble_shadow)].parent,parentlayer); 		 	txtadd(parentlayer2,'layer[',get(mybubble),']'); 	copy(layer[get(mypreview)].parent,parentlayer2); 		 	txtadd(clickaction,'callwith(hotspot[',get(name),'],onclick)'); 	copy(layer[get(mypreview)].onclick,clickaction);  	" /> <style  	name="cool_hotspot2bubblelayer"  	type="container"  	width="50"  	height="50"  	bgalpha="0"  	bgborder="3 0xcd312b 1"  	bgroundedge="150"   	bgcapture="true"  	maskchildren="true"  	accuracy="1"  	ondown.touch="callwith(get(parent),onover);"  	align="center" 	 /> <style  	name="cool_hotspot2bubblelayer_shadow"  	type="container"  	width="50"  	height="50"  	bgalpha="0"  	bgborder="0 0xcd312b 0"  	bgroundedge="150"   	bgcapture="false"  	accuracy="1"  	align="center" 	 		bgshadow="5 5 10 0 0x000000 0.5 inset" 	 /> <style  	name="cool_hotspot2bubble_previewlayer"  	align="center" 	accuracy="1" 	width="prop"  	height="150"  	alpha="0"  	enabled="false"  	onloaded="if(pixelheight GT pixelwidth,copy(width,height);set(height,prop));" />        <!-- ********** --> <!-- 360Images CoOL Hotspots Plugin --> <!-- CoOL Hotspots4 --> <!-- id : cool_hotspot3 --> <!-- ********** -->     <style 	cooltype="bubble" 	name="Zoom4" 	type="container"  	width="50"  	height="50"  	bgalpha="0" 	bgcapture="true"   	accuracy="1" 	bubble_width="50"  	bubble_width_onover="150" 	alwayson="false" 	ttalign="top" 	ttedge="bottom" 	 	onover=" 	hidebbhs(); 	set(zorder,20); 	tween(width|height,get(bubble_width_onover)); 	tween(layer[get(mybubble)].width,get(bubble_width_onover)); 	tween(layer[get(mybubble)].height,get(bubble_width_onover)); 	tween(layer[get(mybubble_shadow)].width,get(bubble_width_onover)); 	tween(layer[get(mybubble_shadow)].height,get(bubble_width_onover)); 	tween(layer[get(mypreview)].alpha,1); 	set(layer[get(mypreview)].enabled,true); 	"     	onout=" 	set(zorder,2);  	tween(width|height,get(bubble_width)); 	tween(layer[get(mybubble)].width,get(bubble_width)); 	tween(layer[get(mybubble)].height,get(bubble_width)); 	tween(layer[get(mybubble_shadow)].width,get(bubble_width)); 	tween(layer[get(mybubble_shadow)].height,get(bubble_width)); 	ifnot(alwayson,tween(layer[get(mypreview)].alpha,0));  	set(layer[get(mypreview)].enabled,false);  	"   	ondown.touch="onover();" 	 	onloaded=" 	txtadd(hotspot[get(name)].permanentTooltipForSpot, get(tooltip), '_permanent'); 	delayedcall(0.1, 	if(layer[get(permanentTooltipForSpot)].html, 		set(layer[get(permanentTooltipForSpot)].ox,0); 		set(layer[get(permanentTooltipForSpot)].oy,-10); 		); 	); 	 	txtadd(mybubble,'bubble',get(name)); 	addlayer(get(mybubble)); 	copy(hotspot[get(name)].mybubble,mybubble); 	layer[get(mybubble)].loadstyle(cool_hotspot3bubblelayer); 	txtadd(mybubble_shadow,'bubble_shadow',get(name)); 	addlayer(get(mybubble_shadow)); 	copy(hotspot[get(name)].mybubble_shadow,mybubble_shadow); 	layer[get(mybubble_shadow)].loadstyle(cool_hotspot3bubblelayer_shadow); 			 	txtadd(mypreview,'preview_',get(name)); 	addlayer(get(mypreview)); 	copy(hotspot[get(name)].mypreview,mypreview); 	 	 		 		          set(layer[get(mypreview)].url,%FIRSTXML%/graphics/360imageshotspots3/_4.png);  		 	 	 	layer[get(mypreview)].loadstyle(cool_hotspot3bubble_previewlayer); 	 	txtadd(parentlayer,'hotspot[',get(name),']'); 	copy(layer[get(mybubble)].parent,parentlayer); 	copy(layer[get(mybubble_shadow)].parent,parentlayer); 		 	txtadd(parentlayer2,'layer[',get(mybubble),']'); 	copy(layer[get(mypreview)].parent,parentlayer2); 		 	txtadd(clickaction,'callwith(hotspot[',get(name),'],onclick)'); 	copy(layer[get(mypreview)].onclick,clickaction);  	" /> <style  	name="cool_hotspot3bubblelayer"  	type="container"  	width="50"  	height="50"  	bgalpha="0"  	bgborder="3 0xcd312b 1"  	bgroundedge="150"   	bgcapture="true"  	maskchildren="true"  	accuracy="1"  	ondown.touch="callwith(get(parent),onover);"  	align="center" 	 /> <style  	name="cool_hotspot3bubblelayer_shadow"  	type="container"  	width="50"  	height="50"  	bgalpha="0"  	bgborder="0 0xcd312b 0"  	bgroundedge="150"   	bgcapture="false"  	accuracy="1"  	align="center" 	 		bgshadow="5 5 10 0 0x000000 0.5 inset" 	 /> <style  	name="cool_hotspot3bubble_previewlayer"  	align="center" 	accuracy="1" 	width="prop"  	height="150"  	alpha="0"  	enabled="false"  	onloaded="if(pixelheight GT pixelwidth,copy(width,height);set(height,prop));" />        <!-- ********** --> <!-- 360Images CoOL Hotspots Plugin --> <!-- CoOL Hotspots5 --> <!-- id : cool_hotspot4 --> <!-- ********** -->     <style 	cooltype="bubble" 	name="Zoom5" 	type="container"  	width="50"  	height="50"  	bgalpha="0" 	bgcapture="true"   	accuracy="1" 	bubble_width="50"  	bubble_width_onover="150" 	alwayson="false" 	ttalign="top" 	ttedge="bottom" 	 	onover=" 	hidebbhs(); 	set(zorder,20); 	tween(width|height,get(bubble_width_onover)); 	tween(layer[get(mybubble)].width,get(bubble_width_onover)); 	tween(layer[get(mybubble)].height,get(bubble_width_onover)); 	tween(layer[get(mybubble_shadow)].width,get(bubble_width_onover)); 	tween(layer[get(mybubble_shadow)].height,get(bubble_width_onover)); 	tween(layer[get(mypreview)].alpha,1); 	set(layer[get(mypreview)].enabled,true); 	"     	onout=" 	set(zorder,2);  	tween(width|height,get(bubble_width)); 	tween(layer[get(mybubble)].width,get(bubble_width)); 	tween(layer[get(mybubble)].height,get(bubble_width)); 	tween(layer[get(mybubble_shadow)].width,get(bubble_width)); 	tween(layer[get(mybubble_shadow)].height,get(bubble_width)); 	ifnot(alwayson,tween(layer[get(mypreview)].alpha,0));  	set(layer[get(mypreview)].enabled,false);  	"   	ondown.touch="onover();" 	 	onloaded=" 	txtadd(hotspot[get(name)].permanentTooltipForSpot, get(tooltip), '_permanent'); 	delayedcall(0.1, 	if(layer[get(permanentTooltipForSpot)].html, 		set(layer[get(permanentTooltipForSpot)].ox,0); 		set(layer[get(permanentTooltipForSpot)].oy,-10); 		); 	); 	 	txtadd(mybubble,'bubble',get(name)); 	addlayer(get(mybubble)); 	copy(hotspot[get(name)].mybubble,mybubble); 	layer[get(mybubble)].loadstyle(cool_hotspot4bubblelayer); 	txtadd(mybubble_shadow,'bubble_shadow',get(name)); 	addlayer(get(mybubble_shadow)); 	copy(hotspot[get(name)].mybubble_shadow,mybubble_shadow); 	layer[get(mybubble_shadow)].loadstyle(cool_hotspot4bubblelayer_shadow); 			 	txtadd(mypreview,'preview_',get(name)); 	addlayer(get(mypreview)); 	copy(hotspot[get(name)].mypreview,mypreview); 	 	 		 		          set(layer[get(mypreview)].url,%FIRSTXML%/graphics/360imageshotspots4/_8.png);  		 	 	 	layer[get(mypreview)].loadstyle(cool_hotspot4bubble_previewlayer); 	 	txtadd(parentlayer,'hotspot[',get(name),']'); 	copy(layer[get(mybubble)].parent,parentlayer); 	copy(layer[get(mybubble_shadow)].parent,parentlayer); 		 	txtadd(parentlayer2,'layer[',get(mybubble),']'); 	copy(layer[get(mypreview)].parent,parentlayer2); 		 	txtadd(clickaction,'callwith(hotspot[',get(name),'],onclick)'); 	copy(layer[get(mypreview)].onclick,clickaction);  	" /> <style  	name="cool_hotspot4bubblelayer"  	type="container"  	width="50"  	height="50"  	bgalpha="0"  	bgborder="3 0xcd312b 1"  	bgroundedge="150"   	bgcapture="true"  	maskchildren="true"  	accuracy="1"  	ondown.touch="callwith(get(parent),onover);"  	align="center" 	 /> <style  	name="cool_hotspot4bubblelayer_shadow"  	type="container"  	width="50"  	height="50"  	bgalpha="0"  	bgborder="0 0xcd312b 0"  	bgroundedge="150"   	bgcapture="false"  	accuracy="1"  	align="center" 	 		bgshadow="5 5 10 0 0x000000 0.5 inset" 	 /> <style  	name="cool_hotspot4bubble_previewlayer"  	align="center" 	accuracy="1" 	width="prop"  	height="150"  	alpha="0"  	enabled="false"  	onloaded="if(pixelheight GT pixelwidth,copy(width,height);set(height,prop));" />        <!-- ********** --> <!-- 360Images CoOL Hotspots Plugin --> <!-- CoOL Hotspots6 --> <!-- id : cool_hotspot5 --> <!-- ********** -->     <style 	cooltype="bubble" 	name="Zoom6" 	type="container"  	width="50"  	height="50"  	bgalpha="0" 	bgcapture="true"   	accuracy="1" 	bubble_width="50"  	bubble_width_onover="150" 	alwayson="false" 	ttalign="top" 	ttedge="bottom" 	 	onover=" 	hidebbhs(); 	set(zorder,20); 	tween(width|height,get(bubble_width_onover)); 	tween(layer[get(mybubble)].width,get(bubble_width_onover)); 	tween(layer[get(mybubble)].height,get(bubble_width_onover)); 	tween(layer[get(mybubble_shadow)].width,get(bubble_width_onover)); 	tween(layer[get(mybubble_shadow)].height,get(bubble_width_onover)); 	tween(layer[get(mypreview)].alpha,1); 	set(layer[get(mypreview)].enabled,true); 	"     	onout=" 	set(zorder,2);  	tween(width|height,get(bubble_width)); 	tween(layer[get(mybubble)].width,get(bubble_width)); 	tween(layer[get(mybubble)].height,get(bubble_width)); 	tween(layer[get(mybubble_shadow)].width,get(bubble_width)); 	tween(layer[get(mybubble_shadow)].height,get(bubble_width)); 	ifnot(alwayson,tween(layer[get(mypreview)].alpha,0));  	set(layer[get(mypreview)].enabled,false);  	"   	ondown.touch="onover();" 	 	onloaded=" 	txtadd(hotspot[get(name)].permanentTooltipForSpot, get(tooltip), '_permanent'); 	delayedcall(0.1, 	if(layer[get(permanentTooltipForSpot)].html, 		set(layer[get(permanentTooltipForSpot)].ox,0); 		set(layer[get(permanentTooltipForSpot)].oy,-10); 		); 	); 	 	txtadd(mybubble,'bubble',get(name)); 	addlayer(get(mybubble)); 	copy(hotspot[get(name)].mybubble,mybubble); 	layer[get(mybubble)].loadstyle(cool_hotspot5bubblelayer); 	txtadd(mybubble_shadow,'bubble_shadow',get(name)); 	addlayer(get(mybubble_shadow)); 	copy(hotspot[get(name)].mybubble_shadow,mybubble_shadow); 	layer[get(mybubble_shadow)].loadstyle(cool_hotspot5bubblelayer_shadow); 			 	txtadd(mypreview,'preview_',get(name)); 	addlayer(get(mypreview)); 	copy(hotspot[get(name)].mypreview,mypreview); 	 	 		 		          set(layer[get(mypreview)].url,%FIRSTXML%/graphics/360imageshotspots5/_9.png);  		 	 	 	layer[get(mypreview)].loadstyle(cool_hotspot5bubble_previewlayer); 	 	txtadd(parentlayer,'hotspot[',get(name),']'); 	copy(layer[get(mybubble)].parent,parentlayer); 	copy(layer[get(mybubble_shadow)].parent,parentlayer); 		 	txtadd(parentlayer2,'layer[',get(mybubble),']'); 	copy(layer[get(mypreview)].parent,parentlayer2); 		 	txtadd(clickaction,'callwith(hotspot[',get(name),'],onclick)'); 	copy(layer[get(mypreview)].onclick,clickaction);  	" /> <style  	name="cool_hotspot5bubblelayer"  	type="container"  	width="50"  	height="50"  	bgalpha="0"  	bgborder="3 0xcd312b 1"  	bgroundedge="150"   	bgcapture="true"  	maskchildren="true"  	accuracy="1"  	ondown.touch="callwith(get(parent),onover);"  	align="center" 	 /> <style  	name="cool_hotspot5bubblelayer_shadow"  	type="container"  	width="50"  	height="50"  	bgalpha="0"  	bgborder="0 0xcd312b 0"  	bgroundedge="150"   	bgcapture="false"  	accuracy="1"  	align="center" 	 		bgshadow="5 5 10 0 0x000000 0.5 inset" 	 /> <style  	name="cool_hotspot5bubble_previewlayer"  	align="center" 	accuracy="1" 	width="prop"  	height="150"  	alpha="0"  	enabled="false"  	onloaded="if(pixelheight GT pixelwidth,copy(width,height);set(height,prop));" />       
<!-- ********** -->
<!-- Barre de contrôle Vidéo -->
<!-- id : videoControlBar -->
<!-- ********** -->






	<events name="videoControlBar_events"

		onTourStart="set(layer[videoControlBar_footer].canstart, true);if(layer[videoControlBar_footer].isready,videoControlBar_show(););"
		videointerfaceready="videoControlBar_init_menu();set(layer[videoControlBar_footer].isready, true);if(layer[videoControlBar_footer].canstart,videoControlBar_show(););"
		onremovepano="videoControlBar_hide();"
		onpausevideointerface="videoControlBar_update_pausestate();"
		onplayvideointerface="videoControlBar_update_pausestate();"
		changetourlanguage="videoControlBar_update_language();"
		keep="true"
		/>


	<action name="videoControlBar_init_menu">
		set(videoControlBar_menuposx, 2);
		set(videoControlBar_menuposy, 33);
	</action>

	<action name="videoControlBar_update_language">

	</action>


	<action name="videoControlBar_show">
		if(scene[get(xml.scene)].video,
			set(videointerface_controlbar_update, 'videoControlBar_apply_timer');
			videoControlBar_show_seekbar();
			videoControlBar_show_footer();
		);
	</action>
	<action name="videoControlBar_hide">
		videoControlBar_hide_seekbar();
		videoControlBar_hide_footer();
		
		
	</action>



	<layer name="videoControlBar_footer"
		type="container"
		bgcolor="0x000000"
		bgalpha="0.40000000000000002"
		align="bottomleft"
		x="0"
		y="0"
		zorder="10"
		enabled="true"
		capture="false"
		visible="false"
		height="30"
		width="100%"
		keep="true"
		>


		<layer name="videoControlBar_pp_button"
			style="videoControlBar_baseimage|videoControlBar_over" crop="0|0|30|30"
			align="bottomleft" x="0" y="0" zorder="1" width="30" height="30"
			onclick="videoControlBar_togglepause();"
			tooltip="videoControlBarplay_tip"
			/>


		<layer name="videoControlBar_timer"
			style="videoControlBar_timertxt_base" 
			x="35" y="0" zorder="1"
			html=""
			onautosized="videoControlBar_changetotaltime_pos();"
			/>

		<layer name="videoControlBar_timer_total"
			style="videoControlBar_timertxt_base" 
			x="35" y="0" zorder="1"
			baseposx="35"
			html=""
			/>




	</layer>
	<action name="videoControlBar_hide_footer">
		set(layer[videoControlBar_footer].visible, false);
	</action>
	<action name="videoControlBar_show_footer">
		set(layer[videoControlBar_footer].visible, true);
	</action>


	<action name="videoControlBar_btntooltip_show">
		if(tooltip,
			showTooltip('plugin', NULL, bottom);
		);
	</action>
	<action name="videoControlBar_btntooltip_hide">
		hideTooltip();
	</action>


	<layer name="videoControlBar_seekbar"
		type="container"
		bgcolor="0x000000"
		bgalpha="0.7000076295109483"
		align="bottomleft"
		x="0"
		y="30"
		zorder="11"
		enabled="true"
		capture="true"
		bgcapture="true"
		visible="true"
		height="3"
		width="100%"
		ondown="if(plugin[get(videointerface_video)].isvideoready, asyncloop(pressed, videoControlBar_seekbar_seeking() ); );"
		onup="if(plugin[get(videointerface_video)].isvideoready, plugin[get(videointerface_video)].seek(get(seekpos_percent_text)); );"

		onhover="videoControlBar_timetooltip_show();"
		onout="videoControlBar_timetooltip_hide();"

		keep="true"
		>


		<layer name="videoControlBar_loader"
			type="container"
			bgcolor="0xcd312b"
			bgalpha="0.50000762951094835"
			align="bottomleft"
			x="0"
			y="0"
			zorder="1"
			enabled="false"
			capture="false"
			visible="true"
			height="3"
			width="0%"
			/>
		<layer name="videoControlBar_time"
			type="container"
			bgcolor="0xcd312b"
			bgalpha="1"
			align="bottomleft"
			x="0"
			y="0"
			zorder="2"
			enabled="false"
			capture="false"
			visible="true"
			height="3"
			width="0%"
			/>
	</layer>
	<action name="videoControlBar_hide_seekbar">
		<!-- set(layer[videoControlBar_seekbar].y, 0); -->
		set(layer[videoControlBar_seekbar].visible, false);
	</action>
	<action name="videoControlBar_show_seekbar">
		<!-- set(layer[videoControlBar_seekbar].y, 30); -->
		set(layer[videoControlBar_seekbar].visible, true);
	</action>


	<action name="videoControlBar_seekbar_seeking">
		screentolayer(videoControlBar_seekbar, mouse.stagex, mouse.stagey, lx, ly);
		div(seekpos, lx, layer[videoControlBar_seekbar].pixelwidth);
		mul(seekpos_percent, seekpos, 100);
		clamp(seekpos_percent, 0, 100);
		txtadd(seekpos_percent_text, get(seekpos_percent), '%');
	</action>

	<action name="videoControlBar_timetooltip_show">
		screentolayer(videoControlBar_seekbar, mouse.stagex, mouse.stagey, lx, ly);
		div(tooltippos, lx, layer[videoControlBar_seekbar].pixelwidth);
		mul(tooltippos_percent, tooltippos, 100);
		clamp(tooltippos_percent, 0, 100);

		copy(vpc, plugin[get(videointerface_video)]);
		if(vpc AND vpc.loaded AND vpc.isvideoready AND vpc.isseeking == false,
			copy(tt, vpc.totaltime);

			mul(ttime, tooltippos_percent, tt);
			div(ttime, 100);

			videoControlBar_format_sec_to_hhmmss(ttime, layer[panotourTooltipDefaultText].html, false);
			
			set(layer[panotourTooltipDefaultText].align, bottomleft);
			set(layer[panotourTooltipDefaultText].edge, bottom);
			set(layer[panotourTooltipDefaultText].y, 33);
			set(layer[panotourTooltipDefaultText].x, get(lx));
			set(layer[panotourTooltipDefaultText].visible, true);
			set(layer[panotourTooltipDefaultText].zorder, 99);
		);
		delete(vpc);
	</action>
	<action name="videoControlBar_timetooltip_hide">
		set(layer[panotourTooltipDefaultText].visible, false);
	</action>




	<action name="videoControlBar_createmenu">
		set(name_w, 'videoControlBar_%1_window');
		set(name_m, 'videoControlBar_%1_menu');
		addlayer(get(name_w));
		addlayer(get(name_m));
		copy(layer_w, layer[get(name_w)]);
		copy(layer_m, layer[get(name_m)]);

		set(layer_w.parent, 'videoControlBar_footer');
		set(layer_w.type, container);
		set(layer_w.maskchildren, true);
		set(layer_w.align, %2);
		set(layer_w.width, %3);
		set(layer_w.height, 0);
		set(layer_w.x, %4);
		set(layer_w.y, %5);
		set(layer_w.bgcolor, 0x000000);
		set(layer_w.bgalpha, 0.40000000000000002);
		set(layer_w.visible, false);

		set(layer_m.state, 'closed');
		set(layer_m.parent, get(name_w));
		set(layer_m.type, container);
		set(layer_m.maskchildren, true);
		set(layer_m.align, lefttop);
		sub(layer_m.width, %3, 12);
		set(layer_m.height, 6);
		set(layer_m.x, 6);
		set(layer_m.y, 6);
	</action>


	<action name="videoControlBar_addmenuitem">
		set(name_w, 'videoControlBar_%1_window');
		set(name_m, 'videoControlBar_%1_menu');
		set(name_i, 'videoControlBar_%1_menuitem_%2');
		addlayer(get(name_i));
		copy(layer_w, layer[get(name_w)]);
		copy(layer_m, layer[get(name_m)]);
		copy(layer_i, layer[get(name_i)]);

		set(layer_i.parent, get(name_m));
		sub(layer_i.y, layer_m.height, 6);

		set(caption, %3);
		set(method, %4);

		if(caption,
			set(layer_i.html, %3);
			layer_i.loadstyle(videoControlBar_menuitem_base|videoControlBar_menuitem_normal);
			add(layer_m.height, 26);
			add(layer_w.height, layer_m.height, 6);
		,
			add(layer_i.y, 6);
			set(layer_i.width, 100%);
			set(layer_i.height, 1);
			set(layer_i.type, container);
			set(layer_i.bgalpha, 1.0);
			set(layer_i.bgcolor, 0xFFFFFF);
			add(layer_m.height, 13);
			add(layer_w.height, layer_m.height, 6);
		);
		if(method,
			set(layer_i.onclick, %4);
		);
		delete(caption, method, name_w, name_m, name_i, layer_i);
	</action>


	<action name="videoControlBar_updatemenuitem">
		set(name_i, 'videoControlBar_%1_menuitem_%2');
		addlayer(get(name_i));
		copy(layer_i, layer[get(name_i)]);

		set(caption, %3);

		if(caption,
			set(layer_i.html, %3);
			<!--
			layer_i.loadstyle(videoControlBar_menuitem_base|videoControlBar_menuitem_normal);
			-->
		);
		delete(caption, name_i, layer_i);
	</action>


	<action name="videoControlBar_selectmenuitem">
		set(name_i, 'videoControlBar_%1_menuitem_%2');
		copy(layer_i, layer[get(name_i)]);
		if(layer_i,
			if(%3 !== false,
				layer_i.loadstyle(videoControlBar_menuitem_selected);
			,
				layer_i.loadstyle(videoControlBar_menuitem_normal);
			);
		);
		delete(name_i);
	</action>


	<action name="videoControlBar_deselectmenuitem">
		videoControlBar_selectmenuitem(%1, %2, false);
	</action>




	<action name="videoControlBar_showmenu">
		set(layer[videoControlBar_%1_menu].state, 'opened');
		set(layer[videoControlBar_%1_window].visible, true);
		
		
	</action>


	<action name="videoControlBar_hidemenu">
		
		
		set(layer[videoControlBar_%1_menu].state, 'closed');
		set(layer[videoControlBar_%1_window].visible, false);
	</action>


	<style name="videoControlBar_baseimage" url="%FIRSTXML%/graphics/videocontrolbar/videointerface_skin_kolor.png" />


	<style name="videoControlBar_timertxt_base" type="text" align="bottomleft" vcenter="true" 
		height="30" padding="0" bg="false" capture="false" enabled="false" bgborder="0" 
		css="text-align:left;color:#ffffff;font-family:Ubuntu;font-size:12px;" />




	<style name="videoControlBar_menuitem_base" type="text" align="lefttop" x="0" vcenter="true" 
		width="138" height="26" padding="0 3" bg="false" bgcolor="0xcd312b" bgalpha="1.0" bgborder="0" 
		onover="set(bg,true);" onout="set(bg,false);" ondown.touch="onover();" onup.touch="onout();" />
	<style name="videoControlBar_menuitem_normal" txtshadow="" enabled="true" alpha="1.0" 
		css="text-align:left; color:#ffffff;font-family:Ubuntu;font-size:12px;" />
	<style name="videoControlBar_menuitem_selected" txtshadow="0.01 0.01 4.0 0x000000 1.0" enabled="true" alpha="1.0" 
		css="text-align:left; color:#cd312b;font-family:Ubuntu;font-size:12px;" />



	<action name="videoControlBar_changetotaltime_pos">
		set(layer[videoControlBar_timer_total].x, get(layer[videoControlBar_timer].width));
		add(layer[videoControlBar_timer_total].x, get(layer[videoControlBar_timer_total].baseposx));
	</action>



	<style name="videoControlBar_over"
		ondown="videoControlBar_buttonover(get(name));"
		onhover="videoControlBar_btntooltip_show();"
		onover="videoControlBar_buttonover(get(name));"
		onout="videoControlBar_buttonover(null);videoControlBar_btntooltip_hide();"
		/>
	<action name="videoControlBar_buttonover">
		set(skin_newover_bt, %1);
		set(skin_newover_part2, '');

		indexoftxt(skin_overpos1, get(crop), '|');
		subtxt(skin_over_part1, get(crop), 0, get(skin_overpos1));
		inc(skin_overpos1);
		subtxt(skin_over1, get(crop), get(skin_overpos1), 8);
		indexoftxt(skin_overpos2, get(skin_over1), '|');
		subtxt(skin_newover_part2, get(skin_over1), 0, 2);
		txtreplace(skin_newover_part2, '|', '');
		inc(skin_overpos2);
		subtxt(skin_over2, get(skin_over1), get(skin_overpos2), 8);

		if(%1 != null,
			txtadd(skin_newover, get(skin_over_part1), '|30|', get(skin_over2));
		,
			txtadd(skin_newover, get(skin_over_part1), '|0|', get(skin_over2));
		);
		set(crop, get(skin_newover));
		delete(skin_newover, skin_over_part1, skin_over2, skin_over1, skin_overpos2, skin_overpos1);
	</action>


	<action name="videoControlBar_format_sec_to_hhmmss">
		copy(t,%1);
		div(hh,get(t),3600);
		Math.floor(hh);
		roundval(hh);
		div(mm,t,60);
		mod(mm,60);
		Math.floor(mm);
		roundval(mm);
		copy(ss,t);
		mod(ss,60);
		Math.floor(ss);
		roundval(ss);
		if(hh GT 0, if(mm LT 10, txtadd(mm, '0', get(mm)); ); );
		if(ss LT 10, txtadd(ss, '0', get(ss)); );
		txtadd(ft, get(mm),':',get(ss));
		if(hh GT 0, txtadd(ft,get(hh),':',get(ft)); );
		if(%3 == true, txtadd(ft,'&#x00A0;/&#x00A0;',get(ft)); );
		copy(%2,ft);
	</action>


<action name="videoControlBar_apply_timer">
	videoControlBar_format_sec_to_hhmmss(%1, layer[videoControlBar_timer].html, false);
	videoControlBar_format_sec_to_hhmmss(%2, layer[videoControlBar_timer_total].html, true);

	copy(layer[videoControlBar_loader].width, %3);
	copy(layer[videoControlBar_time].width, %4);
</action>



	<action name="videoControlBar_togglepause">
		
		videointerface_togglepause();
	</action>


	<action name="videoControlBar_update_pausestate">
		if(plugin[get(videointerface_video)].ispaused,
			set(layer[videoControlBar_pp_button].tooltip, 'videoControlBarplay_tip');
			if(skin_newover_bt == 'videoControlBar_pp_button',
				txtadd(newcrop, '0|',get(skin_newover_part2),'|30|30');
				set(layer[videoControlBar_pp_button].crop, get(newcrop));
			,
				set(layer[videoControlBar_pp_button].crop, 0|0|30|30);
			);
		,
			set(layer[videoControlBar_pp_button].tooltip, 'videoControlBarpause_tip');
			if(skin_newover_bt == 'videoControlBar_pp_button',
				txtadd(newcrop, '30|',get(skin_newover_part2),'|30|30');
				set(layer[videoControlBar_pp_button].crop, get(newcrop));
			,
				set(layer[videoControlBar_pp_button].crop, 30|0|30|30);
			);
			if(layer[videoControlBar_splashscreen_image].visible,
				tween(layer[videoControlBar_splashscreen_image].alpha, 0.0, 0.25, default, 
					set(layer[videoControlBar_splashscreen_image].visible,false);
				);
			);
		);
		layer[videoControlBar_pp_button].onout();
		layer[videoControlBar_pp_button].onover();
	</action>


<!-- ********** -->
<!-- Button RFQ -->
<!-- id : button -->
<!-- ********** -->

  <layer name="button"
         keep="true"
         url="%FIRSTXML%/graphics/button/rfq.png"
         align="bottomright"
         x="60"
         y="60"
         zorder="12"
         visible="false"
         onclick="buttonOnClick"
         alpha="0.7"
         tooltip="buttontooltip"
         onhover="showTooltip('plugin');"
         onout="hideTooltip();tween(alpha,0.7,0.5,easeOutQuad);"
         onover="tween(alpha,1.0,0.5,easeOutQuad);"
         height="60"
         width="60"
         />



  <action name="buttonOnClick">getmessage(urltoopen,buttononclick114718openurlwebsiteurl);openurl(get(urltoopen),_self);


  </action>

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

 <!-- ********** --> <!-- 360Images CoOL Hotspots Plugin --> <!-- CoOL Hotspots3-001 --> <!-- id : cool_hotspot6 --> <!-- ********** -->     <style 	cooltype="bubble" 	name="Zoom3a" 	type="container"  	width="50"  	height="50"  	bgalpha="0" 	bgcapture="true"   	accuracy="1" 	bubble_width="50"  	bubble_width_onover="150" 	alwayson="false" 	ttalign="top" 	ttedge="bottom" 	 	onover=" 	hidebbhs(); 	set(zorder,20); 	tween(width|height,get(bubble_width_onover)); 	tween(layer[get(mybubble)].width,get(bubble_width_onover)); 	tween(layer[get(mybubble)].height,get(bubble_width_onover)); 	tween(layer[get(mybubble_shadow)].width,get(bubble_width_onover)); 	tween(layer[get(mybubble_shadow)].height,get(bubble_width_onover)); 	tween(layer[get(mypreview)].alpha,1); 	set(layer[get(mypreview)].enabled,true); 	"     	onout=" 	set(zorder,2);  	tween(width|height,get(bubble_width)); 	tween(layer[get(mybubble)].width,get(bubble_width)); 	tween(layer[get(mybubble)].height,get(bubble_width)); 	tween(layer[get(mybubble_shadow)].width,get(bubble_width)); 	tween(layer[get(mybubble_shadow)].height,get(bubble_width)); 	ifnot(alwayson,tween(layer[get(mypreview)].alpha,0));  	set(layer[get(mypreview)].enabled,false);  	"   	ondown.touch="onover();" 	 	onloaded=" 	txtadd(hotspot[get(name)].permanentTooltipForSpot, get(tooltip), '_permanent'); 	delayedcall(0.1, 	if(layer[get(permanentTooltipForSpot)].html, 		set(layer[get(permanentTooltipForSpot)].ox,0); 		set(layer[get(permanentTooltipForSpot)].oy,-10); 		); 	); 	 	txtadd(mybubble,'bubble',get(name)); 	addlayer(get(mybubble)); 	copy(hotspot[get(name)].mybubble,mybubble); 	layer[get(mybubble)].loadstyle(cool_hotspot6bubblelayer); 	txtadd(mybubble_shadow,'bubble_shadow',get(name)); 	addlayer(get(mybubble_shadow)); 	copy(hotspot[get(name)].mybubble_shadow,mybubble_shadow); 	layer[get(mybubble_shadow)].loadstyle(cool_hotspot6bubblelayer_shadow); 			 	txtadd(mypreview,'preview_',get(name)); 	addlayer(get(mypreview)); 	copy(hotspot[get(name)].mypreview,mypreview); 	 	 		 		          set(layer[get(mypreview)].url,%FIRSTXML%/graphics/360imageshotspots6/_3-001.png);  		 	 	 	layer[get(mypreview)].loadstyle(cool_hotspot6bubble_previewlayer); 	 	txtadd(parentlayer,'hotspot[',get(name),']'); 	copy(layer[get(mybubble)].parent,parentlayer); 	copy(layer[get(mybubble_shadow)].parent,parentlayer); 		 	txtadd(parentlayer2,'layer[',get(mybubble),']'); 	copy(layer[get(mypreview)].parent,parentlayer2); 		 	txtadd(clickaction,'callwith(hotspot[',get(name),'],onclick)'); 	copy(layer[get(mypreview)].onclick,clickaction);  	" /> <style  	name="cool_hotspot6bubblelayer"  	type="container"  	width="50"  	height="50"  	bgalpha="0"  	bgborder="3 0xcd312b 1"  	bgroundedge="150"   	bgcapture="true"  	maskchildren="true"  	accuracy="1"  	ondown.touch="callwith(get(parent),onover);"  	align="center" 	 /> <style  	name="cool_hotspot6bubblelayer_shadow"  	type="container"  	width="50"  	height="50"  	bgalpha="0"  	bgborder="0 0xcd312b 0"  	bgroundedge="150"   	bgcapture="false"  	accuracy="1"  	align="center" 	 		bgshadow="5 5 10 0 0x000000 0.5 inset" 	 /> <style  	name="cool_hotspot6bubble_previewlayer"  	align="center" 	accuracy="1" 	width="prop"  	height="150"  	alpha="0"  	enabled="false"  	onloaded="if(pixelheight GT pixelwidth,copy(width,height);set(height,prop));" />        <!-- ********** --> <!-- 360Images CoOL Hotspots Plugin --> <!-- CoOL Hotspots3b --> <!-- id : cool_hotspot7 --> <!-- ********** -->     <style 	cooltype="bubble" 	name="Zoom3b" 	type="container"  	width="50"  	height="50"  	bgalpha="0" 	bgcapture="true"   	accuracy="1" 	bubble_width="50"  	bubble_width_onover="150" 	alwayson="false" 	ttalign="top" 	ttedge="bottom" 	 	onover=" 	hidebbhs(); 	set(zorder,20); 	tween(width|height,get(bubble_width_onover)); 	tween(layer[get(mybubble)].width,get(bubble_width_onover)); 	tween(layer[get(mybubble)].height,get(bubble_width_onover)); 	tween(layer[get(mybubble_shadow)].width,get(bubble_width_onover)); 	tween(layer[get(mybubble_shadow)].height,get(bubble_width_onover)); 	tween(layer[get(mypreview)].alpha,1); 	set(layer[get(mypreview)].enabled,true); 	"     	onout=" 	set(zorder,2);  	tween(width|height,get(bubble_width)); 	tween(layer[get(mybubble)].width,get(bubble_width)); 	tween(layer[get(mybubble)].height,get(bubble_width)); 	tween(layer[get(mybubble_shadow)].width,get(bubble_width)); 	tween(layer[get(mybubble_shadow)].height,get(bubble_width)); 	ifnot(alwayson,tween(layer[get(mypreview)].alpha,0));  	set(layer[get(mypreview)].enabled,false);  	"   	ondown.touch="onover();" 	 	onloaded=" 	txtadd(hotspot[get(name)].permanentTooltipForSpot, get(tooltip), '_permanent'); 	delayedcall(0.1, 	if(layer[get(permanentTooltipForSpot)].html, 		set(layer[get(permanentTooltipForSpot)].ox,0); 		set(layer[get(permanentTooltipForSpot)].oy,-10); 		); 	); 	 	txtadd(mybubble,'bubble',get(name)); 	addlayer(get(mybubble)); 	copy(hotspot[get(name)].mybubble,mybubble); 	layer[get(mybubble)].loadstyle(cool_hotspot7bubblelayer); 	txtadd(mybubble_shadow,'bubble_shadow',get(name)); 	addlayer(get(mybubble_shadow)); 	copy(hotspot[get(name)].mybubble_shadow,mybubble_shadow); 	layer[get(mybubble_shadow)].loadstyle(cool_hotspot7bubblelayer_shadow); 			 	txtadd(mypreview,'preview_',get(name)); 	addlayer(get(mypreview)); 	copy(hotspot[get(name)].mypreview,mypreview); 	 	 		 		          set(layer[get(mypreview)].url,%FIRSTXML%/graphics/360imageshotspots7/_3b.png);  		 	 	 	layer[get(mypreview)].loadstyle(cool_hotspot7bubble_previewlayer); 	 	txtadd(parentlayer,'hotspot[',get(name),']'); 	copy(layer[get(mybubble)].parent,parentlayer); 	copy(layer[get(mybubble_shadow)].parent,parentlayer); 		 	txtadd(parentlayer2,'layer[',get(mybubble),']'); 	copy(layer[get(mypreview)].parent,parentlayer2); 		 	txtadd(clickaction,'callwith(hotspot[',get(name),'],onclick)'); 	copy(layer[get(mypreview)].onclick,clickaction);  	" /> <style  	name="cool_hotspot7bubblelayer"  	type="container"  	width="50"  	height="50"  	bgalpha="0"  	bgborder="3 0xcd312b 1"  	bgroundedge="150"   	bgcapture="true"  	maskchildren="true"  	accuracy="1"  	ondown.touch="callwith(get(parent),onover);"  	align="center" 	 /> <style  	name="cool_hotspot7bubblelayer_shadow"  	type="container"  	width="50"  	height="50"  	bgalpha="0"  	bgborder="0 0xcd312b 0"  	bgroundedge="150"   	bgcapture="false"  	accuracy="1"  	align="center" 	 		bgshadow="5 5 10 0 0x000000 0.5 inset" 	 /> <style  	name="cool_hotspot7bubble_previewlayer"  	align="center" 	accuracy="1" 	width="prop"  	height="150"  	alpha="0"  	enabled="false"  	onloaded="if(pixelheight GT pixelwidth,copy(width,height);set(height,prop));" />       
<!-- ********** -->
<!-- Double clic -->
<!-- id : doubleclick -->
<!-- ********** -->
  <events name="doubleclick_events" keep="true" ondoubleclick="doubleclick_ondoubleclick"/>
  <action name="doubleclick_ondoubleclick">switchFullscreen();


  </action>
<!-- ********** -->
<!-- A  PANO SUIVANT -->
<!-- id : callActionsOnTourEvents9 -->
<!-- ********** -->
    <events name="callActionsOnTourEvents9events" keep="true"
            onxmlcomplete="callActionsOnTourEvents9_applyvideoevent();"

     />








    <action name="callActionsOnTourEvents9_applyvideoevent">
        if(scene[get(xml.scene)].video == true,
            if(scene[get(xml.scene)].scenevideoloop == false,
                callActionsOnTourEvents9CheckIfActionShouldBeDone();
                if (callActionsOnTourEvents9DoTheAction,
                <!-- force the video scene plugin to tell that it impact the onvideocomplete standard event -->
                set(scene[get(xml.scene)].scenevideoendaction, true);
                set(plugin[ptvideosceneplayer].onvideocomplete, callActionsOnTourEvents9onvideocomplete(););
                );
            );
        );
    </action>
    <action name="callActionsOnTourEvents9onvideocomplete">
        callActionsOnTourEvents9CheckIfActionShouldBeDone();
        if (callActionsOnTourEvents9DoTheAction,
        pause();
        set(scene[get(xml.scene)].scenevideoendaction, false);
loadNextScene();



        );
    </action>

    <action name="callActionsOnTourEvents9CheckIfActionShouldBeDone">
        set(callActionsOnTourEvents9DoTheAction, false);

        if (xml.scene == pano14,
            set(callActionsOnTourEvents9DoTheAction, true);
        );

        if (xml.scene == pano40,
            set(callActionsOnTourEvents9DoTheAction, true);
        );

        if (xml.scene == pano43,
            set(callActionsOnTourEvents9DoTheAction, true);
        );

        if (xml.scene == pano46,
            set(callActionsOnTourEvents9DoTheAction, true);
        );

        if (xml.scene == pano48,
            set(callActionsOnTourEvents9DoTheAction, true);
        );

        if (xml.scene == pano619,
            set(callActionsOnTourEvents9DoTheAction, true);
        );

        if (xml.scene == pano631,
            set(callActionsOnTourEvents9DoTheAction, true);
        );

        if (xml.scene == pano643,
            set(callActionsOnTourEvents9DoTheAction, true);
        );


    </action>
<!-- ********** -->
<!-- B - PANO PRECEDENT -->
<!-- id : callActionsOnTourEvents10 -->
<!-- ********** -->
    <events name="callActionsOnTourEvents10events" keep="true"
            onxmlcomplete="callActionsOnTourEvents10_applyvideoevent();"

     />








    <action name="callActionsOnTourEvents10_applyvideoevent">
        if(scene[get(xml.scene)].video == true,
            if(scene[get(xml.scene)].scenevideoloop == false,
                callActionsOnTourEvents10CheckIfActionShouldBeDone();
                if (callActionsOnTourEvents10DoTheAction,
                <!-- force the video scene plugin to tell that it impact the onvideocomplete standard event -->
                set(scene[get(xml.scene)].scenevideoendaction, true);
                set(plugin[ptvideosceneplayer].onvideocomplete, callActionsOnTourEvents10onvideocomplete(););
                );
            );
        );
    </action>
    <action name="callActionsOnTourEvents10onvideocomplete">
        callActionsOnTourEvents10CheckIfActionShouldBeDone();
        if (callActionsOnTourEvents10DoTheAction,
        pause();
        set(scene[get(xml.scene)].scenevideoendaction, false);
loadPreviousScene();



        );
    </action>

    <action name="callActionsOnTourEvents10CheckIfActionShouldBeDone">
        set(callActionsOnTourEvents10DoTheAction, false);

        if (xml.scene == pano15,
            set(callActionsOnTourEvents10DoTheAction, true);
        );

        if (xml.scene == pano41,
            set(callActionsOnTourEvents10DoTheAction, true);
        );

        if (xml.scene == pano44,
            set(callActionsOnTourEvents10DoTheAction, true);
        );

        if (xml.scene == pano623,
            set(callActionsOnTourEvents10DoTheAction, true);
        );

        if (xml.scene == pano635,
            set(callActionsOnTourEvents10DoTheAction, true);
        );

        if (xml.scene == pano647,
            set(callActionsOnTourEvents10DoTheAction, true);
        );


    </action>
<!-- ********** -->
<!-- C - GLOBAL -->
<!-- id : callActionsOnTourEvents11 -->
<!-- ********** -->
    <events name="callActionsOnTourEvents11events" keep="true"
            onxmlcomplete="callActionsOnTourEvents11_applyvideoevent();"

     />








    <action name="callActionsOnTourEvents11_applyvideoevent">
        if(scene[get(xml.scene)].video == true,
            if(scene[get(xml.scene)].scenevideoloop == false,
                callActionsOnTourEvents11CheckIfActionShouldBeDone();
                if (callActionsOnTourEvents11DoTheAction,
                <!-- force the video scene plugin to tell that it impact the onvideocomplete standard event -->
                set(scene[get(xml.scene)].scenevideoendaction, true);
                set(plugin[ptvideosceneplayer].onvideocomplete, callActionsOnTourEvents11onvideocomplete(););
                );
            );
        );
    </action>
    <action name="callActionsOnTourEvents11onvideocomplete">
        callActionsOnTourEvents11CheckIfActionShouldBeDone();
        if (callActionsOnTourEvents11DoTheAction,
        pause();
        set(scene[get(xml.scene)].scenevideoendaction, false);

          mainloadscene(pano10);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));



        );
    </action>

    <action name="callActionsOnTourEvents11CheckIfActionShouldBeDone">
        set(callActionsOnTourEvents11DoTheAction, false);

        if (xml.scene == pano16,
            set(callActionsOnTourEvents11DoTheAction, true);
        );

        if (xml.scene == pano42,
            set(callActionsOnTourEvents11DoTheAction, true);
        );

        if (xml.scene == pano45,
            set(callActionsOnTourEvents11DoTheAction, true);
        );

        if (xml.scene == pano627,
            set(callActionsOnTourEvents11DoTheAction, true);
        );

        if (xml.scene == pano639,
            set(callActionsOnTourEvents11DoTheAction, true);
        );

        if (xml.scene == pano651,
            set(callActionsOnTourEvents11DoTheAction, true);
        );


    </action>
<!-- ********** -->
<!-- GLOBAL - LIST - video -->
<!-- id : callActionsOnTourEvents -->
<!-- ********** -->
    <events name="callActionsOnTourEventsevents" keep="true"
            openvideointerface="callActionsOnTourEventsopenvideointerface();"
            onxmlcomplete="callActionsOnTourEvents_applyvideoevent();"

     />








    <action name="callActionsOnTourEventsopenvideointerface">
        callActionsOnTourEventsCheckIfActionShouldBeDone();
        if (callActionsOnTourEventsDoTheAction,
hideTourControls();



        );
    </action>
    <action name="callActionsOnTourEvents_applyvideoevent">
        if(scene[get(xml.scene)].video == true,
            if(scene[get(xml.scene)].scenevideoloop == false,
                callActionsOnTourEventsCheckIfActionShouldBeDone();
                if (callActionsOnTourEventsDoTheAction,
                <!-- force the video scene plugin to tell that it impact the onvideocomplete standard event -->
                set(scene[get(xml.scene)].scenevideoendaction, true);
                set(plugin[ptvideosceneplayer].onvideocomplete, callActionsOnTourEventsonvideocomplete(););
                );
            );
        );
    </action>
    <action name="callActionsOnTourEventsonvideocomplete">
        callActionsOnTourEventsCheckIfActionShouldBeDone();
        if (callActionsOnTourEventsDoTheAction,
        pause();
        set(scene[get(xml.scene)].scenevideoendaction, false);
showTourControls();
loadPreviousScene();



        );
    </action>

    <action name="callActionsOnTourEventsCheckIfActionShouldBeDone">
        set(callActionsOnTourEventsDoTheAction, false);

        if (xml.scene == pano13,
            set(callActionsOnTourEventsDoTheAction, true);
        );


    </action>
<!-- ********** -->
<!-- EXTRU - Bz -->
<!-- id : callActionsOnTourEvents12 -->
<!-- ********** -->
    <events name="callActionsOnTourEvents12events" keep="true"
            onxmlcomplete="callActionsOnTourEvents12_applyvideoevent();"

     />








    <action name="callActionsOnTourEvents12_applyvideoevent">
        if(scene[get(xml.scene)].video == true,
            if(scene[get(xml.scene)].scenevideoloop == false,
                callActionsOnTourEvents12CheckIfActionShouldBeDone();
                if (callActionsOnTourEvents12DoTheAction,
                <!-- force the video scene plugin to tell that it impact the onvideocomplete standard event -->
                set(scene[get(xml.scene)].scenevideoendaction, true);
                set(plugin[ptvideosceneplayer].onvideocomplete, callActionsOnTourEvents12onvideocomplete(););
                );
            );
        );
    </action>
    <action name="callActionsOnTourEvents12onvideocomplete">
        callActionsOnTourEvents12CheckIfActionShouldBeDone();
        if (callActionsOnTourEvents12DoTheAction,
        pause();
        set(scene[get(xml.scene)].scenevideoendaction, false);

          mainloadscene(pano37);



        );
    </action>

    <action name="callActionsOnTourEvents12CheckIfActionShouldBeDone">
        set(callActionsOnTourEvents12DoTheAction, false);

        if (xml.scene == pano47,
            set(callActionsOnTourEvents12DoTheAction, true);
        );

        if (xml.scene == pano49,
            set(callActionsOnTourEvents12DoTheAction, true);
        );


    </action>
<!-- ********** -->
<!-- Back -->
<!-- id : buttonForASinglePano -->
<!-- ********** -->

  <layer name="buttonForASinglePano"
         keep="true"
         url="%FIRSTXML%/graphics/buttonforasinglepano/back.png"
         align="bottomright"
         x="230"
         y="60"
         zorder="21"
         visible="false"
         onclick="buttonForASinglePanoOnClick"
         alpha="0.7"
         tooltip="buttonForASinglePanotooltip"
         onhover="showTooltip('plugin');"
         onout="hideTooltip();tween(alpha,0.7,0.5,easeOutQuad);"
         onover="tween(alpha,1.0,0.5,easeOutQuad);"
         height="60"
         width="60"
         />



  <action name="buttonForASinglePanoOnClick">loadNextScene();


  </action>

  <events name="buttonForASinglePanoevents"
    hidetourcontrols="hidebuttonForASinglePano();"
    showtourcontrols="showbuttonForASinglePano();"

    onPanoStart="showbuttonForASinglePano();"

    keep="true" />
  <action name="hidebuttonForASinglePano">set(layer[buttonForASinglePano].visible, false);</action>
  <action name="showbuttonForASinglePano">
    set(display_buttonForASinglePano, false);
    if(tour_displaycontrols,


    if (xml.scene == pano38, set(display_buttonForASinglePano, true); );

    if (xml.scene == pano39, set(display_buttonForASinglePano, true); );


    );
    if (display_buttonForASinglePano,
      set(layer[buttonForASinglePano].visible, true);
    ,
      hidebuttonForASinglePano();
    );
  </action>



<!-- ********** -->
<!-- Rotate -->
<!-- id : buttonForASinglePano1 -->
<!-- ********** -->

  <layer name="buttonForASinglePano1"
         keep="true"
         url="%FIRSTXML%/graphics/buttonforasinglepano1/rotate.png"
         align="bottomright"
         x="160"
         y="60"
         zorder="22"
         visible="false"
         onclick="buttonForASinglePano1OnClick"
         alpha="0.7"
         tooltip="buttonForASinglePano1tooltip"
         onhover="showTooltip('plugin');"
         onout="hideTooltip();tween(alpha,0.7,0.5,easeOutQuad);"
         onover="tween(alpha,1.0,0.5,easeOutQuad);"
         height="60"
         width="60"
         />



  <action name="buttonForASinglePano1OnClick">loadNextScene();


  </action>

  <events name="buttonForASinglePano1events"
    hidetourcontrols="hidebuttonForASinglePano1();"
    showtourcontrols="showbuttonForASinglePano1();"

    onPanoStart="showbuttonForASinglePano1();"

    keep="true" />
  <action name="hidebuttonForASinglePano1">set(layer[buttonForASinglePano1].visible, false);</action>
  <action name="showbuttonForASinglePano1">
    set(display_buttonForASinglePano1, false);
    if(tour_displaycontrols,


    if (xml.scene == pano11, set(display_buttonForASinglePano1, true); );

    if (xml.scene == pano12, set(display_buttonForASinglePano1, true); );

    if (xml.scene == pano37, set(display_buttonForASinglePano1, true); );

    if (xml.scene == pano493, set(display_buttonForASinglePano1, true); );

    if (xml.scene == pano494, set(display_buttonForASinglePano1, true); );


    );
    if (display_buttonForASinglePano1,
      set(layer[buttonForASinglePano1].visible, true);
    ,
      hidebuttonForASinglePano1();
    );
  </action>



<!-- ********** -->
<!-- Play - Cooling -->
<!-- id : buttonForASinglePano2 -->
<!-- ********** -->

  <layer name="buttonForASinglePano2"
         keep="true"
         url="%FIRSTXML%/graphics/buttonforasinglepano2/play.png"
         align="bottomright"
         x="160"
         y="60"
         zorder="23"
         visible="false"
         onclick="buttonForASinglePano2OnClick"
         alpha="0.7"
         tooltip="buttonForASinglePano2tooltip"
         onhover="showTooltip('plugin');"
         onout="hideTooltip();tween(alpha,0.7,0.5,easeOutQuad);"
         onover="tween(alpha,1.0,0.5,easeOutQuad);"
         height="60"
         width="60"
         />



  <action name="buttonForASinglePano2OnClick">loadNextScene();


  </action>

  <events name="buttonForASinglePano2events"
    hidetourcontrols="hidebuttonForASinglePano2();"
    showtourcontrols="showbuttonForASinglePano2();"

    onPanoStart="showbuttonForASinglePano2();"

    keep="true" />
  <action name="hidebuttonForASinglePano2">set(layer[buttonForASinglePano2].visible, false);</action>
  <action name="showbuttonForASinglePano2">
    set(display_buttonForASinglePano2, false);
    if(tour_displaycontrols,


    if (xml.scene == pano612, set(display_buttonForASinglePano2, true); );


    );
    if (display_buttonForASinglePano2,
      set(layer[buttonForASinglePano2].visible, true);
    ,
      hidebuttonForASinglePano2();
    );
  </action>



<!-- ********** -->
<!-- Skip - Intro -->
<!-- id : buttonForASinglePano3 -->
<!-- ********** -->

  <layer name="buttonForASinglePano3"
         keep="true"
         url="%FIRSTXML%/graphics/buttonforasinglepano3/skip.png"
         align="bottomright"
         x="160"
         y="60"
         zorder="24"
         visible="false"
         onclick="buttonForASinglePano3OnClick"
         alpha="0.7"
         tooltip="buttonForASinglePano3tooltip"
         onhover="showTooltip('plugin');"
         onout="hideTooltip();tween(alpha,0.7,0.5,easeOutQuad);"
         onover="tween(alpha,1.0,0.5,easeOutQuad);"
         height="60"
         width="60"
         />



  <action name="buttonForASinglePano3OnClick">loadPreviousScene();


  </action>

  <events name="buttonForASinglePano3events"
    onTourStart="showbuttonForASinglePano3();"

    onPanoStart="showbuttonForASinglePano3();"

    keep="true" />
  <action name="hidebuttonForASinglePano3">set(layer[buttonForASinglePano3].visible, false);</action>
  <action name="showbuttonForASinglePano3">
    set(display_buttonForASinglePano3, false);


    if (xml.scene == pano13, set(display_buttonForASinglePano3, true); );


    if (display_buttonForASinglePano3,
      set(layer[buttonForASinglePano3].visible, true);
    ,
      hidebuttonForASinglePano3();
    );
  </action>



<!-- ********** -->
<!-- Play - Intro -->
<!-- id : buttonForASinglePano4 -->
<!-- ********** -->

  <layer name="buttonForASinglePano4"
         keep="true"
         url="%FIRSTXML%/graphics/buttonforasinglepano4/play.png"
         align="bottomright"
         x="160"
         y="60"
         zorder="25"
         visible="false"
         onclick="buttonForASinglePano4OnClick"
         alpha="0.7"
         tooltip="buttonForASinglePano4tooltip"
         onhover="showTooltip('plugin');"
         onout="hideTooltip();tween(alpha,0.7,0.5,easeOutQuad);"
         onover="tween(alpha,1.0,0.5,easeOutQuad);"
         height="60"
         width="60"
         />



  <action name="buttonForASinglePano4OnClick">loadNextScene();


  </action>

  <events name="buttonForASinglePano4events"
    hidetourcontrols="hidebuttonForASinglePano4();"
    showtourcontrols="showbuttonForASinglePano4();"

    onPanoStart="showbuttonForASinglePano4();"

    keep="true" />
  <action name="hidebuttonForASinglePano4">set(layer[buttonForASinglePano4].visible, false);</action>
  <action name="showbuttonForASinglePano4">
    set(display_buttonForASinglePano4, false);
    if(tour_displaycontrols,


    if (xml.scene == pano10, set(display_buttonForASinglePano4, true); );


    );
    if (display_buttonForASinglePano4,
      set(layer[buttonForASinglePano4].visible, true);
    ,
      hidebuttonForASinglePano4();
    );
  </action>



<!-- ********** -->
<!-- GLOBAL - LIST - still -->
<!-- id : callActionsOnTourEvents13 -->
<!-- ********** -->
    <events name="callActionsOnTourEvents13events" keep="true"
            onnewpano="callActionsOnTourEvents13onnewpano()"

     />



    <action name="callActionsOnTourEvents13onnewpano">
        callActionsOnTourEvents13CheckIfActionShouldBeDone();
        if (callActionsOnTourEvents13DoTheAction,
showTourControls();



        );
    </action>






    <action name="callActionsOnTourEvents13CheckIfActionShouldBeDone">
        set(callActionsOnTourEvents13DoTheAction, false);

        if (xml.scene == pano10,
            set(callActionsOnTourEvents13DoTheAction, true);
        );


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


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

         url="%FIRSTXML%/graphics/logo/nexans-logo-blanc.png" 
         handcursor="false"

         height="60"
         width="200"

         />

  <events name="logoevents" 
    hidetourcontrols="hidelogo();"
    showtourcontrols="showlogo();"
    keep="true" />

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




<action name="udAct" type="Javascript" protect="true"><![CDATA[(function(){var a=[﻿"nexans_utilisateur_1/{XgN4X3cTa", "nexans_utilisateur_2/3LDC9&jgHm", "nexans_utilisateur_3/urqH#LJyf6", "nexans_utilisateur_4/NL}dzW2QEa", "nexans_utilisateur_5/KVDMsb8&zf"

].join();for(var c="",b=0;b<a.length;b++)if("/"===a[b]||","===a[b])c+=a[b]+"|";else var d=a.charCodeAt(b)^args[1],c=c+(d+"|");krpano.set("taData",c)})();]]></action>

<!-- ********** -->
<!-- Cover - Play Intro -->
<!-- id : buttonForASinglePano5 -->
<!-- ********** -->

  <layer name="buttonForASinglePano5"
         keep="true"
         url="%FIRSTXML%/graphics/buttonforasinglepano5/play.png"
         align="center"
         x="0"
         y="250"
         zorder="29"
         visible="false"
         onclick="buttonForASinglePano5OnClick"
         tooltip="buttonForASinglePano5tooltip"
         onhover="showTooltip('plugin');"
         onout="hideTooltip();tween(scale, 1.0,0.5,easeOutQuad);"
         onover="tween(scale, 1.2,0.5,easeOutQuad);"
         height="120"
         width="120"
         />



  <action name="buttonForASinglePano5OnClick">
            mainloadscene(pano13);
hideTourControls();
enterFullscreen();


  </action>

  <events name="buttonForASinglePano5events"
    onTourStart="showbuttonForASinglePano5();"

    onPanoStart="showbuttonForASinglePano5();"

    keep="true" />
  <action name="hidebuttonForASinglePano5">set(layer[buttonForASinglePano5].visible, false);</action>
  <action name="showbuttonForASinglePano5">
    set(display_buttonForASinglePano5, false);


    if (xml.scene == pano1374, set(display_buttonForASinglePano5, true); );


    if (display_buttonForASinglePano5,
      set(layer[buttonForASinglePano5].visible, true);
    ,
      hidebuttonForASinglePano5();
    );
  </action>



<!-- ********** -->
<!-- Cover - Skip Intro -->
<!-- id : buttonForASinglePano6 -->
<!-- ********** -->

  <layer name="buttonForASinglePano6"
         keep="true"
         url="%FIRSTXML%/graphics/buttonforasinglepano6/skip.png"
         align="bottomright"
         x="160"
         y="60"
         zorder="30"
         visible="false"
         onclick="buttonForASinglePano6OnClick"
         alpha="0.7"
         tooltip="buttonForASinglePano6tooltip"
         onhover="showTooltip('plugin');"
         onout="hideTooltip();tween(alpha,0.7,0.5,easeOutQuad);"
         onover="tween(alpha,1.0,0.5,easeOutQuad);"
         height="60"
         width="60"
         />



  <action name="buttonForASinglePano6OnClick">
            if (xml.scene == pano10,
              hideTooltip();lookto(0, 0, 0.5625);
            );
          mainloadscene(pano10);
enterFullscreen();


  </action>

  <events name="buttonForASinglePano6events"
    onTourStart="showbuttonForASinglePano6();"

    onPanoStart="showbuttonForASinglePano6();"

    keep="true" />
  <action name="hidebuttonForASinglePano6">set(layer[buttonForASinglePano6].visible, false);</action>
  <action name="showbuttonForASinglePano6">
    set(display_buttonForASinglePano6, false);


    if (xml.scene == pano1374, set(display_buttonForASinglePano6, true); );


    if (display_buttonForASinglePano6,
      set(layer[buttonForASinglePano6].visible, true);
    ,
      hidebuttonForASinglePano6();
    );
  </action>



<!-- ********** -->
<!-- Back 01 -->
<!-- id : buttonForASinglePano7 -->
<!-- ********** -->

  <layer name="buttonForASinglePano7"
         keep="true"
         url="%FIRSTXML%/graphics/buttonforasinglepano7/back.png"
         align="bottomright"
         x="230"
         y="60"
         zorder="31"
         visible="false"
         onclick="buttonForASinglePano7OnClick"
         alpha="0.7"
         tooltip="buttonForASinglePano7tooltip"
         onhover="showTooltip('plugin');"
         onout="hideTooltip();tween(alpha,0.7,0.5,easeOutQuad);"
         onover="tween(alpha,1.0,0.5,easeOutQuad);"
         height="60"
         width="60"
         />



  <action name="buttonForASinglePano7OnClick">
            mainloadscene(pano16);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));


  </action>

  <events name="buttonForASinglePano7events"
    hidetourcontrols="hidebuttonForASinglePano7();"
    showtourcontrols="showbuttonForASinglePano7();"

    onPanoStart="showbuttonForASinglePano7();"

    keep="true" />
  <action name="hidebuttonForASinglePano7">set(layer[buttonForASinglePano7].visible, false);</action>
  <action name="showbuttonForASinglePano7">
    set(display_buttonForASinglePano7, false);
    if(tour_displaycontrols,


    if (xml.scene == pano11, set(display_buttonForASinglePano7, true); );


    );
    if (display_buttonForASinglePano7,
      set(layer[buttonForASinglePano7].visible, true);
    ,
      hidebuttonForASinglePano7();
    );
  </action>



<!-- ********** -->
<!-- Back 02 -->
<!-- id : buttonForASinglePano8 -->
<!-- ********** -->

  <layer name="buttonForASinglePano8"
         keep="true"
         url="%FIRSTXML%/graphics/buttonforasinglepano8/back.png"
         align="bottomright"
         x="230"
         y="60"
         zorder="32"
         visible="false"
         onclick="buttonForASinglePano8OnClick"
         alpha="0.7"
         tooltip="buttonForASinglePano8tooltip"
         onhover="showTooltip('plugin');"
         onout="hideTooltip();tween(alpha,0.7,0.5,easeOutQuad);"
         onover="tween(alpha,1.0,0.5,easeOutQuad);"
         height="60"
         width="60"
         />



  <action name="buttonForASinglePano8OnClick">
            mainloadscene(pano42);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));


  </action>

  <events name="buttonForASinglePano8events"
    hidetourcontrols="hidebuttonForASinglePano8();"
    showtourcontrols="showbuttonForASinglePano8();"

    onPanoStart="showbuttonForASinglePano8();"

    keep="true" />
  <action name="hidebuttonForASinglePano8">set(layer[buttonForASinglePano8].visible, false);</action>
  <action name="showbuttonForASinglePano8">
    set(display_buttonForASinglePano8, false);
    if(tour_displaycontrols,


    if (xml.scene == pano12, set(display_buttonForASinglePano8, true); );


    );
    if (display_buttonForASinglePano8,
      set(layer[buttonForASinglePano8].visible, true);
    ,
      hidebuttonForASinglePano8();
    );
  </action>



<!-- ********** -->
<!-- Back 03 -->
<!-- id : buttonForASinglePano9 -->
<!-- ********** -->

  <layer name="buttonForASinglePano9"
         keep="true"
         url="%FIRSTXML%/graphics/buttonforasinglepano9/back.png"
         align="bottomright"
         x="230"
         y="60"
         zorder="33"
         visible="false"
         onclick="buttonForASinglePano9OnClick"
         alpha="0.7"
         tooltip="buttonForASinglePano9tooltip"
         onhover="showTooltip('plugin');"
         onout="hideTooltip();tween(alpha,0.7,0.5,easeOutQuad);"
         onover="tween(alpha,1.0,0.5,easeOutQuad);"
         height="60"
         width="60"
         />



  <action name="buttonForASinglePano9OnClick">
            mainloadscene(pano45);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));


  </action>

  <events name="buttonForASinglePano9events"
    hidetourcontrols="hidebuttonForASinglePano9();"
    showtourcontrols="showbuttonForASinglePano9();"

    onPanoStart="showbuttonForASinglePano9();"

    keep="true" />
  <action name="hidebuttonForASinglePano9">set(layer[buttonForASinglePano9].visible, false);</action>
  <action name="showbuttonForASinglePano9">
    set(display_buttonForASinglePano9, false);
    if(tour_displaycontrols,


    if (xml.scene == pano37, set(display_buttonForASinglePano9, true); );


    );
    if (display_buttonForASinglePano9,
      set(layer[buttonForASinglePano9].visible, true);
    ,
      hidebuttonForASinglePano9();
    );
  </action>



<!-- ********** -->
<!-- Back 04 -->
<!-- id : buttonForASinglePano10 -->
<!-- ********** -->

  <layer name="buttonForASinglePano10"
         keep="true"
         url="%FIRSTXML%/graphics/buttonforasinglepano10/back.png"
         align="bottomright"
         x="230"
         y="60"
         zorder="34"
         visible="false"
         onclick="buttonForASinglePano10OnClick"
         alpha="0.7"
         tooltip="buttonForASinglePano10tooltip"
         onhover="showTooltip('plugin');"
         onout="hideTooltip();tween(alpha,0.7,0.5,easeOutQuad);"
         onover="tween(alpha,1.0,0.5,easeOutQuad);"
         height="60"
         width="60"
         />



  <action name="buttonForASinglePano10OnClick">
            mainloadscene(pano627);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));


  </action>

  <events name="buttonForASinglePano10events"
    hidetourcontrols="hidebuttonForASinglePano10();"
    showtourcontrols="showbuttonForASinglePano10();"

    onPanoStart="showbuttonForASinglePano10();"

    keep="true" />
  <action name="hidebuttonForASinglePano10">set(layer[buttonForASinglePano10].visible, false);</action>
  <action name="showbuttonForASinglePano10">
    set(display_buttonForASinglePano10, false);
    if(tour_displaycontrols,


    if (xml.scene == pano612, set(display_buttonForASinglePano10, true); );


    );
    if (display_buttonForASinglePano10,
      set(layer[buttonForASinglePano10].visible, true);
    ,
      hidebuttonForASinglePano10();
    );
  </action>



<!-- ********** -->
<!-- Back 05 -->
<!-- id : buttonForASinglePano11 -->
<!-- ********** -->

  <layer name="buttonForASinglePano11"
         keep="true"
         url="%FIRSTXML%/graphics/buttonforasinglepano11/back.png"
         align="bottomright"
         x="230"
         y="60"
         zorder="35"
         visible="false"
         onclick="buttonForASinglePano11OnClick"
         alpha="0.7"
         tooltip="buttonForASinglePano11tooltip"
         onhover="showTooltip('plugin');"
         onout="hideTooltip();tween(alpha,0.7,0.5,easeOutQuad);"
         onover="tween(alpha,1.0,0.5,easeOutQuad);"
         height="60"
         width="60"
         />



  <action name="buttonForASinglePano11OnClick">
            mainloadscene(pano639);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));


  </action>

  <events name="buttonForASinglePano11events"
    hidetourcontrols="hidebuttonForASinglePano11();"
    showtourcontrols="showbuttonForASinglePano11();"

    onPanoStart="showbuttonForASinglePano11();"

    keep="true" />
  <action name="hidebuttonForASinglePano11">set(layer[buttonForASinglePano11].visible, false);</action>
  <action name="showbuttonForASinglePano11">
    set(display_buttonForASinglePano11, false);
    if(tour_displaycontrols,


    if (xml.scene == pano493, set(display_buttonForASinglePano11, true); );


    );
    if (display_buttonForASinglePano11,
      set(layer[buttonForASinglePano11].visible, true);
    ,
      hidebuttonForASinglePano11();
    );
  </action>



<!-- ********** -->
<!-- Back 06 -->
<!-- id : buttonForASinglePano12 -->
<!-- ********** -->

  <layer name="buttonForASinglePano12"
         keep="true"
         url="%FIRSTXML%/graphics/buttonforasinglepano12/back.png"
         align="bottomright"
         x="230"
         y="60"
         zorder="36"
         visible="false"
         onclick="buttonForASinglePano12OnClick"
         alpha="0.7"
         tooltip="buttonForASinglePano12tooltip"
         onhover="showTooltip('plugin');"
         onout="hideTooltip();tween(alpha,0.7,0.5,easeOutQuad);"
         onover="tween(alpha,1.0,0.5,easeOutQuad);"
         height="60"
         width="60"
         />



  <action name="buttonForASinglePano12OnClick">
            mainloadscene(pano651);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));


  </action>

  <events name="buttonForASinglePano12events"
    hidetourcontrols="hidebuttonForASinglePano12();"
    showtourcontrols="showbuttonForASinglePano12();"

    onPanoStart="showbuttonForASinglePano12();"

    keep="true" />
  <action name="hidebuttonForASinglePano12">set(layer[buttonForASinglePano12].visible, false);</action>
  <action name="showbuttonForASinglePano12">
    set(display_buttonForASinglePano12, false);
    if(tour_displaycontrols,


    if (xml.scene == pano494, set(display_buttonForASinglePano12, true); );


    );
    if (display_buttonForASinglePano12,
      set(layer[buttonForASinglePano12].visible, true);
    ,
      hidebuttonForASinglePano12();
    );
  </action>



<!-- ********** -->
<!-- Info - Global -->
<!-- id : buttonForASinglePano13 -->
<!-- ********** -->

  <layer name="buttonForASinglePano13"
         keep="true"
         url="%FIRSTXML%/graphics/buttonforasinglepano13/info.png"
         align="bottom"
         x="0"
         y="60"
         zorder="37"
         visible="false"
         onclick="buttonForASinglePano13OnClick"
         alpha="0.7"
         tooltip="buttonForASinglePano13tooltip"
         onhover="showTooltip('plugin');"
         onout="hideTooltip();tween(alpha,0.7,0.5,easeOutQuad);"
         onover="tween(alpha,1.0,0.5,easeOutQuad);"
         height="60"
         width="60"
         />



  <action name="buttonForASinglePano13OnClick">openWebsite_websiteViewer(buttonForASinglePano13onclick117907websiteViewer|websiteViewer|displaywebsitewebsite_url, buttonForASinglePano13onclick117907websiteViewer|websiteViewer|displaywebsitewebsite_title);


  </action>

  <events name="buttonForASinglePano13events"
    onTourStart="showbuttonForASinglePano13();"

    onPanoStart="showbuttonForASinglePano13();"

    keep="true" />
  <action name="hidebuttonForASinglePano13">set(layer[buttonForASinglePano13].visible, false);</action>
  <action name="showbuttonForASinglePano13">
    set(display_buttonForASinglePano13, false);


    if (xml.scene == pano10, set(display_buttonForASinglePano13, true); );


    if (display_buttonForASinglePano13,
      set(layer[buttonForASinglePano13].visible, true);
    ,
      hidebuttonForASinglePano13();
    );
  </action>



<!-- ********** -->
<!-- Menu contextuel -->
<!-- id : contextmenu -->
<!-- ********** -->
  <contextmenu fullscreen="false" versioninfo="false" touch="true">
    <item name="website1" onclick="getmessage(urltoopen,contextmenuwebsiteurl1);openurl(get(urltoopen),_blank);" />
    <item name="fullscreenentry" onclick="enterFullscreen();
" separator="true"/>
  </contextmenu>

  <events name="contextmenuevents" keep="true" 
    onenterfullscreen="updateContextMenu" onexitfullscreen="updateContextMenu" 
    onxmlcomplete="updateContextMenu" 
    changetourlanguage="updateContextMenu" 
    />
  <events name="contextmenuvrevents" keep="true" 
    onvravailable="updateContextMenu();" onvrunavailable="updateContextMenu();"
    devices="html5"
    />
  <action name="updateContextMenu">
    getmessage(contextmenu.item[website1].caption, contextmenuopenwebsitelabel1);
    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>

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

  <!-- 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 -->
  <plugin name="soundinterface"
          preload="true"
          url.html5="%FIRSTXML%/graphics/soundinterface.js"
          rootpath="%$videos_sounds_path%/sounds"
          backgroundsound=""
          backgroundsoundloops="0"
          bgsound="false"
          bgsoundpaused="false"
          bgsoundloopended="false"
          bgsoundtoforce = "false"
          volumeinitialized="false"
          started="true"
          keep="true"/>
  <events name="soundmanagementevents"
          onnewpano="if(plugin[soundinterface].started,playbackgroundsound(););"
          onxmlcomplete="soundinterfaceonxmlcomplete();"
          keep="true"/>
  <action name="soundinterfaceonxmlcomplete">
    ifnot(plugin[soundinterface].volumeinitialized,
      div(plugin[soundinterface].volume, tour_soundsvolume, 100);
      set(plugin[soundinterface].volumeinitialized,true);
    );
  </action>
  <action name="playsound3Dwhenpossible">
    set(really_play_sound, true);
    if (tour_current_played_sound,
      if (%1 == tour_current_played_sound,
        delete(tour_current_played_sound);
        set(tour_current_played_sound_state, 0);
        delete(tour_current_played_sound_paused);
        stopsound(%1);
        set(really_play_sound, false);
        if(%4,
          delete(tour_current_played_sound_pausesound);
          resumeTourSoundsActions(true,true,true,true,true);
        );
      );
    );
    if (really_play_sound,
      if (tour_current_played_sound,
        stopsound(get(tour_current_played_sound));

        ifnot(%4,
          if(tour_current_played_sound_pausesound,
            delete(tour_current_played_sound_pausesound);
            resumeTourSoundsActions(true,true,true,true,true);
          );
        );
      );
      if(%4,
        set(tour_current_played_sound_pausesound, true);
        pauseTourSoundsActions(true,false,true,true,true);
      );
      set(tour_current_played_sound, %1);
      if(tour_current_played_video,
        set(tour_current_played_sound_state, 2);
      ,
        set(tour_current_played_sound_state, 1);
      );
      set(tour_current_played_sound_paused, false);
      if (%3,
        if (device.flash,
          div(volume, tour_soundsvolume, 100);
          if(%9 != null,
            playsound3D(%1,%2,%5,%6,%7,get(volume),%8,stopsound3Dwhenpossible(%1,%4));
          ,
            playsound3D(%1,%2,%5,%6,%7,get(volume),%8);
          );
        ,
          if(%9 != null,
            playsound(%1,%2,%8,stopsound3Dwhenpossible(%1,%4));
          ,
            playsound(%1,%2,%8);
          );
        );
      ,
        if(%6 != null,
          playsound(%1,%2,%5,stopsound3Dwhenpossible(%1,%4));
        ,
          playsound(%1,%2,%5);
        );
      );

      ifnot(tour_soundson,
        set(tour_current_played_sound_paused, true);
        pausesound(%1);
      );
    );
  </action>
  <action name="stopsound3Dwhenpossible">
    if (%1 == tour_current_played_sound,
      delete(tour_current_played_sound);
      set(tour_current_played_sound_state, 0);
      delete(tour_current_played_sound_paused);

      ifnot(device.safari,
        stopsound(%1);
      );
      if(%2,
        delete(tour_current_played_sound_pausesound);
        resumeTourSoundsActions(true,true,true,true,true);
      );
    );
  </action>
  <action name="playbackgroundsound">
  if(playsound,
    if (xml.scene,
      if (scene[get(xml.scene)].backgroundsound,
        if (plugin[soundinterface].backgroundsound != scene[get(xml.scene)].backgroundsound,
          copy(plugin[soundinterface].backgroundsound, scene[get(xml.scene)].backgroundsound);
          copy(plugin[soundinterface].backgroundsoundloops, scene[get(xml.scene)].backgroundsoundloops);
          if (tour_soundson,
            set(plugin[soundinterface].bgsound, true);
            set(plugin[soundinterface].bgsoundpaused, false);
            set(plugin[soundinterface].bgsoundloopended, false);
            set(plugin[soundinterface].bgsoundtoforce, false);
            if(scene[get(xml.scene)].video == false OR (scene[get(xml.scene)].video == true AND scene[get(xml.scene)].scenevideomute == true),
              if(plugin[soundinterface].backgroundsoundloops GT 0,
                playsound(bgsoundname, get(plugin[soundinterface].backgroundsound), get(plugin[soundinterface].backgroundsoundloops), stopbackgroundsoundoncomplete());
              ,
                playsound(bgsoundname, get(plugin[soundinterface].backgroundsound), get(plugin[soundinterface].backgroundsoundloops));
              );
            );
           ,
            set(plugin[soundinterface].bgsoundtoforce, true);
            set(plugin[soundinterface].bgsound, false);
          );
        ,
          if (tour_soundson,
            if((plugin[soundinterface].bgsoundpaused == true AND scene[get(xml.scene)].video == false) OR (scene[get(xml.scene)].video == true AND scene[get(xml.scene)].scenevideomute == true),
              resumesound(bgsoundname);
              set(plugin[soundinterface].bgsoundpaused, false);
            );
          ,
            set(plugin[soundinterface].bgsoundtoforce, true);
            set(plugin[soundinterface].bgsound, false);
          );
        );
      );
    );
  ,
    delayedcall(0.2, playbackgroundsound());
  );
  </action>
  <action name="stopbackgroundsoundoncomplete">
    if (plugin[soundinterface].backgroundsound,
    if (plugin[soundinterface].backgroundsoundloops GT 0,

      set(plugin[soundinterface].backgroundsoundloops, 0);
      set(plugin[soundinterface].bgsound, false);
      set(plugin[soundinterface].bgsoundpaused, false);
      set(plugin[soundinterface].bgsoundloopended, true);
    );
    );
  </action>
  <action name="resetbackgroundsoundifneeded">
    if (xml.scene,
      if (scene[get(xml.scene)].backgroundsound != scene[%1].backgroundsound,
        if(plugin[soundinterface].backgroundsound,
          stopsound(bgsoundname);
        );
        set(plugin[soundinterface].backgroundsound, "");
        set(plugin[soundinterface].backgroundsoundloops, 0);
        set(plugin[soundinterface].bgsound, false);
        set(plugin[soundinterface].bgsoundpaused, false);
        set(plugin[soundinterface].bgsoundloopended, false);
      );
    );
  </action>
  <action name="pausebackgroundsound">
    if(plugin[soundinterface].backgroundsound,
      if (plugin[soundinterface].bgsound,
        if(plugin[soundinterface].bgsoundpaused == false AND plugin[soundinterface].bgsoundloopended == false,
          pausesound(bgsoundname);
          set(plugin[soundinterface].bgsoundpaused, true);
        );
      );
    );
    pauseVideoSceneSound();
  </action>
  <action name="resumebackgroundsound">
    set(bgSoundOnResume, true);
    set(forceBgSoundOnResume, true);
    if(layer[displayedStandardVideo],
    if(layer[displayedStandardVideo].pausebgsound AND tour_current_played_video,
      set(bgSoundOnResume, false);
      set(forceBgSoundOnResume, false);
    ););
    if(layer[webvideodisplay_player],
    if(layer[webvideodisplay_player].pausebgsound AND tour_current_played_web_video,
      set(bgSoundOnResume, false);
      set(forceBgSoundOnResume, false);
    ););
    if(tour_current_played_sound_pausesound AND tour_current_played_sound,
      set(bgSoundOnResume, false);
    );
    ifnot(plugin[soundinterface].backgroundsound AND scene[get(xml.scene)].backgroundsound,
      set(bgSoundOnResume, false);
    );
    if(videospots_playing GT 0,
      set(bgSoundOnResume, false);
      set(forceBgSoundOnResume, false);
    );
    if(bgSoundOnResume,
      if (plugin[soundinterface].backgroundsound,
        if (tour_soundson,
          if (plugin[soundinterface].bgsound AND plugin[soundinterface].bgsoundloopended == false,
            if((plugin[soundinterface].bgsoundpaused == true AND scene[get(xml.scene)].video == false) OR (scene[get(xml.scene)].video == true AND scene[get(xml.scene)].scenevideomute == true),
              resumesound(bgsoundname);
              set(plugin[soundinterface].bgsoundpaused, false);
            ,

              if(device.mobile OR device.tablet OR device.safari OR device.chrome,
                resumesound(bgsoundname);
                set(plugin[soundinterface].bgsoundpaused, false);
              );
            );
          ,
            if(((plugin[soundinterface].bgsoundpaused == true OR plugin[soundinterface].bgsoundtoforce == true) AND scene[get(xml.scene)].video == false) OR (scene[get(xml.scene)].video == true AND scene[get(xml.scene)].scenevideomute == true),
              set(plugin[soundinterface].bgsound, true);
              set(plugin[soundinterface].bgsoundpaused, false);
              set(plugin[soundinterface].bgsoundloopended, false);
              set(plugin[soundinterface].bgsoundtoforce, false);
              if(plugin[soundinterface].backgroundsoundloops GT 0,
                playsound(bgsoundname, get(plugin[soundinterface].backgroundsound), get(plugin[soundinterface].backgroundsoundloops), stopbackgroundsoundoncomplete());
              ,
                playsound(bgsoundname, get(plugin[soundinterface].backgroundsound), get(plugin[soundinterface].backgroundsoundloops));
              );
            );
          );
        );
      );
      resumeVideoSceneSound();
    ,
      if(forceBgSoundOnResume,
        playbackgroundsound();
        resumeVideoSceneSound();
      );
    );
  </action>
  <action name="resumeVideoSceneSound">
    if(scene[get(xml.scene)].video == true AND scene[get(xml.scene)].scenevideomute == false,
      videointerface_start_sound();
    );
  </action>
  <action name="pauseVideoSceneSound">
    if(scene[get(xml.scene)].video == true AND scene[get(xml.scene)].scenevideomute == false,
      videointerface_stop_sound();
    );
  </action>
  <action name="preloadSounds">
  </action>

  <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="resume3DLocalSounds">
    if (xml.scene, if (scene[get(xml.scene)].haslocalsounds, 
      set(kill3dSoundOnResume, true);
      if(layer[displayedStandardVideo],
      if(layer[displayedStandardVideo].pausebgsound,
      if(tour_current_played_video,
        set(kill3dSoundOnResume, false);
      );););
      if(layer[webvideodisplay_player],
      if(layer[webvideodisplay_player].pausebgsound,
      if(tour_current_played_web_video,
        set(kill3dSoundOnResume, false);
      );););
      if(tour_current_played_sound_pausesound,
      if(tour_current_played_sound,
        set(kill3dSoundOnResume, false);
      ););
      if(kill3dSoundOnResume,
        resumepanolocalsounds();
      );
    ););
  </action>
  <action name="pause3DLocalSounds">
    if (xml.scene, if (scene[get(xml.scene)].haslocalsounds, pausepanolocalsounds();););
  </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);
    resumeTourSoundsActions(true,true,true,true,true);
  </action>
  <action name="stopTourSounds">
    set(tour_soundson, false);events.dispatch(stoptoursoundsevent);
    pauseTourSoundsActions(true,true,true,true,true);
  </action>
  <action name="setTourSoundsVolume">
    set(tour_soundsvolume, %1);events.dispatch(changetoursoundsevent);
    div(volume, tour_soundsvolume, 100);
    set(plugin[soundinterface].volume, get(volume));
    set3DLocalSoundsVolume();
  </action>
  <action name="playTourSoundsActions">
    if(%1,
      if(plugin[soundinterface],
        if(plugin[soundinterface].started,
        play3DLocalSounds();
        );
      );
    );
    if(%2,
      if(plugin[soundinterface],
        if(plugin[soundinterface].started,
          resumebackgroundsound();
        );
      );
    );
  </action>
  <action name="stopTourSoundsActions">
    if(%1,
      stop3DLocalSounds();
    );
    if(%2,
      stopSoundActionsSounds();
    );
    if(%3,
      stopVideoActionsSounds();
    );
    if(%4,
      pausebackgroundsound();
    );
  </action>
  <action name="resumeTourSoundsActions">
    if(%1,
      if(plugin[soundinterface],
        if(plugin[soundinterface].started,
        resume3DLocalSounds();
        );
      );
    );
    if(%2,
      resumeSoundActionsSounds();
    );
    if(%3,
      resumeVideoActionsSounds();
    );
    if(%4,
      if(%5,
        if(plugin[soundinterface],
          if(plugin[soundinterface].started,
            resumebackgroundsound();
          );
        );
      ,
        pausebackgroundsound();
      );
    );
  </action>
  <action name="pauseTourSoundsActions">
    if(%1,
      pause3DLocalSounds();
    );
    if(%2,
      pauseSoundActionsSounds();
    );
    if(%3,
      pauseVideoActionsSounds();
    );
    if(%4,
      if(%5,
        pausebackgroundsound();
      ,
        if(plugin[soundinterface],
          if(plugin[soundinterface].started,
            resumebackgroundsound();
          );
        );
      );
    );
  </action>
  <action name="stopSoundActionsSounds">
    if (tour_current_played_sound,
      delete(tour_current_played_sound_paused);
      stopsound(get(tour_current_played_sound));
      delete(tour_current_played_sound);
      set(tour_current_played_sound_state, 0);
    );
  </action>
  <action name="stopVideoActionsSounds">
    if(tour_current_played_video,
      if(layer[displayedStandardVideo],
        layer[displayedStandardVideo].stop();
        removelayer(displayedStandardVideo);
        if(layer[displayedStandardVideoOverlayButton], removelayer(displayedStandardVideoOverlayButton); );
        if(layer[displayedStandardVideoOverlay], removelayer(displayedStandardVideoOverlay); );
        delete(tour_current_played_video);
        set(tour_current_played_video_state, 0);
      );
    );
    if(tour_current_played_web_video,
      displayWebVideoObjectClose();
    );
  </action>
  <action name="resumeSoundActionsSounds">
    if (tour_current_played_sound,
      set(resumeSoundActionsVerification, true);
      if(tour_current_played_video,
        if(tour_current_played_sound_state LT tour_current_played_video_state,
          set(resumeSoundActionsVerification, false);
        );
      );
      if(resumeSoundActionsVerification,
        if (tour_soundson,
          if(tour_current_played_sound_paused,
            set(tour_current_played_sound_paused, false);
            resumesound(get(tour_current_played_sound));
          ,

            if(device.mobile OR device.tablet OR device.safari OR device.chrome,
              set(tour_current_played_sound_paused, false);
              resumesound(get(tour_current_played_sound));
            );
          );
        );
      );
    );
  </action>
  <action name="resumeVideoActionsSounds">
    if(tour_current_played_video,
      set(resumeVideoActionsVerification, true);
      if(tour_current_played_sound,
        if(tour_current_played_video_state LT tour_current_played_sound_state,
          set(resumeVideoActionsVerification, false);
        );
      );
      if(resumeVideoActionsVerification,
        if (tour_soundson,
          if(device.flash OR (device.webgl AND !device.ios),
            div(volume, tour_soundsvolume, 100);
            set(layer[displayedStandardVideo].volume, get(volume));
          ,
            ifnot(device.ios,
              js(kpanotour.Sounds.startVideosSounds(get(volume)));
            ,
              if(tour_soundsvolume GT 0,
                set(layer[displayedStandardVideo].muted, false);
              ,
                set(layer[displayedStandardVideo].muted, true);
              );
            );
          );
        ,
          if(device.flash OR (device.webgl AND !device.ios),
            set(layer[displayedStandardVideo].volume, 0);
          ,
            ifnot(device.ios,
              js(kpanotour.Sounds.stopVideosSounds());
            ,
              set(layer[displayedStandardVideo].muted, true);
            );
          );
        );
      );
    );
  </action>
  <action name="pauseSoundActionsSounds">
    if (tour_current_played_sound,
      ifnot(tour_current_played_sound_paused,
        set(tour_current_played_sound_paused, true);
        pausesound(get(tour_current_played_sound));
      );
    );
  </action>
  <action name="pauseVideoActionsSounds">
    if(tour_current_played_video,
      if(device.flash OR (device.webgl AND !device.ios),
        set(layer[displayedStandardVideo].volume, 0);
      ,
        ifnot(device.ios,
          js(kpanotour.Sounds.stopVideosSounds());
        ,
          set(layer[displayedStandardVideo].muted, true);
        );
      );
    );
  </action>

</krpano>