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

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


  <style name="IconDefaultPointSpotStyle"
         url="%FIRSTXML%/spots/hotspot_neutral_sequence_user_defaultpoint0.png"
         visible="false"
         frame="0"
         lastframe="26"
         framewidth="50"
         frameheight="50"
         stopspotsequence="false"
         crop="0|0|50|50"
         edge="center"
         onloaded="startspotanimation(0.1);"
         onhover="onhoverIconDefaultPointSpotStyle"
         onover="onoverIconDefaultPointSpotStyle"
         onout="onoutIconDefaultPointSpotStyle"

         height="40"
         width="40"
         />
  <action name="onhoverIconDefaultPointSpotStyle">
    showtooltip('hotspot');
  </action>
  <action name="onoverIconDefaultPointSpotStyle">


pauseautorotation(forcehotspot);

  </action>
  <action name="onoutIconDefaultPointSpotStyle">
    hideTooltip();


resumeautorotation(forcehotspot);

  </action>


  <include url="%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/sidebar.xml"/><sidebar name="settings"  groupCount="15"     isRealGroup_0="false" totalPanos0="1"  groupName0="get:data[en_pano10_title].content" group0Contents="pano10|" group0MainPano="pano10" SceneName0="pano10" groupMessage0="pano10_title"      isRealGroup_1="false" totalPanos1="1"  groupName1="get:data[en_pano19_title].content" group1Contents="pano19|" group1MainPano="pano19" SceneName1="pano19" groupMessage1="pano19_title"      isRealGroup_2="false" totalPanos2="1"  groupName2="get:data[en_pano20_title].content" group2Contents="pano20|" group2MainPano="pano20" SceneName2="pano20" groupMessage2="pano20_title"      isRealGroup_3="false" totalPanos3="1"  groupName3="get:data[en_pano22_title].content" group3Contents="pano22|" group3MainPano="pano22" SceneName3="pano22" groupMessage3="pano22_title"      isRealGroup_4="false" totalPanos4="1"  groupName4="get:data[en_pano23_title].content" group4Contents="pano23|" group4MainPano="pano23" SceneName4="pano23" groupMessage4="pano23_title"      isRealGroup_5="false" totalPanos5="1"  groupName5="get:data[en_pano24_title].content" group5Contents="pano24|" group5MainPano="pano24" SceneName5="pano24" groupMessage5="pano24_title"      isRealGroup_6="false" totalPanos6="1"  groupName6="get:data[en_pano25_title].content" group6Contents="pano25|" group6MainPano="pano25" SceneName6="pano25" groupMessage6="pano25_title"      isRealGroup_7="false" totalPanos7="1"  groupName7="get:data[en_pano11_title].content" group7Contents="pano11|" group7MainPano="pano11" SceneName7="pano11" groupMessage7="pano11_title"      isRealGroup_8="false" totalPanos8="1"  groupName8="get:data[en_pano12_title].content" group8Contents="pano12|" group8MainPano="pano12" SceneName8="pano12" groupMessage8="pano12_title"      isRealGroup_9="false" totalPanos9="1"  groupName9="get:data[en_pano15_title].content" group9Contents="pano15|" group9MainPano="pano15" SceneName9="pano15" groupMessage9="pano15_title"      isRealGroup_10="false" totalPanos10="1"  groupName10="get:data[en_pano16_title].content" group10Contents="pano16|" group10MainPano="pano16" SceneName10="pano16" groupMessage10="pano16_title"      isRealGroup_11="false" totalPanos11="1"  groupName11="get:data[en_pano17_title].content" group11Contents="pano17|" group11MainPano="pano17" SceneName11="pano17" groupMessage11="pano17_title"      isRealGroup_12="false" totalPanos12="1"  groupName12="get:data[en_pano14_title].content" group12Contents="pano14|" group12MainPano="pano14" SceneName12="pano14" groupMessage12="pano14_title"      isRealGroup_13="false" totalPanos13="1"  groupName13="get:data[en_pano13_title].content" group13Contents="pano13|" group13MainPano="pano13" SceneName13="pano13" groupMessage13="pano13_title"      isRealGroup_14="false" totalPanos14="1"  groupName14="get:data[en_pano18_title].content" group14Contents="pano18|" group14MainPano="pano18" SceneName14="pano18" groupMessage14="pano18_title"    sbColor="0000ff" sbColorAlpha="0.50" sbWidth="243" sbAlign="left" startOpened="true" startOpenedMob="true" sbCloseIfnew="true" sbCloseIfnewMob="true" sbIconPosition="center" sbIconAlpha="100" sbIconAlphaSep="false" sbIconAlphaSepVal="90" sbIconOverState="false" sbIconOpenedState="true" sbIconOpenedOverState="false" sbIconPositionX="0" sbIconPositionY="0" sbIconPositionOpenUse="false" sbIconPositionOpen="top" sbIconPositionOpenX="0" sbIconPositionOpenY="0" sbIconHideShowDelay="false" sbIconDelay="6" sbOpenActions="0" sbCloseActions="0" sbMenuType="thumbscont"  sbIconUrl="%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/sidebar_open_arrow.png"      sbOpenedIconUrl="%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/sidebar_close_arrow.png"     textFieldUrl="%FIRSTXML%/graphics/textfield.swf"  scrollUrl="%FIRSTXML%/graphics/scrollarea.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="eeeeee" sbcurrent_PanoNameTxtSize="18"  sbcurrent_PanoNameTxtDecorU1="" sbcurrent_PanoNameTxtDecorU2=""   sbcurrent_PanoNameTxtDecorB1="" sbcurrent_PanoNameTxtDecorB2=""   sbcurrent_PanoNameTxtDecorI1="" sbcurrent_PanoNameTxtDecorI2=""  sbOpenCloseUseOpener="false" 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="false"/>  <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();     setBlockAutoHeight( 2, 3 );  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="75" maxheight="75" y="25"  /><layer name="sbBlock1" style="sbBlocks|sbBlock1ST"/><action name="calcBlock1H">calc(layer[sbBlock1].height, 0 * 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 + 25);</action>   <style name="sbBlock2ST" parent="sbBlock1" align="bottom" edge="top" minheight="0" maxheight="0" y="-25"  /><layer name="sbBlock2" style="sbBlocks|sbBlock2ST"/><action name="calcBlock2H">calc(layer[sbBlock2].height, 100 * 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 + 25);</action>   <style name="sbBlock3ST" parent="sbBlock2" align="bottom" edge="top" minheight="0" maxheight="0" y="-0"  /><layer name="sbBlock3" style="sbBlocks|sbBlock3ST"/><action name="calcBlock3H">calc(layer[sbBlock3].height, 30 * 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 + 0);</action>               <style name="sbLogoST" keep="true" url="%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/block_th_icon.png" align="top" alpha="0" width="100%" height="prop" handcursor="true" accuracy="1" parent="sbBlock1" onclick="sbOnClickLogo()"/>                         <style name="current_PanoNameUseST" url="" keep="false"/>              <include url="%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/menutype/thumbscont.xml"/><style name="scrolLayerST" keep="true" type="container" align="top" parent="sbBlock2" accuracy="1" width="0" height="100%"/>                                    <style name="sbButtonsContST" parent="sbBlock3" 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),100)"/><style name="sbButtonsCommonST" width="45" height="45" width.tablet="32" height.tablet="28" width.mobile="30" height.mobile="30" bgcolor="0xffffff" bgalpha="0.00" bgroundedge="5" bgroundedge.tablet="5" bgroundedge.mobile="5"  onout="hideTooltip();" 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>                             <layer name="sbButtonsCont" style="sbButtonsContST" width="1" height="1" onloaded="if(device.desktop,sbButtonsContgetW( 0 ,0 ,5 ,0 ,0 ,45  ); );  if(device.tablet,sbButtonsContgetW_TAB( 0 ,0 ,5 ,0 ,0 ,28  ); );   if(device.mobile,sbButtonsContgetW_MOB( 0 ,0 ,5 ,0 ,0 ,30  ); );  sbButtonsContSetOffset(); sbButtondContSetMinHeight(sbBlock3); "/><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="false"  /><sidebar name="settings" current_PanoNameUse="false" /><sidebar name="settings" useButtons="true" /><events name="alpoSBinitEV" keep="true" onxmlcomplete="alpoSBinit"/><plugin name="alpoSB" devices="html5" keep="true" url="%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/js/alpo.sidebar.js"/><action name="alpoSBinit" type="Javascript"><![CDATA[ window.alpoSB={ plugID : 'alpo_sidebar_full', plugDir : 'tower housedata/graphics/alpo.sidebar-v1.0.72', flags : {}, font : '', jsonData : '{ "project" : { "data" : { "dataDir" : "tower housedata", "bgClr" : "#ffffff", "fgClr" : "#000000", "groupsCount" : 15 }, "groups" : [  { "id" : "panogroup26", "title" : "panogroup26_title", "description" : "panogroup26_description", "url" : "%FIRSTXML%/tower_house_street_v_10/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/panogroup26.png", "color" : "#808080", "real" : false, "panoCount" : 1, "mainPano" : "pano10", "panoramas" : [  { "id" : "pano10", "parentID" : "panogroup26", "title" : "pano10_title", "description" : "pano10_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/pano10.png", "url" : "%FIRSTXML%/tower_house_street_v_10/thumbnail.jpg" }  ] },  { "id" : "panogroup35", "title" : "panogroup35_title", "description" : "panogroup35_description", "url" : "%FIRSTXML%/tower_house_building_19/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/panogroup35.png", "color" : "#808080", "real" : false, "panoCount" : 1, "mainPano" : "pano19", "panoramas" : [  { "id" : "pano19", "parentID" : "panogroup35", "title" : "pano19_title", "description" : "pano19_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/pano19.png", "url" : "%FIRSTXML%/tower_house_building_19/thumbnail.jpg" }  ] },  { "id" : "panogroup36", "title" : "panogroup36_title", "description" : "panogroup36_description", "url" : "%FIRSTXML%/foyer_20/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/panogroup36.png", "color" : "#808080", "real" : false, "panoCount" : 1, "mainPano" : "pano20", "panoramas" : [  { "id" : "pano20", "parentID" : "panogroup36", "title" : "pano20_title", "description" : "pano20_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/pano20.png", "url" : "%FIRSTXML%/foyer_20/thumbnail.jpg" }  ] },  { "id" : "panogroup38", "title" : "panogroup38_title", "description" : "panogroup38_description", "url" : "%FIRSTXML%/reception_22/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/panogroup38.png", "color" : "#808080", "real" : false, "panoCount" : 1, "mainPano" : "pano22", "panoramas" : [  { "id" : "pano22", "parentID" : "panogroup38", "title" : "pano22_title", "description" : "pano22_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/pano22.png", "url" : "%FIRSTXML%/reception_22/thumbnail.jpg" }  ] },  { "id" : "panogroup39", "title" : "panogroup39_title", "description" : "panogroup39_description", "url" : "%FIRSTXML%/meeting_room_23/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/panogroup39.png", "color" : "#808080", "real" : false, "panoCount" : 1, "mainPano" : "pano23", "panoramas" : [  { "id" : "pano23", "parentID" : "panogroup39", "title" : "pano23_title", "description" : "pano23_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/pano23.png", "url" : "%FIRSTXML%/meeting_room_23/thumbnail.jpg" }  ] },  { "id" : "panogroup40", "title" : "panogroup40_title", "description" : "panogroup40_description", "url" : "%FIRSTXML%/ground_floor_corrido_24/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/panogroup40.png", "color" : "#808080", "real" : false, "panoCount" : 1, "mainPano" : "pano24", "panoramas" : [  { "id" : "pano24", "parentID" : "panogroup40", "title" : "pano24_title", "description" : "pano24_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/pano24.png", "url" : "%FIRSTXML%/ground_floor_corrido_24/thumbnail.jpg" }  ] },  { "id" : "panogroup41", "title" : "panogroup41_title", "description" : "panogroup41_description", "url" : "%FIRSTXML%/staircase_to_1st_flo_25/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/panogroup41.png", "color" : "#808080", "real" : false, "panoCount" : 1, "mainPano" : "pano25", "panoramas" : [  { "id" : "pano25", "parentID" : "panogroup41", "title" : "pano25_title", "description" : "pano25_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/pano25.png", "url" : "%FIRSTXML%/staircase_to_1st_flo_25/thumbnail.jpg" }  ] },  { "id" : "panogroup27", "title" : "panogroup27_title", "description" : "panogroup27_description", "url" : "%FIRSTXML%/_1st_floor_landing_11/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/panogroup27.png", "color" : "#808080", "real" : false, "panoCount" : 1, "mainPano" : "pano11", "panoramas" : [  { "id" : "pano11", "parentID" : "panogroup27", "title" : "pano11_title", "description" : "pano11_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/pano11.png", "url" : "%FIRSTXML%/_1st_floor_landing_11/thumbnail.jpg" }  ] },  { "id" : "panogroup28", "title" : "panogroup28_title", "description" : "panogroup28_description", "url" : "%FIRSTXML%/_1st_floor_landing_12/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/panogroup28.png", "color" : "#808080", "real" : false, "panoCount" : 1, "mainPano" : "pano12", "panoramas" : [  { "id" : "pano12", "parentID" : "panogroup28", "title" : "pano12_title", "description" : "pano12_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/pano12.png", "url" : "%FIRSTXML%/_1st_floor_landing_12/thumbnail.jpg" }  ] },  { "id" : "panogroup31", "title" : "panogroup31_title", "description" : "panogroup31_description", "url" : "%FIRSTXML%/_1st_floor_corridoor__15/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/panogroup31.png", "color" : "#808080", "real" : false, "panoCount" : 1, "mainPano" : "pano15", "panoramas" : [  { "id" : "pano15", "parentID" : "panogroup31", "title" : "pano15_title", "description" : "pano15_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/pano15.png", "url" : "%FIRSTXML%/_1st_floor_corridoor__15/thumbnail.jpg" }  ] },  { "id" : "panogroup32", "title" : "panogroup32_title", "description" : "panogroup32_description", "url" : "%FIRSTXML%/kitchen_16/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/panogroup32.png", "color" : "#808080", "real" : false, "panoCount" : 1, "mainPano" : "pano16", "panoramas" : [  { "id" : "pano16", "parentID" : "panogroup32", "title" : "pano16_title", "description" : "pano16_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/pano16.png", "url" : "%FIRSTXML%/kitchen_16/thumbnail.jpg" }  ] },  { "id" : "panogroup33", "title" : "panogroup33_title", "description" : "panogroup33_description", "url" : "%FIRSTXML%/office_17/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/panogroup33.png", "color" : "#808080", "real" : false, "panoCount" : 1, "mainPano" : "pano17", "panoramas" : [  { "id" : "pano17", "parentID" : "panogroup33", "title" : "pano17_title", "description" : "pano17_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/pano17.png", "url" : "%FIRSTXML%/office_17/thumbnail.jpg" }  ] },  { "id" : "panogroup30", "title" : "panogroup30_title", "description" : "panogroup30_description", "url" : "%FIRSTXML%/_2nd_floor_office_14/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/panogroup30.png", "color" : "#808080", "real" : false, "panoCount" : 1, "mainPano" : "pano14", "panoramas" : [  { "id" : "pano14", "parentID" : "panogroup30", "title" : "pano14_title", "description" : "pano14_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/pano14.png", "url" : "%FIRSTXML%/_2nd_floor_office_14/thumbnail.jpg" }  ] },  { "id" : "panogroup29", "title" : "panogroup29_title", "description" : "panogroup29_description", "url" : "%FIRSTXML%/_2nd_floor_staircase_13/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/panogroup29.png", "color" : "#808080", "real" : false, "panoCount" : 1, "mainPano" : "pano13", "panoramas" : [  { "id" : "pano13", "parentID" : "panogroup29", "title" : "pano13_title", "description" : "pano13_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/pano13.png", "url" : "%FIRSTXML%/_2nd_floor_staircase_13/thumbnail.jpg" }  ] },  { "id" : "panogroup34", "title" : "panogroup34_title", "description" : "panogroup34_description", "url" : "%FIRSTXML%/car_park_18/thumbnail.jpg", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/panogroup34.png", "color" : "#808080", "real" : false, "panoCount" : 1, "mainPano" : "pano18", "panoramas" : [  { "id" : "pano18", "parentID" : "panogroup34", "title" : "pano18_title", "description" : "pano18_description", "urlAlt" : "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/assets/--/pano18.png", "url" : "%FIRSTXML%/car_park_18/thumbnail.jpg" }  ] }  ] }, "plugin" : { "includes" : { "textfield" : "%FIRSTXML%/graphics/textfield.swf", "scrollarea" : "%FIRSTXML%/graphics/scrollarea.js" }, "settings" : { "sb" : { "width" : 243, "specifyWidth" : true,  "tabWidth" : 0, "mobWidth" : 200,  "color" : "0000ff", "alpha" : 0.00, "align" : "left", "zorder" : 98, "startOpened" : true, "startOpenedMob" : true, "closeIfnew" : true, "closeIfnewMob" : true, "menuType" : "thumbscont", "openerUse" : false, "contextMenuUse" : false }, "btn" : { "use" : true, "position" : "center", "alpha" : 100, "alphaOpenUse" : false, "alphaOpen" : 90, "overStateUse" : false, "openStateUse" : true, "openOverStateUse": false, "posX" : "0", "posY" : "0", "posOpenUse" : false, "posOpen" : "top", "posXOpen" : "0", "posYOpen" : "0", "showHideDelayUse": false, "showHideDelay" : 6, "sbOpenActions" : 0, "sbCloseActions" : 0, "url" :  "%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/sidebar_open_arrow.png" , "urlOver" : "", "urlOpen" : "  %FIRSTXML%/graphics/alpo.sidebar-v1.0.72/sidebar_close_arrow.png  ", "urlOpenOver" : "" }, "currentPano" : { "text" : "alpo_sidebar_fullsbcurrent_PanoTxt", "font" : "trebuchet ms", "fontSize" : 14, "color" : "b7b7b7", "alpha" : "0.70", "align" : "center", "italic" : "", "bold" : "", "underline" : "", "colorName" : "eeeeee", "fontSizeName" : "18", "italicNameUse" : "false", "boldNameUse" : "false", "underlineNameUse" : "false" }, "menu" : [ { "menuType" : "thumbscont", "thumbsContMargin" : 5, "tcScrollHeight" : 43, "tcScrollVSpace" : 1, "tcScrollXOffset": 0, "tcScrollMenuW" : 243  , "advTCMenuTabSets": { "tcScrollHeight" : 56, "tcScrollVSpace" : 1, "tcScrollXOffset" : 0, "tcScrollMenuW" : 243 }   , "advTCMenuMobSets": { "tcScrollHeight" : 40, "tcScrollVSpace" : 1, "tcScrollXOffset" : 0, "tcScrollMenuW" : 200 }  }, { "menuType" : "hierarchical", "activeMenuHr" : false, "excludePano" : "", "groupAsText" : true, "panoAsText" : false, "custAsText" : false, "width" : 203, "height" : 50, "vSpace" : 5, "xOffset" : 20,   "loadMainPano" : false, "loadMainOpen" : false, "bgrColor" : "0x111111", "bgrAlpha" : 0.60, "txtOffsetL" : 10, "txtOffsetR" : 0, "txtAlign" : "left", "font" : "arial", "fontSize" : 13, "color" : "eeeeee", "italic" : " font-style:normal; ", "bold" : " font-weight:normal; ", "underline" : " text-decoration:none; ", "overStateUse" : false, "overColorUse" : true, "overColor" : "0x000000", "overAlpha" : 0.30, "itemIconUse" : true, "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, "thumbPos" : "top", "thumbTxtPadT" : 15, "thumbTxtPadB" : 15, "thumbHeight" : 50, "thumbVStxtMarg" : 5, "thumbAlign" : "left", "thumbHorizOff" : 10,   "backBtn" : { "height" : 32, "width" : 245,   "bottomMarg" : 0, "align" : "lefttop", "bgrUse" : true, "bgrColor" : "0x0b0b0b", "bgrAlpha" : 0.40, "bgrChange" : true, "bgrChangeColor" : "0x0cffa2", "bgrChangeAlpha" : 0.50, "txtUse" : true, "txtSrc" : "group", "font" : "arial", "fontSize" : 14, "fontColor" : "eeeeee", "txtAlign" : "left", "txtVcenter" : true, "paddingT" :  0 , "paddingB" :  0 , "paddingR" : 8, "paddingL" : 30, "iconUse" : true, "iconWidth" : 24, "iconHeight" : 24, "iconUrl" : "  %FIRSTXML%/graphics/alpo.sidebar-v1.0.72/graphics/arr_back_left.png  ", "italic" : "  font-style:normal;  ", "bold" : "  font-weight:normal;  ", "underline" : "  text-decoration:none;  " }, "scrollInd" : { "use" : false, "color" : "0x505050", "alpha" : 1.00, "width" : 8, "zorder" : 98, "barUse" : false, "barColor" : "0x353526", "barAlpha" : 0.50 }, "scrollBtns" : { "use" : false, "width" : "20", "height" : "18", "scale" : 100, "bgcolor" : "0x505050", "bgalpha" : 1.00, "align" : "left", "zorder" : 98, "overStateUse" : true, "bgrOverColor" : "0x1a1a1a", "bgrOverAlpha" : 0.90, "iconOverAlpha" : 30, "iconDflt" : true, "iconFileT" : "", "iconFileB" : "", "iconAlpha" : 50 } } ], "customItemsSet" : { "menuOrganize" : "dflt", "ignoreRest" : false } }, "customSet" : [  { "title" : "alpo_sidebar_fullitemName", "image" : "", "elemIndex" : 0, "custom" : true, "isChild" : false, "subItemsInd" : "", "subGroupsColor" : "808080", "subPanoIDs" : "", "itemActions" :  ""  }  ] } } ' }; krpano.set('events[alpoSBinitEV].onxmlcomplete', null); ]]></action> <sidebar name="settings" loadGroupMainPano="false" sbThumbsContMargin="5" sbThumbsCloseIfnew="false" sbPanoContDescrUse="false" sbPanoContNameUse="false" sbPanoContNameSingleUse="false" sbPanoNameFontAlign="center"  sbPanoChooseContCloseUrl="%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/graphics/sb_close_w.png"  sbPanoContCloseAlpha="90" sbPanoContCloseScale="80" overAnimUse="true"  overAnimColor="true" overColor="000000" overColorAlpha="0.50"   overAnimLineColor="false"  sbScrollAreaHeight="43" sbScrollAreaVSpace="1" sbScrollAreaNameWidth="243" sbScrollNameTxtBgrColor="111111" sbScrollNameTxtBgrAlpha="0.30" sbPanoNameTxtLeftPadding="0" sbPanoNameTxtRightPadding="0" sbScrollAreaXOffset="0" sbPanoNameFont="trebuchet ms" sbPanoNameFontSize="12" sbPanoContNumOfTotalTxtSize="12" sbPrefixTotal="alpo_sidebar_fullsbPrefixTotal"  sbPanoContNumOfTotalColor="eeeeee"  sbPanoContNameUseFontSize="16" sbPanoNameFontColor="eeeeee" sbPanoContNameUsePosition="center"    sbPanoContNameUseAlign="top"  sbPanoContNameUseOffset="0" sbDisplayPanoTotalInGr=""  sbPanoNameFontItalic="font-style&#58;normal&#59;"   sbPanoNameFontBold="font-weight&#58;normal&#59;"   sbPanoNameFontTD="text-decoration&#58;none&#59;"   sbScrolling="true" sbScrollingColor="eeeeee" sbScrollingAlpha="0.70"  sbScrollingBar="true" sbScrollingBarColor="353526" sbScrollingBarAlpha="0.00"  sbScrollIndicatorW="4"  sbPanoContNumOfTotal="false" sbPanoContOverlay="true" sbPanoContEye="true" sbPanoContThumbsBottomMargin="3" sbSinglePanoClick="true" sbMarkCurrentGroup="false" sbSyncExternalLoad="true" sbThumbsCloseIfnewIfClosed="false" delayOfSyncExternal="0.5" sbScrlBtnsUse="true"  sbTcMenuItemBorder="true"  sbTcMenuItemBorderSet="0,0,1,0 0xffffff 0.60"  itemTcBorderContW="243" itemTcBorderContH="42" itemTcBorderContXoff="0" itemTcBorderContYoff="0"/> <krpano devices="mobile"><sidebar name="settings" sbLightBoxed="false" sbCloseSBinLBStyle="false" sbOpenSBinLBStyle="false"/></krpano><layer name="sbScrollIndicatorBar" keep="true" parent="scrolLayer" type="container" style="sbScrollIndicatorBarST" width="4" height="100%" bgcolor="0x353526" bgalpha="0.00" bgcapture="false" accuracy="1" x="0" y="0" visible="false" zorder="get:sidebar[settings].sbZorder"/><style name="sbScrollIndicatorBarST" align="lefttop"/> <layer name="sbScrollIndicator" keep="true" parent="scrolLayer" type="container" style="sbScrollIndicatorST" width="4" height="15" bgcolor="0xeeeeee" bgalpha="0.70" bgcapture="false" accuracy="1" x="0" y="0" zorder="get:sidebar[settings].sbZorder" visible="false"/><style name="sbScrollIndicatorST" align="lefttop"/> <style name="sbPanoDisplay_closeST" align="righttop"/><style name="sbPanoDisplayST" align="lefttop" bgcolor="0x0000ff" bgalpha="0.50"/><style name="sbPanoThumbInner" margin="3"/><style name="sbPanoThumbInnerInner" bgcolor="0x000000" bgalpha="0.6"/><style name="sboneOfTotalST" keep="false"/>  <style name="sbEyeMark" keep="true" url="%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/graphics/sb_eye.png"/>   <action name="sbThumbsCloseIfnewCallAct"> sbThumbsCloseIfnewAct();</action>    <style name="scrlBtnsBgrST" keep="true" type="container" height="100%" width="37" parent="sbPanoDisplayInner" bgcapture="true" bgcolor="0x030303" bgalpha="0.50" visible="false" alpha="0" autoalpha="true" ondown.mouse="pressToScroll(calc(layer[get(name)].direction == left ? '+2' : '-2'))" onup.mouse=""  onover="scrlBtnsBgOver( get(layer[get(name)].direction), 0x030303, 0.70, calc(100 * 0.01) )" onout="scrlBtnsBgOut( get(layer[get(name)].direction), 0x030303, 0.50, calc(50 * 0.01) )" ondown.no-mouse="scrlBtnsBgOver( get(layer[get(name)].direction), 0x030303, 0.70, calc(100 * 0.01) ); pressToScroll(calc(layer[get(name)].direction == left ? '+2' : '-2'))" onup.no-mouse="scrlBtnsBgOut( get(layer[get(name)].direction), 0x030303, 0.50, calc(50 * 0.01) )" /><style name="scrlBtnsST" keep="true" align="center" enabled="false" alpha="calc:50 * 0.01"/><action name="pressToScroll">asyncloop(pressed, layer[sbPanoDisplayScrollarea].scrollby(%1,0)); </action><action name="scrlBtnsBgOver">tween(layer[scrlBtnsBgr%1].bgcolor|layer[scrlBtnsBgr%1].bgalpha|layer[scrlBtns%1].alpha, %2|%3|%4, 0.6, easeOutCubic);</action><action name="scrlBtnsBgOut">tween(layer[scrlBtnsBgr%1].bgcolor|layer[scrlBtnsBgr%1].bgalpha|layer[scrlBtns%1].alpha, %2|%3|%4, 0.6, easeOutCubic); </action>    <layer name="scrlBtnsBgrleft" style="scrlBtnsBgrST" direction="left" align="left"/><layer name="scrlBtnsleft" style="scrlBtnsST" parent="scrlBtnsBgrLeft" url="%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/graphics/arr_left.png"/>   <layer name="scrlBtnsBgrright" style="scrlBtnsBgrST" direction="right" align="right"/><layer name="scrlBtnsright" style="scrlBtnsST" parent="scrlBtnsBgrRight" url="%FIRSTXML%/graphics/alpo.sidebar-v1.0.72/graphics/arr_right.png"/><action name="appendTHname"> set(thName_pano10, sbPanoThumbInner_0_0); set(thName_pano19, sbPanoThumbInner_1_0); set(thName_pano20, sbPanoThumbInner_2_0); set(thName_pano22, sbPanoThumbInner_3_0); set(thName_pano23, sbPanoThumbInner_4_0); set(thName_pano24, sbPanoThumbInner_5_0); set(thName_pano25, sbPanoThumbInner_6_0); set(thName_pano11, sbPanoThumbInner_7_0); set(thName_pano12, sbPanoThumbInner_8_0); set(thName_pano15, sbPanoThumbInner_9_0); set(thName_pano16, sbPanoThumbInner_10_0); set(thName_pano17, sbPanoThumbInner_11_0); set(thName_pano14, sbPanoThumbInner_12_0); set(thName_pano13, sbPanoThumbInner_13_0); set(thName_pano18, sbPanoThumbInner_14_0);</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,
        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>

