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

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


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


         />
  <action name="onhoverIconDefaultPointSpotStyle">
    showtooltip('hotspot');
  </action>
  <action name="onoutIconDefaultPointSpotStyle">
    hideTooltip();



  </action>



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


    
  <!-- Spot Style - POINT1 -->


  <style name="IconPOINT1"
         url="%FIRSTXML%/spots/geopark_logo-01_copy_user_defaultpoint1.png"
         visible="false"
         edge="center"
         onloaded="showPermanentTooltip(all);"

         height="20"
         width="40"
         />



    
  <!-- Spot Style - POINT2 -->


  <style name="IconPOINT2"
         url="%FIRSTXML%/spots/geopark_logo-01_copy_user_defaultpoint2.png"
         visible="false"
         edge="center"
         onloaded="showPermanentTooltip(all);"

         height="20"
         width="40"
         />



    
  <!-- Spot Style - POINT3 -->


  <style name="IconPOINT3"
         url="%FIRSTXML%/spots/geopark_logo-01_copy_user_defaultpoint3.png"
         visible="false"
         edge="center"
         onloaded="showPermanentTooltip(all);"

         height="20"
         width="40"
         />



    
  <!-- Spot Style - POINT4 -->


  <style name="IconPOINT4"
         url="%FIRSTXML%/spots/geopark_logo-01_copy_user_defaultpoint4.png"
         visible="false"
         edge="center"
         onloaded="showPermanentTooltip(all);"

         height="20"
         width="40"
         />



    
  <!-- Spot Style - POINT5 -->


  <style name="IconPOINT5"
         url="%FIRSTXML%/spots/geopark_logo-01_copy_user_defaultpoint5.png"
         visible="false"
         edge="center"
         onloaded="showPermanentTooltip(all);"

         height="20"
         width="40"
         />



    
  <!-- Spot Style - POINT6 -->


  <style name="IconPOINT6"
         url="%FIRSTXML%/spots/geopark_logo-01_copy_user_defaultpoint6.png"
         visible="false"
         edge="center"
         onloaded="showPermanentTooltip(all);"

         height="20"
         width="40"
         />



    
  <!-- Spot Style - POINT7 -->


  <style name="IconPOINT7"
         url="%FIRSTXML%/spots/geopark_logo-01_copy_user_defaultpoint7.png"
         visible="false"
         edge="center"
         onloaded="showPermanentTooltip(all);"

         height="20"
         width="40"
         />



    
  <!-- Spot Style - POINT8 -->


  <style name="IconPOINT8"
         url="%FIRSTXML%/spots/geopark_logo-01_copy_user_defaultpoint8.png"
         visible="false"
         edge="center"
         onloaded="showPermanentTooltip(all);"

         height="20"
         width="40"
         />



    
  <!-- Spot Style - POINT9 -->


  <style name="IconPOINT9"
         url="%FIRSTXML%/spots/geopark_logo-01_copy_user_defaultpoint9.png"
         visible="false"
         edge="center"
         onloaded="showPermanentTooltip(all);"

         height="20"
         width="40"
         />



    
  <!-- Spot Style - POINT10 -->


  <style name="IconPOINT10"
         url="%FIRSTXML%/spots/geopark_logo-01_copy_user_defaultpoint10.png"
         visible="false"
         edge="center"
         onloaded="showPermanentTooltip(all);"

         height="20"
         width="40"
         />



    
  <!-- Spot Style - POINT11 -->


  <style name="IconPOINT11"
         url="%FIRSTXML%/spots/geopark_logo-01_copy_user_defaultpoint11.png"
         visible="false"
         edge="center"
         onloaded="showPermanentTooltip(all);"

         height="20"
         width="40"
         />



    
  <!-- Spot Style - POINT12 -->


  <style name="IconPOINT12"
         url="%FIRSTXML%/spots/geopark_logo-01_copy_user_defaultpoint12.png"
         visible="false"
         edge="center"
         onloaded="showPermanentTooltip(all);"

         height="20"
         width="40"
         />



    
  <!-- Spot Style - POINT13 -->


  <style name="IconPOINT13"
         url="%FIRSTXML%/spots/geopark_logo-01_copy_user_defaultpoint13.png"
         visible="false"
         edge="center"
         onloaded="showPermanentTooltip(all);"

         height="20"
         width="40"
         />



    
  <!-- Spot Style - POINT14 -->


  <style name="IconPOINT14"
         url="%FIRSTXML%/spots/geopark_logo-01_copy_user_defaultpoint14.png"
         visible="false"
         edge="center"
         onloaded="showPermanentTooltip(all);"

         height="20"
         width="40"
         />



    
  <!-- Spot Style - POINT15 -->


  <style name="IconPOINT15"
         url="%FIRSTXML%/spots/geopark_logo-01_copy_user_defaultpoint15.png"
         visible="false"
         edge="center"
         onloaded="showPermanentTooltip(all);"

         height="20"
         width="40"
         />


 <!-- ********** --> <!-- 360Images CoOL Hotspots Plugin --> <!-- CoOL Hotspots --> <!-- id : cool_hotspot --> <!-- ********** -->        <include url="%FIRSTXML%/graphics/coolhotspots.xml"/>   <style 	cooltype="bubble" 	name="DefaultpointSpotStyle" 	type="container"  	width="50"  	height="50"  	bgalpha="0" 	bgcapture="true"   	accuracy="1" 	bubble_width="50"  	bubble_width_onover="150" 	alwayson="true" 	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);  	" 	 	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); 	 	 	if(linkedscene, 		set(layer[get(mypreview)].url,get(scene[get(linkedscene)].thumburl)); 	); 	if(linkedgroup, 		set(layer[get(mypreview)].url,get(panoramagroup[get(linkedgroup)].thumburl)); 	); 	if(photourl, 		set(layer[get(mypreview)].url,get(photourl)); 	); 	 	 	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 0xffffff 1.00"  	bgroundedge="150"   	bgcapture="true"  	maskchildren="true"  	accuracy="1" 	 	ondown.touch="callwith(get(parent),onover);delayedcall(0.6,callwith(get(parent),onclick));" 	  	align="center" 	 /> <style  	name="cool_hotspotbubblelayer_shadow"  	type="container"  	width="50"  	height="50"  	bgalpha="0"  	bgborder="0 0xffffff 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"  	enabled="false" 	onloaded="if(pixelheight GT pixelwidth,copy(width,height);set(height,prop));" />       
