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

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


  <style name="IconDefaultPointSpotStyle"
         url="%FIRSTXML%/spots/hotspot_animated_user_defaultpoint0.png"
         visible="false"
         frame="0"
         lastframe="19"
         framewidth="64"
         frameheight="64"
         stopspotsequence="false"
         crop="0|0|64|64"
         edge="center"
         onloaded="startspotanimation(0.1);showPermanentTooltip(all);"
         onover="onoverIconDefaultPointSpotStyle"
         onout="onoutIconDefaultPointSpotStyle"


         />
  <action name="onoverIconDefaultPointSpotStyle">


pauseautorotation(forcehotspot);

  </action>
  <action name="onoutIconDefaultPointSpotStyle">


resumeautorotation(forcehotspot);

  </action>



    
  <!-- Spot Style - YouTube Video -->


  <style name="IconYouTubeVideo"
         url="%FIRSTXML%/spots/hotspot_video_frame_sequence_user_defaultpoint5.png"
         visible="false"
         frame="0"
         lastframe="22"
         framewidth="85"
         frameheight="85"
         stopspotsequence="false"
         crop="0|0|85|85"
         edge="center"
         onloaded="startspotanimation(0.1);"
         onhover="onhoverIconYouTubeVideo"
         onover="onoverIconYouTubeVideo"
         onout="onoutIconYouTubeVideo"


         />
  <action name="onhoverIconYouTubeVideo">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconYouTubeVideo">
tween(scale, 1.2);

pauseautorotation(forcehotspot);

  </action>
  <action name="onoutIconYouTubeVideo">
    hideTooltip();
    tween(scale, 1);

resumeautorotation(forcehotspot);

  </action>



    
  <!-- Spot Style - Call Out -->


  <style name="IconCallOut"
         url="%FIRSTXML%/spots/hotspot_information_user_defaultpoint3.png"
         visible="false"
         edge="center"
         onhover="onhoverIconCallOut"
         onout="onoutIconCallOut"


         />
  <action name="onhoverIconCallOut">
    showtooltip('hotspot');
  </action>
  <action name="onoutIconCallOut">
    hideTooltip();



  </action>



    
  <!-- Spot Style - Call Out Down -->


  <style name="IconCallOutDown"
         url="%FIRSTXML%/spots/hotspot_information_user_defaultpoint9.png"
         visible="false"
         edge="center"
         onhover="onhoverIconCallOutDown"
         onout="onoutIconCallOutDown"


         />
  <action name="onhoverIconCallOutDown">
    showtooltip('hotspot');
  </action>
  <action name="onoutIconCallOutDown">
    hideTooltip();



  </action>



    
  <!-- Spot Style - Wejscie _ hotspot -->


  <style name="IconWejscie-hotspot"
         url="%FIRSTXML%/spots/wejscie_user_defaultpoint10.png"
         visible="false"
         edge="center"
         zoom="true"

         alpha="0.8"
         onloaded="showPermanentTooltip(all);"
         onover="onoverIconWejscie-hotspot"
         onout="onoutIconWejscie-hotspot"

         height="75"
         width="75"
         />
  <action name="onoverIconWejscie-hotspot">
tween(scale, 1.2);
tween(alpha, 1);
pauseautorotation(forcehotspot);

  </action>
  <action name="onoutIconWejscie-hotspot">
    tween(scale, 1);
    tween(alpha, 0.8);
resumeautorotation(forcehotspot);

  </action>



    
  <!-- Spot Style - Call Out Left -->


  <style name="IconCallOutLeft"
         url="%FIRSTXML%/spots/hotspot_information_user_defaultpoint11.png"
         visible="false"
         edge="center"
         onhover="onhoverIconCallOutLeft"
         onout="onoutIconCallOutLeft"


         />
  <action name="onhoverIconCallOutLeft">
    showtooltip('hotspot');
  </action>
  <action name="onoutIconCallOutLeft">
    hideTooltip();



  </action>



    
  <!-- Spot Style - Call Out Titles Descrp BG left -->


  <style name="IconCallOutTitlesDescrpBGleft"
         url="%FIRSTXML%/spots/hotspot_information_user_defaultpoint12.png"
         visible="false"
         edge="center"
         onhover="onhoverIconCallOutTitlesDescrpBGleft"
         onout="onoutIconCallOutTitlesDescrpBGleft"


         />
  <action name="onhoverIconCallOutTitlesDescrpBGleft">
    showtooltip('hotspot');
  </action>
  <action name="onoutIconCallOutTitlesDescrpBGleft">
    hideTooltip();



  </action>



    
  <!-- Spot Style - Call Out Titles Descrp BG -->


  <style name="IconCallOutTitlesDescrpBG"
         url="%FIRSTXML%/spots/hotspot_information_user_defaultpoint13.png"
         visible="false"
         edge="center"
         onhover="onhoverIconCallOutTitlesDescrpBG"
         onout="onoutIconCallOutTitlesDescrpBG"


         />
  <action name="onhoverIconCallOutTitlesDescrpBG">
    showtooltip('hotspot');
  </action>
  <action name="onoutIconCallOutTitlesDescrpBG">
    hideTooltip();



  </action>



    
  <!-- Spot Style - Call Out Titles Descrp BG top long -->


  <style name="IconCallOutTitlesDescrpBGtoplong"
         url="%FIRSTXML%/spots/hotspot_information_user_defaultpoint15.png"
         visible="false"
         edge="center"
         onhover="onhoverIconCallOutTitlesDescrpBGtoplong"
         onout="onoutIconCallOutTitlesDescrpBGtoplong"


         />
  <action name="onhoverIconCallOutTitlesDescrpBGtoplong">
    showtooltip('hotspot');
  </action>
  <action name="onoutIconCallOutTitlesDescrpBGtoplong">
    hideTooltip();



  </action>



    
  <!-- Spot Style - Call Out Titles Descrp BG right down -->


  <style name="IconCallOutTitlesDescrpBGrightdown"
         url="%FIRSTXML%/spots/hotspot_information_user_defaultpoint16.png"
         visible="false"
         edge="center"
         onhover="onhoverIconCallOutTitlesDescrpBGrightdown"
         onout="onoutIconCallOutTitlesDescrpBGrightdown"


         />
  <action name="onhoverIconCallOutTitlesDescrpBGrightdown">
    showtooltip('hotspot');
  </action>
  <action name="onoutIconCallOutTitlesDescrpBGrightdown">
    hideTooltip();



  </action>



<!-- ********** -->
<!-- Podwójne kliknięcie -->
<!-- id : doubleclick -->
<!-- ********** -->
  <events name="doubleclick_events" keep="true" ondoubleclick="doubleclick_ondoubleclick"/>
  <action name="doubleclick_ondoubleclick">switchFullscreen();


  </action>
<!-- ********* -->
<!-- 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>

<!-- ********** -->
<!--  -->
<!-- id : loaderinfo -->
<!-- ********** -->

  <events name="loaderinfoevent" onxmlcomplete="loaderinfoupdate();" keep="true"/>

  <action name="loaderinfoupdate">
    if(scene[get(xml.scene)].video,
      set(layer[loaderinfotextfield].visible, false);
    ,
      if (progress.progress == 1,
        delayedcall(0.5, set(layer[loaderinfotextfield].visible, false); );
      ,
        set(layer[loaderinfotextfield].visible, true);
      );
      mul(progresstext, get(progress.progress),100);
      roundval(progresstext);
      txtadd(progresstext, get(progresstext), %);
      set(layer[loaderinfotextfield].html, get(progresstext));
      ifnot(progress.progress GE 1, delayedcall(0.01, loaderinfoupdate() ));
    );
  </action>

  <layer name="loaderinfotextfield"
         keep="true"
         zorder="3"
         type="text"
         align="center"
         x="0"
         y="0"
         bgborder="0"
         bg="false"
         capture="false"
         handcursor="false"
         interactivecontent="false"
         alpha="1"
         visible="true"
         css="
         text-align:center;
         color:#ffffff;
         font-family:Arial;
         font-weight:bold;
         font-size:16px;
         "
  />
