<?xml version="1.0" encoding="utf-8"?>

<!--

Notes on certain tags:

SIM: Converts simvar to keyframes: simvar * scale + bias = keyframes

CALLBACK_JUMP_DRAGGING: Units are in pixels.

CALLBACK_DRAGGING:  Converts simvar units to event units, which are the units of the internal variable.
	scale: Scales from simvar units to event units
	yscale: Scales movement delta in pixels to event units
	minvalue: min event value in event units
	maxvalue: max event value in event units
	
CODE: Written in postfix stack-based language.

TOOLTIP_TEXT: Convert code to text using %(code) construct.  Use %!d! construct to printf.

G:Variables: Global to file.  Not shared by 2d and VC.

L:Variables: Global and shared by both 2d and VC.  Use these instead of G:Variables.

Part names: Must NOT have trailing "_#".  This will be stripped off by makemdl.

Some units:
	percent: 0 - 100
	part: 0 - 1
	position: 0 - 1
-->

<part_dictionary>

<part>
	<name>switch_master_battery</name>
	<animation>
		<parameter>
			<sim>
				<variable>ELECTRICAL MASTER BATTERY</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_BATTERY_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_BATTERY_SWITCH</tooltip_id>
		<event_id>TOGGLE_MASTER_BATTERY</event_id>
	</mouserect>
</part>

<part>
	<name>switch_master_alternator</name>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG MASTER ALTERNATOR:1</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_ALTERNATOR_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_ALTERNATOR_SWITCH</tooltip_id>
		<event_id>TOGGLE_MASTER_ALTERNATOR</event_id>
	</mouserect>
</part>

<part>
	<name>switch_alt_field</name>
	<copy>switch_master_alternator</copy>
</part>


<part>
	<name>switch_master_alternator0</name>
	<copy>switch_master_alternator</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG MASTER ALTERNATOR:1</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<event_id>TOGGLE_ALTERNATOR1</event_id>
	</mouserect>
</part>

<part>
	<name>switch_master_alternator1</name>
	<copy>switch_master_alternator</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG MASTER ALTERNATOR:2</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<event_id>TOGGLE_ALTERNATOR2</event_id>
	</mouserect>
</part>

<part>
	<name>switch_master_alternator2</name>
	<copy>switch_master_alternator</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG MASTER ALTERNATOR:3</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<event_id>TOGGLE_ALTERNATOR3</event_id>
	</mouserect>
</part>

<part>
	<name>switch_master_alternator3</name>
	<copy>switch_master_alternator</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG MASTER ALTERNATOR:4</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<event_id>TOGGLE_ALTERNATOR4</event_id>
	</mouserect>
</part>

<part>
	<name>switch_master_battery_alternator</name>
	<animation>
		<parameter>
			<sim>
				<variable>ELECTRICAL MASTER BATTERY</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_MASTER_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_MASTER_SWITCH</tooltip_id>
		<callback_code>(A:ELECTRICAL MASTER BATTERY, bool) (A:GENERAL ENG MASTER ALTERNATOR:1, bool) == if{ (>K:TOGGLE_MASTER_ALTERNATOR) } (>K:TOGGLE_MASTER_BATTERY)</callback_code>
	</mouserect>
</part>

<part>
	<name>switch_ignition_magnetos_dc3</name>
	<animation>
		<parameter>
			<!-- 0 = Off, 25 = Left, 50 = Right, 75 = Both -->
			<code>(A:Recip eng right magneto:1,bool) 2 * (A:Recip eng left magneto:1,bool) + 25 *</code>
			<lag>200</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_MAGNETO_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_MAGNETO_SWITCH</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_code>
			(M:Event) 'LeftSingle' scmp 0 !=
			if{
			  <!-- Calculate amount to change value by pixel offset -->
			  (L:Magneto0Click, position) (M:X) - 10 / int s0 0 !=
			  if{
			  
			    <!-- Calculate current value -->
                (A:Recip eng right magneto:1,bool) 2 * (A:Recip eng left magneto:1,bool) + 
              
                <!-- Add amount to change to get new value -->
                l0 + 3 min 0 max s1
			  
			    <!-- Both -->
			    3 == if{ 3 (&gt;K:MAGNETO1_SET) }
			      <!-- Right -->
			      els{ l1 2 == if{ 1 (&gt;K:MAGNETO1_SET) }
				    <!-- Left -->
				    els{ l1 1 == if{ 2 (&gt;K:MAGNETO1_SET) }
				      <!-- Off -->
				      els{ 0 (&gt;K:MAGNETO1_SET) }
				       }
				     }
				}
			  }
			(M:X) (&gt;L:Magneto0Click, position)
		</callback_code>
	</mouserect>
</part>

<part>
	<name>switch_ignition_magnetos0_dc3</name>
	<copy>switch_ignition_magnetos_dc3</copy>
	<animation>
		<parameter>
			<code>(A:Recip eng right magneto:1,bool) 2 * (A:Recip eng left magneto:1,bool) + 25 *</code>
		</parameter>
	</animation>
	<mouserect>
		<callback_code>
			(M:Event) 'LeftSingle' scmp 0 !=
			if{
			  <!-- Calculate amount to change value by pixel offset -->
			  (L:Magneto0Click, position) (M:X) - 10 / int s0 0 !=
			  if{
			  
			    <!-- Calculate current value -->
                (A:Recip eng right magneto:1,bool) 2 * (A:Recip eng left magneto:1,bool) + 
              
                <!-- Add amount to change to get new value -->
                l0 + 3 min 0 max s1
			  
			    <!-- Both -->
			    3 == if{ 3 (&gt;K:MAGNETO1_SET) }
			      <!-- Right -->
			      els{ l1 2 == if{ 1 (&gt;K:MAGNETO1_SET) }
				    <!-- Left -->
				    els{ l1 1 == if{ 2 (&gt;K:MAGNETO1_SET) }
				      <!-- Off -->
				      els{ 0 (&gt;K:MAGNETO1_SET) }
				       }
				     }
				}
			  }
			(M:X) (&gt;L:Magneto0Click, position)
		</callback_code>
	</mouserect>
</part>

<part>
	<name>switch_ignition_magnetos1_dc3</name>
	<copy>switch_ignition_magnetos_dc3</copy>
	<animation>
		<parameter>
			<code>(A:Recip eng right magneto:2,bool) 2 * (A:Recip eng left magneto:2,bool) + 25 *</code>
		</parameter>
	</animation>
	<mouserect>
		<callback_code>
			(M:Event) 'LeftSingle' scmp 0 !=
			if{
			  <!-- Calculate amount to change value by pixel offset -->
			  (M:X) (L:Magneto1Click, position) - 10 / int s0 0 !=
			  if{
			  
			    <!-- Calculate current value -->
                (A:Recip eng right magneto:2,bool) 2 * (A:Recip eng left magneto:2,bool) + 
              
                <!-- Add amount to change to get new value -->
                l0 + 3 min 0 max s1
			  
			    <!-- Both -->
			    3 == if{ 3 (&gt;K:MAGNETO2_SET) }
			      <!-- Right -->
			      els{ l1 2 == if{ 1 (&gt;K:MAGNETO2_SET) }
				    <!-- Left -->
				    els{ l1 1 == if{ 2 (&gt;K:MAGNETO2_SET) }
				      <!-- Off -->
				      els{ 0 (&gt;K:MAGNETO2_SET) }
				       }
				     }
				}
			  }
			(M:X) (&gt;L:Magneto1Click, position)
		</callback_code>
	</mouserect>
</part>

<part>
	<name>switch_ignition_magnetos_spirit</name>
	<animation>
		<parameter>
			<code>(A:OLD ENG STARTER:1, enum) 0 max 4 min 25 *</code>
			<lag>200</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_MAGNETO_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_MAGNETO_SWITCH</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_jump_dragging>
			<xmovement>
				<delta>-20</delta>
				<event_id_inc>MAGNETO_INCR</event_id_inc>
				<event_id_dec>MAGNETO_DECR</event_id_dec>
			</xmovement>
		</callback_jump_dragging>
	</mouserect>
</part>

<part>
	<name>switch_ignition_magnetos</name>
	<animation>
		<parameter>
			<code>(A:OLD ENG STARTER:1, enum) 0 max 4 min 25 *</code>
			<lag>200</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_MAGNETO_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_MAGNETO_SWITCH</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_jump_dragging>
			<xmovement>
				<delta>10</delta>
				<event_id_inc>MAGNETO_INCR</event_id_inc>
				<event_id_dec>MAGNETO_DECR</event_id_dec>
			</xmovement>
		</callback_jump_dragging>
	</mouserect>
</part>

<part>
	<name>switch_ignition_magnetos0</name>
	<copy>switch_ignition_magnetos</copy>
	<animation>
		<parameter>
			<code>(A:OLD ENG STARTER:1, enum) 0 max 4 min 25 *</code>
		</parameter>
	</animation>
	<mouserect>
		<callback_jump_dragging>
			<xmovement>
				<event_id_inc>MAGNETO1_INCR</event_id_inc>
				<event_id_dec>MAGNETO1_DECR</event_id_dec>
			</xmovement>
		</callback_jump_dragging>
	</mouserect>
</part>

<part>
	<name>switch_ignition_magnetos1</name>
	<copy>switch_ignition_magnetos</copy>
	<animation>
		<parameter>
			<code>(A:OLD ENG STARTER:2, enum) 0 max 4 min 25 *</code>
		</parameter>
	</animation>
	<mouserect>
		<callback_jump_dragging>
			<xmovement>
				<event_id_inc>MAGNETO2_INCR</event_id_inc>
				<event_id_dec>MAGNETO2_DECR</event_id_dec>
			</xmovement>
		</callback_jump_dragging>
	</mouserect>
</part>

<part>
	<name>switch_ignition_magnetos2</name>
	<copy>switch_ignition_magnetos</copy>
	<animation>
		<parameter>
			<code>(A:OLD ENG STARTER:3, enum) 0 max 4 min 25 *</code>
		</parameter>
	</animation>
	<mouserect>
		<callback_jump_dragging>
			<xmovement>
				<event_id_inc>MAGNETO3_INCR</event_id_inc>
				<event_id_dec>MAGNETO3_DECR</event_id_dec>
			</xmovement>
		</callback_jump_dragging>
	</mouserect>
</part>

<part>
	<name>switch_ignition_magnetos3</name>
	<copy>switch_ignition_magnetos</copy>
	<animation>
		<parameter>
			<code>(A:OLD ENG STARTER:4, enum) 0 max 4 min 25 *</code>
		</parameter>
	</animation>
	<mouserect>
		<callback_jump_dragging>
			<xmovement>
				<event_id_inc>MAGNETO4_INCR</event_id_inc>
				<event_id_dec>MAGNETO4_DECR</event_id_dec>
			</xmovement>
		</callback_jump_dragging>
	</mouserect>
</part>

<part>
	<name>switch_ignition_magnetos_trimotor</name>
	<animation>
		<parameter>
			<code>(A:Recip eng left magneto:1,bool) 2 * (A:Recip eng right magneto:1,bool) + 25 *</code>
			<lag>200</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_MAGNETO_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_MAGNETO_SWITCH</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_code>
			(M:Event) 'LeftSingle' scmp 0 !=
			if{
			  <!-- Calculate amount to change value by pixel offset -->
			  (L:Magneto0Click, position) (M:X) - 10 / int s0 0 !=
			  if{
			  
			    <!-- Calculate current value -->
                (A:Recip eng left magneto:1,bool) 2 * (A:Recip eng right magneto:1,bool) + 
              
                <!-- Add amount to change to get new value -->
                l0 + 3 min 0 max
                
                <!-- Value corresponds to simvar enum, so directly set simvar -->
                <!-- Order is: Off, Right, Left, Both -->
                (&gt;K:MAGNETO1_SET)
			  
				}
			  }
			(M:X) (&gt;L:Magneto0Click, position)
		</callback_code>
	</mouserect>
</part>

<part>
	<name>switch_ignition_magnetos0_trimotor</name>
	<copy>switch_ignition_magnetos_trimotor</copy>
	<animation>
		<parameter>
			<code>(A:Recip eng left magneto:1,bool) 2 * (A:Recip eng right magneto:1,bool) + 25 *</code>
			<lag>200</lag>
		</parameter>
	</animation>
	<mouserect>
		<callback_code>
			(M:Event) 'LeftSingle' scmp 0 !=
			if{
			  <!-- Calculate amount to change value by pixel offset -->
			  (L:Magneto0Click, position) (M:X) - 10 / int s0 0 !=
			  if{
			  
			    <!-- Calculate current value -->
                (A:Recip eng left magneto:1,bool) 2 * (A:Recip eng right magneto:1,bool) + 
              
                <!-- Add amount to change to get new value -->
                l0 + 3 min 0 max
                
                <!-- Value corresponds to simvar enum, so directly set simvar -->
                <!-- Order is: Off, Right, Left, Both -->
                (&gt;K:MAGNETO1_SET)
			  
				}
			  }
			(M:X) (&gt;L:Magneto0Click, position)
		</callback_code>
	</mouserect>
</part>

<part>
	<name>switch_ignition_magnetos1_trimotor</name>
	<copy>switch_ignition_magnetos_trimotor</copy>
	<animation>
		<parameter>
			<code>(A:Recip eng left magneto:2,bool) 2 * (A:Recip eng right magneto:2,bool) + 25 *</code>
			<lag>200</lag>
		</parameter>
	</animation>
	<mouserect>
		<callback_code>
			(M:Event) 'LeftSingle' scmp 0 !=
			if{
			  <!-- Calculate amount to change value by pixel offset -->
			  (L:Magneto1Click, position) (M:X) - 10 / int s0 0 !=
			  if{
			  
			    <!-- Calculate current value -->
                (A:Recip eng left magneto:2,bool) 2 * (A:Recip eng right magneto:2,bool) + 
              
                <!-- Add amount to change to get new value -->
                l0 + 3 min 0 max
                
                <!-- Value corresponds to simvar enum, so directly set simvar -->
                <!-- Order is: Off, Right, Left, Both -->
                (&gt;K:MAGNETO2_SET)
			  
				}
			  }
			(M:X) (&gt;L:Magneto1Click, position)
		</callback_code>
	</mouserect>
</part>

