﻿<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<krpano version="1.19" title="Fonsorbes - Ô Coeur de Ville - Appartement T2">
  <include url="skin/vtourskin.xml"/>
  <skin_settings maps="false" maps_type="google" maps_bing_api_key="" maps_google_api_key="" maps_zoombuttons="false" gyro="true" webvr="true" webvr_gyro_keeplookingdirection="false" littleplanetintro="false" title="true" thumbs="true" thumbs_width="120" thumbs_height="80" thumbs_padding="10" thumbs_crop="0|40|240|160" thumbs_opened="false" thumbs_text="true" thumbs_dragging="true" thumbs_onhoverscrolling="false" thumbs_scrollbuttons="false" thumbs_scrollindicator="false" thumbs_loop="false" tooltips_buttons="false" tooltips_thumbs="false" tooltips_hotspots="true" tooltips_mapspots="true" deeplinking="false" loadscene_flags="MERGE" loadscene_blend="OPENBLEND(0.5, 0.0, 0.75, 0.05, linear)" loadscene_blend_prev="SLIDEBLEND(0.5, 180, 0.75, linear)" loadscene_blend_next="SLIDEBLEND(0.5,   0, 0.75, linear)" loadingtext="loading..." layout_width="100%" layout_maxwidth="814" controlbar_width="-24" controlbar_height="40" controlbar_offset="20" controlbar_offset_closed="-40" controlbar_overlap.no-fractionalscaling="10" controlbar_overlap.fractionalscaling="0" design_skin_images="vtourskin.png" design_bgcolor="0x2D3E50" design_bgalpha="0.8" design_bgborder="0" design_bgroundedge="1" design_bgshadow="0 4 10 0x000000 0.3" design_thumbborder_bgborder="3 0xFFFFFF 1.0" design_thumbborder_padding="2" design_thumbborder_bgroundedge="0" design_text_css="color:#FFFFFF; font-family:Arial;" design_text_shadow="1" isVR="false" actualMap="1" numberOfMap="1" numberOfHotspot="7"/>
  <action name="startup" autorun="onstart">
		if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[0].name); );
		loadscene(get(startscene), null, MERGE);
		if(startactions !== null, startactions() );
	</action>
  <action name="LoadMap">for(set(i,1), i LE skin_settings.numberOfHotspot , inc(i),
	txtadd(tmp, "spot", get(i));
	set(baseXML, get(xml.scene));
	set(toSearch, get(layer[get(tmp)].linkedscene));
	toupper(baseXML);
	toupper(toSearch);
	if(toSearch EQ baseXML,
		set(layer[activespot].parent, get(tmp));
		set(parent, get(layer[get(tmp)].parent));
		for(set(j,0), j LT skin_settings.numberOfMap , inc(j),
			txtadd(tmpMap, "Maps000", get(j));
			if(tmpMap == parent,
				set(layer[get(tmpMap)].visible, true);
				set(skin_settings.actualMap, get(j));
			,
				set(layer[get(tmpMap)].visible, false);
			);
			
		);
	);
);</action>
  <action name="mapspot_loadscene">if(layer[Maps].scale GT 0.25,
    set(layer[Maps].enabled, false);
    tween(layer[Maps].alpha, 0.0, 0.25, default,
        loadscene(%1, null, MERGE, BLEND(1));
        set(layer[Maps].onclick, openmap(); );
        layer[Maps].changeorigin(righttop,righttop);
        set(layer[Maps].x, 0);
        set(layer[Maps].y, 0);
        set(layer[Maps].width, 1024);
        set(layer[Maps].scale, 0.25);
        set(events[sceneload].onloadcomplete,delayedcall(1,tween(layer[Maps].alpha, 1.0, 0.5, default, set(layer[Maps].enabled, true); );););
    );
,
    loadscene(%1, null, MERGE, BLEND(1));
    set(layer[activespot].parent, %2);
);
for(set(j,0), j LE skin_settings.numberOfMap , inc(j),
    txtadd(tmpMap, "Maps000" get(j));   
    if(layer[%2].parent EQ tmpMap, 
        set(layer[tmpMap].visible, true);
    ,
        set(layer[tmpMap].visible, false);
    )
);</action>
  <action name="openmap">set(layer[Maps].onclick, closemap(); );