<!-- ********** -->
<!-- PanotourMaps -->
<!-- id : panotourmaps -->
<!-- ********** -->

		<ptplugin name="panotourmaps" lat="39.983380555556" lng="20.772338888889" zoom="11" maptypelayer="road" position="right" size="15" resizable="true" multimap="false" openatstart="false" state="false" bgcolor="f2f2f2" zorder="2" centeronspots="true" engine="KolorMap">
	
		<radar visible="true" radius="8000" linktozoom="true" quality="8" linecolor="0015ff" lineopacity="0.50000762951094835" linewidth="1" fillcolor="3b97ff" fillopacity="0.40000000000000002" />
		
		<markers animation="false" />
		
		
		<controls zoom="true" pan="true" scale="false" maptype="true" overview="false">
			<ui draggable="true" scrollable="true" dblclick="true" />
			<specific />
		</controls>
		
		<markerSelected name="" heading="" fov="" />
		
		
			<!-- PanotourMaps markers counter : 9 -->



				<marker name="spotmap422" 
					lat="39.977822222222" 
					lng="20.766286111111" 
					heading="94.400000000000205" 
					draggable="false" 
					animated="false" 
					desc="spotmap422_tooltip" 
					desctype="info" 
					onhover="false" 
					isscene="true" 
					scene="pano18" 
					hasradar="true" 
					jsclick="spotmap422ActionSpotMap">
					<markericon url="spots/hotspot_plan_user_defaultmap0.png" iconwidth="32" iconheight="32" shadow="false" iconanchor="center" />
				</marker>



				<marker name="spotmap423" 
					lat="39.978661111111" 
					lng="20.768816666667" 
					heading="87.000000000000057" 
					draggable="false" 
					animated="false" 
					desc="spotmap423_tooltip" 
					desctype="info" 
					onhover="false" 
					isscene="true" 
					scene="pano22" 
					hasradar="true" 
					jsclick="spotmap423ActionSpotMap">
					<markericon url="spots/hotspot_plan_user_defaultmap0.png" iconwidth="32" iconheight="32" shadow="false" iconanchor="center" />
				</marker>



				<marker name="spotmap424" 
					lat="39.983380555556" 
					lng="20.772338888889" 
					heading="83.799999999999613" 
					draggable="false" 
					animated="false" 
					desc="spotmap424_tooltip" 
					desctype="info" 
					onhover="false" 
					isscene="true" 
					scene="pano25" 
					hasradar="true" 
					jsclick="spotmap424ActionSpotMap">
					<markericon url="spots/hotspot_plan_user_defaultmap0.png" iconwidth="32" iconheight="32" shadow="false" iconanchor="center" />
				</marker>



				<marker name="spotmap425" 
					lat="39.983752777778" 
					lng="20.772675" 
					heading="38.800000000000011" 
					draggable="false" 
					animated="false" 
					desc="spotmap425_tooltip" 
					desctype="info" 
					onhover="false" 
					isscene="true" 
					scene="pano28" 
					hasradar="true" 
					jsclick="spotmap425ActionSpotMap">
					<markericon url="spots/hotspot_plan_user_defaultmap0.png" iconwidth="32" iconheight="32" shadow="false" iconanchor="center" />
				</marker>



				<marker name="spotmap426" 
					lat="39.990038888889" 
					lng="20.776541666667" 
					heading="102.1999999999987" 
					draggable="false" 
					animated="false" 
					desc="spotmap426_tooltip" 
					desctype="info" 
					onhover="false" 
					isscene="true" 
					scene="pano31" 
					hasradar="true" 
					jsclick="spotmap426ActionSpotMap">
					<markericon url="spots/hotspot_plan_user_defaultmap0.png" iconwidth="32" iconheight="32" shadow="false" iconanchor="center" />
				</marker>



				<marker name="spotmap427" 
					lat="39.994369444444" 
					lng="20.785022222222" 
					heading="127.5999999999993" 
					draggable="false" 
					animated="false" 
					desc="spotmap427_tooltip" 
					desctype="info" 
					onhover="false" 
					isscene="true" 
					scene="pano34" 
					hasradar="true" 
					jsclick="spotmap427ActionSpotMap">
					<markericon url="spots/hotspot_plan_user_defaultmap0.png" iconwidth="32" iconheight="32" shadow="false" iconanchor="center" />
				</marker>



				<marker name="spotmap428" 
					lat="39.994097222222" 
					lng="20.786027777778" 
					heading="-16.999999999999801" 
					draggable="false" 
					animated="false" 
					desc="spotmap428_tooltip" 
					desctype="info" 
					onhover="false" 
					isscene="true" 
					scene="pano37" 
					hasradar="true" 
					jsclick="spotmap428ActionSpotMap">
					<markericon url="spots/hotspot_plan_user_defaultmap0.png" iconwidth="32" iconheight="32" shadow="false" iconanchor="center" />
				</marker>



				<marker name="spotmap429" 
					lat="39.995211111111" 
					lng="20.7958" 
					heading="126.7999999999999" 
					draggable="false" 
					animated="false" 
					desc="spotmap429_tooltip" 
					desctype="info" 
					onhover="false" 
					isscene="true" 
					scene="pano40" 
					hasradar="true" 
					jsclick="spotmap429ActionSpotMap">
					<markericon url="spots/hotspot_plan_user_defaultmap0.png" iconwidth="32" iconheight="32" shadow="false" iconanchor="center" />
				</marker>



				<marker name="spotmap430" 
					lat="39.970013888889" 
					lng="20.717886111111" 
					heading="144.19999999999987" 
					draggable="false" 
					animated="false" 
					desc="spotmap430_tooltip" 
					desctype="info" 
					onhover="false" 
					isscene="true" 
					scene="pano292" 
					hasradar="true" 
					jsclick="spotmap430ActionSpotMap">
					<markericon url="spots/hotspot_plan_user_defaultmap0.png" iconwidth="32" iconheight="32" shadow="false" iconanchor="center" />
				</marker>
		


		
	</ptplugin>
	
	<action name="kolorMapJsReady_panotourmaps">
		set(ptplugin[panotourmaps].jsready, true);
	</action>
	
	
	
		<!-- PanotourMaps markers counter : 9 -->
				<action name="spotmap422ActionSpotMap">
          mainloadscene(pano18);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
				<action name="spotmap423ActionSpotMap">
          mainloadscene(pano22);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
				<action name="spotmap424ActionSpotMap">
          mainloadscene(pano25);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
				<action name="spotmap425ActionSpotMap">
          mainloadscene(pano28);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
				<action name="spotmap426ActionSpotMap">
          mainloadscene(pano31);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
				<action name="spotmap427ActionSpotMap">
          mainloadscene(pano34);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
				<action name="spotmap428ActionSpotMap">
          mainloadscene(pano37);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
				<action name="spotmap429ActionSpotMap">
          mainloadscene(pano40);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
				<action name="spotmap430ActionSpotMap">
          mainloadscene(pano292);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));