<krpano  >
<!-- ******************************************* -->
<!-- ALPO Sidebar Plugin -->
<!-- ******************************************* -->
<include url="%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/sidebar.xml" /> <sidebar name="settings"  groupCount="6"      groupName0="get:data[pl_panogroup53296_title].content" groupMessage0="panogroup53296_title" totalPanos0="1" group0Contents="pano53273|" group0MainPano="pano53273" isRealGroup_0="true"  SceneName_0_0="pano53273"       groupName1="get:data[pl_panogroup53291_title].content" groupMessage1="panogroup53291_title" totalPanos1="1" group1Contents="pano53268|" group1MainPano="pano53268" isRealGroup_1="true"  SceneName_1_0="pano53268"       groupName2="get:data[pl_panogroup53297_title].content" groupMessage2="panogroup53297_title" totalPanos2="9" group2Contents="pano53284|pano53278|pano53285|pano53287|pano53288|pano53289|pano53274|pano53275|pano53286|" group2MainPano="pano53284" isRealGroup_2="true"  SceneName_2_0="pano53284"  SceneName_2_1="pano53278"  SceneName_2_2="pano53285"  SceneName_2_3="pano53287"  SceneName_2_4="pano53288"  SceneName_2_5="pano53289"  SceneName_2_6="pano53274"  SceneName_2_7="pano53275"  SceneName_2_8="pano53286"       groupName3="get:data[pl_panogroup53294_title].content" groupMessage3="panogroup53294_title" totalPanos3="4" group3Contents="pano53290|pano53269|pano53271|pano53270|" group3MainPano="pano53290" isRealGroup_3="true"  SceneName_3_0="pano53290"  SceneName_3_1="pano53269"  SceneName_3_2="pano53271"  SceneName_3_3="pano53270"       groupName4="get:data[pl_panogroup53304_title].content" groupMessage4="panogroup53304_title" totalPanos4="7" group4Contents="pano53276|pano53277|pano53279|pano53281|pano53280|pano53282|pano53283|" group4MainPano="pano53276" isRealGroup_4="true"  SceneName_4_0="pano53276"  SceneName_4_1="pano53277"  SceneName_4_2="pano53279"  SceneName_4_3="pano53281"  SceneName_4_4="pano53280"  SceneName_4_5="pano53282"  SceneName_4_6="pano53283"       groupName5="get:data[pl_panogroup53295_title].content" groupMessage5="panogroup53295_title" totalPanos5="1" group5Contents="pano53272|" group5MainPano="pano53272" isRealGroup_5="true"  SceneName_5_0="pano53272"    sbColor="030303" sbColorAlpha="0.70" sbWidth="250" sbAlign="left" startOpened="true" startOpenedMob="false" sbCloseIfnew="false" sbCloseIfnewMob="true" sbIconPosition="bottom" sbIconAlpha="80" sbIconAlphaSep="false" sbIconAlphaSepVal="90" sbIconOverState="false" sbIconOpenedState="false" sbIconOpenedOverState="false" sbIconPositionX="-10" sbIconPositionY="60" sbIconPositionOpenUse="false" sbIconPositionOpen="top" sbIconPositionOpenX="0" sbIconPositionOpenY="0" sbIconHideShowDelay="false" sbIconDelay="6" sbOpenActions="0" sbCloseActions="0" sbMenuType="hierarchical"  sbIconUrl="%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/graphics/sb_menu.png"     textFieldUrl="%FIRSTXML%/graphics/textfield.swf"   scrollAltUrl="%FIRSTXML%/graphics/scrollarea.js"  sbcurrent_PanoTxt="alpo_sidebar_fullsbcurrent_PanoTxt" sbcurrent_PanoTxtFont="trebuchet ms" sbcurrent_PanoTxtFontSize="14" sbcurrent_PanoTxtColor="b7b7b7" sbcurrent_PanoTxtAlpha="0.70" sbcurrent_PanoTxtAlign="center"  sbcurrent_PanoTxtFontItalic=""   sbcurrent_PanoTxtFontBold=""   sbcurrent_PanoTxtFontTD=""  sbcurrent_PanoNameTxtColor="ffffff" sbcurrent_PanoNameTxtSize="18"  sbcurrent_PanoNameTxtDecorU1="" sbcurrent_PanoNameTxtDecorU2=""   sbcurrent_PanoNameTxtDecorB1="" sbcurrent_PanoNameTxtDecorB2=""   sbcurrent_PanoNameTxtDecorI1="" sbcurrent_PanoNameTxtDecorI2=""  sbOpenCloseUseOpener="true" sbOpenCloseUseButton="true" sbContextMenuItem="false" sbZorder="98" /> <style name="sbBlocks" keep="true" type="container" bgcapture="false" bgalpha="0.0" width="100%" accuracy="1" />  <style name="sbOpenerST" keep="true" align="left" />  <style name="sbIconST" visible="true" /> <style name="scrollareaDescr" keep="true" devices="html5" url="get:sidebar[settings].scrollAltUrl" direction="v" draggable="true" mwheel="true" onhover_autoscrolling="false" overscroll="0.5" friction="0.95" acceleration="0.08" returnacceleration="0.15" momentum="0.06" accuracy= "1" align="top" width="100%" /> <events name="sbBlocksHEv" keep="true" onxmlcomplete="delayedcall(0, sbBlocksHEvAct());" /><action name="sbBlocksHEvAct">    calcBlock1H();    calcBlock2H();    calcBlock3H();    calcBlock4H();    calcBlock5H();   setBlockAutoHeight( 3, 5 );  if(layer[backBtn].visible, calc(layer[scrolLayer].height, layer[calc(layer[scrolLayer].parent)].height - layer[backBtn].height - (layer[scrolLayer].y - layer[backBtn].height) ); , set(layer[scrolLayer].height, 100%); ); set(events[sbBlocksHEv].onresize, sbBlocksHEvAct()); </action>  <style name="sbBlock1ST" parent="sb" align="top" minheight="194" maxheight="0" y="0"  /> <layer name="sbBlock1" style="sbBlocks|sbBlock1ST" /> <action name="calcBlock1H"> calc(layer[sbBlock1].height, 15 * stageheight * 0.01); if(layer[sbBlock1].height LT layer[sbBlock1].minheight AND layer[sbBlock1].minheight != 0, copy(layer[sbBlock1].height, layer[sbBlock1].minheight); ); if(layer[sbBlock1].height GT layer[sbBlock1].maxheight AND layer[sbBlock1].maxheight != 0, copy(layer[sbBlock1].height, layer[sbBlock1].maxheight); ); calc(layer[sbBlock1].realBlockY, 0 + 0); </action>   <style name="sbBlock2ST" parent="sbBlock1" align="bottom" edge="top" minheight="0" maxheight="0" y="-5"  /> <layer name="sbBlock2" style="sbBlocks|sbBlock2ST" /> <action name="calcBlock2H"> calc(layer[sbBlock2].height, 10 * stageheight * 0.01); if(layer[sbBlock2].height LT layer[sbBlock2].minheight AND layer[sbBlock2].minheight != 0, copy(layer[sbBlock2].height, layer[sbBlock2].minheight); ); if(layer[sbBlock2].height GT layer[sbBlock2].maxheight AND layer[sbBlock2].maxheight != 0, copy(layer[sbBlock2].height, layer[sbBlock2].maxheight); ); calc(layer[sbBlock2].realBlockY, layer[sbBlock1].realBlockY + layer[sbBlock1].height + 5); </action>   <style name="sbBlock3ST" parent="sbBlock2" align="bottom" edge="top" minheight="0" maxheight="0" y="-10"  /> <layer name="sbBlock3" style="sbBlocks|sbBlock3ST" /> <action name="calcBlock3H"> calc(layer[sbBlock3].height, 20 * stageheight * 0.01); if(layer[sbBlock3].height LT layer[sbBlock3].minheight AND layer[sbBlock3].minheight != 0, copy(layer[sbBlock3].height, layer[sbBlock3].minheight); ); if(layer[sbBlock3].height GT layer[sbBlock3].maxheight AND layer[sbBlock3].maxheight != 0, copy(layer[sbBlock3].height, layer[sbBlock3].maxheight); ); calc(layer[sbBlock3].realBlockY, layer[sbBlock2].realBlockY + layer[sbBlock2].height + 10); </action>   <style name="sbBlock4ST" parent="sbBlock3" align="bottom" edge="top" minheight="0" maxheight="0" y="-5"  /> <layer name="sbBlock4" style="sbBlocks|sbBlock4ST" /> <action name="calcBlock4H"> calc(layer[sbBlock4].height, 5 * stageheight * 0.01); if(layer[sbBlock4].height LT layer[sbBlock4].minheight AND layer[sbBlock4].minheight != 0, copy(layer[sbBlock4].height, layer[sbBlock4].minheight); ); if(layer[sbBlock4].height GT layer[sbBlock4].maxheight AND layer[sbBlock4].maxheight != 0, copy(layer[sbBlock4].height, layer[sbBlock4].maxheight); ); calc(layer[sbBlock4].realBlockY, layer[sbBlock3].realBlockY + layer[sbBlock3].height + 5); </action>   <style name="sbBlock5ST" parent="sbBlock4" align="bottom" edge="top" minheight="0" maxheight="0" y="-0"  /> <layer name="sbBlock5" style="sbBlocks|sbBlock5ST" /> <action name="calcBlock5H"> calc(layer[sbBlock5].height, 5 * stageheight * 0.01); if(layer[sbBlock5].height LT layer[sbBlock5].minheight AND layer[sbBlock5].minheight != 0, copy(layer[sbBlock5].height, layer[sbBlock5].minheight); ); if(layer[sbBlock5].height GT layer[sbBlock5].maxheight AND layer[sbBlock5].maxheight != 0, copy(layer[sbBlock5].height, layer[sbBlock5].maxheight); ); calc(layer[sbBlock5].realBlockY, layer[sbBlock4].realBlockY + layer[sbBlock4].height + 0); </action>                  <style name="sbLogoST" keep="true" url="%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/logo-hart-tech.png" align="top" alpha="0" width="100%" height="prop" handcursor="true" accuracy="1" parent="sbBlock1" onclick="sbOnClickLogo()" />  <action name="sbOnClickLogo"> getmessage(urltoopen,alpo_sidebar_fullsb_onclick_logo106505openurlwebsiteurl);openurl(get(urltoopen),_blank);

  </action>                   <style name="sbLogo2ST" keep="true" url="%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/realizacja_3dtrip.png" align="top" alpha="0" width="100%" height="prop" handcursor="true" accuracy="1" parent="sbBlock5" onclick="sbOnClickLogo2()" />  <action name="sbOnClickLogo2"> getmessage(urltoopen,alpo_sidebar_fullsb_onclick_2logo101101101102101102101102101102101102101102101102101102101102101102101102101102101102101102101102101102101102101102101102101102101102101102101102101102101102101102101102101102101102101102101102101102101102101102101102101102786openurlwebsiteurl);openurl(get(urltoopen),_blank);

  </action>                   <include url="%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/include_currpano.xml"/> <style name="current_PanoNameUseST" keep="true" url="%FIRSTXML%/graphics/textfield.swf" parent="sbBlock2" x="0" align="center"/>                    <include url="%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/menutype/hierarchical.xml" /> <style name="scrolLayerST" keep="true" type="container" align="top" parent="sbBlock3" accuracy="1" width="0" height="100%"/>                   <!-- ////////////// Description (PANO) usage block--> <!--Description (PROJECT) usage block-->                                 <style name="sbButtonsContST" parent="sbBlock4" keep="true" type="container" align="center" bgalpha="0.0" bgcapture="false" maskchildren="true" maxwidth="get:layer[sb].width" /> <style name="sbButtonsST" keep="true" type="container" bgcapture="true" accuracy="1" maskchildren="true" parent="sbButtonsCont" align="lefttop"/> <style name="sbButtonIconST" keep="true" x="0" y="0" accuracy="1" align="center" enabled="false" onloaded="sbSetIconScaling(get(name),60)"/> <style name="sbButtonsCommonST" width="45" height="45" width.tablet="32" height.tablet="28" width.mobile="32" height.mobile="28" bgcolor="0xffffff" bgalpha="0.00" bgroundedge="10" bgroundedge.tablet="5" bgroundedge.mobile="5"  onout="hideTooltip();sbButtonsCommonOnOut(get(name));" onover="sbButtonsCommonOnover(get(name))" onup.no-mouse="sbButtonsCommonOnOut(get(name));" ondown.no-mouse="sbButtonsCommonOnover(get(name))"  visible="false" autoalpha="true" alpha="0" onloaded="delayedcall(0.5, tween(layer[get(name)].alpha, 1))" />  <action name="sbSetIconScaling"> if(layer[%1].imagewidth GT layer[%1].imageheight, txtadd(layer[%1].width, %2, '%'); set(layer[%1].height, prop); , txtadd(layer[%1].height, %2, '%'); set(layer[%1].width, prop); ); </action>  <action name="sbButtonToggle"> if(sbButton%1FirstClicked == false OR sbButton%1FirstClicked === null, set(sbButton%1FirstClicked, true); copy(layer[sbButton%1icon].url, layer[sbButton%1icon].urlState2); sbButton%1ClickFirst(); , set(sbButton%1FirstClicked, false); copy(layer[sbButton%1icon].url, layer[sbButton%1icon].urlState1); sbButton%1ToggleClick(); ); </action>  <action name="sbButtonsCommonOnover">   set(layer[%1].bgcolor, 0xff6400); set(layer[%1].bgalpha, 1.00);  </action> <action name="sbButtonsCommonOnOut">   set(layer[%1].bgcolor, 0xffffff); set(layer[%1].bgalpha, 0.00);  </action>                    <layer name="sbButton1" style="sbButtonsST|sbButtonsCommonST" onclick="sbButton1ClickFirst()"  x="0" y="0"  x.tablet="0" y.tablet="0"   x.mobile="0" y.mobile="0"        />  <layer name="sbButton1icon" style="sbButtonIconST" url="%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/facebook.png" parent="sbButton1" urlState1="%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/facebook.png" urlState2="%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/"  />   <action name="sbButton1ClickFirst">  getmessage(urltoopen,alpo_sidebar_fullsbButton1Action101101101101101102101101101102101101101102101101101102101101101102101101101102101101101102101101101102189openurlwebsiteurl);openurl(get(urltoopen),_blank);

  </action>                     <layer name="sbButton2" style="sbButtonsST|sbButtonsCommonST" onclick="sbButton2ClickFirst()"  x="48" y="0"  x.tablet="43" y.tablet="0"   x.mobile="43" y.mobile="0"        />  <layer name="sbButton2icon" style="sbButtonIconST" url="%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/linkedin.png" urlState1="%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/linkedin.png" urlState2="%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/" parent="sbButton2"  />   <action name="sbButton2ClickFirst">  getmessage(urltoopen,alpo_sidebar_fullsbButton2Action101101101101101102101101101102101101101102101101101102101101101102101101101102101101101102101101101102395openurlwebsiteurl);openurl(get(urltoopen),_blank);

  </action>                                         <layer name="sbButtonsCont" style="sbButtonsContST" width="1" height="1" onloaded="if(device.desktop,sbButtonsContgetW( 96 ,0 ,3 ,0 ,0 ,45  ); );  if(device.tablet,sbButtonsContgetW_TAB( 86 ,0 ,11 ,0 ,0 ,28  ); );   if(device.mobile,sbButtonsContgetW_MOB( 86 ,0 ,11 ,0 ,0 ,28  ); );  sbButtonsContSetOffset(); sbButtondContSetMinHeight(sbBlock4); " /> <action name="sbButtonsContgetW"> if(%1 GE %2, sub(layer[sbButtonsCont].width, %1, %3);  , sub(layer[sbButtonsCont].width, %2, %3);  ); if(%5 GT 0, add(layer[sbButtonsCont].height, %5, %6);  , add(layer[sbButtonsCont].height, %4, %6);  ); </action> <action name="sbButtonsContgetW_TAB"> if(%1 GE %2, sub(layer[sbButtonsCont].width, %1, %3);  , sub(layer[sbButtonsCont].width, %2, %3);  ); if(%5 GT 0, add(layer[sbButtonsCont].height, %5, %6);  , add(layer[sbButtonsCont].height, %4, %6);  ); </action> <action name="sbButtonsContgetW_MOB"> if(%1 GE %2, sub(layer[sbButtonsCont].width, %1, %3);  , sub(layer[sbButtonsCont].width, %2, %3);  ); if(%5 GT 0, add(layer[sbButtonsCont].height, %5, %6);  , add(layer[sbButtonsCont].height, %4, %6);  ); </action> <action name="sbButtonsContSetOffset"> if(layer[sbButtonsCont].align != top AND layer[sbButtonsCont].align != center AND layer[sbButtonsCont].align != bottom, set(layer[sbButtonsCont].x, 0); ); </action> <action name="sbButtondContSetMinHeight"> if(layer[%1].minheight LT layer[sbButtonsCont].height, copy(layer[%1].minheight, layer[sbButtonsCont].height); ); </action>    <sidebar name="settings" sbUseMainMenu="true" /> <sidebar name="settings" sbUseLogo="true"  /> <sidebar name="settings" sbUseLogo2="true"  /> <sidebar name="settings" current_PanoNameUse="true" /> <sidebar name="settings" useButtons="true" /> <!-- *********************** --> <events devices="html5" name="alpoSBinitEV" keep="true" onxmlcomplete="alpoSBinit" /> <plugin devices="html5" name="alpoSB" keep="true" url="%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/js/alpo.sidebar.js" /> <action devices="html5" name="alpoSBinit" type="Javascript"><![CDATA[ window.alpoSB = { plugID : 'alpo_sidebar_full', plugDir : 'hart-techdata/graphics/alpo.sidebar-v1.0.92', flags : {}, font : '', jsonData : '{ "project" : { "data" : { "dataDir" : "hart-techdata", "bgClr" : "#ffffff", "fgClr" : "#000000", "groupsCount" : 6 }, "groups" : [  { "id" : "panogroup53296", "title" : "panogroup53296_title", "description" : "panogroup53296_description", "url" : "%FIRSTXML%/_14_53273/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/panogroup53296.png", "color" : "#3c3c3c", "real" : true, "panoCount" : 1, "mainPano" : "pano53273", "panoramas" : [  { "id" : "pano53273", "parentID" : "panogroup53296", "title" : "pano53273_title", "description" : "pano53273_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/pano53273.png", "url" : "%FIRSTXML%/_14_53273/thumbnail.jpg" }  ] },  { "id" : "panogroup53291", "title" : "panogroup53291_title", "description" : "panogroup53291_description", "url" : "%FIRSTXML%/magazyn_53268/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/panogroup53291.png", "color" : "#a0a0a0", "real" : true, "panoCount" : 1, "mainPano" : "pano53268", "panoramas" : [  { "id" : "pano53268", "parentID" : "panogroup53291", "title" : "pano53268_title", "description" : "pano53268_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/pano53268.png", "url" : "%FIRSTXML%/magazyn_53268/thumbnail.jpg" }  ] },  { "id" : "panogroup53297", "title" : "panogroup53297_title", "description" : "panogroup53297_description", "url" : "%FIRSTXML%/_3_53284/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/panogroup53297.png", "color" : "#c8c8c8", "real" : true, "panoCount" : 9, "mainPano" : "pano53284", "panoramas" : [  { "id" : "pano53284", "parentID" : "panogroup53297", "title" : "pano53284_title", "description" : "pano53284_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/pano53284.png", "url" : "%FIRSTXML%/_3_53284/thumbnail.jpg" },  { "id" : "pano53278", "parentID" : "panogroup53297", "title" : "pano53278_title", "description" : "pano53278_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/pano53278.png", "url" : "%FIRSTXML%/_2_53278/thumbnail.jpg" },  { "id" : "pano53285", "parentID" : "panogroup53297", "title" : "pano53285_title", "description" : "pano53285_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/pano53285.png", "url" : "%FIRSTXML%/_4_53285/thumbnail.jpg" },  { "id" : "pano53287", "parentID" : "panogroup53297", "title" : "pano53287_title", "description" : "pano53287_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/pano53287.png", "url" : "%FIRSTXML%/_6_53287/thumbnail.jpg" },  { "id" : "pano53288", "parentID" : "panogroup53297", "title" : "pano53288_title", "description" : "pano53288_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/pano53288.png", "url" : "%FIRSTXML%/_7_53288/thumbnail.jpg" },  { "id" : "pano53289", "parentID" : "panogroup53297", "title" : "pano53289_title", "description" : "pano53289_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/pano53289.png", "url" : "%FIRSTXML%/_8_53289/thumbnail.jpg" },  { "id" : "pano53274", "parentID" : "panogroup53297", "title" : "pano53274_title", "description" : "pano53274_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/pano53274.png", "url" : "%FIRSTXML%/_15_53274/thumbnail.jpg" },  { "id" : "pano53275", "parentID" : "panogroup53297", "title" : "pano53275_title", "description" : "pano53275_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/pano53275.png", "url" : "%FIRSTXML%/_17_53275/thumbnail.jpg" },  { "id" : "pano53286", "parentID" : "panogroup53297", "title" : "pano53286_title", "description" : "pano53286_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/pano53286.png", "url" : "%FIRSTXML%/_5_53286/thumbnail.jpg" }  ] },  { "id" : "panogroup53294", "title" : "panogroup53294_title", "description" : "panogroup53294_description", "url" : "%FIRSTXML%/_9_53290/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/panogroup53294.png", "color" : "#646464", "real" : true, "panoCount" : 4, "mainPano" : "pano53290", "panoramas" : [  { "id" : "pano53290", "parentID" : "panogroup53294", "title" : "pano53290_title", "description" : "pano53290_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/pano53290.png", "url" : "%FIRSTXML%/_9_53290/thumbnail.jpg" },  { "id" : "pano53269", "parentID" : "panogroup53294", "title" : "pano53269_title", "description" : "pano53269_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/pano53269.png", "url" : "%FIRSTXML%/_10_53269/thumbnail.jpg" },  { "id" : "pano53271", "parentID" : "panogroup53294", "title" : "pano53271_title", "description" : "pano53271_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/pano53271.png", "url" : "%FIRSTXML%/_12_53271/thumbnail.jpg" },  { "id" : "pano53270", "parentID" : "panogroup53294", "title" : "pano53270_title", "description" : "pano53270_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/pano53270.png", "url" : "%FIRSTXML%/_11_53270/thumbnail.jpg" }  ] },  { "id" : "panogroup53304", "title" : "panogroup53304_title", "description" : "panogroup53304_description", "url" : "%FIRSTXML%/_18_53276/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/panogroup53304.png", "color" : "#3c3c3c", "real" : true, "panoCount" : 7, "mainPano" : "pano53276", "panoramas" : [  { "id" : "pano53276", "parentID" : "panogroup53304", "title" : "pano53276_title", "description" : "pano53276_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/pano53276.png", "url" : "%FIRSTXML%/_18_53276/thumbnail.jpg" },  { "id" : "pano53277", "parentID" : "panogroup53304", "title" : "pano53277_title", "description" : "pano53277_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/pano53277.png", "url" : "%FIRSTXML%/_19_53277/thumbnail.jpg" },  { "id" : "pano53279", "parentID" : "panogroup53304", "title" : "pano53279_title", "description" : "pano53279_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/pano53279.png", "url" : "%FIRSTXML%/_20_53279/thumbnail.jpg" },  { "id" : "pano53281", "parentID" : "panogroup53304", "title" : "pano53281_title", "description" : "pano53281_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/pano53281.png", "url" : "%FIRSTXML%/_22_53281/thumbnail.jpg" },  { "id" : "pano53280", "parentID" : "panogroup53304", "title" : "pano53280_title", "description" : "pano53280_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/pano53280.png", "url" : "%FIRSTXML%/_21_53280/thumbnail.jpg" },  { "id" : "pano53282", "parentID" : "panogroup53304", "title" : "pano53282_title", "description" : "pano53282_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/pano53282.png", "url" : "%FIRSTXML%/_23_53282/thumbnail.jpg" },  { "id" : "pano53283", "parentID" : "panogroup53304", "title" : "pano53283_title", "description" : "pano53283_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/pano53283.png", "url" : "%FIRSTXML%/_24_53283/thumbnail.jpg" }  ] },  { "id" : "panogroup53295", "title" : "panogroup53295_title", "description" : "panogroup53295_description", "url" : "%FIRSTXML%/_13_53272/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/panogroup53295.png", "color" : "#505050", "real" : true, "panoCount" : 1, "mainPano" : "pano53272", "panoramas" : [  { "id" : "pano53272", "parentID" : "panogroup53295", "title" : "pano53272_title", "description" : "pano53272_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/assets/--/pano53272.png", "url" : "%FIRSTXML%/_13_53272/thumbnail.jpg" }  ] }  ] }, "plugin" : { "includes" : { "textfield" : "%FIRSTXML%/graphics/textfield.swf", "scrollarea" : "%FIRSTXML%/graphics/scrollarea.js" }, "settings" : { "sb" : { "width" : 250, "specifyWidth" : false,  "color" : "030303", "alpha" : 0.00, "align" : "left", "zorder" : 98, "startOpened" : true, "startOpenedMob" : false, "closeIfnew" : false, "closeIfnewMob" : true, "menuType" : "hierarchical", "openerUse" : true, "sbCloseOnClick" : true, "contextMenuUse" : false }, "btn" : { "use" : true, "position" : "bottom", "alpha" : 80, "alphaOpenUse" : false, "alphaOpen" : 90, "overStateUse" : false, "openStateUse" : false, "openOverStateUse": false, "posX" : "-10", "posY" : "60", "posOpenUse" : false, "posOpen" : "top", "posXOpen" : "0", "posYOpen" : "0", "showHideDelayUse": false, "showHideDelay" : 6, "sbOpenActions" : 0, "sbCloseActions" : 0, "url" :  "%FIRSTXML%/graphics/alpo.sidebar-v1.0.92/graphics/sb_menu.png" , "urlOver" : "", "urlOpen" : "", "urlOpenOver" : "" }, "currentPano" : { "text" : "alpo_sidebar_fullsbcurrent_PanoTxt", "font" : "trebuchet ms", "fontSize" : 14, "color" : "b7b7b7", "alpha" : "0.70", "align" : "center", "italic" : "", "bold" : "", "underline" : "", "colorName" : "ffffff", "fontSizeName" : "18", "italicNameUse" : "false", "boldNameUse" : "false", "underlineNameUse" : "false" }, "menu" : [ { "menuType" : "thumbscont", "thumbsContMargin" : 5, "tcScrollHeight" : 56, "tcScrollVSpace" : 5, "tcScrollXOffset": 0, "tcScrollMenuW" : 243   }, { "menuType" : "hierarchical", "activeMenuHr" : false,  "excludePano" : "", "orderItems" : " ", "groupAsText" : true, "panoAsText" : false, "custAsText" : true, "width" : 245, "height" : 50, "vSpace" : 5, "xOffset" : 0,   "loadMainPano" : true, "loadMainOpen" : true, "bgrColor" : "0x111111", "bgrAlpha" : 0.60, "txtOffsetL" : 10, "txtOffsetR" : 4, "txtAlign" : "center", "font" : "trebuchet ms", "fontSize" : 14, "color" : "eeeeee", "italic" : " font-style:normal; ", "bold" : " font-weight:normal; ", "underline" : " text-decoration:none; ", "overStateUse" : false, "overColorUse" : true, "overColor" : "0xff6100", "overAlpha" : 1.00, "itemIconUse" : false, "itemIconDflt" : true, "itemIcon" : "", "itemIconOffsetX" : "0", "itemIconOffsetY" : "0", "itemIconScale" : 100, "itemIconAlign" : "right", "itemIconSpecify" : false,  "itemBorderUse" : true, "itemBorder" : "0,0,1,0 0xeeeeee 0.60", "itemBorderT" : 0, "itemBorderR" : 0, "itemBorderB" : 1, "itemBorderL" : 0, "hrBgroundedge" : "0 0 0 0", "thumbPos" : "top", "thumbTxtPadT" : 15, "thumbTxtPadB" : 35, "thumbHeight" : 110, "thumbVStxtMarg" : 5, "thumbAlign" : "center", "thumbHorizOff" : 0,   "backBtn" : { "height" : 60, "width" : 245,   "bottomMarg" : 0, "align" : "top", "bgrUse" : true, "bgrColor" : "0x0c4694", "bgrAlpha" : 1.00, "bgrChange" : true, "bgrChangeColor" : "0x0c4694", "bgrChangeAlpha" : 0.80, "txtUse" : true, "txtSrc" : "group", "font" : "trebuchet ms", "fontSize" : 16, "fontColor" : "eeeeee", "txtAlign" : "center", "txtVcenter" : true, "paddingT" :  0 , "paddingB" :  0 , "paddingR" : 8, "paddingL" : 30, "iconUse" : true, "iconWidth" : 30, "iconHeight" : 30, "iconUrl" : "  %FIRSTXML%/graphics/alpo.sidebar-v1.0.92/graphics/arr_back_left.png  ", "italic" : "  font-style:normal;  ", "bold" : "  font-weight:normal;  ", "underline" : "  text-decoration:none;  " }, "scrollInd" : { "use" : true, "color" : "0x08356f", "alpha" : 1.00, "width" : 8, "zorder" : 98, "barUse" : true, "barColor" : "0x353526", "barAlpha" : 0.50 }, "scrollBtns" : { "use" : false, "width" : "20", "height" : "18", "scale" : 100, "bgcolor" : "0xe1e1e1", "bgalpha" : 1.00, "align" : "right", "zorder" : 98, "overStateUse" : false, "bgrOverColor" : "0x0c4694", "bgrOverAlpha" : 0.90, "iconOverAlpha" : 30, "iconDflt" : false, "iconFileT" : "", "iconFileB" : "", "iconAlpha" : 50 } } ], "customItemsSet" : { "menuOrganize" : "dflt", "ignoreRest" : false, "panoAttachedByAct" : false } }, "customSet" : [  { "title" : "alpo_sidebar_fullitemName1", "image" : "", "elemIndex" : 0, "custom" : true, "isChild" : false, "subItemsInd" : "", "subGroupsColor" : "000000", "subPanoIDs" : "", "itemActions" :  ""  }  ] } }' }; krpano.set('events[alpoSBinitEV].onxmlcomplete', null); ]]></action>       </krpano>

<!-- ********** -->
<!-- Super Text -->
<!-- id : SuperText -->
<!-- Copyright by Chiocchetti Maurizio Panotourplugin.com - 2019 -->
<!-- ********** -->


