<krpano version="1.18" title="Merrion Fertility Clinic" onstart="startup();">

	<include url="skin/vtourskin.xml" />

	<!-- set skin settings: bingmaps? gyro? thumbnails? tooltips? -->
	<skin_settings maps="false"
	               maps_type="bing"
	               maps_bing_api_key=""
	               maps_zoombuttons="false"
	               gyro="true"
	               title="true"
	               thumbs="true"
	               thumbs_width="120" thumbs_height="80" thumbs_padding="10" thumbs_crop="0|40|240|160"
	               thumbs_opened="false"
	               thumbs_text="false"
	               thumbs_dragging="true"
	               thumbs_onhoverscrolling="false"
	               thumbs_scrollbuttons="false"
	               thumbs_scrollindicator="false"
	               thumbs_loop="false"
	               tooltips_thumbs="false"
	               tooltips_hotspots="false"
	               tooltips_mapspots="false"
	               loadscene_flags="MERGE"
	               loadscene_blend="BLEND(0.5)"
	               controlbar_offset="20"
	               />

	<!-- set optional skin logo url -->
	<layer name="skin_logo" url="" scale="0.25" opened_onclick="openurl('...',_blank);" />


	<action name="startup">
		if(startscene === null, copy(startscene,scene[0].name));
		loadscene(get(startscene), null, MERGE);
	</action>

	
	<scene name="scene_1" title="Main Entrance" onstart="" thumburl="panos/1.tiles/thumb.jpg" lat="" lng="" heading="">

		<view hlookat="-469.954" vlookat="-10.539" fovtype="MFOV" fov="100.000" maxpixelzoom="0.7" fovmin="70" fovmax="100" limitview="auto" />

		<preview url="panos/1.tiles/preview.jpg" />

		<image type="CUBE" multires="true" tilesize="512">
			<level tiledimagewidth="5094" tiledimageheight="5094">
				<cube url="panos/1.tiles/%s/l4/%0v/l4_%s_%0v_%0h.jpg" />
			</level>
			<level tiledimagewidth="2560" tiledimageheight="2560">
				<cube url="panos/1.tiles/%s/l3/%0v/l3_%s_%0v_%0h.jpg" />
			</level>
			<level tiledimagewidth="1280" tiledimageheight="1280">
				<cube url="panos/1.tiles/%s/l2/%0v/l2_%s_%0v_%0h.jpg" />
			</level>
			<level tiledimagewidth="640" tiledimageheight="640">
				<cube url="panos/1.tiles/%s/l1/%0v/l1_%s_%0v_%0h.jpg" />
			</level>
			<mobile>
				<cube url="panos/1.tiles/mobile_%s.jpg" />
			</mobile>
		</image>

		<!-- place your scene hotspots here -->

		<hotspot name="spot1" style="hotspot_ani_white" ath="-106.534" atv="-6.811"  onclick="looktohotspot(get(name)); loadscene('scene_2',null,MERGE,BLEND(1));" />

<!--  Logo Starts  -->
<!--  Events - update logo rotation with pano rotation  -->
		<events name="nadirlogorotation"
	        onviewchange="if(hotspot[spot].rotatewithview, set(hotspot[spot].rotate,get(view.hlookat)) );"
	        />
		
    <hotspot name="spot"
             url="img_assetsP/50hzlogo.png"
             distorted="true"
             ath="0.000"
             atv="90.000"
             scale="0.5"
             rx="0" ry="0" rz="0"
             zorder="1"
	     rotatewithview="true"
             onover="set(hotspot[spot_over].visible,true); tween(hotspot[spot_over].alpha,1,0.5,default);"
             onout="tween(hotspot[spot_over].alpha,0,0.5,default, set(hotspot[spot_over].visible,false));"
             onclick="looktohotspot(get(name), 60); openurl(http://www.50hzphotography.ie/virtual-tour-dublin/,_blank)/>;"
             />

<!--  events - update logo rotation with pano rotation  -->
		<events name="nadirlogorotation2"
	        onviewchange="if(hotspot[spot_over].rotatewithview, set(hotspot[spot_over].rotate,get(view.hlookat)) );"
	        />
		
    <hotspot name="spot_over"
             url="img_assetsP/50hzlogo2.png"
             zorder="2"
	     rotatewithview="true"
             visible="false"
             enabled="false"
             alpha="0"
             onloaded="copyhotspotsettingsfrom(spot);"
             />          
             
    <action name="copyhotspotsettingsfrom">
        copy(distorted, hotspot[%1].distorted);
        copy(ath, hotspot[%1].ath);
        copy(atv, hotspot[%1].atv);
        copy(scale, hotspot[%1].scale);
        copy(rx, hotspot[%1].rx);
        copy(ry, hotspot[%1].ry);
        copy(rz, hotspot[%1].rz);
    </action>	