<part>
	<name>switch_ignition_magnetos2_trimotor</name>
	<copy>switch_ignition_magnetos_trimotor</copy>
	<animation>
		<parameter>
			<code>(A:Recip eng left magneto:3,bool) 2 * (A:Recip eng right magneto:3,bool) + 25 *</code>
			<lag>200</lag>
		</parameter>
	</animation>
	<mouserect>
		<callback_code>
			(M:Event) 'LeftSingle' scmp 0 !=
			if{
			  <!-- Calculate amount to change value by pixel offset -->
			  (L:Magneto2Click, position) (M:X) - 10 / int s0 0 !=
			  if{
			  
			    <!-- Calculate current value -->
                (A:Recip eng left magneto:3,bool) 2 * (A:Recip eng right magneto:3,bool) + 
              
                <!-- Add amount to change to get new value -->
                l0 + 3 min 0 max
                
                <!-- Value corresponds to simvar enum, so directly set simvar -->
                <!-- Order is: Off, Right, Left, Both -->
                (&gt;K:MAGNETO3_SET)
			  
				}
			  }
			(M:X) (&gt;L:Magneto2Click, position)
		</callback_code>
	</mouserect>
</part>

<part>
	<name>switch_master_ignition</name>
	<animation>
		<parameter>
			<sim>
				<variable>MASTER IGNITION SWITCH</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>200</lag>
		</parameter>
	</animation>
	<mouserect>
        <cursor>Hand</cursor>
		<help_id>HELPID_MASTER_IGNITION_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_MASTER_IGNITION_SWITCH</tooltip_id>
		<event_id>TOGGLE_MASTER_IGNITION_SWITCH</event_id>
	</mouserect>
</part>

<part>
	<name>switch_pitot_heat</name>
	<animation>
		<parameter>
			<sim>
				<variable>PITOT HEAT</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_PITOT_HEAT_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_PITOT_HEAT_SWITCH</tooltip_id>
		<event_id>PITOT_HEAT_TOGGLE</event_id>
	</mouserect>
</part>

<part>
	<name>switch_strobe_light</name>
	<animation>
		<parameter>
			<sim>
				<variable>LIGHT STROBE</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_LIGHT_SWITCH_STROBE</help_id>
		<tooltip_id>TOOLTIPTEXT_LIGHT_SWITCH_STROBE</tooltip_id>
		<event_id>STROBES_TOGGLE</event_id>
	</mouserect>
</part>

<part>
	<name>switch_nav_light</name>
	<animation>
		<parameter>
			<sim>
				<variable>LIGHT NAV</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_LIGHT_SWITCH_NAV</help_id>
		<tooltip_id>TOOLTIPTEXT_LIGHT_SWITCH_NAV</tooltip_id>
		<event_id>TOGGLE_NAV_LIGHTS</event_id>
	</mouserect>
</part>

<part>
	<name>switch_taxi_light</name>
	<animation>
		<parameter>
			<sim>
				<variable>LIGHT TAXI</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_LIGHT_SWITCH_TAXI</help_id>
		<tooltip_id>TOOLTIPTEXT_LIGHT_SWITCH_TAXI</tooltip_id>
		<event_id>TOGGLE_TAXI_LIGHTS</event_id>
	</mouserect>
</part>

<part>
	<name>switch_landing_light</name>
	<animation>
		<parameter>
			<sim>
				<variable>LIGHT LANDING</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_LIGHT_SWITCH_LANDING</help_id>
		<tooltip_id>TOOLTIPTEXT_LIGHT_SWITCH_LANDING</tooltip_id>
		<event_id>LANDING_LIGHTS_TOGGLE</event_id>
	</mouserect>
</part>

<part>
	<name>switch_beacon_light</name>
	<animation>
		<parameter>
			<sim>
				<variable>LIGHT BEACON</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_LIGHT_SWITCH_BEACON</help_id>
		<tooltip_id>TOOLTIPTEXT_LIGHT_SWITCH_BEACON</tooltip_id>
		<event_id>TOGGLE_BEACON_LIGHTS</event_id>
	</mouserect>
</part>

<part>
	<name>switch_panel_light</name>
	<animation>
		<parameter>
			<sim>
				<variable>LIGHT PANEL</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_LIGHT_SWITCH_PANEL</help_id>
		<tooltip_id>TOOLTIPTEXT_LIGHT_SWITCH_PANEL</tooltip_id>
		<callback_code>(&gt;K:PANEL_LIGHTS_TOGGLE) (&gt;K:TOGGLE_NAV_LIGHTS)</callback_code>
	</mouserect>
</part>

<part>
    <name>switch_recog_light</name>
	<animation>
		<parameter>
			<sim>
				<variable>LIGHT RECOGNITION</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_LIGHT_SWITCH_RECOGNITION</help_id>
		<tooltip_id>TOOLTIPTEXT_LIGHT_SWITCH_RECOGNITION</tooltip_id>
		<event_id>TOGGLE_RECOGNITION_LIGHTS</event_id>
	</mouserect>
</part>

<part>
	<name>switch_fuel_pump</name>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG FUEL PUMP SWITCH:1</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_SWITCH_FUEL_PUMP</help_id>
		<tooltip_id>TOOLTIPTEXT_FUEL_PUMP</tooltip_id>
		<event_id>TOGGLE_ELECT_FUEL_PUMP1</event_id>
	</mouserect>
</part>

<part>
	<name>switch_fuel_boost</name>
	<copy>switch_fuel_pump</copy>
	<mouserect>
		<help_id>HELPID_GAUGE_BOOST_PUMP_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_BOOST_PUMP_SWITCH</tooltip_id>
	</mouserect>
</part>

<part>
	<name>switch_fuel_pump0</name>
	<copy>switch_fuel_pump</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG FUEL PUMP SWITCH:1</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<event_id>TOGGLE_ELECT_FUEL_PUMP1</event_id>
	</mouserect>
</part>

<part>
	<name>switch_fuel_pump1</name>
	<copy>switch_fuel_pump</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG FUEL PUMP SWITCH:2</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<event_id>TOGGLE_ELECT_FUEL_PUMP2</event_id>
	</mouserect>
</part>

<part>
	<name>switch_fuel_pump2</name>
	<copy>switch_fuel_pump</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG FUEL PUMP SWITCH:3</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<event_id>TOGGLE_ELECT_FUEL_PUMP3</event_id>
	</mouserect>
</part>

<part>
	<name>switch_fuel_pump3</name>
	<copy>switch_fuel_pump</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG FUEL PUMP SWITCH:4</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<event_id>TOGGLE_ELECT_FUEL_PUMP4</event_id>
	</mouserect>
</part>

<part>
	<name>switch_avionics_master</name>
	<animation>
		<parameter>
			<sim>
				<variable>AVIONICS MASTER SWITCH</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_AVIONICS_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_AVIONICS_SWITCH</tooltip_id>
		<event_id>TOGGLE_AVIONICS_MASTER</event_id>
	</mouserect>
</part>

<part>
	<name>lever_throttle</name>
	<animation>
		<parameter>
			<code>
				(A:GENERAL ENG THROTTLE LEVER POSITION:1, part) s0 0 &gt;= if{ l0 -50 * 50 + } els{ l0 (A:THROTTLE LOWER LIMIT, part) / 1 + 50 * }
			</code>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_THROTTLE_THROTTLE</help_id>
		<tooltip_id>TOOLTIPTEXT_THROTTLE_THROTTLE_PERCENT</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_dragging>
			<variable>GENERAL ENG THROTTLE LEVER POSITION:1</variable>
			<units>percent</units>
			<scale>163.84</scale>
			<yscale>-163.84</yscale>
			<minvalue>-16384</minvalue>
			<maxvalue>16384</maxvalue>
			<event_id>THROTTLE1_SET</event_id>
		</callback_dragging>
	</mouserect>
</part>

<part>
	<name>lever_emergency_power</name>
	<animation>
		<parameter>
			<code>
				(L:EmergencyThrottleInUse, bool) 1 ==
				if{ (A:GENERAL ENG THROTTLE LEVER POSITION:1, percent) 0 max d (&gt;L:EmergencyThrottlePosition, percent) }
				els{ (L:EmergencyThrottlePosition, percent) }
			</code>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_THROTTLE_EMERGENCY_THROTTLE</help_id>
		<tooltip_id>TOOLTIPTEXT_EMERGENCY_THROTTLE_PERCENT</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+LeftRelease+Wheel</mouse_flags>
		<callback_code>
			<!-- (M:Event) 'LeftRelease' scmp 0 == if{ 0 (&gt;L:EmergencyThrottleInUse, bool) quit } -->
			1 (&gt;L:EmergencyThrottleInUse, bool)
			(M:Event) 'LeftSingle' scmp 0 !=
			if{
			  (L:EmergencyThrottleClick, position) (M:Y) -			
			  (A:GENERAL ENG THROTTLE LEVER POSITION:1, percent) + 100 min 0 max 163.840 * (&gt;K:THROTTLE1_SET)
			  }
			(M:Y) (&gt;L:EmergencyThrottleClick, position)
		</callback_code>
	</mouserect>
</part>

<part>
	<name>lever_throttle_wright</name>
	<animation>
		<parameter>
			<code>
				<!-- Keyframes: 0 = no throttle (pulled towards), 50 = full throttle (pushed away) -->
				(A:GENERAL ENG THROTTLE LEVER POSITION:1, percent) 50 &gt; if{ 50 } els{ 0 }
			</code>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_THROTTLE_THROTTLE</help_id>
		<tooltip_id>TOOLTIPTEXT_THROTTLE_WRIGHT</tooltip_id>
		<callback_code>
            (A:GENERAL ENG THROTTLE LEVER POSITION:1, percent) 50 &gt; if{ (&gt;K:THROTTLE_CUT) } els{ (&gt;K:THROTTLE_FULL) }
		</callback_code>
	</mouserect>
</part>

<part>
	<name>lever_collective_arm</name>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG THROTTLE LEVER POSITION:1</variable>
				<units>percent</units>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<tooltip_id>TOOLTIPTEXT_COLLECTIVE</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_dragging>
			<variable>GENERAL ENG THROTTLE LEVER POSITION:1</variable>
			<units>percent</units>
			<scale>163.84</scale>
			<yscale>-163.84</yscale>
			<minvalue>0</minvalue>
			<maxvalue>16384</maxvalue>
			<event_id>THROTTLE1_SET</event_id>
		</callback_dragging>
	</mouserect>
</part>

<part>
	<name>lever_collective_handle</name>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG PROPELLER LEVER POSITION:1</variable>
				<units>percent</units>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<tooltip_id>TOOLTIPTEXT_COLLECTIVE</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_dragging>
			<variable>GENERAL ENG PROPELLER LEVER POSITION:1</variable>
			<units>percent</units>
			<scale>163.84</scale>
			<xscale>-163.84</xscale>
			<minvalue>0</minvalue>
			<maxvalue>16384</maxvalue>
			<event_id>PROP_PITCH1_SET</event_id>
		</callback_dragging>
	</mouserect>
</part>

<part>
	<name>lever_throttle0</name>
	<copy>lever_throttle</copy>
	<animation>
		<parameter>
			<code>
				(L:EmergencyThrottleInUse, bool) 1 !=
				if{ (A:GENERAL ENG THROTTLE LEVER POSITION:1, part) s0 0 &gt;=
				  if{ l0 -50 * 50 + }
				  els{ l0 (A:THROTTLE LOWER LIMIT, part) / 1 + 50 * }
				  d (&gt;L:Engine1ThrottlePosition, percent)
				  }
				els{ (L:Engine1ThrottlePosition, percent) }
			</code>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_THROTTLE_ENG1_THROTTLE_PERCENT</tooltip_id>
		<callback_dragging>
			<variable>GENERAL ENG THROTTLE LEVER POSITION:1</variable>
			<event_id>THROTTLE1_SET</event_id>
		</callback_dragging>
	</mouserect>
</part>

<part>
	<name>lever_throttle1</name>
	<copy>lever_throttle</copy>
	<animation>
		<parameter>
			<code>
				(A:GENERAL ENG THROTTLE LEVER POSITION:2, part) s0 0 &gt;= if{ l0 -50 * 50 + } els{ l0 (A:THROTTLE LOWER LIMIT, part) / 1 + 50 * }
			</code>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_THROTTLE_ENG2_THROTTLE_PERCENT</tooltip_id>
		<callback_dragging>
			<variable>GENERAL ENG THROTTLE LEVER POSITION:2</variable>
			<event_id>THROTTLE2_SET</event_id>
		</callback_dragging>
	</mouserect>
</part>

<part>
	<name>lever_throttle2</name>
	<copy>lever_throttle</copy>
	<animation>
		<parameter>
			<code>
				(A:GENERAL ENG THROTTLE LEVER POSITION:3, part) s0 0 &gt;= if{ l0 -50 * 50 + } els{ l0 (A:THROTTLE LOWER LIMIT, part) / 1 + 50 * }
			</code>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_THROTTLE_ENG3_THROTTLE_PERCENT</tooltip_id>
		<callback_dragging>
			<variable>GENERAL ENG THROTTLE LEVER POSITION:3</variable>
			<event_id>THROTTLE3_SET</event_id>
		</callback_dragging>
	</mouserect>
</part>

<part>
	<name>lever_throttle3</name>
	<copy>lever_throttle</copy>
	<animation>
		<parameter>
			<code>
				(A:GENERAL ENG THROTTLE LEVER POSITION:4, part) s0 0 &gt;= if{ l0 -50 * 50 + } els{ l0 (A:THROTTLE LOWER LIMIT, part) / 1 + 50 * }
			</code>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_THROTTLE_ENG4_THROTTLE_PERCENT</tooltip_id>
		<callback_dragging>
			<variable>GENERAL ENG THROTTLE LEVER POSITION:4</variable>
			<event_id>THROTTLE4_SET</event_id>
		</callback_dragging>
	</mouserect>
</part>

<part>
	<name>lever_vicker_throttle</name>
	<animation>
		<parameter>
			<code>
			(L:VickerLeftThrottlePercent,percent) (L:VickerRightThrottlePercent,percent) + -4 / 50 +
			</code>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_THROTTLE_THROTTLE</help_id>
		<tooltip_id>TOOLTIPTEXT_THROTTLE_THROTTLE_PERCENT</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_code>
			(M:Event) 'LeftSingle' scmp 0 !=
			if{
			  (L:VickerThrottlePosition, position) (M:Y) - s0			
			  (L:VickerLeftThrottlePercent,percent) + 100 min 0 max 163.840 * (&gt;K:THROTTLE1_SET)
			  l0 (L:VickerRightThrottlePercent,percent) + 100 min 0 max 163.840 * (&gt;K:THROTTLE2_SET)
			  }
			(M:Y) (&gt;L:VickerThrottlePosition, position)
		</callback_code>
	</mouserect>