<!-- ********** -->
<!-- Gyro Button -->
<!-- id : gyroButton -->
<!-- ********** -->


  <layer name="gyroButton"
         keep="true"
         url="%FIRSTXML%/graphics/gyrobutton/disable_gyro2.png" 
         align="bottomright"
         x="155"
         y="30"
         zorder="3"
         tooltip=""
         onhover="gyroButtonOnHover"
         state="true"
         onclick="gyroButtonOnClick"
         onout="hideTooltip();"
         height="30"
         width="30"
         visible="false"
         />

  <action name="gyroButtonOnHover">
    if (state,
      set(tooltip, gyroButtonfirsttooltip);
     ,
      set(tooltip, gyroButtonsecondtooltip);
    );
    if (tooltip != "", showTooltip(bottomright,''););
  </action>
  <action name="gyroButtonOnClick">
    if (state,disableGyroscope();

     ,enableGyroscope();

    );
  </action>

  <events name="gyroButtonevents" 
    onTourStart="gyroButtonShowGyroscopeButtons();"
    hidetourcontrols="hidegyroButton();" 
    showtourcontrols="gyroButtonShowGyroscopeButtons();" 
	ongyroscopeavailable="gyroButtonupdateGyroscopeButtonsAvailability();"
	ongyroscopeunavailable="gyroButtonupdateGyroscopeButtonsAvailability();"
	ongyroscopeon="gyroButtonenableGyroscopeButtons(true);"
	ongyroscopeoff="gyroButtonenableGyroscopeButtons(false);"
    keep="true" device="html5" />

  <events name="gyroButtonDesktopEvents" onTourStart="delayedcall(gyroButton_desktopdelay,3.0,ifnot(plugin[gyroscope],gyroButtonHideGyroscopeButtons(true);););" keep="true" device="desktop" />

  <action name="hidegyroButton">if(layer[gyroButton],set(layer[gyroButton].visible, false););</action>
  <action name="showgyroButton">if(layer[gyroButton],set(layer[gyroButton].visible, true););</action>


  <krpano gyroButtongyroscopeavailable="false" gyroButtongyroscopeenabled="false"/>
  <action name="gyroButtonupdateGyroscopeButtonsAvailability">
    stopdelayedcall(gyroButton_desktopdelay);
	if (tour_gyroscopedevices,
      set(gyroButtongyroscopeavailable, true);
      gyroButtonupdateGyroscopeButtons();
    ,
      set(gyroButtongyroscopeavailable, false);
      gyroButtonHideGyroscopeButtons(true);
    );
  </action>
  <action name="gyroButtonenableGyroscopeButtons">
    if (tour_gyroscopedevices,
      set(gyroButtongyroscopeenabled, %1);
      gyroButtonupdateGyroscopeButtons();
    );
  </action>
  
  <action name="gyroButtonHideGyroscopeButtons">
		hidegyroButton();
		if('%1' == 'true',
			removelayer(gyroButton);
			set(events[gyroButtonevents].name, null);
			set(events[gyroButtonDesktopEvents].name, null);
		);
	</action>
	<action name="gyroButtonShowGyroscopeButtons">
		if (gyroButtongyroscopeavailable,
			if (gyroButtongyroscopeenabled,

				set(layer[gyroButton].state, true);
				set(layer[gyroButton].url,%FIRSTXML%/graphics/gyrobutton/enable_gyro2.png);
			,
				set(layer[gyroButton].state, false);

				set(layer[gyroButton].url,%FIRSTXML%/graphics/gyrobutton/disable_gyro2.png);
			);
			showgyroButton();
		,
			set(layer[gyroButton].state, false);
			gyroButtonHideGyroscopeButtons();
		);
	</action>
	<action name="gyroButtonupdateGyroscopeButtons">
	if (tour_gyroscopedevices,
		if (tour_displaycontrols,
			gyroButtonShowGyroscopeButtons();
		,
			gyroButtonHideGyroscopeButtons();
		);
	,
		gyroButtonHideGyroscopeButtons();
	);
	</action>