</action>
	


	
	
	
	<!-- Begin PanotourMaps events and actions -->
	<events name="panotourmapsEvents" 
	onxmlcomplete="ifnot(panotourmapsMapLoaded,set(tour_displaymap,false););" 
	onnewpano="panotourmapsActivateDefaultMarker();" 
	onviewchanged="panotourmapsOnviewchange()" 
	onhidetourmap="panotourmapsClosetourmap();" 
	onshowtourmap="if(tour_displaymap,panotourmapsOpentourmap(););" 
	onenterfullscreen="panotourmapsUpdateMaxMapSize();" 
	onexitfullscreen="panotourmapsUpdateMaxMapSize();" 
	keep="true" />
	
	
	<krpano panotourmapsMarkerDefaultSet="false" />
	<krpano panotourmapsMapLoaded="false" />
	
	
	<action name="panotourmapsUpdateMaxMapSize">
		js(invokePluginFunction(panotourmaps, updateResizableMapMaxSize));
	</action>
	
	<action name="kolorMapJsReadyLoop_panotourmaps">
		if(ptplugin[panotourmaps].jsready,
			stopdelayedcall(jsReadyLoopId_panotourmaps);
			if(%1 == "close",
				panotourmapsClosetourmap();
			,
				panotourmapsOpentourmap();
			);
		,
			delayedcall(jsReadyLoopId_panotourmaps, 0.2, kolorMapJsReadyLoop_panotourmaps(%1));
		);
	</action>
	
	<action name="panotourmapsClosetourmap">
		if(ptplugin[panotourmaps].jsready,
			set(ptplugin[panotourmaps].state, false);
			js(invokePluginFunction(panotourmaps, openCloseMap, close));
		,
			kolorMapJsReadyLoop_panotourmaps(close);
		);
	</action>
	
	
	<action name="panotourmapsOpentourmap">
		if(ptplugin[panotourmaps].jsready,
			set(ptplugin[panotourmaps].state, true);
			js(invokePluginFunction(panotourmaps, openCloseMap, open));
		,
			kolorMapJsReadyLoop_panotourmaps(open);
		);
	</action>
	
	
	<action name="panotourmapsChangescene">
		mainloadscene(%1);if(xml.scene != %1,panotourmapsGoMarker(%2););
	</action>
	
	<action name="panotourmapsOnviewchange">
		if ( panotourmapsMapLoaded == true,
			ifnot(ptplugin[panotourmaps].markerSelected.name == "",
				js(invokePluginFunction(panotourmaps, changeDirection, get(view.hlookat), get(view.hfov)));
			);
		);
	</action>
	
	<action name="panotourmapsGoMarker">
		if ( panotourmapsMapLoaded == true,
			
			set(ptplugin[panotourmaps].markerSelected.name, %1);
			set(ptplugin[panotourmaps].markerSelected.heading, get(view.hlookat));
			set(ptplugin[panotourmaps].markerSelected.fov, get(view.hfov));
			js(invokePluginFunction(panotourmaps, changeCurrentMarker, %1, get(view.hlookat), get(view.hfov), get(ptplugin[panotourmaps].centeronspots)));
			
			if( panotourmapsMarkerDefaultSet == false,
				js(setMapDefaultMarker(panotourmaps, %1, get(view.hlookat), get(view.hfov)));
				set(panotourmapsMarkerDefaultSet,true);
			);
		);
	</action>
	
	<action name="panotourmapsUnselectMarker">
		set(ptplugin[panotourmaps].markerSelected.name, "");
		js(invokePluginFunction(panotourmaps, unselectCurrentMarker));
		
		js(setMapDefaultMarker(panotourmaps, null, null, null));
	</action>

	<action name="panotourmapsActivateDefaultMarker">
		set(panotourmapsMapLoaded, true);
		
		set(panotourmapsMapSpotFound, false);
		for(set(defaultmarkerinc,0), defaultmarkerinc LT ptplugin[panotourmaps].marker.count , inc(defaultmarkerinc),
                        if(ptplugin[panotourmaps].marker[get(defaultmarkerinc)].isscene == true,
				if(panotourmapsMapSpotFound == false,
					if(ptplugin[panotourmaps].marker[get(defaultmarkerinc)].scene == xml.scene,
						ifnot(ptplugin[panotourmaps].marker[get(defaultmarkerinc)].name == ptplugin[panotourmaps].markerSelected.name,
							panotourmapsGoMarker(get(ptplugin[panotourmaps].marker[get(defaultmarkerinc)].name));
						);
						set(panotourmapsMapSpotFound, true);
					);
				);
			);
		);
		
		if(panotourmapsMapSpotFound == false,
			panotourmapsUnselectMarker();
		);
	</action>



<!-- ********** -->
<!-- Compass -->
<!-- id : compass -->
<!-- ********** -->

  <layer name="compassbackground"
         url="%FIRSTXML%/graphics/compass/compassbg53a0d7.png"
         keep="true"
         handcursor="false"
         capture="false"
         align="topright"
         x="0"
         y="0"
         zorder="3"
         visible="false"
         active="true"
         started="false"

         height="70"
         width="70"

         >




    <layer name="compasspointer"
           url="%FIRSTXML%/graphics/compass/compasspointerb17135.png"
           keep="true"
           align="center"
           handcursor="false"
           capture="false"
           zorder="1"
           height="100%"
           width="100%"
          />
  </layer>

  <events name="compassevts"
          keep="true"
          onnewpano="compassUpdateOrientation();"
          onviewchanged="compassUpdateOrientation();"
    onTourStart="set(layer[compassbackground].started, true);showcompass();"
          hidetourcontrols="hidecompass();"
          showtourcontrols="set(layer[compassbackground].started, true);showcompass();"
         />

  <action name="compassUpdateOrientation">
    if(scene[get(xml.scene)].planar,
      set(layer[compassbackground].active, false);
      hidecompass();
    ,

      set(layer[compassbackground].active, true);
      mod(compasshlookat, view.hlookat, 360);
      mul(compassheading, -1, get(scene[get(xml.scene)].heading));
      if (compassheading == null, set(compassheading, 0));
      sub(layer[compasspointer].rotate, compasshlookat, compassheading);

      showcompass();
    );
  </action>

 
  <action name="hidecompass">
    set(layer[compassbackground].visible, false);
  </action>
  <action name="showcompass">
    if(tour_displaycontrols,
    if(layer[compassbackground].active AND layer[compassbackground].started,set(layer[compassbackground].visible, true););
    ,hidecompass(););
  </action>


<!-- ********** -->
<!-- SkinPlus -->
<!-- id : SkinPlus -->
<!-- ********** -->

<!-- Skin Plus 3.3 - Copyright Panotourplugin.com - 2019 -->
<!-- Code Maurizio Chiocchetti    -->


 
<include url="%FIRSTXML%/graphics/skinplus/core.xml" />
<action name="check_normal_hs">
  if(%1,
  for(set(hs_m,0), hs_m LT hotspot.count, inc(hs_m), if(hotspot[get(hs_m)].style == "IconHotspot_mark_1" || hotspot[get(hs_m)].style == "IconHotspot_mark_2" || hotspot[get(hs_m)].style == "IconHotspot_mark_3" || hotspot[get(hs_m)].style == "IconHotspot_mark_4" || hotspot[get(hs_m)].style == "IconHotspot_mark_5" || hotspot[get(hs_m)].style == "IconHotspot_mark_6" || hotspot[get(hs_m)].style == "IconHotspot_mark_7" || hotspot[get(hs_m)].style == "IconHotspot_mark_8" || hotspot[get(hs_m)].style == "IconHotspot_mark_8" || hotspot[get(hs_m)].style == "IconHotspot_mark_10", set(scenet_alt, get(hotspot[get(hs_m)].linktarget)); set(visit_alt, get(scene[get(scenet_alt)].seen));
      create_check_alt(get(hs_m));
      if(visit_alt,
      txtadd(nos_alt, checkicon_alt,get(hs_m) );
      set(layer[get(nos_alt)].visible,true);
      set(layer[get(nos_alt)].alpha,1);
        ););););
  </action>


<events name="langstart"
keep="true"
onxmlcomplete="if(lang !== null,
set(tour_language, get(lang));
events.dispatch(changetourlanguage);,
set(tour_language, get(tour_language)););"
/>


<action name="create_check">
addlayer(checkicon%1);
set(layer[checkicon%1].width,45);
set(layer[checkicon%1].height,prop);
set(layer[checkicon%1].type,image);
set(layer[checkicon%1].url, '%FIRSTXML%/graphics/skinplus/');
set(layer[checkicon%1].enable,true);
set(layer[checkicon%1].align,bottomright);
set(layer[checkicon%1].edge,bottomright);
set(layer[checkicon%1].visible,false);
set(layer[checkicon%1].children,true);
set(layer[checkicon%1].scalechildren,true);
set(layer[checkicon%1].alpha,0);
set(layer[checkicon%1].capture, false);
set(layer[checkicon%1].x, -10);
set(layer[checkicon%1].y, -10);
set(layer[checkicon%1].parent, hotspot[%1]);
</action>