<ptplugin name="SuperText" canStart="false" newPano="false" openatstart="true" mode="panorama" startMethod="showDescription_SuperText" engine="kolorArea">
	<settings>
		<option name="position" value="right" type="string" />
		<option name="start_position" value="top" type="string" />
		<option name="margin_x" value="0" type="int" />
		<option name="margin_y" value="0" type="int" />
		<option name="background_color" value="2f2f2f" type="string" />
		<option name="background_alpha" value="0.7000076295109483" type="float" />
		<option name="topleft_radius" value="0" type="int" />
		<option name="topright_radius" value="0" type="int" />
		<option name="bottomleft_radius" value="0" type="int" />
		<option name="bottomright_radius" value="0" type="int" />
		<option name="area_border_width" value="0" type="int" />
		<option name="area_border_color" value="f2f2f2" type="string" />
		<option name="area_border_alpha" value="1" type="float" />
		<option name="padding" value="15" type="int" />
		<option name="display_title" value="false" type="bool" />
		<option name="close_displayed" value="true" type="bool" />
		<option name="close_text" value="SuperTextdisplay_close_text" type="string" />

		<option name="overlay_displayed" value="false" type="bool" />
		<option name="overlay_color" value="ffffff" type="string" />
		<option name="overlay_alpha" value="0.80000000000000004" type="float" />


		<option name="area_width" value="25" type="int" devices="mobile"/>
		<option name="area_height" value="25" type="int" devices="mobile"/>

		<option name="area_width" value="25" type="int" devices="tablet"/>
		<option name="area_height" value="25" type="int" devices="tablet"/>

		<option name="area_width" value="25" type="int" devices="desktop"/>
		<option name="area_height" value="29" type="int" devices="desktop"/>

		<option name="area_width_unit" value="percent" type="string" devices="desktop"/>
		<option name="area_height_unit" value="percent" type="string" devices="desktop"/>
		<option name="area_width_unit" value="percent" type="string" devices="mobile"/>
		<option name="area_height_unit" value="percent" type="string" devices="mobile"/>
		<option name="area_width_unit" value="percent" type="string" devices="tablet"/>
		<option name="area_height_unit" value="percent" type="string" devices="tablet"/>

		<option name="animation" value="true" type="bool" />
		<option name="animation_duration" value="500" type="int" />
		<option name="refresh_content" value="true" type="bool" />
		<option name="close_callback" value="invokeKrFunction('closeKolorAreaCallback_SuperText')" type="string" />
		<option name="close_on_click" value="false" type="bool" />
		<option name="zorder" value="1" type="int" />
		<option name="use_i18n" value="true" type="bool" />
	</settings>
</ptplugin>

<action name="kolorAreaJsReady_SuperText">
	set(ptplugin[SuperText].jsready, true);

</action>

<action name="SuperTextinit"  type="Javascript" devices="desktop|tablet|mobile">
<![CDATA[
$(document).ready(function(){



var SuperTexts1 = document.createElement("script");
SuperTexts1.type = "text/javascript";
SuperTexts1.src = "hart-techdata/graphics/supertext/perfect-scrollbar.min.js";
$("head").append(SuperTexts1);

var SuperTexts99 = document.createElement("link");
SuperTexts99.type = "text/css";
SuperTexts99.rel = 'stylesheet';
SuperTexts99.href = "hart-techdata/graphics/supertext/perfect-scrollbar.css";
$("head").append(SuperTexts99);


});
]]>
</action>






<action name="openKolorArea_SuperText">
	ifnot(ptplugin[SuperText].isOpen,
		set(ptplugin[SuperText].isOpen, true);
		
		js(showKolorArea(SuperText, get(ptplugin[SuperText].descID)));
		SuperTextstart_desc();
		events.dispatch(onremovedisplayedobject);
	);
</action>

<action name="closeKolorArea_SuperText">
	if(ptplugin[SuperText].isOpen,
		js(invokePluginFunction(SuperText, closeKolorArea));
	);
</action>

<action name="toggleKolorArea_SuperText">
	if(ptplugin[SuperText].isOpen,
		closeKolorArea_SuperText();
	,
		openKolorArea_SuperText();
	);
</action>

<action name="closeKolorAreaCallback_SuperText">
	set(ptplugin[SuperText].isOpen, false);
	if(tour_displayinfo,hideTourInfo();

	);
</action>



<action name="showKolorArea_SuperText">
	ifnot(ptplugin[SuperText].startMethod == "",
		delayedcall(0,get(ptplugin[SuperText].startMethod));
	,
		set(ptplugin[SuperText].isOpen, true);
		
		js(invokePluginFunction(SuperText, showKolorArea, %1));
		events.dispatch(onremovedisplayedobject);
	);
</action>

<action name="hideKolorArea_SuperText">
	
	set(ptplugin[SuperText].isOpen, false);
	js(invokePluginFunction(SuperText, hideKolorArea, %1));
</action>

<action name="openDescription_SuperText">
	openKolorArea_SuperText();
</action>

<action name="openSpotDescription_SuperText">
	set(ptplugin[SuperText].descID, %1);
	openKolorArea_SuperText();
</action>

<action name="closeDescription_SuperText">
	set(ptplugin[SuperText].currentGroup, false);
	if(%1,
		set(restore_SuperText, true);
	,
		set(restore_SuperText, false);
	);
	closeKolorArea_SuperText();
</action>

<action name="showDescription_SuperText">
	if(ptplugin[SuperText].canStart,
		set(ptplugin[SuperText].descID, get(scene[get(xml.scene)].descriptionid));
		if(ptplugin[SuperText].descID == null,
			set(ptplugin[SuperText].descID, "");
		);
		if(ptplugin[SuperText].descID != "",
			openDescription_SuperText();
			SuperTextstart_desc();
		,
			hideKolorArea_SuperText(false);
		);
		set(ptplugin[SuperText].startMethod, "");
	);
</action>


<action name="refreshPanoDescription_SuperText">
	set(ptplugin[SuperText].descID, get(scene[get(xml.scene)].descriptionid));

	if(ptplugin[SuperText].descID == null,
		set(ptplugin[SuperText].descID, "");
	);
	if(ptplugin[SuperText].descID != "",
		if(ptplugin[SuperText].isOpen,
			js(invokePluginFunction(SuperText, updateKolorArea, get(ptplugin[SuperText].descID)));
		,
			if(restore_SuperText,
				showDescription_SuperText();
			);
		);
	,
		if(tour_displayinfo,
			delayedcall(0.1,showTourInfo();
);
		);
		closeDescription_SuperText(get(ptplugin[SuperText].isOpen));
	);
</action>

<action name="onNewPano_SuperText">
	if(ptplugin[SuperText].newPano,
		if(ptplugin[SuperText].startMethod == "",
			if(ptplugin[SuperText].isOpen,
				refreshPanoDescription_SuperText();
			,
				if(tour_displaycontrols,
				if(tour_displayinfo,
				showDescription_SuperText();
				,
				refreshPanoDescription_SuperText();
				);
				);
			);
		);
	);
	set(ptplugin[SuperText].newPano, true);
</action>

<action name="changeLanguage_SuperText">
	if(ptplugin[SuperText].jsready,
		stopdelayedcall(delay_SuperText);
		js(invokePluginFunction(SuperText, changeLanguage, true));
		SuperTextstart_desc();
	,
		delayedcall(delay_SuperText, 0.1, changeLanguage_SuperText(););

	);
</action>

<events name="kolorAreaEvents_SuperText"
	keep="true"

	devices="desktop|tablet|mobile"
	onTourStart="set(ptplugin[SuperText].canStart, true);if(ptplugin[SuperText].openatstart,if(tour_displaycontrols,showTourInfo();
););SuperTextinit();"
	onshowtourinfo="if(tour_displayinfo,showDescription_SuperText(); );"
	onhidetourinfo="if(ptplugin[SuperText].isOpen,closeDescription_SuperText(false););"
	onnewpano="onNewPano_SuperText();"
	hidetourcontrols="if(ptplugin[SuperText].isOpen,hideKolorArea_SuperText(false););"
	showtourcontrols="if(tour_displayinfo,if(ptplugin[SuperText].isOpen,showKolorArea_SuperText(false);,showDescription_SuperText();););"
	changetourlanguage="changeLanguage_SuperText();"
/>
<events name="SuperTexttextdesca"

onshowtourinfo="SuperTextstart_desc();"
showtourcontrols="SuperTextstart_desc();"

keep="true"

/>

<action name="SuperTextstart_desc"  type="Javascript" devices="desktop|tablet|mobile">
<![CDATA[



function hexToRGBA(hex, opacity) {
return 'rgba(' + (hex = hex.replace('#', '')).match(new RegExp('(.{' + hex.length/3 + '})', 'g')).map(function(l) { return parseInt(hex.length%2 ? l+l : l, 16) }).concat(opacity||1).join(',') + ')';}
var bgc = hexToRGBA('2f2f2f', 0.7000076295109483);

var SuperTextfft = '';
var SuperTextctrt = (SuperTextfft.match(/:/g) || []).length ;
if (SuperTextctrt == 0) {
var SuperTextfontfontt = SuperTextfft.replace(/\+/g, " ");
} else {
var SuperTextfdt = SuperTextfft.substring(0, SuperTextfft.indexOf(':'));

SuperTextfontfontt = SuperTextfdt.replace(/\+/g, " ");
}

var SuperTextff = '';

var SuperTextctr = (SuperTextff.match(/:/g) || []).length ;

if (SuperTextctr == 0) {
var SuperTextfontfont = SuperTextff.replace(/\+/g, " ");

} else {

var SuperTextfd = SuperTextff.substring(0, SuperTextff.indexOf(':'));

SuperTextfontfont = SuperTextfd.replace(/\+/g, " ");



}

var checkExist = setInterval(function() {
   if ($('#SuperText .kolorAreaContent').length) {

new PerfectScrollbar('#SuperText .kolorArea .kolorAreaContent');

$('#SuperText .kolorAreaContent')
.css('font-family',''+ SuperTextfontfont +', sans-serif')
.css('color','#5d5d5d')
.css('word-wrap','break-word')
.css('line-height','1')
.css('font-size','calc(18px + 0.5vw)')
.css('text-align','center')
.css('z-index','5')


.css('font-weight','normal')
.css('overflow','auto');

$('#SuperText .ps__thumb-x').css('background-color','#ffffff');
$('#SuperText .ps__thumb-y').css('background-color','#ffffff');
$('#SuperText .kolorAreaContent img').css('max-width','100%')
$('#SuperText .kolorAreaContent img').css('height','auto')

$('#SuperText .kolorAreaTitle')
.css('font-family',''+ SuperTextfontfontt +'')


.css('color','#ffffff')
.css('text-align','center')
.css('margin-left','0px')
.css('font-weight','normal')
.css('text-transform','none')
.css('font-size','calc(14px + 0.8vw)');










clearInterval(checkExist);

}
}, 100);









]]>
</action>

 <!-- ********** --> <!-- 360Images CoOL Hotspots Plugin --> <!-- CoOL Hotspots --> <!-- id : cool_hotspot --> <!-- ********** -->        <include url="%FIRSTXML%/graphics/coolhotspots.xml"/>   <style 	cooltype="bubble" 	name="Default Point Spot Style" 	type="container"  	width="50"  	height="50"  	bgalpha="0" 	bgcapture="true"   	accuracy="1" 	bubble_width="50"  	bubble_width_onover="150" 	alwayson="false" 	ttalign="top" 	ttedge="bottom" 	 	onover=" 	hidebbhs(); 	set(zorder,20); 	tween(width|height,get(bubble_width_onover)); 	tween(layer[get(mybubble)].width,get(bubble_width_onover)); 	tween(layer[get(mybubble)].height,get(bubble_width_onover)); 	tween(layer[get(mybubble_shadow)].width,get(bubble_width_onover)); 	tween(layer[get(mybubble_shadow)].height,get(bubble_width_onover)); 	tween(layer[get(mypreview)].alpha,1); 	set(layer[get(mypreview)].enabled,true); 	"     	onout=" 	set(zorder,2);  	tween(width|height,get(bubble_width)); 	tween(layer[get(mybubble)].width,get(bubble_width)); 	tween(layer[get(mybubble)].height,get(bubble_width)); 	tween(layer[get(mybubble_shadow)].width,get(bubble_width)); 	tween(layer[get(mybubble_shadow)].height,get(bubble_width)); 	ifnot(alwayson,tween(layer[get(mypreview)].alpha,0));  	set(layer[get(mypreview)].enabled,false);  	" 	 	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));set(alpha,0)" />       
<!-- ********** -->
<!-- SkinPlus -->
<!-- id : SkinPlus -->
<!-- ********** -->

<!-- Skin Plus 3.2 - 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();"
/>

<events name="start_url"
keep="true"
onTourStart="
delayedcall(0,
if(get(hideallv), urlurl(); hideallaction(););
if(get(hidemenu), urlurl2(); hidemenusk(););
);"

/>

<action name="urlurl2" type="Javascript">

<![CDATA[
var toto = window.location.href;


toto = toto.substring(0, toto.indexOf('&hidemenu=true'));

krpano.set('urlurl', toto);


]]>
</action>

<action name="urlurl" type="Javascript">

<![CDATA[
var toto = window.location.href;


toto = toto.substring(0, toto.indexOf('&hideallv=true'));

krpano.set('urlurl', toto);


]]>
</action>



<action name="SkinPlusactions_onclick">
showlog();trace(get(urlurl));
openurl(get(urlurl),_blank
);
  </action>


<action name="hideallaction">

set(layer[SkinPlushidebutton].visible,true);
set(layer[SkinPlushidebutton].enabled,true);
set(layer[SkinPlusbtn_showcontrols].alpha,0);
set(layer[SkinPlusbtn_showcontrols].alpha,0);
set(layer[SkinPlusbtn_showcontrols].enabled,false);
set(layer[SkinPlusmlogo].visible, false);
set(layer[SkinPlusmlogo].enabled,false);
set(layer[SkinPlusclogo].visible, false);
set(layer[SkinPlusclogo].enabled,false);
set(layer[SkinPlusLanguage_bg].visible, false);
set(layer[SkinPlusLanguage_bg].enabled,false);
set(layer[SkinPlus_footer].visible, false);
set(layer[SkinPlus_footer].enabled,false);
set(layer[SkinPlus_menu_bg].visible, false);
set(layer[SkinPlus_menu_bg].enabled,false);
 </action>


<events name="start_url2"
keep="true"
onTourStart="delayedcall(0, if(get(hidemenu),  hidemenusk(); ););"
/>






<action name="hidemenusk">

set(layer[SkinPlushidebutton].visible,true);
set(layer[SkinPlushidebutton].enabled,true);
set(layer[SkinPlusbtn_showcontrols].alpha,0);
set(layer[SkinPlusbtn_showcontrols].enabled,false);
set(layer[SkinPlus_footer].visible, false);
set(layer[SkinPlus_footer].enabled,false);
set(layer[SkinPlus_menu_bg].visible, false);
set(layer[SkinPlus_menu_bg].enabled,false);
 </action>



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

        zorder="4"
        keep="true"
        visible="false"

        devices="desktop|tablet|mobile"
        capture="false"
        tooltip="SkinPlusstitip"

        onclick="SkinPlusactions_onclick();sendEvent_analytics('Open Full Tour','Click action','Hart-Tech - Wirtualny spacer' );"
         onhover="showTooltip('plugin', SkinPlusmenuTooltipStyle, bottom);"
         onout="hideTooltip();"

        alpha="1"

        url=""

        handcursor="true"


     />














<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="true"
    plugname="SkinPlus"
    pluginDirectory="graphics/skinplus"
    contextlogofile="_3dtrip_logo.jpg"
    context_url="http://3dtrip.pl?utm_source=hart-tech&amp;utm_medium=right-click-logo"
    code=""
    range_value="50"
    alpharange="false"
    full="true"
    scalemobile="0.6"
    scaletablet="0.8"
/>








<events name="startstart"
    keep="true"
    onnewpano="SkinPlusscroll();"
    onresize="SkinPlusscroll();"
    onTourStart="SkinPlusscroll();"
/>

<action name="SkinPlusscroll">
delayedcall(1,set(menu_wh, get(layer[SkinPlus_menu_bg].width));

if(menu_wh GT stagewidth,
set(layer[SkinPlus_menu_bg].draggable, true);
,
set(layer[SkinPlus_menu_bg].draggable, false);
););


addlayer(SkinPlusscroller);
set(layer[SkinPlusscroller].keep,true);
set(layer[SkinPlusscroller].y,0);
set(layer[SkinPlusscroller].visible,true);
set(layer[SkinPlusscroller].bgcapture,true);
set(layer[SkinPlusscroller].enabled,true);
set(layer[SkinPlusscroller].width, get(stagewidth));
set(layer[SkinPlusscroller].type,container);
set(layer[SkinPlusscroller].align,bottom);
set(layer[SkinPlusscroller].zorder,4);
set(layer[SkinPlusscroller].height, 120);
set(layer[SkinPlusscroller].maskchildren, true);
set(layer[SkinPlus_menu_bg].direction,h);
set(layer[SkinPlus_menu_bg].url, '%FIRSTXML%/graphics/scrollarea.js');
set(layer[SkinPlus_menu_bg].mwheel, true);
set(layer[SkinPlus_menu_bg].overscroll,50);
set(layer[SkinPlus_menu_bg].friction,0.95);
set(layer[SkinPlus_menu_bg].acceleration,0.01);
set(layer[SkinPlus_menu_bg].returnacceleration,0.05);
set(layer[SkinPlus_menu_bg].momentum,0.05);
set(layer[SkinPlus_menu_bg].onhover_autoscrolling,true);
set(layer[SkinPlus_menu_bg].parent,layer[SkinPlusscroller]);
</action>









<events name="SkinPlusevents"
    onxmlcomplete="" 
    openvideointerface="SkinPlusHideControlBar();"
    closevideointerface="SkinPlusShowControlBar();" 
    keep="true"
/>

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






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




if(language_var == pl,
if(!device.touch,
set(layer[SkinPlushelpScreenFg].url,'%FIRSTXML%/graphics/skinplus/welcome-screen.png');
,
set(layer[SkinPlushelpScreenFg].url,'%FIRSTXML%/graphics/skinplus/welcome-screen.png'););
);



















</action>


<action name="SkinPlusHideControlBar">
	set(layer[SkinPlus_menu_bg].visible, false);
</action>
<action name="SkinPlusShowControlBar">
	set(layer[SkinPlus_menu_bg].visible, true);
</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="60" height="60"

         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_btnf_style"
        keep="true"
        edge="right"
        align="right"
        x="0" y="0"
        width="60" 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="60" height="60"
         onhover="showTooltip('plugin', SkinPlusmenuTooltipStyle, bottom);"
         onout="hideTooltip();"
         />

<layer name="SkinPlus_footer"
         keep="true"
		 type="container"
         bgcolor="0xffffff"
         bgalpha="0.7000076295109483"
         x="0"
         y="0"
         enabled="false"
		 visible="false"
		 align="bottom"
		 edge="bottom"
		 zorder="2"
         height="60"
         width="100%"
          />








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


<action name="SkinPlushidefooter">
    tween(layer[SkinPlus_footer].y, -60, 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="60"
          height="60"
          align="bottom"
          x="0" y="0"
          maskchildren="false"
          rotate="0"
          visible="false"
          scalechildren="true"




    >


<layer name="SkinPlusbtn_hide_hotspots"
            url="%FIRSTXML%/graphics/skinplus/btn_hide_show_hotspots.png"
            style="SkinPlus_btn_style"
            onclick="
			sendEvent_analytics('Button','hide Hotspot','Hart-Tech - Wirtualny spacer');
			hideHotspots();
"
            tooltip="SkinPlushideSpotsTip"
            visible="false"
                devices="desktop|tablet|mobile"
            />


<layer name="SkinPlusbtn_show_hotspots"
            url="%FIRSTXML%/graphics/skinplus/btn_hide_show_hotspots.png"
            style="SkinPlus_btn_style"
            onclick="showHotspots();

			sendEvent_analytics('Button','Show Hotspot','Hart-Tech - Wirtualny spacer');
			"
            tooltip="SkinPlusshowSpotsTip"
            visible="false"
            devices="desktop|tablet|mobile"
            />
<layer name="SkinPlusbtn_enter_vr"
            url="%FIRSTXML%/graphics/skinplus/btn_vr_mode.png"
            style="SkinPlus_btn_style"
            onclick="if(scene[get(xml.scene)].full360 AND disableCurrentSceneVrConservation !== true,
    js(accessWebVr(get(xml.scene),get(videoscenestarttime)));
,
    js(accessWebVr(null));
);sendEvent_analytics('Button','Enter Vr','Hart-Tech - Wirtualny spacer');"
            tooltip="SkinPlusenterVRTip"
            visible="false"
            devices="html5"
            />
