<?xml version="1.0" encoding="UTF-8"?>
<!-- for xml compliance -->
<!-- Generated By Kolor Panotour 1.8.0 -->
<krpano version="1.0.8.14" logkey="false" onstart="start(get(scl));">
    <action name="mainloadpano">
		closepanoobjects();
		ifnot(stopSequence === undefined,interruptAnimation(););
		loadpano(%1,NULL,NULL,BLEND(1));
	</action>
    <plugin name="gyro" url="vmdata/graphics/gyro.js" devices="ipad|iphone" keep="true" enabled="true"/>
    <!--************** Plugins et données KrPano **************************************************-->
    <plugin name="data" firstPanoHasBeenPlayed="false" introImageHasBeenPlayed="false" keep="true"/>
    <!--************** Ouvre le premier pano ******************************************************-->
    <action name="start"> mainloadpano(vm%1.xml); </action> 
    <autorotate enabled="false"/>
    <!--************** Polices ********************************************************************-->
    <textstyle name="DEFAULT" background="false" bold="false" border="false" effect="dropshadow(0,45,0x000000,4,2);" font="Century Gothic" fontsize="24" italic="false" textcolor="0xffc8c8c8"/>
    <!--************** Introduction ***************************************************************-->
    <action name="firstloadcompleteaction">
		if(plugin[data].firstPanoHasBeenPlayed==false,
			set(plugin[data].firstPanoHasBeenPlayed,true);
			set(autorotate.enabled,true);
		);
	</action>
    <plugin name="introimage" width = "60%" height = "prop" url="vmdata/graphics/introImage.png" align="center" keep="true" onclick="hideintroimage();" onloaded="autohideintroimage();"/>
    <action name="hideintroimage">
		if(plugin[introimage].enabled,	set(plugin[introimage].enabled,false);tween(plugin[introimage].alpha, 0.0, 0.5, default, removeplugin(introimage)););
	</action>
    <action name="autohideintroimage">
		if(plugin[data].introImageHasBeenPlayed==false, 	set(plugin[introimage].alpha,0); tween(plugin[introimage].alpha,1.0,WAIT);
		delayedcall(5, hideintroimage() ); 
		set(plugin[data].introImageHasBeenPlayed,true););
	</action>
    <!--************** Logos **********************************************************************-->
    <plugin name="logo4" url="vmdata/graphics/logo4.png" keep="true" align="rightbottom" x="10" y="10" width="prop" height="10%" />
    <plugin name="logo6" url="vmdata/graphics/logo6.png" keep="true" align="leftbottom" x="10" y="10" width="150" height="prop" />
    <hotspot name="logo0" url="vmdata/graphics/logo0.png" keep="true" ath="0" atv="90" width="400" height="314" handcursor="false" capture="false"/>
    <!--************** Menu ***********************************************************************-->
    <events onnewpano="newPanoIsLoadedAction"/>
    <action name="newPanoIsLoadedAction">
      setMouseType(get(plugin[menudata].mousetype));
    </action>
    <plugin name="menudata" keep="true" mousetype="drag2d" playsounds="true"/>
    <!-- <plugin name="page info" align="bottom" crop="0|0|65|65" customColor="true" height="prop" keep="true" onclick="openurl(info.html,_self)" onout="" onover="" onovercrop="0|65|65|65" url="vmdata/graphics/menu/menu0.png" width="40" x="-280" y="10"/> -->
    <plugin name="in" align="bottom" crop="0|0|65|65" height="prop" keep="true" ondown="set(fov_moveforce,-1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(fov_moveforce,0);" url="vmdata/graphics/menu/menu1.png" width="40" x="-220" y="10"/>
    <plugin name="out" align="bottom" crop="0|0|65|65" height="prop" keep="true" ondown="set(fov_moveforce,+1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(fov_moveforce,0);" url="vmdata/graphics/menu/menu2.png" width="40" x="-180" y="10"/>
    <plugin name="left" align="bottom" crop="0|0|65|65" height="prop" keep="true" ondown="set(hlookat_moveforce,-1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(hlookat_moveforce,0);" url="vmdata/graphics/menu/menu3.png" width="40" x="-120" y="10"/>
    <plugin name="right" align="bottom" crop="0|0|65|65" height="prop" keep="true" ondown="set(hlookat_moveforce,+1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(hlookat_moveforce,0);" url="vmdata/graphics/menu/menu4.png" width="40" x="-80" y="10"/>
    <plugin name="up" align="bottom" crop="0|0|65|65" height="prop" keep="true" ondown="set(vlookat_moveforce,-1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(vlookat_moveforce,0);" url="vmdata/graphics/menu/menu5.png" width="40" x="-40" y="10"/>
    <plugin name="down" align="bottom" crop="0|0|65|65" height="prop" keep="true" ondown="set(vlookat_moveforce,+1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(vlookat_moveforce,0);" url="vmdata/graphics/menu/menu6.png" width="40" x="0" y="10"/>
    <plugin name="home" align="bottom" crop="0|0|65|65" height="prop" keep="true" onclick="lookto(get(panoview.h),get(panoview.v),get(panoview.fov),smooth(100,20,50));" onout="" onover="" onovercrop="0|65|65|65" url="vmdata/graphics/menu/menu7.png" width="40" x="40" y="10"/>
    <plugin name="openfs" align="bottom" blendmode="normal" crop="0|0|65|65" customColor="true" height="prop" keep="true" onclick="set(fullscreen,true);" onout="" onover="" onovercrop="0|65|65|65" url="vmdata/graphics/menu/menu8.png" width="40" x="100" y="10"/>
    <plugin name="closefs" align="bottom" blendmode="normal" crop="0|0|65|65" customColor="true" height="prop" keep="true" onclick="set(fullscreen,false);" onout="" onover="" onovercrop="0|65|65|65" url="vmdata/graphics/menu/menu9.png" visible="false" width="40" x="100" y="10"/>
    <plugin name="autorotationON" align="bottom" blendmode="normal" crop="0|0|65|65" customColor="true" height="prop" keep="true" onclick="switch(autorotate.enabled);set(plugin[autorotationON].visible,false); set(plugin[autorotationOFF].visible,true);" onout="" onover="" onovercrop="0|65|65|65" url="vmdata/graphics/menu/menu10.png" visible="" width="40" x="140" y="10"/>
    <plugin name="autorotationOFF" align="bottom" blendmode="normal" crop="0|0|65|65" customColor="true" height="prop" keep="true" onclick="switch(autorotate.enabled);set(plugin[autorotationOFF].visible,false); set(plugin[autorotationON].visible,true);" onovercrop="0|65|65|65" url="vmdata/graphics/menu/menu11.png" visible="" width="40" x="140" y="10"/>
    <plugin name="dragON" align="bottom" blendmode="normal" crop="0|0|65|65" customColor="true" height="prop" keep="true" onclick="changemousetype();set(plugin[dragON].visible,false); set(plugin[dragOFF].visible,true);" onout="" onover="" onovercrop="0|65|65|65" url="vmdata/graphics/menu/menu12.png" visible="true" width="40" x="180" y="10"/>
    <plugin name="dragOFF" align="bottom" blendmode="normal" crop="0|0|65|65" customColor="true" height="prop" keep="true" onclick="changemousetype();set(plugin[dragOFF].visible,false); set(plugin[dragON].visible,true);" onovercrop="0|65|65|65" url="vmdata/graphics/menu/menu13.png" visible="false" width="40" x="180" y="10"/>
    <plugin name="info" align="bottom" crop="0|0|65|65" customColor="true" height="prop" keep="true" onclick="displayHelp();" onout="" onover="" onovercrop="0|65|65|65" url="vmdata/graphics/menu/menu14.png" width="40" x="220" y="10"/>
    <plugin name="helpScreen" align="center" customColor="true" keep="true" onclick="closeHelp();" url="vmdata/graphics/menu/help.png" visible="false"/>
    <plugin name="btn_qrcode" align="bottom" crop="0|0|65|65" customColor="true" height="prop" keep="true" onclick="closeallobjects();set(plugin[imageqrcode].visible,true);tween(plugin[imageqrcode].alpha, 1);" onout="" onover="" onovercrop="0|65|65|65" url="vmdata/graphics/menu/menu15.png" width="40" x="300" y="10"/>
    <plugin name="imageqrcode" align="center" alpha="0" height="340" onclick="fermeqrcode();" url="vmdata/graphics/menu/menu16.png" visible="false" width="280"/>
    <action name="fermeqrcode">
		if(plugin[imageqrcode].visible,
		tween(plugin[imageqrcode].alpha, 0);
		delayedcall(0,set(plugin[imageqrcode].visible,false));
		);
	</action>
    <action name="closeallobjects">
		closeecran_info();
		fermeqrcode();
	</action>
    <action name="changemousetype">
       if (plugin[menudata].mousetype == drag2d,
          set(plugin[menudata].mousetype, moveto);
          ,
          set(plugin[menudata].mousetype, drag2d);
       );
       setMouseType(get(plugin[menudata].mousetype));
    </action>
    <action name="setMouseType">
      set(control.mousetype, %1);
      if (%1 == moveto, setarrowcursors();, sethandcursors(););
    </action>
    <action name="setarrowcursors">

      set(cursors.url     , vmdata/graphics/menu/menu17.png);
      set(cursors.type    ,        8way);
	  set(cursors.move    ,   270|0|30|30);
	  set(cursors.drag    ,   0|0|30|30);
      set(cursors.arrow_l ,  30|0|30|30);
      set(cursors.arrow_lu,  60|0|30|30);
      set(cursors.arrow_u ,  90|0|30|30);
      set(cursors.arrow_ru,  120|0|30|30);
      set(cursors.arrow_r , 150|0|30|30);
      set(cursors.arrow_rd, 180|0|30|30);
      set(cursors.arrow_d , 210|0|30|30);
      set(cursors.arrow_ld, 240|0|30|30);
	  
	  
    </action>
    <action name="sethandcursors">
      set(cursors.url , vmdata/graphics/menu/menu18.png);
      set(cursors.type, 2way);
      set(cursors.move, 0|0|32|32);
      set(cursors.drag, 32|0|32|32);
    </action>
    <action name="displayHelp">
        set(plugin[helpScreen].visible,true);
        set(plugin[info].onclick,closeHelp();)
    </action>
    <action name="displayqrcode">
        set(plugin[qrcodeScreen].visible,true);
        set(plugin[info].onclick,closeqrcode();)
    </action>
    <action name="closeHelp">
        set(plugin[helpScreen].visible,false);
        set(plugin[info].onclick,displayHelp();)
    </action>
    <events onenterfullscreen="set(plugin[openfs].visible,false); set(plugin[closefs].visible,true);" onexitfullscreen="set(plugin[openfs].visible,true); set(plugin[closefs].visible,false);"/>
    <action name="show_html_field">
		set(plugin[htmltext].y,0); 
		tween(plugin[htmltext].alpha,1,0);
		tween(plugin[htmltext].textblur,0,0);
		tween(plugin[htmltext].blur,0,0);
		set(plugin[htmltext].visible,true);
		set(plugin[htmltext].enabled,true);
		tween(plugin[htmltext].y,0);
	</action>
    <!--************** Plan ***********************************************************************-->
    <plugin name="map" url="vmdata/map/map.png" keep="true" align="lefttop" x="10" y="10" width="prop" height="70%" handcursor="false" onloaded="showmapspot();" onclick="closemap"/>
    <plugin keep="true" visible="false" name="mapspot0" hview="8.26" vview="0" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm0.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée centrale - 1);" align="lefttop" edge="center" parent="map" x="51.0309%" y="90.0194%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot1" hview="-5.13" vview="-0.51" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm1.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée centrale - 2);" align="lefttop" edge="center" parent="map" x="51.0309%" y="84.593%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot2" hview="-2.87" vview="-0.73" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm3.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot1.png" blingCounter="0" onhover="showtext(Allée centrale - 4);" align="lefttop" edge="center" parent="map" x="51.0309%" y="73.8372%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot3" hview="4.81" vview="-0.94" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm4.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot1.png" blingCounter="0" onhover="showtext(Allée centrale - 5);" align="lefttop" edge="center" parent="map" x="51.0309%" y="68.5078%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot4" hview="-5.93" vview="0.94" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm5.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot1.png" blingCounter="0" onhover="showtext(Allée centrale - 6);" align="lefttop" edge="center" parent="map" x="51.0309%" y="63.0814%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot5" hview="-3.46" vview="1.17" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm6.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée centrale - 7);" align="lefttop" edge="center" parent="map" x="51.0309%" y="57.5581%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot6" hview="-7.16" vview="0.15" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm7.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée centrale - 8);" align="lefttop" edge="center" parent="map" x="51.0309%" y="52.907%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot7" hview="-5.41" vview="-1.89" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm8.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée centrale - 9);" align="lefttop" edge="center" parent="map" x="51.0309%" y="47.9651%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot8" hview="4.97" vview="0.51" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm9.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée centrale - 10);" align="lefttop" edge="center" parent="map" x="51.0309%" y="43.1202%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot9" hview="2.2" vview="1.52" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm11.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée centrale - 12);" align="lefttop" edge="center" parent="map" x="51.0309%" y="32.0736%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot10" hview="5.69" vview="-0.44" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm12.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée centrale - 13);" align="lefttop" edge="center" parent="map" x="51.0309%" y="26.2597%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot11" hview="-5.92" vview="1.53" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm2.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée centrale - 3);" align="lefttop" edge="center" parent="map" x="51.0309%" y="79.1667%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot12" hview="3.79" vview="0" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm13.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Fond - 1);" align="lefttop" edge="center" parent="map" x="50.8591%" y="18.1202%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot13" hview="-178.95" vview="-1.23" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm15.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Fond - 3);" align="lefttop" edge="center" parent="map" x="62.0275%" y="12.5%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot14" hview="149.73" vview="-1.89" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm17.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Fond - 5);" align="lefttop" edge="center" parent="map" x="39.0034%" y="12.5%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot15" hview="177.5" vview="0" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm14.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Fond - 2);" align="lefttop" edge="center" parent="map" x="51.0309%" y="12.4031%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot16" hview="-101.62" vview="0.08" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm16.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Fond - 4);" align="lefttop" edge="center" parent="map" x="62.543%" y="18.1202%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot17" hview="154.17" vview="-1.38" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm18.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Fond - 6);" align="lefttop" edge="center" parent="map" x="36.9416%" y="18.1202%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot18" hview="-95.82" vview="0" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm33.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée gauche - 9);" align="lefttop" edge="center" parent="map" x="19.9313%" y="16.7636%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot19" hview="145.48" vview="0.88" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm32.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée gauche - 10);" align="lefttop" edge="center" parent="map" x="26.2887%" y="20.3488%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot20" hview="-145.48" vview="-0.58" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm31.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée droite - 1);" align="lefttop" edge="center" parent="map" x="79.2096%" y="84.593%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot21" hview="128.64" vview="-0.15" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm41.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée gauche - 1);" align="lefttop" edge="center" parent="map" x="24.3986%" y="56.9767%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot22" hview="161.16" vview="0.22" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm40.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée gauche - 2);" align="lefttop" edge="center" parent="map" x="16.6667%" y="56.4922%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot23" hview="172.64" vview="-3.63" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm39.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée gauche - 3);" align="lefttop" edge="center" parent="map" x="20.2749%" y="51.8411%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot24" hview="-174.3" vview="-0.43" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm38.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée gauche - 4);" align="lefttop" edge="center" parent="map" x="20.2749%" y="47.2868%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot25" hview="-173.13" vview="0.07" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm36.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée gauche - 6);" align="lefttop" edge="center" parent="map" x="20.2749%" y="37.0155%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot26" hview="-176.62" vview="-1.09" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm35.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée gauche - 7);" align="lefttop" edge="center" parent="map" x="20.2749%" y="31.3953%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot27" hview="174.38" vview="1.52" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm34.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée gauche - 8);" align="lefttop" edge="center" parent="map" x="20.2749%" y="25.969%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot28" hview="-170.59" vview="0.94" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm37.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée gauche - 5);" align="lefttop" edge="center" parent="map" x="20.4467%" y="42.1512%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot29" hview="-127.35" vview="-0.29" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm19.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée droite - 13);" align="lefttop" edge="center" parent="map" x="71.6495%" y="18.1202%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot30" hview="-2.01" vview="-0.87" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm20.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée droite - 12);" align="lefttop" edge="center" parent="map" x="79.0378%" y="19.9612%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot31" hview="102.42" vview="0.3" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm30.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée droite - 2);" align="lefttop" edge="center" parent="map" x="79.2096%" y="77.8101%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot32" hview="167.91" vview="-0.07" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm29.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée droite - 3);" align="lefttop" edge="center" parent="map" x="79.0378%" y="71.3178%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot33" hview="176.12" vview="-0.8" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm28.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée droite - 4);" align="lefttop" edge="center" parent="map" x="79.0378%" y="65.0194%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot34" hview="59.45" vview="0.43" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm27.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée droite - 5);" align="lefttop" edge="center" parent="map" x="79.0378%" y="59.2054%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot35" hview="173.29" vview="-0.58" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm26.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée droite - 6);" align="lefttop" edge="center" parent="map" x="79.2096%" y="53.1977%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot36" hview="144.61" vview="0.21" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm25.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée droite - 7);" align="lefttop" edge="center" parent="map" x="79.0378%" y="47.093%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot37" hview="61.55" vview="-2.26" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm24.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée droite - 8);" align="lefttop" edge="center" parent="map" x="79.2096%" y="41.2791%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot38" hview="-160.79" vview="0.73" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm22.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée droite - 10);" align="lefttop" edge="center" parent="map" x="79.2096%" y="30.2326%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot39" hview="108.53" vview="0.15" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm21.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée droite - 11);" align="lefttop" edge="center" parent="map" x="79.2096%" y="24.9031%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot40" hview="50.81" vview="-0.36" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm23.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée droite - 9);" align="lefttop" edge="center" parent="map" x="79.2096%" y="35.7558%" width="30" height="30"/>
    <plugin keep="true" visible="false" name="mapspot41" hview="5.83" vview="0.15" fovview="75" hcenter="" vcenter="" onclick="mainloadpano(vm10.xml);lookat(get(hview),get(vview),get(fovview));" url="vmdata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Allée centrale - 11);" align="lefttop" edge="center" parent="map" x="50.8591%" y="37.6938%" width="30" height="30"/>
    <plugin name="mapradar" parent="map" edge="center" align="lefttop" keep="true" url="vmdata/map/radar.swf" alturl="vmdata/map/radar.js" visible="true" width="70" height="70" linecolor="0xffffff" linealpha="0.494118" linewidth="2" fillcolor="0xffffff" fillalpha="0.494118"/>
    <action name="showmapspot">
		set(  plugin[mapspot0].alpha  , 0);
		set(  plugin[mapspot0].visible, true);
		tween(plugin[mapspot0].alpha  , 1);
		set(  plugin[mapspot1].alpha  , 0);
		set(  plugin[mapspot1].visible, true);
		tween(plugin[mapspot1].alpha  , 1);
		set(  plugin[mapspot2].alpha  , 0);
		set(  plugin[mapspot2].visible, true);
		tween(plugin[mapspot2].alpha  , 1);
		set(  plugin[mapspot3].alpha  , 0);
		set(  plugin[mapspot3].visible, true);
		tween(plugin[mapspot3].alpha  , 1);
		set(  plugin[mapspot4].alpha  , 0);
		set(  plugin[mapspot4].visible, true);
		tween(plugin[mapspot4].alpha  , 1);
		set(  plugin[mapspot5].alpha  , 0);
		set(  plugin[mapspot5].visible, true);
		tween(plugin[mapspot5].alpha  , 1);
		set(  plugin[mapspot6].alpha  , 0);
		set(  plugin[mapspot6].visible, true);
		tween(plugin[mapspot6].alpha  , 1);
		set(  plugin[mapspot7].alpha  , 0);
		set(  plugin[mapspot7].visible, true);
		tween(plugin[mapspot7].alpha  , 1);
		set(  plugin[mapspot8].alpha  , 0);
		set(  plugin[mapspot8].visible, true);
		tween(plugin[mapspot8].alpha  , 1);
		set(  plugin[mapspot9].alpha  , 0);
		set(  plugin[mapspot9].visible, true);
		tween(plugin[mapspot9].alpha  , 1);
		set(  plugin[mapspot10].alpha  , 0);
		set(  plugin[mapspot10].visible, true);
		tween(plugin[mapspot10].alpha  , 1);
		set(  plugin[mapspot11].alpha  , 0);
		set(  plugin[mapspot11].visible, true);
		tween(plugin[mapspot11].alpha  , 1);
		set(  plugin[mapspot12].alpha  , 0);
		set(  plugin[mapspot12].visible, true);
		tween(plugin[mapspot12].alpha  , 1);
		set(  plugin[mapspot13].alpha  , 0);
		set(  plugin[mapspot13].visible, true);
		tween(plugin[mapspot13].alpha  , 1);
		set(  plugin[mapspot14].alpha  , 0);
		set(  plugin[mapspot14].visible, true);
		tween(plugin[mapspot14].alpha  , 1);
		set(  plugin[mapspot15].alpha  , 0);
		set(  plugin[mapspot15].visible, true);
		tween(plugin[mapspot15].alpha  , 1);
		set(  plugin[mapspot16].alpha  , 0);
		set(  plugin[mapspot16].visible, true);
		tween(plugin[mapspot16].alpha  , 1);
		set(  plugin[mapspot17].alpha  , 0);
		set(  plugin[mapspot17].visible, true);
		tween(plugin[mapspot17].alpha  , 1);
		set(  plugin[mapspot18].alpha  , 0);
		set(  plugin[mapspot18].visible, true);
		tween(plugin[mapspot18].alpha  , 1);
		set(  plugin[mapspot19].alpha  , 0);
		set(  plugin[mapspot19].visible, true);
		tween(plugin[mapspot19].alpha  , 1);
		set(  plugin[mapspot20].alpha  , 0);
		set(  plugin[mapspot20].visible, true);
		tween(plugin[mapspot20].alpha  , 1);
		set(  plugin[mapspot21].alpha  , 0);
		set(  plugin[mapspot21].visible, true);
		tween(plugin[mapspot21].alpha  , 1);
		set(  plugin[mapspot22].alpha  , 0);
		set(  plugin[mapspot22].visible, true);
		tween(plugin[mapspot22].alpha  , 1);
		set(  plugin[mapspot23].alpha  , 0);
		set(  plugin[mapspot23].visible, true);
		tween(plugin[mapspot23].alpha  , 1);
		set(  plugin[mapspot24].alpha  , 0);
		set(  plugin[mapspot24].visible, true);
		tween(plugin[mapspot24].alpha  , 1);
		set(  plugin[mapspot25].alpha  , 0);
		set(  plugin[mapspot25].visible, true);
		tween(plugin[mapspot25].alpha  , 1);
		set(  plugin[mapspot26].alpha  , 0);
		set(  plugin[mapspot26].visible, true);
		tween(plugin[mapspot26].alpha  , 1);
		set(  plugin[mapspot27].alpha  , 0);
		set(  plugin[mapspot27].visible, true);
		tween(plugin[mapspot27].alpha  , 1);
		set(  plugin[mapspot28].alpha  , 0);
		set(  plugin[mapspot28].visible, true);
		tween(plugin[mapspot28].alpha  , 1);
		set(  plugin[mapspot29].alpha  , 0);
		set(  plugin[mapspot29].visible, true);
		tween(plugin[mapspot29].alpha  , 1);
		set(  plugin[mapspot30].alpha  , 0);
		set(  plugin[mapspot30].visible, true);
		tween(plugin[mapspot30].alpha  , 1);
		set(  plugin[mapspot31].alpha  , 0);
		set(  plugin[mapspot31].visible, true);
		tween(plugin[mapspot31].alpha  , 1);
		set(  plugin[mapspot32].alpha  , 0);
		set(  plugin[mapspot32].visible, true);
		tween(plugin[mapspot32].alpha  , 1);
		set(  plugin[mapspot33].alpha  , 0);
		set(  plugin[mapspot33].visible, true);
		tween(plugin[mapspot33].alpha  , 1);
		set(  plugin[mapspot34].alpha  , 0);
		set(  plugin[mapspot34].visible, true);
		tween(plugin[mapspot34].alpha  , 1);
		set(  plugin[mapspot35].alpha  , 0);
		set(  plugin[mapspot35].visible, true);
		tween(plugin[mapspot35].alpha  , 1);
		set(  plugin[mapspot36].alpha  , 0);
		set(  plugin[mapspot36].visible, true);
		tween(plugin[mapspot36].alpha  , 1);
		set(  plugin[mapspot37].alpha  , 0);
		set(  plugin[mapspot37].visible, true);
		tween(plugin[mapspot37].alpha  , 1);
		set(  plugin[mapspot38].alpha  , 0);
		set(  plugin[mapspot38].visible, true);
		tween(plugin[mapspot38].alpha  , 1);
		set(  plugin[mapspot39].alpha  , 0);
		set(  plugin[mapspot39].visible, true);
		tween(plugin[mapspot39].alpha  , 1);
		set(  plugin[mapspot40].alpha  , 0);
		set(  plugin[mapspot40].visible, true);
		tween(plugin[mapspot40].alpha  , 1);
		set(  plugin[mapspot41].alpha  , 0);
		set(  plugin[mapspot41].visible, true);
		tween(plugin[mapspot41].alpha  , 1);
	</action>
    <action name="hidemapspot">
		set(plugin[mapspot0].visible,false);
		set(plugin[mapspot1].visible,false);
		set(plugin[mapspot2].visible,false);
		set(plugin[mapspot3].visible,false);
		set(plugin[mapspot4].visible,false);
		set(plugin[mapspot5].visible,false);
		set(plugin[mapspot6].visible,false);
		set(plugin[mapspot7].visible,false);
		set(plugin[mapspot8].visible,false);
		set(plugin[mapspot9].visible,false);
		set(plugin[mapspot10].visible,false);
		set(plugin[mapspot11].visible,false);
		set(plugin[mapspot12].visible,false);
		set(plugin[mapspot13].visible,false);
		set(plugin[mapspot14].visible,false);
		set(plugin[mapspot15].visible,false);
		set(plugin[mapspot16].visible,false);
		set(plugin[mapspot17].visible,false);
		set(plugin[mapspot18].visible,false);
		set(plugin[mapspot19].visible,false);
		set(plugin[mapspot20].visible,false);
		set(plugin[mapspot21].visible,false);
		set(plugin[mapspot22].visible,false);
		set(plugin[mapspot23].visible,false);
		set(plugin[mapspot24].visible,false);
		set(plugin[mapspot25].visible,false);
		set(plugin[mapspot26].visible,false);
		set(plugin[mapspot27].visible,false);
		set(plugin[mapspot28].visible,false);
		set(plugin[mapspot29].visible,false);
		set(plugin[mapspot30].visible,false);
		set(plugin[mapspot31].visible,false);
		set(plugin[mapspot32].visible,false);
		set(plugin[mapspot33].visible,false);
		set(plugin[mapspot34].visible,false);
		set(plugin[mapspot35].visible,false);
		set(plugin[mapspot36].visible,false);
		set(plugin[mapspot37].visible,false);
		set(plugin[mapspot38].visible,false);
		set(plugin[mapspot39].visible,false);
		set(plugin[mapspot40].visible,false);
		set(plugin[mapspot41].visible,false);
	</action>
    <!-- fermeture du plan -->
    <action name="closemap">
		set(plugin[mapradar].visible,false);
		hidemapspot();
		set(plugin[map].onclick,openmap);
		tween(plugin[map].height,20%);
	</action>
    <!-- ouverture du plan -->
    <action name="openmap">
		if(plugin[mapradar].shouldbevisible == true, set(plugin[mapradar].visible,true););
		set(plugin[map].onclick, closemap);
		set(plugin[map].width, prop);
		tween(plugin[map].height, 70%, 0.5, easeoutquad, showmapspot(););
		set(plugin[map].align, lefttop);
		set(plugin[map].x    , 10);
		set(plugin[map].y    , 10);
	</action>
    <!-- Désélectionne tous les spot de la cartes sauf celui passé en argument -->
    <!-- Désélectionne tous les spot de la carte si aucun argument n'est fourni -->
    <action name="unselectmapspotsbutpassed">
		set(plugin[mapradar].visible        , false);
		set(plugin[mapradar].shouldbevisible, false);
		if (%1 != mapspot0,
				if(plugin[mapspot0].animated,
				set(plugin[mapspot0].frame           , 0);
				set(plugin[mapspot0].ypos            , 0);
				set(plugin[mapspot0].animationCounter, 0)
				txtadd(plugin[mapspot0].crop,'0|0|',get(plugin[mapspot0].framewidth),'|',get(plugin[mapspot0].frameheight));
			,
				set(plugin[mapspot0].blingCounter, 0)
			)
		);
		resetmapspot(mapspot0);
		if (%1 != mapspot1,
				if(plugin[mapspot1].animated,
				set(plugin[mapspot1].frame           , 0);
				set(plugin[mapspot1].ypos            , 0);
				set(plugin[mapspot1].animationCounter, 0)
				txtadd(plugin[mapspot1].crop,'0|0|',get(plugin[mapspot1].framewidth),'|',get(plugin[mapspot1].frameheight));
			,
				set(plugin[mapspot1].blingCounter, 0)
			)
		);
		resetmapspot(mapspot1);
		if (%1 != mapspot2,
				if(plugin[mapspot2].animated,
				set(plugin[mapspot2].frame           , 0);
				set(plugin[mapspot2].ypos            , 0);
				set(plugin[mapspot2].animationCounter, 0)
				txtadd(plugin[mapspot2].crop,'0|0|',get(plugin[mapspot2].framewidth),'|',get(plugin[mapspot2].frameheight));
			,
				set(plugin[mapspot2].blingCounter, 0)
			)
		);
		resetmapspot(mapspot2);
		if (%1 != mapspot3,
				if(plugin[mapspot3].animated,
				set(plugin[mapspot3].frame           , 0);
				set(plugin[mapspot3].ypos            , 0);
				set(plugin[mapspot3].animationCounter, 0)
				txtadd(plugin[mapspot3].crop,'0|0|',get(plugin[mapspot3].framewidth),'|',get(plugin[mapspot3].frameheight));
			,
				set(plugin[mapspot3].blingCounter, 0)
			)
		);
		resetmapspot(mapspot3);
		if (%1 != mapspot4,
				if(plugin[mapspot4].animated,
				set(plugin[mapspot4].frame           , 0);
				set(plugin[mapspot4].ypos            , 0);
				set(plugin[mapspot4].animationCounter, 0)
				txtadd(plugin[mapspot4].crop,'0|0|',get(plugin[mapspot4].framewidth),'|',get(plugin[mapspot4].frameheight));
			,
				set(plugin[mapspot4].blingCounter, 0)
			)
		);
		resetmapspot(mapspot4);
		if (%1 != mapspot5,
				if(plugin[mapspot5].animated,
				set(plugin[mapspot5].frame           , 0);
				set(plugin[mapspot5].ypos            , 0);
				set(plugin[mapspot5].animationCounter, 0)
				txtadd(plugin[mapspot5].crop,'0|0|',get(plugin[mapspot5].framewidth),'|',get(plugin[mapspot5].frameheight));
			,
				set(plugin[mapspot5].blingCounter, 0)
			)
		);
		resetmapspot(mapspot5);
		if (%1 != mapspot6,
				if(plugin[mapspot6].animated,
				set(plugin[mapspot6].frame           , 0);
				set(plugin[mapspot6].ypos            , 0);
				set(plugin[mapspot6].animationCounter, 0)
				txtadd(plugin[mapspot6].crop,'0|0|',get(plugin[mapspot6].framewidth),'|',get(plugin[mapspot6].frameheight));
			,
				set(plugin[mapspot6].blingCounter, 0)
			)
		);
		resetmapspot(mapspot6);
		if (%1 != mapspot7,
				if(plugin[mapspot7].animated,
				set(plugin[mapspot7].frame           , 0);
				set(plugin[mapspot7].ypos            , 0);
				set(plugin[mapspot7].animationCounter, 0)
				txtadd(plugin[mapspot7].crop,'0|0|',get(plugin[mapspot7].framewidth),'|',get(plugin[mapspot7].frameheight));
			,
				set(plugin[mapspot7].blingCounter, 0)
			)
		);
		resetmapspot(mapspot7);
		if (%1 != mapspot8,
				if(plugin[mapspot8].animated,
				set(plugin[mapspot8].frame           , 0);
				set(plugin[mapspot8].ypos            , 0);
				set(plugin[mapspot8].animationCounter, 0)
				txtadd(plugin[mapspot8].crop,'0|0|',get(plugin[mapspot8].framewidth),'|',get(plugin[mapspot8].frameheight));
			,
				set(plugin[mapspot8].blingCounter, 0)
			)
		);
		resetmapspot(mapspot8);
		if (%1 != mapspot9,
				if(plugin[mapspot9].animated,
				set(plugin[mapspot9].frame           , 0);
				set(plugin[mapspot9].ypos            , 0);
				set(plugin[mapspot9].animationCounter, 0)
				txtadd(plugin[mapspot9].crop,'0|0|',get(plugin[mapspot9].framewidth),'|',get(plugin[mapspot9].frameheight));
			,
				set(plugin[mapspot9].blingCounter, 0)
			)
		);
		resetmapspot(mapspot9);
		if (%1 != mapspot10,
				if(plugin[mapspot10].animated,
				set(plugin[mapspot10].frame           , 0);
				set(plugin[mapspot10].ypos            , 0);
				set(plugin[mapspot10].animationCounter, 0)
				txtadd(plugin[mapspot10].crop,'0|0|',get(plugin[mapspot10].framewidth),'|',get(plugin[mapspot10].frameheight));
			,
				set(plugin[mapspot10].blingCounter, 0)
			)
		);
		resetmapspot(mapspot10);
		if (%1 != mapspot11,
				if(plugin[mapspot11].animated,
				set(plugin[mapspot11].frame           , 0);
				set(plugin[mapspot11].ypos            , 0);
				set(plugin[mapspot11].animationCounter, 0)
				txtadd(plugin[mapspot11].crop,'0|0|',get(plugin[mapspot11].framewidth),'|',get(plugin[mapspot11].frameheight));
			,
				set(plugin[mapspot11].blingCounter, 0)
			)
		);
		resetmapspot(mapspot11);
		if (%1 != mapspot12,
				if(plugin[mapspot12].animated,
				set(plugin[mapspot12].frame           , 0);
				set(plugin[mapspot12].ypos            , 0);
				set(plugin[mapspot12].animationCounter, 0)
				txtadd(plugin[mapspot12].crop,'0|0|',get(plugin[mapspot12].framewidth),'|',get(plugin[mapspot12].frameheight));
			,
				set(plugin[mapspot12].blingCounter, 0)
			)
		);
		resetmapspot(mapspot12);
		if (%1 != mapspot13,
				if(plugin[mapspot13].animated,
				set(plugin[mapspot13].frame           , 0);
				set(plugin[mapspot13].ypos            , 0);
				set(plugin[mapspot13].animationCounter, 0)
				txtadd(plugin[mapspot13].crop,'0|0|',get(plugin[mapspot13].framewidth),'|',get(plugin[mapspot13].frameheight));
			,
				set(plugin[mapspot13].blingCounter, 0)
			)
		);
		resetmapspot(mapspot13);
		if (%1 != mapspot14,
				if(plugin[mapspot14].animated,
				set(plugin[mapspot14].frame           , 0);
				set(plugin[mapspot14].ypos            , 0);
				set(plugin[mapspot14].animationCounter, 0)
				txtadd(plugin[mapspot14].crop,'0|0|',get(plugin[mapspot14].framewidth),'|',get(plugin[mapspot14].frameheight));
			,
				set(plugin[mapspot14].blingCounter, 0)
			)
		);
		resetmapspot(mapspot14);
		if (%1 != mapspot15,
				if(plugin[mapspot15].animated,
				set(plugin[mapspot15].frame           , 0);
				set(plugin[mapspot15].ypos            , 0);
				set(plugin[mapspot15].animationCounter, 0)
				txtadd(plugin[mapspot15].crop,'0|0|',get(plugin[mapspot15].framewidth),'|',get(plugin[mapspot15].frameheight));
			,
				set(plugin[mapspot15].blingCounter, 0)
			)
		);
		resetmapspot(mapspot15);
		if (%1 != mapspot16,
				if(plugin[mapspot16].animated,
				set(plugin[mapspot16].frame           , 0);
				set(plugin[mapspot16].ypos            , 0);
				set(plugin[mapspot16].animationCounter, 0)
				txtadd(plugin[mapspot16].crop,'0|0|',get(plugin[mapspot16].framewidth),'|',get(plugin[mapspot16].frameheight));
			,
				set(plugin[mapspot16].blingCounter, 0)
			)
		);
		resetmapspot(mapspot16);
		if (%1 != mapspot17,
				if(plugin[mapspot17].animated,
				set(plugin[mapspot17].frame           , 0);
				set(plugin[mapspot17].ypos            , 0);
				set(plugin[mapspot17].animationCounter, 0)
				txtadd(plugin[mapspot17].crop,'0|0|',get(plugin[mapspot17].framewidth),'|',get(plugin[mapspot17].frameheight));
			,
				set(plugin[mapspot17].blingCounter, 0)
			)
		);
		resetmapspot(mapspot17);
		if (%1 != mapspot18,
				if(plugin[mapspot18].animated,
				set(plugin[mapspot18].frame           , 0);
				set(plugin[mapspot18].ypos            , 0);
				set(plugin[mapspot18].animationCounter, 0)
				txtadd(plugin[mapspot18].crop,'0|0|',get(plugin[mapspot18].framewidth),'|',get(plugin[mapspot18].frameheight));
			,
				set(plugin[mapspot18].blingCounter, 0)
			)
		);
		resetmapspot(mapspot18);
		if (%1 != mapspot19,
				if(plugin[mapspot19].animated,
				set(plugin[mapspot19].frame           , 0);
				set(plugin[mapspot19].ypos            , 0);
				set(plugin[mapspot19].animationCounter, 0)
				txtadd(plugin[mapspot19].crop,'0|0|',get(plugin[mapspot19].framewidth),'|',get(plugin[mapspot19].frameheight));
			,
				set(plugin[mapspot19].blingCounter, 0)
			)
		);
		resetmapspot(mapspot19);
		if (%1 != mapspot20,
				if(plugin[mapspot20].animated,
				set(plugin[mapspot20].frame           , 0);
				set(plugin[mapspot20].ypos            , 0);
				set(plugin[mapspot20].animationCounter, 0)
				txtadd(plugin[mapspot20].crop,'0|0|',get(plugin[mapspot20].framewidth),'|',get(plugin[mapspot20].frameheight));
			,
				set(plugin[mapspot20].blingCounter, 0)
			)
		);
		resetmapspot(mapspot20);
		if (%1 != mapspot21,
				if(plugin[mapspot21].animated,
				set(plugin[mapspot21].frame           , 0);
				set(plugin[mapspot21].ypos            , 0);
				set(plugin[mapspot21].animationCounter, 0)
				txtadd(plugin[mapspot21].crop,'0|0|',get(plugin[mapspot21].framewidth),'|',get(plugin[mapspot21].frameheight));
			,
				set(plugin[mapspot21].blingCounter, 0)
			)
		);
		resetmapspot(mapspot21);
		if (%1 != mapspot22,
				if(plugin[mapspot22].animated,
				set(plugin[mapspot22].frame           , 0);
				set(plugin[mapspot22].ypos            , 0);
				set(plugin[mapspot22].animationCounter, 0)
				txtadd(plugin[mapspot22].crop,'0|0|',get(plugin[mapspot22].framewidth),'|',get(plugin[mapspot22].frameheight));
			,
				set(plugin[mapspot22].blingCounter, 0)
			)
		);
		resetmapspot(mapspot22);
		if (%1 != mapspot23,
				if(plugin[mapspot23].animated,
				set(plugin[mapspot23].frame           , 0);
				set(plugin[mapspot23].ypos            , 0);
				set(plugin[mapspot23].animationCounter, 0)
				txtadd(plugin[mapspot23].crop,'0|0|',get(plugin[mapspot23].framewidth),'|',get(plugin[mapspot23].frameheight));
			,
				set(plugin[mapspot23].blingCounter, 0)
			)
		);
		resetmapspot(mapspot23);
		if (%1 != mapspot24,
				if(plugin[mapspot24].animated,
				set(plugin[mapspot24].frame           , 0);
				set(plugin[mapspot24].ypos            , 0);
				set(plugin[mapspot24].animationCounter, 0)
				txtadd(plugin[mapspot24].crop,'0|0|',get(plugin[mapspot24].framewidth),'|',get(plugin[mapspot24].frameheight));
			,
				set(plugin[mapspot24].blingCounter, 0)
			)
		);
		resetmapspot(mapspot24);
		if (%1 != mapspot25,
				if(plugin[mapspot25].animated,
				set(plugin[mapspot25].frame           , 0);
				set(plugin[mapspot25].ypos            , 0);
				set(plugin[mapspot25].animationCounter, 0)
				txtadd(plugin[mapspot25].crop,'0|0|',get(plugin[mapspot25].framewidth),'|',get(plugin[mapspot25].frameheight));
			,
				set(plugin[mapspot25].blingCounter, 0)
			)
		);
		resetmapspot(mapspot25);
		if (%1 != mapspot26,
				if(plugin[mapspot26].animated,
				set(plugin[mapspot26].frame           , 0);
				set(plugin[mapspot26].ypos            , 0);
				set(plugin[mapspot26].animationCounter, 0)
				txtadd(plugin[mapspot26].crop,'0|0|',get(plugin[mapspot26].framewidth),'|',get(plugin[mapspot26].frameheight));
			,
				set(plugin[mapspot26].blingCounter, 0)
			)
		);
		resetmapspot(mapspot26);
		if (%1 != mapspot27,
				if(plugin[mapspot27].animated,
				set(plugin[mapspot27].frame           , 0);
				set(plugin[mapspot27].ypos            , 0);
				set(plugin[mapspot27].animationCounter, 0)
				txtadd(plugin[mapspot27].crop,'0|0|',get(plugin[mapspot27].framewidth),'|',get(plugin[mapspot27].frameheight));
			,
				set(plugin[mapspot27].blingCounter, 0)
			)
		);
		resetmapspot(mapspot27);
		if (%1 != mapspot28,
				if(plugin[mapspot28].animated,
				set(plugin[mapspot28].frame           , 0);
				set(plugin[mapspot28].ypos            , 0);
				set(plugin[mapspot28].animationCounter, 0)
				txtadd(plugin[mapspot28].crop,'0|0|',get(plugin[mapspot28].framewidth),'|',get(plugin[mapspot28].frameheight));
			,
				set(plugin[mapspot28].blingCounter, 0)
			)
		);
		resetmapspot(mapspot28);
		if (%1 != mapspot29,
				if(plugin[mapspot29].animated,
				set(plugin[mapspot29].frame           , 0);
				set(plugin[mapspot29].ypos            , 0);
				set(plugin[mapspot29].animationCounter, 0)
				txtadd(plugin[mapspot29].crop,'0|0|',get(plugin[mapspot29].framewidth),'|',get(plugin[mapspot29].frameheight));
			,
				set(plugin[mapspot29].blingCounter, 0)
			)
		);
		resetmapspot(mapspot29);
		if (%1 != mapspot30,
				if(plugin[mapspot30].animated,
				set(plugin[mapspot30].frame           , 0);
				set(plugin[mapspot30].ypos            , 0);
				set(plugin[mapspot30].animationCounter, 0)
				txtadd(plugin[mapspot30].crop,'0|0|',get(plugin[mapspot30].framewidth),'|',get(plugin[mapspot30].frameheight));
			,
				set(plugin[mapspot30].blingCounter, 0)
			)
		);
		resetmapspot(mapspot30);
		if (%1 != mapspot31,
				if(plugin[mapspot31].animated,
				set(plugin[mapspot31].frame           , 0);
				set(plugin[mapspot31].ypos            , 0);
				set(plugin[mapspot31].animationCounter, 0)
				txtadd(plugin[mapspot31].crop,'0|0|',get(plugin[mapspot31].framewidth),'|',get(plugin[mapspot31].frameheight));
			,
				set(plugin[mapspot31].blingCounter, 0)
			)
		);
		resetmapspot(mapspot31);
		if (%1 != mapspot32,
				if(plugin[mapspot32].animated,
				set(plugin[mapspot32].frame           , 0);
				set(plugin[mapspot32].ypos            , 0);
				set(plugin[mapspot32].animationCounter, 0)
				txtadd(plugin[mapspot32].crop,'0|0|',get(plugin[mapspot32].framewidth),'|',get(plugin[mapspot32].frameheight));
			,
				set(plugin[mapspot32].blingCounter, 0)
			)
		);
		resetmapspot(mapspot32);
		if (%1 != mapspot33,
				if(plugin[mapspot33].animated,
				set(plugin[mapspot33].frame           , 0);
				set(plugin[mapspot33].ypos            , 0);
				set(plugin[mapspot33].animationCounter, 0)
				txtadd(plugin[mapspot33].crop,'0|0|',get(plugin[mapspot33].framewidth),'|',get(plugin[mapspot33].frameheight));
			,
				set(plugin[mapspot33].blingCounter, 0)
			)
		);
		resetmapspot(mapspot33);
		if (%1 != mapspot34,
				if(plugin[mapspot34].animated,
				set(plugin[mapspot34].frame           , 0);
				set(plugin[mapspot34].ypos            , 0);
				set(plugin[mapspot34].animationCounter, 0)
				txtadd(plugin[mapspot34].crop,'0|0|',get(plugin[mapspot34].framewidth),'|',get(plugin[mapspot34].frameheight));
			,
				set(plugin[mapspot34].blingCounter, 0)
			)
		);
		resetmapspot(mapspot34);
		if (%1 != mapspot35,
				if(plugin[mapspot35].animated,
				set(plugin[mapspot35].frame           , 0);
				set(plugin[mapspot35].ypos            , 0);
				set(plugin[mapspot35].animationCounter, 0)
				txtadd(plugin[mapspot35].crop,'0|0|',get(plugin[mapspot35].framewidth),'|',get(plugin[mapspot35].frameheight));
			,
				set(plugin[mapspot35].blingCounter, 0)
			)
		);
		resetmapspot(mapspot35);
		if (%1 != mapspot36,
				if(plugin[mapspot36].animated,
				set(plugin[mapspot36].frame           , 0);
				set(plugin[mapspot36].ypos            , 0);
				set(plugin[mapspot36].animationCounter, 0)
				txtadd(plugin[mapspot36].crop,'0|0|',get(plugin[mapspot36].framewidth),'|',get(plugin[mapspot36].frameheight));
			,
				set(plugin[mapspot36].blingCounter, 0)
			)
		);
		resetmapspot(mapspot36);
		if (%1 != mapspot37,
				if(plugin[mapspot37].animated,
				set(plugin[mapspot37].frame           , 0);
				set(plugin[mapspot37].ypos            , 0);
				set(plugin[mapspot37].animationCounter, 0)
				txtadd(plugin[mapspot37].crop,'0|0|',get(plugin[mapspot37].framewidth),'|',get(plugin[mapspot37].frameheight));
			,
				set(plugin[mapspot37].blingCounter, 0)
			)
		);
		resetmapspot(mapspot37);
		if (%1 != mapspot38,
				if(plugin[mapspot38].animated,
				set(plugin[mapspot38].frame           , 0);
				set(plugin[mapspot38].ypos            , 0);
				set(plugin[mapspot38].animationCounter, 0)
				txtadd(plugin[mapspot38].crop,'0|0|',get(plugin[mapspot38].framewidth),'|',get(plugin[mapspot38].frameheight));
			,
				set(plugin[mapspot38].blingCounter, 0)
			)
		);
		resetmapspot(mapspot38);
		if (%1 != mapspot39,
				if(plugin[mapspot39].animated,
				set(plugin[mapspot39].frame           , 0);
				set(plugin[mapspot39].ypos            , 0);
				set(plugin[mapspot39].animationCounter, 0)
				txtadd(plugin[mapspot39].crop,'0|0|',get(plugin[mapspot39].framewidth),'|',get(plugin[mapspot39].frameheight));
			,
				set(plugin[mapspot39].blingCounter, 0)
			)
		);
		resetmapspot(mapspot39);
		if (%1 != mapspot40,
				if(plugin[mapspot40].animated,
				set(plugin[mapspot40].frame           , 0);
				set(plugin[mapspot40].ypos            , 0);
				set(plugin[mapspot40].animationCounter, 0)
				txtadd(plugin[mapspot40].crop,'0|0|',get(plugin[mapspot40].framewidth),'|',get(plugin[mapspot40].frameheight));
			,
				set(plugin[mapspot40].blingCounter, 0)
			)
		);
		resetmapspot(mapspot40);
		if (%1 != mapspot41,
				if(plugin[mapspot41].animated,
				set(plugin[mapspot41].frame           , 0);
				set(plugin[mapspot41].ypos            , 0);
				set(plugin[mapspot41].animationCounter, 0)
				txtadd(plugin[mapspot41].crop,'0|0|',get(plugin[mapspot41].framewidth),'|',get(plugin[mapspot41].frameheight));
			,
				set(plugin[mapspot41].blingCounter, 0)
			)
		);
		resetmapspot(mapspot41);
	</action>
    <!-- Séléctionne un spot de la carte en particulier -->
    <action name="selectmapspot">
		unselectmapspotsbutpassed(%1);
		if(plugin[%1].animated,
			inc(plugin[%1].animationCounter, 1);
			if(plugin[%1].animationCounter == 1,
				animatemapspot(%1, 0.1);
			);
		,
			inc(plugin[%1].blingCounter,1);
			if(plugin[%1].blingCounter == 1,
				blingmapspot(%1);
			);
		);
		copy(plugin[mapradar].x              , plugin[%1].x);
		copy(plugin[mapradar].y              , plugin[%1].y);
		set( plugin[mapradar].heading        , %2          );
		set( plugin[mapradar].shouldbevisible, true        );
		if(plugin[map].onclick == closemap, set(plugin[mapradar].visible,true););
	</action>
    <!-- anime le spot quand il est actif (appel récursif) -->
    <action name="blingmapspot">
		tween(plugin[%1].alpha, 0.0, 0.8, easeInSine  );
		tween(plugin[%1].scale, 1.5, 0.8, easeOutCubic);
		tween(, , 0.8, , resetmapspot(%1);
		if(plugin[%1].blingCounter &gt; 0, blingmapspot(%1);););
	</action>
    <action name="resetmapspot">
		set(plugin[%1].scale,1);
		set(plugin[%1].alpha,1);
	</action>
    <!--************** Animation de séquence ******************************************************-->
    <action name="animate">
		if (stopSequence == false,
			inc(hotspot[%1].frame,1,get(hotspot[%1].lastframe),0);
			mul(hotspot[%1].ypos,hotspot[%1].frame,hotspot[%1].frameheight);
			txtadd(hotspot[%1].crop,'0|',get(hotspot[%1].ypos),'|',get(hotspot[%1].framewidth),'|',get(hotspot[%1].frameheight));
			delayedcall(%2, animate(%1,%2) );
		);
	</action>
    <!-- Raise sequence stopper and wait sequence time to break the delayed calls -->
    <action name="interruptAnimation">
		ifnot (stopSequence === undefined,
			set(stopSequence, true);
			wait(0.1);
		);
	</action>
 <!--************** Menu contextuel ************************************************************-->
    <contextmenu>
        <item name="item_0" caption="Accéder à  la carte Zooomez" onclick="openurl(http://zooomez.fr/carte)"/>
        <item name="normal_view" caption="vue normale" onclick="action(actionviewnormal)" separator="true"/>
        <item name="fisheye_view" caption="vue fisheye" onclick="action(actionviewfisheye)"/>
        <item name="architectural_view" caption="vue architecturale" onclick="action(actionviewarchitectural)"/>
        <item name="stereographic_view" caption="vue stéréographique" onclick="action(actionviewstereographic)"/>
        <item name="pannini_view" caption="vue pannini" onclick="action(actionviewpannini)"/>
        <item name="little_planet_view" caption="vue little planet" onclick="action(actionviewlittleplanet)"/>
    </contextmenu>
    <action name="actionviewnormal">
		tween(view.fovmax,       150.0, distance(179, 1.00), easeoutquad);
		tween(view.architectural,  0.0, distance(1.0, 0.45), easeoutquad);
		tween(view.fisheye,        0.0, distance(1.0, 0.45), easeoutquad, set(view.stereographic,false); set(view.pannini,false); set(display.flash10,on); );
	</action>
    <action name="actionviewfisheye">
		set(display.flash10,off);
		tween(view.architectural, 0.0, distance(1.0, 0.30), easeoutquad);
		tween(view.fisheye,       0.0 ,distance(1.0, 0.30), easeoutquad, set(view.stereographic,false); set(view.pannini,false); set(view.fovmax,179); tween(view.fisheye, 0.35, distance(1.0,1.25)); );
	</action>
    <action name="actionviewarchitectural">
		tween(view.fovmax,       150.0, distance(179, 1.00), easeoutquad);
		tween(view.architectural,  1.0, distance(1.0, 0.45), easeoutquad);
		tween(view.fisheye,        0.0, distance(1.0, 0.45), easeoutquad, set(view.stereographic,false);set(view.pannini,false);set(display.flash10,on); );
	</action>
    <action name="actionviewstereographic">
		set(display.flash10,off);
		tween(view.architectural, 0.0, 0.25);
		set(backtonormalfirst,false);
		if(view.pannini       == true,  set(backtonormalfirst,true) );
		if(view.stereographic == false, set(backtonormalfirst,true) );
		if(backtonormalfirst, tween(view.fisheye, 0.0 ,distance(1.0, 0.25), easeoutquad, WAIT); );
		set(view.pannini, false);
		set(view.stereographic, true);
		set(view.fovmax, 150);
		tween(view.fisheye, 1.0, distance(1.0, 0.75), easeoutquad);
	</action>
    <action name="actionviewpannini">
		set(display.flash10,off);
		tween(view.architectural, 0.0, 0.25);
		set(backtonormalfirst,false);
		if(view.pannini       == false, set(backtonormalfirst,true) );
		if(view.stereographic == false, set(backtonormalfirst,true) );
		if(backtonormalfirst, tween(view.fisheye, 0.0 ,distance(1.0, 0.25), easeoutquad, WAIT); );
		set(view.pannini, true);
		set(view.stereographic, true);
		set(view.fovmax, 150);
		tween(view.fisheye, 1.0, distance(1.0, 0.75), easeoutquad);
	</action>
    <action name="actionviewlittleplanet">
		set(display.flash10,off);
		tween(view.architectural, 0.0, 0.25);
		tween(view.vlookat,  90, distance(179, 1.50), easeoutquad);
		set(backtonormalfirst,false);
		if(view.pannini       == true,  set(backtonormalfirst,true) );
		if(view.stereographic == false, set(backtonormalfirst,true) );
		if(backtonormalfirst, tween(view.fisheye, 0.0 ,distance(1.0, 0.25), easeoutquad, WAIT); );
		set(view.pannini, false);
		set(view.stereographic, true);
		set(view.fovmax, 150);
		tween(view.fisheye, 1.0, distance(1.0, 0.75), easeoutquad);
		tween(view.fov,     150, distance(179, 0.75), easeoutquad);
	</action>
	</krpano>