<krpano version="1.0.8" onstart="action(test)">


	<action name="test">
		 
		set(area.x, 5%);
		set(area.y, 5%);
		set(area.width, 70%);
		set(area.height, 90%);
		
		
	</action>
	

	
		<display fps="30"
	         details="32"
	         tessmode="3"
	         movequality="LOW"
	         stillquality="high"
	         flash10="on"
	         movequality10="LOW"
	         stillquality10="HIGH"
	         stilltime="0.25"
			 
	         />

	<view hlookat       ="0"
	      vlookat       ="0"
		  fovtype       ="DFOV"
	      camroll       ="0.000000"
	      fov           ="110.686517"
	      fovmin        ="31.594870"
	      fovmax        ="110.000000"
	      maxpixelzoom  ="1.000000"
	      limitfov      ="true"
	      fisheye       ="0.00"
	      fisheyefovlink="2.12"
	      stereographic ="false"
	      architectural ="0.3"
	      architecturalonlymiddle="true"
	      limitview     ="lookat"
	      hlookatmin    ="0.000000"
	      hlookatmax    ="360.000000"
	      vlookatmin    ="-90.000000"
	      vlookatmax    ="90.000000"
	      />

	<preview type="CUBESTRIP" url="7.tiles/preview.jpg" />

	<image type="CUBE" multires="true" tilesize="4000">
		<level tiledimagewidth="2013" tiledimageheight="2013">
			<left  url="7.tiles/pano_l_%0v%0h.jpg" />
			<front url="7.tiles/pano_f_%0v%0h.jpg" />
			<right url="7.tiles/pano_r_%0v%0h.jpg" />
			<back  url="7.tiles/pano_b_%0v%0h.jpg" />
			<up    url="7.tiles/pano_u_%0v%0h.jpg" />
			<down  url="7.tiles/pano_d_%0v%0h.jpg" />
		</level>
	</image>
	
	<plugin name="open" url="open.png" handcursor="true"
			align="topright" edge="topright"
			x="25"
			y="25"
			visible="false"
			alpha="1"
			zorder="2"
			onover=" "
			onhover=""
			onclick="action(openmap);"
			onout=" "
			scale=".75"
			keep="true"
	/>

	
	<plugin name="map" url="map.png" handcursor="true"
			align="topleft" edge="topleft"
			x="75%" y="5.0%"
			width="20%" height="70%"
			alpha="1"
			zorder="4"
			onover=""
			onclick="action(hidemap); "
			onout=""
			scale="1"
			visible="true"
			keep="true"
			parent="stage"
	/>
	
	<plugin name="logo" url="logo.png" handcursor="false"
			align="topleft" edge="topleft"
			x="75%" y="74.5%"
			width="20%" height="15%"
			alpha="1"
			zorder="4"
			onover=""
			onhover=";"
			onclick=" "
			onout=""
			scale="1"
			visible="true"
			keep="true"
			parent="stage"
	/>	
	
	<plugin name="support" url="support.png" handcursor="true"
			align="bottomright" edge="bottomright"
			x="-10" y="-10"
			onhover="showtext(Doante to the Gardens!);"
			alpha="1"
			zorder="4"
			onover=""
			onclick="openurl(http://www.munsingerclemens.com/support.html)"
			onout=""
			scale=".8"
			visible="true"
			keep="true"
			
	/>	

  <plugin name="spot1" url="mappoint.png" zorder="12" scale=".65" origin="lefttop" edge="center"   x="57%" y="25%" onhover="showtext(Circle Rose Garden);"  Parent="map"  visible="true"   keep="true"    onclick="action(load1);" />
	
    <plugin name="spot2" url="mappoint.png" zorder="12" scale=".65" origin="lefttop" edge="center"   x="40%" y="40%" onhover="showtext(Munsinger Cabin);"   Parent="map"  visible="true"   keep="true"      onclick="action(load2);" />
	
    <plugin name="spot3" url="mappoint.png" zorder="12" scale=".65" origin="lefttop" edge="center"   x="32%" y="68%" onhover="showtext(St. Cloud Damn);"   Parent="map"  visible="true"   keep="true"      onclick="action(load3);" />
	
    <plugin name="spot4" url="mappoint.png" zorder="12" scale=".65" origin="lefttop" edge="center"   x="45%" y="35%" onhover="showtext(Water Garden Display 1);"    Parent="map"  visible="true"   keep="true"       onclick="action(load4);" />
	
    <plugin name="spot5" url="mappoint.png" zorder="12" scale=".65" origin="lefttop" edge="center"   x="48%" y="38%" onhover="showtext(Fern Moutain);"   Parent="map"  visible="true"   keep="true"       onclick="action(load5);" />
	
    <plugin name="spot6" url="mappoint.png" zorder="12" scale=".65" origin="lefttop" edge="center"   x="49%" y="32%" onhover="showtext(Water Garden Display 2);"  Parent="map"  visible="true"   keep="true"       onclick="action(load6); " />	
	
    <plugin name="spot7" url="mappoint.png" zorder="12" scale=".65" origin="lefttop" edge="center"   x="60%" y="35%" onhover="showtext(Main Entrance);"    Parent="map"  visible="true"   keep="true"       onclick="action(load7);" />
	
    <plugin name="spot8" url="mappoint.png" zorder="12" scale=".65" origin="lefttop" edge="center"   x="57%" y="46%" onhover="showtext(Blue Fountain);"   Parent="map"  visible="true"   keep="true"       onclick="action(load8);" />
	
    <plugin name="spot9" url="mappoint.png" zorder="12" scale=".65" origin="lefttop" edge="center"   x="55%" y="58%" onhover="showtext(A view from the Stairs);"  Parent="map"  visible="true"   keep="true"       onclick="action(load9);" />	
	
  <plugin name="spot10" url="mappoint.png" zorder="12" scale=".65" origin="lefttop" edge="center"   x="55%" y="63%" onhover="showtext(Fountain Cage);"  Parent="map"  visible="true"   keep="true"    onclick="action(load10);" />
	
    <plugin name="spot11" url="mappoint.png" zorder="12" scale=".65" origin="lefttop" edge="center"   x="47%" y="26%" onhover="showtext(All American Rose Selections);"   Parent="map"  visible="true"   keep="true"      onclick="action(load11);" />
 
 <plugin name="spotx" url="mappointactive.png" keep="true"  scale=".5"    Parent="map"  visible="true"    zorder="13" origin="lefttop" edge="center"   x="57%" y="25%" onhover="showtext(You are here)"/>


    <action name="startloading">
    	set(hotspot.visible,false);
    	push(view.fovmin);
    	set(view.fovmin,1);
    </action>
    
    <action name="loadingdone">
    	pop(view.fovmin);
    	set(hotspot.visible,true);
    </action>
    
    <action name="lookinterrupt">
    	action(loadingdone);
    	breakall();	
    </action>
    
       <action name="load1">
        set(plugin[spotx].x,57%); 
        set(plugin[spotx].y,25%); 
        set(plugin[radar].x,57%); 
        set(plugin[radar].y,25%); 
         stopallsounds();  wait(1);     
		  loadpano(1.xml,null,MERGE,BLEND(2)); 

    </action> 

    <action name="load2"> 
        set(plugin[spotx].x,40%); 
        set(plugin[spotx].y,40%); 
        set(plugin[radar].x,40%); 
        set(plugin[radar].y,40%); 
        
		stopallsounds();  wait(1);     
		 loadpano(2.xml,null,MERGE,BLEND(2)); 
		
    </action> 
	
    <action name="load3"> 
        set(plugin[spotx].x,32%); 
        set(plugin[spotx].y,68%); 
        set(plugin[radar].x,32%); 
        set(plugin[radar].y,68%); 
        
		 stopallsounds();  wait(1);     
		 loadpano(3.xml,null,MERGE,BLEND(2)); 

    </action> 
   
       <action name="load4"> 
        set(plugin[spotx].x,45%); 
        set(plugin[spotx].y,35%); 
        set(plugin[radar].x,45%); 
        set(plugin[radar].y,35%); 
         stopallsounds();  wait(1);     
		  loadpano(4.xml,null,MERGE,BLEND(2));

    </action> 

    <action name="load5"> 
        set(plugin[spotx].x,48%); 
        set(plugin[spotx].y,38%); 
        set(plugin[radar].x,48%); 
        set(plugin[radar].y,38%); 
		stopallsounds();  wait(1);  
		loadpano(5.xml,null,MERGE,BLEND(2)); 

    </action> 
  
    <action name="load6"> 
        set(plugin[spotx].x,49%); 
        set(plugin[spotx].y,32%); 
        set(plugin[radar].x,49%); 
        set(plugin[radar].y,32%); 
        
		 stopallsounds();  wait(1);      
		 loadpano(6.xml,null,MERGE,BLEND(2));
		

    </action>  
	
    <action name="load7"> 
        set(plugin[spotx].x,60%); 
        set(plugin[spotx].y,35%); 
        set(plugin[radar].x,60%); 
        set(plugin[radar].y,35%); 
         stopallsounds();  wait(1);      
		 loadpano(7.xml,null,MERGE,BLEND(2));

    </action>
	
    <action name="load8"> 
        set(plugin[spotx].x,57%); 
        set(plugin[spotx].y,46%); 
        set(plugin[radar].x,57%); 
        set(plugin[radar].y,46%); 
        
		stopallsounds();  wait(1);     
		 loadpano(8.xml,null,MERGE,BLEND(2));

    </action>	
	
    <action name="load9"> 
        set(plugin[spotx].x,55%); 
        set(plugin[spotx].y,58%); 
        set(plugin[radar].x,55%); 
        set(plugin[radar].y,58%); 
         stopallsounds();  wait(1);      
		 loadpano(9.xml,null,MERGE,BLEND(2));

    </action>
	
      <action name="load10"> 
        set(plugin[spotx].x,55%); 
        set(plugin[spotx].y,63%); 
        set(plugin[radar].x,55%); 
        set(plugin[radar].y,63%); 
         stopallsounds(); wait(1);        
            loadpano(10.xml,null,MERGE,BLEND(2));

    </action> 

    <action name="load11"> 
        set(plugin[spotx].x,47%); 
        set(plugin[spotx].y,26%); 
        set(plugin[radar].x,47%); 
        set(plugin[radar].y,26%); 
      
		stopallsounds();  wait(1);     
        loadpano(11.xml,null,MERGE,BLEND(2)); 
		
    </action> 


		 
		  <!-- Bulp control panel -->   