<layer name="SkinPlusbtn_enter_vr_not"
            url="%FIRSTXML%/graphics/skinplus/btn_vr_mode_off.png"
            style="SkinPlus_btn_style"
            tooltip="SkinPlusenterVRNotTip"
            onclick="swap_qr();"
            handcursor="true"
            capture="true"

            enabled="true"

            visible="false"
            devices="html5"
            />


<layer name="SkinPlusbtn_little"
           url="%FIRSTXML%/graphics/skinplus/btn_little.png"
           style="SkinPlus_btn_style"
           onclick="
           sendEvent_analytics('Button','Open Litte Planet','Hart-Tech - Wirtualny spacer');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();

           sendEvent_analytics('Button','Close Little Planet view','Hart-Tech - Wirtualny spacer');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"
        ondown="viewControlMoveLeft(false);
 );)"
        onup="stopdelayedcall(move);viewControlMoveHoriStop();
"
        style="SkinPlus_btn_style"
        visible="false"
         tooltip="SkinPlusmoveLeftTip"
        devices="desktop|tablet|mobile"
    />

<layer name="SkinPlusbtn_right"
            url="%FIRSTXML%/graphics/skinplus/btn_move_right.png"
            ondown="viewControlMoveRight(false);
"
            onup="viewControlMoveHoriStop();
"
            style="SkinPlus_btn_style"
            visible="false"
            tooltip="SkinPlusmoveRightTip"
            devices="desktop|tablet|mobile"
            />


<layer name="SkinPlusbtn_up"
            url="%FIRSTXML%/graphics/skinplus/btn_move_up.png"
            ondown="viewControlMoveUp(false);
sendEvent_analytics('Button','Move UP','Hart-Tech - Wirtualny spacer');"
            onup="viewControlMoveVertStop();
"
            style="SkinPlus_btn_style"
            visible="false"
            tooltip="SkinPlusmoveUpTip"
            devices="desktop|tablet|mobile"

            />
<layer name="SkinPlusbtn_down"
            url="%FIRSTXML%/graphics/skinplus/btn_move_down.png"
            ondown="viewControlMoveDown(false);
sendEvent_analytics('Button','Move Down','Hart-Tech - Wirtualny spacer');"
            onup="viewControlMoveVertStop();
"
            style="SkinPlus_btn_style"
            visible="false"
            tooltip="SkinPlusmoveDownTip"
            devices="desktop|tablet|mobile"

            />






<layer name="SkinPlusbtn_shotp"
            url="%FIRSTXML%/graphics/skinplus/btn_shotp.png"
            onclick="makescreenshot_o();sendEvent_analytics('Button','Shot Photo','Hart-Tech - Wirtualny spacer');"
            style="SkinPlus_btn_style"
            visible="false"
            devices="desktop|tablet|mobile"
            tooltip="SkinPlusshotpTip"
            />




<layer name="SkinPlusbtn_menu"
            url="%FIRSTXML%/graphics/skinplus/btn_menu.png"
            onclick="
	sidebaropencloseaction();
sendEvent_analytics('Button','','Hart-Tech - Wirtualny spacer');"
            style="SkinPlus_btn_style"
            visible="false"
            devices="desktop|tablet|mobile"
            tooltip="SkinPlusmenuTip"
            />




<layer name="SkinPlusbtn_openfs"
            url="%FIRSTXML%/graphics/skinplus/btn_enter_fs.png"
            onclick="enterFullscreen();
 sendEvent_analytics('Button','Open Full Screen', 'Hart-Tech - Wirtualny spacer');"
            style="SkinPlus_btn_style"
            visible="false"
            devices="fullscreensupport"
            tooltip="SkinPlusopenFsTip"
            />

<layer name="SkinPlusbtn_closefs"
            url="%FIRSTXML%/graphics/skinplus/btn_close_fs.png"
            onclick="exitFullscreen();
 sendEvent_analytics('Button','Close Full Screen', 'Hart-Tech - Wirtualny spacer');"
            style="SkinPlus_btn_style"
            visible="false"
            devices="fullscreensupport"
            tooltip="SkinPluscloseFsTip"
            />

<layer name="SkinPlusbtn_autorotate_on"
            url="%FIRSTXML%/graphics/skinplus/btn_start_autorotation.png"
            onclick="resumeautorotation();
"
            style="SkinPlus_btn_style"
            visible="false"
            devices="desktop|tablet|mobile"
            tooltip="SkinPlusautorotateOnTip"
/>

<layer name="SkinPlusbtn_autorotate_off"
            url="%FIRSTXML%/graphics/skinplus/btn_stop_autorotation.png"
            onclick="pauseautorotation();
sendEvent_analytics('Button','Autorotate Off', 'Hart-Tech - Wirtualny spacer');
            "
            style="SkinPlus_btn_style"
            visible="false"
            devices="desktop|tablet|mobile"

            tooltip="SkinPlusautorotateOffTip"
/>



<layer name="SkinPlusbtn_display_help"
            url="%FIRSTXML%/graphics/skinplus/btn_help.png"


            onclick="SkinPluslangg(); SkinPlusdisplayHelp(); 
 sendEvent_analytics('Button','Display Help','Hart-Tech - Wirtualny spacer');
 "
            style="SkinPlus_btn_style"
            visible="false"
			devices="desktop|tablet|mobile"
            tooltip="SkinPlusdisplayHelpTip"
            />



<layer name="SkinPlusbtn_close_help"
            url="%FIRSTXML%/graphics/skinplus/btn_help.png"
            onclick="SkinPluscloseHelp();
 sendEvent_analytics('Button','Close Help','Hart-Tech - Wirtualny spacer');
 "
            style="SkinPlus_btn_style"
            visible="false"
            devices="desktop|tablet|mobile"
            tooltip="SkinPlushideHelpTip"
            />













<layer name="SkinPlusbtn_hidecontrols"
           url="%FIRSTXML%/graphics/skinplus/btn_hide_controls.png"
           style="SkinPlus_btn_style"
           onclick="stopdelayedcall(autoclose);hideTourControls();

 sendEvent_analytics('Button','Close Control','Hart-Tech - Wirtualny spacer');
 "
           visible="false"
           tooltip="SkinPlushideControlsTip"
           />
<layer name="SkinPlusbtn_showcontrols"
           url="%FIRSTXML%/graphics/skinplus/btn_show_controls.png"
           style="SkinPlus_btn_style"

           onclick="showTourControls();
 
 sendEvent_analytics('Button','Show Control','Hart-Tech - Wirtualny spacer');
 "
           tooltip="SkinPlusdisplayControlsTip"
           visible="false"
           />
 </layer>


<action name="SkinPlusbtn_home_action">
      hideTooltip();lookto(get(panoview.h),get(panoview.v),get(panoview.fov),smooth(100,20,50));
</action>

<events name="SkinPlusvravailableevent"
		onvravailable="SkinPlusupdateVrButtonsAvailability();"
		onvrunavailable="SkinPlusupdateVrButtonsAvailability();"
		keep="true" devices="html5" />
	<krpano SkinPlusmenuvravailable="false" />
	<action name="SkinPlusupdateVrButtonsAvailability">
		if (tour_vrdevices,
			set(SkinPlusmenuvravailable, true);
		,
			set(SkinPlusmenuvravailable, false);
		);
		SkinPlusupdateVrButtons();
	</action>
	<action name="SkinPlusHideVrButtons">
		set(layer[SkinPlusbtn_enter_vr].visible, false);
		if('%1' == 'true' AND plugin[ptpvrmode],
			set(layer[SkinPlusbtn_enter_vr_not].visible, true);
		,
			set(layer[SkinPlusbtn_enter_vr_not].visible, false);
		);
	</action>
	<action name="SkinPlusShowVrButtons">
		if (SkinPlusmenuvravailable,
			set(layer[SkinPlusbtn_enter_vr].visible, true);
			set(layer[SkinPlusbtn_enter_vr_not].visible, false);
		,
			SkinPlusHideVrButtons(true);
		);
	</action>
	<action name="SkinPlusupdateVrButtons">
	if (tour_vrdevices,
		if (tour_displaycontrols,
			SkinPlusShowVrButtons();
		,
			SkinPlusHideVrButtons();
		);
	,
		if (tour_displaycontrols,
			SkinPlusHideVrButtons(true);
		,
			SkinPlusHideVrButtons();
		);
	);
	</action>




<events name="SkinPlushideshowcontrolsevent"
		ondoubleclick="swap();"
		keep="true" />
<action name="Swap">

if(SkinPlusIsOpened,
SkinPlushideMenuControls();hideTourControls();

,

SkinPlusshowMenuControls();showTourControls();


);

</action>


<events name="SkinPlushideshowcontrolsevent"
	hidetourcontrols="SkinPlushideMenuControls();"
	showtourcontrols="SkinPlusshowMenuControls();"
	keep="true" />


<action name="SkinPlushideMenuControls">

set(SkinPlusIsOpened, false);

set(layer[SkinPlusbtn_hidecontrols].visible, false);
set(layer[SkinPlusbtn_showcontrols].visible, true);
set(layer[SkinPlusbtn_shotp].visible, false); 
set(layer[SkinPlusbtn_menu].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(); 
set(layer[SkinPlusbtn_display_help].visible, false);
SkinPlusupdateAutorotationButtons(); 
SkinPlusupdateHideShowHotspotsButtons(); 
SkinPlusupdateVrButtons();
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_hidecontrols].visible, true);
set(layer[SkinPlusbtn_showcontrols].visible, false);
set(layer[SkinPlus_menu_bg].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();
SkinPlusupdateHelpButtons();

SkinPlusupdateAutorotationButtons();




SkinPlusupdateVrButtons();

SkinPlusupdateHideShowHotspotsButtons();


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


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

</action>

<layer name="SkinPlushelpScreenFg"
        align="buttom"
        keep="true"
        onclick="SkinPluscloseHelp();"
        visible="false"
        rotate="0"
        y="100%"
        displayed="false"

        width="40%"
        height="prop"
        zorder="0"
        scale.mobile="1"
        scale.tablet="1"
/>



<action name="SkinPlusdisplayHelp">
    set(layer[SkinPlushelpScreenFg].displayed,true);
    SkinPluslangg();
    set(layer[SkinPlushelpScreenBg].visible,true);
    set(layer[SkinPlushelpScreenFg].visible,true);
    tween(layer[SkinPlushelpScreenFg].y,0, 1, );
        delayedcall(0.5, set(layer[SkinPlushelpScreenFg].zorder,99););
    tween(layer[SkinPlushelpScreenBg].y,0, 1);
    SkinPlusupdateHelpButtons();

</action>

<action name="SkinPluscloseHelp">
    set(layer[SkinPlushelpScreenFg].zorder,0);
    set(layer[SkinPlushelpScreenFg].displayed,false);
    tween(layer[SkinPlushelpScreenFg].y, 100%, 1);
    tween(layer[SkinPlushelpScreenBg].y, 100%, 1);
    SkinPlusupdateHelpButtons();
</action>

<action name="SkinPlusHideHelpButtons">
		set(layer[SkinPlusbtn_display_help].visible, false);
		set(layer[SkinPlusbtn_close_help].visible, false);
</action>

<action name="SkinPlusShowHelpButtons">
		if (layer[SkinPlushelpScreenFg].displayed,
			set(layer[SkinPlusbtn_close_help].visible, true);
			set(layer[SkinPlusbtn_display_help].visible, false);
		,
			set(layer[SkinPlusbtn_display_help].visible, true);
			set(layer[SkinPlusbtn_close_help].visible, false);
		);
</action>

<action name="SkinPlusupdateHelpButtons">

		if (tour_displaycontrols,
			SkinPlusShowHelpButtons();
		,
			SkinPlusHideHelpButtons();
		);
</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();sendEvent_analytics('Button','Open Litte Planet','Hart-Tech - Wirtualny spacer');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>



<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 (tour_displaycontrols,
			SkinPlusShowFullscreenButtons();
		,
			SkinPlusHideFullscreenButtons();
		);
</action>

<events name="SkinPlusAutorotationEvents"
		onstartautorotation="SkinPlusupdateAutorotationButtons();"
		onresumeautorotation="SkinPlusupdateAutorotationButtons();"
		onstopautorotation="SkinPlusupdateAutorotationButtons();"
		onpauseautorotation="SkinPlusupdateAutorotationButtons();"
		keep="true"/>

<action name="SkinPlusHideAutorotationButtons">
		set(layer[SkinPlusbtn_autorotate_off].visible, false);
		set(layer[SkinPlusbtn_autorotate_on].visible , false);
</action>
<action name="SkinPlusShowAutorotationButtons">
		if(autorotate.enabled == false,
			set(layer[SkinPlusbtn_autorotate_off].visible, false);
			set(layer[SkinPlusbtn_autorotate_on].visible , true);
		,
			set(layer[SkinPlusbtn_autorotate_off].visible, true);
			set(layer[SkinPlusbtn_autorotate_on].visible , false);
		);
</action>
<action name="SkinPlusupdateAutorotationButtons">
		if (tour_displaycontrols,
			SkinPlusShowAutorotationButtons();
		,
			SkinPlusHideAutorotationButtons();
		);
</action>





<events name="SkinPlushotspotsdisplayevents"
          hotspots_visibility_changed="SkinPlusupdateHideShowHotspotsButtons"
          keep="true"/>
<action name="SkinPlusHideHideShowHotspotsButtons">
		set(layer[SkinPlusbtn_show_hotspots].visible, false);
		set(layer[SkinPlusbtn_hide_hotspots].visible, false);
</action>
<action name="SkinPlusShowHideShowHotspotsButtons">
		if (tour_displayspots,
			set(layer[SkinPlusbtn_hide_hotspots].visible, true);
			set(layer[SkinPlusbtn_show_hotspots].visible, false);
		,
			set(layer[SkinPlusbtn_show_hotspots].visible, true);
			set(layer[SkinPlusbtn_hide_hotspots].visible, false);
		);
</action>

<action name="SkinPlusupdateHideShowHotspotsButtons">
		if (tour_displaycontrols,
			SkinPlusShowHideShowHotspotsButtons();
		,
			SkinPlusHideHideShowHotspotsButtons();
		);
</action>




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








<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, 60);

inc(nnn, 1);


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

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


    inc(SkinPlusbutton_pos, 65);



if (device.desktop || device.tablet || device.mobile,
inc(nnn, 1);
        set(layer[SkinPlusbtn_display_help].x, get(SkinPlusbutton_pos));
        set(layer[SkinPlusbtn_close_help].x  , get(SkinPlusbutton_pos));
        inc(SkinPlusbutton_pos, 65); ); 


      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, 65); ); );

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, 65);
); 










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


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










if (device.desktop || device.tablet || device.mobile,
inc(nnn, 1);
      set(layer[SkinPlusbtn_autorotate_on].x , get(SkinPlusbutton_pos));
      set(layer[SkinPlusbtn_autorotate_off].x, get(SkinPlusbutton_pos));
      inc(SkinPlusbutton_pos, 65); ); 







if (device.desktop || device.tablet || device.mobile,
inc(nnn, 1);
        set(layer[SkinPlusbtn_show_hotspots].x, get(SkinPlusbutton_pos));
        set(layer[SkinPlusbtn_hide_hotspots].x, get(SkinPlusbutton_pos));
        inc(SkinPlusbutton_pos, 65); );


    if(plugin[ptpvrmode] AND device.html5,
    inc(nnn, 1);
      set(layer[SkinPlusbtn_enter_vr].x, get(SkinPlusbutton_pos));
      set(layer[SkinPlusbtn_enter_vr_not].x, get(SkinPlusbutton_pos));
      inc(SkinPlusbutton_pos, 65);
    );












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

);


if (device.desktop || device.tablet || device.mobile,
inc(nnn, 2);
        set(layer[SkinPlusbtn_down].x, get(SkinPlusbutton_pos));
        inc(SkinPlusbutton_pos, 65);
        set(layer[SkinPlusbtn_up].x, get(SkinPlusbutton_pos));
        inc(SkinPlusbutton_pos, 65);
);

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

		
		showTourControls();


</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);"
	       />


<events name = "SkinPlustrace_title"
keep="true"
onnewpano="SkinPlusloggo();"
onclick="SkinPlusbluroff();set(enabled,false);tween(alpha,0,0,default,removelayer(screenshot,true));"
/>

<action name = "SkinPlusloggo">
getmessage(namepanok, get(scene[get(xml.scene)].titleid));
escape(namepanok.html);
</action>

