<krpano version="1.16" title="Laboratory"  showerrors="false" onstart="startup();  playsound(bgsnd, 'audioP/music.mp3|music.wav', 0);">

	<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_1" title="" onstart="" thumburl="panos/1.tiles/thumb.jpg" lat="" lng="" heading="">


			<view hlookat="-147.959" vlookat="16.233" fovtype="MFOV" fov="105.000" maxpixelzoom="0.7" fovmin="70" fovmax="130" limitview="auto" />
	
			<preview url="panos/1.tiles/preview.jpg" />
	
			<image type="CUBE" multires="true" tilesize="512">
			<level tiledimagewidth="5848" tiledimageheight="5848">
				<cube url="panos/1.tiles/%s/l4/%v/l4_%s_%v_%h.jpg" />
			</level>
			<level tiledimagewidth="2924" tiledimageheight="2924">
				<cube url="panos/1.tiles/%s/l3/%v/l3_%s_%v_%h.jpg" />
			</level>
			<level tiledimagewidth="1462" tiledimageheight="1462">
				<cube url="panos/1.tiles/%s/l2/%v/l2_%s_%v_%h.jpg" />
			</level>
			<level tiledimagewidth="732" tiledimageheight="732">
				<cube url="panos/1.tiles/%s/l1/%v/l1_%s_%v_%h.jpg" />
			</level>
			<mobile>
				<cube url="panos/1.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  -->


		

	</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>
