<krpano>
	<!-- global settings for all krpano.com example panoramas -->
	
	<display movequality="LOW" stillquality="HIGHSHARP" />

	<!-- mouse cursor -->
	<control movetocursor="arrow" />
	

	<!-- set DEFAULT showtext style -->
	<textstyle name="DEFAULT" 
		       font="Arial" 
		       fontsize="12" 
		       yoffset="-10"
		       textalign="center"
		       border="false" 
		       background="false" 
		       textcolor="0xFFFFFF" 
		       effect="glow(0x000000,0.7,4,2);dropshadow(2,45,0x000000,3,1);" 
		       />
	
	<!-- logos -->
	<plugin name="krpanologo" 
	        url="%SWFPATH%/krpano_logo.png" 
	        keep="true"
	        align="rightbottom" x="5" y="5"
	        onhover="showtext(go to krpano.com);" 
	        onclick="openurl(http://krpano.com,_self);" 
	        />
	
	<!-- plugins -->
	<plugin name="options"      url="plugins/options.swf"                        keep="true" />
	<plugin name="editor"       url="plugins/editor.swf"                         keep="true" />
	<plugin name="zoombuttons"  url="plugins/zoombuttons.swf"  hoverpos="right"  keep="true" />
	
	
	<!-- right-click context menu to change the viewing settings -->	
	<contextmenu>
		<item caption="KRPANO"     />
		<item caption="FULLSCREEN" />
		<item caption="normal view"        onclick="action(rectview);"          separator="true" />
		<item caption="fisheye view"       onclick="action(fisheyeview);"       />
		<item caption="architectural view" onclick="action(architectural);"     />
		<item caption="stereographic view" onclick="action(stereofisheyeview);" />
		<item caption="little planet view" onclick="action(littleplanet);"      />
	</contextmenu>
	
	<!-- actions for view changing -->
	<action name="rectview">
		tween(view.fovmax,       155.0, distance(179, 0.25), easeoutquad);
		tween(view.architectural,  0.0, distance(1.0, 0.25), easeoutquad);
		tween(view.fisheye,        0.0, distance(1.0, 0.25), easeoutquad, set(view.stereographic,false); );
	</action>
	
	<action name="fisheyeview">
		tween(view.architectural, 0.0, distance(1.0, 0.25), easeoutquad);
		tween(view.fisheye,       0.0 ,distance(1.0, 0.20), easeoutquad,
				set(view.stereographic,false);
				set(view.fovmax,179);
				tween(view.fisheye, 0.35, distance(1.0, 1.25));
			 );
	</action>
	
	<action name="stereofisheyeview">
		tween(view.architectural, 0.0, distance(1.0, 0.25), easeoutquad);
		tween(view.fisheye,       0.0 ,distance(1.0, 0.10), easeoutquad,
				set(view.stereographic,true);
				tween(view.fisheye, 1.0, distance(1.0, 1.25));
				tween(view.fovmax,  150, distance(179, 1.25));
			 );
	</action>
	
	<action name="littleplanet">
		tween(view.architectural, 0.0, distance(1.0, 0.25), easeoutquad);
		tween(view.fisheye,       0.0 ,distance(1.0, 0.10), easeoutquad,
				set(view.stereographic,true);
				tween(view.fisheye, 1.0, distance(1.0, 0.75));
				tween(view.fov,     130, distance(179, 0.75), easeoutquad, set(view.fovmax,150););
				tween(view.vlookat,  90, distance(179, 0.75), easeoutquad);
			 );
	</action>
	
	<action name="architectural">
		tween(view.fovmax,       155.0, distance(179, 0.25), easeoutquad);
		tween(view.architectural,  1.0, distance(1.0, 0.25), easeoutquad);
		tween(view.fisheye,        0.0, distance(1.0, 0.25), easeoutquad, set(view.stereographic,false); );
	</action>


</krpano>