<action name="SkinPlusmakescreenshot_init" type="Javascript" autorun="onstart"> <![CDATA[

        krpano.loadFile("%FIRSTXML%/graphics/skinplus/filesaver.js", function(file)
        {eval(file.data.replace("export ",""));
        krpano.screenshotSaveAs = saveAs;});
        krpano.makescreenshot_count = 1;
        var imageObj = new Image();
        krpano.makescreenshot_o = function()
        {krpano.call("removelayer(screenshot,true);bluroff();");
        krpano.makeScreenshotCache = {};
        var sizeinfo = {w:0, h:0};
        var screenshotcanvas = krpano.webGL.makeScreenshot(0, 0, false, "canvas", 0, null, sizeinfo, krpano.makeScreenshotCache);
        var ctx = screenshotcanvas.getContext("2d");


        if (screenshotcanvas){
        krpano.call("SkinPlusbluron();");
        var container = krpano.addlayer("screenshot");
        container.type = "container";
        container.align="center";
        container.registercontentsize(sizeinfo.w, sizeinfo.h);
        container.width  = sizeinfo.w > sizeinfo.h ? "45%" : "prop";
        container.height = sizeinfo.w > sizeinfo.h ? "prop" : "45%";
        container.bgcolor = 0x000000;
        container.bgalpha = 1.0;
        container.bgshadow = "0 5 40 0x000000 1.0";
        container.bgroundedge = 5;
        container.bgcapture = true;
        container.zorder = 99;
        container.onloaded = "tween(layer[screenshotsaveasbutton].alpha,1,0.2);tween(layer[screenshotclosebutton].alpha,1,0.2)";
        var image = krpano.addlayer("screenshotimage");
        image.url = screenshotcanvas.toDataURL();
        image.parent = "screenshot";
        image.align = "center";
        image.width = -5;
        image.height = -5;
        image.zorder = 1;
        image.enabled = false;
        }

if (screenshotcanvas.toBlob)
	{
		var saveasbutton = krpano.addlayer("screenshotsaveasbutton");
		saveasbutton.loadstyle("button");
		saveasbutton.parent = "screenshot";
		saveasbutton.align = "bottom";
		saveasbutton.y = 20;
		saveasbutton.zorder = 2;
		saveasbutton.autoalpha = true;
		saveasbutton.alpha = 0;
		saveasbutton.html = "Save";
		saveasbutton.onclick = function()
		{
			// save as JPEG with 92% quality
			screenshotcanvas.toBlob(function(blob){ krpano.screenshotSaveAs(blob,"Hart-Tech - Wirtualny spacer" + (krpano.makescreenshot_count++) + ".jpg"); }, "image/jpg", 0.8);
            krpano.call("removelayer(screenshot,true);SkinPlusbluroff();set(enabled,false);");
		};

        var closebutton = krpano.addlayer("screenshotclosebutton");
		closebutton.loadstyle("button");
		closebutton.parent = "screenshot";
		closebutton.align = "topright";
		closebutton.y = 20;
		closebutton.x = 20;
		closebutton.zorder = 2;
		closebutton.autoalpha = true;
		closebutton.alpha = 0;
		closebutton.html = "x";
		closebutton.onclick="SkinPlusbluroff();set(enabled,false);tween(alpha,0,0,default,removelayer(screenshot,true));"
	}
}

]]>
</action>


 <!-- ********** --> <!-- 360Images CoOL Hotspots Plugin --> <!-- CoOL Hotspots1 --> <!-- id : cool_hotspot1 --> <!-- ********** -->       <style 	cooltype="bubble" 	name="Default Point Spot Style" 	type="container"  	width="50"  	height="50"  	bgalpha="0" 	bgcapture="true"   	accuracy="1" 	bubble_width="50"  	bubble_width_onover="150" 	alwayson="false" 	ttalign="top" 	ttedge="bottom" 	 	onover=" 	hidebbhs(); 	set(zorder,20); 	tween(width|height,get(bubble_width_onover)); 	tween(layer[get(mybubble)].width,get(bubble_width_onover)); 	tween(layer[get(mybubble)].height,get(bubble_width_onover)); 	tween(layer[get(mybubble_shadow)].width,get(bubble_width_onover)); 	tween(layer[get(mybubble_shadow)].height,get(bubble_width_onover)); 	tween(layer[get(mypreview)].alpha,1); 	set(layer[get(mypreview)].enabled,true); 	"     	onout=" 	set(zorder,2);  	tween(width|height,get(bubble_width)); 	tween(layer[get(mybubble)].width,get(bubble_width)); 	tween(layer[get(mybubble)].height,get(bubble_width)); 	tween(layer[get(mybubble_shadow)].width,get(bubble_width)); 	tween(layer[get(mybubble_shadow)].height,get(bubble_width)); 	ifnot(alwayson,tween(layer[get(mypreview)].alpha,0));  	set(layer[get(mypreview)].enabled,false);  	" 	 	onloaded=" 	txtadd(hotspot[get(name)].permanentTooltipForSpot, get(tooltip), '_permanent'); 	delayedcall(0.1, 	if(layer[get(permanentTooltipForSpot)].html, 		set(layer[get(permanentTooltipForSpot)].ox,0); 		set(layer[get(permanentTooltipForSpot)].oy,-10); 		); 	); 	 	txtadd(mybubble,'bubble',get(name)); 	addlayer(get(mybubble)); 	copy(hotspot[get(name)].mybubble,mybubble); 	layer[get(mybubble)].loadstyle(cool_hotspot1bubblelayer); 	txtadd(mybubble_shadow,'bubble_shadow',get(name)); 	addlayer(get(mybubble_shadow)); 	copy(hotspot[get(name)].mybubble_shadow,mybubble_shadow); 	layer[get(mybubble_shadow)].loadstyle(cool_hotspot1bubblelayer_shadow); 			 	txtadd(mypreview,'preview_',get(name)); 	addlayer(get(mypreview)); 	copy(hotspot[get(name)].mypreview,mypreview); 	 	 	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_hotspot1bubble_previewlayer); 	 	txtadd(parentlayer,'hotspot[',get(name),']'); 	copy(layer[get(mybubble)].parent,parentlayer); 	copy(layer[get(mybubble_shadow)].parent,parentlayer); 		 	txtadd(parentlayer2,'layer[',get(mybubble),']'); 	copy(layer[get(mypreview)].parent,parentlayer2); 		 	txtadd(clickaction,'callwith(hotspot[',get(name),'],onclick)'); 	copy(layer[get(mypreview)].onclick,clickaction);  	" /> <style  	name="cool_hotspot1bubblelayer"  	type="container"  	width="50"  	height="50"  	bgalpha="0"  	bgborder="3 0xffffff 1.00"  	bgroundedge="150"   	bgcapture="true"  	maskchildren="true"  	accuracy="1" 	 	ondown.touch="callwith(get(parent),onover);" 	  	align="center" 	 /> <style  	name="cool_hotspot1bubblelayer_shadow"  	type="container"  	width="50"  	height="50"  	bgalpha="0"  	bgborder="0 0xffffff 0"  	bgroundedge="150"   	bgcapture="false"  	accuracy="1"  	align="center" 	 		bgshadow="5 5 10 0 0x000000 0.5 inset" 	 /> <style  	name="cool_hotspot1bubble_previewlayer"  	align="center" 	accuracy="1" 	width="prop"  	height="150"  	enabled="false" 	onloaded="if(pixelheight GT pixelwidth,copy(width,height);set(height,prop));set(alpha,0)" />       
<!-- ********** -->
<!-- Logo -->
<!-- id : logo -->
<!-- ********** -->


  <hotspot ath="0" atv="90"
         zorder="0"
         name="logo"
         keep="true"
         visible="false"
         capture="false"

			tooltip="logotooltipText"
			onhover="showTooltip('hotspot');"
			onout="hideTooltip();"
         url="%FIRSTXML%/graphics/logo/_3dtrip-logo-wirtualne-spacery-nadir.png" 
         onclick="
getmessage(urltoopen,logowebsiteurl);openurl(get(urltoopen),_blank);
"


         />

  <events name="logoevents" 
    onTourStart="showlogo();"
    keep="true" />

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



  <events name="logoshowevents" onremovepano="hidelogo" onPanoStart="showlogo" keep="true"/>



<!-- ********** -->
<!-- Analytics -->
<!-- id : analytics -->
<!-- ********** -->

<ptplugin name="analytics" engine="kolorAnalytics">
	<settings>
		<option name="source" value="google" type="string" />
		<option name="tracking_id" value="UA-17387243-4" type="string" />
		<option name="anonymizeIp" value="true" type="bool" />
		<option name="force_ssl" value="false" type="bool" />
		<option name="force_test" value="false" type="bool" />
		<option name="start_page" value="hart-tech" type="string" />
		<option name="start_title" value="Hart-Tech - Wirtualny spacer" type="string" />
		<option name="start_lang" value="pl" type="string" />
		<option name="use_i18n" value="true" type="bool" />
	</settings>
</ptplugin>

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

<action name="activate_analytics">
	if(ptplugin[analytics].jsready,
		stopdelayedcall(delay_analytics_active);
		js(invokePluginFunction(analytics, toggleDeactivation, false));
	,
		delayedcall(delay_analytics_active, 0.1, activate_analytics(););
	);
</action>

<action name="deactivate_analytics">
	if(ptplugin[analytics].jsready,
		stopdelayedcall(delay_analytics_active);
		js(invokePluginFunction(analytics, toggleDeactivation, true));
	,
		delayedcall(delay_analytics_active, 0.1, deactivate_analytics(););
	);
</action>

<action name="sendPage_analytics">
	if(ptplugin[analytics].jsready,
		stopdelayedcall(delay_analytics_page);
		js(invokePluginFunction(analytics, sendPageview, %1, %2));
	,
		delayedcall(delay_analytics_page,0.5,sendPage_analytics(%1,%2));
	);
</action>

<!-- 
sendEvent_analytics action :
* param1 : category
* param2 : action
* param3 : label
* param4 : number value
-->
<action name="sendEvent_analytics">
	if(ptplugin[analytics].jsready,
		stopdelayedcall(delay_analytics_event);
		js(invokePluginFunction(analytics, sendEvent, %1, %2, %3, %4));
	,
		delayedcall(delay_analytics_event,0.5,sendEvent_analytics(%1,%2,%3,%4));
	);
</action>

<action name="changeLanguage_analytics">
	if(ptplugin[analytics].jsready,
		stopdelayedcall(delay_analytics_lang);
		js(invokePluginFunction(analytics, changeLanguage));
	,
		delayedcall(delay_analytics_lang,0.1,changeLanguage_analytics());
	);
</action>

<events name="kolorAnalyticsEvents_analytics" 
	keep="true"
	onTourStart="sendEvent_analytics('panotour','tour start', 'Hart-Tech - Wirtualny spacer');"
	onnewpano="sendPage_analytics(get(scene[get(xml.scene)].name), get(scene[get(xml.scene)].titleid));"
	changetourlanguage="changeLanguage_analytics();"
	/>

<!-- ********** -->
<!-- Call actions on tour events -->
<!-- id : callActionsOnTourEvents -->
<!-- ********** -->
    <events name="callActionsOnTourEventsevents" keep="true"
            onstartlittleplanetintroduction="callActionsOnTourEventsonlittleplanetstart()"
            onendlittleplanetintroduction="callActionsOnTourEventsonlittleplanetend()"

     />



    <action name="callActionsOnTourEventsonlittleplanetstart">
hideHotspots();



    </action>
    <action name="callActionsOnTourEventsonlittleplanetend">
showHotspots();



    </action>






<!-- ********** -->
<!-- SuperSocial -->
<!-- id : Supersocial -->
<!-- ********** -->

<!--   Supersocial 1.4 - Copyright - Panotourplugin.com - 2020 -->
<!-- Code Maurizio Chiocchetti    -->



<include url="%FIRSTXML%/graphics/supersocial/core.xml" />

<krpano Supersocialbuilt="false" Supersocialbackgroundwidthwhenclosed="0" Supersocialbackgroundwidthwhenopened="0"  SupersocialBuildable="false" />

<events name="Supersocialstartstart"
        keep="true"
        onTourStart="set(Supersocialdepvalue,null);Supersocialstartscrollhere():"
        onresize="Supersocialcontrolmenu();"

/>

<action name="Supersocialcontrolmenu">
        set(Supersocialmenu_wh, get(layer[Supersocialbackground].height));
        set(Supersocialstage, get(stageheight));

</action>



<action name="Supersocialstartscrollhere" >


if(device.mobile,
set(layer[Supersocialbackground].y,0);
set(layer[Supersocialbackground].x,20);
        set(layer[Supersocialbackground_2].height,get(Supersocialbackgroundwidthwhenopened));
        set(Supersocialneww,calc(25 + 3 + (6 * 2)) );

        set(layer[Supersocialbackground_2].width, get(Supersocialneww) );
        set(layer[Supersocialbackground].width, get(Supersocialneww) );

        );
if(device.desktop,
        set(layer[Supersocialbackground].y,0);
        set(layer[Supersocialbackground].x,20);

        set(layer[Supersocialbackground_2].height,get(Supersocialbackgroundwidthwhenopened));
        set(Supersocialneww,calc(35 + 3 + (6 * 2)) );

        set(layer[Supersocialbackground_2].width, get(Supersocialneww) );
        set(layer[Supersocialbackground].width, get(Supersocialneww) );
);
if(device.tablet,
        set(layer[Supersocialbackground].y,0);
set(layer[Supersocialbackground].x,20);

        set(layer[Supersocialbackground_2].height,get(Supersocialbackgroundwidthwhenopened));
        set(Supersocialneww,calc(35 + 3 + (6 * 2)) );

        set(layer[Supersocialbackground_2].width, get(Supersocialneww) );
        set(layer[Supersocialbackground].width, get(Supersocialneww) );
);






</action>



<events name="Supersocialevents"
          onTourStart="Supersocialcheck_frame(); SupersocialbuildBar();"
          hidetourcontrols="hideSupersocial();"
          showtourcontrols="showSupersocial();"
          keep="true"/>
  <action name="SupersocialbuildBar">
  ifnot (Supersocialbuilt, set(layer[Supersocialbackground].height, get(Supersocialbackgroundwidthwhenopened)); set(SupersocialBuildable, true); set(layer[Supersocialcopy].visible,true); set(Supersocialbuilt, true);  );
  </action>

<events name="Supersocialstartw"
keep="true"

onTourStart="Supersocialthumbbar_set_visible(true);set(SupersocialBuildable,true);showSupersocial();"

/>


  <events name="SupersocialStartEvents" onsharetour="Supersocialthumbbar_set_visible(true);set(SupersocialBuildable,true);showSupersocial();" keep="true" />


 <layer name="Supersocialbackground_2" type="container" keep="true"
        alpha="1"
        align="center"
        edge="center"
        visible="true"
        enable="true"
        parent="layer[Supersocialbackground]"
        />

  <layer name="Supersocialbackground" type="container" keep="true"
        align.desktop="right"
        edge.desktop="right"
        align.mobile="right"
        edge.mobile="right"
        align.tablet="right"
        edge.tablet="right"
        visible="true"
        scalechildren="true"
        enable="true"
          bgcolor="0x939393"
          bgalpha="0.80000000000000004"
          bgroundedge="0"
        >












  <layer name="Supersocialcopy"

    onclick="Supersocialaction_click(copy);Supersocialshowlabel(););"
    onover=""
    onout="hideTooltip();"
    url="%FIRSTXML%/graphics/supersocial/social_copy.png"
    tag=""
    onhover="
    showTooltip('plugin', SupersocialmenuTooltipStyle, right);
    "
    visible= "false"
    keep="true"
    tooltip="Supersocialcopy_tooltips"
    style="Supersocial_btn_style"


/>


<layer name="Supersocialres"
    type="text"
    align="center"

    x="-80"
    y="0"

    html="Url skopiowany"
    css="color:#ffffff;font-family:Helvetica;font-size:14px;text-align:left;"

        bgcolor="0x54afdb"
        bgroundedge="0"
        padding="10"
	bgborder="0.0 0xffffff 1"

    vcenter="false"
    visible="false"

    wordwrap="true"
    bg="true"
    bgshadow=""
    txtshadow=""
    mergedalpha="true"
    interactivecontent="false"
    onautosized=""
    autoalpha="true"
    alpha="0"
       />







</layer>

<events name="Supersocialeve"
keep="true"
onTourStart="Supersocial_bb"
/>

<action name="Supersocial_bb">
set(Supersocialbutton_pos, 6);
if(device.mobile,
set(Supersocialwww, 17);
,
set(Supersocialwww, 35);
);
set(Supersocialbackgroundwidthwhenclosed,get(Supersocialwww));


 

  Supersocialload_icons(copy);
 
 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  set(Supersocialbackgroundwidthwhenopened, get(Supersocialbutton_pos)); set(layer[Supersocialbackground].height, get(Supersocialbackgroundwidthwhenopened));
</action>



<action name="Supersocialload_icons">



        set(layer[Supersocial%1].y, get(Supersocialbutton_pos));

        if(device.mobile,
        inc(Supersocialbutton_pos, calc(25+ 6));

add(Supersocialnewidthm,25, 6);
set(layer[Supersocialbackground].width, get(Supersocialnewidthm));

        );

        if(device.desktop,
        inc(Supersocialbutton_pos, 41);
add(Supersocialnewidth,35, 12 );
set(layer[Supersocialbackground].width, get(Supersocialnewidth));
        );

if(device.tablet,
        inc(Supersocialbutton_pos, calc(30+ 6));

add(Supersocialnewidthm,30, 6);
set(layer[Supersocialbackground].width, get(Supersocialnewidthm));

        );


  </action>

  <action name="hideSupersocial">
        set(layer[Supersocialscroller].visible,false);
        set(layer[Supersocialbackground].visible,false);
        Supersocialthumbbar_set_visible(false);
  </action>

<action name="showSupersocial">
set(displaythegallery_Supersocial, false); if(tour_displaycontrols, set(displaythegallery_Supersocial, true); ); if (displaythegallery_Supersocial, if(SupersocialBuildable, Supersocialthumbbar_set_visible(true); ); , hideSupersocial(); );
  </action>



<action name="Supersocialshowlabel">
  tween(layer[Supersocialres].alpha,1,0.8);delayedcall(0.8,tween(layer[Supersocialres].alpha,0,0.8);); );
  </action>


  <action name="Supersocialthumbbar_set_visible">
  tween(layer[Supersocialbackground].alpha, 1,1.5,easeOutExpo);
  set(layer[Supersocialscroller].visible,true);
  Supersocialstartscrollhere();
    set(layer[Supersocialbackground].visible, %1);
    set(layer[Supersocialscroller].visible,%1);
  </action>

<style name="Supersocial_btn_style"
        keep="true"
        edge="bottom"
        align="bottom"
        x="0" y="0"
        width.desktop="35"
        width.mobile="25"
        width.tablet="30"
         height="prop"

        zorder="1"


        crop="0|0|64|64"
        onovercrop="0|64|64|64"



       />



<style name="Supersocial_style_text"
        keep="true"
        align=""
        edge=""
        y="0" x="0"
        bgalpha=""
        bgcolor="0x"
        wordwrap="false"
        css="font-size:px;text-align:left; font-family:;padding:px;color:#;"
        zorder="20"
       />



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

<action name="Supersocialcheck_frame" type="javascript" >
  <![CDATA[
    var krpano = document.getElementById("krpanoSWFObject");
function iniFrame() {
    if ( window.location !== window.parent.location )
    { krpano.set('Supersocialstart', "true");
    } else { krpano.set('Supersocialstart', "false");
        }}
iniFrame();
  ]]>
  </action>

<action name="Supersocialaction_click" type="javascript" >
  <![CDATA[
    var by = args[1];
    deepval =  String(krpano.get("Supersocialdepvalue"));
    var ok = escape(deepval);
    var b = window.location.href.split("?")[0];
    var deep = b + "?" + ok;

    switch (by) {
      case "fb":
      window.open("https://www.facebook.com/sharer/sharer.php?u=" + deep, "social", "location=0,status=0,scrollbars=1,width=900,height=500");
      break;

      case "tw":
      window.open("https://twitter.com/share?url=" + deep, "social", "location=0,status=0,scrollbars=1,width=900,height=500");
      break;

      case "copy":

      var result = decodeURIComponent(deep);
      var copyhelper = document.createElement("input");
      copyhelper.className = 'copyhelper'
      document.body.appendChild(copyhelper);
      copyhelper.value = result;
      copyhelper.select();
      document.execCommand("copy");
      document.body.removeChild(copyhelper);

      break;

      case "ld":
      window.open("http://www.linkedin.com/shareArticle?mini=true&ro=true&url=" + deep, "social", "location=0,status=0,scrollbars=1,width=900,height=500");
      break;

      case "whatsapp":

      var whatsappUrl = "whatsapp://send?text=Write your message";

      document.location.href= whatsappUrl + deep;
      break;


      case "pinterest":
      window.open("http://pinterest.com/pin/create/button/?url=" + deep, "social", "location=0,status=0,scrollbars=1,width=900,height=500");
      break;

      case "viber":
      var prtitle = document.title;
      document.location.href="viber://pa?chatURI="+ deep +"&text=" + prtitle ;
      break;

      case "qq":
      var prtitle = document.title;
      window.open("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=" + deep +"&title="+ prtitle , 'social', 'location=0,status=0,scrollbars=1,width=500,height=300');
      break;

      case "messenger":

      document.location.href="fb-messenger://share?link=" + deep;
      break;

      case "weibo":

      var prtitle = document.title;
      window.open('http://service.weibo.com/share/share.php?url=' + deep + '&title=' + prtitle , 'social', 'location=0,status=0,scrollbars=1,width=500,height=300');

      break;

      case "digg":
      window.open("http://digg.com/submit?url=" + deep, "social", "location=0,status=0,scrollbars=1,width=900,height=500");
      break;

      case "tumblr":
      window.open("http://www.tumblr.com/share/link?url=" + deep, "social", "location=0,status=0,scrollbars=1,width=900,height=500");
      break;

      case "reddit":
      window.open("http://reddit.com/submit?url=" + deep, "social", "location=0,status=0,scrollbars=1,width=900,height=500");
      break;

      case "stumbleupon":
      window.open("http://www.stumbleupon.com/submit?url=" + deep, "social", "location=0,status=0,scrollbars=1,width=900,height=500");
      break;

      case "telegram":

      document.location.href="tg://msg?text=" + deep;
      break;

      case "vkontakte":
      window.open("http://vk.com/share.php?url=" + deep, "social", "location=0,status=0,scrollbars=1,width=900,height=500");
      break;

      case "line":
      window.open("//line.me/R/msg/text/?" + deep, "social", "location=0,status=0,scrollbars=1,width=900,height=500");
      break;

      case "callt":
      var number =  String(krpano.get("number"));
      document.location.href="tel:"+ number;
      break;

      case "mail":
      var textmail = String( krpano.get("testo") );
      var subject = String( krpano.get("title") );

      document.location.href = "mailto:?subject="+ subject +"&body=" +textmail + '%0D%0A%0D%0A' + deep;
      break;


    }

  ]]>


  </action>