<plugin name="controlpanel" url="fullNEWbutton45d straight.swf" zorder="2" y="2.5" x="0" scale=".4" keep="true" align="bottomcenter" 
/> 
 
<!--  compass2 with rotating plate 
  --> 
  <plugin name="compass" url="compass.png" keep="true" zorder="2" children="false" align="leftbottom" x="5" y="5" scale=".35" scalechildren="true" destscale=".35" onclick="switch(destscale,.35,1.0);tween(scale,$destscale);" onhover="showtext(click to toggle size,default);" heading="0"  parent="map"/> 
- <!--  compass pointer, the rotation will be changed in the "onviewchange" action 
  --> 
  <plugin name="compass_pointer" url="compass_pointer.png" keep="true" handcursor="false" parent="compass" zorder="4" align="center" /> 
  <plugin name="tiltmetermask" url="tiltmask.png" keep="true" handcursor="false" parent="compass" zorder="3" scale="0.5" y="25" align="center" /> 
  <plugin name="tiltmeter" url="tilt.png" keep="true" handcursor="false" parent="compass" zorder="3" mask="tiltmetermask" scale="0.5" y="25" align="center" /> 
- <!--  compass glass cap 
  --> 
  <plugin name="glass" url="glass.jpg" keep="true" enabled="false" blendmode="screen" alpha="0.5" parent="compass" zorder="5" align="center" /> 

  
  <plugin name="tiltmetermask" url="tiltmask.png" keep="true" handcursor="false" parent="compass" zorder="3" scale="0.5" y="25" align="center" /> 
  <plugin name="tiltmeter" url="tilt.png" keep="true" handcursor="false" parent="compass" zorder="3" mask="tiltmetermask" scale="0.5" y="25" align="center" /> 

  <events onxmlcomplete="action(onstart);" onviewchange="action(onviewchange);" /> 