</part>

<part>
	<name>lever_vicker_throttle_differential</name>
	<animation>
		<parameter>
			<code>
			(L:VickerLeftThrottlePercent,percent) (L:VickerRightThrottlePercent,percent) - 4 / 25 +
			</code>
		</parameter>		
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_THROTTLE_THROTTLE</help_id>
		<tooltip_id>TOOLTIPTEXT_THROTTLE_THROTTLE_PERCENT</tooltip_id>
	</mouserect>
</part>

<part>
	<name>lever_vicker_throttle_diff_left</name>
	<animation>
		<parameter>
			<code>
			(A:general eng1 throttle lever position:1,percent)
			s0
			(&gt;L:VickerLeftThrottlePercent,percent)
			l0 -2 / 50 +
            </code>
        </parameter>
    </animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_THROTTLE_THROTTLE</help_id>
		<tooltip_id>TOOLTIPTEXT_THROTTLE_ENG1_THROTTLE_PERCENT</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>		
		<callback_dragging>
			<variable>GENERAL ENG THROTTLE LEVER POSITION:1</variable>
			<units>percent</units>
			<scale>163.84</scale>
			<yscale>-163.84</yscale>
			<minvalue>-16384</minvalue>
			<maxvalue>16384</maxvalue>
			<event_id>THROTTLE1_SET</event_id>
		</callback_dragging>
	</mouserect>
</part>

<part>
	<name>lever_vicker_throttle_diff_right</name>
	<animation>
		<parameter>
			<code>
			(A:general eng2 throttle lever position:2,percent)
			s0
			(&gt;L:VickerRightThrottlePercent,percent)
			l0 -2 / 50 +
            </code>
        </parameter>
    </animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_THROTTLE_THROTTLE</help_id>
		<tooltip_id>TOOLTIPTEXT_THROTTLE_ENG2_THROTTLE_PERCENT</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_dragging>
			<variable>GENERAL ENG THROTTLE LEVER POSITION:2</variable>
			<units>percent</units>
			<scale>163.84</scale>
			<yscale>-163.84</yscale>
			<minvalue>-16384</minvalue>
			<maxvalue>16384</maxvalue>
			<event_id>THROTTLE2_SET</event_id>
		</callback_dragging>
	</mouserect>
</part>

<part>
	<name>lever_prop_pitch</name>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG PROPELLER LEVER POSITION:1</variable>
				<units>percent</units>
				<scale>-1.0</scale>
				<bias>100.0</bias>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_THROTTLE_PROP</help_id>
		<tooltip_id>TOOLTIPTEXT_THROTTLE_PROPELLER_PERCENT</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_dragging>
			<variable>GENERAL ENG PROPELLER LEVER POSITION:1</variable>
			<units>percent</units>
			<scale>163.84</scale>
			<yscale>-163.84</yscale>
			<minvalue>0</minvalue>
			<maxvalue>16384</maxvalue>
			<event_id>PROP_PITCH1_SET</event_id>
		</callback_dragging>
	</mouserect>
</part>

<part>
	<name>lever_prop_pitch0</name>
	<copy>lever_prop_pitch</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG PROPELLER LEVER POSITION:1</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_THROTTLE_ENG1_PROPELLER_PERCENT</tooltip_id>
		<callback_dragging>
			<variable>GENERAL ENG PROPELLER LEVER POSITION:1</variable>
			<event_id>PROP_PITCH1_SET</event_id>
		</callback_dragging>
	</mouserect>
</part>

<part>
	<name>lever_prop_pitch1</name>
	<copy>lever_prop_pitch</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG PROPELLER LEVER POSITION:2</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_THROTTLE_ENG2_PROPELLER_PERCENT</tooltip_id>
		<callback_dragging>
			<variable>GENERAL ENG PROPELLER LEVER POSITION:2</variable>
			<event_id>PROP_PITCH2_SET</event_id>
		</callback_dragging>
	</mouserect>
</part>

<part>
	<name>lever_prop_pitch2</name>
	<copy>lever_prop_pitch</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG PROPELLER LEVER POSITION:3</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_THROTTLE_ENG3_PROPELLER_PERCENT</tooltip_id>
		<callback_dragging>
			<variable>GENERAL ENG PROPELLER LEVER POSITION:3</variable>
			<event_id>PROP_PITCH3_SET</event_id>
		</callback_dragging>
	</mouserect>
</part>

<part>
	<name>lever_prop_pitch3</name>
	<copy>lever_prop_pitch</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG PROPELLER LEVER POSITION:4</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_THROTTLE_ENG4_PROPELLER_PERCENT</tooltip_id>
		<callback_dragging>
			<variable>GENERAL ENG PROPELLER LEVER POSITION:4</variable>
			<event_id>PROP_PITCH4_SET</event_id>
		</callback_dragging>
	</mouserect>
</part>


<part>
	<name>lever_mixture</name>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG MIXTURE LEVER POSITION:1</variable>
				<units>percent</units>
				<scale>-1.0</scale>
				<bias>100.0</bias>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_THROTTLE_MIXTURE</help_id>
		<tooltip_id>TOOLTIPTEXT_THROTTLE_MIXTURE_PERCENT</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_dragging>
			<variable>GENERAL ENG MIXTURE LEVER POSITION:1</variable>
			<units>percent</units>
			<scale>163.84</scale>
			<yscale>-163.84</yscale>
			<minvalue>0</minvalue>
			<maxvalue>16384</maxvalue>
			<event_id>MIXTURE1_SET</event_id>
		</callback_dragging>
	</mouserect>
</part>

<part>
	<name>lever_mixture_reversed</name>
	<copy>lever_mixture</copy>
	<mouserect>
		<callback_dragging>
			<yscale>163.84</yscale>
		</callback_dragging>
	</mouserect>
</part>

<part>
	<name>lever_condition</name>
	<copy>lever_mixture</copy>
	<mouserect>
		<help_id>HELPID_KINGAIR_CONDITION_LEVERS</help_id>
		<tooltip_id>TOOLTIPTEXT_THROTTLE_FUEL_CONDITION_PERCENT</tooltip_id>
	</mouserect>
</part>

<part>
	<name>lever_mixture0</name>
	<copy>lever_mixture</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG MIXTURE LEVER POSITION:1</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_THROTTLE_ENG1_MIXTURE_PERCENT</tooltip_id>
		<callback_dragging>
			<variable>GENERAL ENG MIXTURE LEVER POSITION:1</variable>
			<event_id>MIXTURE1_SET</event_id>
		</callback_dragging>
	</mouserect>
</part>

<part>
	<name>lever_condition0</name>
	<copy>lever_mixture0</copy>
	<mouserect>
		<help_id>HELPID_KINGAIR_CONDITION_LEVERS</help_id>
		<tooltip_id>TOOLTIPTEXT_ENG1_THROTTLE_FUEL_CONDITION_PERCENT</tooltip_id>
	</mouserect>
</part>

<part>
	<name>lever_mixture0_reversed</name>
	<copy>lever_mixture_reversed</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG MIXTURE LEVER POSITION:1</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_THROTTLE_ENG1_MIXTURE_PERCENT</tooltip_id>
		<callback_dragging>
			<variable>GENERAL ENG MIXTURE LEVER POSITION:1</variable>
			<event_id>MIXTURE1_SET</event_id>
		</callback_dragging>
	</mouserect>
</part>

<part>
	<name>lever_mixture1</name>
	<copy>lever_mixture</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG MIXTURE LEVER POSITION:2</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_THROTTLE_ENG2_MIXTURE_PERCENT</tooltip_id>
		<callback_dragging>
			<variable>GENERAL ENG MIXTURE LEVER POSITION:2</variable>
			<event_id>MIXTURE2_SET</event_id>
		</callback_dragging>
	</mouserect>
</part>

<part>
	<name>lever_condition1</name>
	<copy>lever_mixture1</copy>
	<mouserect>
		<help_id>HELPID_KINGAIR_CONDITION_LEVERS</help_id>
		<tooltip_id>TOOLTIPTEXT_ENG2_THROTTLE_FUEL_CONDITION_PERCENT</tooltip_id>
	</mouserect>
</part>

<part>
	<name>lever_mixture1_reversed</name>
	<copy>lever_mixture_reversed</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG MIXTURE LEVER POSITION:2</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_THROTTLE_ENG2_MIXTURE_PERCENT</tooltip_id>
		<callback_dragging>
			<variable>GENERAL ENG MIXTURE LEVER POSITION:2</variable>
			<event_id>MIXTURE2_SET</event_id>
		</callback_dragging>
	</mouserect>
</part>

<part>
	<name>lever_mixture2</name>
	<copy>lever_mixture</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG MIXTURE LEVER POSITION:3</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_THROTTLE_ENG3_MIXTURE_PERCENT</tooltip_id>
		<callback_dragging>
			<variable>GENERAL ENG MIXTURE LEVER POSITION:3</variable>
			<event_id>MIXTURE3_SET</event_id>
		</callback_dragging>
	</mouserect>
</part>

<part>
	<name>lever_mixture3</name>
	<copy>lever_mixture</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG MIXTURE LEVER POSITION:4</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_THROTTLE_ENG4_MIXTURE_PERCENT</tooltip_id>
		<callback_dragging>
			<variable>GENERAL ENG MIXTURE LEVER POSITION:4</variable>
			<event_id>MIXTURE4_SET</event_id>
		</callback_dragging>
	</mouserect>
</part>

<!-- NEW COMBINATION OF lever_mixture and lever_fuel_cutoff -->
<part>
	<name>mixture_fuel_cutoff</name>
	<animation>
		<parameter>
			<code>
				(A:GENERAL ENG MIXTURE LEVER POSITION:1, percent) 50 &gt; if{ 50 } els{ 0 }
			</code>
			<lag>200</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_FUEL_CUTOFF</help_id>
		<tooltip_id>TOOLTIPTEXT_MIXTURE_CUTOFF</tooltip_id>
		<callback_code>
            (A:General eng1 mixture lever position, percent) 50 &gt; if{ (&gt;K:MIXTURE1_LEAN) } els{ (&gt;K:MIXTURE1_RICH) }
		</callback_code>
	</mouserect>
</part>

<part>
	<name>mixture_fuel_cutoff0</name>
	<copy>mixture_fuel_cutoff</copy>
	<animation>
		<parameter>
			<code>
				(A:GENERAL ENG MIXTURE LEVER POSITION:1, percent) 50 &gt; if{ 50 } els{ 0 }
			</code>
			<lag>200</lag>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_ENG1_MIXTURE_CUTOFF</tooltip_id>
		<callback_code>
            (A:General eng1 mixture lever position, percent) 50 &gt; if{ (&gt;K:MIXTURE1_LEAN) } els{ (&gt;K:MIXTURE1_RICH) }
		</callback_code>
	</mouserect>
</part>

<part>
	<name>mixture_fuel_cutoff1</name>
	<copy>mixture_fuel_cutoff</copy>
	<animation>
		<parameter>
			<code>
				(A:GENERAL ENG MIXTURE LEVER POSITION:2, percent) 50 &gt; if{ 50 } els{ 0 }
			</code>
			<lag>200</lag>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_ENG2_MIXTURE_CUTOFF</tooltip_id>
		<callback_code>
            (A:General eng2 mixture lever position, percent) 50 &gt; if{ (&gt;K:MIXTURE2_LEAN) } els{ (&gt;K:MIXTURE2_RICH) }
		</callback_code>
	</mouserect>
</part>

<part>
	<name>mixture_fuel_cutoff2</name>
	<copy>mixture_fuel_cutoff</copy>
	<animation>
		<parameter>
			<code>
				(A:GENERAL ENG MIXTURE LEVER POSITION:3, percent) 50 &gt; if{ 50 } els{ 0 }
			</code>
			<lag>200</lag>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_ENG3_MIXTURE_CUTOFF</tooltip_id>
		<callback_code>
            (A:General eng3 mixture lever position, percent) 50 &gt; if{ (&gt;K:MIXTURE3_LEAN) } els{ (&gt;K:MIXTURE3_RICH) }
		</callback_code>
	</mouserect>
</part>

<part>
	<name>mixture_fuel_cutoff3</name>
	<copy>mixture_fuel_cutoff</copy>
	<animation>
		<parameter>
			<code>
				(A:GENERAL ENG MIXTURE LEVER POSITION:4, percent) 50 &gt; if{ 50 } els{ 0 }
			</code>
			<lag>200</lag>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_ENG4_MIXTURE_CUTOFF</tooltip_id>
		<callback_code>
            (A:General eng4 mixture lever position, percent) 50 &gt; if{ (&gt;K:MIXTURE4_LEAN) } els{ (&gt;K:MIXTURE4_RICH) }
		</callback_code>
	</mouserect>
</part>

<part>
	<name>lever_water_rudder</name>
	<animation>
		<parameter>
			<sim>
				<variable>WATER RUDDER HANDLE POSITION</variable>
				<units>percent</units>
			</sim>
			<lag>100</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_WATER_RUDDER_LEVER</help_id>
		<tooltip_id>TOOLTIPTEXT_WATER_RUDDER_HANDLE</tooltip_id>
		<event_id>TOGGLE_WATER_RUDDER</event_id>
	</mouserect>
</part>

<part>
	<name>lever_pedals_l_r</name>
	<animation>
		<parameter>
			<sim>
				<variable>RUDDER PEDAL POSITION</variable>
				<units>part</units>
				<scale>50</scale>
				<bias>50</bias>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_text>Rudder pedals (%((A:RUDDER PEDAL POSITION, percent) s0)%{if}%(l0 abs)%!d!%% %(l0 0 &gt;)%{if}right%{else}left%{end}%{else}straight%{end})</tooltip_text>
	</mouserect>
</part>

<part>
	<name>lever_landing_gear</name>
	<animation>
		<parameter>
			<sim>
				<variable>GEAR HANDLE POSITION</variable>
				<units>percent</units>
			</sim>
			<lag>200</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_GEAR_LEVER</help_id>
		<tooltip_id>TOOLTIPTEXT_GEAR_LEVER</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_jump_dragging>		
			<ymovement>
				<delta>50</delta>
				<event_id_inc>GEAR_DOWN</event_id_inc>
				<event_id_dec>GEAR_UP</event_id_dec>
			</ymovement>
		</callback_jump_dragging>
	</mouserect>