<action name="create_check_alt">
addlayer(checkicon_alt%1);
set(layer[checkicon_alt%1].width,45);
set(layer[checkicon_alt%1].height,prop);
set(layer[checkicon_alt%1].type,image);
set(layer[checkicon_alt%1].url, '%FIRSTXML%/graphics/skinplus/');
set(layer[checkicon_alt%1].enable,true);
set(layer[checkicon_alt%1].align,bottomright);
set(layer[checkicon_alt%1].edge,bottomright);
set(layer[checkicon_alt%1].visible,false);
set(layer[checkicon_alt%1].children,true);
set(layer[checkicon_alt%1].scalechildren,true);
set(layer[checkicon_alt%1].alpha,0);
set(layer[checkicon_alt%1].capture, false);
set(layer[checkicon_alt%1].x, -10);
set(layer[checkicon_alt%1].y, -10);
set(layer[checkicon_alt%1].parent, hotspot[%1]);
</action>



<events name="SkinPlushotspot_mark" keep="true"
onxmlcomplete="check_normal_hs();"
onnewpano="check_normal_hs();"
/>














<krpano SkinPlusbarbuilt="false" SkinPlusbackgroundwidthwhenclosed="0" SkinPlusbackgroundwidthwhenopened="0" SkinPlusIsOpened="false" />

<k_setting
    speed="0.5"
    button_offset=""
    margin_flag_ico="100"
    flag_lang_1=""
    flag_lang_2=""
    flag_lang_3=""
    flag_lang_4=""
    flag_lang_5=""
    flag_lang_6=""
    flag_lang_7=""
    flag_lang_8=""
    flag_lang_9=""
    flag_lang_10=""
    context_menu_bool="false"
    plugname="SkinPlus"
    pluginDirectory="graphics/skinplus"
    contextlogofile=""
    context_url=""
    code="ptpkimage17"
    range_value="50"
    alpharange="false"
    full="true"
    scalemobile="0.6"
    scaletablet="0.8"
/>










<events name="SkinPluscheck_sixe"
onresize="SkinPlussize_menu();"
onxmlcomplete="SkinPlussize_menu();"
showtourcontrols="SkinPlussize_menu();"
keep="true"
/>

<action name="SkinPlussize_menu" devices="desktop|tablet|mobile">
if (stagewidth LT 800,
    tween(layer[SkinPlusLanguage_bg].scale, 0.8,0.1);

    tween(layer[SkinPlusLanguage_bg].scale, 0.5,0.1);
    );

    set(menu_w, get(layer[SkinPlus_menu_bg].width));
    set(menu_h, get(layer[SkinPlus_menu_bg].height));
    if ( menu_w GE stagewidth || stagewidth LE 800,
    tween(layer[SkinPlus_menu_bg].scale, 0.8,0.1);

    set(hval,40);
    dec(hval, 0);
    tween(layer[SkinPlus_footer].height, get(hval),0.1);,
    tween(layer[SkinPlus_menu_bg].scale, 1,0.2);
    tween(layer[SkinPlus_footer].height, 40,0.2);
    );
    
</action>




<events name="SkinPlusevents"
    onxmlcomplete=""   
    keep="true"
/>

<events name="SkinPlusLanguage_event"
    onTourStart="SkinPluslangg();"
    changetourlanguage="SkinPluslangg();"
    keep="true"
/>






<action name="SkinPluslangg">
set(language_var, get(tour_language));


if(device.touch,
set(layer[SkinPlushelpScreenFg].url, '%FIRSTXML%/graphics/skinplus/help_screen_fg_mb.png');
,
set(layer[SkinPlushelpScreenFg].url, '%FIRSTXML%/graphics/skinplus/help_screen_fg.png');
);

</action>



<action name="buildMenuBar">
    ifnot (SkinPlusbarbuilt, SkinPlusbuildMenu(); set(SkinPlusbarbuilt, true););
</action>


  <style name="SkinPlus_btn_style"
         keep="true"


         edge="right"
         align="right"

         x="0" y="0"


         width="30" height="30"

         crop="0|0|60|60"
         onovercrop="0|60|60|60"
         ondowncrop="0|120|60|60"




         onhover="showTooltip('plugin', SkinPlusmenuTooltipStyle, bottom);"
         onout="hideTooltip();"




         />

 <style name="SkinPlus_btn_style_icons"
         keep="true"


         edge="right"
         align="right"

         x="0" y="0"


         width="30" height="30"






         onhover="showTooltip('plugin', SkinPlusmenuTooltipStyle, bottom);"
         onout="tween(alpha,1,0.5);hideTooltip();"




         />


 <style name="SkinPlus_btnf_style"
        keep="true"
        edge="right"
        align="right"
        x="0" y="0"
        width="30" height="prop"
        scale="0.8"
        onover=""

        onhover="showTooltip('plugin', SkinPlusmenuTooltipStyle, bottom);"
        onout="hideTooltip();"
        />

  <style name="SkinPlus_style"
             keep="true"
             onhover="showTooltip('plugin', SkinPlusmenuTooltipStyle);"
             onout="hideTooltip();"
/>

<style name="SkinPlus_style_lang"
     keep="true"
     onover="set(alpha, 0.8);  "
     onout="set(alpha, 1); hideTooltip();"
     onhover="showTooltip('plugin', SkinPlusmenuTooltipStyle);"
/>

<style name="SkinPlus_btnf_style_float"
       keep="true"

       scale="0.8"
       onover=""



       onhover="showTooltip('plugin', SkinPlusmenuTooltipStyle, bottom);"
       onout="hideTooltip();"




             width="100"
             height="prop"

       />
 <style name="SkinPlus_style"
            keep="true"
            onhover="showTooltip('plugin', SkinPlusmenuTooltipStyle);"
            onout="hideTooltip();"
/>



  <style name="SkinPlus_btn_style_off"
         keep="true"
         edge="right"
         align="right"

         x="0" y="0"
         width="30" height="30"
         onhover="showTooltip('plugin', SkinPlusmenuTooltipStyle, bottom);"
         onout="hideTooltip();"
         />


<layer name="SkinPlus_footer"
         keep="true"
		 type="container"
         url="%FIRSTXML%/graphics/skinplus/menu_color.png"
         x="0"
         y="0"
         enabled="false"
		 visible="false"
         alpha="0.8"
		 zorder="2"
        height="40"
        width="450"
        align="bottom"
        edge="bottom"
          />


<layer  name="SkinPlusmlogo"
        align.desktop="topleft"
        align.mobile="topleft"
        align.tablet="topleft"
        edge.desktop="topleft"
        edge.mobile="topleft"
        edge.tablet="topleft"
        x.desktop="20"
        y.desktop="20"
        x.mobile="0"
        y.mobile="0"
        x.tablet="0"
        y.tablet="0"

        zorder="4"
        keep="true"
        visible="false"
        style="SkinPlus_style"
        devices="desktop|tablet|mobile"
        capture="false"
        tooltip="SkinPlusmlogotooltip"
        scale.tablet="1"
        scale.mobile="1"
        onclick=""
        alpha="1"

                 url="%FIRSTXML%/graphics/skinplus/_1.png"
        handcursor="false"
             height="90"
             width="90"
     />

<events name="SkinPlusmlogologoevents"
onTourStart="SkinPlusmlogoshowlogo();"
hidetourcontrols="SkinPlusmlogohidelogo();"
showtourcontrols="SkinPlusmlogoshowlogo();"
keep="true" />



<action name="SkinPlusmlogohidelogo">
 SkinPlusmlogoshowlogo(); 
</action>

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


<layer


align.desktop="topright"
align.mobile="bottomright"
align.tablet="bottomright"
edge.desktop="topright"
edge.mobile="bottomright"
edge.tablet="bottomright"

