<krpano version="1.0.8"  onstart="action(area);">  

<!-- <plugin name="options" url="../core/plugins/options.swf" keep="true" zorder="10"/> 
<plugin name="editor" url="../core/plugins/editor.swf" keep="true" zorder="10"/>
<plugin name="cursor" url="../core/plugins/cursorposition.swf" keep="true" zorder="10"/> -->
<plugin name="soundinterface" url="../core/plugins/soundinterface.swf" volume="1"/>
<include url="map.xml" />
<include url="textstyle1.xml" />
<include url="data.xml" />
	
	<action name="area">
		 
		set(area.x, 40%);
		set(area.y, 5%);
		set(area.width, 55%);
		set(area.height, 70%);
		
		
	</action>

	<display fps="40"
	         details="32"
	         tessmode="3"
	         movequality="HIGH"
	         stillquality="HIGHSHARP"
	         flash10="on"
	         movequality10="HIGH"
	         stillquality10="HIGHSHARP"
	         stilltime="0.25"
			 />
			 
<view hlookat       ="-11.788656"
	      vlookat       ="13.794764"
	      camroll       ="0.000000"
	      fovtype       ="DFOV"
	      fov           ="100.000000"
	      fovmin        ="39.750723"
	      fovmax        ="110.000000"
	      maxpixelzoom  ="1.000000"
	      limitfov      ="true"
	      fisheye       ="0.51"
	      fisheyefovlink="0.76"
	      stereographic ="false"
	      pannini       ="false"
	      architectural ="0.5"
	      architecturalonlymiddle="true"
	      limitview     ="auto"
	      hlookatmin    ="NaN"
	      hlookatmax    ="NaN"
	      vlookatmin    ="NaN"
	      vlookatmax    ="NaN"
	      />

	<control usercontrol    ="all"
	         mousetype      ="moveto"
	         zoomtocursor   ="false"
	         zoomoutcursor  ="true"
	         mouseaccelerate="1.00"
	         mousespeed     ="10.00"
	         mousefriction  ="0.80"
	         headswing      ="0.00"
	         keybaccelerate ="0.50"
	         keybspeed      ="10.00"
	         keybfriction   ="0.90"
	         keybinvert     ="false"
	         mousefovchange ="1.00"
	         keybfovchange  ="0.75"
	         fovspeed       ="3.00"
	         fovfriction    ="0.90"
	         movetocursor   ="arrow"
	         cursorsize     ="10.0"
	         keycodesleft   ="37"
	         keycodesright  ="39"
	         keycodesup     ="38"
	         keycodesdown   ="40"
	         keycodesin     ="16,65,107"
	         keycodesout    ="17,89,90,109"
	         />
	 
<preview type="grid(cube,100,100,1000,0xCCCCCC,0x999999,0xFFFFFF);" />

  	<plugin name="black"
 	        url="maskblack.png"
	        align="topleft" edge="topleft" handcursor="false" 
			x="0" y="0"
			width="100%" height="100%"
	        zorder="0"
			onover=""
			onout=""
			alpha="1"
			onhover=""
	        onclick=""
			keep="true"
	        />
			
  	<plugin name="start"
 	        url="start.png"
	        align="topleft" edge="topleft" handcursor="false" 
			x="5%" y="5%"
			width="90%" height="90%"
	        zorder="1"
			onover=""
			onout=""
			
			onhover=""
	        onclick=""
			keep="true"
	        />			
	
  	<plugin name="logo"
 	        url="logo.png"
	        align="topleft" edge="topleft" handcursor="false" 
			x="5" y="5"
			
	        zorder="2"
			onover=""
			onout=""
			scale=".50"
			onhover=""
	        onclick=""
			keep="true"
	        />	
			
  	<plugin name="topborder"
 	        url="border_x2.png"
	        align="topleft" edge="topleft" handcursor="false" 
			width="100%"
		    zorder="2"
			keep="true"
	        />
			
  	<plugin name="bottomborder"
 	        url="border_x2.png"
	        align="bottomleft" edge="bottomleft" handcursor="false" 
			width="100%"
		    zorder="2"
			keep="true"
	        />						
			
  	<plugin name="leftborder"
 	        url="border_x2.png"
	        align="bottomleft" edge="bottomleft" handcursor="false" 
			height="100%"
		    zorder="2"
			keep="true"
	        />	
			
  	<plugin name="rightborder"
 	        url="border_x2.png"
	        align="bottomright" edge="bottomright" handcursor="false" 
			height="100%"
		    zorder="2"
			keep="true"
	        />					
			
	
			
<!--  compass2 with rotating plate 
   
  <plugin name="compass" url="compass.png" keep="true" zorder="3" children="false" align="leftbottom" x="9.8%" y="8%" scale="0.5" scalechildren="true" destscale="1.0" onclick="switch(destscale,1.0,0.5);tween(scale,$destscale);" parent="stage" onhover="showtext(click to toggle size,default);" heading="0" /> 

  <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" /> 

  <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);"  /> 


 <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, 0);
  </action>			-->

  