</part>

<!-- From 2d panel: (L:GearLeverPos747, number) 1 = up, 0 = middle, -1 = down -->
<part>
	<name>lever_landing_gear_boeing747</name>
	<animation>
		<parameter>
			<!-- Keyframes: 0 = up, 50 = off, 100 = down -->
			<!-- Gear handle position: 0 = up, 1.0 = down -->
			<code>
				(A:Gear handle position,position) 0.5 &gt; 
				<!-- handle is down -->
				if{ -1 (&gt;L:GearLeverPos747, number) } 
				<!-- handle is up -->
				els{ (L:GearLeverPos747, number) 0 &lt; 
				  <!-- handle _was_ down -->
				  if{ 1 (&gt;L:GearLeverPos747,number) }
				   } 
				(L:GearLeverPos747, number) -50 * 50 +
			</code>
			<lag>200</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_GEAR_LEVER</help_id>
		<tooltip_id>TOOLTIPTEXT_GEAR_LEVER</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_code>
			(M:Event) 'LeftSingle' scmp 0 ==
			if{ (M:Y) (&gt;L:GearClick,position) }
			els{
			  (L:GearClick,position) (M:Y) -  
			  s0 20 &gt;
			  if{ 0 (&gt;K:GEAR_UP) 1 (&gt;L:GearLeverPos747,number) }
			  els{ l0 -20 &lt;
			    if{ (L:GearLeverPos747,number) -- -1 max s1  
			      -1 == 
			      if{ 0 (&gt;K:GEAR_DOWN) } 
			      l1 (&gt;L:GearLeverPos747,number)
			      }
			     }
			  }
		</callback_code>
	</mouserect>
</part>

<part>
	<name>lever_speed_brake</name>
	<animation>
		<parameter>
			<sim>
				<variable>SPOILERS HANDLE POSITION</variable>
				<units>percent</units>
			</sim>
			<lag>200</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_SPEED_BRAKE</help_id>
		<tooltip_id>TOOLTIPTEXT_SPEED_BRAKE</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_dragging>
			<variable>SPOILERS HANDLE POSITION</variable>
			<units>percent</units>
			<scale>163.84</scale>
			<yscale>163.84</yscale>
			<minvalue>0</minvalue>
			<maxvalue>16384</maxvalue>
			<event_id>SPOILERS_SET</event_id>
		</callback_dragging>
	</mouserect>
</part>

<part>
	<name>lever_parking_brake</name>
	<animation>
		<parameter>
			<sim>
				<variable>BRAKE PARKING POSITION</variable>
				<units>percent</units>
			</sim>
			<lag>100</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_PARKING_BRAKE</help_id>
		<tooltip_id>TOOLTIPTEXT_PARKING_BRAKE</tooltip_id>
		<event_id>PARKING_BRAKES</event_id>
	</mouserect>
</part>

<part>
	<name>lever_flap</name>
	<animation>
		<parameter>
			<sim>
				<variable>FLAPS HANDLE PERCENT</variable>
				<units>percent</units>
			</sim>
			<lag>300</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_FLAPS_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_FLAPS_SWITCH</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_jump_dragging>
			<ymovement>
				<delta>30</delta>
				<event_id_inc>FLAPS_INCR</event_id_inc>
				<event_id_dec>FLAPS_DECR</event_id_dec>
			</ymovement>
		</callback_jump_dragging>
	</mouserect>
</part>

<part>
	<name>lever_flap_reversed</name>
	<animation>
		<parameter>
			<sim>
				<variable>FLAPS HANDLE PERCENT</variable>
				<units>percent</units>
				<scale>-1.0</scale>
				<bias>100.0</bias>
			</sim>
			<lag>300</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_FLAPS_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_FLAPS_SWITCH</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_jump_dragging>
			<ymovement>
				<delta>30</delta>
				<event_id_inc>FLAPS_DECR</event_id_inc>
				<event_id_dec>FLAPS_INCR</event_id_dec>
			</ymovement>
		</callback_jump_dragging>
	</mouserect>
</part>

<part>
    <name>rocker_flaps</name>
	<animation>
		<parameter>
			<code>
				2 (A:FLAPS HANDLE INDEX, number) - 25 *
			</code>
			<lag>300</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_FLAPS_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_FLAPS_ROCKER</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_jump_dragging>
			<ymovement>
				<delta>30</delta>
				<event_id_inc>FLAPS_INCR</event_id_inc>
				<event_id_dec>FLAPS_DECR</event_id_dec>
			</ymovement>
		</callback_jump_dragging>
	</mouserect>
</part>

<part>
	<name>lever_cowl_flaps</name>
	<animation>
		<parameter>
			<sim>
				<variable>RECIP ENG COWL FLAP POSITION:1</variable>
				<units>percent</units>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_COWL_FLAPS_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_COWL_FLAPS_PERCENT</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_jump_dragging>
			<ymovement>
				<delta>30</delta>
				<event_id_inc>INC_COWL_FLAPS1</event_id_inc>
				<event_id_dec>DEC_COWL_FLAPS1</event_id_dec>
			</ymovement>
		</callback_jump_dragging>
	</mouserect>
</part>

<part>
	<name>lever_cowl_flaps0</name>
	<copy>lever_cowl_flaps</copy>
	<animation>
		<parameter>
			<sim>
				<variable>RECIP ENG COWL FLAP POSITION:1</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_ENG1_COWL_FLAPS_PERCENT</tooltip_id>
		<callback_jump_dragging>
			<ymovement>
				<event_id_inc>INC_COWL_FLAPS1</event_id_inc>
				<event_id_dec>DEC_COWL_FLAPS1</event_id_dec>
			</ymovement>
		</callback_jump_dragging>
	</mouserect>
</part>

<part>
	<name>lever_cowl_flaps1</name>
	<copy>lever_cowl_flaps</copy>
	<animation>
		<parameter>
			<sim>
				<variable>RECIP ENG COWL FLAP POSITION:2</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_ENG2_COWL_FLAPS_PERCENT</tooltip_id>
		<callback_jump_dragging>
			<ymovement>
				<event_id_inc>INC_COWL_FLAPS2</event_id_inc>
				<event_id_dec>DEC_COWL_FLAPS2</event_id_dec>
			</ymovement>
		</callback_jump_dragging>
	</mouserect>
</part>

<part>
	<name>lever_cowl_flaps2</name>
	<copy>lever_cowl_flaps</copy>
	<animation>
		<parameter>
			<sim>
				<variable>RECIP ENG COWL FLAP POSITION:3</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_ENG3_COWL_FLAPS_PERCENT</tooltip_id>
		<callback_jump_dragging>
			<ymovement>
				<event_id_inc>INC_COWL_FLAPS3</event_id_inc>
				<event_id_dec>DEC_COWL_FLAPS3</event_id_dec>
			</ymovement>
		</callback_jump_dragging>
	</mouserect>
</part>

<part>
	<name>lever_cowl_flaps3</name>
	<copy>lever_cowl_flaps</copy>
	<animation>
		<parameter>
			<sim>
				<variable>RECIP ENG COWL FLAP POSITION:4</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_ENG4_COWL_FLAPS_PERCENT</tooltip_id>
		<callback_jump_dragging>
			<ymovement>
				<event_id_inc>INC_COWL_FLAPS4</event_id_inc>
				<event_id_dec>DEC_COWL_FLAPS4</event_id_dec>
			</ymovement>
		</callback_jump_dragging>
	</mouserect>
</part>

<part>
	<name>lever_cowl_flaps_top_open</name>
	<copy>lever_cowl_flaps</copy>
	<mouserect>
		<callback_jump_dragging>
			<ymovement>
				<event_id_inc>DEC_COWL_FLAPS1</event_id_inc>
				<event_id_dec>INC_COWL_FLAPS1</event_id_dec>
			</ymovement>
		</callback_jump_dragging>
	</mouserect>
</part>

<part>
    <name>rocker_cowl_flap</name>
	<animation>
		<parameter>
			<sim>
				<variable>RECIP ENG COWL FLAP POSITION:1</variable>
				<units>percent</units>
				<scale>-0.5</scale>
				<bias>50</bias>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_COWL_FLAPS_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_COWL_FLAPS_PERCENT</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_jump_dragging>
			<ymovement>
				<delta>10</delta>
				<event_id_inc>INC_COWL_FLAPS1</event_id_inc>
				<event_id_dec>DEC_COWL_FLAPS1</event_id_dec>
			</ymovement>
		</callback_jump_dragging>
	</mouserect>
</part>

<part>
	<name>trimtab_elevator_key</name>
	<animation>
		<parameter>
			<sim>
				<variable>ELEVATOR TRIM POSITION</variable>
				<units>grads</units>
				<bias>50</bias>
				<scale>1</scale>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_PITCH_TRIM</help_id>
		<tooltip_id>TOOLTIPTEXT_PITCH_TRIM</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_jump_dragging>
			<ymovement>
				<delta>-3</delta>
				<event_id_inc>ELEV_TRIM_DN</event_id_inc>
				<event_id_dec>ELEV_TRIM_UP</event_id_dec>
			</ymovement>
		</callback_jump_dragging>
	</mouserect>
</part>

<part>
	<name>trimtab_elevator</name>
	<copy>trimtab_elevator_key</copy>
	<animation>
		<rotation>X</rotation>
		<parameter>
			<sim>
				<variable>ELEVATOR TRIM POSITION</variable>
				<units>radians</units>
				<bias>0</bias>
				<scale>1</scale>
			</sim>
		</parameter>
	</animation>
</part>

<part>
	<name>lever_trimtab_elevator</name>
	<copy>trimtab_elevator</copy>
	<animation>
		<parameter>
			<sim>
				<bias>0</bias>
				<scale>100</scale>
			</sim>	
		</parameter>
	</animation>
</part>

<part>
	<name>lever_trimtab_elevator_trimotor</name>
	<animation>
		<parameter>
			<sim>
				<variable>ELEVATOR TRIM PCT</variable>
				<units>percent</units>
				<scale>-0.5</scale>
				<bias>50</bias>
			</sim>	
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_PITCH_TRIM</help_id>
		<tooltip_id>TOOLTIPTEXT_PITCH_TRIM</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_jump_dragging>
			<ymovement>
				<delta>1</delta>
				<event_id_inc>ELEV_TRIM_DN</event_id_inc>
				<event_id_dec>ELEV_TRIM_UP</event_id_dec>
			</ymovement>
		</callback_jump_dragging>
	</mouserect>
</part>

<part>
	<name>trimtab_elevator_key_spirit</name>
	<animation>
		<parameter>
			<sim>
				<variable>ELEVATOR TRIM PCT</variable>
				<units>percent</units>
				<scale>0.5</scale>
				<bias>50</bias>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_PITCH_TRIM</help_id>
		<tooltip_id>TOOLTIPTEXT_PITCH_TRIM</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_dragging>
			<variable>ELEVATOR TRIM PCT</variable>
			<units>percent</units>			
			<scale>163.84</scale>
			<yscale>163.84</yscale>
			<minvalue>-16384</minvalue>
			<maxvalue>16384</maxvalue>
			<event_id>ELEVATOR_TRIM_SET</event_id>
		</callback_dragging>
	</mouserect>
</part>

<part>
	<name>rocker_elevator_trim</name>
	<copy>trimtab_elevator_key_spirit</copy>
	<mouserect>
		<callback_dragging>
			<yscale>-163.84</yscale>
		</callback_dragging>
	</mouserect>
</part>

<part>
	<name>trimtab_elevator_key_horizontal</name>
	<animation>
		<parameter>
			<sim>
				<variable>ELEVATOR TRIM PCT</variable>
				<units>percent</units>
				<scale>-0.5</scale>
				<bias>50</bias>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_PITCH_TRIM</help_id>
		<tooltip_id>TOOLTIPTEXT_PITCH_TRIM</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_dragging>
			<variable>ELEVATOR TRIM PCT</variable>
			<units>percent</units>			
			<scale>163.84</scale>
			<xscale>163.84</xscale>
			<minvalue>-16384</minvalue>
			<maxvalue>16384</maxvalue>
			<event_id>ELEVATOR_TRIM_SET</event_id>
		</callback_dragging>
	</mouserect>
</part>

<part>
	<name>switch_standby_vacuum</name>
	<animation>
		<parameter>
			<sim>
				<variable>CIRCUIT STANDY VACUUM ON</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_MOONEY_STANDBY_VAC_SWITCH</help_id>
		<tooltip_id>HELPID_MOONEY_STANDBY_VAC_SWITCH</tooltip_id>
		<event_id>TOGGLE_ELECTRIC_VACUUM_PUMP</event_id>
	</mouserect>
</part>

<part>
	<name>trimtab_aileron_key</name>
	<animation>
		<parameter>
			<sim>
				<variable>AILERON TRIM</variable>
				<units>grads</units>
				<bias>50</bias>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_ROLL_TRIM_KNOB</help_id>
		<tooltip_id>TOOLTIPTEXT_ROLL_TRIM</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_jump_dragging>
			<xmovement>
				<delta>1</delta>
				<event_id_inc>AILERON_TRIM_RIGHT</event_id_inc>
				<event_id_dec>AILERON_TRIM_LEFT</event_id_dec>
			</xmovement>
		</callback_jump_dragging>
	</mouserect>
</part>

<part>
	<name>trimtab_aileron</name>
	<copy>trimtab_aileron_key</copy>
	<animation>
		<rotation>X</rotation>
		<parameter>
			<sim>
				<variable>AILERON TRIM</variable>
				<units>radians</units>
				<scale>100</scale>
				<bias>0</bias>
			</sim>
		</parameter>
	</animation>
</part>

<part>
	<name>trimtab_r_aileron_key</name>
	<copy>trimtab_aileron_key</copy>
</part>

<part>
	<name>trimtab_l_aileron_key</name>
	<copy>trimtab_aileron_key</copy>
</part>

<part>
	<name>trimtab_r_aileron</name>
	<copy>trimtab_aileron</copy>
</part>

<part>
	<name>trimtab_l_aileron</name>
	<copy>trimtab_aileron</copy>
</part>

<part>
	<name>lever_trimtab_aileron</name>
	<copy>trimtab_aileron</copy>
</part>

<part>
	<name>lever_trimtab_aileron_key</name>
	<copy>trimtab_aileron_key</copy>