<!--  Logo Ends  -->


	</scene>

	<scene name="scene_2" title="Reception" onstart="" thumburl="panos/2.tiles/thumb.jpg" lat="" lng="" heading="">

		<view hlookat="0.737" vlookat="15.282" fovtype="MFOV" fov="98.495" maxpixelzoom="0.7" fovmin="70" fovmax="100" limitview="auto" />

		<preview url="panos/2.tiles/preview.jpg" />

		<image type="CUBE" multires="true" tilesize="512">
			<level tiledimagewidth="5094" tiledimageheight="5094">
				<cube url="panos/2.tiles/%s/l4/%0v/l4_%s_%0v_%0h.jpg" />
			</level>
			<level tiledimagewidth="2560" tiledimageheight="2560">
				<cube url="panos/2.tiles/%s/l3/%0v/l3_%s_%0v_%0h.jpg" />
			</level>
			<level tiledimagewidth="1280" tiledimageheight="1280">
				<cube url="panos/2.tiles/%s/l2/%0v/l2_%s_%0v_%0h.jpg" />
			</level>
			<level tiledimagewidth="640" tiledimageheight="640">
				<cube url="panos/2.tiles/%s/l1/%0v/l1_%s_%0v_%0h.jpg" />
			</level>
			<mobile>
				<cube url="panos/2.tiles/mobile_%s.jpg" />
			</mobile>
		</image>

		<!-- place your scene hotspots here -->
		<hotspot name="spot1" style="hotspot_ani_white" ath="-122.833" atv="15.351"  onclick="looktohotspot(get(name)); loadscene('scene_3',null,MERGE,BLEND(1));" />
		<hotspot name="spot2" style="hotspot_ani_white" ath="132.031" atv="16.885"  onclick="looktohotspot(get(name)); loadscene('scene_1',null,MERGE,BLEND(1));" />
	<!-- autorotate -->
	<autorotate enabled="true"
            waittime="0"
            speed="-5.0"
	    accel="0.8"
            />

	    
<!--  Logo Starts  -->
<!--  Events - update logo rotation with pano rotation  -->
		<events name="nadirlogorotation"
	        onviewchange="if(hotspot[spot].rotatewithview, set(hotspot[spot].rotate,get(view.hlookat)) );"
	        />
		
    <hotspot name="spot"
             url="img_assetsP/50hzlogo.png"
             distorted="true"
             ath="0.000"
             atv="90.000"
             scale="0.5"
             rx="0" ry="0" rz="0"
             zorder="1"
	     rotatewithview="true"
             onover="set(hotspot[spot_over].visible,true); tween(hotspot[spot_over].alpha,1,0.5,default);"
             onout="tween(hotspot[spot_over].alpha,0,0.5,default, set(hotspot[spot_over].visible,false));"
             onclick="looktohotspot(get(name), 60); openurl(http://www.50hzphotography.ie/virtual-tour-dublin/,_blank)/>;"
             />

<!--  events - update logo rotation with pano rotation  -->
		<events name="nadirlogorotation2"
	        onviewchange="if(hotspot[spot_over].rotatewithview, set(hotspot[spot_over].rotate,get(view.hlookat)) );"
	        />
		
    <hotspot name="spot_over"
             url="img_assetsP/50hzlogo2.png"
             zorder="2"
	     rotatewithview="true"
             visible="false"
             enabled="false"
             alpha="0"
             onloaded="copyhotspotsettingsfrom(spot);"
             />          
             
    <action name="copyhotspotsettingsfrom">
        copy(distorted, hotspot[%1].distorted);
        copy(ath, hotspot[%1].ath);
        copy(atv, hotspot[%1].atv);
        copy(scale, hotspot[%1].scale);
        copy(rx, hotspot[%1].rx);
        copy(ry, hotspot[%1].ry);
        copy(rz, hotspot[%1].rz);
    </action>	
