<krpano version="1.0.8" onstart="action(loadpano1);">

	<progress showload="none" showwait="none" />
	<view fisheye="0" fovmax="140" />

	<include url="%SWFPATH%/global.xml" />
	
	
	<!-- darkmask -->
	<plugin name="mask" devices="flash" url="darkmask.jpg" blendmode="multiply" align="lefttop" width="100%" height="100%" enabled="false" zorder="-1" />
	
	<action name="nomask">
		set(plugin[mask].visible,false);
	</action>
	
	<action name="setmask">
		if(isflash,
			set(plugin[mask].visible,true);
			set(plugin[mask].url,%1.jpg);
			set(plugin[mask].blendmode,%2);
		);
	</action>
	
	<plugin name="nomask_button"
	        url="%SWFPATH%/plugins/textfield.swf"
	        html="[p]No Mask[/p]"
	        css="p{color:#FFFFFF; font-family:Arial; font-size:14; margin-left:5; margin-right:5; text-align:center; }"
	        keep="true"
	        children="false"
	        visible="false"
	        width="100"
	        height="22"
	        backgroundcolor="0x000000"
	        roundedge="5"
	        shadow="1"
	        borderwidth="0"
	        glow="4"
	        align="bottom"
	        x="-330"
	        y="75"
	        onover="tween(alpha,0.7,distance(0.3,0.2));"
	        onout="tween(alpha,1.0,distance(0.3,0.2));"
	        onloaded="set(alpha,0);set(textblur,15);set(blur,15); set(visible,true); tween(alpha,1,0.3); tween(textblur,0,0.3); tween(blur,0,0.3);"
	        onclick="action(nomask);"
	        />
	        
	<plugin name="darkmask_button"
	        url="%SWFPATH%/plugins/textfield.swf"
	        html="[p]Dark Shadow[/p]"
	        css="p{color:#FFFFFF; font-family:Arial; font-size:14; margin-left:5; margin-right:5; text-align:center; }"
	        keep="true"
	        children="false"
	        visible="false"
	        width="100"
	        height="22"
	        backgroundcolor="0x000000"
	        roundedge="5"
	        shadow="1"
	        borderwidth="0"
	        glow="4"
	        align="bottom"
	        x="-220"
	        y="75"
	        onover="tween(alpha,0.7,distance(0.3,0.2));"
	        onout="tween(alpha,1.0,distance(0.3,0.2));"
	        onloaded="set(alpha,0);set(textblur,15);set(blur,15); set(visible,true); tween(alpha,1.0,0.3); tween(textblur,0,0.3); tween(blur,0,0.3);"
	        onclick="action(setmask,darkmask,multiply);"
	        />

	<plugin name="darkermask_button"
	        url="%SWFPATH%/plugins/textfield.swf"
	        html="[p]Darker[/p]"
	        css="p{color:#FFFFFF; font-family:Arial; font-size:14; margin-left:5; margin-right:5; text-align:center; }"
	        keep="true"
	        children="false"
	        visible="false"
	        width="100"
	        height="22"
	        backgroundcolor="0x000000"
	        roundedge="5"
	        shadow="1"
	        borderwidth="0"
	        glow="4"
	        align="bottom"
	        x="-110"
	        y="75"
	        onover="tween(alpha,0.7,distance(0.3,0.2));"
	        onout="tween(alpha,1.0,distance(0.3,0.2));"
	        onloaded="set(alpha,0);set(textblur,15);set(blur,15); set(visible,true); tween(alpha,1.0,0.3); tween(textblur,0,0.3); tween(blur,0,0.3);"
	        onclick="action(setmask,invdarkmask,subtract);"
	        />	        

	<plugin name="flashlight_button"
	        url="%SWFPATH%/plugins/textfield.swf"
	        html="[p]Flashlight[/p]"
	        css="p{color:#FFFFFF; font-family:Arial; font-size:14; margin-left:5; margin-right:5; text-align:center; }"
	        keep="true"
	        children="false"
	        visible="false"
	        width="100"
	        height="22"
	        backgroundcolor="0x000000"
	        roundedge="5"
	        shadow="1"
	        borderwidth="0"
	        glow="4"
	        align="bottom"
	        x="0"
	        y="75"
	        onover="tween(alpha,0.7,distance(0.3,0.2));"
	        onout="tween(alpha,1.0,distance(0.3,0.2));"
	        onloaded="set(alpha,0);set(textblur,15);set(blur,15); set(visible,true); tween(alpha,1.0,0.3); tween(textblur,0,0.3); tween(blur,0,0.3);"
	        onclick="action(setmask,xraymask,multiply);"
	        />		        
	        
	<plugin name="xray_button"
	        url="%SWFPATH%/plugins/textfield.swf"
	        html="[p]X-Ray[/p]"
	        css="p{color:#FFFFFF; font-family:Arial; font-size:14; margin-left:5; margin-right:5; text-align:center; }"
	        keep="true"
	        children="false"
	        visible="false"
	        width="100"
	        height="22"
	        backgroundcolor="0x000000"
	        roundedge="5"
	        shadow="1"
	        borderwidth="0"
	        glow="4"
	        align="bottom"
	        x="+110"
	        y="75"
	        onover="tween(alpha,0.7,distance(0.3,0.2));"
	        onout="tween(alpha,1.0,distance(0.3,0.2));"
	        onloaded="set(alpha,0);set(textblur,15);set(blur,15); set(visible,true); tween(alpha,1.0,0.3); tween(textblur,0,0.3); tween(blur,0,0.3);"
	        onclick="action(setmask,xraymask,difference);"
	        />		        

	<plugin name="alien_button"
	        url="%SWFPATH%/plugins/textfield.swf"
	        html="[p]Alien View[/p]"
	        css="p{color:#FFFFFF; font-family:Arial; font-size:14; margin-left:5; margin-right:5; text-align:center; }"
	        keep="true"
	        children="false"
	        visible="false"
	        width="100"
	        height="22"
	        backgroundcolor="0x000000"
	        roundedge="5"
	        shadow="1"
	        borderwidth="0"
	        glow="4"
	        align="bottom"
	        x="+220"
	        y="75"
	        onover="tween(alpha,0.7,distance(0.3,0.2));"
	        onout="tween(alpha,1.0,distance(0.3,0.2));"
	        onloaded="set(alpha,0);set(textblur,15);set(blur,15); set(visible,true); tween(alpha,1.0,0.3); tween(textblur,0,0.3); tween(blur,0,0.3);"
	        onclick="action(setmask,alienmask,multiply);"
	        />	        

	<plugin name="hc_button"
	        url="%SWFPATH%/plugins/textfield.swf"
	        html="[p]HighContrast[/p]"
	        css="p{color:#FFFFFF; font-family:Arial; font-size:14; margin-left:5; margin-right:5; text-align:center; }"
	        keep="true"
	        children="false"
	        visible="false"
	        width="100"
	        height="22"
	        backgroundcolor="0x000000"
	        roundedge="5"
	        shadow="1"
	        borderwidth="0"
	        glow="4"
	        align="bottom"
	        x="+330"
	        y="75"
	        onover="tween(alpha,0.7,distance(0.3,0.2));"
	        onout="tween(alpha,1.0,distance(0.3,0.2));"
	        onloaded="set(alpha,0);set(textblur,15);set(blur,15); set(visible,true); tween(alpha,1.0,0.3); tween(textblur,0,0.3); tween(blur,0,0.3);"
	        onclick="action(setmask,darkmask,overlay);"
	        />		        
	             	
	
	<action name="loadpano1">
		loadpano(%SWFPATH%/panos/korfu/pantokrator/kloster/kloster.xml, null, KEEPALL|KEEPHOTSPOTS, BLEND(1));
	</action>
	
	<action name="loadpano2">
		loadpano(%SWFPATH%/panos/night/night.xml, null, KEEPALL|KEEPHOTSPOTS, BLEND(1));
	</action>
	
	<action name="loadpano3">
		loadpano(%SWFPATH%/panos/vtour/keller.xml, null, KEEPALL|KEEPHOTSPOTS, BLEND(1));
	</action>
	
	
	<plugin name="info_button"
	        url="%SWFPATH%/plugins/textfield.swf"
	        html="[p]informations[/p]"
	        css="p{color:#FFFFFF; font-family:Arial; font-size:14; margin-left:5; margin-right:5; text-align:center; }"
	        keep="true"
	        children="false"
	        visible="false"
	        width="140"
	        height="22"
	        backgroundcolor="0x000000"
	        roundedge="5"
	        shadow="1"
	        borderwidth="0"
	        glow="4"
	        align="leftbottom"
	        x="20"
	        y="75"
	        onover="tween(alpha,0.7,distance(0.3,0.2));"
	        onout="tween(alpha,1.0,distance(0.3,0.2));"
	        onloaded="set(alpha,0);set(textblur,15);set(blur,15); set(visible,true); tween(alpha,1.0,0.3); tween(textblur,0,0.3); tween(blur,0,0.3);"
	        onclick="action(hide_others_text);action(show_info_text);"
	        />
	
	<plugin name="others_button"
	        url="%SWFPATH%/plugins/textfield.swf"
	        html="[p]other panos[/p]"
	        css="p{color:#FFFFFF; font-family:Arial; font-size:14; margin-left:5; margin-right:5; text-align:center; }"
	        keep="true"
	        children="false"
	        visible="false"
	        width="140"
	        height="22"
	        backgroundcolor="0x000000"
	        roundedge="5"
	        shadow="1"
	        borderwidth="0"
	        glow="4"
	        align="rightbottom"
	        x="20"
	        y="75"
	        onover="tween(alpha,0.7,distance(0.3,0.2));"
	        onout="tween(alpha,1.0,distance(0.3,0.2));"
	        onloaded="set(alpha,0);set(textblur,15);set(blur,15); set(visible,true); tween(alpha,1,0.3); tween(textblur,0,0.3); tween(blur,0,0.3);"
	        onclick="action(hide_info_text);action(show_others_text);"
	        />	

	   
	        
	
	<data name="info_html">
		<p>
			<br/>
			Mask-Effect examples<br/>
			<br/>
			Examples of using overlayed fullscreen-scaled<br/>
			plugin-images with serveral	blendmode settings to create nice mask effects!
			<br/>
			<br/>
			<b>click to close</b>
			<br/>
		</p>
	</data>
	
	<plugin name="info_text"
	        url="%SWFPATH%/plugins/textfield.swf"
	        html="data:info_html"
	        css="p{color:#FFFFFF; font-family:Arial; font-size:14; margin-left:5; margin-right:5; text-align:center; }"
	        keep="true"
	        children="false"
	        visible="false"
	        width="400"
	        height="300"
	        backgroundcolor="0x000000"
	        roundedge="5"
	        shadow="1"
	        borderwidth="0"
	        glow="4"
	        align="center"
	        x="0"
	        y="0"
	        autosize="center"
	        onloaded="action(show_info_text);"
	        onclick="action(hide_info_text);"
	        />
	        
	<action name="show_info_text">
		set(plugin[info_button].enabled,false);
		set(plugin[info_text].alpha,0);
		set(plugin[info_text].textblur,15);
		set(plugin[info_text].blur,15); 
		set(plugin[info_text].visible,true);
		set(plugin[info_text].enabled,true);
		tween(plugin[info_text].alpha,1,0.3); 
		tween(plugin[info_text].textblur,0,0.3); 
		tween(plugin[info_text].blur,0,0.3);
	</action>
	
	<action name="hide_info_text">
		set(plugin[info_text].enabled,false);
		set(plugin[info_button].enabled,true);
		tween(plugin[info_text].alpha,0,0.3,default,set(plugin[info_text].visible,false)); 
		tween(plugin[info_text].textblur,20,0.3); 
		tween(plugin[info_text].blur,20,0.3);
	</action>

	
	
	        
	<data name="others_html">
		<p>
			<br/>
			select a other panorama<br/>
		</p>
		<a href="event:action(hide_others_text);action(loadpano2);">
			<img src="/krpano.com/panos/night/nightimagebarthumb.jpg" width="512" height="80" />
		</a>
		<br/>
		<br/>
		<a href="event:action(hide_others_text);action(loadpano3);">
			<img src="/krpano.com/panos/vtour/kellerimagebarthumb.jpg" width="512" height="80" />
		</a>
		<br/>
		<br/>
		<a href="event:action(hide_others_text);action(loadpano1);">
			<img src="/krpano.com/panos/korfu/pantokrator/kloster/klosterimagebarthumb.jpg" width="512" height="80" />
		</a>			
		<br/>
		<br/>
		<br/>
		<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
		
		<p>
			<a href="event:action(hide_others_text);">
				<b>click to close</b><br/>
			</a>
		</p>
		
	</data>	  
	
	<plugin name="others_text"
	        url="%SWFPATH%/plugins/textfield.swf"
	        html="data:others_html"
	        css="p{color:#FFFFFF; font-family:Arial; font-size:14; margin-left:5; margin-right:5; text-align:center; }"
	        keep="true"
	        visible="false"
	        width="532"
	        height="400"
	        backgroundcolor="0x000000"
	        roundedge="5"
	        shadow="1"
	        borderwidth="0"
	        glow="4"
	        align="center" edge="center"
	        x="0"
	        y="0"
	        />      
	        
	        
	<action name="show_others_text">
		set(plugin[others_button].enabled,false);
		set(plugin[others_text].alpha,0);
		set(plugin[others_text].textblur,15);
		set(plugin[others_text].blur,15); 
		set(plugin[others_text].visible,true);
		set(plugin[others_text].enabled,true);
		tween(plugin[others_text].alpha,1,0.3); 
		tween(plugin[others_text].textblur,0,0.3); 
		tween(plugin[others_text].blur,0,0.3);
	</action>	         
	
	<action name="hide_others_text">
		set(plugin[others_button].enabled,true);
		set(plugin[others_text].enabled,false);
		tween(plugin[others_text].alpha,0,0.3,default,set(plugin[others_text].visible,false));
		tween(plugin[others_text].textblur,20,0.3);
		tween(plugin[others_text].blur,20,0.3);
	</action>


</krpano>

