<krpano debugmode="true">

    <!-- view settings -->
    <view hlookat="0" vlookat="0" maxpixelzoom="1.0" fovmin="1"  fovmax="80" limitview="auto" />

    <control draginertia="1" dragfriction="0.975" />
    <contextmenu touch="false"/>

    <include url="%BASEDIR%/plugins/showtext.xml" />

    <!-- include all scenes -->
      <!-- MASTER (English) -->
      <include url="%BASEDIR%/scenes/f56_hatch.xml" />
      <include url="%BASEDIR%/scenes/f60_countryman.xml" />
      <include url="%BASEDIR%/scenes/f54_clubman.xml" />
      <include url="%BASEDIR%/scenes/f57_cabrio.xml" />

      <!-- GERMANY (German) -->
      <include url="%BASEDIR%/scenes/de/de/f56_hatch.xml" />
      <include url="%BASEDIR%/scenes/de/de/f60_countryman.xml" />
      <include url="%BASEDIR%/scenes/de/de/f54_clubman.xml" />
      <include url="%BASEDIR%/scenes/de/de/f57_cabrio.xml" />
	
      <!-- SPAIN (Spanish) -->
      <include url="%BASEDIR%/scenes/es/es/f56_hatch.xml" />
      <include url="%BASEDIR%/scenes/es/es/f60_countryman.xml" />
      <include url="%BASEDIR%/scenes/es/es/f54_clubman.xml" />
      <include url="%BASEDIR%/scenes/es/es/f57_cabrio.xml" />
	
      <!-- FRANCE (French) -->
      <include url="%BASEDIR%/scenes/fr/fr/f56_hatch.xml" />
      <include url="%BASEDIR%/scenes/fr/fr/f60_countryman.xml" />
      <include url="%BASEDIR%/scenes/fr/fr/f54_clubman.xml" />
      <include url="%BASEDIR%/scenes/fr/fr/f57_cabrio.xml" />
	
      <!-- ITALY (Italian) -->
      <include url="%BASEDIR%/scenes/it/it/f56_hatch.xml" />
      <include url="%BASEDIR%/scenes/it/it/f60_countryman.xml" />
      <include url="%BASEDIR%/scenes/it/it/f54_clubman.xml" />
      <include url="%BASEDIR%/scenes/it/it/f57_cabrio.xml" />
	
      <!-- NETHERLANDS (Dutch) -->
      <include url="%BASEDIR%/scenes/nl/nl/f56_hatch.xml" />
      <include url="%BASEDIR%/scenes/nl/nl/f60_countryman.xml" />
      <include url="%BASEDIR%/scenes/nl/nl/f54_clubman.xml" />
      <include url="%BASEDIR%/scenes/nl/nl/f57_cabrio.xml" />
	
      <!-- BELGIUM (Dutch) -->
      <include url="%BASEDIR%/scenes/be/nl/f56_hatch.xml" />
      <include url="%BASEDIR%/scenes/be/nl/f60_countryman.xml" />
      <include url="%BASEDIR%/scenes/be/nl/f54_clubman.xml" />
      <include url="%BASEDIR%/scenes/be/nl/f57_cabrio.xml" />
	
      <!-- BELGIUM (French) -->
      <include url="%BASEDIR%/scenes/be/fr/f56_hatch.xml" />
      <include url="%BASEDIR%/scenes/be/fr/f60_countryman.xml" />
      <include url="%BASEDIR%/scenes/be/fr/f54_clubman.xml" />
      <include url="%BASEDIR%/scenes/be/fr/f57_cabrio.xml" />
	
      <!-- LUXEMBOURG (German) -->
      <include url="%BASEDIR%/scenes/lu/de/f56_hatch.xml" />
      <include url="%BASEDIR%/scenes/lu/de/f60_countryman.xml" />
      <include url="%BASEDIR%/scenes/lu/de/f54_clubman.xml" />
      <include url="%BASEDIR%/scenes/lu/de/f57_cabrio.xml" />
	
      <!-- LUXEMBOURG (French) -->
      <include url="%BASEDIR%/scenes/lu/fr/f56_hatch.xml" />
      <include url="%BASEDIR%/scenes/lu/fr/f60_countryman.xml" />
      <include url="%BASEDIR%/scenes/lu/fr/f54_clubman.xml" />
      <include url="%BASEDIR%/scenes/lu/fr/f57_cabrio.xml" />
	
      <!-- IRELAND (English) -->
      <include url="%BASEDIR%/scenes/ie/en/f56_hatch.xml" />
      <include url="%BASEDIR%/scenes/ie/en/f60_countryman.xml" />
      <include url="%BASEDIR%/scenes/ie/en/f54_clubman.xml" />
      <include url="%BASEDIR%/scenes/ie/en/f57_cabrio.xml" />
	
      <!-- MEXICO (Spanish) -->
      <include url="%BASEDIR%/scenes/mx/es/f56_hatch.xml" />
      <include url="%BASEDIR%/scenes/mx/es/f60_countryman.xml" />
      <include url="%BASEDIR%/scenes/mx/es/f54_clubman.xml" />
      <include url="%BASEDIR%/scenes/mx/es/f57_cabrio.xml" />

      <!-- Switzerland (German) -->
      <include url="%BASEDIR%/scenes/ch/de/f56_hatch.xml" />
      <include url="%BASEDIR%/scenes/ch/de/f60_countryman.xml" />
      <include url="%BASEDIR%/scenes/ch/de/f54_clubman.xml" />
      <include url="%BASEDIR%/scenes/ch/de/f57_cabrio.xml" />
	
      <!-- Switzerland (French) -->
      <include url="%BASEDIR%/scenes/ch/fr/f56_hatch.xml" />
      <include url="%BASEDIR%/scenes/ch/fr/f60_countryman.xml" />
      <include url="%BASEDIR%/scenes/ch/fr/f54_clubman.xml" />
      <include url="%BASEDIR%/scenes/ch/fr/f57_cabrio.xml" />
	
      <!-- Switzerland (Italian) -->
      <include url="%BASEDIR%/scenes/ch/it/f56_hatch.xml" />
      <include url="%BASEDIR%/scenes/ch/it/f60_countryman.xml" />
      <include url="%BASEDIR%/scenes/ch/it/f54_clubman.xml" />
      <include url="%BASEDIR%/scenes/ch/it/f57_cabrio.xml" />

          <!-- Austria (German) -->
      <include url="%BASEDIR%/scenes/at/de/f56_hatch.xml" />
      <include url="%BASEDIR%/scenes/at/de/f60_countryman.xml" />
      <include url="%BASEDIR%/scenes/at/de/f54_clubman.xml" />
      <include url="%BASEDIR%/scenes/at/de/f57_cabrio.xml" />
	  
      <!-- Turkey (Turkish) -->
      <include url="%BASEDIR%/scenes/tr/tr/f56_hatch.xml" />
      <include url="%BASEDIR%/scenes/tr/tr/f60_countryman.xml" />
      <include url="%BASEDIR%/scenes/tr/tr/f54_clubman.xml" />
      <include url="%BASEDIR%/scenes/tr/tr/f57_cabrio.xml" />
	  
      <!-- Mauritius (English) -->
      <include url="%BASEDIR%/scenes/mu/en/f56_hatch.xml" />
      <include url="%BASEDIR%/scenes/mu/en/f60_countryman.xml" />
      <include url="%BASEDIR%/scenes/mu/en/f54_clubman.xml" />
      <include url="%BASEDIR%/scenes/mu/en/f57_cabrio.xml" />
	  
      <!-- Guadeloupe (French) -->
      <include url="%BASEDIR%/scenes/gp/fr/f56_hatch.xml" />
      <include url="%BASEDIR%/scenes/gp/fr/f60_countryman.xml" />
      <include url="%BASEDIR%/scenes/gp/fr/f54_clubman.xml" />
      <include url="%BASEDIR%/scenes/gp/fr/f57_cabrio.xml" />

      <!-- Japan (Japanese) -->
      <include url="%BASEDIR%/scenes/jp/ja/f56_hatch.xml" />
      <include url="%BASEDIR%/scenes/jp/ja/f60_countryman.xml" />
      <include url="%BASEDIR%/scenes/jp/ja/f54_clubman.xml" />
      <include url="%BASEDIR%/scenes/jp/ja/f57_cabrio.xml" />

      <!-- Brazil (Portuguese) -->
      <include url="%BASEDIR%/scenes/br/pt/f56_hatch.xml" />



    <!-- hotspot hover tooltip styles -->
    <textstyle name="tooltipStyle" devices="desktop"
               font="Arial" fontsize="16" bold="false" italic="false"
               css.html5="font-family: MINISansReg, sans-serif; color: #ffffff; font-weight: normal;"
               background="true" backgroundcolor="0x000000"
               textcolor="0xFFFFFF"
               border="false"
               textalign="center"
               roundedge="0"
               padding="10 20"
               xoffset="0"
               yoffset="-10" />

    <textstyle name="tooltipStyle" devices="mobile"
              font="Arial" fontsize="0" bold="false" italic="false"
              css.html5="display: none;"
              background="false" />

    <!-- <textstyle name="tooltipStyle" devices="mobile"
               fontsize="0" /> -->

    <!-- the action for dragging the hotspot - call it once in the ondown event -->
    <action name="draghotspot">
        spheretoscreen(ath, atv, hotspotcenterx, hotspotcentery, 'l');
        sub(drag_adjustx, mouse.stagex, hotspotcenterx);
        sub(drag_adjusty, mouse.stagey, hotspotcentery);
        asyncloop(pressed,
            sub(dx, mouse.stagex, drag_adjustx);
            sub(dy, mouse.stagey, drag_adjusty);
            screentosphere(dx, dy, ath, atv);
            print_hotspot_pos();
          );
    </action>

    <!-- show the xml code of the hotspot position -->
    <action name="print_hotspot_pos"><![CDATA[
        copy(print_ath, ath);
        copy(print_atv, atv);
        roundval(print_ath, 3);
        roundval(print_atv, 3);
        js(mini.digital.comp.panoramaview.publicFunctions.panoHotspotCoordinates(calc(print_ath), calc(print_atv)))
    ]]></action>


    <!--
        do_crop_animation(framewidth, frameheight, framerate)
        - animation by changing the image cropping
        - parameters:
          - framewidth - the width from one frame in pixels
          - frameheight - the height from one frame in pixels
          - framerate - the animation frame rate in 'frames per second'
        - the image can be a vertical or horizontal (or both) image-strip / sprite-sheet
        - the action will loop automatically through all frames from left to right and top to bottom
        http://krpano.com/viewsource.html?examples/119/examples/animated-hotspots/anihotspots.xml
    -->
    <action name="do_crop_animation">
        <!-- add attributes to the hotspot -->
        registerattribute(xframes, calc((imagewidth / %1) BOR 0));
        registerattribute(yframes, calc((imageheight / %2) BOR 0));
        registerattribute(frames, calc(xframes * yframes));
        registerattribute(frame, 0);

        set(crop, '0|0|%1|%2');

        setinterval(calc('crop_anim_' + name), calc(1.0 / %3),
            if(loaded,
                inc(frame);
                if(frame GE frames, if(onlastframe !== null, onlastframe() ); set(frame,0); );
                mod(xpos, frame, xframes);
                div(ypos, frame, xframes);
                Math.floor(ypos);
                mul(xpos, %1);
                mul(ypos, %2);
                calc(crop, xpos + '|' + ypos + '|%1|%2');
              ,
                clearinterval(calc('crop_anim_' + name));
              );
          );
    </action>

    <action name="remove_editor_hotspot">
        removehotspot('editor_hotspot');
	</action>


    <events onenterfullscreen=""
        onexitfullscreen=""
        onxmlcomplete="js(mini.digital.comp.panoramaview.publicFunctions.onXmlComplete())"
        onpreviewcomplete=""
        onloadcomplete="js(mini.digital.comp.panoramaview.publicFunctions.onLoadComplete())"
        onnewpano="js(mini.digital.comp.panoramaview.publicFunctions.onNewPano())"
        onremovepano=""
        onnewscene="js(mini.digital.comp.panoramaview.publicFunctions.panoEvent('onnewscene'))"
        onloaderror=""
        onkeydown=""
        onkeyup=""
        onmousedown=""
        onmouseup=""
        onmousewheel=""
        onidle=""
        onviewchange=""
        onviewchanged="js(mini.digital.comp.panoramaview.publicFunctions.onViewChanged(calc(view.hlookat), calc(view.vlookat), calc(view.fov)))"
        onresize=""
        onautorotatestart=""
        onautorotatestop=""
        onautorotateoneround=""
        onautorotatechange=""
        />

    <security cors="use-credentials" />

</krpano>