</part>

<part>
	<name>trimtab_rudder_key</name>
	<animation>
		<parameter>
			<sim>
				<variable>RUDDER TRIM</variable>
				<units>grads</units>
				<bias>50</bias>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_YAW_TRIM</help_id>
		<tooltip_id>TOOLTIPTEXT_YAW_TRIM</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_jump_dragging>
			<xmovement>
				<delta>3</delta>
				<event_id_inc>RUDDER_TRIM_RIGHT</event_id_inc>
				<event_id_dec>RUDDER_TRIM_LEFT</event_id_dec>
			</xmovement>
		</callback_jump_dragging>
	</mouserect>
</part>

<part>
	<name>lever_trimtab_rudder_key</name>
	<copy>trimtab_rudder_key</copy>
</part>

<part>
	<name>trimtab_rudder</name>
	<copy>trimtab_rudder_key</copy>
	<animation>
		<rotation>X</rotation>
		<parameter>
			<sim>
				<variable>RUDDER TRIM</variable>
				<units>radians</units>
				<scale>100</scale>
				<bias>0</bias>
			</sim>
		</parameter>
	</animation>
</part>

<part>
	<name>lever_trimtab_rudder</name>
	<copy>trimtab_rudder</copy>
</part>

<part>
    <name>rocker_rudder_trim</name>
	<animation>
		<parameter>
			<sim>
				<variable>RUDDER TRIM</variable>
				<units>degrees</units>
				<scale>2.5</scale>
				<bias>25</bias>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_YAW_TRIM</help_id>
		<tooltip_id>TOOLTIPTEXT_YAW_TRIM</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_jump_dragging>
			<xmovement>
				<delta>1</delta>
				<event_id_inc>RUDDER_TRIM_RIGHT</event_id_inc>
				<event_id_dec>RUDDER_TRIM_LEFT</event_id_dec>
			</xmovement>
		</callback_jump_dragging>
	</mouserect>
</part>

<part>
	<name>rudder_key</name>
	<animation>
		<parameter>
			<sim>
				<variable>RUDDER DEFLECTION</variable>
				<units>grads</units>
				<bias>50</bias>
			</sim>
		</parameter>
	</animation>
</part>

<part>
	<name>rudder_percent_key</name>
	<animation>
		<parameter>
			<sim>
				<variable>RUDDER DEFLECTION PCT</variable>
				<units>percent</units>
				<bias>50</bias>
			</sim>
		</parameter>
	</animation>
</part>

<part>
	<name>l_aileron_key</name>
	<animation>
		<parameter>
			<sim>
				<variable>AILERON LEFT DEFLECTION</variable>
				<scale>-1</scale>
				<units>grads</units>
				<bias>50</bias>
			</sim>
		</parameter>
	</animation>
</part>

<part>
	<name>r_aileron_key</name>
	<animation>
		<parameter>
			<sim>
				<variable>AILERON RIGHT DEFLECTION</variable>
				<scale>-1</scale>
				<units>grads</units>
				<bias>50</bias>
			</sim>
		</parameter>
	</animation>
</part>

<part>
	<name>l_aileron_percent_key</name>
	<animation>
		<parameter>
			<sim>
				<variable>AILERON LEFT DEFLECTION PCT</variable>
				<scale>-1</scale>
				<units>percent</units>
				<bias>50</bias>
			</sim>
		</parameter>
	</animation>
</part>

<part>
	<name>r_aileron_percent_key</name>
	<animation>
		<parameter>
			<sim>
				<variable>AILERON RIGHT DEFLECTION PCT</variable>
				<scale>-1</scale>
				<units>percent</units>
				<bias>50</bias>
			</sim>
		</parameter>
	</animation>
</part>

<part>
	<name>elevator_key</name>
	<animation>
		<parameter>
			<sim>
				<variable>ELEVATOR DEFLECTION</variable>
				<units>grads</units>
				<bias>50</bias>
			</sim>
		</parameter>
	</animation>
</part>

<part>
	<name>elevator_percent_key</name>
	<animation>
		<parameter>
			<sim>
				<variable>ELEVATOR DEFLECTION PCT</variable>
				<units>percent</units>
				<bias>50</bias>
			</sim>
		</parameter>
	</animation>
</part>

<part>
	<name>fuel_indicator</name>
	<animation>
		<parameter>
			<sim>
				<variable>FUEL TANK CENTER LEVEL</variable>
				<units>percent</units>
			</sim>
		</parameter>
	</animation>
</part>

<part>
	<name>lever_fuel_cutoff</name>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG FUEL VALVE:1</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>200</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_FUEL_CUTOFF</help_id>
		<tooltip_id>TOOLTIPTEXT_FUEL_CUTOFF</tooltip_id>
		<event_id>TOGGLE_FUEL_VALVE_ALL</event_id>
	</mouserect>
</part>

<part>
	<name>lever_fuel_cutoff0</name>
	<copy>lever_fuel_cutoff</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG FUEL VALVE:1</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_ENG1_FUEL_CUTOFF</tooltip_id>
		<event_id>TOGGLE_FUEL_VALVE_ENG1</event_id>
	</mouserect>
</part>

<part>
	<name>lever_fuel_cutoff1</name>
	<copy>lever_fuel_cutoff</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG FUEL VALVE:2</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_ENG2_FUEL_CUTOFF</tooltip_id>
		<event_id>TOGGLE_FUEL_VALVE_ENG2</event_id>
	</mouserect>
</part>

<part>
	<name>lever_fuel_cutoff2</name>
	<copy>lever_fuel_cutoff</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG FUEL VALVE:3</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_ENG3_FUEL_CUTOFF</tooltip_id>
		<event_id>TOGGLE_FUEL_VALVE_ENG3</event_id>
	</mouserect>
</part>

<part>
	<name>lever_fuel_cutoff3</name>
	<copy>lever_fuel_cutoff</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG FUEL VALVE:4</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_ENG4_FUEL_CUTOFF</tooltip_id>
		<event_id>TOGGLE_FUEL_VALVE_ENG4</event_id>
	</mouserect>
</part>