<action name="Supersocialdeppget">

  SupersocialmycomputeDeepLinkingURL(true,true);
  set(Supersocialdepvalue, get(Supersocialmytour_deeplinkingvars));


  </action>



  <action name="SupersocialmycomputeDeepLinkingURL">



    txtadd(Supersocialmytour_deeplinkingvars, "s=", get(xml.scene));



    set(Supersocialviewhlookat, get(view.hlookat));roundval(Supersocialviewhlookat, 4);
    mod(Supersocialviewhlookat, 360);
    if (Supersocialviewhlookat GT 180,
      sub(Supersocialviewhlookat, 360);
     ,
      if (Supersocialviewhlookat LT -180, add(Supersocialviewhlookat, 360));
    );
    set(Supersocialviewvlookat, get(view.vlookat));roundval(Supersocialviewvlookat, 4);
    set(Supersocialviewfov, get(view.fov));roundval(Supersocialviewfov, 4);

    txtadd(Supersocialmytour_deeplinkingvars, get(Supersocialmytour_deeplinkingvars), "&amp;h=", get(Supersocialviewhlookat));
    txtadd(Supersocialmytour_deeplinkingvars, get(Supersocialmytour_deeplinkingvars), "&amp;v=", get(Supersocialviewvlookat));
    txtadd(Supersocialmytour_deeplinkingvars, get(Supersocialmytour_deeplinkingvars), "&amp;f=", get(Supersocialviewfov));



    if (%1 !== null,if (%1, txtadd(Supersocialmytour_deeplinkingvars, get(Supersocialmytour_deeplinkingvars), "&amp;skipintro");););
    if (%2 !== null,if (%2, txtadd(Supersocialmytour_deeplinkingvars, get(Supersocialmytour_deeplinkingvars), "&amp;norotation");););

  </action>


<action name="Supersocialupdatetext_screen">
getmessage(testo,Supersocialtext_mail);
getmessage(title,Supersocialtitlemail);
getmessage(number,Supersocialnumerphone);
</action>

<events name="actionscreen"
keep="true"
changetourlanguage="Supersocialupdatetext_screen();"
onTourStart="Supersocialdeppget();Supersocialupdatetext_screen();"
onviewchange="Supersocialdeppget();"
/>



<action name="setTourLanguage">
  if (%1 == null,
    trace("CHANGE TOUR LANGUAGE : NO LANGUAGE SET");
   ,
    set(tour_language, %1);
  js(eventTourChangeLanguage(get(tour_language)));
    events.dispatch(changetourlanguage);
  );
</action>






<!-- ********** -->
<!-- Okienko strony WWW -->
<!-- id : websiteViewer -->
<!-- ********** -->

<ptplugin name="websiteViewer" engine="kolorBox">
	<settings>
		<option name="position" value="center" type="string" />
		<option name="margin_x" value="0" type="int" />
		<option name="margin_y" value="0" type="int" />
		<option name="external_padding" value="1" type="int" />
		<option name="draggable_box" value="false" type="bool" />
		<option name="container_auto_size" value="true" type="bool" />
		<option name="container_width" value="100" type="int" />
		<option name="container_width_unit" value="percent" type="string" />
		<option name="container_height" value="100" type="int" />
		<option name="container_height_unit" value="percent" type="string" />
		<option name="container_color" value="ffffff" type="string" />
		<option name="container_alpha" value="0.80000000000000004" type="float" />
		<option name="container_topleft_border_radius" value="1" type="int" />
		<option name="container_topright_border_radius" value="1" type="int" />
		<option name="container_bottomleft_border_radius" value="1" type="int" />
		<option name="container_bottomright_border_radius" value="1" type="int" />
		<option name="container_border_width" value="0" type="int" />
		<option name="container_border_color" value="ffffff" type="string" />
		<option name="container_border_alpha" value="1" type="float" />
		<option name="overlay_displayed" value="false" type="bool" />
		<option name="overlay_color" value="000000" type="string" />
		<option name="overlay_alpha" value="0.50000762951094835" type="float" />

		<option name="title_displayed" value="false" type="bool" />
		<option name="title_position" value="top" type="string" />
		<option name="title_font" value="Verdana" type="string" />
		<option name="title_size" value="14" type="int" />
		<option name="title_weight" value="normal" type="string" />
		<option name="title_style" value="normal" type="string" />
		<option name="title_decoration" value="none" type="string" />
		<option name="title_color" value="000000" type="string" />
		<option name="caption_displayed" value="false" type="bool" />
		<option name="iframe_scrolling" value="auto" type="string" />
		<option name="iframe_default_width" value="1100" type="int" />
		<option name="iframe_default_height" value="800" type="int" />
		<option name="iframe_devices_width" value="1100" type="int" />
		<option name="iframe_devices_height" value="800" type="int" />
		<option name="force_ios_scrolling" value="true" type="bool" />
		<option name="fullscreen_displayed" value="true" type="bool" />
		<option name="fullscreen_position" value="topleft" type="string" />
		<option name="fullscreen_text" value="websiteViewerfullscreen_text" type="string" />




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

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

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

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

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

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


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

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

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

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