layer[Maps].changeorigin(center,center);
set(bigscale,1); 
if(layer[Maps].imagewidth GT stagewidth, 
    div(bigscale, stagewidth, layer[Maps].imagewidth);
);
tween(layer[Maps].x, 0);
tween(layer[Maps].y, 0);
tween(layer[Maps].width, 2048);
tween(layer[Maps].scale, get(bigscale));</action>
  <action name="closemap">set(layer[Maps].onclick, openmap(); );
layer[Maps].changeorigin(righttop,righttop); 
tween(layer[Maps].x, 0); 
tween(layer[Maps].y, 0);
tween(layer[Maps].width, 1024);
tween(layer[Maps].scale, 0.25);</action>
  <action name="showmap">set(actualVisibility, get(layer[Maps].visible));
if(actualVisibility, 
	set(layer[Maps].visible, false);
	set(layer[PlusMinusMap].crop, "0|320|64|64");
,
	set(layer[Maps].visible, true);
	set(layer[PlusMinusMap].crop, "64|320|64|64");
);</action>
  <scene name="scene_0001" title="Salon" onstart="LoadMap();" havevrimage="true" thumburl="panos/0001.tiles/thumb.jpg" lat="" lng="" heading="">
    <view hlookat="0" vlookat="0" fovtype="MFOV" fov="100" maxpixelzoom="1.0" fovmin="80" fovmax="130" limitview="lookat" vlookatmin="-15" vlookatmax="45" hlookatmin="NaN" hlookatmax="NaN"/>
    <preview url="panos/0001.tiles/preview.jpg"/>
    <image type="CUBE" multires="true" tilesize="512" if="!webvr.isenabled">
      <level tiledimagewidth="2048" tiledimageheight="2048">
        <cube url="panos/0001.tiles/%s/l2/%v/l2_%s_%v_%h.jpg"/>
      </level>
      <level tiledimagewidth="1024" tiledimageheight="1024">
        <cube url="panos/0001.tiles/%s/l1/%v/l1_%s_%v_%h.jpg"/>
      </level>
    </image>
    <image if="webvr.isenabled">
      <cube url="panos/0001.tiles/vr/pano_%s.jpg"/>
    </image>
    <hotspot name="spot0" style="skin_hotspotstyle" ath="-156.483" atv="0.364" linkedscene="scene_0006"/>
    <hotspot name="spot1" style="skin_hotspotstyle" ath="114.104" atv="-0.000" linkedscene="scene_0004"/>
    <hotspot name="spot2" style="skin_hotspotstyle" ath="138.064" atv="2.115" linkedscene="scene_0002"/>
    <hotspot name="spot3" style="skin_hotspotstyle" ath="3.152" atv="-0.081" linkedscene="scene_0007"/>
  </scene>
  <scene name="scene_0002" title="Cuisine" onstart="LoadMap();" havevrimage="true" thumburl="panos/0002.tiles/thumb.jpg" lat="" lng="" heading="">
    <view hlookat="0" vlookat="0" fovtype="MFOV" fov="100" maxpixelzoom="1.0" fovmin="80" fovmax="130" limitview="lookat" vlookatmin="-15" vlookatmax="45" hlookatmin="NaN" hlookatmax="NaN"/>
    <preview url="panos/0002.tiles/preview.jpg"/>
    <image type="CUBE" multires="true" tilesize="512" if="!webvr.isenabled">
      <level tiledimagewidth="2048" tiledimageheight="2048">
        <cube url="panos/0002.tiles/%s/l2/%v/l2_%s_%v_%h.jpg"/>
      </level>
      <level tiledimagewidth="1024" tiledimageheight="1024">
        <cube url="panos/0002.tiles/%s/l1/%v/l1_%s_%v_%h.jpg"/>
      </level>
    </image>
    <image if="webvr.isenabled">
      <cube url="panos/0002.tiles/vr/pano_%s.jpg"/>
    </image>
    <hotspot name="spot0" style="skin_hotspotstyle" ath="125.981" atv="-0.574" linkedscene="scene_0001"/>
  </scene>
  <scene name="scene_0003" title="Chambre 1" onstart="LoadMap();" havevrimage="true" thumburl="panos/0003.tiles/thumb.jpg" lat="" lng="" heading="">
    <view hlookat="0" vlookat="0" fovtype="MFOV" fov="100" maxpixelzoom="1.0" fovmin="80" fovmax="130" limitview="lookat" vlookatmin="-15" vlookatmax="45" hlookatmin="NaN" hlookatmax="NaN"/>
    <preview url="panos/0003.tiles/preview.jpg"/>
    <image type="CUBE" multires="true" tilesize="512" if="!webvr.isenabled">
      <level tiledimagewidth="2048" tiledimageheight="2048">
        <cube url="panos/0003.tiles/%s/l2/%v/l2_%s_%v_%h.jpg"/>
      </level>
      <level tiledimagewidth="1024" tiledimageheight="1024">
        <cube url="panos/0003.tiles/%s/l1/%v/l1_%s_%v_%h.jpg"/>
      </level>
    </image>
    <image if="webvr.isenabled">
      <cube url="panos/0003.tiles/vr/pano_%s.jpg"/>
    </image>
    <hotspot name="spot0" style="skin_hotspotstyle" ath="-237.185397" atv="-0.000041" linkedscene="scene_0004"/>
  </scene>
  <scene name="scene_0004" title="Couloir" onstart="LoadMap();" havevrimage="true" thumburl="panos/0004.tiles/thumb.jpg" lat="" lng="" heading="">
    <view hlookat="0" vlookat="0" fovtype="MFOV" fov="100" maxpixelzoom="1.0" fovmin="80" fovmax="130" limitview="lookat" vlookatmin="-15" vlookatmax="45" hlookatmin="NaN" hlookatmax="NaN"/>
    <preview url="panos/0004.tiles/preview.jpg"/>
    <image type="CUBE" multires="true" tilesize="512" if="!webvr.isenabled">
      <level tiledimagewidth="2048" tiledimageheight="2048">
        <cube url="panos/0004.tiles/%s/l2/%v/l2_%s_%v_%h.jpg"/>
      </level>
      <level tiledimagewidth="1024" tiledimageheight="1024">
        <cube url="panos/0004.tiles/%s/l1/%v/l1_%s_%v_%h.jpg"/>
      </level>
    </image>
    <image if="webvr.isenabled">
      <cube url="panos/0004.tiles/vr/pano_%s.jpg"/>
    </image>
    <hotspot name="spot0" style="skin_hotspotstyle" ath="84.603" atv="0.070" linkedscene="scene_0005"/>
    <hotspot name="spot1" style="skin_hotspotstyle" ath="19.078" atv="0.000" linkedscene="scene_0003"/>
    <hotspot name="spot2" style="skin_hotspotstyle" ath="-21.328" atv="0.066" linkedscene="scene_0001"/>
  </scene>
  <scene name="scene_0005" title="Salle de Bain" onstart="LoadMap();" havevrimage="true" thumburl="panos/0005.tiles/thumb.jpg" lat="" lng="" heading="">
    <view hlookat="0" vlookat="0" fovtype="MFOV" fov="100" maxpixelzoom="1.0" fovmin="80" fovmax="130" limitview="lookat" vlookatmin="-15" vlookatmax="45" hlookatmin="NaN" hlookatmax="NaN"/>
    <preview url="panos/0005.tiles/preview.jpg"/>
    <image type="CUBE" multires="true" tilesize="512" if="!webvr.isenabled">
      <level tiledimagewidth="2048" tiledimageheight="2048">
        <cube url="panos/0005.tiles/%s/l2/%v/l2_%s_%v_%h.jpg"/>
      </level>
      <level tiledimagewidth="1024" tiledimageheight="1024">
        <cube url="panos/0005.tiles/%s/l1/%v/l1_%s_%v_%h.jpg"/>
      </level>
    </image>
    <image if="webvr.isenabled">
      <cube url="panos/0005.tiles/vr/pano_%s.jpg"/>
    </image>
    <hotspot name="spot0" style="skin_hotspotstyle" ath="-226.685229" atv="-0.000027" linkedscene="scene_0004"/>
  </scene>
  <scene name="scene_0006" title="Entrée" onstart="LoadMap();" havevrimage="true" thumburl="panos/0006.tiles/thumb.jpg" lat="" lng="" heading="">
    <view hlookat="0" vlookat="0" fovtype="MFOV" fov="100" maxpixelzoom="1.0" fovmin="80" fovmax="130" limitview="lookat" vlookatmin="-15" vlookatmax="45" hlookatmin="NaN" hlookatmax="NaN"/>
    <preview url="panos/0006.tiles/preview.jpg"/>
    <image type="CUBE" multires="true" tilesize="512" if="!webvr.isenabled">
      <level tiledimagewidth="2048" tiledimageheight="2048">
        <cube url="panos/0006.tiles/%s/l2/%v/l2_%s_%v_%h.jpg"/>
      </level>
      <level tiledimagewidth="1024" tiledimageheight="1024">
        <cube url="panos/0006.tiles/%s/l1/%v/l1_%s_%v_%h.jpg"/>
      </level>
    </image>
    <image if="webvr.isenabled">
      <cube url="panos/0006.tiles/vr/pano_%s.jpg"/>
    </image>
    <hotspot name="spot0" style="skin_hotspotstyle" ath="16.208" atv="-0.279" linkedscene="scene_0001"/>
  </scene>
  <scene name="scene_0007" title="Terrasse" onstart="LoadMap();" havevrimage="true" thumburl="panos/0007.tiles/thumb.jpg" lat="" lng="" heading="">
    <view hlookat="0" vlookat="0" fovtype="MFOV" fov="100" maxpixelzoom="1.0" fovmin="80" fovmax="130" limitview="lookat" vlookatmin="-15" vlookatmax="45" hlookatmin="NaN" hlookatmax="NaN"/>
    <preview url="panos/0007.tiles/preview.jpg"/>
    <image type="CUBE" multires="true" tilesize="512" if="!webvr.isenabled">
      <level tiledimagewidth="2048" tiledimageheight="2048">
        <cube url="panos/0007.tiles/%s/l2/%v/l2_%s_%v_%h.jpg"/>
      </level>
      <level tiledimagewidth="1024" tiledimageheight="1024">
        <cube url="panos/0007.tiles/%s/l1/%v/l1_%s_%v_%h.jpg"/>
      </level>
    </image>
    <image if="webvr.isenabled">
      <cube url="panos/0007.tiles/vr/pano_%s.jpg"/>
    </image>
    <hotspot name="spot0" style="skin_hotspotstyle" ath="171.724" atv="-0.515" linkedscene="scene_0001"/>
  </scene>
  <autorotate enabled="true"/>
  <layer name="Maps" type="container" keep="true" handcursor="false" capture="false" align="righttop" width="1024" height="1024" x="0" y="0" scale=".25" scalechildren="true" onclick="openmap();" bgcapture="true" zorder="10"/>
  <layer name="Maps0001" url="skin/Maps0001.png" parent="Maps" keep="true" handcursor="false" capture="false" scalechildren="true" scale=".9" align="top"/>
  <layer name="activespot" keep="true" url="skin/vtourskin_mapspot.png" parent="spot1" align="lefttop" zorder="2"/>
  <layer name="PlusMinusMap" keep="true" url="%CURRENTXML%/skin/vtourskin.png" align="righttop" crop="64|320|64|64" scale=".5" onclick="showmap();" zorder="12"/>
  <layer name="spot1" keep="true" url="skin/vtourskin_mapspotactive.png" parent="Maps0001" align="lefttop" edge="bottom" x="517.52197265625" y="825.4104156494141" zorder="1" linkedscene="scene_0001" onclick="mapspot_loadscene(scene_0001, spot1);" tooltip="" onloaded="if(skin_settings.tooltips_mapspots, if(linkedscene, copy(tooltip,scene[get(linkedscene)].title); loadstyle(skin_tooltips); ));"/>
  <layer name="spot2" keep="true" url="skin/vtourskin_mapspotactive.png" parent="Maps0001" align="lefttop" edge="bottom" x="464.75445556640625" y="616.0894775390625" zorder="1" linkedscene="scene_0002" onclick="mapspot_loadscene(scene_0002, spot2);" tooltip="" onloaded="if(skin_settings.tooltips_mapspots, if(linkedscene, copy(tooltip,scene[get(linkedscene)].title); loadstyle(skin_tooltips); ));"/>
  <layer name="spot3" keep="true" url="skin/vtourskin_mapspotactive.png" parent="Maps0001" align="lefttop" edge="bottom" x="651.1697998046875" y="313.3507080078125" zorder="1" linkedscene="scene_0003" onclick="mapspot_loadscene(scene_0003, spot3);" tooltip="" onloaded="if(skin_settings.tooltips_mapspots, if(linkedscene, copy(tooltip,scene[get(linkedscene)].title); loadstyle(skin_tooltips); ));"/>
  <layer name="spot4" keep="true" url="skin/vtourskin_mapspotactive.png" parent="Maps0001" align="lefttop" edge="bottom" x="864.8804931640625" y="374.5086669921875" zorder="1" linkedscene="scene_0004" onclick="mapspot_loadscene(scene_0004, spot4);" tooltip="" onloaded="if(skin_settings.tooltips_mapspots, if(linkedscene, copy(tooltip,scene[get(linkedscene)].title); loadstyle(skin_tooltips); ));"/>
  <layer name="spot5" keep="true" url="skin/vtourskin_mapspotactive.png" parent="Maps0001" align="lefttop" edge="bottom" x="833.637451171875" y="255.90887451171875" zorder="1" linkedscene="scene_0005" onclick="mapspot_loadscene(scene_0005, spot5);" tooltip="" onloaded="if(skin_settings.tooltips_mapspots, if(linkedscene, copy(tooltip,scene[get(linkedscene)].title); loadstyle(skin_tooltips); ));"/>
  <layer name="spot6" keep="true" url="skin/vtourskin_mapspotactive.png" parent="Maps0001" align="lefttop" edge="bottom" x="697.301025390625" y="899.0551528930664" zorder="1" linkedscene="scene_0006" onclick="mapspot_loadscene(scene_0006, spot6);" tooltip="" onloaded="if(skin_settings.tooltips_mapspots, if(linkedscene, copy(tooltip,scene[get(linkedscene)].title); loadstyle(skin_tooltips); ));"/>
  <layer name="spot7" keep="true" url="skin/vtourskin_mapspotactive.png" parent="Maps0001" align="lefttop" edge="bottom" x="100.301025390625" y="825.4104156494141" zorder="1" linkedscene="scene_0007" onclick="mapspot_loadscene(scene_0007, spot7);" tooltip="" onloaded="if(skin_settings.tooltips_mapspots, if(linkedscene, copy(tooltip,scene[get(linkedscene)].title); loadstyle(skin_tooltips); ));"/>
  <style name="mapspot1" keep="true" url="skin/vtourskin_mapspotactive.png" parent="Maps0001" align="lefttop" edge="center" scale.mobile="2" onover="copy(layer[skin_tooltip].html, tooltip); set(layer[skin_tooltip].visible, true); tween(layer[skin_tooltip].alpha, 1.0, 0.1); asyncloop(hovering, copy(layer[skin_tooltip].x,mouse.stagex); copy(layer[skin_tooltip].y,mouse.stagey); );" onout="tween(layer[skin_tooltip].alpha, 0.0, 0.1, default, set(layer[skin_tooltip].visible,false), copy(layer[skin_tooltip].x,mouse.stagex); copy(layer[skin_tooltip].y,mouse.stagey); );"/>
</krpano>