<!--  change the rotation of the compass pointer / compass plate image   --> 

 <action name="onviewchange">sub(plugin[compass_pointer].rotate, view.hlookat, heading); sub(plugin[compass2_plate].rotate, heading, view.hlookat); div(tiltpos, view.vlookat, -180); mul(tiltmax, plugin[tiltmeter].height, 0.45); mul(plugin[tiltmeter].oy, tiltpos, tiltmax);</action> 

<action name="onstart">
  <!--  SET HEADING --> 
  set(heading, -75);
  </action>	

	<plugin name="upleft"
 	        url="address.png"
	        keep="true"
 	        visible="true" enabled="true" 
 	        zorder="11"
 	        alpha="1.00" blendmode="normal" handcursor="false"
 	        smoothing="true"
 	        origin="topleft" edge="topleft"
 	        x="3%" y="10"
 	        
	        scale="1.0"
	        onloaded=""
	        onover=""
			parent="stage"
	        onhover=""
	        onout=""
	        ondown=""
	        onup=""
	        onclick=""
	        /> 

<plugin name="greybarb"
 	        url="greybar.png"
	        keep="true"
 	        visible="true" enabled="true" capture="false"
 	        zorder="0"
 	        alpha="0.50" blendmode="normal"
 	        smoothing="true"
 	        origin="bottomleft" edge=""
 	        x="0" y="0"
  	        width="100%" height="50"
	        scale="1"
	        onloaded=""
	        onover=""
	        onhover=""
	        onout=""
	        ondown=""
	        onup=""
	        onclick=""
			handcursor="false"
	        />	
			