<events name="kolorBoxEvents_websiteViewer" 
	keep="true"
	changetourlanguage="changeLanguage_websiteViewer();"
	/>
 <!-- 360Images Call Out Titles Plugin -->        <include url="%FIRSTXML%/graphics/callouttitles.xml"/>  <callout author_context="false"/> <style 	distancepopup="2" 	distancepopup.tablet="3" 	distancepopup.mobile="5" 	visible="false" 	callout_type="centerscreen" 	callout_type.mobile="centerscreen" 	callout_type.tablet="centerscreen" 	name="Call Out Down" 	type="container"  	width="10"  	height="10"  	 	bgroundedge="10" 	 	bgcolor="0xff6100"  	bgalpha="1.00" 	bgborder="2 0xffffff 1.00" 	toheight="100" 	pumpitup="true" 	pumpitup.mobile="true" 	pumpitup.tablet="true" 	 	rotate="135" 	 	 	minfov="180" 	maxfov="1" 	minfov.mobile="180" 	maxfov.mobile="1" 	minfov.tablet="180" 	maxfov.tablet="1" 	onloaded=" 	txtadd(parentspot,'hotspot[',get(name),']'); 	 	txtadd(callout_pulse,'callout_pulse_',get(name)); 	addlayer(get(callout_pulse)); 	layer[get(callout_pulse)].loadstyle(call_out_titles1callout_pulse); 	copy(layer[get(callout_pulse)].parent,parentspot); 	 	 	txtadd(callout_line,'callout_line_',get(name)); 	addlayer(get(callout_line)); 	copy(hotspot[get(name)].callout_line,callout_line); 	layer[get(callout_line)].loadstyle(call_out_titles1callout_line); 	copy(layer[get(callout_line)].parent,parentspot); 	copy(layer[get(callout_line)].x,xpoint); 	copy(layer[get(callout_line)].y,ypoint); 	 	txtadd(callout_line_vertical,'callout_line_vertical_',get(name)); 	addlayer(get(callout_line_vertical)); 	copy(hotspot[get(name)].callout_line_vertical,callout_line_vertical); 	layer[get(callout_line_vertical)].loadstyle(call_out_titles1callout_line_vertical); 	txtadd(parentlayer,'layer[',get(callout_line),']'); 	copy(layer[get(callout_line_vertical)].parent,parentlayer); 	txtadd(callout_title,'callout_title_',get(name)); 	addlayer(get(callout_title)); 	copy(hotspot[get(name)].callout_title,callout_title); 	layer[get(callout_title)].loadstyle(call_out_titles1callout_title); 	txtadd(parentlayer2,'layer[',get(callout_line_vertical),']'); 	copy(layer[get(callout_title)].parent,parentlayer2); 	getmessage(montitre, get(tooltip)); 	copy(layer[get(callout_title)].html,montitre); 	 	txtadd(callout_desc,'callout_desc_',get(name)); 	addlayer(get(callout_desc)); 	copy(hotspot[get(name)].callout_desc,callout_desc); 	layer[get(callout_desc)].loadstyle(call_out_titles1callout_desc); 	copy(layer[get(callout_desc)].parent,callout_title); 	getmessage(madesc, get(descriptionid)); 	copy(layer[get(callout_desc)].html,madesc); 	 	if(hotspot[get(name)].onclick, copy(layer[get(callout_line_vertical)].onclick,hotspot[get(name)].onclick);set(layer[get(callout_line_vertical)].bgcapture,true)); 	if(hotspot[get(name)].callout_type == onuserclick, set(hotspot[get(name)].onclick,oncallout());set(hotspot[get(name)].bgcapture,true);set(hotspot[get(name)].handcursor,true)); 	set(events[testshotspots].onviewchanged,testhotspots();)  	" 	 	oncallout="animate_callout(get(callout_line), get(callout_line_vertical), get(callout_title), get(callout_desc),get(toheight));"	 	oncallin="animate_callin(get(callout_line), get(callout_line_vertical));" /> <style  	name="call_out_titles1callout_line"  	type="container"  	width="2"  	height="0" 	bgalpha="1" 	bgcolor="0xffffff" 	align="top" 	edge="bottom" /> <style  	name="call_out_titles1callout_line_vertical"  	type="container"  	width="0"  	height="0"  	bgcolor="0xffffff" 	 	 	rotate="-135" 	 		 		bgborder="0,0,0,2 0xffffff" 		 		 		 		 		 		 		 		 		 		 		edge="left" 		align="top" 		 		 		 	 	 	  	 	 	maskchildren="true" /> <style  	name="call_out_titles1callout_title"  	type="text" 	enabled="false" 	 	align="topleft" 	ox="10" 	 	   	  	bg="true" 	bgcolor="0xff6100" 	bgalpha="1"   	bgborder="false"   	css="color:#ffffff;font-family:Arial;font-size:25px;text-align:left;"   	padding="5 10" /> <style  	name="call_out_titles1callout_desc"  	type="text" 	enabled="false" 	 	align="bottomleft" 	edge="topleft" 	ox="0" 	 	   	  	bg="true" 	bgcolor="0x1e3e59" 	bgalpha="1"   	bgborder="false"   	css="color:#ffffff;font-family:Arial;font-size:18px;text-align:left;"   	padding="5 0" /> <style name="call_out_titles1callout_pulse" type="container" align="center"  bg="false"  bgborder="3 0xffffff 1.00"   bgroundedge="calc:10 * 2"  width="10" height="10"  onloaded="pulse(get(name))"/>  <!-- 360Images Call Out Titles Plugin -->      <callout author_context="false"/> <style 	distancepopup="2" 	distancepopup.tablet="3" 	distancepopup.mobile="5" 	visible="false" 	callout_type="centerscreen" 	callout_type.mobile="centerscreen" 	callout_type.tablet="centerscreen" 	name="Call Out" 	type="container"  	width="10"  	height="10"  	 	bgroundedge="10" 	 	bgcolor="0xff6100"  	bgalpha="1.00" 	bgborder="2 0xffffff 1.00" 	toheight="100" 	pumpitup="true" 	pumpitup.mobile="true" 	pumpitup.tablet="true" 	 	rotate="45" 	 	 	minfov="180" 	maxfov="1" 	minfov.mobile="180" 	maxfov.mobile="1" 	minfov.tablet="180" 	maxfov.tablet="1" 	onloaded=" 	txtadd(parentspot,'hotspot[',get(name),']'); 	 	txtadd(callout_pulse,'callout_pulse_',get(name)); 	addlayer(get(callout_pulse)); 	layer[get(callout_pulse)].loadstyle(call_out_titlescallout_pulse); 	copy(layer[get(callout_pulse)].parent,parentspot); 	 	 	txtadd(callout_line,'callout_line_',get(name)); 	addlayer(get(callout_line)); 	copy(hotspot[get(name)].callout_line,callout_line); 	layer[get(callout_line)].loadstyle(call_out_titlescallout_line); 	copy(layer[get(callout_line)].parent,parentspot); 	copy(layer[get(callout_line)].x,xpoint); 	copy(layer[get(callout_line)].y,ypoint); 	 	txtadd(callout_line_vertical,'callout_line_vertical_',get(name)); 	addlayer(get(callout_line_vertical)); 	copy(hotspot[get(name)].callout_line_vertical,callout_line_vertical); 	layer[get(callout_line_vertical)].loadstyle(call_out_titlescallout_line_vertical); 	txtadd(parentlayer,'layer[',get(callout_line),']'); 	copy(layer[get(callout_line_vertical)].parent,parentlayer); 	txtadd(callout_title,'callout_title_',get(name)); 	addlayer(get(callout_title)); 	copy(hotspot[get(name)].callout_title,callout_title); 	layer[get(callout_title)].loadstyle(call_out_titlescallout_title); 	txtadd(parentlayer2,'layer[',get(callout_line_vertical),']'); 	copy(layer[get(callout_title)].parent,parentlayer2); 	getmessage(montitre, get(tooltip)); 	copy(layer[get(callout_title)].html,montitre); 	 	txtadd(callout_desc,'callout_desc_',get(name)); 	addlayer(get(callout_desc)); 	copy(hotspot[get(name)].callout_desc,callout_desc); 	layer[get(callout_desc)].loadstyle(call_out_titlescallout_desc); 	copy(layer[get(callout_desc)].parent,callout_title); 	getmessage(madesc, get(descriptionid)); 	copy(layer[get(callout_desc)].html,madesc); 	 	if(hotspot[get(name)].onclick, copy(layer[get(callout_line_vertical)].onclick,hotspot[get(name)].onclick);set(layer[get(callout_line_vertical)].bgcapture,true)); 	if(hotspot[get(name)].callout_type == onuserclick, set(hotspot[get(name)].onclick,oncallout());set(hotspot[get(name)].bgcapture,true);set(hotspot[get(name)].handcursor,true)); 	set(events[testshotspots].onviewchanged,testhotspots();)  	" 	 	oncallout="animate_callout(get(callout_line), get(callout_line_vertical), get(callout_title), get(callout_desc),get(toheight));"	 	oncallin="animate_callin(get(callout_line), get(callout_line_vertical));" /> <style  	name="call_out_titlescallout_line"  	type="container"  	width="2"  	height="0" 	bgalpha="1" 	bgcolor="0xffffff" 	align="top" 	edge="bottom" /> <style  	name="call_out_titlescallout_line_vertical"  	type="container"  	width="0"  	height="0"  	bgcolor="0xffffff" 	 	 	rotate="-45" 	 		 		bgborder="0,0,0,2 0xffffff" 		 		 		 		 		 		 		 		 		 		 		edge="left" 		align="top" 		 		 		 	 	 	  	 	 	maskchildren="true" /> <style  	name="call_out_titlescallout_title"  	type="text" 	enabled="false" 	 	align="topleft" 	ox="10" 	 	   	  	bg="true" 	bgcolor="0xff6100" 	bgalpha="1"   	bgborder="false"   	css="color:#ffffff;font-family:Arial;font-size:25px;text-align:left;"   	padding="5 10" /> <style  	name="call_out_titlescallout_desc"  	type="text" 	enabled="false" 	 	align="bottomleft" 	edge="topleft" 	ox="0" 	 	   	  	bg="true" 	bgcolor="0x1e3e59" 	bgalpha="1"   	bgborder="false"   	css="color:#ffffff;font-family:Arial;font-size:18px;text-align:left;"   	padding="5 0" /> <style name="call_out_titlescallout_pulse" type="container" align="center"  bg="false"  bgborder="3 0xffffff 1.00"   bgroundedge="calc:10 * 2"  width="10" height="10"  onloaded="pulse(get(name))"/>  <!-- 360Images Call Out Titles Plugin -->      <callout author_context="false"/> <style 	distancepopup="2" 	distancepopup.tablet="3" 	distancepopup.mobile="5" 	visible="false" 	callout_type="centerscreen" 	callout_type.mobile="centerscreen" 	callout_type.tablet="centerscreen" 	name="Call Out Left" 	type="container"  	width="10"  	height="10"  	 	bgroundedge="10" 	 	bgcolor="0xff6100"  	bgalpha="1.00" 	bgborder="2 0xffffff 1.00" 	toheight="100" 	pumpitup="true" 	pumpitup.mobile="true" 	pumpitup.tablet="true" 	 	 	rotate="-45" 	 	minfov="180" 	maxfov="1" 	minfov.mobile="180" 	maxfov.mobile="1" 	minfov.tablet="180" 	maxfov.tablet="1" 	onloaded=" 	txtadd(parentspot,'hotspot[',get(name),']'); 	 	txtadd(callout_pulse,'callout_pulse_',get(name)); 	addlayer(get(callout_pulse)); 	layer[get(callout_pulse)].loadstyle(call_out_titles2callout_pulse); 	copy(layer[get(callout_pulse)].parent,parentspot); 	 	 	txtadd(callout_line,'callout_line_',get(name)); 	addlayer(get(callout_line)); 	copy(hotspot[get(name)].callout_line,callout_line); 	layer[get(callout_line)].loadstyle(call_out_titles2callout_line); 	copy(layer[get(callout_line)].parent,parentspot); 	copy(layer[get(callout_line)].x,xpoint); 	copy(layer[get(callout_line)].y,ypoint); 	 	txtadd(callout_line_vertical,'callout_line_vertical_',get(name)); 	addlayer(get(callout_line_vertical)); 	copy(hotspot[get(name)].callout_line_vertical,callout_line_vertical); 	layer[get(callout_line_vertical)].loadstyle(call_out_titles2callout_line_vertical); 	txtadd(parentlayer,'layer[',get(callout_line),']'); 	copy(layer[get(callout_line_vertical)].parent,parentlayer); 	txtadd(callout_title,'callout_title_',get(name)); 	addlayer(get(callout_title)); 	copy(hotspot[get(name)].callout_title,callout_title); 	layer[get(callout_title)].loadstyle(call_out_titles2callout_title); 	txtadd(parentlayer2,'layer[',get(callout_line_vertical),']'); 	copy(layer[get(callout_title)].parent,parentlayer2); 	getmessage(montitre, get(tooltip)); 	copy(layer[get(callout_title)].html,montitre); 	 	txtadd(callout_desc,'callout_desc_',get(name)); 	addlayer(get(callout_desc)); 	copy(hotspot[get(name)].callout_desc,callout_desc); 	layer[get(callout_desc)].loadstyle(call_out_titles2callout_desc); 	copy(layer[get(callout_desc)].parent,callout_title); 	getmessage(madesc, get(descriptionid)); 	copy(layer[get(callout_desc)].html,madesc); 	 	if(hotspot[get(name)].onclick, copy(layer[get(callout_line_vertical)].onclick,hotspot[get(name)].onclick);set(layer[get(callout_line_vertical)].bgcapture,true)); 	if(hotspot[get(name)].callout_type == onuserclick, set(hotspot[get(name)].onclick,oncallout());set(hotspot[get(name)].bgcapture,true);set(hotspot[get(name)].handcursor,true)); 	set(events[testshotspots].onviewchanged,testhotspots();)  	" 	 	oncallout="animate_callout(get(callout_line), get(callout_line_vertical), get(callout_title), get(callout_desc),get(toheight));"	 	oncallin="animate_callin(get(callout_line), get(callout_line_vertical));" /> <style  	name="call_out_titles2callout_line"  	type="container"  	width="2"  	height="0" 	bgalpha="1" 	bgcolor="0xffffff" 	align="top" 	edge="bottom" /> <style  	name="call_out_titles2callout_line_vertical"  	type="container"  	width="0"  	height="0"  	bgcolor="0xffffff" 	 	 	 	 	rotate="45" 	 		 		bgborder="0,2,0,0 0xffffff" 		 	 		 	 		 	 		 		 		 		 		edge="right" 		align="top" 		 		 	 	  	 	 	maskchildren="true" /> <style  	name="call_out_titles2callout_title"  	type="text" 	enabled="false" 	 	 	align="topright" 	ox="-10" 	   	  	bg="true" 	bgcolor="0xff6100" 	bgalpha="1"   	bgborder="false"   	css="color:#ffffff;font-family:Arial;font-size:25px;text-align:right;"   	padding="5 10" /> <style  	name="call_out_titles2callout_desc"  	type="text" 	enabled="false" 	 	 	align="bottomright" 	edge="topright" 	ox="-0" 	   	  	bg="true" 	bgcolor="0x1e3e59" 	bgalpha="1"   	bgborder="false"   	css="color:#ffffff;font-family:Arial;font-size:18px;text-align:right;"   	padding="5 0" /> <style name="call_out_titles2callout_pulse" type="container" align="center"  bg="false"  bgborder="3 0xffffff 1.00"   bgroundedge="calc:10 * 2"  width="10" height="10"  onloaded="pulse(get(name))"/>  <!-- 360Images Call Out Titles Plugin -->      <callout author_context="false"/> <style 	distancepopup="2" 	distancepopup.tablet="3" 	distancepopup.mobile="5" 	visible="false" 	callout_type="centerscreen" 	callout_type.mobile="centerscreen" 	callout_type.tablet="centerscreen" 	name="Call Out Titles Descrp BG" 	type="container"  	width="10"  	height="10"  	 	bgroundedge="10" 	 	bgcolor="0xff6100"  	bgalpha="1.00" 	bgborder="2 0xffffff 1.00" 	toheight="100" 	pumpitup="true" 	pumpitup.mobile="true" 	pumpitup.tablet="true" 	 	rotate="45" 	 	 	minfov="180" 	maxfov="1" 	minfov.mobile="180" 	maxfov.mobile="1" 	minfov.tablet="180" 	maxfov.tablet="1" 	onloaded=" 	txtadd(parentspot,'hotspot[',get(name),']'); 	 	txtadd(callout_pulse,'callout_pulse_',get(name)); 	addlayer(get(callout_pulse)); 	layer[get(callout_pulse)].loadstyle(call_out_titles3callout_pulse); 	copy(layer[get(callout_pulse)].parent,parentspot); 	 	 	txtadd(callout_line,'callout_line_',get(name)); 	addlayer(get(callout_line)); 	copy(hotspot[get(name)].callout_line,callout_line); 	layer[get(callout_line)].loadstyle(call_out_titles3callout_line); 	copy(layer[get(callout_line)].parent,parentspot); 	copy(layer[get(callout_line)].x,xpoint); 	copy(layer[get(callout_line)].y,ypoint); 	 	txtadd(callout_line_vertical,'callout_line_vertical_',get(name)); 	addlayer(get(callout_line_vertical)); 	copy(hotspot[get(name)].callout_line_vertical,callout_line_vertical); 	layer[get(callout_line_vertical)].loadstyle(call_out_titles3callout_line_vertical); 	txtadd(parentlayer,'layer[',get(callout_line),']'); 	copy(layer[get(callout_line_vertical)].parent,parentlayer); 	txtadd(callout_title,'callout_title_',get(name)); 	addlayer(get(callout_title)); 	copy(hotspot[get(name)].callout_title,callout_title); 	layer[get(callout_title)].loadstyle(call_out_titles3callout_title); 	txtadd(parentlayer2,'layer[',get(callout_line_vertical),']'); 	copy(layer[get(callout_title)].parent,parentlayer2); 	getmessage(montitre, get(tooltip)); 	copy(layer[get(callout_title)].html,montitre); 	 	txtadd(callout_desc,'callout_desc_',get(name)); 	addlayer(get(callout_desc)); 	copy(hotspot[get(name)].callout_desc,callout_desc); 	layer[get(callout_desc)].loadstyle(call_out_titles3callout_desc); 	copy(layer[get(callout_desc)].parent,callout_title); 	getmessage(madesc, get(descriptionid)); 	copy(layer[get(callout_desc)].html,madesc); 	 	if(hotspot[get(name)].onclick, copy(layer[get(callout_line_vertical)].onclick,hotspot[get(name)].onclick);set(layer[get(callout_line_vertical)].bgcapture,true)); 	if(hotspot[get(name)].callout_type == onuserclick, set(hotspot[get(name)].onclick,oncallout());set(hotspot[get(name)].bgcapture,true);set(hotspot[get(name)].handcursor,true)); 	set(events[testshotspots].onviewchanged,testhotspots();)  	" 	 	oncallout="animate_callout(get(callout_line), get(callout_line_vertical), get(callout_title), get(callout_desc),get(toheight));"	 	oncallin="animate_callin(get(callout_line), get(callout_line_vertical));" /> <style  	name="call_out_titles3callout_line"  	type="container"  	width="2"  	height="0" 	bgalpha="1" 	bgcolor="0xffffff" 	align="top" 	edge="bottom" /> <style  	name="call_out_titles3callout_line_vertical"  	type="container"  	width="0"  	height="0"  	bgcolor="0xffffff" 	 	 	rotate="-45" 	 		 		bgborder="0,0,0,2 0xffffff" 		 		 		 		 		 		 		 		 		 		 		edge="left" 		align="top" 		 		 		 	 	 	  	 	 	maskchildren="true" /> <style  	name="call_out_titles3callout_title"  	type="text" 	enabled="false" 	 	align="topleft" 	ox="10" 	 	   	  	bg="true" 	bgcolor="0xff6100" 	bgalpha="1"   	bgborder="false"   	css="color:#ffffff;font-family:Arial;font-size:25px;text-align:left;"   	padding="10 10" /> <style  	name="call_out_titles3callout_desc"  	type="text" 	enabled="false" 	 	align="bottomleft" 	edge="topleft" 	ox="0" 	 	   	  	bg="true" 	bgcolor="0x1e3e59" 	bgalpha="1"   	bgborder="false"   	css="color:#ffffff;font-family:Arial;font-size:18px;text-align:left;"   	padding="10 0" /> <style name="call_out_titles3callout_pulse" type="container" align="center"  bg="false"  bgborder="3 0xffffff 1.00"   bgroundedge="calc:10 * 2"  width="10" height="10"  onloaded="pulse(get(name))"/>  <!-- 360Images Call Out Titles Plugin -->      <callout author_context="false"/> <style 	distancepopup="2" 	distancepopup.tablet="3" 	distancepopup.mobile="5" 	visible="false" 	callout_type="centerscreen" 	callout_type.mobile="centerscreen" 	callout_type.tablet="centerscreen" 	name="Call Out Titles Descrp BG left" 	type="container"  	width="10"  	height="10"  	 	bgroundedge="10" 	 	bgcolor="0xff6100"  	bgalpha="1.00" 	bgborder="2 0xffffff 1.00" 	toheight="100" 	pumpitup="true" 	pumpitup.mobile="true" 	pumpitup.tablet="true" 	 	 	rotate="-45" 	 	minfov="180" 	maxfov="1" 	minfov.mobile="180" 	maxfov.mobile="1" 	minfov.tablet="180" 	maxfov.tablet="1" 	onloaded=" 	txtadd(parentspot,'hotspot[',get(name),']'); 	 	txtadd(callout_pulse,'callout_pulse_',get(name)); 	addlayer(get(callout_pulse)); 	layer[get(callout_pulse)].loadstyle(call_out_titles4callout_pulse); 	copy(layer[get(callout_pulse)].parent,parentspot); 	 	 	txtadd(callout_line,'callout_line_',get(name)); 	addlayer(get(callout_line)); 	copy(hotspot[get(name)].callout_line,callout_line); 	layer[get(callout_line)].loadstyle(call_out_titles4callout_line); 	copy(layer[get(callout_line)].parent,parentspot); 	copy(layer[get(callout_line)].x,xpoint); 	copy(layer[get(callout_line)].y,ypoint); 	 	txtadd(callout_line_vertical,'callout_line_vertical_',get(name)); 	addlayer(get(callout_line_vertical)); 	copy(hotspot[get(name)].callout_line_vertical,callout_line_vertical); 	layer[get(callout_line_vertical)].loadstyle(call_out_titles4callout_line_vertical); 	txtadd(parentlayer,'layer[',get(callout_line),']'); 	copy(layer[get(callout_line_vertical)].parent,parentlayer); 	txtadd(callout_title,'callout_title_',get(name)); 	addlayer(get(callout_title)); 	copy(hotspot[get(name)].callout_title,callout_title); 	layer[get(callout_title)].loadstyle(call_out_titles4callout_title); 	txtadd(parentlayer2,'layer[',get(callout_line_vertical),']'); 	copy(layer[get(callout_title)].parent,parentlayer2); 	getmessage(montitre, get(tooltip)); 	copy(layer[get(callout_title)].html,montitre); 	 	txtadd(callout_desc,'callout_desc_',get(name)); 	addlayer(get(callout_desc)); 	copy(hotspot[get(name)].callout_desc,callout_desc); 	layer[get(callout_desc)].loadstyle(call_out_titles4callout_desc); 	copy(layer[get(callout_desc)].parent,callout_title); 	getmessage(madesc, get(descriptionid)); 	copy(layer[get(callout_desc)].html,madesc); 	 	if(hotspot[get(name)].onclick, copy(layer[get(callout_line_vertical)].onclick,hotspot[get(name)].onclick);set(layer[get(callout_line_vertical)].bgcapture,true)); 	if(hotspot[get(name)].callout_type == onuserclick, set(hotspot[get(name)].onclick,oncallout());set(hotspot[get(name)].bgcapture,true);set(hotspot[get(name)].handcursor,true)); 	set(events[testshotspots].onviewchanged,testhotspots();)  	" 	 	oncallout="animate_callout(get(callout_line), get(callout_line_vertical), get(callout_title), get(callout_desc),get(toheight));"	 	oncallin="animate_callin(get(callout_line), get(callout_line_vertical));" /> <style  	name="call_out_titles4callout_line"  	type="container"  	width="2"  	height="0" 	bgalpha="1" 	bgcolor="0xffffff" 	align="top" 	edge="bottom" /> <style  	name="call_out_titles4callout_line_vertical"  	type="container"  	width="0"  	height="0"  	bgcolor="0xffffff" 	 	 	 	 	rotate="45" 	 		 		bgborder="0,2,0,0 0xffffff" 		 	 		 	 		 	 		 		 		 		 		edge="right" 		align="top" 		 		 	 	  	 	 	maskchildren="true" /> <style  	name="call_out_titles4callout_title"  	type="text" 	enabled="false" 	 	 	align="topright" 	ox="-5" 	   	  	bg="true" 	bgcolor="0xff6100" 	bgalpha="1"   	bgborder="false"   	css="color:#ffffff;font-family:Arial;font-size:25px;text-align:right;"   	padding="10 5" /> <style  	name="call_out_titles4callout_desc"  	type="text" 	enabled="false" 	 	 	align="bottomright" 	edge="topright" 	ox="-0" 	   	  	bg="true" 	bgcolor="0x1e3e59" 	bgalpha="1"   	bgborder="false"   	css="color:#ffffff;font-family:Arial;font-size:18px;text-align:right;"   	padding="10 0" /> <style name="call_out_titles4callout_pulse" type="container" align="center"  bg="false"  bgborder="3 0xffffff 1.00"   bgroundedge="calc:10 * 2"  width="10" height="10"  onloaded="pulse(get(name))"/>  <!-- 360Images Call Out Titles Plugin -->      <callout author_context="false"/> <style 	distancepopup="2" 	distancepopup.tablet="3" 	distancepopup.mobile="5" 	visible="false" 	callout_type="centerscreen" 	callout_type.mobile="centerscreen" 	callout_type.tablet="centerscreen" 	name="Call Out Titles Descrp BG top long" 	type="container"  	width="10"  	height="10"  	 	bgroundedge="10" 	 	bgcolor="0xff6100"  	bgalpha="1.00" 	bgborder="2 0xffffff 1.00" 	toheight="200" 	pumpitup="true" 	pumpitup.mobile="true" 	pumpitup.tablet="true" 	 	rotate="0" 	 	 	minfov="180" 	maxfov="1" 	minfov.mobile="180" 	maxfov.mobile="1" 	minfov.tablet="180" 	maxfov.tablet="1" 	onloaded=" 	txtadd(parentspot,'hotspot[',get(name),']'); 	 	txtadd(callout_pulse,'callout_pulse_',get(name)); 	addlayer(get(callout_pulse)); 	layer[get(callout_pulse)].loadstyle(call_out_titles5callout_pulse); 	copy(layer[get(callout_pulse)].parent,parentspot); 	 	 	txtadd(callout_line,'callout_line_',get(name)); 	addlayer(get(callout_line)); 	copy(hotspot[get(name)].callout_line,callout_line); 	layer[get(callout_line)].loadstyle(call_out_titles5callout_line); 	copy(layer[get(callout_line)].parent,parentspot); 	copy(layer[get(callout_line)].x,xpoint); 	copy(layer[get(callout_line)].y,ypoint); 	 	txtadd(callout_line_vertical,'callout_line_vertical_',get(name)); 	addlayer(get(callout_line_vertical)); 	copy(hotspot[get(name)].callout_line_vertical,callout_line_vertical); 	layer[get(callout_line_vertical)].loadstyle(call_out_titles5callout_line_vertical); 	txtadd(parentlayer,'layer[',get(callout_line),']'); 	copy(layer[get(callout_line_vertical)].parent,parentlayer); 	txtadd(callout_title,'callout_title_',get(name)); 	addlayer(get(callout_title)); 	copy(hotspot[get(name)].callout_title,callout_title); 	layer[get(callout_title)].loadstyle(call_out_titles5callout_title); 	txtadd(parentlayer2,'layer[',get(callout_line_vertical),']'); 	copy(layer[get(callout_title)].parent,parentlayer2); 	getmessage(montitre, get(tooltip)); 	copy(layer[get(callout_title)].html,montitre); 	 	txtadd(callout_desc,'callout_desc_',get(name)); 	addlayer(get(callout_desc)); 	copy(hotspot[get(name)].callout_desc,callout_desc); 	layer[get(callout_desc)].loadstyle(call_out_titles5callout_desc); 	copy(layer[get(callout_desc)].parent,callout_title); 	getmessage(madesc, get(descriptionid)); 	copy(layer[get(callout_desc)].html,madesc); 	 	if(hotspot[get(name)].onclick, copy(layer[get(callout_line_vertical)].onclick,hotspot[get(name)].onclick);set(layer[get(callout_line_vertical)].bgcapture,true)); 	if(hotspot[get(name)].callout_type == onuserclick, set(hotspot[get(name)].onclick,oncallout());set(hotspot[get(name)].bgcapture,true);set(hotspot[get(name)].handcursor,true)); 	set(events[testshotspots].onviewchanged,testhotspots();)  	" 	 	oncallout="animate_callout(get(callout_line), get(callout_line_vertical), get(callout_title), get(callout_desc),get(toheight));"	 	oncallin="animate_callin(get(callout_line), get(callout_line_vertical));" /> <style  	name="call_out_titles5callout_line"  	type="container"  	width="2"  	height="0" 	bgalpha="1" 	bgcolor="0xffffff" 	align="top" 	edge="bottom" /> <style  	name="call_out_titles5callout_line_vertical"  	type="container"  	width="0"  	height="0"  	bgcolor="0xffffff" 	 	 	rotate="-0" 	 		 		bgborder="0,0,0,2 0xffffff" 		 		 		 		 		 		 		 		edge="bottomleft" 		align="topright" 		 		 	 	 	  	 	 	maskchildren="true" /> <style  	name="call_out_titles5callout_title"  	type="text" 	enabled="false" 	 	align="topleft" 	ox="10" 	 	   	  	bg="true" 	bgcolor="0xff6100" 	bgalpha="1"   	bgborder="false"   	css="color:#ffffff;font-family:Arial;font-size:25px;text-align:left;"   	padding="10 10" /> <style  	name="call_out_titles5callout_desc"  	type="text" 	enabled="false" 	 	align="bottomleft" 	edge="topleft" 	ox="0" 	 	   	  	bg="true" 	bgcolor="0x1e3e59" 	bgalpha="1"   	bgborder="false"   	css="color:#ffffff;font-family:Arial;font-size:18px;text-align:left;"   	padding="10 0" /> <style name="call_out_titles5callout_pulse" type="container" align="center"  bg="false"  bgborder="3 0xffffff 1.00"   bgroundedge="calc:10 * 2"  width="10" height="10"  onloaded="pulse(get(name))"/>  <!-- 360Images Call Out Titles Plugin -->      <callout author_context="false"/> <style 	distancepopup="2" 	distancepopup.tablet="3" 	distancepopup.mobile="5" 	visible="false" 	callout_type="centerscreen" 	callout_type.mobile="centerscreen" 	callout_type.tablet="centerscreen" 	name="Call Out Titles Descrp BG right down" 	type="container"  	width="10"  	height="10"  	 	bgroundedge="10" 	 	bgcolor="0xff6100"  	bgalpha="1.00" 	bgborder="2 0xffffff 1.00" 	toheight="150" 	pumpitup="true" 	pumpitup.mobile="true" 	pumpitup.tablet="true" 	 	rotate="135" 	 	 	minfov="180" 	maxfov="1" 	minfov.mobile="180" 	maxfov.mobile="1" 	minfov.tablet="180" 	maxfov.tablet="1" 	onloaded=" 	txtadd(parentspot,'hotspot[',get(name),']'); 	 	txtadd(callout_pulse,'callout_pulse_',get(name)); 	addlayer(get(callout_pulse)); 	layer[get(callout_pulse)].loadstyle(call_out_titles6callout_pulse); 	copy(layer[get(callout_pulse)].parent,parentspot); 	 	 	txtadd(callout_line,'callout_line_',get(name)); 	addlayer(get(callout_line)); 	copy(hotspot[get(name)].callout_line,callout_line); 	layer[get(callout_line)].loadstyle(call_out_titles6callout_line); 	copy(layer[get(callout_line)].parent,parentspot); 	copy(layer[get(callout_line)].x,xpoint); 	copy(layer[get(callout_line)].y,ypoint); 	 	txtadd(callout_line_vertical,'callout_line_vertical_',get(name)); 	addlayer(get(callout_line_vertical)); 	copy(hotspot[get(name)].callout_line_vertical,callout_line_vertical); 	layer[get(callout_line_vertical)].loadstyle(call_out_titles6callout_line_vertical); 	txtadd(parentlayer,'layer[',get(callout_line),']'); 	copy(layer[get(callout_line_vertical)].parent,parentlayer); 	txtadd(callout_title,'callout_title_',get(name)); 	addlayer(get(callout_title)); 	copy(hotspot[get(name)].callout_title,callout_title); 	layer[get(callout_title)].loadstyle(call_out_titles6callout_title); 	txtadd(parentlayer2,'layer[',get(callout_line_vertical),']'); 	copy(layer[get(callout_title)].parent,parentlayer2); 	getmessage(montitre, get(tooltip)); 	copy(layer[get(callout_title)].html,montitre); 	 	txtadd(callout_desc,'callout_desc_',get(name)); 	addlayer(get(callout_desc)); 	copy(hotspot[get(name)].callout_desc,callout_desc); 	layer[get(callout_desc)].loadstyle(call_out_titles6callout_desc); 	copy(layer[get(callout_desc)].parent,callout_title); 	getmessage(madesc, get(descriptionid)); 	copy(layer[get(callout_desc)].html,madesc); 	 	if(hotspot[get(name)].onclick, copy(layer[get(callout_line_vertical)].onclick,hotspot[get(name)].onclick);set(layer[get(callout_line_vertical)].bgcapture,true)); 	if(hotspot[get(name)].callout_type == onuserclick, set(hotspot[get(name)].onclick,oncallout());set(hotspot[get(name)].bgcapture,true);set(hotspot[get(name)].handcursor,true)); 	set(events[testshotspots].onviewchanged,testhotspots();)  	" 	 	oncallout="animate_callout(get(callout_line), get(callout_line_vertical), get(callout_title), get(callout_desc),get(toheight));"	 	oncallin="animate_callin(get(callout_line), get(callout_line_vertical));" /> <style  	name="call_out_titles6callout_line"  	type="container"  	width="2"  	height="0" 	bgalpha="1" 	bgcolor="0xffffff" 	align="top" 	edge="bottom" /> <style  	name="call_out_titles6callout_line_vertical"  	type="container"  	width="0"  	height="0"  	bgcolor="0xffffff" 	 	 	rotate="-135" 	 		 		bgborder="0,0,0,2 0xffffff" 		 		 		 		 		 		 		 		 		 		 		edge="left" 		align="top" 		 		 		 	 	 	  	 	 	maskchildren="true" /> <style  	name="call_out_titles6callout_title"  	type="text" 	enabled="false" 	 	align="topleft" 	ox="10" 	 	   	  	bg="true" 	bgcolor="0xff6100" 	bgalpha="1"   	bgborder="false"   	css="color:#ffffff;font-family:Arial;font-size:25px;text-align:left;"   	padding="10 10" /> <style  	name="call_out_titles6callout_desc"  	type="text" 	enabled="false" 	 	align="bottomleft" 	edge="topleft" 	ox="0" 	 	   	  	bg="true" 	bgcolor="0x1e3e59" 	bgalpha="1"   	bgborder="false"   	css="color:#ffffff;font-family:Arial;font-size:18px;text-align:left;"   	padding="10 0" /> <style name="call_out_titles6callout_pulse" type="container" align="center"  bg="false"  bgborder="3 0xffffff 1.00"   bgroundedge="calc:10 * 2"  width="10" height="10"  onloaded="pulse(get(name))"/> 