<!-- ********** -->
<!-- Double Click -->
<!-- id : doubleclick -->
<!-- ********** -->
  <events name="doubleclick_events" keep="true" ondoubleclick="doubleclick_ondoubleclick"/>
  <action name="doubleclick_ondoubleclick">switchFullscreen();


  </action>
<!-- ********** -->
<!-- Context menu -->
<!-- id : contextmenu -->
<!-- ********** -->
  <contextmenu fullscreen="false" versioninfo="false" touch="true">
    <item name="website1" onclick="getmessage(urltoopen,contextmenuwebsiteurl1);openurl(get(urltoopen),_blank);" />
    <item name="normal"        onclick="setViewNormal();
" separator="true"/>
    <item name="littleplanet"  onclick="setViewLittlePlanet();
"/>
    <item name="fullscreenentry" onclick="enterFullscreen();
" separator="true"/>
  </contextmenu>

  <events name="contextmenuevents" keep="true" 
    onenterfullscreen="updateContextMenu" onexitfullscreen="updateContextMenu" 
    onxmlcomplete="updateContextMenu" 
    changetourlanguage="updateContextMenu" 
    />
  <events name="contextmenuvrevents" keep="true" 
    onvravailable="updateContextMenu();" onvrunavailable="updateContextMenu();"
    devices="html5"
    />
  <action name="updateContextMenu">
    getmessage(contextmenu.item[website1].caption, contextmenuopenwebsitelabel1);
    getmessage(contextmenu.item[normal].caption, contextmenunormallabel);
    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),
      set(contextmenu.item[littleplanet].visible, true);
      getmessage(contextmenu.item[littleplanet].caption, contextmenulittleplanetlabel);
    ,
      set(contextmenu.item[littleplanet].visible, false);
    );
    if (device.fullscreensupport,
      if(tour_fullscreen,
        getmessage(contextmenu.item[fullscreenentry].caption, contextmenucloseFsLabel);
        set(contextmenu.item[fullscreenentry].onclick, exitFullscreen();
);
       ,
        getmessage(contextmenu.item[fullscreenentry].caption, contextmenuopenFsLabel);
        set(contextmenu.item[fullscreenentry].onclick, enterFullscreen();
);
      );
     ,
      set(contextmenu.item[fullscreenentry].visible, false);
    );
  </action>

  <!-- Sounds Management -->

  <action name="play3DLocalSounds">
    if (xml.scene, if (scene[get(xml.scene)].haslocalsounds, playpanolocalsounds();););
  </action>
  <action name="stop3DLocalSounds">
    if (xml.scene, if (scene[get(xml.scene)].haslocalsounds, stoppanolocalsounds();););
  </action>
  <action name="resume3DLocalSounds">
    if (xml.scene, if (scene[get(xml.scene)].haslocalsounds, 
      set(kill3dSoundOnResume, true);
      if(layer[displayedStandardVideo],
      if(layer[displayedStandardVideo].pausebgsound,
      if(tour_current_played_video,
        set(kill3dSoundOnResume, false);
      );););
      if(layer[webvideodisplay_player],
      if(layer[webvideodisplay_player].pausebgsound,
      if(tour_current_played_web_video,
        set(kill3dSoundOnResume, false);
      );););
      if(tour_current_played_sound_pausesound,
      if(tour_current_played_sound,
        set(kill3dSoundOnResume, false);
      ););
      if(kill3dSoundOnResume,
        resumepanolocalsounds();
      );
    ););
  </action>
  <action name="pause3DLocalSounds">
    if (xml.scene, if (scene[get(xml.scene)].haslocalsounds, pausepanolocalsounds();););
  </action>
  <action name="set3DLocalSoundsVolume">
    if (xml.scene, if (scene[get(xml.scene)].haslocalsounds, setpanolocalsoundsvolume();););
  </action>
  <action name="playTourSounds">
    set(tour_soundson, true);events.dispatch(playtoursoundsevent);
    resumeTourSoundsActions(true,true,true,true,true);
  </action>
  <action name="stopTourSounds">
    set(tour_soundson, false);events.dispatch(stoptoursoundsevent);
    pauseTourSoundsActions(true,true,true,true,true);
  </action>
  <action name="setTourSoundsVolume">
    set(tour_soundsvolume, %1);events.dispatch(changetoursoundsevent);
    set3DLocalSoundsVolume();
  </action>
  <action name="playTourSoundsActions">
    if(%1,
        play3DLocalSounds();
    );
  </action>
  <action name="stopTourSoundsActions">
    if(%1,
      stop3DLocalSounds();
    );
    if(%3,
      stopVideoActionsSounds();
    );
  </action>
  <action name="resumeTourSoundsActions">
    if(%1,
        resume3DLocalSounds();
    );
    if(%3,
      resumeVideoActionsSounds();
    );
  </action>
  <action name="pauseTourSoundsActions">
    if(%1,
      pause3DLocalSounds();
    );
    if(%3,
      pauseVideoActionsSounds();
    );
  </action>
  <action name="stopVideoActionsSounds">
    if(tour_current_played_video,
      if(layer[displayedStandardVideo],
        layer[displayedStandardVideo].stop();
        removelayer(displayedStandardVideo);
        if(layer[displayedStandardVideoOverlayButton], removelayer(displayedStandardVideoOverlayButton); );
        if(layer[displayedStandardVideoOverlay], removelayer(displayedStandardVideoOverlay); );
        delete(tour_current_played_video);
        set(tour_current_played_video_state, 0);
      );
    );
    if(tour_current_played_web_video,
      displayWebVideoObjectClose();
    );
  </action>
  <action name="resumeVideoActionsSounds">
    if(tour_current_played_video,
      set(resumeVideoActionsVerification, true);
      if(tour_current_played_sound,
        if(tour_current_played_video_state LT tour_current_played_sound_state,
          set(resumeVideoActionsVerification, false);
        );
      );
      if(resumeVideoActionsVerification,
        if (tour_soundson,
          if(device.flash OR (device.webgl AND !device.ios),
            div(volume, tour_soundsvolume, 100);
            set(layer[displayedStandardVideo].volume, get(volume));
          ,
            ifnot(device.ios,
              js(kpanotour.Sounds.startVideosSounds(get(volume)));
            ,
              if(tour_soundsvolume GT 0,
                set(layer[displayedStandardVideo].muted, false);
              ,
                set(layer[displayedStandardVideo].muted, true);
              );
            );
          );
        ,
          if(device.flash OR (device.webgl AND !device.ios),
            set(layer[displayedStandardVideo].volume, 0);
          ,
            ifnot(device.ios,
              js(kpanotour.Sounds.stopVideosSounds());
            ,
              set(layer[displayedStandardVideo].muted, true);
            );
          );
        );
      );
    );
  </action>
  <action name="pauseVideoActionsSounds">
    if(tour_current_played_video,
      if(device.flash OR (device.webgl AND !device.ios),
        set(layer[displayedStandardVideo].volume, 0);
      ,
        ifnot(device.ios,
          js(kpanotour.Sounds.stopVideosSounds());
        ,
          set(layer[displayedStandardVideo].muted, true);
        );
      );
    );
  </action>

  <!-- Fullscreen Management -->
  <action name="exitFullScreen" devices="fullscreensupport">set(tour_fullscreen,false);set(fullscreen,false);</action>
  <action name="enterFullScreen" devices="fullscreensupport">set(tour_fullscreen,true);set(fullscreen,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="setViewNormal">
	stopSetViewTweens();
	if(current_view_isflat === true,
		setViewNonFlat(VFOV);
	);
	setViewNormalComplete();
</action>

<action name="setViewNormalComplete">
	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>

<krpano normalViewActivated="true" />
<action name="stopSetViewTweens">
	stoptween(view.fov);
	stoptween(view.vlookat);
	stoptween(view.fisheye);
	stoptween(view.architectural);
	stoptween(view.pannini);
</action>

<action name="setViewLittlePlanet">
	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);
		);
		setViewLittlePlanetComplete();
	);
</action>

<action name="setViewLittlePlanetComplete">
	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="enableGyroscope">
    changeGyroscopeState(true);
  </action>
  <action name="disableGyroscope">
    changeGyroscopeState(false);
  </action>


</krpano>