<action name="reset">tween(view.fov,95); wait(1);
tween(view.fovmax,130.0, distance(179, 0.25), easeoutquad);
tween(view.architectural,0.5, distance(1.0, 0.25), easeoutquad);
tween(view.fisheye,0.0, distance(1.0, 0.25), easeoutquad, set(view.stereographic,false); );event:lookto(0,0,80);
lookto(0,0,35);tween(view.fov,80); set(control.mousetype, moveto);
set(hotspot.visible,true);
set(autorotate.enabled,false);
</action>

<action name="littleplanet">tween(display.details,16); 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,     150, distance(179, 0.75), easeoutquad, set(view.fovmax,150););tween(view.vlookat,  90, distance(179, 0.75), easeoutquad); );</action>

 
<plugin name="x2"
			visible="true"
			blendmode="normal"
			keep="true"
 	        url="x.png"
	        align="topleft" edge="center" 
			x="15" y="15"
			onhover="showtext(Close Map);"
			scale=".40"
	        zorder="10"
			alpha="1"
			parent="map"
			onclick="action(hidemap)"
	        />  
			
<action name="hidemap">
set(plugin[map].visible,false);
set(plugin[logo].visible,false);
tween(area.width, 90%);
wait(1.5);
set(plugin[open].visible,true);
set(plugin[white].visible,true);
</action>	

