<?xml version="1.0" encoding="utf-8" ?>
<!--
-->
<SaladoPlayer>
  <global debug="false">
    <panoramas firstPanorama="Fachada" firstOnEnter="firstOpen"/>
    <branding visible="false"/>
    <control transition="time:0.5,property:alpha,startValue:0,endValue:1,tween:Cubic.easeIn"/>
  </global>
  <panoramas>
    <panorama id="Capela" path="Panorama/panoramas/dz_Capela/Capela_f.xml" camera="pan:0" direction="0" >
      <!--<swf id="cb_arrowYellow" path="Panorama/hotspots/AdvancedHotspot-1.0.swf" location="pan:-90"  mouse="onOver:showBubbleSala2,onOut:hideBubble,onClick:moveToSala1_Sala2">
        <settings path="Panorama/hotspots/images/arrow_yellow.png"/>
      </swf>
      <image id="cr_group1Setter" path="Panorama/hotspots/images/Lupa.png" location="pan:-40,tilt:-30" mouse="onClick:setGroup1"/>-->
    </panorama>
    <panorama id="Cela" path="Panorama/panoramas/dz_Cela/Cela_f.xml" camera="pan:-80,tilt:-25" direction="10" >
    </panorama>
    <panorama id="Cisterna" path="Panorama/panoramas/dz_cisterna/cisterna_f.xml" camera="pan:-60" direction="10" >
    </panorama>
    <panorama id="SalaCondestavel" path="Panorama/panoramas/dz_SalaCondestavel/SalaCondestavel_f.xml" camera="pan:-60" direction="10" >
    </panorama>
    <panorama id="SalaoNobre" path="Panorama/panoramas/dz_SalaoNobre/SalaoNobre_f.xml" camera="pan:-90," direction="10" >
    </panorama>
    <panorama id="Varanda" path="Panorama/panoramas/dz_Varanda/Varanda_f.xml" camera="pan:180,fov:180" direction="0" >
    </panorama>

    <panorama id="GabineteComando" path="Panorama/panoramas/dz_Gab_comand/Gab_comand_f.xml" camera="pan:180,fov:180" direction="0" >
      <swf id="cb_arrowYellow" path="Panorama/hotspots/AdvancedHotspot-1.0.swf" location="pan:170"  mouse="onOver:showBubbleSalaComando,onOut:hideBubble,onClick:moveToGabineteComando_SalaComando">
        <settings path="Panorama/hotspots/images/arrow_yellow.png"/>
      </swf>
    </panorama>
    <panorama id="SalaComando" path="Panorama/panoramas/dz_Sala_comand_a/Sala_comand_a_f.xml" camera="pan:180,fov:180" direction="0" >
      <swf id="cb_arrowYellow" path="Panorama/hotspots/AdvancedHotspot-1.0.swf" location="pan:-5"  mouse="onOver:showBubbleGabineteComando,onOut:hideBubble,onClick:moveToSalaComando_GabineteComando">
        <settings path="Panorama/hotspots/images/arrow_yellow.png"/>
      </swf>
    </panorama>

    <panorama id="Corredor1" path="Panorama/panoramas/dz_Corredor1/Corredor1_f.xml" camera="pan:270,fov:180" direction="0" >
      <swf id="cb_arrowYellow" path="Panorama/hotspots/AdvancedHotspot-1.0.swf" location="pan:270"  mouse="onOver:showBubbleCorredor1,onOut:hideBubble,onClick:moveToCorredor1_Corredor2">
        <settings path="Panorama/hotspots/images/arrow_yellow.png"/>
      </swf>
    </panorama>
    <panorama id="Corredor2" path="Panorama/panoramas/dz_Corredor2/Corredor2_f.xml" camera="pan:90,fov:180" direction="0" >
      <swf id="cb_arrowYellow" path="Panorama/hotspots/AdvancedHotspot-1.0.swf" location="pan:85"  mouse="onOver:showBubbleCorredor2,onOut:hideBubble,onClick:moveToCorredor2_Corredor1">
        <settings path="Panorama/hotspots/images/arrow_yellow.png"/>
      </swf>
    </panorama>
    <panorama id="Fachada" path="Panorama/panoramas/dz_Fachada/Fachada_f.xml" camera="pan:20,fov:180" direction="0" >
    </panorama>
    <panorama id="Parada" path="Panorama/panoramas/dz_parada/parada_f.xml" camera="pan:180,fov:180" direction="0" >
    </panorama>
  </panoramas>
  <modules>
    <InfoBubble path="Panorama/modules/InfoBubble-1.3.2.swf">
      <bubbles>
        <text id="b_drag" text="Alterar tipo de navegação" style="buttonBar" angle="1"/>
        <text id="b_autorotation" text="Rodar automaticamente" style="buttonBar" angle="1"/>
        <text id="b_fullscreen" text="Ecrã inteiro" style="buttonBar" angle="1"/>
        <!--<text id="b_map" text="show/hide map" style="buttonBar" angle="1"/>-->
        <text id="b_help" text="Ajuda" style="buttonBar" angle="1"/>
        <text id="Sala1_resolution" text="18648 x 9324"/>
        <text id="park_resolution" text="3200 x 1600"/>
        <image id="bubbleGabineteComando" path="Panorama/media/images/thumbs/GabineteComando.jpg"/>
        <image id="bubbleSalaComando" path="Panorama/media/images/thumbs/SalaComando.jpg"/>
        <image id="bubblePark" path="~Panorama/media/images/thumbs/park.jpg"/>
        <image id="bubbleBlue" path="~Panorama/media/images/thumbs/checker_blue.jpg"/>
        <image id="bubbleGreen" path="~Panorama/media/images/thumbs/checker_green.jpg"/>
        <image id="bubbleRed" path="~Panorama/media/images/thumbs/checker_red.jpg"/>
        <image id="bubbleYellow" path="~Panorama/media/images/thumbs/checker_yellow.jpg"/>

        <image id="bubbleCorredor1" path="Panorama/media/images/thumbs/CorredorPrincipal.jpg"/>
        <image id="bubbleCorredor2" path="Panorama/media/images/thumbs/CorredorLateral.jpg"/>
      </bubbles>
      <styles>
        <style id="buttonBar" content="bubblePadding:3,fontSize:12,borderSize:2"/>
      </styles>
    </InfoBubble>
    <!--<MenuScroller path="Panorama/modules/MenuScroller-1.2.swf">
      <window open="false" onOpen="menuScrollerOpened" onClose="menuScrollerClosed" openTween="time:0.5" closeTween="time:0.5"/>
      <close path="Panorama/media/images/buttons/dark_left_close.png" align="vertical:middle" move="horizontal:60"/>
      <elements>
        <element target="Sala1" path="Panorama/media/images/thumbs/0_0.jpg.jpg" mouse="onOver:showBubbleSala1Resolution,onOut:hideBubble"/>
        <element target="Sala2" path="Panorama/media/images/thumbs/Sala_2.jpg" mouse="onOver:showBubbleSala2Resolution,onOut:hideBubble"/>
      </elements>
    </MenuScroller>-->
    <DropDown path="Panorama/modules/DropDown-1.2.swf">
      <window open="false"/>
      <elements>
        <element target="Fachada" label="Entrada"/>
        <element target="Corredor1" label="Corredor Principal"/>
        <element target="Corredor2" label="Corredor Lateral"/>
        <element target="Varanda" label="Varanda"/>
        <element target="SalaComando" label="Sala do Comando"/>
        <element target="GabineteComando" label="Gabinete do Comando"/>
        <element target="SalaoNobre" label="Salão Nobre"/>
        <element target="Capela" label="Capela"/>
        <element target="Cisterna" label="Cisterna"/>
        <element target="SalaCondestavel" label="Sala do Condestável"/>
        <element target="Cela" label="Cela"/>
        <element target="Parada" label="Parada"/>
      </elements>
    </DropDown>
    <!--<ImageMap path="~Panorama/modules/imagemap/ImageMap-1.3.swf">
      <window open="false" transition="type:slideRight" openTween="transition:Back.easeOut" onOpen="mapOpened" onClose="mapClosed" alpha="0.8"/>
      <close path="~Panorama/media/images/misc/close.png" move="vertical:-10,horizontal:10"/>
      <viewer path="~Panorama/modules/imagemap/images/navigation_black_20x20.png"/>
      <maps>
        <map id="map1" path="~Panorama/media/images/maps/map1.jpg" onSet="onSetMap1">
          <waypoints path="~Panorama/modules/imagemap/images/waypoints_bubble_45x45.png" move="horizontal:6,vertical:-22" radar="showTilt:false">
            <waypoint target="kiev" position="x:330,y:200" mouse="onOver:showBubbleKiev,onOut:hideBubble"/>
            <waypoint target="park" position="x:650,y:380" mouse="onOver:showBubblePark,onOut:hideBubble"/>
          </waypoints>
        </map>
        <map id="map2" path="~Panorama/media/images/maps/map2.jpg" onSet="onSetMap2">
          <waypoints path="~Panorama/modules/imagemap/images/waypoints_bubble_45x45.png" move="horizontal:6,vertical:-22" radar="showTilt:false">
            <waypoint target="checkerBlue" position="x:250,y:200" mouse="onOver:showBubbleBlue,onOut:hideBubble"/>
            <waypoint target="checkerGreen" position="x:450,y:400" mouse="onOver:showBubbleGreen,onOut:hideBubble"/>
            <waypoint target="checkerRed" position="x:250,y:400" mouse="onOver:showBubbleRed,onOut:hideBubble"/>
            <waypoint target="checkerYellow" position="x:450,y:200" mouse="onOver:showBubbleYellow,onOut:hideBubble"/>
          </waypoints>
        </map>
      </maps>
    </ImageMap>-->
    <ImageButton path="~Panorama/modules/ImageButton-1.3.swf">
      <button id="help" path="Panorama/media/images/misc/help.png" action="helpToggle">
        <window align="vertical:middle,horizontal:center" open="false" onOpen="helpOpened" onClose="helpClosed"/>
      </button>
      <!--<button id="buttonMenuScroller" path="~Panorama/media/images/buttons/dark_left_open.png" action="menuScrollerOpen">
        <window align="vertical:middle,horizontal:left" move="horizontal:0,vertical:0" openTween="time:0" closeTween="time:0"/>
      </button>-->
      <!--<button id="mapIcon" path="~Panorama/media/images/misc/imagemap_icon.png" action="mapOpen">
        <window align="vertical:top,horizontal:right" move="horizontal:-30,vertical:30"/>
      </button>-->
      <!--<button id="buttonMenuMap">
        <window open="false"transition="type:fade" align="vertical:top,horizontal:right" move="horizontal:-230,vertical:330"/>
        <subButtons>
          <subButton id="buttonMenuMap1" path="~Panorama/media/images/misc/button_map1.png" action="setMap1"/>
          <subButton id="buttonMenuMap2" path="~Panorama/media/images/misc/button_map2.png" move="horizontal:85" action="setMap2"/>
        </subButtons>
      </button>-->
    </ImageButton>
    <ButtonBar path="~Panorama/modules/buttonBar/ButtonBar-1.3.swf">
      <window open="false" transition="type:slideRight"/>
      <buttons path="~Panorama/modules/buttonbar/images/buttons_dark_40x40.png">
        <button name="out"/>
        <button name="in"/>
        <!--<extraButton name="b" action="mapToggle" mouse="onOver:showBubbleMap,onOut:hideBubble"/>-->
        <button name="drag" mouse="onOver:showBubbleDrag,onOut:hideBubble"/>
        <button name="autorotation" mouse="onOver:showBubbleAutorotation,onOut:hideBubble"/>
        <button name="fullscreen" mouse="onOver:showBubbleFullscreen,onOut:hideBubble"/>
        <extraButton name="e" action="helpToggle" mouse="onOver:showBubbleHelp,onOut:hideBubble"/>
      </buttons>
    </ButtonBar>
    <MouseCursor path="~Panorama/modules/mousecursor/MouseCursor-1.2.swf">
      <settings path="~Panorama/modules/mousecursor/images/cursors_31x31.png"/>
    </MouseCursor>
    <!--<LensFlare path="~Panorama/modules/lensflare/LensFlare-1.0.swf">
      <settings path="~Panorama/modules/lensflare/images/flares1.png" positions="0.5|0.9|1.3|2" brightness="level:99,distance:10"/>
      <panoramas>
        <panorama id="kiev" location="pan:5.51,tilt:10.26" brightness="level:25,distance:5" path="~Panorama/modules/lensflare/images/flares1.png" positions="1|2|3|4"/>
        <panorama id="park" location="pan:-23.71,tilt:8.56"/>
      </panoramas>
    </LensFlare>-->
    <ImageGallery path="Panorama/modules/imagegallery/ImageGallery-1.0.swf">
      <close path="Panorama/media/images/misc/close.png" move="vertical:-10,horizontal:10"/>
      <viewer path="Panorama/modules/imagegallery/images/buttons_dark_40x40.png" throbber="Panorama/media/images/misc/throbber-circles.gif"/>
      <groups>
        <group id="group1">
          <image path="Panorama/panoramas/dz_Sala_1/SAM_0447 1.JPG"/>
          <image path="Panorama/panoramas/dz_Sala_1/SAM_0448 1.JPG"/>
          <image path="Panorama/panoramas/dz_Sala_1/SAM_0449 1.JPG"/>
          <image path="Panorama/panoramas/dz_Sala_1/SAM_0450 1.JPG"/>
        </group>
      </groups>
    </ImageGallery>
  </modules>
  <actions>
    <action id="firstOpen" content="ButtonBar.setOpen(true);DropDown.setOpen(true)"/>
    <action id="showBubbleDrag" content="InfoBubble.show(b_drag)"/>
    <action id="showBubbleAutorotation" content="InfoBubble.show(b_autorotation)"/>
    <action id="showBubbleFullscreen" content="InfoBubble.show(b_fullscreen)"/>
    <action id="showBubbleMap" content="InfoBubble.show(b_map)"/>
    <action id="showBubbleHelp" content="InfoBubble.show(b_help)"/>
    <action id="showBubbleSala1Resolution" content="InfoBubble.show(Sala1_resolution)"/>
    <action id="showBubbleSala2Resolution" content="InfoBubble.show(Sala2_resolution)"/>
    <action id="showBubbleParkResolution" content="InfoBubble.show(park_resolution)"/>
    <action id="showBubbleKiev" content="InfoBubble.show(bubbleKiev)"/>
    <action id="showBubblePark" content="InfoBubble.show(bubblePark)"/>
    <action id="showBubbleBlue" content="InfoBubble.show(bubbleBlue)"/>
    <action id="showBubbleGreen" content="InfoBubble.show(bubbleGreen)"/>
    <action id="showBubbleRed" content="InfoBubble.show(bubbleRed)"/>
    <action id="showBubbleYellow" content="InfoBubble.show(bubbleYellow)"/>
    <action id="showBubbleSala1" content="InfoBubble.show(bubbleSala1)"/>
    <action id="showBubbleSala2" content="InfoBubble.show(bubbleSala2)"/>

    <action id="showBubbleSalaComando" content="InfoBubble.show(bubbleSalaComando)"/>
    <action id="showBubbleGabineteComando" content="InfoBubble.show(bubbleGabineteComando)"/>

    <action id="showBubbleCorredor1" content="InfoBubble.show(bubbleCorredor1)"/>
    <action id="showBubbleCorredo21" content="InfoBubble.show(bubbleCorredor2)"/>

    <action id="hideBubble" content="InfoBubble.hide()"/>

    <!--<action id="menuScrollerOpen" content="MenuScroller.setOpen(true)"/>
    <action id="menuScrollerClose" content="MenuScroller.setOpen(false)"/>
    <action id="menuScrollerOpened" content="ImageButton.setOpen(buttonMenuScroller,false)"/>
    <action id="menuScrollerClosed" content="SaladoPlayer.waitThen(0.5,openButtonMenuScroller)"/>
    <action id="openButtonMenuScroller" content="ImageButton.setOpen(buttonMenuScroller,true)"/>-->

    <!--<action id="mapToggle" content="ImageMap.toggleOpen()"/>
    <action id="mapOpen" content="ImageMap.setOpen(true)"/>
    <action id="mapOpened" content="ImageButton.setOpen(mapIcon,false);ButtonBar.setActive(b,true);ImageButton.setOpen(buttonMenuMap,true)"/>
    <action id="mapClosed" content="ImageButton.setOpen(mapIcon,true);ButtonBar.setActive(b,false);ImageButton.setOpen(buttonMenuMap,false)"/>-->

    <!--<action id="setMap1" content="ImageMap.setMap(map1)"/>
    <action id="setMap2" content="ImageMap.setMap(map2)"/>
    <action id="onSetMap1" content="ImageButton.setActive(buttonMenuMap1,true);ImageButton.setActive(buttonMenuMap2,false)"/>
    <action id="onSetMap2" content="ImageButton.setActive(buttonMenuMap2,true);ImageButton.setActive(buttonMenuMap1,false)"/>-->

    <action id="helpToggle" content="ImageButton.toggleOpen(help)"/>
    <action id="helpOpened" content="ButtonBar.setActive(e,true)"/>
    <action id="helpClosed" content="ButtonBar.setActive(e,false)"/>

    <action id="blueMoveToYellow" content="SaladoPlayer.moveToHotspotThen(cb_arrowYellow,30,loadYellow)"/>
    <action id="blueMoveToRed" content="SaladoPlayer.moveToHotspotThen(cb_arrowRed,30,loadRed)"/>
    <action id="greenMoveToYellow" content="SaladoPlayer.moveToHotspotThen(cg_arrowYellow,30,loadYellow)"/>
    <action id="greenMoveToRed" content="SaladoPlayer.moveToHotspotThen(cg_arrowRed,30,loadRed)"/>
    <action id="yellowMoveToGreen" content="SaladoPlayer.moveToHotspotThen(cy_arrowGreen,30,loadGreen)"/>
    <action id="yellowMoveToBlue" content="SaladoPlayer.moveToHotspotThen(cy_arrowBlue,30,loadBlue)"/>
    <action id="redMoveToGreen" content="SaladoPlayer.moveToHotspotThen(cr_arrowGreen,30,loadGreen)"/>
    <action id="redMoveToBlue" content="SaladoPlayer.moveToHotspotThen(cr_arrowBlue,30,loadBlue)"/>

    <!--<action id="loadBlue" content="SaladoPlayer.loadPano(checkerBlue)"/>
    <action id="loadGreen" content="SaladoPlayer.loadPano(checkerGreen)"/>
    <action id="loadRed" content="SaladoPlayer.loadPano(checkerRed)"/>-->
    <action id="loadYellow" content="SaladoPlayer.loadPano(Sala2)"/>

    <action id="setGroup1" content="ImageGallery.setOpen(true);ImageGallery.setGroup(group1)"/>
    <action id="setGroup2" content="ImageGallery.setOpen(true);ImageGallery.setGroup(group2)"/>

    <action id="moveToSalaComando_GabineteComando" content="SaladoPlayer.advancedMoveToViewThen(0,0,40,20,Expo.easeIn,SalaComando_GabineteComando)"/>
    <action id="SalaComando_GabineteComando" content="SaladoPlayer.loadPano(GabineteComando)" />
    <action id="moveToGabineteComando_SalaComando" content="SaladoPlayer.advancedMoveToViewThen(170,0,40,20,Expo.easeIn,GabineteComando_SalaComando)"/>
    <action id="GabineteComando_SalaComando" content="SaladoPlayer.loadPano(SalaComando)" />

    <action id="moveToCorredor1_Corredor2" content="SaladoPlayer.advancedMoveToViewThen(265,0,40,20,Expo.easeIn,Corredor1_Corredor2)"/>
    <action id="Corredor1_Corredor2" content="SaladoPlayer.loadPano(Corredor2)" />

    <action id="moveToCorredor2_Corredor1" content="SaladoPlayer.advancedMoveToViewThen(80,0,40,20,Expo.easeIn,Corredor2_Corredor1)"/>
    <action id="Corredor2_Corredor1" content="SaladoPlayer.loadPano(Corredor1)" />
  </actions>

</SaladoPlayer>