<!--  Logo Ends  -->

	</scene>

	<scene name="scene_3" title="MFC Reception" onstart="" thumburl="panos/3.tiles/thumb.jpg" lat="" lng="" heading="">

		<view hlookat="7.036" vlookat="0.855" fovtype="MFOV" fov="98.495" maxpixelzoom="0.7" fovmin="70" fovmax="100" limitview="auto" />

		<preview url="panos/3.tiles/preview.jpg" />

		<image type="CUBE" multires="true" tilesize="512">
			<level tiledimagewidth="5094" tiledimageheight="5094">
				<cube url="panos/3.tiles/%s/l4/%0v/l4_%s_%0v_%0h.jpg" />
			</level>
			<level tiledimagewidth="2560" tiledimageheight="2560">
				<cube url="panos/3.tiles/%s/l3/%0v/l3_%s_%0v_%0h.jpg" />
			</level>
			<level tiledimagewidth="1280" tiledimageheight="1280">
				<cube url="panos/3.tiles/%s/l2/%0v/l2_%s_%0v_%0h.jpg" />
			</level>
			<level tiledimagewidth="640" tiledimageheight="640">
				<cube url="panos/3.tiles/%s/l1/%0v/l1_%s_%0v_%0h.jpg" />
			</level>
			<mobile>
				<cube url="panos/3.tiles/mobile_%s.jpg" />
			</mobile>
		</image>

		<!-- place your scene hotspots here -->
		
		<hotspot name="spot1" style="hotspot_ani_white" ath="-72.880" atv="30.951"  onclick="looktohotspot(get(name)); loadscene('scene_4',null,MERGE,BLEND(1));" />
		<hotspot name="spot2" style="hotspot_ani_white" ath="84.060" atv="23.183"  onclick="looktohotspot(get(name)); loadscene('scene_2',null,MERGE,BLEND(1));" />
	<!-- autorotate -->
	<autorotate enabled="true"
            waittime="0"
            speed="-5.0"
	    accel="0.8"
            />

<!--  Logo Starts  -->
<!--  Events - update logo rotation with pano rotation  -->
		<events name="nadirlogorotation"
	        onviewchange="if(hotspot[spot].rotatewithview, set(hotspot[spot].rotate,get(view.hlookat)) );"
	        />
		
    <hotspot name="spot"
             url="img_assetsP/50hzlogo.png"
             distorted="true"
             ath="0.000"
             atv="90.000"
             scale="0.5"
             rx="0" ry="0" rz="0"
             zorder="1"
	     rotatewithview="true"
             onover="set(hotspot[spot_over].visible,true); tween(hotspot[spot_over].alpha,1,0.5,default);"
             onout="tween(hotspot[spot_over].alpha,0,0.5,default, set(hotspot[spot_over].visible,false));"
             onclick="looktohotspot(get(name), 60); openurl(http://www.50hzphotography.ie/virtual-tour-dublin/,_blank)/>;"
             />

<!--  events - update logo rotation with pano rotation  -->
		<events name="nadirlogorotation2"
	        onviewchange="if(hotspot[spot_over].rotatewithview, set(hotspot[spot_over].rotate,get(view.hlookat)) );"
	        />
		
    <hotspot name="spot_over"
             url="img_assetsP/50hzlogo2.png"
             zorder="2"
	     rotatewithview="true"
             visible="false"
             enabled="false"
             alpha="0"
             onloaded="copyhotspotsettingsfrom(spot);"
             />          
             
    <action name="copyhotspotsettingsfrom">
        copy(distorted, hotspot[%1].distorted);
        copy(ath, hotspot[%1].ath);
        copy(atv, hotspot[%1].atv);
        copy(scale, hotspot[%1].scale);
        copy(rx, hotspot[%1].rx);
        copy(ry, hotspot[%1].ry);
        copy(rz, hotspot[%1].rz);
    </action>	