x.desktop="80"
y.desktop="20"
x.mobile="0"
y.mobile="0"
x.tablet="0"
y.tablet="0"


        zorder="99"
        keep="true"
        name="SkinPlusclogo"
        visible="false"
        devices="desktop|tablet|mobile"
        capture="false"
        tooltip="SkinPlusclogotooltip"
        style="SkinPlus_style"
        alpha="1"
        scale.tablet="1"
        scale.mobile="1"
        onclick=""
        url="%FIRSTXML%/graphics/skinplus/_2.png"
        handcursor="false"
             height="80"
             width="100"
     />

<events name="SkinPlusclogologoevents"
onTourStart="SkinPlusclogoshowlogo();"
hidetourcontrols="SkinPlusclogohidelogo();"
showtourcontrols="SkinPlusclogoshowlogo();"
keep="true" />



<action name="SkinPlusclogohidelogo">
set(layer[SkinPlusclogo].visible, false);
</action>



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




<events name="SkinPlus_footerevents"
    onTourStart=""
    keep="true" />


<action name="SkinPlushidefooter">
    tween(layer[SkinPlus_footer].y, -40, 0.2);
    delayedcall(0.4 ,set(layer[SkinPlus_footer].visible, false));
</action>

<action name="setTourLanguage">
  if (%1 == null,
    trace("CHANGE TOUR LANGUAGE : NO LANGUAGE SET");
   ,
    set(tour_language, %1);

    events.dispatch(changetourlanguage);
  );
</action>




<action name="SkinPlusshowfooter">

if (SkinPlusIsOpened,

	set(layer[SkinPlus_footer].visible, true);


    tween(layer[SkinPlus_footer].y, 0, 0.1);
    ,
    SkinPlushidefooter();

    );
</action>

<layer name="SkinPlus_menu_bg"
          keep="true"
          type="container"
          zorder="3"
          width="30"
          height="30"
          align="bottom"
          x="0" y="5"
          maskchildren="false"
          rotate="0"
          visible="false"
          scalechildren="true"




    >



<layer name="SkinPlusbtn_home"



url="%FIRSTXML%/graphics/skinplus/btn_home.png"
style="SkinPlus_btn_style"


           onclick="SkinPlusbtn_home_action();"
           visible="false"
           tooltip="SkinPlushomeTip"
           devices="desktop|tablet|mobile"
           />


<layer name="SkinPlusbtn_little"


url="%FIRSTXML%/graphics/skinplus/btn_little.png"
style="SkinPlus_btn_style"



           onclick="SkinPlussetViewLittlePlanet();hideHotspots();
"
           visible="false"
           devices="desktop|tablet|mobile"
           tooltip="SkinPluslittle_tip"

           />


<layer name="SkinPlusbtn_little_off"



url="%FIRSTXML%/graphics/skinplus/btn_little_off.png"
style="SkinPlus_btn_style"


           onclick="SkinPlussetViewNormal();showHotspots();
showHotspots();
resumeautorotation(forceplugin);"
           visible="false"
           devices="desktop|tablet|mobile"

           tooltip="SkinPluslittle_off_tip"
 /> 

<layer name="SkinPlusbtn_left"




url="%FIRSTXML%/graphics/skinplus/btn_move_left.png"
style="SkinPlus_btn_style"




        ondown="viewControlMoveLeft(false);
 );)"
        onup="stopdelayedcall(move);viewControlMoveHoriStop();
"

        visible="false"
         tooltip="SkinPlusmoveLeftTip"
        devices="desktop|tablet|mobile"
    />

<layer name="SkinPlusbtn_right"



url="%FIRSTXML%/graphics/skinplus/btn_move_right.png"
style="SkinPlus_btn_style"



            ondown="viewControlMoveRight(false);
"
            onup="viewControlMoveHoriStop();
"

            visible="false"
            tooltip="SkinPlusmoveRightTip"
            devices="desktop|tablet|mobile"
            />


<layer name="SkinPlusbtn_up"


            url="%FIRSTXML%/graphics/skinplus/btn_move_up.png"

    style="SkinPlus_btn_style"


            ondown="viewControlMoveUp(false);
"
            onup="viewControlMoveVertStop();
"

            visible="false"
            tooltip="SkinPlusmoveUpTip"
            devices="desktop|tablet|mobile"

            />
<layer name="SkinPlusbtn_down"


            url="%FIRSTXML%/graphics/skinplus/btn_move_down.png"

            style="SkinPlus_btn_style"



            ondown="viewControlMoveDown(false);
"
            onup="viewControlMoveVertStop();
"


            visible="false"
            tooltip="SkinPlusmoveDownTip"
            devices="desktop|tablet|mobile"

            />

<layer name="SkinPlusbtn_prev_pano"



    url="%FIRSTXML%/graphics/skinplus/btn_previous_scene.png"
    style="SkinPlus_btn_style"




            onclick="loadPreviousScene();
"

            tooltip="SkinPlusprevSceneTip"
            visible="false"
            devices="desktop|tablet|mobile"

            />
<layer name="SkinPlusbtn_next_pano"




url="%FIRSTXML%/graphics/skinplus/btn_next_scene.png"
style="SkinPlus_btn_style"




            onclick=" loadNextScene();
"

            tooltip="SkinPlusnextSceneTip"
            visible="false"
            devices="desktop|tablet|mobile"
            />
<layer name="SkinPlusbtn_display_map"



url="%FIRSTXML%/graphics/skinplus/btn_map.png"
style="SkinPlus_btn_style"




            onclick=";SkinPlusdisplayMap();"

            visible="false"
            devices="desktop|tablet|mobile"
            tooltip="SkinPlusdisplayMapTip"
            />
<layer name="SkinPlusbtn_hide_map"



url="%FIRSTXML%/graphics/skinplus/btn_map.png"
style="SkinPlus_btn_style"




            onclick="SkinPlushideMap();"

            visible="false"
            devices="desktop|tablet|mobile"
            tooltip="SkinPlushideMapTip"
            />











<layer name="SkinPlusbtn_openfs"


url="%FIRSTXML%/graphics/skinplus/btn_enter_fs.png"
style="SkinPlus_btn_style"




            onclick="enterFullscreen();
 "


            visible="false"
            devices="fullscreensupport"
            tooltip="SkinPlusopenFsTip"
            />

<layer name="SkinPlusbtn_closefs"



url="%FIRSTXML%/graphics/skinplus/btn_close_fs.png"
style="SkinPlus_btn_style"



            onclick="exitFullscreen();
 "


            visible="false"
            devices="fullscreensupport"
            tooltip="SkinPluscloseFsTip"
            />















<layer name="SkinPlusbtn_hidecontrols"



            url="%FIRSTXML%/graphics/skinplus/btn_hide_controls.png"
            style="SkinPlus_btn_style"




           onclick="SkinPlussize_menu();stopdelayedcall(autoclose);SkinPlushideMenuControls();hideTourControls();
"
           visible="false"
           tooltip="SkinPlushideControlsTip"
           />
<layer name="SkinPlusbtn_showcontrols"



            url="%FIRSTXML%/graphics/skinplus/btn_show_controls.png"
            style="SkinPlus_btn_style"




           onclick="SkinPlussize_menu();SkinPlusshowMenuControls();showTourControls();
 "
           tooltip="SkinPlusdisplayControlsTip"
           visible="false"
           />
 </layer>


<action name="SkinPlusbtn_home_action">
      mainloadscene(pano18);
</action>





<action name="SkinPlushideMenuControls">

set(SkinPlusIsOpened, false);

