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


         />



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



    
  <!-- Spot Style - POINT16 -->


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

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



    
  <!-- Spot Style - POINT17 -->


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

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



    
  <!-- Spot Style - POINT18 -->


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

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



    
  <!-- Spot Style - POINT19 -->


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

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



    
  <!-- Spot Style - POINT20 -->


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

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



    
  <!-- Spot Style - POINT21 -->


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

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



    
  <!-- Spot Style - POINT22 -->


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

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



    
  <!-- Spot Style - POINT23 -->


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

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



<!-- ********** -->
<!-- Blow Up -->
<!-- id : Blowup -->
<!-- ********** -->
<!-- Blowup 2.1.1 - Copyright Panotourplugin.com - 2019 - It is possible to modify the files but it is not allowed to resell the plugin or parts of code. -->
<!-- Code Maurizio Chiocchetti   -->


<include url="%FIRSTXML%/graphics/blowup/blowupcore.xml" />

<action name="Blowupconvert" type="Javascript" >
  <![CDATA[
var krpano = document.getElementById("krpanoSWFObject");

var decodeEntities = (function() {

  var element = document.createElement('div');
  function decodeHTMLEntities (str) {
    if(str && typeof str === 'string') {
      // strip script/html tags
      str = str.replace(/<script[^>]*>([\S\s]*?)<\/script>/gmi, '');
      str = str.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi, '');
      element.innerHTML = str;
      str = element.textContent;
      element.textContent = '';
    }

    return str;
  }

  return decodeHTMLEntities;
})();

var text = decodeEntities(args[1]);
krpano.set('Blowuphsho2', text);

 ]]>
 </action>

<action name="Blowupgo">
if (tour_displayspots,
for(set(Blowupai,0), Blowupai LT hotspot.count, inc(Blowupai),

if(hotspot[get(Blowupai)].style == "Icontabeles",
set(Blowupaaname, get(hotspot[get(Blowupai)].name));
Blowupget_thumb(get(Blowupaaname));
);
);
);
</action>

<action name="Blowupremove">

for(set(Blowupaai,0), Blowupaai LT hotspot.count, inc(Blowupaai),

if(hotspot[get(Blowupaai)].style == "Icontabeles",
set(Blowupraaname, get(hotspot[get(Blowupaai)].name));
Blowupremove_(get(Blowupraaname));
Blowuphide(get(Blowupraaname));
);
);
</action>



<action name="Blowupshow">
if(autorotate.enabled,
pauseautorotation(forceplugin););
set(hotspot[BlowupHotspot_Ghost%1].visible, true);
set(layer[Blowuptitle%1].visible, true);
set(layer[Blowupdescription%1].visible, true);
set(layer[Blowupbox%1].visible, true);
set(layer[BlowupImage%1].visible, true);
set(layer[BlowupBoxPict%1].visible, true);
</action>

<action name="Blowuphide">
if(autorotate.enabled == false,
resumeautorotation(forceplugin);
);
set(hotspot[BlowupHotspot_Ghost%1].visible, false);
set(layer[Blowuptitle%1].visible, false);
set(layer[Blowupdescription%1].visible, false);
set(layer[Blowupbox%1].visible, false);
set(layer[BlowupImage%1].visible, false);
set(layer[BlowupBoxPict%1].visible, false);
</action>






<action name="Blowupget_thumb" >

set(hotspot[%1].handcursor,true);
set(hotspot[%1].enabled,true);
set(hotspot[%1].capture,true);


set(hotspot[%1].onhover,
Blowupshow(%1);
Blowupgo2(%1);
);


set(hotspot[%1].onout,
Blowuphide(%1);

hideTooltip();
tween(hotspot[%1].scale,1,0.5);
);


<!--set(hotspot[%1].onup,
Blowuphide(%1);
hideTooltip();

);-->

</action>

<action name="Blowupgo2">


add(BlowupmarginW, 20 , 300);
add(BlowupmarginH, 150 , 20);

set(Blowuptul,get(hotspot[%1].linktarget));
set(Blowuptu, get(scene[get(Blowuptul)].thumburl));
if(Blowuptu == null,
set(Blowuptu, get(panoramagroup[get(Blowuptul)].thumburl));
);


set(BlowupHH_center, calc(0++20  + (20*2)));

set(BlowupHH, calc(0 + 150 + (20*2)));

set(Blowuplarghezza, calc(0 + 300 + (20*2)));

<!--set(BlowupPOSX, calc(0 + (20*2)));-->

set(BlowupPOSY, calc( 0 + 20 -10));