<!--  Logo Ends  -->	    

	</scene>

	<scene name="scene_4" title="Waiting Room" onstart="" thumburl="panos/4.tiles/thumb.jpg" lat="" lng="" heading="">

		<view hlookat="-151.258" vlookat="10.441" fovtype="MFOV" fov="98.495" maxpixelzoom="0.7" fovmin="70" fovmax="100" limitview="auto" />

		<preview url="panos/4.tiles/preview.jpg" />

		<image type="CUBE" multires="true" tilesize="512">
			<level tiledimagewidth="5094" tiledimageheight="5094">
				<cube url="panos/4.tiles/%s/l4/%0v/l4_%s_%0v_%0h.jpg" />
			</level>
			<level tiledimagewidth="2560" tiledimageheight="2560">
				<cube url="panos/4.tiles/%s/l3/%0v/l3_%s_%0v_%0h.jpg" />
			</level>
			<level tiledimagewidth="1280" tiledimageheight="1280">
				<cube url="panos/4.tiles/%s/l2/%0v/l2_%s_%0v_%0h.jpg" />
			</level>
			<level tiledimagewidth="640" tiledimageheight="640">
				<cube url="panos/4.tiles/%s/l1/%0v/l1_%s_%0v_%0h.jpg" />
			</level>
			<mobile>
				<cube url="panos/4.tiles/mobile_%s.jpg" />
			</mobile>
		</image>

		<!-- place your scene hotspots here -->
		
		<hotspot name="spot1" style="hotspot_ani_white" ath="130.479" atv="6.991"  onclick="looktohotspot(get(name)); loadscene('scene_5',null,MERGE,BLEND(1));" />
		<hotspot name="spot2" style="hotspot_ani_white" ath="-2.824" atv="28.577"  onclick="looktohotspot(get(name)); loadscene('scene_3',null,MERGE,BLEND(1));" />

	<!-- autorotate -->
	<autorotate enabled="true"
            waittime="0"
            speed="-5.0"
	    accel="0.8"
            />

<!--  Logo Starts  -->
<!--  Events - update logo rotation with pano rotation  -->
		<events name="nadirlogorotation"
	        onviewchange="if(hotspot[spot].rotatewithview, set(hotspot[spot].rotate,get(view.hlookat)) );"
	        />
		
    <hotspot name="spot"
             url="img_assetsP/50hzlogo.png"
             distorted="true"
             ath="0.000"
             atv="90.000"
             scale="0.5"
             rx="0" ry="0" rz="0"
             zorder="1"
	     rotatewithview="true"
             onover="set(hotspot[spot_over].visible,true); tween(hotspot[spot_over].alpha,1,0.5,default);"
             onout="tween(hotspot[spot_over].alpha,0,0.5,default, set(hotspot[spot_over].visible,false));"
             onclick="looktohotspot(get(name), 60); openurl(http://www.50hzphotography.ie/virtual-tour-dublin/,_blank)/>;"
             />

<!--  events - update logo rotation with pano rotation  -->
		<events name="nadirlogorotation2"
	        onviewchange="if(hotspot[spot_over].rotatewithview, set(hotspot[spot_over].rotate,get(view.hlookat)) );"
	        />
		
    <hotspot name="spot_over"
             url="img_assetsP/50hzlogo2.png"
             zorder="2"
	     rotatewithview="true"
             visible="false"
             enabled="false"
             alpha="0"
             onloaded="copyhotspotsettingsfrom(spot);"
             />          
             
    <action name="copyhotspotsettingsfrom">
        copy(distorted, hotspot[%1].distorted);
        copy(ath, hotspot[%1].ath);
        copy(atv, hotspot[%1].atv);
        copy(scale, hotspot[%1].scale);
        copy(rx, hotspot[%1].rx);
        copy(ry, hotspot[%1].ry);
        copy(rz, hotspot[%1].rz);
    </action>	
<!--  Logo Ends  -->
	    
	</scene>

	<scene name="scene_5" title="Consulting Room" onstart="" thumburl="panos/5.tiles/thumb.jpg" lat="" lng="" heading="">

		<view hlookat="-213.909" vlookat="24.124" fovtype="MFOV" fov="100.000" maxpixelzoom="0.7" fovmin="70" fovmax="100" limitview="auto" />

		<preview url="panos/5.tiles/preview.jpg" />

		<image type="CUBE" multires="true" tilesize="512">
			<level tiledimagewidth="5094" tiledimageheight="5094">
				<cube url="panos/5.tiles/%s/l4/%0v/l4_%s_%0v_%0h.jpg" />
			</level>
			<level tiledimagewidth="2560" tiledimageheight="2560">
				<cube url="panos/5.tiles/%s/l3/%0v/l3_%s_%0v_%0h.jpg" />
			</level>
			<level tiledimagewidth="1280" tiledimageheight="1280">
				<cube url="panos/5.tiles/%s/l2/%0v/l2_%s_%0v_%0h.jpg" />
			</level>
			<level tiledimagewidth="640" tiledimageheight="640">
				<cube url="panos/5.tiles/%s/l1/%0v/l1_%s_%0v_%0h.jpg" />
			</level>
			<mobile>
				<cube url="panos/5.tiles/mobile_%s.jpg" />
			</mobile>
		</image>

		<!-- place your scene hotspots here -->xx
		<hotspot name="spot1" style="hotspot_ani_white" ath="-165.011" atv="26.599"  onclick="looktohotspot(get(name)); loadscene('scene_4',null,MERGE,BLEND(1));" />
	<!-- autorotate -->
	<autorotate enabled="true"
            waittime=""
            speed="5.0"
	    accel="0.8"
            />
