<krpano version="1.16" title="Treatment Rooms" onstart="startup();">

	<include url="skin/vtourskin.xml" />

	<!-- set skin settings: bingmaps? gyro? thumbnails? tooltips? -->
	<!-- replace hotspots name and style to get animated HOTSPOTS - _________ name="hotspot_ani_white" style="hotspot_ani_white" ____________ -->
	<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_2" title="Egg Collection Room" onstart="" thumburl="panos/2.tiles/thumb.jpg" lat="" lng="" heading="">


			<view hlookat="183.739" vlookat="18.915" fovtype="MFOV" fov="81.270" maxpixelzoom="0.7" fovmin="70" fovmax="130" limitview="auto" />
	
			<preview url="panos/2.tiles/preview.jpg" />
	
			<image type="CUBE" multires="true" tilesize="512">
			<level tiledimagewidth="5868" tiledimageheight="5868">
				<cube url="panos/2.tiles/%s/l4/%v/l4_%s_%v_%h.jpg" />
			</level>
			<level tiledimagewidth="2934" tiledimageheight="2934">
				<cube url="panos/2.tiles/%s/l3/%v/l3_%s_%v_%h.jpg" />
			</level>
			<level tiledimagewidth="1468" tiledimageheight="1468">
				<cube url="panos/2.tiles/%s/l2/%v/l2_%s_%v_%h.jpg" />
			</level>
			<level tiledimagewidth="734" tiledimageheight="734">
				<cube url="panos/2.tiles/%s/l1/%v/l1_%s_%v_%h.jpg" />
			</level>
			<mobile>
				<cube url="panos/2.tiles/mobile_%s.jpg" />
			</mobile>
		</image>
	
			<!-- place your scene hotspots here -->
	<!--  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  -->

		
		<hotspot name="hotspot_ani_white4" style="hotspot_ani_white" ath="-130.494" atv="8.724" linkedscene="scene_4" />

	</scene>
	
	

	<scene name="scene_3" title="Embryo Transfer Room " onstart="" thumburl="panos/3.tiles/thumb.jpg" lat="" lng="" heading="">


			<view hlookat="22.312" vlookat="24.765" fovtype="MFOV" fov="86.699" maxpixelzoom="0.7" fovmin="70" fovmax="130" limitview="auto" />
	
			<preview url="panos/3.tiles/preview.jpg" />
	
			<image type="CUBE" multires="true" tilesize="512">
			<level tiledimagewidth="5826" tiledimageheight="5826">
				<cube url="panos/3.tiles/%s/l4/%v/l4_%s_%v_%h.jpg" />
			</level>
			<level tiledimagewidth="2914" tiledimageheight="2914">
				<cube url="panos/3.tiles/%s/l3/%v/l3_%s_%v_%h.jpg" />
			</level>
			<level tiledimagewidth="1458" tiledimageheight="1458">
				<cube url="panos/3.tiles/%s/l2/%v/l2_%s_%v_%h.jpg" />
			</level>
			<level tiledimagewidth="730" tiledimageheight="730">
				<cube url="panos/3.tiles/%s/l1/%v/l1_%s_%v_%h.jpg" />
			</level>
			<mobile>
				<cube url="panos/3.tiles/mobile_%s.jpg" />
			</mobile>
		</image>
	
			<!-- place your scene hotspots here -->
	<!--  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  -->

		<hotspot name="hotspot_ani_white3" style="hotspot_ani_white" ath="48.193" atv="8.284" linkedscene="scene_4" />
		

	</scene>
	
	

	<scene name="scene_4" title="Recovery Room" onstart="" thumburl="panos/4.tiles/thumb.jpg" lat="" lng="" heading="">


			<view hlookat="381.881" vlookat="15.983" fovtype="MFOV" fov="81.270" maxpixelzoom="0.7" fovmin="70" fovmax="130" limitview="auto" />
	
			<preview url="panos/4.tiles/preview.jpg" />
	
			<image type="CUBE" multires="true" tilesize="512">
			<level tiledimagewidth="5836" tiledimageheight="5836">
				<cube url="panos/4.tiles/%s/l4/%v/l4_%s_%v_%h.jpg" />
			</level>
			<level tiledimagewidth="2918" tiledimageheight="2918">
				<cube url="panos/4.tiles/%s/l3/%v/l3_%s_%v_%h.jpg" />
			</level>
			<level tiledimagewidth="1460" tiledimageheight="1460">
				<cube url="panos/4.tiles/%s/l2/%v/l2_%s_%v_%h.jpg" />
			</level>
			<level tiledimagewidth="730" tiledimageheight="730">
				<cube url="panos/4.tiles/%s/l1/%v/l1_%s_%v_%h.jpg" />
			</level>
			<mobile>
				<cube url="panos/4.tiles/mobile_%s.jpg" />
			</mobile>
		</image>
	
			<!-- place your scene hotspots here -->
	<!--  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  -->

		<hotspot name="hotspot_ani_white3" style="hotspot_ani_white" ath="110.672" atv="13.565" linkedscene="scene_3" />
		<hotspot name="hotspot_ani_white4" style="hotspot_ani_white" ath="-108.817" atv="1.295" linkedscene="scene_2" />

	</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>	





</krpano>