set(layer[Blowupdescription%1].width, calc(0 +  250 + (20*2)));
set(layer[Blowuptitle%1].width,300);
set(layer[Blowupbox%1].height, get(BlowupHH_center));
set(layer[Blowupbox%1].width, get(Blowuplarghezza));
set(layer[BlowupBoxPict%1].x,0);
set(layer[Blowupdescription%1].x,get(BlowupPOSX));

set(layer[BlowupBoxPict%1].y,calc(20 + 20));
set(layer[Blowupdescription%1].edge,center);
set(layer[Blowupdescription%1].align,center);
set(layer[Blowupdescription%1].y,0);

set(layer[BlowupBoxPict%1].edge,bottom);
set(layer[BlowupBoxPict%1].align,bottom);







hideTooltip();

set(Blowupax, get(hotspot[%1].ath));
set(Blowupay, get(hotspot[%1].atv));

set(hotspot[%1].handcursor,true);
set(hotspot[%1].visible,true);
set(hotspot[%1].enabled,true);
set(hotspot[%1].capture,true);
set(hotspot[%1].edge,center);
set(hotspot[%1].align,center);


addhotspot(BlowupHotspot_Ghost%1);
set(hotspot[BlowupHotspot_Ghost%1].visible, true);
set(hotspot[BlowupHotspot_Ghost%1].capture, true);
set(hotspot[BlowupHotspot_Ghost%1].zoom, false);
set(hotspot[BlowupHotspot_Ghost%1].zorder2, 100 );
set(hotspot[BlowupHotspot_Ghost%1].zorder, 100 );
set(hotspot[BlowupHotspot_Ghost%1].ath,get(Blowupax));
set(hotspot[BlowupHotspot_Ghost%1].distorted,false);
set(hotspot[BlowupHotspot_Ghost%1].atv,get(Blowupay));
set(hotspot[BlowupHotspot_Ghost%1].width, get(BlowupmarginW));
set(hotspot[BlowupHotspot_Ghost%1].height, get(BlowupmarginH));
set(hotspot[BlowupHotspot_Ghost%1].keep,true);
set(hotspot[BlowupHotspot_Ghost%1].url, '%FIRSTXML%/graphics/blowup/white.png');

set(hotspot[BlowupHotspot_Ghost%1].enable,true);
set(hotspot[BlowupHotspot_Ghost%1].bgalpha,1);
set(hotspot[BlowupHotspot_Ghost%1].ox,0);
set(Blowupbobo,get(layer[Blowupbox%1].height));
set(hotspot[BlowupHotspot_Ghost%1].oy,calc((30  + (Blowupbobo / 2 )) *-1));

addlayer(Blowupbox%1);
set(layer[Blowupbox%1].bgalpha,0.7000076295109483);
set(layer[Blowupbox%1].bgcolor, 0xffffff);
set(layer[Blowupbox%1].visible, true);
set(layer[Blowupbox%1].align, center);
set(layer[Blowupbox%1].edge, center);
<!--set(layer[Blowupbox%1].scale,get(Blowupmyscale));-->
set(layer[Blowupbox%1].scale,1);
set(layer[Blowupbox%1].scalechildren,true);

set(layer[Blowupbox%1].bgborder, 0 0x000000 1);
set(layer[Blowupbox%1].bgshadow, 0 0 0 0 000000 0.7000076295109483);
set(layer[Blowupbox%1].bgroundedge, 90);
set(layer[Blowupbox%1].capture, true);
set(layer[Blowupbox%1].y,0);
set(layer[Blowupbox%1].x,0);
set(layer[Blowupbox%1].enabled, true);
set(layer[Blowupbox%1].keep, true);
set(layer[Blowupbox%1].type, container);

set(layer[Blowupbox%1].parent,hotspot[BlowupHotspot_Ghost%1]);




getmessage(Blowuphsho, get(hotspot[%1].descriptionID));

getmessage(Blowuphshot, get(scene[get(Blowuptul)].titleid));
set(Blowuptestyes,true);
if(Blowuphsho !== null
,
set(hotspot[BlowupHotspot_Ghost%1].height,150
);,);

addlayer(Blowupdescription%1);

set(layer[Blowupdescription%1].height,20);
set(layer[Blowupdescription%1].handcursor, false);
set(layer[Blowupdescription%1].width,250);
set(layer[Blowupdescription%1].type,text);
set(layer[Blowupdescription%1].vcenter,
false );
set(layer[Blowupdescription%1].zorder,1);
set(layer[Blowupdescription%1].bgroundedge, 90);




Blowupconvert(get(Blowuphsho));
set(layer[Blowupdescription%1].onloaded,Blowupadd_html_code(get(Blowuphsho),20,%1));