<plugin name="snd" url="soundonoff.png"alpha="0.75" scale="0.6" onover=" tween(scale,0.750);" onout=" tween(scale,0.60);" 
	        crop="0|0|50|50"
			actioncord="1"
			keep="true"
			onhover="showtext(Audio On/Off)"
	        onclick="if(actioncord == 1, action(hideaudio) ,action(showaudio)); switch(actioncord,1,2); switch(crop, 0|0|50|50, 0|50|50|50);" 
		 	zorder="2"
			origin="bottomleft" edge="bottomleft"
 	        x="10" y="7"
  	        parent=""
			/>
			
<action name="showaudio">

set(plugin[soundinterface].volume,1); 

</action>
					
<action name="hideaudio">

set(plugin[soundinterface].volume,0); 

</action>			  

	
<plugin name="controls"
 	        url="controls.swf"
	        keep="true"
 	        visible="false" enabled="true" handcursor="true" 
 	        zorder="5"
 	        alpha="1.00" blendmode="normal"
 	        smoothing="true"
 	        origin="centerbottom" edge=""
 	        x="0" y="-10"
 	        
	        scale="1"
 
	        />
			
<plugin name="what"
 	        url="question_mark_3d.png"
	        keep="true"
 	        visible="true" enabled="true" handcursor="true" 
 	        zorder="5"
 	        alpha="1.00" blendmode="normal"
 	        smoothing="true"
 	        origin="centerbottom" edge=""
 	        x="-25%" y="10"
 	        onhover="showtext(What could make this tour better?);"
	        scale=".35"
			onclick="  action(texton,data:what));"
 
	        />			
			
<!--  fullscreen button and events --> 

  <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);" /> 
  
  <plugin name="fsbutton" url="triangle.png" keep="true" align="bottomright" rotate="0" ox="55" oy="55" x="55" y="55" scale="1" alpha="0.6" onover="tween(alpha,0.8);" onout="tween(alpha,0.6);" onhover="showtext(toogle Fullsceen);" onclick="switch(fullscreen);" zorder="10"/> 
  
  <events onenterfullscreen="action(enterfullscreen);" onexitfullscreen="action(exitfullscreen);" /> 
  <action name="enterfullscreen">tween(plugin[cameracontrols].scale,0.8); tween(plugin[fsbutton].rotate,180); tween(plugin[fsbutton].scale,0.8);</action> 
  <action name="exitfullscreen">tween(plugin[cameracontrols].scale,0.5); tween(plugin[fsbutton].rotate,0); tween(plugin[fsbutton].scale,1);</action> 

  <action name="videoon">

addplugin(avideo);  
set(plugin[avideo].align,topleft);
set(plugin[avideo].edge,%5); 
set(plugin[avideo].onvideocomplete,action(hidevideo));
set(plugin[avideo].loop,false);
set(plugin[avideo].zorder,25);
set(plugin[avideo].videourl,%1);
set(plugin[avideo].url,%SWFPATH%/plugins/videoplayer.swf);
set(plugin[avideo].width,84%); set(plugin[avideo].height,67%);
set(plugin[avideo].rotate,%4);
set(plugin[avideo].onclick,action(hidevideo));
set(plugin[avideo].onhover,showtext(click to close));
set(plugin[avideo].scale,1);
set(plugin[avideo].alpha,1);
set(plugin[avideo].visible,true);
set(plugin[avideo].parent,videotip);
set(plugin[avideo].x,8.5%);
set(plugin[avideo].y,12%);

</action>	

<action name="showvideo">
tween(plugin[avideo].scale,1,1);	
tween(plugin[avideo].alpha,1,1);
</action>
					
<action name="hidevideo">
plugin[avideo].closevideo();
tween(plugin[avideo].alpha,0,1); wait(1);
tween(plugin[avideo].scale,0);
</action>	

					<!-- MASKED TEXTFIELD with scroll buttons -->
<action name="texton">set(plugin[textbox].visible,true);

addplugin(text);  
set(plugin[text].url,textfield.swf);
set(plugin[text].parent,textbox);
set(plugin[text].align,lefttop);
set(plugin[text].x,5); 
set(plugin[text].y,5);

set(plugin[text].html,%1);
set(plugin[text].zorder,36);

set(plugin[text].width,85%); set(plugin[text].height,85%);
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);

</action>


	<!-- scale9grid scaled textbox image -->
	<plugin name="textbox" url="textfield.png"
	        align="topleft" edge="topleft" x="40%" y="75%"
	        scale9grid="5|5|12|55"
	        width="55%"
	        height="20%"
			visible="true" handcursor="false"
			zorder="35"
			visible="false"
			keep="true"
			parent="stage"
	        />

	<!-- textfield mask to maskout hidden/out-scrolled text -->
	<plugin name="textmask" url="box.png"
	        parent="textbox"
	        align="lefttop" handcursor="false"
	        x="5" width="90%"
	        y="5" height="90%"
			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="false" 
 	        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="5"
			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="rightbottom"
			zorder="99"
	        x="28"
	        y="5"
			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"
	        />
				

</krpano>