<part>
	<name>switch_fuel_selector_LBR</name>
	<animation>
		<parameter>
			<code>2 0 1 1 4 (A:FUEL TANK SELECTOR:1, enum) case 25 *</code>
			<lag>100</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_FUEL_SELECTOR</help_id>
		<tooltip_id>TOOLTIPTEXT_FUEL_SELECTOR</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_code>(M:Event) 'LeftSingle' scmp 0 ==
			if{ (M:X) (&gt;G:Var1) 2 0 1 1 4 (A:FUEL TANK SELECTOR:1, enum) case (&gt;G:Var2) }
			els{ (M:X) (G:Var1) - 40 / int (G:Var2) + 0 max 2 min s0 2 0 1 1 4 (A:FUEL TANK SELECTOR:1, enum) case !=
				if{ l0 0 == if{ (&gt;K:FUEL_SELECTOR_LEFT) } l0 1 == if{ (&gt;K:FUEL_SELECTOR_ALL) } l0 2 == if{ (&gt;K:FUEL_SELECTOR_RIGHT) } }</callback_code>
	</mouserect>
</part>

<part>
	<name>switch_fuel_crossfeed</name>
	<animation>
		<parameter>
			<code>0 2 1 1 4 (A:FUEL TANK SELECTOR:1, enum) case 25 *</code>
			<lag>100</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_FUEL_SELECTOR</help_id>
		<tooltip_id>TOOLTIPTEXT_FUEL_SELECTOR</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_code>
		    (M:Event) 'LeftSingle' scmp 0 ==
			if{ (M:X) (&gt;G:Var1) 0 2 1 1 4 (A:FUEL TANK SELECTOR:1, enum) case (&gt;G:Var2) }
			els{ (G:Var1) (M:X) - 40 / int (G:Var2) + 0 max 2 min s0 0 2 1 1 4 (A:FUEL TANK SELECTOR:1, enum) case !=
				if{ l0 0 == if{ (&gt;K:FUEL_SELECTOR_LEFT) } l0 1 == if{ (&gt;K:FUEL_SELECTOR_ALL) } l0 2 == if{ (&gt;K:FUEL_SELECTOR_RIGHT) } }
		</callback_code>
	</mouserect>
</part>

<part>
	<name>switch_fuel_selector_LBRO</name>
	<animation>
		<parameter>
			<code>2 0 1 3 1 5 (A:FUEL TANK SELECTOR:1, enum) ++ case 25 *</code>
			<lag>100</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_FUEL_SELECTOR</help_id>
		<tooltip_id>TOOLTIPTEXT_FUEL_SELECTOR</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_code>(M:Event) 'LeftSingle' scmp 0 ==
			if{ (M:X) (>G:Var1) 2 0 1 3 1 5 (A:FUEL TANK SELECTOR:1, enum) ++ case (>G:Var2) }
			els{ (M:X) (G:Var1) - 40 / int (G:Var2) + 0 max 3 min s0 2 0 1 3 1 5 (A:FUEL TANK SELECTOR:1, enum) ++ case !=
				if{ l0 0 == if{ (>K:FUEL_SELECTOR_LEFT) } l0 1 == if{ (>K:FUEL_SELECTOR_ALL) } l0 2 == if{ (>K:FUEL_SELECTOR_RIGHT) } l0 3 == if{ (>K:FUEL_SELECTOR_OFF) } }</callback_code>
	</mouserect>
</part>

<part>
	<name>switch_nav_gps</name>
	<animation>
		<parameter>
			<sim>
				<variable>GPS DRIVES NAV1</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_NAV_GPS_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_NAV_GPS_SWITCH</tooltip_id>
		<event_id>TOGGLE_GPS_DRIVES_NAV1</event_id>
	</mouserect>
</part>

<part>
	<name>switch_starter</name>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG STARTER:1</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_STARTER_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_STARTER_SWITCH</tooltip_id>
		<event_id>TOGGLE_STARTER1</event_id>
	</mouserect>
</part>

<part>
	<name>switch_starter0</name>
	<copy>switch_starter</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG STARTER:1</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<event_id>TOGGLE_STARTER1</event_id>
	</mouserect>
</part>

<part>
	<name>switch_starter1</name>
	<copy>switch_starter</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG STARTER:2</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<event_id>TOGGLE_STARTER2</event_id>
	</mouserect>
</part>

<part>
	<name>switch_starter2</name>
	<copy>switch_starter</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG STARTER:3</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<event_id>TOGGLE_STARTER3</event_id>
	</mouserect>
</part>

<part>
	<name>switch_starter3</name>
	<copy>switch_starter</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG STARTER:4</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<event_id>TOGGLE_STARTER4</event_id>
	</mouserect>
</part>

<part>
	<name>switch_prop_sync</name>
	<animation>
		<parameter>
			<sim>
				<variable>PROP SYNC ACTIVE</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_PROP_SYNC</help_id>
		<tooltip_id>TOOLTIPTEXT_PROP_SYNC</tooltip_id>
		<event_id>TOGGLE_PROPELLER_SYNC</event_id>
	</mouserect>
</part>

<part>
	<name>switch_auto_throttle</name>
	<animation>
		<parameter>
			<sim>
				<variable>AUTOPILOT THROTTLE ARM</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_AUTOPILOT_AUTOTHROTTLE</help_id>
		<tooltip_id>TOOLTIPTEXT_AUTOPILOT_AUTOTHROTTLE</tooltip_id>
		<event_id>AUTO_THROTTLE_ARM</event_id>
	</mouserect>
</part>

<part>
	<name>switch_flight_director</name>
	<animation>
		<parameter>
			<sim>
				<variable>AUTOPILOT FLIGHT DIRECTOR ACTIVE</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_AUTOPILOT_FLIGHT_DIRECTOR_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_AUTOPILOT_FLIGHT_DIRECTOR_SWITCH</tooltip_id>
		<event_id>TOGGLE_FLIGHT_DIRECTOR</event_id>
	</mouserect>
</part>

<part>
	<name>switch_autopilot_master</name>
	<animation>
		<parameter>
			<sim>
				<variable>AUTOPILOT MASTER</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_AUTOPILOT_MASTER</help_id>
		<tooltip_id>TOOLTIPTEXT_AUTOPILOT_MASTER</tooltip_id>
		<event_id>AP_MASTER</event_id>
	</mouserect>
</part>

<part>
	<name>switch_auto_pilot</name>
	<copy>switch_autopilot_master</copy>
</part>

<part>
	<name>switch_generator_starter</name>
	<animation>
		<parameter>
			<code>(A:GENERAL ENG GENERATOR SWITCH:1, bool) d if{ (A:GENERAL ENG STARTER:1, bool) } + 25 *</code>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_STARTER_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_STARTER_SWITCH</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+MoveRepeat+Wheel</mouse_flags>
		<callback_code>(M:Event) 'LeftSingle' scmp 0 ==
			if{ (M:X) (>G:Var1) (A:GENERAL ENG GENERATOR SWITCH:1, bool) d if{ (A:GENERAL ENG STARTER:1, bool) } +  (>G:Var2) }
			els{ (M:X) (G:Var1) - 40 / int (G:Var2) + 0 max 2 min s0
				l0 0 == if{ (A:GENERAL ENG GENERATOR SWITCH:1, bool) if{ (>K:TOGGLE_ALTERNATOR1) } }
				l0 1 == if{ (A:GENERAL ENG GENERATOR SWITCH:1, bool) ! if{ (>K:TOGGLE_ALTERNATOR1) } }
				l0 2 == if{ (A:GENERAL ENG GENERATOR SWITCH:1, bool) ! if{ (>K:TOGGLE_ALTERNATOR1) } (>K:TOGGLE_STARTER1) }
			}
		</callback_code>
	</mouserect>
</part>


<part>
	<name>switch_generator_starter0</name>
	<animation>
		<parameter>
			<code>(A:GENERAL ENG GENERATOR SWITCH:1, bool) d if{ (A:GENERAL ENG STARTER:1, bool) } + 25 *</code>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_STARTER_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_ENG1_STARTER_SWITCH</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+MoveRepeat+Wheel</mouse_flags>
		<callback_code>(M:Event) 'LeftSingle' scmp 0 ==
			if{ (M:X) (>G:Var1) (A:GENERAL ENG GENERATOR SWITCH:1, bool) d if{ (A:GENERAL ENG STARTER:1, bool) } +  (>G:Var2) }
			els{ (M:X) (G:Var1) - 40 / int (G:Var2) + 0 max 2 min s0
				l0 0 == if{ (A:GENERAL ENG GENERATOR SWITCH:1, bool) if{ (>K:TOGGLE_ALTERNATOR1) } }
				l0 1 == if{ (A:GENERAL ENG GENERATOR SWITCH:1, bool) ! if{ (>K:TOGGLE_ALTERNATOR1) } }
				l0 2 == if{ (A:GENERAL ENG GENERATOR SWITCH:1, bool) ! if{ (>K:TOGGLE_ALTERNATOR1) } (>K:TOGGLE_STARTER1) }
			}
		</callback_code>
	</mouserect>
</part>

<part>
	<name>switch_generator_starter1</name>
	<animation>
		<parameter>
			<code>(A:GENERAL ENG GENERATOR SWITCH:2, bool) d if{ (A:GENERAL ENG STARTER:2, bool) } + 25 *</code>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_STARTER_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_ENG2_STARTER_SWITCH</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+MoveRepeat+Wheel</mouse_flags>
		<callback_code>(M:Event) 'LeftSingle' scmp 0 ==
			if{ (M:X) (>G:Var1) (A:GENERAL ENG GENERATOR SWITCH:2, bool) d if{ (A:GENERAL ENG STARTER:2, bool) } +  (>G:Var2) }
			els{ (M:X) (G:Var1) - 40 / int (G:Var2) + 0 max 2 min s0
				l0 0 == if{ (A:GENERAL ENG GENERATOR SWITCH:2, bool) if{ (>K:TOGGLE_ALTERNATOR2) } }
				l0 1 == if{ (A:GENERAL ENG GENERATOR SWITCH:2, bool) ! if{ (>K:TOGGLE_ALTERNATOR2) } }
			    l0 2 == if{ (A:GENERAL ENG GENERATOR SWITCH:2, bool) ! if{ (>K:TOGGLE_ALTERNATOR2) } (>K:TOGGLE_STARTER2) }
			}
		</callback_code>
	</mouserect>
</part>

<part>
	<name>switch_generator_starter2</name>
	<animation>
		<parameter>
			<code>(A:GENERAL ENG GENERATOR SWITCH:3, bool) d if{ (A:GENERAL ENG STARTER:3, bool) } + 25 *</code>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_STARTER_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_ENG3_STARTER_SWITCH</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+MoveRepeat+Wheel</mouse_flags>
		<callback_code>(M:Event) 'LeftSingle' scmp 0 ==
			if{ (M:X) (>G:Var1) (A:GENERAL ENG GENERATOR SWITCH:3, bool) d if{ (A:GENERAL ENG STARTER:3, bool) } +  (>G:Var2) }
			els{ (M:X) (G:Var1) - 40 / int (G:Var2) + 0 max 2 min s0
				l0 0 == if{ (A:GENERAL ENG GENERATOR SWITCH:3, bool) if{ (>K:TOGGLE_ALTERNATOR3) } }
				l0 1 == if{ (A:GENERAL ENG GENERATOR SWITCH:3, bool) ! if{ (>K:TOGGLE_ALTERNATOR3) } }
				l0 2 == if{ (A:GENERAL ENG GENERATOR SWITCH:3, bool) ! if{ (>K:TOGGLE_ALTERNATOR3) } (>K:TOGGLE_STARTER3) }
			}
		</callback_code>
	</mouserect>
</part>

<part>
	<name>switch_generator_starter3</name>
	<animation>
		<parameter>
			<code>(A:GENERAL ENG GENERATOR SWITCH:4, bool) d if{ (A:GENERAL ENG STARTER:4, bool) } + 25 *</code>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_STARTER_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_ENG4_STARTER_SWITCH</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+MoveRepeat+Wheel</mouse_flags>
		<callback_code>(M:Event) 'LeftSingle' scmp 0 ==
			if{ (M:X) (>G:Var1) (A:GENERAL ENG GENERATOR SWITCH:4, bool) d if{ (A:GENERAL ENG STARTER:4, bool) } +  (>G:Var2) }
			els{ (M:X) (G:Var1) - 40 / int (G:Var2) + 0 max 2 min s0
				l0 0 == if{ (A:GENERAL ENG GENERATOR SWITCH:4, bool) if{ (>K:TOGGLE_ALTERNATOR4) } }
				l0 1 == if{ (A:GENERAL ENG GENERATOR SWITCH:4, bool) ! if{ (>K:TOGGLE_ALTERNATOR4) } }
				l0 2 == if{ (A:GENERAL ENG GENERATOR SWITCH:4, bool) ! if{ (>K:TOGGLE_ALTERNATOR4) } (>K:TOGGLE_STARTER4) }
			}
		</callback_code>
	</mouserect>
</part>

<part>
	<name>switch_generator</name>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG GENERATOR SWITCH:1</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_GENERATOR_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_GENERATOR_SWITCH</tooltip_id>
		<event_id>TOGGLE_MASTER_ALTERNATOR</event_id>
	</mouserect>
</part>

<part>
	<name>switch_generator0</name>
	<copy>switch_generator</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG GENERATOR SWITCH:1</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_ENG1_GENERATOR_SWITCH</tooltip_id>
		<event_id>TOGGLE_ALTERNATOR1</event_id>
	</mouserect>
</part>

<part>
	<name>switch_generator1</name>
	<copy>switch_generator</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG GENERATOR SWITCH:2</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_ENG2_GENERATOR_SWITCH</tooltip_id>
		<event_id>TOGGLE_ALTERNATOR2</event_id>
	</mouserect>
</part>

<part>
	<name>switch_generator2</name>
	<copy>switch_generator</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG GENERATOR SWITCH:3</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_ENG3_GENERATOR_SWITCH</tooltip_id>
		<event_id>TOGGLE_ALTERNATOR3</event_id>
	</mouserect>
</part>

<part>
	<name>switch_generator3</name>
	<copy>switch_generator</copy>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG GENERATOR SWITCH:4</variable>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_ENG4_GENERATOR_SWITCH</tooltip_id>
		<event_id>TOGGLE_ALTERNATOR4</event_id>
	</mouserect>
</part>


<part>
	<name>switch_auto_brake</name>
	<animation>
		<parameter>
			<sim>
				<variable>AUTO BRAKE SWITCH CB</variable>
				<units>enum</units>
				<scale>20</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_AUTOBRAKE_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_AUTOBRAKE_SWITCH</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_jump_dragging>
			<xmovement>
				<delta>10</delta>
				<event_id_inc>INCREASE_AUTOBRAKE_CONTROL</event_id_inc>
				<event_id_dec>DECREASE_AUTOBRAKE_CONTROL</event_id_dec>
			</xmovement>
		</callback_jump_dragging>
	</mouserect>
</part>

<part>
	<name>switch_anti_ice_prop</name>
	<animation>
		<parameter>
			<sim>
				<variable>PROP DEICE SWITCH</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_MOONEY_PROP_DEICE</help_id>
		<tooltip_id>TOOLTIPTEXT_PROP_DEICE_SWITCH</tooltip_id>
		<event_id>TOGGLE_PROPELLER_DEICE</event_id>
	</mouserect>
</part>

<part>
	<name>switch_anti_ice_structure</name>
	<animation>
		<parameter>
			<sim>
				<variable>STRUCTURAL DEICE SWITCH</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_DEICE_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_DEICE_SWITCH</tooltip_id>
		<event_id>TOGGLE_STRUCTURAL_DEICE</event_id>
	</mouserect>
</part>

<part>
	<name>switch_anti_ice</name>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG ANTI ICE POSITION:1</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_DEICE_SWITCH</help_id>
		<tooltip_id>TOOLTIPTEXT_DEICE_SWITCH</tooltip_id>
		<event_id>ANTI_ICE_TOGGLE</event_id>
	</mouserect>
</part>

<part>
	<name>switch_audio_com1</name>
	<animation>
		<parameter>
			<sim>
				<variable>COM TRANSMIT:1</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_RADIO_AUDIO</help_id>
		<tooltip_id>TOOLTIPTEXT_AUDIO_PANEL_TRANSMIT_RECEIVE</tooltip_id>
		<event_id>COM1_TRANSMIT_SELECT</event_id>
	</mouserect>
</part>

<part>
	<name>switch_audio_com2</name>
	<animation>
		<parameter>
			<sim>
				<variable>COM TRANSMIT:2</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_RADIO_AUDIO</help_id>
		<tooltip_id>TOOLTIPTEXT_AUDIO_PANEL_TRANSMIT_RECEIVE</tooltip_id>
		<event_id>COM2_TRANSMIT_SELECT</event_id>
	</mouserect>
</part>

<part>
	<name>switch_audio_both</name>
	<animation>
		<parameter>
			<sim>
				<variable>COM RECIEVE ALL</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_RADIO_AUDIO</help_id>
		<tooltip_id>TOOLTIPTEXT_AUDIO_PANEL_TRANSMIT_RECEIVE</tooltip_id>
		<event_id>COM_RECEIVE_ALL_TOGGLE</event_id>
	</mouserect>
</part>

<part>
	<name>switch_audio_nav1</name>
	<animation>
		<parameter>
			<sim>
				<variable>NAV SOUND:1</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_RADIO_AUDIO</help_id>
		<tooltip_id>TOOLTIPTEXT_AUDIO_PANEL_TRANSMIT_RECEIVE</tooltip_id>
		<event_id>RADIO_VOR1_IDENT_TOGGLE</event_id>
	</mouserect>
</part>

<part>
	<name>switch_audio_nav2</name>
	<animation>
		<parameter>
			<sim>
				<variable>NAV SOUND:2</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_RADIO_AUDIO</help_id>
		<tooltip_id>TOOLTIPTEXT_AUDIO_PANEL_TRANSMIT_RECEIVE</tooltip_id>
		<event_id>RADIO_VOR2_IDENT_TOGGLE</event_id>
	</mouserect>
</part>

<part>
	<name>switch_audio_marker</name>
	<animation>
		<parameter>
			<sim>
				<variable>MARKER SOUND</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_RADIO_AUDIO</help_id>
		<tooltip_id>TOOLTIPTEXT_AUDIO_PANEL_TRANSMIT_RECEIVE</tooltip_id>
		<event_id>MARKER_SOUND_TOGGLE</event_id>
	</mouserect>
</part>

<part>
	<name>switch_audio_dme</name>
	<animation>
		<parameter>
			<sim>
				<variable>DME SOUND</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_RADIO_AUDIO</help_id>
		<tooltip_id>TOOLTIPTEXT_AUDIO_PANEL_TRANSMIT_RECEIVE</tooltip_id>
		<event_id>RADIO_DME1_IDENT_TOGGLE</event_id>
	</mouserect>
</part>

<part>
	<name>switch_audio_adf</name>
	<animation>
		<parameter>
			<sim>
				<variable>ADF SOUND</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_RADIO_AUDIO</help_id>
		<tooltip_id>TOOLTIPTEXT_AUDIO_PANEL_TRANSMIT_RECEIVE</tooltip_id>
		<event_id>RADIO_ADF_IDENT_TOGGLE</event_id>
	</mouserect>
</part>

<part>
	<name>switch_gov_rpm</name>
	<animation>
		<parameter>
			<code>(L:GOVERNOR RPM SWITCH, enum) -25 * 25 +</code>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_BELL_GOVERNOR</help_id>
		<mouse_flags>LeftSingle+LeftDrag+LeftRelease</mouse_flags>
		<callback_code>
			(M:Event) 'LeftRelease' scmp 0 == if{ 0 (&gt;L:GOVERNOR RPM SWITCH, enum) quit }
			(M:Event) 'LeftSingle' scmp 0 == if{ (M:Y) (&gt;G:Var1) 0 (&gt;L:GOVERNOR RPM SWITCH, enum) quit }
			(M:Y) (G:Var1) - 5 / int s0 0 &gt; if{ (&gt;K:DECREASE_HELO_GOV_BEEP) -1 (&gt;L:GOVERNOR RPM SWITCH, enum) }
									 l0 0 &lt; if{ (&gt;K:INCREASE_HELO_GOV_BEEP) 1 (&gt;L:GOVERNOR RPM SWITCH, enum) }
									 l0 0 == if{ 0 (&gt;L:GOVERNOR RPM SWITCH, enum) }
		</callback_code>
	</mouserect>
</part>

<part>
	<name>lever_inertial_seperator</name>
	<animation>
		<parameter>
			<sim>
				<variable>ENG ANTI ICE:1</variable>
				<units>bool</units>
				<scale>100</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<tooltip_id>TOOLTIPTEXT_INERTIAL_SEPERATOR</tooltip_id>
		<event_id>ANTI_ICE_TOGGLE_ENG1</event_id>
	</mouserect>
</part>

<part>
	<name>switch_smoke</name>
	<animation>
		<parameter>
			<sim>
				<variable>SMOKE ENABLE</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_EXTR_SMOKE</help_id>
		<event_id>SMOKE_TOGGLE</event_id>
	</mouserect>
</part>

<part>
	<name>switch_autofeather</name>
	<animation>
		<parameter>
			<sim>
				<variable>PANEL AUTO FEATHER SWITCH</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<tooltip_id>TOOLTIPTEXT_AUTOFEATHER_SWITCH</tooltip_id>
		<event_id>TOGGLE_AUTOFEATHER_ARM</event_id>
	</mouserect>
</part>

<part>
	<name>landing_light</name>
	<animation>
		<parameter>
			<code>
			(A:ELECTRICAL MAIN BUS VOLTAGE, volts) 0 &gt; if{
			  (A:LIGHT STATES, flags) 4 &amp; 0 ==
			  if{ 0 } els{ 100 }
			  d (&gt;L:LastLandingLightPosition,percent)
			}
			els{ (L:LastLandingLightPosition,percent) }
			</code>
			<lag>50</lag>
		</parameter>
	</animation>
</part>

<part>
    <name>engine_rocker_arm</name>
	<animation>
		<parameter>
			<code>
                (A:GENERAL ENG ELAPSED TIME:1,RPM) (A:GENERAL ENG RPM:1,RPM) * 100 %
<!--
                (A:PROP RPM:1,RPM) 60 / (A:GENERAL ENG ELAPSED TIME, millisecond) * 100 %
                (A:PROP RPM:1,RPM) 60 / (E:ABSOLUTE TIME, second) * 100 %
                (A:GENERAL ENG ELAPSED TIME:1,RPM) 60 / (E:ABSOLUTE TIME, second) * 100 %
-->
            </code>
		</parameter>
	</animation>
</part>

<part>
	<name>R_landing_light</name>
	<copy>landing_light</copy>
</part>

<!--
<part>
	<name>LightGlass</name>
	<effect>
		<filename>fx_landing</filename>
		<is_light>true</is_light>
	</effect>
</part>

<part>
	<name>light_land</name>
	<effect>
		<filename>fx_landing</filename>
		<is_light>true</is_light>
	</effect>
	<visible_mask>
		<keyword>light_states</keyword>
		<mask>LIGHT_LANDING_MASK</mask>
	</visible_mask>
</part>
-->

<part>
	<name>ambient_rain</name>
	<visible_mask>
		<parameter>
			<sim>
				<variable>AMBIENT PRECIP STATE</variable>
				<units>flags</units>
			</sim>
		</parameter>
		<mask>AMBIENT_PRECIP_RAIN</mask>
	</visible_mask>
</part>
<part>
	<name>ambient_snow</name>
	<visible_mask>
		<parameter>
			<sim>
				<variable>AMBIENT PRECIP STATE</variable>
				<units>flags</units>
			</sim>
		</parameter>
		<mask>AMBIENT_PRECIP_SNOW</mask>
	</visible_mask>
</part>
<part>
	<name>ambient_noprecip</name>
	<visible_mask>
		<parameter>
			<sim>
				<variable>AMBIENT PRECIP STATE</variable>
				<units>flags</units>
			</sim>
		</parameter>
		<mask>AMBIENT_PRECIP_NONE</mask>
	</visible_mask>
</part>
<part>
	<name>engine0_turning</name>
	<visible_in_range>
		<parameter>
			<sim>
				<variable>GENERAL ENG RPM:1</variable>
				<units>rpm</units>
			</sim>
		</parameter>
		<minvalue>1</minvalue>
	</visible_in_range>
</part>
<part>
	<name>engine0_stopped</name>
	<visible_in_range>
		<parameter>
			<sim>
				<variable>GENERAL ENG RPM:1</variable>
				<units>rpm</units>
			</sim>
		</parameter>
		<maxvalue>1</maxvalue>
	</visible_in_range>
</part>
<part>
	<name>airspeed_effects_windshield</name>
	<visible_in_range>
		<parameter>
			<sim>
				<variable>RELATIVE WIND VELOCITY BODY Z</variable>
				<units>knots</units>
			</sim>
		</parameter>
		<minvalue>5</minvalue>
	</visible_in_range>
</part>
<part>
	<name>airspeed_noeffects_windshield</name>
	<visible_in_range>
		<parameter>
			<sim>
				<variable>RELATIVE WIND VELOCITY BODY Z</variable>
				<units>knots</units>
			</sim>
		</parameter>
		<maxvalue>5</maxvalue>
	</visible_in_range>
</part>

<part>
	<name>fly_wheel</name>
	<animation>
		<rotation>Y</rotation>
		<parameter>
			<code>(A:General eng rpm:1,RPM) 60 &gt; if{ (E:ABSOLUTE TIME, second) 5 * } els{ 0 }</code>
		</parameter>
	</animation>
</part>

<part>
	<name>anemometer_spirit</name>
	<animation>
		<rotation>Z</rotation>
		<parameter>
			<!--
			Following uses Anemometer Percent as Anemometer RPM.  This is bogus but effective.
			Rotation at time T seconds in degrees is 6 * RPM * T % 360
			-->
			<code>
                (A:ANEMOMETER PCT RPM,percent) 6 * (E:ABSOLUTE TIME, second) * 360 % dgrd
			</code>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_WRIGHT_FLYER_ANEMOMETER</tooltip_id>
		<tooltip_text>anemometer_spirit</tooltip_text>
	</mouserect>
</part>

<part>
	<name>anemometer</name>
	<animation>
		<rotation>Z</rotation>
		<parameter>
			<!--
			if (airspeed > 26)
				airspeed = 26
			LastAnemRotation = ((airspeed / 2) + LastAnemRotation) % 360
			parameter = deg2rad(LastAnimRotation)
			-->
			<code>
				(A:Airspeed select indicated or true,knots)	26 min
				2 /
				(L:LastAnemRotation, degrees) +
				360 %
				d
				(&gt;L:LastAnemRotation, degrees)
				dgrd
			</code>
		</parameter>
	</animation>
	<mouserect>
		<tooltip_id>TOOLTIPTEXT_WRIGHT_FLYER_ANEMOMETER</tooltip_id>
	</mouserect>
</part>

<part>
	<name>anemometer_vickers</name>
	<copy>anemometer</copy>
	<animation>
		<rotation>Y</rotation>
	</animation>
</part>

<part>
    <name>lever_primer</name>
    <animation>
        <parameter>
            <sim>
                <variable>RECIP ENG PRIMER:1</variable>
                <units>percent</units>
                <scale>1</scale>
            </sim>
            <lag>100</lag>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
        <help_id>HELPID_CESS_PRIMER_SWITCH</help_id>
        <event_id>TOGGLE_PRIMER</event_id>
    </mouserect>
</part>

<part>
    <name>lever_primer_trimotor</name>
    <animation>
        <parameter>
			<code>
            (G:Var1) d 0 == if{ (A:RECIP ENG PRIMER:1, percent) }
              els{ d 1 == if{ (A:RECIP ENG PRIMER:2, percent) }
                els{ 2 == if{ (A:RECIP ENG PRIMER:3, percent) }
                  els{ 0 }
                   }
                 }
			</code>		
            <lag>100</lag>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
        <help_id>HELPID_CESS_PRIMER_SWITCH</help_id>
        <callback_code>
            (G:Var1) d 0 == if{ (&gt;K:TOGGLE_PRIMER1) }
              els{ d 1 == if{ (&gt;K:TOGGLE_PRIMER2) }
                els{ 2 == if{ (&gt;K:TOGGLE_PRIMER3) }
                   }
                 }
        </callback_code>
   </mouserect>
</part>

<part>
    <name>switch_trimotor_engine_primer_selector</name>
    <copy>lever_primer_trimotor</copy>
	<animation>
		<parameter>
			<code>(G:Var1) 50 *</code>
		</parameter>
	</animation>
    <mouserect>
        <cursor>Hand</cursor>
        <help_id>HELPID_CESS_PRIMER_SWITCH</help_id>
        <callback_code>
            (G:Var1) d 0 == if{ ++ } els{ d 1 == if{ ++ } els{ 0 } } (&gt;G:Var1)
        </callback_code>
    </mouserect>
</part>

<part>
    <name>periscope_tube</name>
    <animation>
		<parameter>
			<code>(L:PeriscopePos, percent)</code>
		</parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
		<tooltip_id>TOOLTIPTEXT_SPIRIT_PERISCOPE</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_code>
			(M:Event) 'LeftSingle' scmp 0 !=
			if{
			  (L:PeriscopeX, position) s0 0 !=
			  if{
			    (L:PeriscopePos, percent) (M:X) l0 &lt;
			    if{ 5 + 100 min } els{ l0 (M:X) &lt; if{ 5 - 0 max } }
			    (&gt;L:PeriscopePos, percent)
			    }
			  }
			(M:X) (&gt;L:PeriscopeX, position)
		</callback_code>
	</mouserect>
</part>

<part>
	<name>lever_fuel_selector_spirit</name>
	<animation>
		<parameter>
			<code> 100 75 50 0 0 0 0 25 0 9 (A:FUEL TANK SELECTOR 1, enum) case </code>
			<lag>100</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_FUEL_SELECTOR</help_id>
		<tooltip_id>TOOLTIPTEXT_FUEL_SELECTOR</tooltip_id>
        <mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
        <callback_code>(A:Fuel tank selector 1,enum)
          d
          8 &lt;
          if{
            1 +
            s0
            2 ==
            if{ 6 }
            els{ l0 }
            }
          els{ 0 }
            (&gt;K:FUEL_SELECTOR_SET)
        </callback_code>
	</mouserect>
</part>

<part>
    <name>lever_wobble_pump</name>
    <animation>
        <parameter>
            <sim>
                <variable>FUEL SELECTED TRANSFER MODE:1</variable>
                <units>percent</units>
                <scale>1</scale>
            </sim>
            <lag>100</lag>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
        <tooltip_id>TOOLTIPTEXT_FUEL_TRANSFER_PUMP</tooltip_id>
        <event_id>MANUAL_FUEL_TRANSFER</event_id>
    </mouserect>
</part>

<part>
    <name>lever_carb_heat</name>
    <animation>
        <parameter>
            <sim>
                <variable>ENG ANTI ICE:1</variable>
                <units>percent</units>
                <scale>1</scale>
            </sim>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
        <help_id>HELPID_CESS_CARB_HEAT</help_id>
        <event_id>ANTI_ICE_TOGGLE</event_id>
    </mouserect>
</part>

<part>
    <name>lever_carb_heat0</name>
    <animation>
        <parameter>
            <sim>
                <variable>ENG ANTI ICE:1</variable>
                <units>percent</units>
                <scale>1</scale>
            </sim>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
        <tooltip_id>TOOLTIPTEXT_ENG1_CARB_HEAT</tooltip_id>
        <event_id>ANTI_ICE_TOGGLE_ENG1</event_id>
    </mouserect>
</part>

<part>
    <name>lever_carb_heat1</name>
    <animation>
        <parameter>
            <sim>
                <variable>ENG ANTI ICE:2</variable>
                <units>percent</units>
                <scale>1</scale>
            </sim>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
        <tooltip_id>TOOLTIPTEXT_ENG2_CARB_HEAT</tooltip_id>
        <event_id>ANTI_ICE_TOGGLE_ENG2</event_id>
    </mouserect>
</part>

<part>
    <name>lever_carb_heat2</name>
    <animation>
        <parameter>
            <sim>
                <variable>ENG ANTI ICE:3</variable>
                <units>percent</units>
                <scale>1</scale>
            </sim>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
        <tooltip_id>TOOLTIPTEXT_ENG3_CARB_HEAT</tooltip_id>
        <event_id>ANTI_ICE_TOGGLE_ENG3</event_id>
    </mouserect>
</part>

<part>
    <name>lever_fuel_selector_trimotor0</name>
    <animation>
        <parameter>
            <code>75 0 0 50 25 25 0 7 (A:Fuel Tank Selector 1,enum) case</code>
			<lag>200</lag>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
        <tooltip_id>TOOLTIPTEXT_FUEL_SELECTOR_1</tooltip_id>
        <callback_code>
        (A:Fuel Tank Selector 1,enum)
        d 0 == if{ (&gt;K:FUEL_SELECTOR_LEFT) }
          els{ d 1 == if{ (&gt;K:FUEL_SELECTOR_RIGHT) }
			els{ d 2 == if{ (&gt;K:FUEL_SELECTOR_RIGHT) }
			  els{ d 3 == if{ (&gt;K:FUEL_SELECTOR_CENTER) }
				els{ d 6 == if{ (&gt;K:FUEL_SELECTOR_OFF) }
				}
			  }
			}
		  }
        </callback_code>
    </mouserect>
</part>

<part>
    <name>lever_fuel_selector_trimotor_center</name>
    <animation>
        <parameter>
            <code>(A:Fuel Tank Selector 2,enum) 25 *</code>
			<lag>200</lag>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
        <tooltip_id>TOOLTIPTEXT_FUEL_SELECTOR_2</tooltip_id>
        <callback_code>(A:Fuel Tank Selector 2,enum) 1 == if{ (&gt;K:FUEL_SELECTOR_2_OFF) } els{ (&gt;K:FUEL_SELECTOR_2_ALL) }</callback_code>
    </mouserect>
</part>

<part>
    <name>lever_fuel_selector_trimotor2</name>
    <animation>
        <parameter>
            <code>75 0 0 50 25 25 0 7 (A:Fuel Tank Selector 3,enum) case</code>
			<lag>200</lag>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
        <tooltip_id>TOOLTIPTEXT_FUEL_SELECTOR_3</tooltip_id>
        <callback_code>
        (A:Fuel Tank Selector 3,enum)
        d 0 == if{ (&gt;K:FUEL_SELECTOR_3_LEFT) }
          els{ d 1 == if{ (&gt;K:FUEL_SELECTOR_3_RIGHT) }
            els{ d 2 == if{ (&gt;K:FUEL_SELECTOR_3_RIGHT) }
              els{ d 3 == if{ (&gt;K:FUEL_SELECTOR_3_CENTER) }
                els{ d 6 == if{ (&gt;K:FUEL_SELECTOR_3_OFF) }
			    }
              }
            }
          }
        </callback_code>
    </mouserect>
</part>

<part>
    <name>switch_trimotor_fuel_quantity_selector</name>
	<animation>
		<parameter>
			<code>(L:FUEL GAUGE SWITCH, enum) 50 *</code>
			<lag>100</lag>
		</parameter>
	</animation>
    <mouserect>
        <cursor>Hand</cursor>
        <tooltip_id>TOOLTIPTEXT_FORD_TRIMOTOR_FUEL_GAUGE_SELECTOR</tooltip_id>
		<callback_code>(L:FUEL GAUGE SWITCH, enum) ++ d 2 &gt; if{ 0 } (&gt;L:FUEL GAUGE SWITCH, enum)</callback_code>
    </mouserect>
</part>

<part>
    <name>switch_governor</name>
    <animation>
        <parameter>
            <code>
                (A:Rotor Gov Active,bool) 100 *
            </code>
            <lag>50</lag>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
        <tooltip_id>TOOLTIPTEXT_ROTOR_GOVERNOR_SWITCH</tooltip_id>
        <event_id>ROTOR_GOV_SWITCH_TOGGLE</event_id>
    </mouserect>
</part>

<part>
    <name>lever_r22_rotor_trim</name>
    <animation>
        <parameter>
            <code>
                (A:Rotor lateral trim pct,percent)
            </code>
            <lag>50</lag>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
        <tooltip_id>TOOLTIPTEXT_R22_RT_TRIM</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>       
		<callback_dragging>
			<variable>Rotor lateral trim pct</variable>
			<units>percent</units>
			<scale>163.84</scale>
			<yscale>-163.84</yscale>
			<minvalue>0</minvalue>
			<maxvalue>16384</maxvalue>
			<event_id>ROTOR_LATERAL_TRIM_SET</event_id>
		</callback_dragging>
    </mouserect>
</part>

<part>
    <name>switch_clutch</name>
    <animation>
        <parameter>
            <code>
                (A:Rotor Clutch Active,bool) 100 *
            </code>
            <lag>50</lag>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
        <tooltip_id>TOOLTIPTEXT_ROTOR_CLUTCH_SWITCH</tooltip_id>
        <event_id>ROTOR_CLUTCH_SWITCH_TOGGLE</event_id>
    </mouserect>
</part>

<part>
    <name>lever_rotor_brake</name>
    <animation>
        <parameter>
            <code>
                (A:Rotor Brake Active,bool) 100 *
            </code>
            <lag>50</lag>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
        <tooltip_id>TOOLTIPTEXT_ROTOR_BRAKE</tooltip_id>
        <event_id>ROTOR_BRAKE</event_id>
    </mouserect>
</part>

<part>
    <name>switch_ignition_magneto</name>
    <animation>
        <parameter>
            <code>
                (A:Recip eng left magneto:1,bool) 100 *
            </code>
            <lag>50</lag>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
        <tooltip_id>TOOLTIPTEXT_MAGNETO_SWITCH</tooltip_id>
		<callback_code>
            (A:Recip eng left magneto:1,bool)
            if{ 0 (&gt;K:MAGNETO_OFF) }
            els{ 0 (&gt;K:MAGNETO_LEFT) }
        </callback_code>
    </mouserect>
</part>

<part>
    <name>switch_left_magneto0</name>
    <animation>
        <parameter>
            <code>
                (A:Recip eng left magneto:1,bool) 50 *
            </code>
            <lag>50</lag>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
        <tooltip_id>TOOLTIPTEXT_ENG1_MAGNETO_SWITCH</tooltip_id>
		<callback_code>
            (A:Recip eng left magneto:1,bool)
            0 == if{1} els{0}
            (&gt;K:MAGNETO1_LEFT)
        </callback_code>
    </mouserect>
</part>

<part>
    <name>switch_left_magneto1</name>
    <animation>
        <parameter>
            <code>
                (A:Recip eng right magneto:1,bool) 50 *
            </code>
            <lag>50</lag>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
        <tooltip_id>TOOLTIPTEXT_ENG1_MAGNETO_SWITCH</tooltip_id>
		<callback_code>
            (A:Recip eng right magneto:1,bool)
            0 == if{1} els{0}
            (&gt;K:MAGNETO1_RIGHT)
        </callback_code>
    </mouserect>
</part>

<part>
    <name>switch_right_magneto0</name>
    <animation>
        <parameter>
            <code>
                (A:Recip eng left magneto:2,bool) 50 *
            </code>
            <lag>50</lag>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
        <tooltip_id>TOOLTIPTEXT_ENG2_MAGNETO_SWITCH</tooltip_id>
		<callback_code>
            (A:Recip eng left magneto:2,bool)
            0 == if{1} els{0}
            (&gt;K:MAGNETO2_LEFT)
        </callback_code>
    </mouserect>
</part>

<part>
    <name>switch_right_magneto1</name>
    <animation>
        <parameter>
            <code>
                (A:Recip eng right magneto:2,bool) 50 *
            </code>
            <lag>50</lag>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
        <tooltip_id>TOOLTIPTEXT_ENG2_MAGNETO_SWITCH</tooltip_id>
		<callback_code>
            (A:Recip eng right magneto:2,bool)
            0 == if{1} els{0}
            (&gt;K:MAGNETO2_RIGHT)
        </callback_code>
    </mouserect>
</part>

<part>
    <name>lever_tailwheel_lock</name>
    <animation>
        <parameter>
            <code>
                1 (A:Tailwheel Lock On,bool) - 100 *
            </code>
            <lag>50</lag>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
        <tooltip_id>TOOLTIPTEXT_TAILWHEEL_LOCK</tooltip_id>
        <event_id>TOGGLE_TAILWHEEL_LOCK</event_id>
    </mouserect>
</part>

<part>
	<name>lever_fuel_selector_DC30</name>
	<animation>
		<parameter>
			<code>75 0 0 25 50 50 0 7 (A:FUEL TANK SELECTOR 1,enum) case</code>
			<lag>100</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_FUEL_SELECTOR</help_id>
		<tooltip_id>TOOLTIPTEXT_DC3_LEFT_FUEL_SELECTOR</tooltip_id>
        <callback_code>
          (A:Fuel tank selector 1,enum) s0 
          <!-- off to right -->
		  0 == if{ (&gt;K:FUEL_SELECTOR_RIGHT) }
            <!-- right to left -->
			els{ l0 3 == if{ (&gt;K:FUEL_SELECTOR_LEFT) }
               <!-- left to center -->
			   els{ l0 2 == if{ (&gt;K:FUEL_SELECTOR_CENTER) }
                 <!-- center to off -->
				 els{ (&gt;K:FUEL_SELECTOR_OFF) }
		          }
				}
        </callback_code>
	</mouserect>
</part>


<part>
	<name>lever_fuel_selector_DC31</name>
	<animation>
		<parameter>
			<code>75 0 0 25 50 50 0 7 (A:FUEL TANK SELECTOR 2, enum) case </code>
			<lag>100</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_FUEL_SELECTOR</help_id>
		<tooltip_id>TOOLTIPTEXT_DC3_RIGHT_FUEL_SELECTOR</tooltip_id>
        <callback_code>
          (A:Fuel tank selector 2,enum) s0 
          <!-- off to right -->
		  0 == if{ (&gt;K:FUEL_SELECTOR_2_RIGHT) }
            <!-- right to left -->
			els{ l0 3 == if{ (&gt;K:FUEL_SELECTOR_2_LEFT) }
               <!-- left to center -->
			   els{ l0 2 == if{ (&gt;K:FUEL_SELECTOR_2_CENTER) }
                 <!-- center to off -->
				 els{ (&gt;K:FUEL_SELECTOR_2_OFF) }
		          }
				}
        </callback_code>
	</mouserect>
</part>

<part>
    <name>switch_primer0</name>
    <animation>
        <parameter>
            <code>
                (A:Recip eng primer:1,bool) 50 *
            </code>
            <lag>50</lag>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
        <tooltip_id>TOOLTIPTEXT_ENG1_PRIMER_SWITCH</tooltip_id>
        <event_id>TOGGLE_PRIMER1</event_id>
    </mouserect>
</part>

<part>
    <name>switch_primer1</name>
    <animation>
        <parameter>
            <code>
                (A:Recip eng primer:2,bool) 50 *
            </code>
            <lag>50</lag>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
        <tooltip_id>TOOLTIPTEXT_ENG2_PRIMER_SWITCH</tooltip_id>
        <event_id>TOGGLE_PRIMER2</event_id>
    </mouserect>
</part>


<part>
    <name>lever_prop_feather0</name>
    <animation>
        <parameter>
            <code>
                (A:Prop feather switch:1,bool) 100 *
            </code>
            <lag>50</lag>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
        <tooltip_id>TOOLTIPTEXT_PROP_FEATHER_SWITCH_1</tooltip_id>
        <event_id>TOGGLE_FEATHER_SWITCH_1</event_id>
    </mouserect>
</part>

<part>
    <name>lever_prop_feather1</name>
    <animation>
        <parameter>
            <code>
                (A:Prop feather switch:2,bool) 100 *
            </code>
            <lag>50</lag>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
        <tooltip_id>TOOLTIPTEXT_PROP_FEATHER_SWITCH_2</tooltip_id>
        <event_id>TOGGLE_FEATHER_SWITCH_2</event_id>
    </mouserect>
</part>

<part>
    <name>rocker_starter</name>
    <animation>
        <parameter>
            <code>
				(A:General eng starter:1, bool) s0 (A:General eng starter:2, bool) s1 + 0 ==
				if{ 25 } els{
				  l0 if{ 0 } els{
					l1 if{ 50 }
					}
                  }
            </code>
            <lag>50</lag>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
        <tooltip_id>TOOLTIPTEXT_ENG1_STARTER_SWITCH</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
 		<callback_jump_dragging>
			<xmovement>
				<delta>12</delta>
				<event_id_inc>TOGGLE_STARTER2</event_id_inc>
				<event_id_dec>TOGGLE_STARTER1</event_id_dec>
			</xmovement>
		</callback_jump_dragging>
   </mouserect>
</part>

<part>
    <name>switch_boost_pump0</name>
    <copy>switch_fuel_pump0</copy>
</part>

<part>
    <name>switch_boost_pump1</name>
    <copy>switch_fuel_pump1</copy>
</part>

<part>
    <name>lever_fuel_selector_Comet0</name>
    <animation>
        <parameter>
            <code>50 0 0 0 0 0 0 0 0 0 0 0 75 0 0 0 0 0 25 19 (A:Fuel Tank Selector 1,enum) case</code>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>       
        <tooltip_id>TOOLTIPTEXT_COMET_LEFT_FUEL_SELECTOR</tooltip_id>
        <callback_code>			
			(M:Event) 'LeftSingle' scmp 0 == if{ (M:Y) (&gt;L:CometFuel0Click, position) quit }
			
			<!-- Calculate amount to change value by pixel offset -->
			(M:Y) (L:CometFuel0Click, position) - 50 / int s0 0 !=
			if{
			  
			    <!-- Calculate current value -->
			    2 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 1 19 (A:Fuel Tank Selector 1,enum) case
              
                <!-- Add amount to change to get new value -->
                l0 + 3 min 0 max s1
			  
			    <!-- Normal -->
			    0 == if{ 2 (&gt;K:FUEL_SELECTOR_SET) }
			      <!-- Shutoff -->
			      els{ l1 1 == if{ 0 (&gt;K:FUEL_SELECTOR_SET) }
				    <!-- Isolate -->
				    els{ l1 2 == if{ 18 (&gt;K:FUEL_SELECTOR_SET) }
				      <!-- Aux -->
				      els{ 6 (&gt;K:FUEL_SELECTOR_SET) }
				       }
				     }
			  }
		</callback_code>
    </mouserect>
</part>

<part>
    <name>lever_fuel_selector_Comet1</name>
    <animation>
        <parameter>
            <code>50 0 0 0 0 0 0 0 0 0 0 0 75 0 0 0 0 0 25 19 (A:Fuel Tank Selector 2,enum) case</code>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
        <tooltip_id>TOOLTIPTEXT_COMET_RIGHT_FUEL_SELECTOR</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>       
        <callback_code>			
			(M:Event) 'LeftSingle' scmp 0 == if{ (M:Y) (&gt;L:CometFuel1Click, position) quit }
			
			<!-- Calculate amount to change value by pixel offset -->
			(M:Y) (L:CometFuel1Click, position) - 50 / int s0 0 !=
			if{
			  
			    <!-- Calculate current value -->
			    2 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 1 19 (A:Fuel Tank Selector 2,enum) case
              
                <!-- Add amount to change to get new value -->
                l0 + 3 min 0 max s1
			  
			    <!-- Normal -->
			    0 == if{ 3 (&gt;K:FUEL_SELECTOR_2_SET) }
			      <!-- Shutoff -->
			      els{ l1 1 == if{ 0 (&gt;K:FUEL_SELECTOR_2_SET) }
				    <!-- Isolate -->
				    els{ l1 2 == if{ 18 (&gt;K:FUEL_SELECTOR_2_SET) }
				      <!-- Aux -->
				      els{ 6 (&gt;K:FUEL_SELECTOR_2_SET) }
				       }
				     }
			  }
		</callback_code>	
    </mouserect>
</part>

<part>
    <name>lever_fuel_crossfeed</name>
    <animation>
        <parameter>
            <code>
                (A:Fuel Cross Feed,bool) 100 *
            </code>
        </parameter>
    </animation>
    <mouserect>
        <cursor>Hand</cursor>
        <tooltip_id>TOOLTIPTEXT_COMET_CROSSFEED</tooltip_id>
        <event_id>CROSS_FEED_TOGGLE</event_id>
    </mouserect>
</part>

<part>
	<name>lever_fuel_selector_LOR</name>
	<animation>
		<parameter>
			<code>2 0 1 1 4 (A:FUEL TANK SELECTOR:1, enum) case 25 *</code>
			<lag>100</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_FUEL_SELECTOR</help_id>
		<tooltip_id>TOOLTIPTEXT_FUEL_SELECTOR</tooltip_id>
		<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
		<callback_code>(M:Event) 'LeftSingle' scmp 0 ==
			if{ (M:X) (&gt;G:Var1) 2 0 1 1 4 (A:FUEL TANK SELECTOR:1, enum) case (&gt;G:Var2) }
			els{ (M:X) (G:Var1) - 40 / int (G:Var2) + 0 max 2 min s0 2 0 1 1 4 (A:FUEL TANK SELECTOR:1, enum) case !=
				if{ l0 0 == if{ (&gt;K:FUEL_SELECTOR_LEFT) } l0 1 == if{ (&gt;K:FUEL_SELECTOR_OFF) } l0 2 == if{ (&gt;K:FUEL_SELECTOR_RIGHT) } }</callback_code>
	</mouserect>
</part>

<part>
	<name>indicator_fuel_quantity</name>
	<animation>
		<parameter>
			<sim>
				<variable>FUEL TANK CENTER LEVEL</variable>
				<units>position</units>
				<scale>100</scale>
			</sim>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_FUEL_PERCENT</help_id>
		<tooltip_id>TOOLTIPTEXT_CENTER_FUEL_PERCENT</tooltip_id>
	</mouserect>
</part>

<part> 

    <name>AI_canopy</name> 

        <animation>

          <parameter>

            <sim>

               <variable>LIGHT BEACON</variable>

               <units>bool</units>

               <scale>100</scale>

            </sim>

            <lag>40</lag>

         </parameter>

        </animation>

</part>

<part>

  <name>parked_part</name> 

  <visible_in_range>

  <parameter>

  <code> (A:LIGHT BEACON, bool) (A:VELOCITY BODY Z, knots) 0 != || </code>

  </parameter>

  <minvalue>-1</minvalue>

  <maxvalue>0</maxvalue>

  </visible_in_range>

  </part>
  
<part>

  <name>unparked_part</name> 

  <visible_in_range>

  <parameter>
  
        <Code>
          (A:LIGHT BEACON,bool) !
          (A:VELOCITY BODY Z,knots) 1 &lt;
          and
          if{ 0 } els{ 1 }
        </Code>
             
  </parameter>

  <minvalue>0</minvalue>

  <maxvalue>1</maxvalue>

  </visible_in_range>

  </part>

</part_dictionary>