set(layer[SkinPlusbtn_hidecontrols].visible, false);
set(layer[SkinPlusbtn_showcontrols].visible, true);
if (scene.count GT 1,
set(layer[SkinPlusbtn_next_pano].visible, false);
set(layer[SkinPlusbtn_prev_pano].visible, false); ); 
SkinPlusupdateLittleButtons(); 
set(layer[SkinPlusbtn_lang_off].visible, false);
set(layer[SkinPlusbtn_lang].visible, false);
set(layer[SkinPlusbtn_home].visible, false);
set(layer[SkinPlusbtn_up].visible, false);
set(layer[SkinPlusbtn_down].visible, false); 
set(layer[SkinPlusbtn_left].visible, false);
set(layer[SkinPlusbtn_right].visible, false); 
SkinPlusupdateFullscreenButtons(); 
SkinPlusupdateMapButtons(); 
set(layer[SkinPlus_menu_bg].width, get(SkinPlusbackgroundwidthwhenclosed));
set(layer[SkinPlus_menu_bg].visible, true);
SkinPlushidefooter();
</action>

<action name="SkinPlusshowMenuControls">
set(SkinPlusIsOpened, true);
SkinPlusshowfooter();
set(layer[SkinPlusbtn_home].visible, true);
set(layer[SkinPlusbtn_hidecontrols].visible, true);
set(layer[SkinPlusbtn_showcontrols].visible, false);
set(layer[SkinPlus_menu_bg].visible, true);
if (scene.count GT 1,
set(layer[SkinPlusbtn_next_pano].visible, true);
set(layer[SkinPlusbtn_prev_pano].visible, true););

set(layer[SkinPlusbtn_share].visible, true);
set(layer[SkinPlusbtn_search].visible, true);
set(layer[SkinPlusbtn_shotp].visible, true);
set(layer[SkinPlusbtn_menu].visible, true);
set(layer[SkinPlusbtn_gallery].visible, true);
set(layer[SkinPlusbtn_pdf].visible, true);
set(layer[SkinPlusbtn_web].visible, true);
set(layer[SkinPlusbtn_lang_off].visible, false);
set(layer[SkinPlusbtn_lang].visible, true);
SkinPlusupdateLittleButtons();
set(layer[SkinPlusbtn_up].visible, true);
set(layer[SkinPlusbtn_down].visible, true);
set(layer[SkinPlusbtn_left].visible, true);
set(layer[SkinPlusbtn_right].visible, true);
SkinPlusupdateFullscreenButtons();










SkinPlusupdateMapButtons();




set(layer[SkinPlus_menu_bg].width, get(SkinPlusbackgroundwidthwhenopened));


</action>





<events name="SkinPlusControlplan_pano"
keep="true"
onnewpano="set(little, 0);if (SkinPlusIsOpened,set(layer[SkinPlusbtn_little].visible, true);set(layer[SkinPlusbtn_little_off].visible, false););SkinPlusControlplan();"

/>

