<?xml version="1.0"?>
<PropertyList>
	<path>arcus.ac</path>
	<nasal>
		<load>
			var livery_update = nil;
			var rplayer = cmdarg();
			
			# Set up property aliases for animations
			rplayer.getNode("sim/model/variant", 1).alias(rplayer.getNode("sim/multiplay/generic/int[0]"));
			
			rplayer.getNode("arcus/canopy-norm", 1).alias(rplayer.getNode("sim/multiplay/generic/float[0]"));
			rplayer.getNode("arcus/front-window-norm", 1).alias(rplayer.getNode("sim/multiplay/generic/float[1]"));
			rplayer.getNode("arcus/rear-window-norm", 1).alias(rplayer.getNode("sim/multiplay/generic/float[2]"));
			rplayer.getNode("gear/gear[0]/rollspeed-ms", 1).alias(rplayer.getNode("sim/multiplay/generic/float[3]"));
			rplayer.getNode("gear/gear[1]/rollspeed-ms", 1).alias(rplayer.getNode("sim/multiplay/generic/float[4]"));
			rplayer.getNode("gear/gear[2]/rollspeed-ms", 1).alias(rplayer.getNode("sim/multiplay/generic/float[5]"));
			rplayer.getNode("surface-positions/speedbrake-pos-norm", 1).alias( rplayer.getNode("sim/multiplay/generic/float[6]") );
			rplayer.getNode("sim/systems/wingflexer/z-m", 1).alias(rplayer.getNode("sim/multiplay/generic/float[7]"));
			
			rplayer.getNode("fdm/jsbsim/systems/water-ballast/wing-outflow-rate-pps[0]", 1).alias(rplayer.getNode("sim/multiplay/generic/float[11]"));
			rplayer.getNode("fdm/jsbsim/systems/water-ballast/wing-outflow-rate-pps[1]", 1).alias(rplayer.getNode("sim/multiplay/generic/float[12]"));
			rplayer.getNode("fdm/jsbsim/systems/water-ballast/tail-outflow-rate-pps",    1).alias(rplayer.getNode("sim/multiplay/generic/float[13]"));
			
			# Used for sounds
			rplayer.getNode("gear/gear[0]/wow", 1).alias(rplayer.getNode("sim/multiplay/generic/int[6]"));
			rplayer.getNode("gear/gear[1]/wow", 1).alias(rplayer.getNode("sim/multiplay/generic/int[7]"));
			rplayer.getNode("gear/gear[2]/wow", 1).alias(rplayer.getNode("sim/multiplay/generic/int[8]"));
			
			if( rplayer.getNode("sim/model/variant").getIntValue() == 1 ){
				# only for Arcus M
				rplayer.getNode("engines/engine[0]/running", 1).alias(rplayer.getNode("sim/multiplay/generic/int[14]"));
				rplayer.getNode("engines/engine[0]/cranking", 1).alias(rplayer.getNode("sim/multiplay/generic/int[15]"));
			
				rplayer.getNode("engines/engine/prop-pos-norm", 1).alias(rplayer.getNode("sim/multiplay/generic/float[8]"));
				rplayer.getNode("engines/engine/mp-osi", 1).alias(rplayer.getNode("sim/multiplay/generic/float[9]"));
				rplayer.getNode("controls/engines/engine/throttle", 1).alias(rplayer.getNode("sim/multiplay/generic/float[10]"));
			
				livery_update = aircraft.livery_update.new("Aircraft/Arcus/Models/Liveries-m", 5);
			}else{
				livery_update = aircraft.livery_update.new("Aircraft/Arcus/Models/Liveries-s", 5);
			}
		</load>
		<unload>
			rplayer.getNode("sim/model/variant", 1).unalias();
			
			rplayer.getNode("arcus/canopy-norm", 1).unalias();
			rplayer.getNode("arcus/front-window-norm", 1).unalias();
			rplayer.getNode("arcus/rear-window-norm", 1).unalias();
			rplayer.getNode("gear/gear[0]/rollspeed-ms", 1).unalias();
			rplayer.getNode("gear/gear[1]/rollspeed-ms", 1).unalias();
			rplayer.getNode("gear/gear[2]/rollspeed-ms", 1).unalias();
			rplayer.getNode("surface-positions/speedbrake-pos-norm", 1).unalias();
			rplayer.getNode("sim/systems/wingflexer/z-m", 1).unalias();
			rplayer.getNode("engines/engine/prop-pos-norm", 1).unalias();
			
			rplayer.getNode("fdm/jsbsim/systems/water-ballast/wing-outflow-rate-pps[0]", 1).unalias();
			rplayer.getNode("fdm/jsbsim/systems/water-ballast/wing-outflow-rate-pps[1]", 1).unalias();
			rplayer.getNode("fdm/jsbsim/systems/water-ballast/tail-outflow-rate-pps",    1).unalias();
			
			# Used for sounds
			rplayer.getNode("gear/gear[0]/wow", 1).unalias();
			rplayer.getNode("gear/gear[1]/wow", 1).unalias();
			rplayer.getNode("gear/gear[2]/wow", 1).unalias();
			
			rplayer.getNode("engines/engine[0]/running", 1).unalias();
			rplayer.getNode("engines/engine[0]/cranking", 1).unalias();
			
			livery_update.stop();
		</unload>
	</nasal>
	<!--	############
	ANIMATIONS 
	############	-->
	<!-- WING BENDING -->
	<animation>
		<type>rotate</type>
		<object-name>wing.L1</object-name>
		<object-name>wing.L2</object-name>
		<object-name>wing.L3</object-name>
		<object-name>wing.L4</object-name>
		<object-name>wing.L5</object-name>
		<object-name>flaperonL1</object-name>
		<object-name>flaperonL2</object-name>
		<object-name>flaperonL3</object-name>
		<object-name>flaperonL4</object-name>
		<object-name>spoilerL</object-name>
		<property>sim/systems/wingflexer/z-m</property>
		<factor>-2.85</factor>
		<offset-deg>0</offset-deg>
		<center>
			<x-m> 0.00</x-m>
			<y-m>-0.32541</y-m>
			<z-m>-0.08119</z-m>
		</center>
		<axis>
			<x>1.0</x>
			<y>0.0</y>
			<z>0.0</z>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>wing.L2</object-name>
		<object-name>wing.L3</object-name>
		<object-name>wing.L4</object-name>
		<object-name>wing.L5</object-name>
		<object-name>flaperonL2</object-name>
		<object-name>flaperonL3</object-name>
		<object-name>flaperonL4</object-name>
		<property>sim/systems/wingflexer/z-m</property>
		<factor>-2.85</factor>
		<offset-deg>0</offset-deg>
		<center>
			<x-m> 0.00</x-m>
			<y-m>-3.67146</y-m>
			<z-m>0.10804</z-m>
		</center>
		<axis>
			<x>1.0</x>
			<y>0.0</y>
			<z>0.0</z>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>wing.L3</object-name>
		<object-name>wing.L4</object-name>
		<object-name>wing.L5</object-name>
		<object-name>flaperonL3</object-name>
		<object-name>flaperonL4</object-name>
		<property>sim/systems/wingflexer/z-m</property>
		<factor>-2.85</factor>
		<offset-deg>0</offset-deg>
		<center>
			<x-m>  0.00</x-m>
			<y-m>-6.68526</y-m>
			<z-m> 0.38979</z-m>
		</center>
		<axis>
			<x>1.0</x>
			<y>0.0</y>
			<z>0.0</z>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>wing.L4</object-name>
		<object-name>wing.L5</object-name>
		<object-name>flaperonL4</object-name>
		<property>sim/systems/wingflexer/z-m</property>
		<factor>-2.85</factor>
		<offset-deg>0</offset-deg>
		<center>
			<x-m>  0.00</x-m>
			<y-m>-8.5421</y-m>
			<z-m>0.63358</z-m>
		</center>
		<axis>
			<x>1.0</x>
			<y>0.0</y>
			<z>0.0</z>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>wing.L5</object-name>
		<property>sim/systems/wingflexer/z-m</property>
		<factor>-2.85</factor>
		<offset-deg>0</offset-deg>
		<center>
			<x-m>  0.00</x-m>
			<y-m>-9.77128</y-m>
			<z-m>0.94053</z-m>
		</center>
		<axis>
			<x>1.0</x>
			<y>0.0</y>
			<z>0.0</z>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>wing.R1</object-name>
		<object-name>wing.R2</object-name>
		<object-name>wing.R3</object-name>
		<object-name>wing.R4</object-name>
		<object-name>wing.R5</object-name>
		<object-name>flaperonR1</object-name>
		<object-name>flaperonR2</object-name>
		<object-name>flaperonR3</object-name>
		<object-name>flaperonR4</object-name>
		<object-name>spoilerR</object-name>
		<property>sim/systems/wingflexer/z-m</property>
		<factor>2.85</factor>
		<offset-deg>0</offset-deg>
		<center>
			<x-m> 0.00</x-m>
			<y-m>0.32541</y-m>
			<z-m>-0.08119</z-m>
		</center>
		<axis>
			<x>1.0</x>
			<y>0.0</y>
			<z>0.0</z>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>wing.R2</object-name>
		<object-name>wing.R3</object-name>
		<object-name>wing.R4</object-name>
		<object-name>wing.R5</object-name>
		<object-name>flaperonR2</object-name>
		<object-name>flaperonR3</object-name>
		<object-name>flaperonR4</object-name>
		<property>sim/systems/wingflexer/z-m</property>
		<factor>2.85</factor>
		<offset-deg>0</offset-deg>
		<center>
			<x-m> 0.00</x-m>
			<y-m>3.67146</y-m>
			<z-m>0.10804</z-m>
		</center>
		<axis>
			<x>1.0</x>
			<y>0.0</y>
			<z>0.0</z>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>wing.R3</object-name>
		<object-name>wing.R4</object-name>
		<object-name>wing.R5</object-name>
		<object-name>flaperonR3</object-name>
		<object-name>flaperonR4</object-name>
		<property>sim/systems/wingflexer/z-m</property>
		<factor>2.85</factor>
		<offset-deg>0</offset-deg>
		<center>
			<x-m>  0.00</x-m>
			<y-m>6.68526</y-m>
			<z-m> 0.38979</z-m>
		</center>
		<axis>
			<x>1.0</x>
			<y>0.0</y>
			<z>0.0</z>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>wing.R4</object-name>
		<object-name>wing.R5</object-name>
		<object-name>flaperonR4</object-name>
		<property>sim/systems/wingflexer/z-m</property>
		<factor>2.85</factor>
		<offset-deg>0</offset-deg>
		<center>
			<x-m>  0.00</x-m>
			<y-m>8.5421</y-m>
			<z-m>0.63358</z-m>
		</center>
		<axis>
			<x>1.0</x>
			<y>0.0</y>
			<z>0.0</z>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>wing.R5</object-name>
		<property>sim/systems/wingflexer/z-m</property>
		<factor>2.85</factor>
		<offset-deg>0</offset-deg>
		<center>
			<x-m>  0.00</x-m>
			<y-m>9.77128</y-m>
			<z-m>0.94053</z-m>
		</center>
		<axis>
			<x>1.0</x>
			<y>0.0</y>
			<z>0.0</z>
		</axis>
	</animation>
	<!-- FLIGHT CONTROL SURFACES -->
	<animation>
		<type>rotate</type>
		<object-name>flaperonL1</object-name>
		<property>surface-positions/left-aileron-pos-norm</property>
		<factor>-25</factor>
		<axis>
			<x1-m>-0.7672</x1-m>
			<y1-m>-0.42402</y1-m>
			<z1-m>-0.11554</z1-m>
			<x2-m>-1.01862</x2-m>
			<y2-m>-3.67226</y2-m>
			<z2-m>0.06603</z2-m>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>flaperonL2</object-name>
		<property>surface-positions/left-aileron-pos-norm</property>
		<factor>-25</factor>
		<axis>
			<x1-m>-1.01862</x1-m>
			<y1-m>-3.67226</y1-m>
			<z1-m>0.06603</z1-m>
			<x2-m>-1.17099</x2-m>
			<y2-m>-6.69031</y2-m>
			<z2-m>0.36452</z2-m>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>flaperonL3</object-name>
		<property>surface-positions/left-aileron-pos-norm</property>
		<factor>-25</factor>
		<axis>
			<x1-m>-1.17099</x1-m>
			<y1-m>-6.69031</y1-m>
			<z1-m>0.36452</z1-m>
			<x2-m>-1.16176</x2-m>
			<y2-m>-8.54175</y2-m>
			<z2-m>0.60234</z2-m>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>flaperonL4</object-name>
		<property>surface-positions/left-aileron-pos-norm</property>
		<factor>-25</factor>
		<axis>
			<x1-m>-1.16176</x1-m>
			<y1-m>-8.54175</y1-m>
			<z1-m>0.60234</z1-m>
			<x2-m>-0.98371</x2-m>
			<y2-m>-9.77076</y2-m>
			<z2-m>0.93033</z2-m>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>flaperonR1</object-name>
		<property>surface-positions/right-aileron-pos-norm</property>
		<factor>25</factor>
		<axis>
			<x1-m>-0.7672</x1-m>
			<y1-m>0.42402</y1-m>
			<z1-m>-0.11554</z1-m>
			<x2-m>-1.01862</x2-m>
			<y2-m>3.67226</y2-m>
			<z2-m>0.06603</z2-m>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>flaperonR2</object-name>
		<property>surface-positions/right-aileron-pos-norm</property>
		<factor>25</factor>
		<axis>
			<x1-m>-1.01862</x1-m>
			<y1-m>3.67226</y1-m>
			<z1-m>0.06603</z1-m>
			<x2-m>-1.17099</x2-m>
			<y2-m>6.69031</y2-m>
			<z2-m>0.36452</z2-m>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>flaperonR3</object-name>
		<property>surface-positions/right-aileron-pos-norm</property>
		<factor>25</factor>
		<axis>
			<x1-m>-1.17099</x1-m>
			<y1-m>6.69031</y1-m>
			<z1-m>0.36452</z1-m>
			<x2-m>-1.16176</x2-m>
			<y2-m>8.54175</y2-m>
			<z2-m>0.60234</z2-m>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>flaperonR4</object-name>
		<property>surface-positions/right-aileron-pos-norm</property>
		<factor>25</factor>
		<axis>
			<x1-m>-1.16176</x1-m>
			<y1-m>8.54175</y1-m>
			<z1-m>0.60234</z1-m>
			<x2-m>-0.98371</x2-m>
			<y2-m>9.77076</y2-m>
			<z2-m>0.93033</z2-m>
		</axis>
	</animation>
	<animation>
		<type>translate</type>
		<object-name>spoilerL</object-name>
		<object-name>spoilerR</object-name>
		<property>surface-positions/speedbrake-pos-norm</property>
		<factor>0.07</factor>
		<axis>
			<x>0</x>
			<y>0</y>
			<z>1</z>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>rudder.m</object-name>
		<object-name>wheelR.m</object-name>
		<object-name>rudder.s</object-name>
		<object-name>rudder.act.L</object-name>
		<object-name>rudder.act.R</object-name>
		<property>surface-positions/rudder-pos-norm</property>
		<factor>-24</factor>
		<axis>
			<object-name>rudder.axis</object-name>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>rudder.act.L</object-name>
		<property>surface-positions/rudder-pos-norm</property>
		<factor>24</factor>
		<axis>
			<object-name>rudder.act.L.axis</object-name>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>rudder.act.R</object-name>
		<property>surface-positions/rudder-pos-norm</property>
		<factor>24</factor>
		<axis>
			<object-name>rudder.act.R.axis</object-name>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>elevator</object-name>
		<property>surface-positions/elevator-pos-norm</property>
		<factor>24</factor>
		<axis>
			<object-name>elevator.axis</object-name>
		</axis>
	</animation>
	
	<!-- GEAR -->
	<animation>
		<type>spin</type>
		<object-name>wheelF</object-name>	
		<property>gear/gear[0]/rollspeed-ms</property>
		<factor>-76.397</factor> <!-- 60 / ( pi * d ) -->
		<axis><y>1</y></axis>
		<center>
			<x-m>-3.5279  </x-m>
			<z-m>-0.609662</z-m>
		</center>
	</animation>
	<!-- Main Gear -->
	<!--	Use compression-norm because it is transmitted over MP by standard; this is actually compression-ft	-->
	<animation>
		<type>rotate</type>
		<object-name>gear.M.1</object-name>
		<object-name>gear.M.2</object-name>
		<property>gear/gear[1]/compression-norm</property>
		<factor>-288.136</factor><!-- -34.0 deg per 0.036 m = 0.118 ft -->
		<axis>
			<object-name>gear.M.1.axis</object-name>
		</axis>
	</animation>
	<!-- keep gear.M.2 (gear compression damper shaft) pointed at gear.M.3 (gear compression damper housing) -->
	<animation>
		<type>locked-track</type>
		<object-name>gear.M.2</object-name>
		<condition>
			<equals>
				<property>gear/gear[1]/position-norm</property>
				<value>1</value>
			</equals>
		</condition>
		<center> <!-- lower hinge -->
			<x-m>-1.58411 </x-m>
			<y-m> 0.0     </y-m>
			<z-m>-0.746817</z-m>
		</center>
		<lock-axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</lock-axis>
		
		<track-axis>
			<x> 0.05901 </x>
			<y> 0.0     </y>
			<z> 0.187184</z>
		</track-axis>
		
		<target-name>gear.M.3</target-name>
		<target-center>
			<x-m> -1.5251  </x-m>
			<y-m>  0.0     </y-m>
			<z-m> -0.559633</z-m>
		</target-center>
	</animation>
	<!-- Retract / Extend -->
	<animation>
		<type>locked-track</type>
		<object-name>gear.M.6</object-name> <!-- upper strut -->
		<center> <!-- rear-upper hinge -->
			<x-m> -1.09827 </x-m>
			<y-m>  0.0     </y-m>
			<z-m> -0.377813</z-m>
		</center>
		<lock-axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</lock-axis>
		
		<track-axis>
			<x>-0.34575 </x>
			<y> 0.0     </y>
			<z>-0.278822</z>
		</track-axis>
		
		<target-name>gear.M.4</target-name>
		<target-center> <!-- forward-lower hinge -->
			<x-m>-1.44402 </x-m>
			<y-m> 0.0     </y-m>
			<z-m>-0.656635</z-m>
		</target-center>
		
		
		<slave-name>gear.M.5</slave-name> <!-- lower strut -->
		<slave-center> <!-- inter-strut hinge -->
			<x-m>-1.29668 </x-m>
			<y-m> 0.0     </y-m>
			<z-m>-0.564948</z-m>
		</slave-center>
		
	</animation>
	<animation>
		<type>locked-track</type>
		<object-name>gear.M.3</object-name> <!-- oleo -->
		<condition>
			<not-equals>
				<property>gear/gear[1]/position-norm</property>
				<value>1</value>
			</not-equals>
		</condition>
		<center> <!-- oleo upper hinge -->
			<x-m>-1.52089</x-m>
			<y-m>0.0</y-m>
			<z-m>-0.545207</z-m>
		</center>
		<lock-axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</lock-axis>
		
		<track-axis>
			<x> 0.04833 </x>
			<y> 0.0     </y>
			<z>-0.191188 </z>
		</track-axis>
		
		<target-name>gear.M.4</target-name>
		<target-center> <!-- wheel assembly rear hinge -->
			<x-m> -1.47256 </x-m>
			<y-m>  0.0     </y-m>
			<z-m> -0.736395</z-m>
		</target-center>
		
		
		<slave-name>gear.M.1</slave-name> <!-- wheel assembly -->
		<slave-center> <!-- oleo lower hinge -->
			<x-m>-1.58411 </x-m>
			<y-m> 0.0     </y-m>
			<z-m>-0.746817</z-m>
		</slave-center>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>gear.M.4</object-name>
		<property>gear/gear[1]/position-norm</property>
		<interpolation>
			<entry>
				<ind>1.0</ind>
				<dep>0</dep>
			</entry>
			<entry>
				<ind>0.0</ind>
				<dep>125</dep>
			</entry>
		</interpolation>
		<axis>
			<object-name>gear.M.4.axis</object-name>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>geardoor.L</object-name>
		<property>gear/gear[1]/position-norm</property>
		<interpolation>
			<entry>
				<ind>1.0</ind>
				<dep>90</dep>
			</entry>
			<entry>
				<ind>0.1</ind>
				<dep>90</dep>
			</entry>
			<entry>
				<ind>0</ind>
				<dep>0</dep>
			</entry>
		</interpolation>
		<axis>
			<object-name>geardoor.L.axis</object-name>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>geardoor.R</object-name>
		<property>gear/gear[1]/position-norm</property>
		<interpolation>
			<entry>
				<ind>1.0</ind>
				<dep>-90</dep>
			</entry>
			<entry>
				<ind>0.1</ind>
				<dep>-90</dep>
			</entry>
			<entry>
				<ind>0</ind>
				<dep>0</dep>
			</entry>
		</interpolation>
		<axis>
			<object-name>geardoor.R.axis</object-name>
		</axis>
	</animation>
	<animation>
		<type>spin</type>
		<object-name>wheel.M</object-name>
		<condition>
			<equals>
				<property>gear/gear[1]/position-norm</property>
				<value>1.0</value>
			</equals>
		</condition>		
		<property>gear/gear[1]/rollspeed-ms</property>
		<factor>-50.261</factor> <!-- 60 / ( pi * d ) -->
		<axis>
			<object-name>wheel.M.axis</object-name>
		</axis>
	</animation>
	<!-- Tail Wheel -->
	<animation>
		<type>spin</type>
		<object-name>wheelR.s</object-name>	
		<property>gear/gear[2]/rollspeed-ms</property>
		<factor>-95.496</factor> <!-- 60 / ( pi * d ) -->
		<axis>
			<object-name>wheelR.s.axis</object-name>
		</axis>
	</animation>
	<animation>
		<type>spin</type>
		<object-name>wheelR.m</object-name>	
		<property>gear/gear[2]/rollspeed-ms</property>
		<factor>-95.496</factor> <!-- 60 / ( pi * d ) -->
		<axis>
			<object-name>wheelR.m.axis</object-name>
		</axis>
	</animation>
	
	<!--	Only for M: Engine	-->
	<animation>
		<name>prop.tower.complete</name>
		<object-name>prop.tower</object-name>
		<object-name>prop.disc</object-name>
		<object-name>prop.blur</object-name>
		<object-name>prop</object-name>
		<object-name>prop.spinner2</object-name>
		<object-name>engine</object-name>
	</animation>
	<animation>
		<name>arcus.m</name>
		<object-name>prop.tower.complete</object-name>
		<object-name>fuselage.m</object-name>
		<object-name>rudder.m</object-name>
		<object-name>wheelR.m</object-name>
		<object-name>engine.door.L</object-name>
		<object-name>engine.door.R</object-name>
	</animation>
	<animation>
		<name>arcus.s</name>
		<object-name>fuselage.s</object-name>
		<object-name>rudder.s</object-name>
		<object-name>wheelR.s</object-name>
	</animation>
	<animation>
		<type>select</type>
		<condition>
			<equals>
				<property>sim/model/variant</property>
				<value>0</value>
			</equals>
		</condition>
		<object-name>arcus.s</object-name>
	</animation>
	<animation>
		<type>select</type>
		<condition>
			<equals>
				<property>sim/model/variant</property>
				<value>1</value>
			</equals>
		</condition>
		<object-name>arcus.m</object-name>
	</animation>
	<animation>
		<type>select</type>
		<condition>
			<greater-than-equals>
				<property>engines/engine/rpm</property>
				<value>3500</value>
			</greater-than-equals>
		</condition>
		<object-name>prop.disc</object-name>
	</animation>
	<animation>
		<type>select</type>
		<condition>
			<greater-than-equals>
				<property>engines/engine/rpm</property>
				<value>800</value>
			</greater-than-equals>
			<less-than>
				<property>engines/engine/rpm</property>
				<value>3500</value>
			</less-than>
		</condition>
		<object-name>prop.blur</object-name>
	</animation>
	<animation>
		<type>select</type>
		<condition>
			<less-than>
				<property>engines/engine/rpm</property>
				<value>1200</value>
			</less-than>
			<not-equals>
				<property>engines/engine[0]/prop-pos-norm</property>
				<value>0.0</value>
			</not-equals>
		</condition>
		<object-name>prop</object-name>
	</animation>
	<animation>
		<type>spin</type>
		<condition>
			<equals>
				<property>engines/engine[0]/prop-pos-norm</property>
				<value>1.0</value>
			</equals>
		</condition>
		<object-name>prop.disc</object-name>
		<object-name>prop.blur</object-name>
		<object-name>prop</object-name>
		<object-name>prop.spinner2</object-name>
		<property>engines/engine/rpm</property>
		<axis>
			<x1-m>-0.651737</x1-m>
			<y1-m>0.0</y1-m>
			<z1-m>1.01346</z1-m>
			<x2-m>-0.340998</x2-m>
			<y2-m>0.0</y2-m>
			<z2-m>0.947409</z2-m>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>prop.tower.complete</object-name>
		<property>engines/engine[0]/prop-pos-norm</property>
		<offset-deg>83.5</offset-deg>
		<factor>-83.5</factor>
		<axis>
			<y>1</y>
		</axis>
		<center>
			<x-m>-0.689807</x-m>
			<z-m>-0.049112</z-m>
		</center>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>engine.door.L</object-name>
		<property>engines/engine[0]/prop-pos-norm</property>
		<interpolation>
			<entry>
				<ind>1.0</ind>
				<dep>40</dep>
			</entry>
			<entry>
				<ind>0.3</ind>
				<dep>50</dep>
			</entry>
			<entry>
				<ind>0.1</ind>
				<dep>70</dep>
			</entry>
			<entry>
				<ind>0</ind>
				<dep>0</dep>
			</entry>
		</interpolation>
		<axis>
			<x1-m>-0.069931</x1-m>
			<y1-m>-0.176059</y1-m>
			<z1-m>-0.042373</z1-m>
			<x2-m>1.05073</x2-m>
			<y2-m>-0.118964</y2-m>
			<z2-m>-0.107414</z2-m>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>engine.door.R</object-name>
		<property>engines/engine[0]/prop-pos-norm</property>
		<interpolation>
			<entry>
				<ind>1.0</ind>
				<dep>-40</dep>
			</entry>
			<entry>
				<ind>0.3</ind>
				<dep>-50</dep>
			</entry>
			<entry>
				<ind>0.1</ind>
				<dep>-70</dep>
			</entry>
			<entry>
				<ind>0</ind>
				<dep>0</dep>
			</entry>
		</interpolation>
		<axis>
			<x1-m>-0.069931</x1-m>
			<y1-m>0.176059</y1-m>
			<z1-m>-0.042373</z1-m>
			<x2-m>1.05073</x2-m>
			<y2-m>0.118964</y2-m>
			<z2-m>-0.107414</z2-m>
		</axis>
	</animation>
	
	<!--	CANOPY	-->
	<animation>
		<type>pick</type>
		<object-name>canopy</object-name>
		<action>
			<button>0</button>
			<repeatable>false</repeatable>
			<binding>
				<command>property-toggle</command>
				<property>arcus/canopy-cmd</property>
			</binding>
		</action>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>window.ext</object-name>
		<object-name>canopy</object-name>
		<object-name>canopy.window.F</object-name>
		<object-name>canopy.window.small_window.F</object-name>
		<object-name>canopy.window.R</object-name>
		<object-name>canopy.window.small_window.R</object-name>
		<property>arcus/canopy-norm</property>
		<interpolation>
			<entry>
				<ind>0.0</ind>
				<dep>0</dep>
			</entry>
			<entry>
				<ind>0.1</ind>
				<dep>-1</dep>
			</entry>
			<entry>
				<ind>1</ind>
				<dep>-90</dep>
			</entry>
		</interpolation>
		<axis>
			<x1-m>-3.27191</x1-m>
			<y1-m>0.28064</y1-m>
			<z1-m>-0.24765</z1-m>
			<x2-m>-1.84713</x2-m>
			<y2-m>0.3468</y2-m>
			<z2-m>-0.14673</z2-m>
		</axis>
	</animation>
	
	<!--	########
		 MODELS 
		########	-->
	<!-- Drop water ballast -->
	
	<!-- Wing water ballast valves: front third of wing chord, about 0.2 m lateral of outboard airbrake edge ref. FM, p.7.9.2 -->
	<model>
		<path>Effects/water_ballast/water_ballast.xml</path>
		<overlay>
			<params>
				<flow_rate>fdm/jsbsim/systems/water-ballast/wing-outflow-rate-pps[0]</flow_rate>
			</params>
		</overlay>
		<offsets>
			<x-m>-1.6 </x-m>
			<y-m>-4.1 </y-m> <!-- 3.75 outboard of wing root ref. FM, p. 4.5.6.2 -->
			<z-m> 0.05</z-m>
		</offsets>
	</model>
	<model>
		<path>Effects/water_ballast/water_ballast.xml</path>
		<overlay>
			<params>
				<flow_rate>fdm/jsbsim/systems/water-ballast/wing-outflow-rate-pps[1]</flow_rate>
			</params>
		</overlay>
		<offsets>
			<x-m>-1.6 </x-m>
			<y-m> 4.1 </y-m> <!-- 3.75 outboard of wing root ref. FM, p. 4.5.6.2 -->
			<z-m> 0.05</z-m>
		</offsets>
	</model>
	<!-- Tail water ballast valve: in front of lower rudder end ref. FM, p.7.9.3 -->
	<model>
		<path>Effects/water_ballast/water_ballast.xml</path>
		<overlay>
			<params>
				<flow_rate>fdm/jsbsim/systems/water-ballast/tail-outflow-rate-pps</flow_rate>
			</params>
		</overlay>
		<offsets>
			<x-m> 3.85</x-m>
			<y-m> 0.0 </y-m>
			<z-m>-0.35</z-m>
		</offsets>
	</model>
	<model>
		<path>Interior/interior.xml</path>
		<usage>interior</usage>
	</model>
	
	<!--	#########
		 EFFECTS 
		#########	-->
	<effect>
		<inherits-from>Effects/model-transparent</inherits-from>
		<object-name>window.ext</object-name>
		<object-name>window.int</object-name>
		<object-name>sliding_window.front</object-name>
		<object-name>sliding_window.rear</object-name>
		<object-name>prop.disc</object-name>
		<object-name>prop.blur</object-name>
	</effect>
	<effect>
		<inherits-from>Aircraft/Arcus/Models/Effects/model</inherits-from>
		<object-name>wing.L1</object-name>
		<object-name>wing.L2</object-name>
		<object-name>wing.L3</object-name>
		<object-name>wing.L4</object-name>
		<object-name>wing.L5</object-name>
		<object-name>wing.R1</object-name>
		<object-name>wing.R2</object-name>
		<object-name>wing.R3</object-name>
		<object-name>wing.R4</object-name>
		<object-name>wing.R5</object-name>
		<object-name>flaperonL3</object-name>
		<object-name>flaperonL4</object-name>
		<object-name>flaperonR3</object-name>
		<object-name>flaperonR4</object-name>
		<object-name>flaperonL1</object-name>
		<object-name>flaperonL2</object-name>
		<object-name>flaperonR1</object-name>
		<object-name>flaperonR2</object-name>
		<object-name>spoilerL</object-name>
		<object-name>spoilerR</object-name>
		<object-name>vstab</object-name>
		<object-name>elevator</object-name>
		<object-name>hstab</object-name>
		<object-name>rudder.s</object-name>
		<object-name>rudder.m</object-name>
		<object-name>fuselage.s</object-name>
		<object-name>fuselage.m</object-name>
		<object-name>engine.door.L</object-name>
		<object-name>engine.door.R</object-name>
		<object-name>canopy</object-name>
		<object-name>geardoor.L</object-name>
		<object-name>geardoor.R</object-name>
		<object-name>gearfairing1</object-name>
		<object-name>gearfairing2</object-name>
		<object-name>gearfairing3</object-name>
	</effect>
	<!--	########
		 LIVERY 
		########	-->
	<animation>
		<type>material</type>
		<object-name>fuselage.s</object-name>
		<object-name>fuselage.m</object-name>
		<object-name>engine.door.L</object-name>
		<object-name>engine.door.R</object-name>
		<object-name>canopy</object-name>
		<object-name>geardoor.L</object-name>
		<object-name>geardoor.R</object-name>
		<object-name>gearfairing1</object-name>
		<object-name>gearfairing2</object-name>
		<object-name>gearfairing3</object-name>
		<object-name>wing.L1</object-name>
		<object-name>wing.L2</object-name>
		<object-name>wing.L3</object-name>
		<object-name>wing.L4</object-name>
		<object-name>wing.L5</object-name>
		<object-name>wing.R1</object-name>
		<object-name>wing.R2</object-name>
		<object-name>wing.R3</object-name>
		<object-name>wing.R4</object-name>
		<object-name>wing.R5</object-name>
		<object-name>flaperonL3</object-name>
		<object-name>flaperonL4</object-name>
		<object-name>flaperonR3</object-name>
		<object-name>flaperonR4</object-name>
		<object-name>flaperonL1</object-name>
		<object-name>flaperonL2</object-name>
		<object-name>flaperonR1</object-name>
		<object-name>flaperonR2</object-name>
		<object-name>spoilerL</object-name>
		<object-name>spoilerR</object-name>
		<object-name>vstab</object-name>
		<object-name>elevator</object-name>
		<object-name>hstab</object-name>
		<object-name>rudder.s</object-name>
		<object-name>rudder.m</object-name>
		<object-name>prop</object-name>
		<property-base>sim/model/livery</property-base>
		<texture-prop>texture</texture-prop>
		<texture>texture.png</texture>
	</animation>
</PropertyList>
