<?xml version="1.0" encoding="UTF-8"?>
<Gauge Name="AP2DISP">

	<Element>
    	<Visible>(L:DC_ESS_Avail, number) 1 == (A:LIGHT PANEL, bool) 0 == &amp;&amp;  (L:LightTest, number) 0 == &amp;&amp;</Visible>

		<Element>
			<Position X="0" Y="0"/>
			<Image Name="AP2Disp.bmp" Bright="Yes" ImageSizes="248,48,0,0"/>
		</Element>
		
		<Element>
			<Position X="64" Y="12"/>
			<Text X="93" Y="34" Length="5" Fixed="Yes" Font="AirbusFCU" FontSize="36" Attributes="Bold" Color="#5F4618" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				<String>%((L:AB_AP_ALT_Select, number))%!005.0f!</String>
			</Text>
		</Element>
		
		<Element>
			<Visible>(L:AB_AP_HDGTRK, number) 0 ==</Visible>
			<Element>
				<Position X="5" Y="15"/>
				<Text X="100" Y="25" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="17" Color="#5F4618" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
					<String>v</String>
				</Text>
			</Element>
		</Element>
		
		<Element>
			<Visible>(L:AB_AP_HDGTRK, number) 1 ==</Visible>
			<Element>
				<Position X="5" Y="29"/>
				<Text X="100" Y="25" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="17" Color="#5F4618" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
					<String>f</String>
				</Text>
			</Element>
		</Element>
		
		<!-- CHB NOTE: Value displayed in FCU: V/S. -->
		<Element>
			<Visible>
				(L:AB_AP_KNOBALT, bool) 1 ==
				(L:FCU_Managed_VSdisp_override, bool) 1 == ||
				(L:AB_AP_HDGTRK, number) 0 == &amp;&amp;
			</Visible>
			<Element>
				<Position X="195" Y="12"/>
				<Text X="77" Y="34" Length="4" Fixed="Yes" Font="AirbusFCU" FontSize="36" Attributes="Bold" Color="#5F4618" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
					<String>%((L:AB_AP_VS_Select2, number) abs)%!02.0f!##</String>
				</Text>
			</Element>
		</Element>
	
		<Element>
			<Visible>
				(L:AB_AP_KNOBALT, bool) 1 ==
				(L:FCU_Managed_VSdisp_override, bool) 1 == ||
				(L:AB_AP_HDGTRK, number) 1 == &amp;&amp;
			</Visible>
			<Element>
				<Position X="195" Y="12"/>
				<Text X="35" Y="34" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="36" Attributes="Bold" Color="#5F4618" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				    <String>%((L:AB_AP_FPA_Select2num, number))%!s!</String>
				</Text>
			</Element>
			<Element>
			<Position X="212" Y="25"/>
			<Text X="89" Y="35" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="21" Attributes="Bold" Color="#5F4618" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				<String>.</String>
			</Text>
		</Element>
			<Element>
				<Position X="216" Y="12"/>
				<Text X="35" Y="32" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="36" Attributes="Bold" Color="#5F4618" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
					<String>%((L:AB_AP_FPA_Select2deci, number) 10 * )%!s!</String>
				</Text>
			</Element>
		</Element>
		
		<Element>
			<Visible>
				(L:AB_AP_KNOBALT, bool) 1 ==
				(L:FCU_Managed_VSdisp_override, bool) 1 == ||
				(L:AB_AP_HDGTRK, number) 0 == &amp;&amp;
				(L:AB_AP_VS_Select2, number) 0 &gt;= &amp;&amp;
				
				(L:AB_AP_KNOBALT, bool) 1 ==
				(L:FCU_Managed_VSdisp_override, bool) 1 == ||
				(L:AB_AP_HDGTRK, number) 1 == &amp;&amp;
				(L:AB_AP_FPA_Select2, number) 0 &gt;= &amp;&amp; ||
			</Visible>
			<Element>
				<Position X="179" Y="13"/>
				<Text X="21" Y="34" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="34" Attributes="Bold" Color="#5F4618" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
					<String>+</String>
				</Text>
			</Element>
		</Element>
		
		<Element>
			<Visible>
				(L:AB_AP_KNOBALT, bool) 1 ==
				(L:FCU_Managed_VSdisp_override, bool) 1 == ||
				(L:AB_AP_HDGTRK, number) 0 == &amp;&amp;
				(L:AB_AP_VS_Select2, number) 0 &lt; &amp;&amp;
				
				(L:AB_AP_KNOBALT, bool) 1 ==
				(L:FCU_Managed_VSdisp_override, bool) 1 == ||
				(L:AB_AP_HDGTRK, number) 1 == &amp;&amp;
				(L:AB_AP_FPA_Select2, number) 0 &lt; &amp;&amp; ||
			</Visible>
			<Element>
				<Position X="179" Y="12"/>
				<Text X="21" Y="34" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="36" Attributes="Bold" Color="#5F4618" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
					<String>-</String>
				</Text>
			</Element>
		</Element>
		
		<Element>
			<Visible>
				(L:AB_AP_KNOBALT, bool) 0 ==
				(L:FCU_Managed_VSdisp_override, bool) 0 == &amp;&amp;
			</Visible>
			<Element>
				<Position X="179" Y="12"/>
				<Text X="21" Y="34" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="36" Attributes="Bold" Color="#5F4618" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
					<String>-</String>
				</Text>
			</Element>
			<Element>
				<Position X="195" Y="12"/>
				<Text X="77" Y="34" Length="4" Fixed="Yes" Font="AirbusFCU" FontSize="36" Attributes="Bold" Color="#5F4618" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
					<String>----</String>
				</Text>
			</Element>
		</Element>
		
		<Element>
			<Visible>(L:AP_AP_ALT_Mode, number) 1 ==
					 (L:AB_AP_KNOBALT, bool) 0 == &amp;&amp;</Visible>
				<Element>
					<Position X="165" Y="23"/>
					<Image Name="APDot.bmp" Bright="Yes" ImageSizes="15,15,0,0"/>
				</Element>
		</Element>
		
		<Element>
			<Position X="99" Y="0"/>
			<Text X="75" Y="25" Length="3" Fixed="Yes" Font="AirbusFCU" FontSize="17" Color="#5F4618" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				<String>a</String>
			</Text>
		</Element>
		
		<Element>
			<Position X="150" Y="0"/>
			<Text X="300" Y="25" Length="6" Fixed="Yes" Font="AirbusFCU" FontSize="17" Color="#5F4618" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				<String>l</String>
			</Text>
		</Element>
		
		<Element>
			<Visible>
				(L:AB_AP_HDGTRK, number) 0 ==
			</Visible>
			<Element>
				<Position X="222" Y="0"/>
				<Text X="100" Y="25" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="17" Color="#5F4618" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
					<String>v</String>
				</Text>
			</Element>
		</Element>
		
		<Element>
			<Visible>
				(L:AB_AP_HDGTRK, number) 1 ==
			</Visible>
			<Element>
				<Position X="247" Y="0"/>
				<Text X="80" Y="25" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="17" Color="#5F4618" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
					<String>f</String>
				</Text>
			</Element>
		</Element>
		
		<Element>
			<Position X="127" Y="7"/>
			<Image Name="AP2Disp_bracket.bmp" Bright="Yes" ImageSizes="93,8,0,0"/>
		</Element>
	</Element>
	
	<Element>
    	<Visible>(L:DC_ESS_Avail, number) 1 == (A:LIGHT PANEL, bool) 1 == &amp;&amp; (L:LightTest, number) 0 == &amp;&amp;</Visible>
		
		<Element>
			<Position X="0" Y="0"/>
			<Image Name="AP2Disp_night.bmp" Bright="Yes" ImageSizes="248,48,0,0"/>
		</Element>

		<Element>
			<Position X="64" Y="12"/>
			<Text X="93" Y="34" Length="5" Fixed="Yes" Font="AirbusFCU" FontSize="36" Attributes="Bold" Color="#C86B20" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				<String>%((L:AB_AP_ALT_Select, number))%!005.0f!</String>
			</Text>
		</Element>
		
		<Element>
			<Visible>(L:AB_AP_HDGTRK, number) 0 ==</Visible>
			<Element>
				<Position X="5" Y="15"/>
				<Text X="100" Y="25" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="17" Color="#C86B20" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
					<String>v</String>
				</Text>
			</Element>
		</Element>
		
		<Element>
			<Visible>(L:AB_AP_HDGTRK, number) 1 ==</Visible>
			<Element>
				<Position X="5" Y="29"/>
				<Text X="100" Y="25" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="17" Color="#C86B20" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
					<String>f</String>
				</Text>
			</Element>
		</Element>
		
		<!-- CHB NOTE: Value displayed in FCU: V/S. -->
		<Element>
			<Visible>
				(L:AB_AP_KNOBALT, bool) 1 ==
				(L:FCU_Managed_VSdisp_override, bool) 1 == ||
				(L:AB_AP_HDGTRK, number) 0 == &amp;&amp;
			</Visible>
			<Element>
				<Position X="195" Y="12"/>
				<Text X="77" Y="34" Length="4" Fixed="Yes" Font="AirbusFCU" FontSize="36" Attributes="Bold" Color="#C86B20" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
					<String>%((L:AB_AP_VS_Select2, number) abs)%!02.0f!##</String>
				</Text>
			</Element>
		</Element>
	
		<Element>
			<Visible>
				(L:AB_AP_KNOBALT, bool) 1 ==
				(L:FCU_Managed_VSdisp_override, bool) 1 == ||
				(L:AB_AP_HDGTRK, number) 1 == &amp;&amp;
			</Visible>
			<Element>
				<Position X="195" Y="12"/>
				<Text X="35" Y="34" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="36" Attributes="Bold" Color="#C86B20" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				    <String>%((L:AB_AP_FPA_Select2num, number))%!s!</String>
				</Text>
			</Element>
		<Element>
			<Position X="212" Y="25"/>
			<Text X="89" Y="35" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="21" Attributes="Bold" Color="#C86B20" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				<String>.</String>
			</Text>
		</Element>
			<Element>
				<Position X="216" Y="12"/>
				<Text X="35" Y="32" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="36" Attributes="Bold" Color="#C86B20" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
					<String>%((L:AB_AP_FPA_Select2deci, number) 10 * )%!s!</String>
				</Text>
			</Element>
		</Element>
		
		<Element>
			<Visible>
				(L:AB_AP_KNOBALT, bool) 1 ==
				(L:FCU_Managed_VSdisp_override, bool) 1 == ||
				(L:AB_AP_HDGTRK, number) 0 == &amp;&amp;
				(L:AB_AP_VS_Select2, number) 0 &gt;= &amp;&amp;
				
				(L:AB_AP_KNOBALT, bool) 1 ==
				(L:FCU_Managed_VSdisp_override, bool) 1 == ||
				(L:AB_AP_HDGTRK, number) 1 == &amp;&amp;
				(L:AB_AP_FPA_Select2, number) 0 &gt;= &amp;&amp; ||
			</Visible>
			<Element>
				<Position X="179" Y="13"/>
				<Text X="21" Y="34" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="34" Attributes="Bold" Color="#C86B20" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
					<String>+</String>
				</Text>
			</Element>
		</Element>
		
		<Element>
			<Visible>
				(L:AB_AP_KNOBALT, bool) 1 ==
				(L:FCU_Managed_VSdisp_override, bool) 1 == ||
				(L:AB_AP_HDGTRK, number) 0 == &amp;&amp;
				(L:AB_AP_VS_Select2, number) 0 &lt; &amp;&amp;
				
				(L:AB_AP_KNOBALT, bool) 1 ==
				(L:FCU_Managed_VSdisp_override, bool) 1 == ||
				(L:AB_AP_HDGTRK, number) 1 == &amp;&amp;
				(L:AB_AP_FPA_Select2, number) 0 &lt; &amp;&amp; ||
			</Visible>
			<Element>
				<Position X="179" Y="12"/>
				<Text X="21" Y="34" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="36" Attributes="Bold" Color="#C86B20" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
					<String>-</String>
				</Text>
			</Element>
		</Element>
		
		<Element>
			<Visible>
				(L:AB_AP_KNOBALT, bool) 0 ==
				(L:FCU_Managed_VSdisp_override, bool) 0 == &amp;&amp;
			</Visible>
			<Element>
				<Position X="179" Y="12"/>
				<Text X="21" Y="34" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="36" Attributes="Bold" Color="#C86B20" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
					<String>-</String>
				</Text>
			</Element>
			<Element>
				<Position X="195" Y="12"/>
				<Text X="77" Y="34" Length="4" Fixed="Yes" Font="AirbusFCU" FontSize="36" Attributes="Bold" Color="#C86B20" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
					<String>----</String>
				</Text>
			</Element>
		</Element>
		
		<Element>
			<Visible>(L:AP_AP_ALT_Mode, number) 1 == 
					 (L:AB_AP_KNOBALT, bool) 0 == &amp;&amp;</Visible>
				<Element>
					<Position X="165" Y="23"/>
					<Image Name="APDot_night.bmp" Bright="Yes" ImageSizes="15,15,0,0"/>
				</Element>
		</Element>
		
		<Element>
			<Position X="99" Y="0"/>
			<Text X="75" Y="25" Length="3" Fixed="Yes" Font="AirbusFCU" FontSize="17" Color="#C86B20" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				<String>a</String>
			</Text>
		</Element>
		
		<Element>
			<Position X="150" Y="0"/>
			<Text X="300" Y="25" Length="6" Fixed="Yes" Font="AirbusFCU" FontSize="17" Color="#C86B20" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				<String>l</String>
			</Text>
		</Element>
		
		<Element>
			<Visible>
				(L:AB_AP_HDGTRK, number) 0 ==
			</Visible>
			<Element>
				<Position X="222" Y="0"/>
				<Text X="100" Y="25" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="17" Color="#C86B20" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
					<String>v</String>
				</Text>
			</Element>
		</Element>
		
		<Element>
			<Visible>
				(L:AB_AP_HDGTRK, number) 1 ==
			</Visible>
			<Element>
				<Position X="247" Y="0"/>
				<Text X="80" Y="25" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="17" Color="#C86B20" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
					<String>f</String>
				</Text>
			</Element>
		</Element>
		
		<Element>
			<Position X="127" Y="7"/>
			<Image Name="AP2Disp_bracket_night.bmp" Bright="Yes" ImageSizes="93,8,0,0"/>
		</Element>

	</Element>
	
	<!-- xxxxxxxxxxxxxxxxxxxxxxxxxx -->
	<Element>
		<Visible>(L:DC_ESS_Avail, number) 1 == (A:LIGHT PANEL, bool) 0 == &amp;&amp; (L:LightTest, number) 1 == &amp;&amp;</Visible>
		
		<Element>
			<Position X="0" Y="0"/>
			<Image Name="AP2Disp.bmp" Bright="Yes" ImageSizes="248,48,0,0"/>
		</Element>
		
		<Element>
			<Position X="64" Y="12"/>
			<Text X="93" Y="34" Length="5" Fixed="Yes" Font="AirbusFCU" FontSize="36" Attributes="Bold" Color="#5F4618" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				<String>88888</String>
			</Text>
		</Element>
		
		<Element>
			<Position X="5" Y="15"/>
			<Text X="100" Y="25" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="17" Color="#5F4618" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				<String>v</String>
			</Text>
		</Element>
		
		<Element>
			<Position X="5" Y="29"/>
			<Text X="100" Y="25" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="17" Color="#5F4618" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				<String>f</String>
			</Text>
		</Element>

		<Element>
			<Position X="195" Y="12"/>
			<Text X="77" Y="34" Length="4" Fixed="Yes" Font="AirbusFCU" FontSize="36" Attributes="Bold" Color="#5F4618" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				<String>8888</String>
			</Text>
		</Element>

		<Element>
			<Position X="179" Y="13"/>
			<Text X="21" Y="34" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="34" Attributes="Bold" Color="#5F4618" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				<String>+</String>
			</Text>
		</Element>

		<Element>
			<Position X="165" Y="23"/>
			<Image Name="APDot.bmp" Bright="Yes" ImageSizes="15,15,0,0"/>
		</Element>
		
		<Element>
			<Position X="99" Y="0"/>
			<Text X="75" Y="25" Length="3" Fixed="Yes" Font="AirbusFCU" FontSize="17" Color="#5F4618" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				<String>a</String>
			</Text>
		</Element>
		
		<Element>
			<Position X="150" Y="0"/>
			<Text X="300" Y="25" Length="6" Fixed="Yes" Font="AirbusFCU" FontSize="17" Color="#5F4618" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				<String>l</String>
			</Text>
		</Element>
		
		<Element>
			<Position X="222" Y="0"/>
			<Text X="100" Y="25" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="17" Color="#5F4618" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				<String>v</String>
			</Text>
		</Element>

		<Element>
			<Position X="247" Y="0"/>
			<Text X="80" Y="25" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="17" Color="#5F4618" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				<String>f</String>
			</Text>
		</Element>
		
		<Element>
			<Position X="127" Y="7"/>
			<Image Name="AP2Disp_bracket.bmp" Bright="Yes" ImageSizes="93,8,0,0"/>
		</Element>
	</Element>
	
	<!-- xxxxxxxxxxxxxxxxxxxxxxxxxx -->
	<Element>
		<Visible>(L:DC_ESS_Avail, number) 1 == (A:LIGHT PANEL, bool) 1 == &amp;&amp; (L:LightTest, number) 1 == &amp;&amp;</Visible>
		
		<Element>
			<Position X="0" Y="0"/>
			<Image Name="AP2Disp_night.bmp" Bright="Yes" ImageSizes="248,48,0,0"/>
		</Element>
		
		<Element>
			<Position X="64" Y="12"/>
			<Text X="93" Y="34" Length="5" Fixed="Yes" Font="AirbusFCU" FontSize="36" Attributes="Bold" Color="#C86B20" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				<String>88888</String>
			</Text>
		</Element>
		
		<Element>
			<Position X="5" Y="15"/>
			<Text X="100" Y="25" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="17" Color="#C86B20" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				<String>v</String>
			</Text>
		</Element>
		
		<Element>
			<Position X="5" Y="29"/>
			<Text X="100" Y="25" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="17" Color="#C86B20" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				<String>f</String>
			</Text>
		</Element>

		<Element>
			<Position X="195" Y="12"/>
			<Text X="77" Y="34" Length="4" Fixed="Yes" Font="AirbusFCU" FontSize="36" Attributes="Bold" Color="#C86B20" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				<String>8888</String>
			</Text>
		</Element>

		<Element>
			<Position X="179" Y="13"/>
			<Text X="21" Y="34" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="34" Attributes="Bold" Color="#C86B20" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				<String>+</String>
			</Text>
		</Element>

		<Element>
			<Position X="165" Y="23"/>
			<Image Name="APDot_night.bmp" Bright="Yes" ImageSizes="15,15,0,0"/>
		</Element>
		
		<Element>
			<Position X="99" Y="0"/>
			<Text X="75" Y="25" Length="3" Fixed="Yes" Font="AirbusFCU" FontSize="17" Color="#C86B20" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				<String>a</String>
			</Text>
		</Element>
		
		<Element>
			<Position X="150" Y="0"/>
			<Text X="300" Y="25" Length="6" Fixed="Yes" Font="AirbusFCU" FontSize="17" Color="#C86B20" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				<String>l</String>
			</Text>
		</Element>
		
		<Element>
			<Position X="222" Y="0"/>
			<Text X="100" Y="25" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="17" Color="#C86B20" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				<String>v</String>
			</Text>
		</Element>

		<Element>
			<Position X="247" Y="0"/>
			<Text X="80" Y="25" Length="1" Fixed="Yes" Font="AirbusFCU" FontSize="17" Color="#C86B20" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
				<String>f</String>
			</Text>
		</Element>
		
		<Element>
			<Position X="127" Y="7"/>
			<Image Name="AP2Disp_bracket_night.bmp" Bright="Yes" ImageSizes="93,8,0,0"/>
		</Element>
	</Element>
	
	<Element>
		<Select>
			<Value>
				
				:10
				
				<!-- Rounding Problems Sol -->
				(L:AB_AP_FPA_Select2dec, number) abs 0.99 &gt;
				if{
					(L:AB_AP_FPA_Select2dec, number) abs 1 - (&gt; L:AB_AP_FPA_Select2dec, number)
					(L:AB_AP_FPA_Select2nu, number) abs 1 + (&gt; L:AB_AP_FPA_Select2nu, number) 	
					g10 }
				els{
					(G:Var1) 0 == 
					if{
						0 (&gt; L:AB_AP_FPA_Select2nu, number)		
						(L:AB_AP_FPA_Select2, number) abs (&gt; L:AB_AP_FPA_Select2dec, number)
						1 (&gt; G:Var1) }
					els{
						(L:AB_AP_FPA_Select2dec, number) abs 0.09 &lt;
						if{
							0 (&gt; L:AB_AP_FPA_Select2dec, number) }
						(L:AB_AP_FPA_Select2dec, number) abs (&gt; L:AB_AP_FPA_Select2deci, number)
						(L:AB_AP_FPA_Select2nu, number) abs (&gt; L:AB_AP_FPA_Select2num, number)						
						0 (&gt; G:Var1) } }
				
				(L:MCDU_FLT_PHS,number) 2 &lt;
				(L:FBWMODE,number) 1 == &amp;&amp;
				if{
					1 (&gt; L:TOMode, number) }
				
				(L:MCDU_FLT_PHS,number) 2 &gt;=
				(L:FBWMODE,number) 2 == &amp;&amp;
				(L:MCDU_FLT_PHS,number) 3 &gt; ||
				(A:SIM ON GROUND, bool) 0 == ||
				if{
					0 (&gt; L:TOMode, number) }
				
				<!--FMA -->
				<!--FMA THR mode SPEED-->
				(L:Throttle_ani_fix_L, number) 25 ==
				(L:Throttle_ani_fix_R, number) 25 == ||
				(L:AB_AP_ATHR, number) 1 == &amp;&amp;
				(L:AB_AP_SPDMACH, number) 0 == &amp;&amp;
				if{
					4 (&gt; L:FMA_THRmode, number)
				}
				<!--FMA THR mode Mach-->
				(L:Throttle_ani_fix_L, number) 25 ==
				(L:Throttle_ani_fix_R, number) 25 == ||
				(L:AB_AP_ATHR, number) 1 == &amp;&amp;
				(L:AB_AP_SPDMACH, number) 1 == &amp;&amp;
				if{
					5 (&gt; L:FMA_THRmode, number)
				}
				
				<!--FMA THR modes -->
				(A:SIM ON GROUND, bool) 1 ==
				(A:SIM ON GROUND, bool) 0 ==
				(A:AIRSPEED INDICATED, knots) (L:alpha_floor_autocalc,number) &gt; &amp;&amp; ||
				<!--(L:AB_AP_ATHR, number) 1 == &amp;&amp;-->
				if{
					<!--FMA THR mode idle -->					
					(L:AP_FADEC_CLBTHR, number) 0 ==
					(L:AP_FADEC_IDLTHR, number) 1 == &amp;&amp;
					(L:Throttle_ani_fix_L, number) 25 ==
					(L:Throttle_ani_fix_R, number) 25 == || &amp;&amp;
					(L:FBW_TOGALK, bool) 0 == &amp;&amp;
					
					(L:MCDU_FLT_PHS, number) 4 ==
					(L:MCDU_FLT_PHS, number) 5 == ||
					(L:ECAM_U_IDLE_TMR, number) 0 != &amp;&amp;
					(L:AP_AP_ALT_Mode, number) 1 == &amp;&amp;
					(L:AB_AP_NAV_GS, number) 0 == &amp;&amp;
					(L:AB_AP_KNOBALT, bool) 0 == &amp;&amp; ||
					
					(L:AB_MPL_FD, number) 1 ==
					(L:AB_AP_AP1, number) 1 == ||
					(L:AB_AP_AP2, number) 1 == || &amp;&amp;
					if{
						1 (&gt; L:FMA_THRmode, number)
					}
					

					<!--FMA THR mode THR LVR-->					
					(L:Autoland_retard, bool) 0 == &amp;&amp;
					(L:Throttle_ani_fix_L, number) 20 == 
					(L:Throttle_ani_fix_R, number) 20 == ||
					(L:AB_AP_ATHR, number) 1 == &amp;&amp;
					(L:FMA_Vertmode_act, number) 5 != &amp;&amp;
					(L:FMA_Vertmode_act, number) 6 != &amp;&amp;
					if{
						2 (&gt; L:FMA_THRmode, number)
					}
					
					<!--FMA THR mode THR CLB-->
					(L:Throttle_ani_fix_L, number) 25 ==
					(L:Throttle_ani_fix_R, number) 25 == ||
					(L:AP_AP_ALT_Mode, number) -1 ==
					(L:AP_AP_ALT_Mode, number) 1 == || &amp;&amp;
					(L:AB_AP_ALT_Selected, number) (A:INDICATED ALTITUDE, feet) - 0 &gt; &amp;&amp;
					(L:AP_FADEC_CLBTHR, number) 1 == &amp;&amp;
					(L:AP_FADEC_IDLTHR, number) 0 == &amp;&amp;
					(L:AP_AP_ALT_Capture, number) 1 != &amp;&amp; 
					(L:AB_AP_KNOBALT, bool) 0 == &amp;&amp;
					(L:AB_AP_AP1, number) 0 !=
					(L:AB_AP_AP2, number) 0 != ||
					(L:AB_MPL_FD, number) 0 != || &amp;&amp;
					if{
						3 (&gt; L:FMA_THRmode, number)
					}
					
					
					<!--FMA THR mode MAN MCT -->
					(L:FADEC_FLXTEMP, number) 0 ==
					(L:FADEC_FLXENB, bool) 0 == ||
					
					(L:Throttle_ani_fix_L, number) 75 ==
					(L:Throttle_ani_fix_R, number) 75 &lt;= &amp;&amp;
					(L:Throttle_ani_fix_L, number) 75 &lt;=
					(L:Throttle_ani_fix_R, number) 75 == &amp;&amp; || &amp;&amp;
					(L:AB_AP_ATHR, number) 1 == &amp;&amp;
					if{
						6 (&gt; L:FMA_THRmode, number)
					}
					
					<!--FMA THR mode MAN FLX -->
					(L:FADEC_FLXTEMP, number) 0 !=
					(L:FADEC_FLXENB, bool) 1 == &amp;&amp;
					
					(L:Throttle_ani_fix_L, number) 75 ==
					(L:Throttle_ani_fix_R, number) 75 &lt;= &amp;&amp;
					(L:Throttle_ani_fix_L, number) 75 &lt;=
					(L:Throttle_ani_fix_R, number) 75 == &amp;&amp; || &amp;&amp;
					(L:AB_AP_ATHR, number) 1 == &amp;&amp;
					if{
						7 (&gt; L:FMA_THRmode, number)
					}
					<!--FMA THR mode man TOGA -->	
					(L:Throttle_ani_fix_L, number) 100 ==
					(L:Throttle_ani_fix_R, number) 100 &lt;= &amp;&amp;
					(L:Throttle_ani_fix_L, number) 100 &lt;=
					(L:Throttle_ani_fix_R, number) 100 == &amp;&amp; ||
					(L:AB_AP_ATHR, number) 1 == &amp;&amp;
					if{
						8 (&gt; L:FMA_THRmode, number)
					}
					<!--FMA THR mode Off -->	
					(L:AB_AP_ATHR, number) 0 == 
					if{
						0 (&gt; L:FMA_THRmode, number)
					}
					
					<!--FMA THR mode 2nd line LVR CLB -->	
					(A:INDICATED ALTITUDE, feet) (L:MCDU_THR_RED, number) &gt;=
					(L:Throttle_ani_fix_L, number) 25 &gt;
					(L:Throttle_ani_fix_R, number) 25 &gt; || &amp;&amp;
					if{
						1 (&gt; L:FMA_THRmode_2nd_line_CLB, number)
					}
					els{
						0 (&gt; L:FMA_THRmode_2nd_line_CLB, number)
					}
					
					<!--FMA THR mode 2nd line LVR ASYM -->	
					(L:Throttle_ani_fix_L, number) 25 ==
					(L:Throttle_ani_fix_R, number) 25 != &amp;&amp;
					(L:Throttle_ani_fix_L, number) 25 !=
					(L:Throttle_ani_fix_R, number) 25 == &amp;&amp; ||
					
					(L:Throttle_ani_fix_L, number) 50 ==
					(L:Throttle_ani_fix_R, number) 50 != &amp;&amp;
					(L:Throttle_ani_fix_L, number) 50 !=
					(L:Throttle_ani_fix_R, number) 50 == &amp;&amp; || ||
					
					(L:Throttle_ani_fix_L, number) 75 ==
					(L:Throttle_ani_fix_R, number) 75 != &amp;&amp;
					(L:Throttle_ani_fix_L, number) 75 !=
					(L:Throttle_ani_fix_R, number) 75 == &amp;&amp; || ||
					(L:FMA_THRmode_2nd_line_CLB, number) 0 == &amp;&amp;
					if{
						1 (&gt; L:FMA_THRmode_2nd_line_ASYM, number)
					}
					els{
						0 (&gt; L:FMA_THRmode_2nd_line_ASYM, number)
					}
				}
				
				(A:GENERAL ENG COMBUSTION:1, bool) 0 ==
				(A:GENERAL ENG COMBUSTION:2, bool) 0 == &amp;&amp;
				if{
					0 (&gt; L:FMA_THRmode, number)
				}
				
				(L:AB_AP_ATHR, number) 0 ==
				if{
					0 (&gt; L:FMA_THRmode, number)
					<!--FMA THR mode 2nd line THR LK -->
					(A:SIM ON GROUND, bool) 0 ==
					(L:Throttle_ani_fix_L, number) 25 ==
					(L:Throttle_ani_fix_R, number) 25 == || &amp;&amp;
					if{
					1 (&gt; L:FMA_THRmode_2nd_line_THR_LK, number)
					}
					els{
						0 (&gt; L:FMA_THRmode_2nd_line_THR_LK, number)
					}
				}
				
				(L:FBW_TOGALK, bool) 1 ==
				if{
					9.5 (&gt; L:FMA_THRmode, number)
				}
				
				<!--FMA THR mode A FLOOR -->	
				(A:AIRSPEED INDICATED, knots) (L:V1SG_Adj_Final, number) 1.05 * &lt;= 
				(A:SIM ON GROUND, bool) 0 == &amp;&amp;
				if{
					9 (&gt; L:FMA_THRmode, number)
				}
				
				<!--FMA THR mode Overspeed -->	
				(A:SIM ON GROUND, bool) 0 ==
				(L:MW_15, bool) 1 == &amp;&amp;
				(A:AIRSPEED INDICATED, knots) (L:alpha_floor_autocalc,number) &gt; &amp;&amp;
				if{
					10 (&gt; L:FMA_THRmode, number)
				}
				
				
				<!--XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-->
				<!--FMA Vertical modes -->
				
				<!--FMA Vertical CLEAR INACTIVE -->
				(L:AB_AP_LOC2, number) 1 == 
				(L:AB_LOC_CAPTURE, bool) 1 == &amp;&amp;
				els{
					0 (&gt; L:FMA_Vertmode_act, number) }
				
				<!--BEFORE TO-->
				<!--FMA SRS NO Clear -->
				(L:FBWMODE,number) 1 ==
				(L:Throttle_ani_fix_L, number) 25 &lt;= &amp;&amp;
				(L:Throttle_ani_fix_R, number) 25 &lt;= &amp;&amp;
				if{
					0 (&gt; L:FMA_Vertmode_act, number)  }
				
				<!--TO START-->
				(L:FBWMODE,number) 1 ==
				(L:Throttle_ani_fix_L, number) 25 &gt; &amp;&amp;
				(L:Throttle_ani_fix_R, number) 25 &gt; &amp;&amp;
				(L:AB_AP_SRSmode, number) 1 == &amp;&amp;
				if{
					1 (&gt; L:FMA_Vertmode_act, number)	}
				
				<!--SRS CLB-->
				(L:FBWMODE,number) 2 ==
				(A:INDICATED ALTITUDE, feet) (L:MCDU_THR_ACC, number) &lt; &amp;&amp;
				(L:AB_AP_SRSmode, number) 1 == &amp;&amp;
				if{
					1 (&gt; L:FMA_Vertmode_act, number)	}
				
				<!--CLB-->
				(L:FBWMODE,number) 2 ==
				(A:INDICATED ALTITUDE, feet) (L:MCDU_THR_ACC, number) &gt;= &amp;&amp;
				(L:AP_AP_ALT_Mode, number) 1 == &amp;&amp;
				
				(L:MCDU_FLT_PHS, number) 2 == 
				
				(L:MCDU_FLT_PHS, number) 3 == 
				(L:AP_AP_ALT_Capture, number) 1 != &amp;&amp; 
				(L:AB_AP_ALT_Selected, number) (A:INDICATED ALTITUDE, feet) - abs 600 &lt; &amp;&amp; || &amp;&amp;
				if{
					2 (&gt; L:FMA_Vertmode_act, number) }
				
				<!--ALT*-->
				(L:AP_AP_ALT_Capture, number) 1 ==
				<!-- (A:VELOCITY WORLD Y,feet per minute) 100 / abs 2 &gt; &amp;&amp; -->
				
				(L:AB_AP_KNOBALT, bool) 1 ==
				
				(L:AB_AP_ALT_Selected, number) (A:INDICATED ALTITUDE, feet) &lt;
				(L:AB_AP_VS_Select3, number) 0 &lt; &amp;&amp;
				
				(L:AB_AP_ALT_Selected, number) (A:INDICATED ALTITUDE, feet) &gt;
				(L:AB_AP_VS_Select3, number) 0 &gt; &amp;&amp; || &amp;&amp; 
				
				(L:AB_AP_KNOBALT, bool) 0 == || &amp;&amp;
				if{
					5.5 (&gt; L:FMA_Vertmode_act, number) }
				
				<!--ALT -->
				
				(L:AP_AP_ALT_Capture_SM, number) 1 ==
				<!-- (A:VELOCITY WORLD Y,feet per minute) 100 / abs 2 &lt; &amp;&amp; -->
				(L:AB_AP_ALT_Selected, number) (A:INDICATED ALTITUDE, feet) - abs 20 &lt; &amp;&amp;
				
				(L:AB_AP_KNOBALT, bool) 1 ==
				
				(L:AB_AP_ALT_Selected, number) (A:INDICATED ALTITUDE, feet) &lt;
				(L:AB_AP_VS_Select3, number) 0 &lt; &amp;&amp;
				
				(L:AB_AP_ALT_Selected, number) (A:INDICATED ALTITUDE, feet) &gt;
				(L:AB_AP_VS_Select3, number) 0 &gt; &amp;&amp; || &amp;&amp; 
				
				(L:AB_AP_KNOBALT, bool) 0 == || &amp;&amp;
				if{
					
					(L:AP_AP_ALT_Mode99, number) 1 ==
					(L:AB_AP_ALT_SelectedLast, number) (L:AB_AP_ALT_Selected, number) != &amp;&amp;
					
					if{
						5.25 (&gt; L:FMA_Vertmode_act, number) }
					els{
						5 (&gt; L:FMA_Vertmode_act, number) } }
				
				<!--FMA Vertical ALT CRZ mode -->
				(L:AB_AP_ALT_Selected, number) (A:INDICATED ALTITUDE, feet) - abs 50 &lt;
				(L:MCDU_Cruisealt, number) (A:INDICATED ALTITUDE, feet) - abs 50 &lt; &amp;&amp;
				if{
					6 (&gt; L:FMA_Vertmode_act, number)   }
				
				<!--FMA Vertical DES mode -->
				(L:MCDU_FLT_PHS, number) 4 ==
				
				(L:MCDU_FLT_PHS, number) 5 == 
				(L:MCDUAppType, number) 1 ==
				(L:MCDUAppType, number) 5 == || &amp;&amp; 
				
				(L:MCDU_FLT_PHS, number) 5 == 
				(L:AB_AP_LOC2, number) 0 ==	
				(L:MCDU_WPT_DEST_Dist,number) (L:MCDU_FAF2Dest_Dist, number) &gt; || &amp;&amp;
				(L:MCDUAppType, number) 2 &gt;=
				(L:MCDUAppType, number) 0 == || &amp;&amp; || ||
				
				(L:AB_APSTP_DES, number) 1 == 
				(L:MCDU_FLT_PHS, number) 3 == &amp;&amp; ||
				
				(L:AP_AP_ALT_Mode, number) 1 == &amp;&amp;
				if{
					3 (&gt; L:FMA_Vertmode_act, number)   }
				
				<!--FMA Vertical OP CLB mode -->
				(L:AP_AP_ALT_Mode, number) -1 ==
				(L:AB_AP_KNOBALT, bool) 0 == &amp;&amp;
				(L:AB_AP_ALT_Selected, number) (A:INDICATED ALTITUDE, feet) - 0 &gt; &amp;&amp;
				(L:AP_AP_ALT_Capture, number) 1 != &amp;&amp;
				if{
					2.5 (&gt; L:FMA_Vertmode_act, number)   }
				
				<!--FMA Vertical OP DES mode -->
				(L:AP_AP_ALT_Mode, number) -1 ==
				(L:AB_AP_KNOBALT, bool) 0 == &amp;&amp;
				(L:AB_AP_ALT_Selected, number) (A:INDICATED ALTITUDE, feet) - 0 &lt; &amp;&amp;
				(L:AP_AP_ALT_Capture, number) 1 != &amp;&amp;
				if{
					3.5 (&gt; L:FMA_Vertmode_act, number)   }
				
				<!--FMA Vertical VS mode -->
				(L:AB_AP_KNOBALT, bool) 1 ==
				(L:AB_AP_HDGTRK, number) 0 == &amp;&amp;
				(L:AP_AP_ALT_Capture, number) 1 != &amp;&amp;
				if{
					4 (&gt; L:FMA_Vertmode_act, number)   }
				
				<!--FMA Vertical FPA mode -->
				(L:AB_AP_KNOBALT, bool) 1 ==
				(L:AB_AP_HDGTRK, number) 1 == &amp;&amp;
				if{
					4.5 (&gt; L:FMA_Vertmode_act, number)   }
				
				<!--GS* -->
				(A:NAV GS FLAG:1, bool) 1 ==
				(L:AB_AP_NAV_GS, bool) 1 == &amp;&amp;
				(L:AB_AP_LOC2, number) 1 == &amp;&amp;
				(L:MCDUAppType, number) 2 &lt; &amp;&amp;
				(L:FMA_Vertmode_act, number) 7 != &amp;&amp;
				if{
					6.5 (&gt; L:FMA_Vertmode_act, number)  }
				
				<!--GS-->
				(A:AIRSPEED INDICATED, knots) (L:alpha_floor_autocalc,number) &gt;
				(L:AB_AP_NAV_GS_Time, number) 36 == &amp;&amp;
				(L:AB_AP_LOC2, number) 1 == &amp;&amp;
				(L:MCDUAppType, number) 2 &lt; &amp;&amp;
				if{
					7 (&gt; L:FMA_Vertmode_act, number)  }
				
				
				<!--FINAL-->
				<!-- (L:AB_AP_LOC2, number) 1 ==
				(A:Indicated Altitude, feet) (L:MCDU_WPT_DEST_Dist, number) (L:AB_AP_MCDU_RWYGSANGLE, number) / 1000 * (L:AB_AP_MCDU_RWYALT, number) + - 100 &lt; &amp;&amp;
				(L:MCDUAppType, number) 2 &gt;= &amp;&amp;
				(L:MCDU_FLT_PHS, number) 4 &gt;= &amp;&amp;
				(L:FMA_Latmode_act, number) 4 != &amp;&amp;			
				if{
					6.75 (&gt; L:FMA_Vertmode_act, number)
				} -->
				
				<!--LAND-->
				(L:AB_AUTOLAND, bool) 1 ==
				(A:PLANE ALT ABOVE GROUND, feet) 414 &lt;= &amp;&amp;
				(L:Autoland_retard, bool) 0 == &amp;&amp;
				(A:SIM ON GROUND, bool) 0 == &amp;&amp;
				if{
					8 (&gt; L:FMA_Vertmode_act, number)  }
				
				<!--FINAL APP-->
				(L:AB_AP_LOC2, number) 1 ==
				(L:MCDUAppType, number) 2 &gt;= &amp;&amp;
				(L:MCDUAppType, number) 5 != &amp;&amp;
				(L:MCDU_FLT_PHS, number) 5 == &amp;&amp;				
				(L:MCDU_WPT_DEST_Dist,number) (L:MCDU_FAF2Dest_Dist, number) &lt;= &amp;&amp;
				if{
					8.5 (&gt; L:FMA_Vertmode_act, number)  }
				
				<!--FLARE-->
				(L:AB_AUTOLAND, bool) 1 ==
				(L:Autoland_retard, bool) 1 == &amp;&amp;
				(A:PLANE ALT ABOVE GROUND, feet) 114 &lt;= &amp;&amp;
				if{
					9 (&gt; L:FMA_Vertmode_act, number)  }
				
				<!--Rollout -->
				(A:SIM ON GROUND, bool) 1 ==
				(L:AB_AUTOLAND, bool) 1 == &amp;&amp;
				(L:AB_AP_LOC2, number) 1 == &amp;&amp;
				if{
					10 (&gt; L:FMA_Vertmode_act, number)  }
				
				<!--SRS GA-->
				(L:FBWMODE,number) 2 ==
				(A:INDICATED ALTITUDE, feet) (L:MCDU_THR_ACC, number) &lt; &amp;&amp;
				(L:AB_AP_SRSmode, number) 1 == &amp;&amp;
				(L:MCDU_FLT_PHS, number) 6 == &amp;&amp;
				if{
					1 (&gt; L:FMA_Vertmode_act, number)	}
				
				<!--CLB-->
				(L:FBWMODE,number) 2 ==
				(A:INDICATED ALTITUDE, feet) (L:MCDU_THR_ACC, number) &gt;= &amp;&amp;
				(L:MCDU_FLT_PHS, number) 6 == &amp;&amp;
				(L:AP_AP_ALT_Mode, number) 1 == &amp;&amp;
				if{
					2 (&gt; L:FMA_Vertmode_act, number) }
				
				(L:AB_MPL_FD, number) 0 ==
				(L:AB_AP_AP1, number) 0 == &amp;&amp;
				(L:AB_AP_AP2, number) 0 == &amp;&amp;
				if{
					0 (&gt; L:FMA_Vertmode_act, number) }
				
				<!--XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-->
				<!--FMA Vertical armed modes -->
				
				<!--FMA Vertical ALT mode armed -->
				(A:INDICATED ALTITUDE, feet) (L:MCDU_THR_ACC, number) &gt;=
				(L:AP_AP_ALT_Mode, number) 0 != ||
				(L:AB_AP_ALTmode_set, number) 0 != &amp;&amp;
				(L:AB_AP_NAV_GS, bool) 0 == &amp;&amp; 
				(L:Flightmode, number) 7 &lt;= &amp;&amp;
				(L:AB_AP_ALT_CaptureVSInhibit, number) 0 == &amp;&amp;
				if{
					
					(L:AB_AP_KNOBALT, bool) 1 ==
					
					(L:AB_AP_ALT_Selected, number) (A:INDICATED ALTITUDE, feet) &lt;
					(L:AB_AP_VS_Select3, number) 0 &lt; &amp;&amp;
					
					(L:AB_AP_ALT_Selected, number) (A:INDICATED ALTITUDE, feet) &gt;
					(L:AB_AP_VS_Select3, number) 0 &gt; &amp;&amp; || &amp;&amp; 
					
					(L:AB_AP_KNOBALT, bool) 0 == ||
					
					<!-- Prevent ALT armed during FINAL APP -->
					(L:FMA_Vertmode_act, number) 8.5 != &amp;&amp;
					(L:AP_AP_ALT_Capture, number) 0 == &amp;&amp;
					if{
						<!-- (L:AB_AP_ALT_Selected, number) (L:MCDU_Cruisealt, number) ==
						if{
							6 (&gt; L:FMA_Vertmode_arm, number)	} -->
						<!-- els{ -->
							5 (&gt; L:FMA_Vertmode_arm, number)	<!-- } --> }
					els{
						0 (&gt; L:FMA_Vertmode_arm, number)	} 
						
					(L:FMA_Vertmode_act, number) 5 ==
					(L:FMA_Vertmode_act, number) 5.25 == ||
					if{
						0 (&gt; L:FMA_Vertmode_arm, number)	} 
				}
				
				<!--FMA Vertical CLB mode armed -->
				(L:AP_AP_ALT_Mode99, number) 1 ==
				
				(A:INDICATED ALTITUDE, feet) (L:MCDU_THR_ACC, number) &lt;
				(L:MCDU_FLT_PHS, number) 2 &lt; &amp;&amp;
				
				(A:INDICATED ALTITUDE, feet) (L:MCDU_THR_ACC, number) &lt;
				(L:MCDU_FLT_PHS, number) 6 == &amp;&amp; || 
				
				(L:AP_AP_ALT_Mode, number) 1 !=
				(L:MCDU_FLT_PHS, number) 2 &lt; 
				(L:MCDU_FLT_PHS, number) 6 == || &amp;&amp; || &amp;&amp;
				
				(L:FMA_Vertmode_act, number) 5.25 == 				
				(L:MCDU_FLT_PHS, number) 2 == &amp;&amp;
				(L:AP_AP_ALT_Mode99, number) 1 == &amp;&amp;
				(L:AB_AP_ALT_SelectedLast, number) (L:AB_AP_ALT_Selected, number) != &amp;&amp; ||
				if{
					2 (&gt; L:FMA_Vertmode_arm, number)  }
				
				<!--FMA Vertical DES mode armed -->
				(L:FMA_Vertmode_act, number) 5.25 == 
				
				(L:MCDU_FLT_PHS, number) 4 ==			
				(L:MCDU_FLT_PHS, number) 5 == || &amp;&amp;
				(L:AP_AP_ALT_Mode99, number) 1 == &amp;&amp;
				(L:AB_AP_ALT_SelectedLast, number) (L:AB_AP_ALT_Selected, number) != &amp;&amp;
				if{
					3 (&gt; L:FMA_Vertmode_arm, number)   }
				
				<!--FMA Vertical GS arm mode -->
				(L:AB_AP_LOC2, number) 1 ==
				(L:MCDUAppType, number) 2 &lt; &amp;&amp;
				(L:FMA_Vertmode_act, number) 7 != &amp;&amp;
				(L:FMA_Vertmode_act, number) 6.5 != &amp;&amp;
				if{
					(L:FMA_Vertmode_arm, number) 5 ==
					(L:AP_AP_ALT_Capture, number) 0 == &amp;&amp;
					if{
						
						(L:AP_AP_ALT_Mode99, number) 1 ==
						(L:AB_AP_ALT_SelectedLast, number) (L:AB_AP_ALT_Selected, number) != &amp;&amp;
						if{
							7.75 (&gt; L:FMA_Vertmode_arm, number) }
						els{ 
							7.5 (&gt; L:FMA_Vertmode_arm, number) } 
					}
					els{
						7 (&gt; L:FMA_Vertmode_arm, number)	}
				}
				
				<!--FMA Vertical FINAL arm mode -->
				(L:AB_AP_LOC2, number) 1 ==
				(L:MCDUAppType, number) 2 &gt;= &amp;&amp;
				(L:FMA_Vertmode_act, number) 8.5 != &amp;&amp;
				if{
					(L:FMA_Vertmode_arm, number) 5 ==
					(L:AP_AP_ALT_Capture, number) 0 == &amp;&amp;
					if{
						
						(L:AP_AP_ALT_Mode99, number) 1 ==
						(L:AB_AP_ALT_SelectedLast, number) (L:AB_AP_ALT_Selected, number) != &amp;&amp;
						if{
							6.75 (&gt; L:FMA_Vertmode_arm, number) }
						els{ 
							6.7 (&gt; L:FMA_Vertmode_arm, number) } }
					els{
						6.5 (&gt; L:FMA_Vertmode_arm, number) }
				}


				<!-- FMA Vertical LAND arm mode -->	
				(L:FMA_Vertmode_act, number) 6.75 ==
				(L:FMA_Vertmode_act, number) 6.5 == ||
				(L:FMA_Vertmode_act, number) 7 == ||
				(L:FMA_Vertmode_act, number) 8 == ||
				(L:FMA_Vertmode_act, number) 9 == ||
				(L:FMA_Vertmode_act, number) 10 == ||
				if{
					0 (&gt; L:FMA_Vertmode_arm, number)
				} 
				
				<!-- FMA Vertical arm mode Off -->
				(L:FMA_Vertmode_act, number) (L:FMA_Vertmode_arm, number) ==
				(L:FMA_Vertmode_arm, number) 5 ==
				(L:FMA_Vertmode_act, number) 6 == &amp;&amp; ||
				
				if{
					0 (&gt; L:FMA_Vertmode_arm, number)
				}
				
				(L:AB_MPL_FD, number) 0 ==
				(L:AB_AP_AP1, number) 0 == &amp;&amp;
				(L:AB_AP_AP2, number) 0 == &amp;&amp;
				if{
					0 (&gt; L:FMA_Vertmode_arm, number) }
				
				<!--XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-->
				<!--FMA Lateral modes -->
				<!--FMA Lateral mode active-->
				<!--Lat RWY -->								
				(L:Flightmode, number) 3 == 
				(L:Flightmode, number) 4 == || 
				(L:Flightmode, number) 5 == ||
				(A:PLANE ALT ABOVE GROUND, feet) 30 &lt;= &amp;&amp;
				(L:Nav_Has_Loc,number) 1 == &amp;&amp;
				if{
					1 (&gt; L:FMA_Latmode_act, number)
				}
				els{
					
					(A:PLANE ALT ABOVE GROUND, feet) 30 &lt;=
					if{
						0 (&gt; L:FMA_Latmode_act, number)
					} }
				
				<!--Lat RWYTRK -->
				(L:Flightmode, number) 3 == 
				(L:Flightmode, number) 4 == || 
				(L:Flightmode, number) 5 == ||
				(A:PLANE ALT ABOVE GROUND, feet) 30 &gt; &amp;&amp;
				(A:PLANE ALT ABOVE GROUND, feet) 414 &lt;= &amp;&amp;
				(L:FCU_Takoff_set_HDG, bool) 1 == &amp;&amp;
				if{
					2 (&gt; L:FMA_Latmode_act, number)
				}
				
				(A:PLANE ALT ABOVE GROUND, feet) 30 &gt; 
				(L:FCU_TO_set_HDG, bool) 0 ==
				(L:AB_AP_HDGmode_setDisp, number) 1 == || &amp;&amp;
				
				(L:AB_AP_HDGmode, number) -1  ==
				(L:AB_AP_HDGmode_setDisp, number) -1 == &amp;&amp;
				(L:FCU_TO_set_HDG, bool) 1 == &amp;&amp;
				(L:FMA_Latmode_act, number) 2 == &amp;&amp; ||
				<!-- (L:FCU_Takoff_set_HDG, bool) 0 == || -->
				if{
					
					(L:AB_AP_HDGmode, number) -1  ==
					(L:AB_AP_HDGmode_setDisp, number) -1 == &amp;&amp;
					(L:FCU_Takoff_set_HDG, bool) 1 == &amp;&amp;
					(L:FMA_Latmode_act, number) 2 == &amp;&amp;
					(L:AB_AP_HDGmode_setDisp, number) 1 == ||
					if{
						0 (&gt; L:FCU_TO_set_HDG, bool) }
					
					<!--Lat Off -->
					(L:AB_AP_HDGmode_setDisp, number) 0 ==
					(A:GPS DRIVES NAV1, bool) 0 == &amp;&amp;
					(A:AUTOPILOT NAV1 LOCK, bool) 0 == &amp;&amp;
					(A:AUTOPILOT APPROACH HOLD, bool) 0 == &amp;&amp;
					if{
						0 (&gt; L:FMA_Latmode_act, number)
					}
					<!--FMA Lat HDG -->
					(L:AB_AP_HDGmode_setDisp, number) -1 ==
					(L:MCDU_DIR_RDL_NAVARM, number) 1 == ||
					if{
						(L:AB_AP_HDGTRK, number) 0 ==
						if{
							3 (&gt; L:FMA_Latmode_act, number) }
						els{
							3.5 (&gt; L:FMA_Latmode_act, number) } }
					
					<!--FMA Lat LNAV -->
					(L:AB_AP_HDGmode_setDisp, number) 1 ==
					(L:MCDU_DIR_RDL_NAVARM, number) 0 == &amp;&amp;
					(L:MCDU_FLT_PHS, number) 6 != &amp;&amp;
					if{
						4 (&gt; L:FMA_Latmode_act, number)
					}
				}
				
				<!--FMA Lat GA TRK -->
				(L:AB_AP_HDGmode_setDisp, number) 1 ==
				(L:MCDU_FLT_PHS, number) 6 == &amp;&amp;
				if{
					4 (&gt; L:FMA_Latmode_act, number)
				}
				
				<!--FMA Lat APP NAV-->
				(L:AB_AP_LOC, number) 1 == 
				(L:AB_AP_LOC2, number) 1 == || 
				(L:MCDUAppType, number) 2 &gt;= &amp;&amp;
				(L:MCDUAppType, number) 5 != &amp;&amp;
				(L:MCDU_FLT_PHS, number) 5 == &amp;&amp;
				(L:FMA_Vertmode_act, number) 6.75 != &amp;&amp;
				(L:MCDU_WPT_DEST_Dist,number) (L:MCDU_FAF2Dest_Dist, number) &lt;= &amp;&amp;
				if{
					4.75 (&gt; L:FMA_Latmode_act, number)
				}
				
				
				<!--FMA Lat LOC-->
				(L:AB_AP_LOC, number) 1 == 
				(L:AB_AP_LOC2, number) 1 == || 
				(L:AB_LOC_CAPTURE, bool) 1 == &amp;&amp;
				(A:NAV HAS NAV:1, bool) -1 == &amp;&amp;
				(A:NAV CDI:1, number) abs 10 &lt; &amp;&amp;
				(L:MCDUAppType, number) 2 &lt;
				(L:MCDUAppType, number) 5 == || &amp;&amp;
				if{
					5 (&gt; L:FMA_Latmode_act, number)
				}
				
				<!--FMA Lat LOC*-->
				(L:AB_AP_LOC, number) 1 == 
				(L:AB_AP_LOC2, number) 1 == || 
				(L:AB_LOC_CAPTURE, bool) 1 == &amp;&amp;
				(A:NAV HAS NAV:1, bool) -1 == &amp;&amp;
				(A:NAV CDI:1, number) abs 10 &gt; &amp;&amp;
				(L:MCDUAppType, number) 2 &lt; 
				(L:MCDUAppType, number) 5 == || &amp;&amp;
				(L:FMA_Latmode_act, number) 5 != &amp;&amp;
				if{
					4.5 (&gt; L:FMA_Latmode_act, number)
				}
				
				
				0 (&gt; L:FMA_Latmode_arm, number)
				<!--FMA Lat Off-->
				(L:Flightmode, number) 2 ==  
				(A:PLANE ALT ABOVE GROUND, feet) 1514 &lt;= &amp;&amp;
				(L:FMA_Vertmode_act, number) 8 &gt;= ||
				if{
					0 (&gt; L:FMA_Latmode_act, number)
				}
				
				(L:AB_MPL_FD, number) 0 ==
				(L:AB_AP_AP1, number) 0 == &amp;&amp;
				(L:AB_AP_AP2, number) 0 == &amp;&amp;
				if{
					0 (&gt; L:FMA_Latmode_act, number) 
				}
				
				<!--FMA Lat armed -->
				<!--FMA Lat no arm -->
				(L:FMA_Latmode_act, number) (L:FMA_Latmode_arm, number) ==

				(L:FMA_Latmode_arm, number) 5 ==
				(L:AB_AP_LOC, number) 0 == 
				(L:AB_AP_LOC2, number) 0 == || &amp;&amp;
				
				(L:FMA_Latmode_arm, number) 4 ==
				(L:AB_AP_HDGmode_setDisp, number) -1 == &amp;&amp; ||
				if{
					0 (&gt; L:FMA_Latmode_arm, number)
				}
				
				(L:FMA_Vertmode_act, number) 8 &lt;
				if{
				
					<!--FMA Lat HDG -->
					(L:AB_AP_HDGmode_setDisp, number) -1 ==
					(A:PLANE ALT ABOVE GROUND, feet) 30 &lt; &amp;&amp;
					if{
						0 (&gt; L:FMA_Latmode_arm, number)
					}
					
					<!--FMA Lat LNAV arm -->
					(A:PLANE ALT ABOVE GROUND, feet) 414 &lt;= 
					(L:AB_AP_HDGmode_setDisp, number) 1 == &amp;&amp;
					(L:MCDU_FLT_PHS, number) 5 != &amp;&amp;
					(L:MCDU_FLT_PHS, number) 7 != &amp;&amp;
					if{
						4 (&gt; L:FMA_Latmode_arm, number)
					}
					
					<!--FMA Lat LOC arm -->
					(L:AB_AP_LOC, number) 1 == 
					(L:AB_AP_LOC2, number) 1 == || 
					
					(L:AB_LOC_CAPTURE, bool) 1 != &amp;&amp;
					(L:MCDUAppType, number) 2 &lt; &amp;&amp;
					if{
						(L:FMA_Latmode_act, number) 4.5 !=
						if{
							5 (&gt; L:FMA_Latmode_arm, number) }
						els{
							0 (&gt; L:FMA_Latmode_arm, number) } }
					
				}
				
				<!--FMA Lat LNAV RADIAL IN arm -->
				(L:MCDU_DIR_RDL_NAVARM, number) 1 == 
				if{
					4 (&gt; L:FMA_Latmode_arm, number)
				}
				
				<!-- APP NAV Armed -->
				(L:AB_AP_LOC, number) 1 == 
				(L:AB_AP_LOC2, number) 1 == || 
				(L:MCDU_FLT_PHS, number) 5 ==
				(L:MCDU_WPT_DEST_Dist,number) (L:MCDU_FAF2Dest_Dist, number) &gt; &amp;&amp;
				(L:MCDU_FLT_PHS, number) 4 == || &amp;&amp;
				(L:MCDUAppType, number) 2 &gt;= &amp;&amp;
				if{
					4.75 (&gt; L:FMA_Latmode_arm, number) }
				
				<!--FMA Lat arm mode Off-->
				(L:FMA_Latmode_act, number) (L:FMA_Latmode_arm, number) ==
				(L:FMA_Vertmode_act, number) 8 &gt;= ||
				if{
					0 (&gt; L:FMA_Latmode_arm, number)
				}
				
				(L:AB_MPL_FD, number) 0 ==
				(L:AB_AP_AP1, number) 0 == &amp;&amp;
				(L:AB_AP_AP2, number) 0 == &amp;&amp;
				if{
					0 (&gt; L:FMA_Latmode_arm, number) }
				
				<!--FMA CAT 3/1-->
				<!--(L:AB_MPL_ILS, number) 1 ==-->
				(L:AB_AP_LOC2, number) 1 ==
				(L:AB_MPL_FD, number) 1 == &amp;&amp;
				(L:MCDUAppType, number) 1 &lt;= &amp;&amp;
				if{
					<!--SINGLE DUAL MODE-->
					(L:AB_AP_AP1, number) (L:AB_AP_AP2, number) + (&gt; L:FMA_SINGLE_DUAL, number)
										
					(L:FMA_SINGLE_DUAL, number) 0 ==
					if{
						0.5 (&gt; L:FMA_CAT3, number) }
					els{
						(L:AB_AP_ATHR, number) 0 ==
						if{
						0.75 (&gt; L:FMA_CAT3, number) } 
						els{
						1 (&gt; L:FMA_CAT3, number) } 
					}       
				}
				els{
					0 (&gt; L:FMA_CAT3, number)
					0 (&gt; L:FMA_SINGLE_DUAL, number)
				}
				
				(L:MCDU_APP_MDA, number) 0 ==
				(L:MCDU_APP_DH, number) 0 == &amp;&amp;
				(L:MCDU_FLT_PHS, number) 3 != &amp;&amp;
				(L:MCDU_FLT_PHS, number) 4 != &amp;&amp;
				(L:MCDU_FLT_PHS, number) 5 != &amp;&amp;
				if{
					0 (&gt; L:FMA_MDA_DH, number)
				}
				
				(L:MCDU_APP_DH, number) 0 !=
				(L:MCDU_APP_MDA, bool) 0 == &amp;&amp;
				(L:MCDU_FLT_PHS, number) 3 == 
				(L:MCDU_FLT_PHS, number) 4 == ||
				(L:MCDU_FLT_PHS, number) 5 == || &amp;&amp;
				if{
					1 (&gt; L:FMA_MDA_DH, number)
				}
				
				(L:MCDU_APP_DH, bool) 0 ==
				(L:MCDU_APP_MDA, number) 0 != &amp;&amp;
				(L:MCDU_FLT_PHS, number) 3 == 
				(L:MCDU_FLT_PHS, number) 4 == ||
				(L:MCDU_FLT_PHS, number) 5 == || &amp;&amp;
				if{
					2 (&gt; L:FMA_MDA_DH, number)
				}
				
				<!--FMA White boxes -->	
				(L:Load2, bool) 1 ==
				if{
					(L:FMA_THRmode, number) (L:FMA_THRmode_hist, number) - 0 !=
					(L:FMA_THRmode, number) 1 &gt;= &amp;&amp;
					(L:FMA_THRmode, number) 5 &lt;= &amp;&amp;
					if{
						(L:FMA_THR_Mode_Box_start, bool) 0 == 
						if{
							(P:Local time, seconds) (&gt; L:FMA_THR_Mode_Box_set, number)
							1 (&gt; L:FMA_THR_Mode_Box_start, bool)
						}
					}
					(L:FMA_THRmode, number) (&gt; L:FMA_THRmode_hist, number)
					(L:FMA_THR_Mode_Box_start, bool) 1 ==
					if{
						(P:Local time, seconds) (L:FMA_THR_Mode_Box_set, number) - (&gt; L:FMA_THR_Mode_Box_val, number)
					}
					(L:FMA_THR_Mode_Box_val, number) 10 &gt;
					(L:FMA_THRmode, number) 0 == ||
					(L:FMA_THRmode, number) 6 == ||
					(L:FMA_THRmode, number) 7 == ||
					(L:FMA_THRmode, number) 8 == ||
					if{
						0 (&gt; L:FMA_THR_Mode_Box_start, bool)
						0 (&gt; L:FMA_THR_Mode_Box_set, number)
						0 (&gt; L:FMA_THR_Mode_Box_val, number)
					}
					
					(L:FMA_Vertmode_act, number) (L:FMA_Vertmode_act_hist, number) - 0 !=
					(L:FMA_Vertmode_act, number) 1 &gt;= &amp;&amp;
					<!-- (L:FMA_Vertmode_act, number) 7 &lt;= &amp;&amp; -->
					if{
						(L:FMA_Vertmode_act_Box_start, bool) 0 == 
						if{
							(P:Local time, seconds) (&gt; L:FMA_Vertmode_act_Box_set, number)
							1 (&gt; L:FMA_Vertmode_act_Box_start, bool)
						}
					}
					(L:FMA_Vertmode_act, number) (&gt; L:FMA_Vertmode_act_hist, number)
					(L:FMA_Vertmode_act_Box_start, bool) 1 == 
					if{
						(P:Local time, seconds) (L:FMA_Vertmode_act_Box_set, number) - (&gt; L:FMA_Vertmode_act_Box_val, number)
					}
					
					(L:FMA_Vertmode_act_Box_val, number) 10 &gt;
					(L:FMA_Vertmode_act, number) 0 == ||
					(L:AB_MPL_FD, number) 0 == ||
					if{
						0 (&gt; L:FMA_Vertmode_act_Box_start, bool)
						0 (&gt; L:FMA_Vertmode_act_Box_set, number)
						0 (&gt; L:FMA_Vertmode_act_Box_val, number)
					}
					
					
					(L:FMA_Latmode_act, number) (L:FMA_Latmode_act_hist, number) - 0 !=
					(L:FMA_Latmode_act, number) 1 &gt;= &amp;&amp;
					(L:FMA_Latmode_act, number) 5 &lt;= &amp;&amp;
					if{
						(L:FMA_Latmode_act_Box_start, bool) 0 == 
						if{
							(P:Local time, seconds) (&gt; L:FMA_Latmode_act_Box_set, number)
							1 (&gt; L:FMA_Latmode_act_Box_start, bool)
						}
					}
					(L:FMA_Latmode_act, number) (&gt; L:FMA_Latmode_act_hist, number)
					(L:FMA_Latmode_act_Box_start, bool) 1 ==
					if{
						(P:Local time, seconds) (L:FMA_Latmode_act_Box_set, number) - (&gt; L:FMA_Latmode_act_Box_val, number)
					}
					(L:FMA_Latmode_act_Box_val, number) 10 &gt;
					(L:FMA_Latmode_act, number) 0 == ||
					(L:AB_MPL_FD, number) 0 == ||
					if{
						0 (&gt; L:FMA_Latmode_act_Box_start, bool)
						0 (&gt; L:FMA_Latmode_act_Box_set, number)
						0 (&gt; L:FMA_Latmode_act_Box_val, number)
					}
					
					(L:AB_AP_AP1, number) (L:AB_AP_AP2, number) 2 * + (&gt; L:FMA_AP_mode, number)
					(L:FMA_AP_mode, number) (L:FMA_AP_mode_hist, number) - 0 !=
					(L:FMA_AP_mode, number) 1 &gt;= &amp;&amp;
					if{
						(L:FMA_AP_mode_Box_start, bool) 0 == 
						if{
							(P:Local time, seconds) (&gt; L:FMA_AP_mode_Box_set, number)
							1 (&gt; L:FMA_AP_mode_Box_start, bool)
						}
					}
					(L:FMA_AP_mode, number) (&gt; L:FMA_AP_mode_hist, number)
					(L:FMA_AP_mode_Box_start, bool) 1 ==
					if{
						(P:Local time, seconds) (L:FMA_AP_mode_Box_set, number) - (&gt; L:FMA_AP_mode_Box_val, number)
					}
					(L:FMA_AP_mode_Box_val, number) 10 &gt;
					(L:AB_AP_AP1, number) 0 == 
					(L:AB_AP_AP2, number) 0 == &amp;&amp; ||
					if{
						0 (&gt; L:FMA_AP_mode_Box_start, bool)
						0 (&gt; L:FMA_AP_mode_Box_set, number)
						0 (&gt; L:FMA_AP_mode_Box_val, number)
					}
					
					(L:AB_MPL_FD, number) (L:FMA_FD_hist, number) - 1 ==
					if{
						(L:FMA_FD_Mode_Box_start, bool) 0 == 
						if{
							(P:Local time, seconds) (&gt; L:FMA_FD_Mode_Box_set, number)
							1 (&gt; L:FMA_FD_Mode_Box_start, bool)
						}
					}
					(L:AB_MPL_FD, number) (&gt; L:FMA_FD_hist, number)
					(L:FMA_FD_Mode_Box_start, bool) 1 ==
					if{
						(P:Local time, seconds) (L:FMA_FD_Mode_Box_set, number) - (&gt; L:FMA_FD_Mode_Box_val, number)
					}
					(L:FMA_FD_Mode_Box_val, number) 10 &gt;					
					(L:AB_MPL_FD, number) 0 == ||
					if{
						0 (&gt; L:FMA_FD_Mode_Box_start, bool)
						0 (&gt; L:FMA_FD_Mode_Box_set, number)
						0 (&gt; L:FMA_FD_Mode_Box_val, number)
					}
					
					(L:AB_AP_ATHR, number) (L:FMA_ATHR_hist, number) - 1 ==
					if{
						(L:FMA_ATHR_Mode_Box_start, bool) 0 == 
						if{
							(P:Local time, seconds) (&gt; L:FMA_ATHR_Mode_Box_set, number)
							1 (&gt; L:FMA_ATHR_Mode_Box_start, bool)
						}
					}
					(L:AB_AP_ATHR, number) (&gt; L:FMA_ATHR_hist, number)
					(L:FMA_ATHR_Mode_Box_start, bool) 1 ==
					if{
						(P:Local time, seconds) (L:FMA_ATHR_Mode_Box_set, number) - (&gt; L:FMA_ATHR_Mode_Box_val, number)
					}
					(L:FMA_ATHR_Mode_Box_val, number) 10 &gt;
					if{
						0 (&gt; L:FMA_ATHR_Mode_Box_start, bool)
						0 (&gt; L:FMA_ATHR_Mode_Box_set, number)
						0 (&gt; L:FMA_ATHR_Mode_Box_val, number)
					}
					
					(L:FMA_CAT3, number) (L:FMA_CAT3_hist, number) - 1 ==
					if{
						(L:FMA_CAT3_Mode_Box_start, bool) 0 == 
						(L:FMA_CAT3, number) 0 != &amp;&amp;
						if{
							(P:Local time, seconds) (&gt; L:FMA_CAT3_Mode_Box_set, number)
							1 (&gt; L:FMA_CAT3_Mode_Box_start, bool)
						}
					}
					(L:FMA_CAT3, number) (&gt; L:FMA_CAT3_hist, number)
					(L:FMA_CAT3_Mode_Box_start, bool) 1 ==
					if{
						(P:Local time, seconds) (L:FMA_CAT3_Mode_Box_set, number) - (&gt; L:FMA_CAT3_Mode_Box_val, number)
					}
					(L:FMA_CAT3_Mode_Box_val, number) 10 &gt;
					(L:AB_MPL_FD, number) 0 == ||
					if{
						0 (&gt; L:FMA_CAT3_Mode_Box_start, bool)
						0 (&gt; L:FMA_CAT3_Mode_Box_set, number)
						0 (&gt; L:FMA_CAT3_Mode_Box_val, number)
					}
					
					(L:FMA_SINGLE_DUAL, number) (L:FMA_SINGLE_DUAL_hist, number) - 0 !=
					(L:FMA_SINGLE_DUAL, number) 1 &gt;= &amp;&amp;
					if{
						(L:FMA_SINGLE_DUAL_Mode_Box_start, bool) 0 == 
						(L:FMA_SINGLE_DUAL, number) 0 != &amp;&amp;
						if{
							(P:Local time, seconds) (&gt; L:FMA_SINGLE_DUAL_Mode_Box_set, number)
							1 (&gt; L:FMA_SINGLE_DUAL_Mode_Box_start, bool)
						}
					}
					(L:FMA_SINGLE_DUAL, number) (&gt; L:FMA_SINGLE_DUAL_hist, number)
					(L:FMA_SINGLE_DUAL_Mode_Box_start, bool) 1 ==
					if{
						(P:Local time, seconds) (L:FMA_SINGLE_DUAL_Mode_Box_set, number) - (&gt; L:FMA_SINGLE_DUAL_Mode_Box_val, number)
					}
					(L:FMA_SINGLE_DUAL_Mode_Box_val, number) 10 &gt;
					(L:AB_MPL_FD, number) 0 == ||
					if{
						0 (&gt; L:FMA_SINGLE_DUAL_Mode_Box_start, bool)
						0 (&gt; L:FMA_SINGLE_DUAL_Mode_Box_set, number)
						0 (&gt; L:FMA_SINGLE_DUAL_Mode_Box_val, number)
					}
				}				

			</Value>
		</Select>
	</Element>
</Gauge>																									