<action name="SkinPlusControlplan">
if (scene[get(xml.scene)].planar,
set(layer[SkinPlusbtn_little].alpha, 0.4);
set(layer[SkinPlusbtn_little].onclick, "");
set(layer[SkinPlusbtn_little].tooltip, "SkinPluslittle_disable_tip");
,
set(layer[SkinPlusbtn_little].alpha, 1.0);
set(layer[SkinPlusbtn_little].tooltip, "SkinPluslittle_tip");
set(layer[SkinPlusbtn_little].onclick, "SkinPlussetViewLittlePlanet();hideHotspots();
pauseautorotation();
");
);
</action>


<action name="SkinPlusHideLittle_btn">

	set(layer[SkinPlusbtn_little].visible, false);
    set(layer[SkinPlusbtn_little_off].visible, false);

</action>

<action name="SkinPlusShowlittle_btn">
if ( little != 1,
	set(layer[SkinPlusbtn_little].visible, true);
    set(layer[SkinPlusbtn_little_off].visible, false);

    ,

    set(layer[SkinPlusbtn_little].visible, false);
    set(layer[SkinPlusbtn_little_off].visible, true);
    );
</action>

<action name="SkinPlusupdateLittleButtons">

    if (SkinPlusIsOpened,

        SkinPlusShowlittle_btn();
    ,
        SkinPlusHideLittle_btn();
    );
</action>


<action name="SkinPlussetViewLittlePlanet">


	set(sceneisfull360, false);
	if(scene[get(xml.scene)].full360,
		sub(viewhfov, panoview.hmax, panoview.hmin);
		if (viewhfov == 360,
			sub(viewvfov, panoview.vmax, panoview.vmin);
			if (viewvfov == 180,
				set(sceneisfull360, true);
			);
		);
	);
	if (sceneisfull360 AND (device.webgl OR device.flash),
		if(normalViewActivated,stopSetViewTweens(););
		if(current_view_isflat === true,
			setViewNonFlat(VFOV);
		);
		SkinPlussetViewLittlePlanetComplete();

        
	);
</action>

<action name="SkinPlussetViewLittlePlanetComplete">
set(little, 1);
SkinPlusupdateLittleButtons();
	set(backtonormalfirst,false);
	if(view.pannini GE 1.0, set(backtonormalfirst,true));
	if(view.stereographic == false, set(backtonormalfirst,true));
	if(backtonormalfirst, hideTooltip();tween(view.fisheye, 0.0 ,distance(1.0, 0.25), easeOutQuad, WAIT); );
	set(view.stereographic, true);
	set(view.fisheyefovlink, 1.5);
	tween(view.architectural, 0.0, 0.25);
	tween(view.vlookat, 90, distance(179, 1.50));
	tween(view.pannini, 0.0, distance(1.0, 0.75), easeOutQuad, if(panniniViewActivated,restoreViewFromPannini();););
	if(panoview.fovmax LE 150, set(view.fovmax, 150); , set(view.fovmax, get(panoview.fovmax)); );
	tween(view.fisheye, 1.0, distance(1.0, 0.75));
	tween(view.fov, 150, distance(179, 0.75));
</action>

<action name="SkinPlussetViewNormal">

	if(current_view_isflat === true,
		setViewNonFlat(VFOV);
	);
	SkinPlussetViewNormalComplete();
</action>

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

</action>




<action name="SkinPlusshow_language_box">
set(layer[SkinPlusbtn_lang].visible, true);
set(layer[SkinPlusbtn_lang_off].visible, false);
</action>

<action name="SkinPlushide_language_box">
set(layer[SkinPlusbtn_lang_off].visible, true);
set(layer[SkinPlusbtn_lang].visible, false);
</action>

<action name="SkinPlusdisplayMap">showMap();

</action>
<action name="SkinPlushideMap">hideMap();

</action>

<events name="SkinPlusdisplaymapchangeevent"
          onshowtourmap="SkinPlusupdateMapButtons();"
          onhidetourmap="SkinPlusupdateMapButtons();"
          keep="true"/>
<action name="SkinPlusHideMapButtons">

		set(layer[SkinPlusbtn_display_map].visible, false);
		set(layer[SkinPlusbtn_hide_map].visible, false);
</action>
<action name="SkinPlusShowMapButtons">

if (tour_displaymap,
			set(layer[SkinPlusbtn_hide_map].visible, true);
			set(layer[SkinPlusbtn_display_map].visible, false);
		,
			set(layer[SkinPlusbtn_display_map].visible, true);
			set(layer[SkinPlusbtn_hide_map].visible, false);
		);
</action>
<action name="SkinPlusupdateMapButtons">
		if (SkinPlusIsOpened,
			SkinPlusShowMapButtons();
		,
			SkinPlusHideMapButtons();
		);
</action>



<events name="SkinPlusmenufullscreenchangeevent"
          onenterfullscreen="SkinPlusupdateFullscreenButtons();"
          onexitfullscreen="SkinPlusupdateFullscreenButtons();"
          keep="true"/>

<action name="SkinPlusHideFullscreenButtons">
		set(layer[SkinPlusbtn_openfs].visible , false);
		set(layer[SkinPlusbtn_closefs].visible, false);
</action>

<action name="SkinPlusShowFullscreenButtons">
		if (device.fullscreensupport,
        if (!device.ipad,
			if(tour_fullscreen,
				set(layer[SkinPlusbtn_openfs].visible , false);
				set(layer[SkinPlusbtn_closefs].visible, true);
			,
				set(layer[SkinPlusbtn_openfs].visible ,true);
				set(layer[SkinPlusbtn_closefs].visible,false);
			););
		,
			SkinPlusHideFullscreenButtons();
		);
</action>
<action name="SkinPlusupdateFullscreenButtons">
		if (SkinPlusIsOpened,
			SkinPlusShowFullscreenButtons();
		,
			SkinPlusHideFullscreenButtons();
		);
</action>








<layer name="SkinPlusmenuTooltipStyle"
	keep="true"
	enabled="false"
	capture="false"
	url="%FIRSTXML%/graphics/textfield.swf"
	align="center"
	roundedge="5"
	background="true"
	backgroundcolor="0x9fdb98"
	backgroundalpha="1"
	border="false"
	css="color:#ffffff;font-family:Helvetica;font-size:13px;text-align:left;"
	height="20"
	autoheight="true"
	autowidth="auto"
	padding="10"
	selectable="false"
	zorder="0"
	visible="false"
	html=""
	edge="bottom"
	xoffset="-10"
	yoffset="-10"
/>  








<layer name="SkinPlusspotTooltipStyle"
	keep="true"
	enabled="false"
	capture="false"
	url="%FIRSTXML%/graphics/textfield.swf"
	align="center"
	roundedge="5"
     
	background="true"
	backgroundcolor="0xa63fd0"
	backgroundalpha="1"  
	border="false"  
	css="color:#ffffff;font-family:Helvetica;font-size:13px;text-align:left;"
	height="20"
	autoheight="true"
	autowidth="auto"
	padding="10"
	selectable="false"
	zorder="0"
	visible="false"
	html=""

    edge="top"
	xoffset="0"
	yoffset="10"


/>
 




<action name="SkinPlusbuildMenu">
    
    set(SkinPlusbutton_pos, 0);
    set(nnn,0);


	set(SkinPlusbackgroundwidthwhenclosed, 30);

inc(nnn, 1);


    set(layer[SkinPlusbtn_hidecontrols].x, get(SkinPlusbutton_pos));

    set(layer[SkinPlusbtn_showcontrols].x, -get(SkinPlusbutton_pos));


    inc(SkinPlusbutton_pos, 35);




      if (device.fullscreensupport,
      if (!device.ipad,
      inc(nnn, 1);
        set(layer[SkinPlusbtn_openfs].x , get(SkinPlusbutton_pos));
        set(layer[SkinPlusbtn_closefs].x, get(SkinPlusbutton_pos));
        inc(SkinPlusbutton_pos, 35); ); );

if (device.desktop || device.tablet || device.mobile,
inc(nnn, 1);
        set(layer[SkinPlusbtn_little].x, get(SkinPlusbutton_pos));
        set(layer[SkinPlusbtn_little_off].x  , get(SkinPlusbutton_pos));
        inc(SkinPlusbutton_pos, 35);
); 



















if (device.desktop || device.tablet || device.mobile,
inc(nnn, 1);
      set(layer[SkinPlusbtn_display_map].x , get(SkinPlusbutton_pos));
      set(layer[SkinPlusbtn_hide_map].x    , get(SkinPlusbutton_pos));
      inc(SkinPlusbutton_pos, 35); ); 


















 if (device.desktop || device.tablet || device.mobile,
set(layer[SkinPlusbtn_home].x,
get(SkinPlusbutton_pos));
inc(SkinPlusbutton_pos, 35);
);





if (device.desktop || device.tablet || device.mobile,
inc(nnn, 2);
        set(layer[SkinPlusbtn_right].x, get(SkinPlusbutton_pos));
        inc(SkinPlusbutton_pos, 35);
        set(layer[SkinPlusbtn_left].x, get(SkinPlusbutton_pos));
        inc(SkinPlusbutton_pos, 35);

);


if (device.desktop || device.tablet || device.mobile,
inc(nnn, 2);
        set(layer[SkinPlusbtn_down].x, get(SkinPlusbutton_pos));
        inc(SkinPlusbutton_pos, 35);
        set(layer[SkinPlusbtn_up].x, get(SkinPlusbutton_pos));
        inc(SkinPlusbutton_pos, 35);
);
if (device.desktop || device.tablet || device.mobile,
    if (scene.count GT 1,
    inc(nnn, 2);
        set(layer[SkinPlusbtn_next_pano].x, get(SkinPlusbutton_pos));
        inc(SkinPlusbutton_pos, 35);
        set(layer[SkinPlusbtn_prev_pano].x, get(SkinPlusbutton_pos));
        inc(SkinPlusbutton_pos, 35);
      );
);

if (device.desktop || device.tablet || device.mobile,

      dec(SkinPlusbutton_pos, 5);
      set(SkinPlusbackgroundwidthwhenopened, get(SkinPlusbutton_pos));
      set(layer[SkinPlus_menu_bg].width, get(SkinPlusbackgroundwidthwhenopened));
	 
);
</action>




<events name="SkinPlusStartTourEvents" onTourStart="SkinPlusCallOnStartTour();" keep="true" />
<action name="SkinPlusCallOnStartTour">

		
		SkinPlusshowMenuControls();

</action>


<action name="SkinPlusbluron" type="Javascript" >
id = 'blur(10px)'
$("canvas")
  .css('filter',id),
  ('-webkitFilter',id),
  ('-mozFilter',id),
  ('-oFilter',id),
  ('-msFilter',id);
</action>

<action name="SkinPlusbluroff" type="Javascript" >
$( "canvas" ).css({"-webkit-filter": "blur(0px)","filter": "blur(0px)" });
</action>
<style name="button" type="text"
	       css="text-align:center;"
	       padding="4 8"
	       mergedalpha="false"
	       bgborder="4 0xFFFFFF 1"
	       bgroundedge="5"
	       bgshadow="0 1 4 0x000000 1.0"
	       onover="set(bgcolor, 0xC7E4FC);"
	       onout="calc(bgcolor, pressed ? 0x90CAF9 : 0xFFFFFF);"
	       ondown="set(bgcolor, 0x90CAF9);"
	       onup="calc(bgcolor, hovering ? 0xC7E4FC : 0xFFFFFF);"
	       />




<!-- ********* -->
<!-- Gyroscope -->
<!-- ********* -->


<plugin name="gyroscope"
        url="%FIRSTXML%/graphics/gyro2.js"
        keep="true"
        devices="no-desktop.and.html5"

        onunavailable="checkGyroUnavailable();"
        sensor_mode="1"
        friction="auto"
        autocalibration="true"
        touch_mode="full"
        onavailable="delayedcall(1, checkGyroAvailability(););"
        enabled="false"
        activated="false"
        />

<events name="gyroscopeEvents" onnewpano="planarGyroscopeTest();" keep="true" />

<action name="planarGyroscopeTest">
  if(plugin[gyroscope],
    if(scene[get(xml.scene)].full360,
      set(sceneisfull360, false);
      sub(viewhfov, panoview.hmax, panoview.hmin);
      if (viewhfov == 360,
        sub(viewvfov, panoview.vmax, panoview.vmin);
        if (viewvfov == 180,
          set(sceneisfull360, true);
        );
      );
      if (sceneisfull360,
        set(plugin[gyroscope].camroll, true);
      ,
        set(plugin[gyroscope].camroll, false);
      );
    ,
      set(plugin[gyroscope].camroll, false);
    );
  );
</action>

<action name="changeGyroscopeState">
  if(plugin[gyroscope],
    if (plugin[gyroscope].isavailable,
      if(%1,
        set(plugin[gyroscope].activated,true);
      ,
        set(plugin[gyroscope].activated,false);
      );
      if (%1 != plugin[gyroscope].enabled,
        if(plugin[gyroscope].activated,
          switch(plugin[gyroscope].enabled);
        ,
          set(plugin[gyroscope].enabled, false);
        );
        if (plugin[gyroscope].enabled, events.dispatch(ongyroscopeon);, events.dispatch(ongyroscopeoff););
      );
    );
  );
</action>

<action name="checkGyroAvailability">
  if(plugin[gyroscope],
    if (plugin[gyroscope].isavailable,
      
      set(sceneisfull360, false);
      if (scene[get(xml.scene)].full360,
        sub(viewhfov, panoview.hmax, panoview.hmin);
        if (viewhfov == 360,
          sub(viewvfov, panoview.vmax, panoview.vmin);
          if (viewvfov == 180,
            set(sceneisfull360, true);
          );
        );
      );
      set(delaythegyrocheck, false);
      if (sceneisfull360 AND tour_firstlittleplanet, set(delaythegyrocheck, true));

      ifnot(delaythegyrocheck,
        switch(plugin[gyroscope].enabled);
        set(plugin[gyroscope].activated,true);
        set(tour_gyroscopedevices, true);
        events.dispatch(ongyroscopeavailable);
      ,
        delayedcall(1, checkGyroAvailability(););
      );
    ,
      set(tour_gyroscopedevices, false);
    );
    if (plugin[gyroscope].enabled, events.dispatch(ongyroscopeon);, events.dispatch(ongyroscopeoff););
  ,
    checkGyroUnavailable();
  );
</action>

<action name="checkGyroUnavailable">
  set(plugin[gyroscope].activated, false);
  set(plugin[gyroscope].enabled, false);
  set(tour_gyroscopedevices, false);
  events.dispatch(ongyroscopeunavailable);
</action>

<!-- ********** -->
<!-- Title Extended - Scene specific -->
<!-- id : extendedtitle -->
<!-- ********** -->

  <events name="extendedtitle_events" 
    onTourStart="showextendedtitle();"
    hidetourcontrols="hideextendedtitle();" 
    showtourcontrols="showextendedtitle();" 
    changetourlanguage="changeLanguageextendedtitle"
    keep="true" />
  <action name="hideextendedtitle">set(layer[extendedtitle].visible, false);</action>
  <action name="showextendedtitle">
    if (tour_displaycontrols,
    set(layer[extendedtitle].visible, true );
    ,
      set(layer[extendedtitle].visible, false );
    );
  </action>
  <action name="changeLanguageextendedtitle">
    updateextendedtitle();
  </action>

  <action name="updateextendedtitle">
    getmessage(layer[extendedtitle].html, extendedtitlecustomtitle);
    escape(layer[extendedtitle].html);
  </action>


  <layer name="extendedtitle" keep="true" zorder="6"
         type="text"
         align="top" x="0" y="10"
         onloaded="getmessage(html,extendedtitlecustomtitle);escape(html);"
         bg="false" 
         bgborder="0"
         alpha="1"
         visible="false"
         capture="false" handcursor="false" enabled="false"
         interactivecontent="false" 
         txtshadow="1.0 1.0 4.0 0x000000 1.0"
         css="text-align:center;
              color:#ffffff;
              font-family:Times New Roman;
              font-weight:bold;
              font-size:22px;"/>

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

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

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

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

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

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


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

  <!-- MAP -->
  <action name="hideMap">set(tour_displaymap, false);events.dispatch(onhidetourmap);</action>
  <action name="showMap">set(tour_displaymap, true); events.dispatch(onshowtourmap);</action>

<action name="viewControlMoveUp">
	if(%1,
		if(%2,
			set(isfullvertical, false);
			ifnot(scene[get(xml.scene)].planar,
				sub(viewvfov, panoview.vmax, panoview.vmin);
				if (viewvfov == 180,
					set(isfullvertical, true);
				);
			);
			if(isfullvertical == false AND calc(view.vlookat-%2) LT view.vlookatmin,
				moveto(get(view.hlookat), get(view.vlookatmin));
			,
				moveto(get(view.hlookat), calc(view.vlookat-%2));
			);
		,
			set(vlookat_moveforce, -1);
			delayedcall(0.1, viewControlMoveVertStop());
		);
	,
		set(vlookat_moveforce, -1);
	);
</action>
<action name="viewControlMoveDown">
	if(%1,
		if(%2,
			set(isfullvertical, false);
			ifnot(scene[get(xml.scene)].planar,
				sub(viewvfov, panoview.vmax, panoview.vmin);
				if (viewvfov == 180,
					set(isfullvertical, true);
				);
			);
			if(sceneisfull360 == false AND calc(view.vlookat+%2) GT view.vlookatmax,
				moveto(get(view.hlookat), get(view.vlookatmax));
			,
				moveto(get(view.hlookat), calc(view.vlookat+%2));
			);
		,
			set(vlookat_moveforce, +1);
			delayedcall(0.1, viewControlMoveVertStop());
		);
	,
		set(vlookat_moveforce, +1);
	);
</action>
<action name="viewControlMoveLeft">
	if(%1,
		if(%2,
			set(isfullhorizontal, false);
			ifnot(scene[get(xml.scene)].planar,
				sub(viewhfov, panoview.hmax, panoview.hmin);
				if (viewhfov == 360,
					set(isfullhorizontal, true);
				);
			);
			if(isfullhorizontal == false AND calc(view.hlookat-%2) LT view.hlookatmin,
				moveto(get(view.hlookatmin), get(view.vlookat));
			,
				moveto(calc(view.hlookat-%2), get(view.vlookat));
			);
		,
			set(hlookat_moveforce, -1);
			delayedcall(0.1, viewControlMoveHoriStop());
		);
	,
		set(hlookat_moveforce, -1);
	);
</action>
<action name="viewControlMoveRight">
	if(%1,
		if(%2,
			set(isfullhorizontal, false);
			ifnot(scene[get(xml.scene)].planar,
				sub(viewhfov, panoview.hmax, panoview.hmin);
				if (viewhfov == 360,
					set(isfullhorizontal, true);
				);
			);
			if(isfullhorizontal == false AND calc(view.hlookat+%2) GT view.hlookatmax,
				moveto(get(view.hlookatmax), get(view.vlookat));
			,
				moveto(calc(view.hlookat+%2), get(view.vlookat));
			);
		,
			set(hlookat_moveforce, +1);
			delayedcall(0.1, viewControlMoveHoriStop());
			
		);
	,
		set(hlookat_moveforce, +1);
	);
</action>
<action name="viewControlMoveHoriStop">
	set(hlookat_moveforce, 0);
</action>
<action name="viewControlMoveVertStop">
	set(vlookat_moveforce, 0);
</action>
<action name="setTourLanguage">
  if (%1 == null,
    showlog();
    trace("CHANGE TOUR LANGUAGE : NO LANGUAGE SET");
   ,
    set(tour_language, %1);
    js(eventTourChangeLanguage(get(tour_language)));
    events.dispatch(changetourlanguage);
  );
</action>

</krpano>