set(layer[Blowupdescription%1].css,padding:0px; );
set(layer[Blowupdescription%1].parent,layer[Blowupbox%1]);
set(layer[Blowupdescription%1].bgalpha,0);
set(layer[Blowupdescription%1].bgcolor,0xffffff);




</action>
<events name="Blowupstascale"
keep="true"
onresize="Blowupremove();Blowuprespo();"

/>
<action name="Blowuprespo">

set(BlowupstageSize, stagewidth);

set(Blowupmyscale, calc(stagewidth / 1000));
clamp(Blowupmyscale, 0.6,1);

  </action>


<action name="Blowupremove_">

set(hotspot[BlowupHotspot_Ghost%1].visible, false);
hideTooltip();
removehotspot(BlowupHotspot_Ghost%1);
removelayer(Blowupbox%1);
removelayer(BlowupImage%1);
removelayer(BlowupBoxPict%1);
removelayer(Blowupdescription%1);
removelayer(Blowuptitle%1);
removelayer(Blowupclose%1);

  </action>

<action name="Blowupstopvideo" type="javascript" >
  <![CDATA[
  $("iframe").addClass("Blowupyt_player_iframe");
    $('.Blowupyt_player_iframe').each(function(){
  this.contentWindow.postMessage('{"event":"command","func":"stopVideo","args":""}', '*')
});
  ]]>
  </action>
<action name="Blowupautoplayvideo" type="javascript" >
  <![CDATA[

    $('.Blowupyt_player_iframe').each(function(){
  this.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}', '*')
});
  ]]>
  </action>

<action name="Blowupadd_html_code" type="Javascript"><![CDATA[

        var div = document.createElement("div");

        div.style.webkitUserSelect = "text"
        div.style.MozUserSelect = "text"
        div.style.msUserSelect = "text"
        div.style.userSelect = "text";

        var nam = "myID" + args[3];


        div.setAttribute("id",nam);
        div.setAttribute("style", " -moz-user-select: text;-webkit-user-select: text;-ms-user-select: text;user-select: text; color:#383bff; font-Family:Times New Roman; overflow:auto; width:100%; height:100%; font-size:calc(14px + 0.2vw); box-sizing:border-box; padding-top:0px; padding-right:0px; padding-bottom: 0px;padding-left: 0px; text-align:center; font-weight:bold;font-style:normal;" );

        div.addEventListener("mousewheel", function(event){ event.stopPropagation(); }, true);
        div.addEventListener("DOMMouseScroll", function(event){ event.stopPropagation(); }, true);
        div.addEventListener("touchstart", function(event){ if(krpano.device.ios && window.innerHeight == krpano.display.htmltarget.offsetHeight){ /* avoid the iOS 'overscrolling' for fullpage viewers */ var bs = document.body.parentNode.style; bs.position="fixed"; bs.top=0; bs.left=0; bs.right=0; bs.bottom=0; } krpano.control.preventTouchEvents = false; event.stopPropagation(); }, true);
        div.addEventListener("touchend", function(event){ krpano.control.preventTouchEvents = true; event.stopPropagation(); }, true);
        div.addEventListener("gesturestart", function(event){ event.preventDefault(); }, true);

        // add some html code:
        div.innerHTML = args[1];

        // add the div to the layer element:
        caller.sprite.appendChild(div);





 ]]></action>





// TODO: Bloup, create actions for open blowup external
<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>

  <!-- Hide / Show Controls -->
  <action name="hideTourControls">set(tour_displaycontrols, false);events.dispatch(hidetourcontrols);</action>
  <action name="showTourControls">set(tour_displaycontrols, true); events.dispatch(showtourcontrols);</action>


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

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

  <!-- Fullscreen Management -->
  <action name="exitFullScreen" devices="fullscreensupport">set(tour_fullscreen,false);js(setFullscreen(false));</action>
  <action name="enterFullScreen" devices="fullscreensupport">set(tour_fullscreen,true);js(setFullscreen(true));</action>
  <action name="switchFullScreen">if(tour_fullscreen,exitFullScreen();,enterFullScreen(););</action>

  
  <events name="krpanoExitFullscreenEvent"
    onexitfullscreen="if(tour_fullscreen,exitFullScreenChangeEvent(););"
    keep="true" />

  <action name="exitFullScreenChangeEvent" devices="fullscreensupport">set(tour_fullscreen,false);events.dispatch(onexitfullscreen);</action>
  <action name="enterFullScreenChangeEvent" devices="fullscreensupport">set(tour_fullscreen,true);events.dispatch(onenterfullscreen);</action>
  <action name="exitFullScreenFallback">set(fullscreen,false);</action>
  <action name="enterFullScreenFallback">set(fullscreen,true);</action>
  
  <action name="resizeFullScreenEvent">delayedcall(0,updatescreen(););</action>

</krpano>