<!-- ********** -->
<!-- Button -->
<!-- id : button -->
<!-- ********** -->

  <layer name="button"
         keep="true"
         url="%FIRSTXML%/graphics/button/en.png"
         align="topright"
         x="10"
         y="10"
         zorder="23"
         visible="false"
         onclick="buttonOnClick"
         alpha="0.7"
         tooltip="buttontooltip"
         onhover="showTooltip('plugin');"
         onout="hideTooltip();tween(scale, 1.0,0.5,easeOutQuad);tween(alpha,0.7,0.5,easeOutQuad);"
         onover="tween(scale, 1.2,0.5,easeOutQuad);tween(alpha,1.0,0.5,easeOutQuad);"
         />



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


  </action>

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


  <!-- Share Tour -->
  <action name="shareTour">events.dispatch(onsharetour);</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>

  <action name="displayVideo">
    set(displayedVideoObjectToCreate, true);
    set(displayedVideoObjectForDesktop, true);
    if(%10,
      set(displayedVideoObjectForDesktop, false);
    ,
      if (device.tablet, set(displayedVideoObjectForDesktop, false););
      if (device.mobile, set(displayedVideoObjectForDesktop, false););
    );
    
    if (layer[displayedStandardVideo],
      if(layer[displayedStandardVideo].donotdeleteme,
        set(layer[displayedStandardVideo].fromdesktop, get(displayedVideoObjectForDesktop));
        set(layer[displayedStandardVideo].currentCall, false);
        set(layer[displayedStandardVideo].visible, true);
        if(layer[displayedStandardVideo].overlay,set(layer[displayedStandardVideoOverlayBkg].visible, true););
        set(layer[displayedStandardVideo].donotdeleteme, false);
        set(layer[displayedStandardVideo].pausebgsound, %11);
        if (%1 == layer[displayedStandardVideo].videourl,
          layer[displayedStandardVideo].stop();
          ifnot(layer[displayedStandardVideo].fromdesktop,
            removelayer(displayedStandardVideoOverlayButton);
            removelayer(displayedStandardVideoOverlay);
          );resumeautorotation(forcehotspot);

          delete(tour_current_played_video);
          set(tour_current_played_video_state, 0);
          if(layer[displayedStandardVideo].overlay,removelayer(displayedStandardVideoOverlayBkg););
          removelayer(displayedStandardVideo);
        ,
          
          set(tour_current_played_video, %1);
          if(tour_current_played_sound,
            set(tour_current_played_video_state, 2);
          ,
            set(tour_current_played_video_state, 1);
          );
          set(layer[displayedStandardVideo].onloaded, displayVideoWhenLoaded(%1,%10););
          set(layer[displayedStandardVideo].autoresume, true);
          if(device.html5,
            set(layer[displayedStandardVideo].url, %FIRSTXML%/graphics/videoplayer.js);
          ,
          );
        );
      ,
        events.dispatch(onremovedisplayedobject);
        if (%1 != layer[displayedStandardVideo].videourl,
          delayedcall(0.2,displayVideo(%1, %2, %3, %4, %5, %6, %7, %8, %9, %10, %11, %12, %13, %14););
        );
      );
    ,
      if(%12,
        addlayer(displayedStandardVideoOverlayBkg);
        set(layer[displayedStandardVideoOverlayBkg].keep, false);
        set(layer[displayedStandardVideoOverlayBkg].visible , false);
        set(layer[displayedStandardVideoOverlayBkg].onclick, displayedVideoObjectStartStopAction(););
        set(layer[displayedStandardVideoOverlayBkg].zorder , 97);
        set(layer[displayedStandardVideoOverlayBkg].type, container);
        set(layer[displayedStandardVideoOverlayBkg].width   , 100%);
        set(layer[displayedStandardVideoOverlayBkg].height  , 100%);
        set(layer[displayedStandardVideoOverlayBkg].bgcolor, "0x%13");
        set(layer[displayedStandardVideoOverlayBkg].bgalpha, %14);
        set(layer[displayedStandardVideoOverlayBkg].bgcapture, true);
      );
      addlayer(displayedStandardVideo);
      set(layer[displayedStandardVideo].keep, false);
      set(layer[displayedStandardVideo].visible , false);
      set(layer[displayedStandardVideo].onclick, displayedVideoObjectStartStopAction(););
      set(layer[displayedStandardVideo].zorder , 98);
      set(layer[displayedStandardVideo].align   , %2);
      set(layer[displayedStandardVideo].x       , %3);
      set(layer[displayedStandardVideo].y       , %4);
      set(layer[displayedStandardVideo].width   , %5);
      set(layer[displayedStandardVideo].height  , %6);
      set(layer[displayedStandardVideo].overlay , %12);
      set(layer[displayedStandardVideo].iphoneworkarounds, false);
      
      if (%7,
        set(layer[displayedStandardVideo].loop, true);
       ,
        set(layer[displayedStandardVideo].onvideocomplete, displayedVideoObjectStartStopAction(););
      );
      if (displayedVideoObjectForDesktop,
        set(layer[displayedStandardVideo].pausedonstart, false);
        set(layer[displayedStandardVideo].onvideoready, set(layer[displayedStandardVideo].visible, true);if(layer[displayedStandardVideo].overlay,set(layer[displayedStandardVideoOverlayBkg].visible, true);););
      ,
        
        set(layer[displayedStandardVideo].pausedonstart, true);
        set(layer[displayedStandardVideo].onvideoready, set(layer[displayedStandardVideo].started, false);set(layer[displayedStandardVideo].visible, true);if(layer[displayedStandardVideo].overlay,set(layer[displayedStandardVideoOverlayBkg].visible, true););delayedcall(0.1,applyDisplayedStandardVideoOverlay(%1, %2, %3, %4, %5, %6, %7, %8, %9, %10, %11)););
      );
      
      set(layer[displayedStandardVideo].currentCall, true);
      set(layer[displayedStandardVideo].donotdeleteme, true);
      events.dispatch(onremovedisplayedobject);
      delayedcall(0.2,displayVideo(%1, %2, %3, %4, %5, %6, %7, %8, %9, %10, %11, %12, %13, %14););
      if (%8,pauseautorotation(forcehotspot);
);
    );
  </action>
  <action name="applyDisplayedStandardVideoOverlay">
      addlayer(displayedStandardVideoOverlay);
      
      set(layer[displayedStandardVideoOverlay].type, container);
      set(layer[displayedStandardVideoOverlay].visible, true);
      set(layer[displayedStandardVideoOverlay].zorder, 99);
      set(layer[displayedStandardVideoOverlay].keep, false);
      set(layer[displayedStandardVideoOverlay].align, %2);
      set(layer[displayedStandardVideoOverlay].x, %3);
      set(layer[displayedStandardVideoOverlay].y, %4);
      set(layer[displayedStandardVideoOverlay].width, get(layer[displayedStandardVideo].pixelwidth));
      set(layer[displayedStandardVideoOverlay].height, get(layer[displayedStandardVideo].pixelheight));
      
      addlayer(displayedStandardVideoOverlayButton);
      set(layer[displayedStandardVideoOverlayButton].visible, true);
      set(layer[displayedStandardVideoOverlayButton].keep, false);
      set(layer[displayedStandardVideoOverlayButton].parent, displayedStandardVideoOverlay);
      set(layer[displayedStandardVideoOverlayButton].align, center);
      set(layer[displayedStandardVideoOverlayButton].url, %FIRSTXML%/graphics/videoplayer_play_button.png);
      set(layer[displayedStandardVideoOverlayButton].width, 50);
      set(layer[displayedStandardVideoOverlayButton].height, 50);
      set(layer[displayedStandardVideoOverlayButton].alpha, 0.5);
      set(layer[displayedStandardVideoOverlayButton].enabled, false);
      set(layer[displayedStandardVideoOverlayButton].capture, false);
      set(layer[displayedStandardVideoOverlayButton].onclick, displayedVideoObjectStartStopAction(););
  </action>
  <action name="displayVideoWhenLoaded">
    layer[displayedStandardVideo].playVideo(%1,,%2);
    ifnot(tour_soundson,
      pauseVideoActionsSounds();
    );
  </action>
  <action name="displayedVideoObjectStartStopAction">
    if(layer[displayedStandardVideo].fromdesktop,
      layer[displayedStandardVideo].stop();
      set(layer[displayedStandardVideo].visible, false);
      if(layer[displayedStandardVideo].overlay,set(layer[displayedStandardVideoOverlayBkg].visible, false););resumeautorotation(forcehotspot);

      delete(tour_current_played_video);
      set(tour_current_played_video, null);
      set(tour_current_played_video_state, 0);
      if(layer[displayedStandardVideo].overlay,removelayer(displayedStandardVideoOverlayBkg););
      removelayer(displayedStandardVideo);
    ,
      if (layer[displayedStandardVideo].started == false,
        set(layer[displayedStandardVideo].visible , true);
        if(layer[displayedStandardVideo].overlay,set(layer[displayedStandardVideoOverlayBkg].visible, true););
        set(layer[displayedStandardVideoOverlay].visible , false);
        removelayer(displayedStandardVideoOverlayButton);
        removelayer(displayedStandardVideoOverlay);
        set(layer[displayedStandardVideo].started, true);
        layer[displayedStandardVideo].play();
        ifnot(tour_soundson,
          pauseVideoActionsSounds();
        );
      ,
        layer[displayedStandardVideo].stop();
        set(layer[displayedStandardVideo].visible , false);
        if(layer[displayedStandardVideo].overlay,set(layer[displayedStandardVideoOverlayBkg].visible, false););resumeautorotation(forcehotspot);

        delete(tour_current_played_video);
        set(tour_current_played_video, null);
        set(tour_current_played_video_state, 0);
        if(layer[displayedStandardVideo].overlay,removelayer(displayedStandardVideoOverlayBkg););
        removelayer(displayedStandardVideo);
      );
    );
  </action>
  <events name="displayedVideoObjectEvents" keep="true" onremovedisplayedobject="displayedVideoObjectOnRemoveDisplayedObject"/>
  <action name="displayedVideoObjectOnRemoveDisplayedObject">
    ifnot(layer[displayedStandardVideo].currentCall,
      if(layer[displayedStandardVideo].visible,
        layer[displayedStandardVideo].stop();
        ifnot(layer[displayedStandardVideo].fromdesktop,
          removelayer(displayedStandardVideoOverlayButton);
          removelayer(displayedStandardVideoOverlay);
        );
        set(layer[displayedStandardVideo].visible , false);
        if(layer[displayedStandardVideo].overlay,set(layer[displayedStandardVideoOverlayBkg].visible, false););resumeautorotation(forcehotspot);

        delete(tour_current_played_video);
        set(tour_current_played_video, null);
        set(tour_current_played_video_state, 0);
        if(layer[displayedStandardVideo].overlay,removelayer(displayedStandardVideoOverlayBkg););
        removelayer(displayedStandardVideo);
      );
    );
  </action>

	<!-- WebVR plugin for VR availability tests -->

	<plugin name="ptpvrmode" devices="html5" keep="true"
		url="%FIRSTXML%/graphics/webvr.js"
		mobilevr_support="true"
		mobilevr_fake_support="false"
		vr_cursor=""
		vr_cursor_enabled="false"
		onavailable="delayedcall(1, checkVrAvailability(););"
		onunavailable="checkVrUnavailable();"
		/>
	<action name="checkVrAvailability">
		if(plugin[ptpvrmode],
			if (plugin[ptpvrmode].isavailable,
				set(tour_vrdevices, true);
				events.dispatch(onvravailable);
			,
				set(tour_vrdevices, false);
			);
		,
			checkVrUnavailable();
		);
	</action>
	<action name="checkVrUnavailable">
		set(tour_vrdevices, false);
		events.dispatch(onvrunavailable);
	</action>
  <!-- Tour Information -->
  <action name="hideTourInfo">set(tour_displayinfo, false);events.dispatch(onhidetourinfo);</action>
  <action name="showTourInfo">set(tour_displayinfo, true); events.dispatch(onshowtourinfo);</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>

  <action name="displayWebVideo">
    if(layer[webvideodisplay_bg],

    ,
      <!-- add overlay -->
      addlayer(webvideodisplay_bg);
      set(layer[webvideodisplay_bg].type, container);
      set(layer[webvideodisplay_bg].zorder, 98);
      set(layer[webvideodisplay_bg].align, topleft);
      set(layer[webvideodisplay_bg].width, 100%);
      set(layer[webvideodisplay_bg].height, 100%);
      set(layer[webvideodisplay_bg].bgcolor, %16);
      set(layer[webvideodisplay_bg].bgalpha, %17);
      set(layer[webvideodisplay_bg].bgcapture, true);
      set(layer[webvideodisplay_bg].handcursor, false);
      set(layer[webvideodisplay_bg].alpha, 0.0);
      set(layer[webvideodisplay_bg].onclick, displayWebVideoObjectClose() );
      tween(layer[webvideodisplay_bg].alpha, 1.0, 0.5, default,


        addlayer(webvideodisplay_player);
        set(layer[webvideodisplay_player].parent, layer[webvideodisplay_bg]);
        set(layer[webvideodisplay_player].align, %13);
        set(layer[webvideodisplay_player].x, %14);
        set(layer[webvideodisplay_player].y, %15);
        set(layer[webvideodisplay_player].alpha, 0.0);
        set(layer[webvideodisplay_player].pauseautorotate, %18);
        set(layer[webvideodisplay_player].pausebgsound, %19);

        sub(maxstagewidth, get(stagewidth), %14);
        sub(maxstageheight, get(stageheight), %15);

        if('4:3' == '%3',
          div(aspect, 4, 3);
        ,
          if('2.39:1' == '%3',
            div(aspect, 2.39, 1);
          ,
            div(aspect, 16, 9);
          );
        );
        if(%9,
          if(%10 == 'pixel',
            set(new_videowidth, %9);
            div(new_videoheight, get(new_videowidth), get(aspect));
          ,
            mul(new_videowidth, get(maxstagewidth), %9);
            div(new_videowidth, 100);
            div(new_videoheight, get(new_videowidth), get(aspect));
          );
        ,
          ifnot(%11,
            set(max_videoheight, %2);
            set(new_videowidth, %1);
            set(new_videoheight, %2);
          );
        );
        if(%11,
          ifnot(%9,
            if(%12 == 'pixel',
              set(new_videoheight, %11);
              mul(new_videowidth, get(new_videoheight), get(aspect));
            ,
              mul(new_videoheight, get(maxstageheight), %11);
              div(new_videoheight, 100);
              mul(new_videowidth, get(new_videoheight), get(aspect));
            );
            set(max_videoheight, get(new_videoheight));
          ,
            if(%12 == 'pixel',
              set(max_videoheight, %11);
            ,
              mul(max_videoheight, get(maxstageheight), %11);
              div(max_videoheight, 100);
            );
          );
        ,
          set(max_videoheight, get(new_videoheight));
        );
        if(new_videowidth GT maxstagewidth,
          set(new_videowidth, get(maxstagewidth));
          div(new_videoheight, get(new_videowidth), get(aspect));
        );
        if(max_videoheight GT maxstageheight,
          set(max_videoheight, get(maxstageheight));
        );
        if(new_videoheight GT max_videoheight,
          set(new_videoheight, get(max_videoheight));
          mul(new_videowidth, get(new_videoheight), get(aspect));
        );
        roundval(new_videowidth);
        roundval(new_videoheight);
        set(layer[webvideodisplay_player].width, get(new_videowidth));
        set(layer[webvideodisplay_player].height, get(new_videoheight));

        set(tour_current_played_web_video, %8);

        if(device.html5,

          txtadd(iframecode, '[iframe width="',get(layer[webvideodisplay_player].width),'" height="',get(layer[webvideodisplay_player].height),'" src="','%4','%8','?','%6','" frameborder="0" allowfullscreen][/iframe]');
          set(layer[webvideodisplay_player].html, get(iframecode));
          set(layer[webvideodisplay_player].padding, 0);
          set(layer[webvideodisplay_player].type, 'text');
          set(layer[webvideodisplay_player].onloaded, displayWebVideoObjectReady() );
        ,

          txtadd(embedurl, '%5','%8','%7');
          set(layer[webvideodisplay_player].onloaded, registercontentsize(%1,%2);displayWebVideoObjectReady(); );
          set(layer[webvideodisplay_player].url, get(embedurl));
        );
      );
    );
  </action>
  <action name="displayWebVideoObjectReady">
    if(layer[webvideodisplay_player],
      set(layer[webvideodisplay_player].currentCall, true);
      events.dispatch(onremovedisplayedobject);
      tween(layer[webvideodisplay_player].alpha, 1.0, default, default,
        if(layer[webvideodisplay_player].pauseautorotate,pauseautorotation(forcehotspot);
);
      );
    );
  </action>
  <action name="displayWebVideoObjectClose">
    if(layer[webvideodisplay_player],
      if(layer[webvideodisplay_player].currentCall,
        set(layer[webvideodisplay_player].currentCall, false);
      ,
        set(layer[webvideodisplay_bg].onclick, null);
        delete(tour_current_played_web_video);
        tween(layer[webvideodisplay_player].alpha, 0.0, 0.25, default);
        tween(layer[webvideodisplay_bg].alpha,0.0, 0.50, default,
          if(layer[webvideodisplay_player].pauseautorotate,resumeautorotation(forcehotspot);
);
          removelayer(webvideodisplay_bg);
          removelayer(webvideodisplay_player);
        );
      );
    );
  </action>
  <events name="displayWebVideoObjectEvents" keep="true" onremovedisplayedobject="displayWebVideoObjectClose();"/>

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

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


</krpano>