﻿<krpano>

	<!-- looking direction -->
	<view fov="90" fovmax="130" hlookat="-50" vlookat="-3" />

	<!-- pano -->
	<preview url="preview.jpg" />
	<image>
		<cube url="pano_%s.jpg" />
	</image>

	<!-- load the soundinterface plugin -->
	<plugin name="soundinterface"
	        url.flash="%VIEWER%/plugins/soundinterface.swf"
	        url.html5="%VIEWER%/plugins/soundinterface.js"
	        rootpath=""
	        preload="true"
	        keep="true"
	        />

	<!-- start playing the sound -->
	<events name="currentpano"
	        onnewpano="playsound(bgsnd, 'https://krpano.com/panos/xmas/ding_dong_merrily_on_high.mp3|https://krpano.com/panos/xmas/ding_dong_merrily_on_high.ogg', 0);"
	        onremovepano="stopsound(bgsnd);"
	        />

	<!-- a button to pause/play the sound -->
	<layer name="snd" url="soundonoff.png" align="leftbottom" x="10" y="10" alpha="0.25" scale="0.5" onover="tween(alpha,1);" onout="tween(alpha,0.25);"
	       crop="0|0|50|50"
	       onclick="pausesoundtoggle(bgsnd); switch(crop, 0|0|50|50, 0|50|50|50);"
	       />

</krpano>