<action name="openmap">
set(plugin[open].visible,false);
set(plugin[white].visible,false);
tween(area.width, 70%);
wait(1.5);
set(plugin[map].visible,true);
set(plugin[logo].visible,true);

</action>	

<hotspot name="nadirlogo"
         url="nadirpatch.png"
         ath="0"
         atv="90"
         distorted="true"
         scale="1.25"
         rotate="0.0"
		 keep="true"
		 zorder="2"
         rotatewithview="false"
		 onhover="showtext(Visit Virtualnorthland)"
		 	capture="false"
         onclick="openurl(http://www.virtualnorthland.com,_blank);"
         onloaded=""
         onover=""
         onoutready=""
         onout=""
         />		

<plugin name="infoicon"
 	        url="hotspot_ani.swf"
	        keep="true"
 	        visible="true" enabled="true" handcursor="true" 
 	        zorder="21"
 	        alpha="1.00" blendmode="normal"
 	        smoothing="true"
 	        origin="bottomleft" edge="center"
 	        x="25" y="24"
 	        
			onclick="action(texton,data:start));" 
			onhover="showtext(Click for Info);"
	        scale=".4"
 />
		
 
<data name="start">
<P ALIGN="center"><FONT FACE="Times New Roman" SIZE="16" COLOR="#fb4a4a" LETTERSPACING="0"><b>When are the Gardens Open?</b></FONT></P><br/>
<P ALIGN="center"><FONT FACE="Times New Roman" SIZE="12" COLOR="#000000" LETTERSPACING="0"><b>The Gardens are open every day from Spring to Fall from 7:00 a.m. to 10.00 p.m.</b></FONT></P><br/>
<P ALIGN="center"><FONT FACE="Times New Roman" SIZE="16" COLOR="#fb4a4a" LETTERSPACING="0"><b>Is there an admission fee?</b></FONT></P><br/>
<P ALIGN="center"><FONT FACE="Times New Roman" SIZE="12" COLOR="#000000" LETTERSPACING="0"><b>There is no admission fee for Munsinger Gardens and Clemens Gardens, however, donations to the Gardens are always accepted.<br/>
</b></FONT></P>
<P ALIGN="center"><FONT FACE="Times New Roman" SIZE="16" COLOR="#fb4a4a" LETTERSPACING="0"><b>Do you give tours of the gardens?</b></FONT></P><br/>
<P ALIGN="center"><FONT FACE="Times New Roman" SIZE="12" COLOR="#000000" LETTERSPACING="0"><b>Guided tours are not available at this time<br/><br/>
</b></FONT></P><br/>


</data> 
 
					<!-- MASKED TEXTFIELD with scroll buttons -->
<action name="texton">set(plugin[textbox].visible,true);
set(plugin[mapbg].visible,true);
addplugin(text);  
set(plugin[text].url,textfield.swf);
set(plugin[text].parent,textbox);
set(plugin[text].align,lefttop);
set(plugin[text].x,10); 
set(plugin[text].y,10);
set(plugin[text].visible,false);
set(plugin[text].html,%1);
set(plugin[text].zorder,36);

set(plugin[text].width,320); set(plugin[text].height,350);
set(plugin[text].background,false);
set(plugin[text].autosize,center);
set(plugin[text].mask,textmask);
set(plugin[text].onhover,showtext(Scroll up/down with arrows));
set(plugin[text].borderwidth,0);
tween(plugin[textbox].height,250); wait(.75);
set(plugin[text].visible,true);

</action>

<plugin name="x"
			visible="true"
			blendmode="normal"
			keep="true"
 	        url="x.png"
	        align="topright" edge="center" 
			x="17" y="15"
			
			scale=".40"
	        zorder="10"
			alpha="1"
			parent="textbox"
			onclick="set(plugin[text].visible,false); wait(.1); tween(plugin[textbox].height,0); wait(.5); set(plugin[textbox].visible,false); removeplugin(text);"