<!--  Logo Starts  -->
<!--  Events - update logo rotation with pano rotation  -->
		<events name="nadirlogorotation"
	        onviewchange="if(hotspot[spot].rotatewithview, set(hotspot[spot].rotate,get(view.hlookat)) );"
	        />
		
    <hotspot name="spot"
             url="img_assetsP/50hzlogo.png"
             distorted="true"
             ath="0.000"
             atv="90.000"
             scale="0.5"
             rx="0" ry="0" rz="0"
             zorder="1"
	     rotatewithview="true"
             onover="set(hotspot[spot_over].visible,true); tween(hotspot[spot_over].alpha,1,0.5,default);"
             onout="tween(hotspot[spot_over].alpha,0,0.5,default, set(hotspot[spot_over].visible,false));"
             onclick="looktohotspot(get(name), 60); openurl(http://www.50hzphotography.ie/virtual-tour-dublin/,_blank)/>;"
             />

<!--  events - update logo rotation with pano rotation  -->
		<events name="nadirlogorotation2"
	        onviewchange="if(hotspot[spot_over].rotatewithview, set(hotspot[spot_over].rotate,get(view.hlookat)) );"
	        />
		
    <hotspot name="spot_over"
             url="img_assetsP/50hzlogo2.png"
             zorder="2"
	     rotatewithview="true"
             visible="false"
             enabled="false"
             alpha="0"
             onloaded="copyhotspotsettingsfrom(spot);"
             />          
             
    <action name="copyhotspotsettingsfrom">
        copy(distorted, hotspot[%1].distorted);
        copy(ath, hotspot[%1].ath);
        copy(atv, hotspot[%1].atv);
        copy(scale, hotspot[%1].scale);
        copy(rx, hotspot[%1].rx);
        copy(ry, hotspot[%1].ry);
        copy(rz, hotspot[%1].rz);
    </action>	
<!--  Logo Ends  -->
	    
	</scene>

	
	
	
	<!-- hotspot style predefines - black hotspot -->
	<style name="hotspot_ani_black"
	       url="img_assetsP/hotspot_ani_black_64x64x20.png"
	       crop="0|0|64|64"
	       framewidth="64" frameheight="64" frame="0" lastframe="19"
	       onloaded="hotspot_animate();"
	       />
	<!-- hotspot style predefines - white hotspot -->
	<style name="hotspot_ani_white"
	       url="img_assetsP/hotspot_ani_white_64x64x20.png"
	       crop="0|0|64|64"
	       framewidth="64" frameheight="64" frame="0" lastframe="19"
	       onloaded="hotspot_animate();"
	       />
	<!-- hotspot animation action -->
	<action name="hotspot_animate">
		inc(frame,1,get(lastframe),0);
		mul(ypos,frame,frameheight);
		txtadd(crop,'0|',get(ypos),'|',get(framewidth),'|',get(frameheight));
		delayedcall(0.03, if(loaded, hotspot_animate() ) );
	</action>


	<!-- animated cursor -->
	<!--<events onxmlcomplete="action(qtvrcursor);" />-->

	<!--<action name="qtvrcursor">-->
		<!--set(control.mousetype, moveto);-->
		<!--set(cursors.url,  skin/qtvr-cursors.png);-->
		<!--set(cursors.type, 8way);-->
		<!--set(cursors.move,       0|0|16|16);-->
		<!--set(cursors.drag,      16|0|16|16);-->
		<!--set(cursors.arrow_u,   32|0|16|16);-->
		<!--set(cursors.arrow_d,   48|0|16|16);-->
		<!--set(cursors.arrow_l,   64|0|16|16);-->
		<!--set(cursors.arrow_r,   80|0|16|16);-->
		<!--set(cursors.arrow_lu,  96|0|16|16);-->
		<!--set(cursors.arrow_ru, 112|0|16|16);-->
		<!--set(cursors.arrow_rd, 128|0|16|16);-->
		<!--set(cursors.arrow_ld, 144|0|16|16);-->
	<!--</action>-->
	
</krpano>