onhover="showtext(Close Info Box)"
	        />

	<!-- scale9grid scaled textbox image -->
	<plugin name="textbox" url="textfield.png"
	        align="bottomleft" edge="bottomleft" x="5" y="55"
	        scale9grid="5|5|12|55"
	        width="350"
	        height="0"
			visible="false"
			zorder="35"
			keep="true"
	        />

	<!-- textfield mask to maskout hidden/out-scrolled text -->
	<plugin name="textmask" url="box.png"
	        parent="textbox"
	        align="lefttop"
	        x="5" width="320"
	        y="5" height="330"
			keep="true"
	        />
			
<plugin name="box-border"
 	        url="box-border.png"  
			
	        keep="true"
 	        visible="false" enabled="true" handcursor="true" 
 	        zorder="25"
 	        alpha="1.00" blendmode="normal" rotate="0"
 	        smoothing="true"
 	        align="center" edge="center" x="0" y="0" 
	        scale="1"
	        onloaded=""
	        
			onhover=""
	        ondown=""
	        onup=""
	        onclick=""
	        />
			
<plugin name="box-center"
 	        url="box-center.png"  
			parent="box-border"
	        keep="true"
 	        visible="true" enabled="true" handcursor="true" 
 	        zorder="26"
 	        alpha="1.00" blendmode="normal" rotate="0"
 	        smoothing="true"
 	        align="center" edge="center" x="0" y="0" 
	        scale="1"
	        onloaded=""
	        
			onhover=""
	        ondown=""
	        onup=""
	        onclick=""
	        />			

	<!-- buttons for textscrolling - just move the textfield up and down -->
	<plugin name="scrollup" url="dirbutton.png"
	        parent="textbox"
	        align="righttop"
			zorder="99"
	        x="28"
	        y="25"
			scale="1.2"
	        rotate="-90"
	        crop="0|0|19|19" onovercrop="0|19|19|19" ondowncrop="0|38|19|19"
	        ondown="tween(plugin[text].y, 10, distance(400,0.7), linear);"
	        onup="stoptween(plugin[text].y);"
			keep="true"
	        />

	<plugin name="scrolldown" url="dirbutton.png"
	        parent="textbox"
	        align="righttop"
			zorder="99"
	        x="5"
	        y="70"
			scale="1.2"
	        rotate="+90"
	        crop="0|0|19|19" onovercrop="0|19|19|19" ondowncrop="0|38|19|19"
	        ondown="tween(plugin[text].y, -770, distance(400,0.7), linear);"
	        onup="stoptween(plugin[text].y);"
			keep="true"
	        />


	
       <textstyle name="smalltext" 
	           font="Arial" fontsize="12" 
	           border="false" background="false"
	           textcolor="0xFFFFFF"
	           effect="glow(0x000000,0.7,4,2);dropshadow(2,45,0x000000,3,1);"
	           />	
			   
       <textstyle name="largetext" 
	           font="Arial" fontsize="14" 
	           border="false" background="false"
	           textcolor="0xFFFFFF"
	           effect="glow(0x000000,0.7,4,2);dropshadow(2,45,0x000000,3,1);"
	           />
			   
  <textstyle name="DEFAULT" font="Arial" fontsize="14" italic="true" bold="true" edge="right" xoffset="25" yoffset="-15" border="false" background="false" textcolor="0x000000" effect="glow(0xFFFFFF,0.7,4,4);dropshadow(2,45,0x000000,3,1);" /> 	
	
<!-- Menu Bar for Thumbs -->

	
	<plugin 
		name="menulift"
		url="menulift.png"
		keep="true"
		visible="true"
		enabled="true"
		capture="false"
		zorder="1"
		alpha=".75"
		blendmode="normal"
		smoothing="true"
		align="bottomcenter"
		edge="bottomcenter"
		x="-35%" y="38"
		handcursor="true"
		scale="1"
		onclick="action(menu_show);"
		onhover="showtext(Click to Show Thumbnails)"
		

	/>	

<action name="menu_show">

	set(plugin[thumbnails].visible,true);
	
</action>

<action name="menu_hide">

	set(plugin[thumbnails].visible,false);
</action>

 <plugin name="thumbnails" url="as3Thumbsforkrpano.swf?TheXML=gallery1.xml" capture="false" keep="true" visible="false" align="bottomcenter" edge="center" scale=".8" alpha="1" y="-28" x="0" zorder="1" onout="action(menu_hide);" rotate="0"

 />


<!-- Loading plugin 
<plugin name="previewimage" 
		 url="load.png" 
		 align="center" 
		 preload="true" 
		 />-->
		 
<!-- Gallery Link -->
<plugin name="greenc"
 	        url="greencamera.png"
	        keep="true"
 	        visible="true" enabled="true" handcursor="true" 
 	        zorder="4"
 	        alpha="1.00" blendmode="normal"
 	        smoothing="true"
 	       align="bottomcenter"
		edge="bottomcenter"
		x="-38%" y="5"
 	        width="45" height="45"
	        scale="0.75"
	        onloaded=""
	        onover="tween(plugin[greenc].width,55,distance(318,0.5),easeoutquad);tween(plugin[greenc].height,55,distance(120,0.5),easeoutquad);"
			onout="tween(plugin[greenc].width,45,distance(318,0.5),easeoutquad);tween(plugin[greenc].height,45,distance(120,0.5),easeoutquad);"
			onhover="showtext(Munsinger HDR photos)"
	        ondown=""
	        onup=""
	        onclick="action(showgallery);"
	        />
			

<plugin name="hidegallery" url="closegallery.png" align="centerbottom" edge="bottom" keep="true" parent="stage" zorder="6" visible="false" alpha="1" onclick="action(hidegallery);" y="8%"/> 
	
<plugin name="gallery" url="" visible="false" alpha="0" zorder="161" parent="stage" keep="true" align="topleft"/>

<plugin name="mask" 
		 url="maskgrey.png" 
		 align="topleft" 
		 width="100%" height="100%"
		 Parent="stage"
		 zorder="5"
		 visible="false"
		 alpha=".85"
		 />
  
<action name="showgallery">
    freezeview(true);


    set(plugin[hidegallery].enable,true);
    set(plugin[hidegallery].visible,true);
    tween(plugin[hidegallery].alpha,.6,distance(1,0.15));

    set(plugin[gallery].url,viewer.swf?xmlDataPath=gallery.xml);
	set(plugin[mask].visible,true);
    set(plugin[gallery].visible,true);
    tween(plugin[gallery].alpha,1,distance(1,0.15));
	
</action>

<action name="hidegallery">
    tween(plugin[gallery].alpha,0,distance(1,0.15),,action(closegallery));
</action>

<action name="closegallery">
    set(plugin[gallery].visible,false);

    freezeview(false);
     set(plugin[mask].visible,false);
    set(plugin[hidegallery].enable,false);
    tween(plugin[hidegallery].alpha,0,distance(1,0.15),,set(plugin[hidegallery].visible,false));

</action>
		<!--  area border  -->
	<plugin name="border_top"	zorder="25" url="border_x2.png" visible="true" width="100%" enabled="false" align="lefttop"	edge="lefttop"	keep="true"/> 
	<plugin name="border_bottom" zorder="25" url="border_x2.png" visible="true" width="100%" enabled="false" align="leftbottom" edge="leftbottom" keep="true"/>
	<plugin name="border_left"   zorder="25" url="border_x2.png" visible="true" height="100%" enabled="false" align="lefttop"	edge="lefttop"	keep="true"/> 
	<plugin name="border_right"  zorder="25" url="border_x2.png" visible="true" height="100%" enabled="false" align="righttop"   edge="righttop"   keep="true"/>	

</krpano>

