<Gauge Name="EICAS TEST" Version="1.0">
<Element>
   <Container/>
   <Update Frequency="6"/>
      <Visible>(A:Circuit general panel on, bool)</Visible>

<Element>
<Visible>(L:EICAS_SWITCH,enum) -1 ==</Visible>
<Image Name="EICAS_1.bmp" Bright="Yes" ImageSizes="355,339"/>

      <!--         REVERSERS             -->

     <Element>
         <Position X="32" Y="16"/>
         <Text X="20" Y="13" Bright="Yes" Length="13" Font="Quartz" Color="#FF0000" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:TURB ENG1 REVERSE NOZZLE PERCENT, percent) 5 &gt; if{ 'REVERSE' } els{ '        ' } )%!s!</String>
         </Text>
      </Element>

      <Element>
         <Position X="129" Y="16"/>
         <Text X="20" Y="13" Bright="Yes" Length="13" Font="Quartz" Color="#FF0000" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:TURB ENG2 REVERSE NOZZLE PERCENT, percent) 5 &gt; if{ 'REVERSE' } els{ '       ' } )%!s!</String>
         </Text>
      </Element>

   <!--          N1             -->

   <Element>
      <Position X="56" Y="63"/>
      <Image Name="EICAS_NEEDLE.bmp" PointsTo="WEST" Bright="Yes" ImageSizes="35,2">
         <Axis X="36" Y="1"/>
      </Image>
      <Rotate>
         <Value Minimum="0" Maximum="107">(A:Turb eng1 N1, percent)</Value>
         <Nonlinearity>
            <Item Value="0" X="89" Y="63"/>
            <Item Value="50" X="38" Y="95"/>
	    <Item Value="100" X="23" Y="50"/>	
         </Nonlinearity>
         <Delay DegreesPerSecond="0"/>
      </Rotate>
   </Element>

   <Element>
      <Position X="58" Y="45"/>
      <Text X="38" Y="14" Length="5" Fixed="Yes" Font="Quartz" Adjust="Right" VerticalAdjust="Center" Color="%('#00FFFF' '#FF0000' (A:Turb eng1 N1, percent) 100 &gt; ! ?)" Bright="Yes">
         <String>%((A:Turb eng1 N1, percent) abs)%!5.1f!</String>
      </Text>
   </Element>

   <Element>
      <Position X="154" Y="63"/>
      <Image Name="EICAS_NEEDLE.bmp" PointsTo="WEST" Bright="Yes" ImageSizes="35,2">
         <Axis X="36" Y="1"/>
      </Image>
      <Rotate>
         <Value Minimum="0" Maximum="107">(A:Turb eng2 N1, percent)</Value>
         <Nonlinearity>
            <Item Value="0" X="189" Y="63"/>
            <Item Value="50" X="136" Y="95"/>
	    <Item Value="100" X="122" Y="50"/>	
         </Nonlinearity>
         <Delay DegreesPerSecond="0"/>
      </Rotate>
   </Element>

   <Element>
      <Position X="156" Y="45"/>
      <Text X="38" Y="14" Length="5" Fixed="Yes" Font="Quartz" Adjust="Right" VerticalAdjust="Center" Color="%('#00FFFF' '#FF0000' (A:Turb eng2 N1, percent) 100 &gt; ! ?)" Bright="Yes">
         <String>%((A:Turb eng2 N1, percent) abs)%!5.1f!</String>
      </Text>
   </Element>

      <!--          EGT             -->

   <Element>
      <Position X="56" Y="143"/>
      <Image Name="EICAS_NEEDLE.bmp" PointsTo="West" Bright="Yes" ImageSizes="35,2">
         <Axis X="36" Y="1"/>
      </Image>
      <Rotate>
         <Value Minimum="0" Maximum="1000">(A:General eng1 exhaust gas temperature, celsius)</Value>
         <Nonlinearity>
            <Item Value="0" X="91" Y="143"/>
            <Item Value="500" X="32" Y="171"/>
	    <Item Value="1000" X="28" Y="122"/>	
         </Nonlinearity>
         <Delay DegreesPerSecond="0"/>
      </Rotate>
   </Element>
   <Element>
      <Position X="57" Y="126"/>
      <Text X="38" Y="14" Length="5" Fixed="Yes" Font="Quartz" Adjust="Center" VerticalAdjust="Center" Color="%('#00FFFF' '#FF0000' (A:General eng1 exhaust gas temperature, celsius) 700 &gt; ! ?)" Bright="Yes" >
         <String>%((A:General eng1 exhaust gas temperature, celsius) abs)%!3.0f!</String>
      </Text>
   </Element> 


   <Element>
      <Position X="154" Y="143"/>
      <Image Name="EICAS_NEEDLE.bmp" PointsTo="West" Bright="Yes" ImageSizes="35,2">
         <Axis X="36" Y="1"/>
      </Image>
      <Rotate>
         <Value Minimum="0" Maximum="1000">(A:General eng2 exhaust gas temperature, celsius)</Value>
         <Nonlinearity>
            <Item Value="0" X="188" Y="143"/>
            <Item Value="500" X="130" Y="171"/>
	    <Item Value="1000" X="126" Y="122"/>	
         </Nonlinearity>
         <Delay DegreesPerSecond="0"/>
      </Rotate>
   </Element>
   <Element>
      <Position X="156" Y="126"/>
      <Text X="38" Y="14" Length="5" Fixed="Yes" Font="Quartz" Adjust="Center" VerticalAdjust="Center" Color="%('#00FFFF' '#FF0000' (A:General eng2 exhaust gas temperature, celsius) 700 &gt; ! ?)" Bright="Yes" >
         <String>%((A:General eng1 exhaust gas temperature, celsius) abs)%!3.0f!</String>
      </Text>
   </Element>

      <!--          TAT             -->
   <Element>
     <Position X="33" Y="3" /> 
      <Text X="45" Y="14" Bright="Yes" Length="8" Font="Quartz" Color="%('#FF9000' '#9BD6FF' (A:Total air temperature, celsius) 5 &lt; ! ?)" Adjust="Right" VerticalAdjust="Center" Multiline="No" Fixed="No"> 
       <String>%((A:Total air temperature, celsius) 999 min)%!+4d! &#176; C</String> 
      </Text> 
   </Element>


      <!--          OAT             -->
   <Element>
     <Position X="113" Y="3" /> 
      <Text X="45" Y="14" Bright="Yes" Length="8" Font="Quartz" Color="%('#FF9000' '#9BD6FF' (A:Total air temperature, celsius) 5 &lt; ! ?)" Adjust="Right" VerticalAdjust="Center" Multiline="No" Fixed="No"> 
       <String>%((A:AMBIENT TEMPERATURE, celsius) 999 min)%!+4d! &#176; C</String> 
      </Text> 
   </Element>


      <!--          TOTAL FUEL             -->

   <Element>
      <Position X="273" Y="307"/>
      <Text X="35" Y="17" Length="4" Fixed="Yes" FontWeight="700" Font="Quartz" Adjust="Center" VerticalAdjust="Center" Color="#00FF00" Bright="Yes">

            <String>%((A:FUEL TOTAL QUANTITY WEIGHT, pounds) 1000 /)%!2.1f!%</String>
      </Text>
   </Element>

      <!--          GEAR INDICATOR             -->

   <Element>
      <Position X="297" Y="253"/>
      <Select>
         <Value>(A:gear left position,percent) d (G:Var1) - r (&gt;G:Var1) 0 != 4 * (G:Var2) max -- 0 max d (&gt;G:Var2) 0 !=</Value>
         <Failures>
            <SYSTEM_ELECTRICAL_PANELS Action="0"/>
         </Failures>
         <Case Value="1">
            <Image Name="GEAR_TRANS_LITE.bmp" Bright="Yes" ImageSizes="47,36"/>
         </Case>
      </Select>
   </Element>
   <Element>
      <Position X="297" Y="253"/>
      <Select>
         <Value>(A:Gear left position,percent)  near 100 ==</Value>
         <Failures>
            <SYSTEM_ELECTRICAL_PANELS Action="0"/>
         </Failures>
         <Case Value="1">
            <Image Name="GEAR_DOWN_LITE.bmp" Bright="Yes" ImageSizes="47,36"/>
         </Case>
      </Select>
   </Element>

      <!--          FLAPS TRAIL             -->

   <Element>
      <Position X="248" Y="256"/>
      <Select>
         <Value Minimum="0" Maximum="5">(A:Flaps handle index, number)</Value>
         <Case Value="0">
            <Image Name="FLAP_TRAIL_0.bmp" Bright="Yes" ImageSizes="18,20"/>
         </Case>
         <Case Value="1">
            <Image Name="FLAP_TRAIL_1.bmp" Bright="Yes" ImageSizes="18,20"/>
         </Case>
         <Case Value="2">
            <Image Name="FLAP_TRAIL_2.bmp" Bright="Yes" ImageSizes="18,20"/>
         </Case>
         <Case Value="3">
            <Image Name="FLAP_TRAIL_3.bmp" Bright="Yes" ImageSizes="18,20"/>
         </Case>
         <Case Value="4">
            <Image Name="FLAP_TRAIL_4.bmp" Bright="Yes" ImageSizes="18,20"/>
         </Case>
         <Case Value="5">
            <Image Name="FLAP_TRAIL_5.bmp" Bright="Yes" ImageSizes="18,20"/>
         </Case>
     </Select>
   </Element>

      <!--          FLAPS LEAD             -->

   <Element>
      <Position X="198" Y="254"/>
      <Select>
         <Value Minimum="0" Maximum="5">(A:Flaps handle index, number)</Value>
         <Case Value="0">
            <Image Name="FLAP_LEAD_0.bmp" Bright="Yes" ImageSizes="14,19"/>
         </Case>
         <Case Value="1">
            <Image Name="FLAP_LEAD_1.bmp" Bright="Yes" ImageSizes="14,19"/>
         </Case>
         <Case Value="2">
            <Image Name="FLAP_LEAD_2.bmp" Bright="Yes" ImageSizes="14,19"/>
         </Case>
         <Case Value="3">
            <Image Name="FLAP_LEAD_2.bmp" Bright="Yes" ImageSizes="14,19"/>
         </Case>
         <Case Value="4">
            <Image Name="FLAP_LEAD_2.bmp" Bright="Yes" ImageSizes="14,19"/>
         </Case>
         <Case Value="5">
            <Image Name="FLAP_LEAD_2.bmp" Bright="Yes" ImageSizes="14,19"/>
         </Case>
     </Select>
   </Element>

     <!--          FLAP READOUT            -->
      <Element>
         <Position X="210" Y="277"/>
         <Text X="34" Y="20" Bright="Yes" Length="3" Font="Quartz" Color="Orange" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:TRAILING EDGE FLAPS LEFT ANGLE, degrees))%!3d! &#176;</String>
         </Text>
      </Element>

      <!--          TEXT            -->
      <Element>
         <Position X="220" Y="12"/>
         <Text X="160" Y="17" Bright="Yes" Length="10" Font="Quartz" Color="#00FF00" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((L:Smoking sign, bool) if{ 'NO SMOKING' } els{ '           ' } )%!s!</String>
         </Text>
      </Element>
      <Element>
         <Position X="220" Y="32"/>
         <Text X="160" Y="17" Bright="Yes" Length="10" Font="Quartz" Color="#00FF00" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((L:Seatbelt sign, bool) if{ 'SEATBELTS' } els{ '         ' } )%!s!</String>
         </Text>
      </Element>

      <Element>
         <Position X="220" Y="52"/>
         <Text X="160" Y="17" Bright="Yes" Length="14" Font="Quartz" Color="#00FF00" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:Light landing,bool) if{ 'LANDING LIGHTS' } els{ '         ' } )%!s!</String>
         </Text>
      </Element>

      <Element>
         <Position X="220" Y="72"/>
         <Text X="160" Y="17" Bright="Yes" Length="10" Font="Quartz" Color="#00FF00" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:Pitot heat,bool) if{ 'PITOT HEAT' } els{ '          ' } )%!s!</String>
         </Text>
      </Element>

      <Element>
         <Position X="220" Y="92"/>
         <Text X="160" Y="17" Bright="Yes" Length="11" Font="Quartz" Color="#00FF00" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:General eng1 anti ice position,bool) if{ 'DEICE ENG 1' } els{ '        ' } )%!s!</String>
         </Text>
      </Element>

      <Element>
         <Position X="220" Y="112"/>
         <Text X="160" Y="17" Bright="Yes" Length="11" Font="Quartz" Color="#00FF00" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:General eng2 anti ice position,bool) if{ 'DEICE ENG 2' } els{ '        ' } )%!s!</String>
         </Text>
      </Element>

      <Element>
         <Position X="220" Y="132"/>
         <Text X="160" Y="17" Bright="Yes" Length="13" Font="Quartz" Color="#FFFF00" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:Brake parking position, percent) 50 &gt; if{ 'PARKING BRAKE' } els{ '           ' } )%!s!</String>
         </Text>
      </Element>


      <Element>
         <Position X="220" Y="152"/>
         <Text X="160" Y="17" Bright="Yes" Length="14" Font="Quartz" Color="#FFFF00" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:SPOILERS ARMED,bool) if{ 'SPOILERS ARMED' } els{ '           ' } )%!s!</String>
         </Text>
      </Element>



      <Element>
         <Position X="220" Y="172"/>
         <Text X="160" Y="17" Bright="Yes" Length="11" Font="Quartz" Color="#FF0000" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:General eng1 generator switch,bool) if{ '           ' } els{ 'GENERATOR 1' } )%!s!</String>
         </Text>
      </Element>

      <Element>
         <Position X="220" Y="192"/>
         <Text X="160" Y="17" Bright="Yes" Length="11" Font="Quartz" Color="#FF0000" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:General eng2 generator switch,bool) if{ '           ' } els{ 'GENERATOR 2' } )%!s!</String>
         </Text>
      </Element>

      <Element>
         <Position X="220" Y="212"/>
         <Text X="160" Y="17" Bright="Yes" Length="13" Font="Quartz" Color="#FF0000" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:ENG1 HYDRAULIC PRESSURE, psi) 1000 &lt; if{ 'HYDRAULICS #1' } els{ '        ' } )%!s!</String>
         </Text>
      </Element>

      <Element>
         <Position X="220" Y="232"/>
         <Text X="160" Y="17" Bright="Yes" Length="13" Font="Quartz" Color="#FF0000" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:ENG2 HYDRAULIC PRESSURE, psi) 1000 &lt; if{ 'HYDRAULICS #2' } els{ '         ' } )%!s!</String>
         </Text>
      </Element>

      <!--          ATTITUDE             -->

   <Element>
      <Position X="21" Y="189"/>
      <MaskImage Name="Attitude_Mask.bmp" Bright="Yes" ImageSizes="72,72">
         <Axis X="36" Y="36"/>
      </MaskImage>
      <Image Name="Attitude_Arrow.bmp" Bright="Yes" ImageSizes="7,7">
         <Axis X="3.5" Y="36"/>
      </Image>
      <Rotate>
         <Value>(A:Attitude indicator bank degrees,radians)</Value>
      </Rotate>
   </Element>

   <Element>
      <Position X="21" Y="189"/>
      <MaskImage Name="Attitude_Mask.bmp" Bright="Yes" ImageSizes="72,72">
         <Axis X="36" Y="36"/>
      </MaskImage>
      <Image Name="Attitude_Needle.bmp" Bright="Yes" ImageSizes="80,2">
         <Axis X="40" Y="1"/>
      </Image>
      <Shift>
         <Value Minimum="-25" Maximum="25">(A:Attitude indicator pitch degrees, degrees) /-/</Value>
         <Scale Y="2.5"/>
      </Shift>
      <Rotate>
         <Value>(A:Attitude indicator bank degrees, radians)</Value>
      </Rotate>
   </Element>

   <Element>
      <Position X="37" Y="222.5"/>
      <Image Name="Attitude_Bars.bmp" Bright="Yes" ImageSizes="40,5">
      </Image>
   </Element>

      <!--          ALTIMETER             -->

   <Element>
      <Position X="153" Y="225"/>
      <Image Name="Altimeter_Needle10000.bmp" Bright="Yes" ImageSizes="35,5">
         <Axis X="0" Y="2.5" PointsTo="East"/>
      </Image>
      <Rotate>
         <Value>(A:Indicated Altitude, feet) 10000 /</Value>
         <Failures>
            <GAUGE_ALTIMETER Action="Freeze"/>
            <SYSTEM_PITOT_STATIC Action="Freeze"/>
         </Failures>
         <Nonlinearity>
            <Item Value="0" X="153" Y="191"/>
            <Item Value="5" X="153" Y="257"/>
         </Nonlinearity>
      </Rotate>
   </Element>

   <Element>
      <Position X="153" Y="225"/>
      <Image Name="Altimeter_Needle1000.bmp" Bright="Yes" ImageSizes="35,5">
         <Axis X="0" Y="2.5" PointsTo="East"/>
      </Image>
      <Rotate>
         <Value>(A:Indicated Altitude, feet) 1000 /</Value>
         <Failures>
            <GAUGE_ALTIMETER Action="Freeze"/>
            <SYSTEM_PITOT_STATIC Action="Freeze"/>
         </Failures>
         <Nonlinearity>
            <Item Value="0" X="153" Y="191"/>
            <Item Value="5" X="153" Y="257"/>
         </Nonlinearity>
      </Rotate>
   </Element>

   <Element>
      <Position X="153" Y="225"/>
      <Image Name="Altimeter_Needle100.bmp" Bright="Yes" ImageSizes="35,5">
         <Axis X="0" Y="2.5" PointsTo="East"/>
      </Image>
      <Rotate>
         <Value>(A:Indicated Altitude, feet) 100 /</Value>
         <Failures>
            <GAUGE_ALTIMETER Action="Freeze"/>
            <SYSTEM_PITOT_STATIC Action="Freeze"/>
         </Failures>
         <Nonlinearity>
            <Item Value="0" X="153" Y="191"/>
            <Item Value="5" X="153" Y="257"/>
         </Nonlinearity>
      </Rotate>
   </Element>


      <Element>
         <Position X="127" Y="214"/>
      <Image Name="ALT_BACK.bmp" ImageSizes="55,18">
      </Image>
      </Element>

      <Element>
         <Position X="127" Y="214"/>
         <Text X="55" Y="18" Bright="Yes" Length="5" Font="Quartz" Color="Orange" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:Indicated Altitude, feet))%!5d!</String>
         </Text>
      </Element>

      <!--          AIRSPEED             -->

   <Element>
      <Position X="107" Y="297"/>
      <Image Name="Altimeter_Needle100.bmp" Bright="Yes" PointsTo="East" ImageSizes="35,5">
         <Axis X="0" Y="2.5"/>
      </Image>
      <Rotate>
         <Value Minimum="0" Maximum="400">(A:Airspeed indicated, knots)</Value>
         <Failures>
            <SYSTEM_PITOT_STATIC Action="0"/>
            <GAUGE_AIRSPEED Action="Freeze"/>
         </Failures>
         <Nonlinearity>
            <Item Value="0" X="107" Y="264"/>
            <Item Value="200" X="107" Y="328"/>
         </Nonlinearity>
         <Delay DegreesPerSecond="12"/>
      </Rotate>
   </Element>

      <Element>
         <Position X="91" Y="286"/>
      <Image Name="AIR_BACK.bmp" ImageSizes="35,18">
      </Image>
      </Element>

      <Element>
         <Position X="91" Y="286"/>
         <Text X="35" Y="18" Bright="Yes" Length="3" Font="Quartz" BackgroundColor="#020202" Color="Orange" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:Airspeed indicated, knots))%!3d!</String>
         </Text>
      </Element>


      <!--          ELEV TRIM             -->


      <Element>
         <Position X="6" Y="295"/>
         <Text X="58" Y="18" Bright="Yes" Length="5" Font="Arial" Color="%('#FF00FF' '#FFFFFF' (A:ELEVATOR TRIM POSITION, degrees) 10 * near 10 / 0 &gt;= ! ?)" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:ELEVATOR TRIM POSITION, degrees) 10 * near 10 / )%!5.1f!</String>
         </Text>
      </Element>

</Element>


      <!--===============UPPER 2 ============= -->


<Element>
<Visible>(L:EICAS_SWITCH,enum) 0 ==</Visible>
<Image Name="EICAS_2.bmp" Bright="Yes" ImageSizes="355,339"/>


      <!--         REVERSERS             -->



      <Element>
         <Position X="29" Y="10"/>
         <Text X="30" Y="14" Bright="Yes" Length="3" Font="Quartz" Color="#FF0000" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:TURB ENG1 REVERSE NOZZLE PERCENT, percent) 5 &gt; if{ 'REV' } els{ '       ' } )%!s!</String>
         </Text>
      </Element>

      <Element>
         <Position X="248" Y="10"/>
         <Text X="30" Y="14" Bright="Yes" Length="3" Font="Quartz" Color="#FF0000" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:TURB ENG2 REVERSE NOZZLE PERCENT, percent) 5 &gt; if{ 'REV' } els{ '       ' } )%!s!</String>
         </Text>
      </Element>

      <!--         EPR             -->

   <Element>
      <Position X="49" Y="48"/>
      <Image Name="EICAS_NEEDLE.bmp" PointsTo="West" Bright="Yes" ImageSizes="35,2">
         <Axis X="35" Y="1"/>
      </Image>
      <Rotate>
               <Value Minimum="0" Maximum="1.4">(A:Turb eng1 pressure ratio, ratio) abs</Value>
                  <Nonlinearity>
                     <Item Value="2" X="21" Y="28"/>
                     <Item Value="1" X="24" Y="73"/>
                     <Item Value="0" X="84" Y="48"/>
                  </Nonlinearity>
         <Delay DegreesPerSecond="0"/>
      </Rotate>
   </Element>

   <Element>
      <Position X="51" Y="30"/>
      <Text X="40" Y="16" Length="4" Fixed="Yes" Font="Quartz" Adjust="Center" VerticalAdjust="Center" Color="#00FFFF" Bright="Yes">
         <String>%((A:Turb eng1 pressure ratio, ratio) abs)%!2.1f!</String>
      </Text>
   </Element>

   <Element>
      <Position X="147" Y="48"/>
      <Image Name="EICAS_NEEDLE.bmp" PointsTo="West" Bright="Yes" ImageSizes="35,2">
         <Axis X="35" Y="1"/>
      </Image>
      <Rotate>
               <Value Minimum="0" Maximum="1.4">(A:Turb eng2 pressure ratio, ratio) abs</Value>
                  <Nonlinearity>
                     <Item Value="2" X="120" Y="28"/>
                     <Item Value="1" X="123" Y="73"/>
                     <Item Value="0" X="181" Y="48"/>
                  </Nonlinearity>
         <Delay DegreesPerSecond="0"/>
      </Rotate>
   </Element>

   <Element>
      <Position X="149" Y="30"/>
      <Text X="40" Y="16" Length="4" Fixed="Yes" Font="Quartz" Adjust="Center" VerticalAdjust="Center" Color="#00FFFF" Bright="Yes">
         <String>%((A:Turb eng2 pressure ratio, ratio) abs)%!2.1f!</String>
      </Text>
   </Element>

      <!--          N1             -->

   <Element>
      <Position X="49" Y="121"/>
      <Image Name="EICAS_NEEDLE.bmp" PointsTo="WEST" Bright="Yes" ImageSizes="35,2">
         <Axis X="35" Y="1"/>
      </Image>
      <Rotate>
         <Value Minimum="0" Maximum="107">(A:Turb eng1 N1, percent)</Value>
         <Nonlinearity>
            <Item Value="0" X="83" Y="121"/>
            <Item Value="50" X="38" Y="153"/>
	    <Item Value="100" X="17" Y="108"/>	
         </Nonlinearity>
         <Delay DegreesPerSecond="0"/>
      </Rotate>
   </Element>

   <Element>
      <Position X="50" Y="102"/>
      <Text X="40" Y="16" Length="5" Fixed="Yes" Font="Quartz" Adjust="Right" VerticalAdjust="Center" Color="%('#00FFFF' '#FF0000' (A:Turb eng1 N1, percent) 100 &gt; ! ?)" Bright="Yes">
         <String>%((A:Turb eng1 N1, percent) abs)%!3.1f!</String>
      </Text>
   </Element>

   <Element>
      <Position X="146" Y="120"/>
      <Image Name="EICAS_NEEDLE.bmp" PointsTo="WEST" Bright="Yes" ImageSizes="35,2">
         <Axis X="35" Y="1"/>
      </Image>
      <Rotate>
         <Value Minimum="0" Maximum="107">(A:Turb eng2 N1, percent)</Value>
         <Nonlinearity>
            <Item Value="0" X="181" Y="121"/>
            <Item Value="50" X="129" Y="153"/>
	    <Item Value="100" X="115" Y="108"/>	
         </Nonlinearity>
         <Delay DegreesPerSecond="0"/>
      </Rotate>
   </Element>

   <Element>
      <Position X="149" Y="103"/>
      <Text X="40" Y="16" Length="5" Fixed="Yes" Font="Quartz" Adjust="Right" VerticalAdjust="Center" Color="%('#00FFFF' '#FF0000' (A:Turb eng2 N1, percent) 100 &gt; ! ?)" Bright="Yes">
         <String>%((A:Turb eng2 N1, percent) abs)%!3.1f!</String>
      </Text>
   </Element>

      <!--          EGT             -->

   <Element>
      <Position X="49" Y="198"/>
      <Image Name="EICAS_NEEDLE.bmp" PointsTo="West" Bright="Yes" ImageSizes="35,2">
         <Axis X="35" Y="1"/>
      </Image>
      <Rotate>
         <Value Minimum="0" Maximum="1000">(A:General eng1 exhaust gas temperature, celsius)</Value>
         <Nonlinearity>
            <Item Value="0" X="84" Y="199"/>
            <Item Value="500" X="33" Y="231"/>
	    <Item Value="1000" X="22" Y="178"/>	
         </Nonlinearity>
         <Delay DegreesPerSecond="0"/>
      </Rotate>
   </Element>

   <Element>
      <Position X="51" Y="181"/>
      <Text X="40" Y="16" Length="4" Fixed="Yes" Font="Quartz" Adjust="CENTER" VerticalAdjust="Center" Color="%('#00FFFF' '#FF0000' (A:General eng1 exhaust gas temperature, celsius) 700 &gt; ! ?)" Bright="Yes" >
         <String>%((A:General eng1 exhaust gas temperature, celsius) abs)%!3.0f!</String>
      </Text>
   </Element> 


   <Element>
      <Position X="147" Y="198"/>
      <Image Name="EICAS_NEEDLE.bmp" PointsTo="West" Bright="Yes" ImageSizes="35,2">
         <Axis X="35" Y="1"/>
      </Image>
      <Rotate>
         <Value Minimum="0" Maximum="1000">(A:General eng2 exhaust gas temperature, celsius)</Value>
         <Nonlinearity>
            <Item Value="0" X="182" Y="198"/>
            <Item Value="500" X="130" Y="232"/>
	    <Item Value="1000" X="120" Y="178"/>	
         </Nonlinearity>
         <Delay DegreesPerSecond="0"/>
      </Rotate>
   </Element>

   <Element>
      <Position X="149" Y="180"/>
      <Text X="40" Y="16" Length="4" Fixed="Yes" Font="Quartz" Adjust="CENTER" VerticalAdjust="Center" Color="%('#00FFFF' '#FF0000' (A:General eng2 exhaust gas temperature, celsius) 700 &gt; ! ?)" Bright="Yes" >
         <String>%((A:General eng1 exhaust gas temperature, celsius) abs)%!3.0f!</String>
      </Text>
   </Element>

      <!--          N2             -->

   <Element>
      <Position X="49" Y="276"/>
      <Image Name="EICAS_NEEDLE.bmp" PointsTo="WEST" Bright="Yes" ImageSizes="35,2">
         <Axis X="35" Y="1"/>
      </Image>
      <Rotate>
         <Value Minimum="0" Maximum="107">(A:Turb eng1 N2, percent)</Value>
         <Nonlinearity>
            <Item Value="0" X="83" Y="276"/>
            <Item Value="50" X="33" Y="309"/>
	    <Item Value="100" X="17" Y="264"/>	
         </Nonlinearity>
         <Delay DegreesPerSecond="0"/>
      </Rotate>
   </Element>

   <Element>
      <Position X="51" Y="259"/>
      <Text X="40" Y="16" Length="5" Fixed="Yes" Font="Quartz" Adjust="CENTER" VerticalAdjust="Center" Color="%('#00FFFF' '#FF0000' (A:Turb eng1 N2, percent) 100 &gt; ! ?)" Bright="Yes">
         <String>%((A:Turb eng1 N2, percent) abs)%!3.1f!</String>
      </Text>
   </Element>

   <Element>
      <Position X="147" Y="275"/>
      <Image Name="EICAS_NEEDLE.bmp" PointsTo="WEST" Bright="Yes" ImageSizes="35,2">
         <Axis X="35" Y="1"/>
      </Image>
      <Rotate>
         <Value Minimum="0" Maximum="107">(A:Turb eng2 N2, percent)</Value>
         <Nonlinearity>
            <Item Value="0" X="182" Y="276"/>
            <Item Value="50" X="130" Y="310"/>
	    <Item Value="100" X="115" Y="264"/>	
         </Nonlinearity>
         <Delay DegreesPerSecond="0"/>
      </Rotate>
   </Element>

   <Element>
      <Position X="149" Y="259"/>
      <Text X="40" Y="16" Length="5" Fixed="Yes" Font="Quartz" Adjust="Right" VerticalAdjust="Center" Color="%('#00FFFF' '#FF0000' (A:Turb eng2 N2, percent) 100 &gt; ! ?)" Bright="Yes">
         <String>%((A:Turb eng2 N2, percent) abs)%!3.1f!</String>
      </Text>
   </Element>

      <!--          FUEL FLOW             -->

   <Element>
      <Position X="233" Y="50"/>
      <Image Name="EICAS_NEEDLE2.bmp" PointsTo="WEST" Bright="Yes" ImageSizes="29,2">
         <Axis X="29" Y="1"/>
      </Image>
      <Rotate>
         <Value Minimum="0" Maximum="10000">(A:Turb eng1 fuel flow pph, pounds per hour)</Value>
         <Nonlinearity>
            <Item Value="0" X="263" Y="51"/>
            <Item Value="5000" X="214" Y="74"/>
	    <Item Value="10000" X="210" Y="33"/>	
         </Nonlinearity>
         <Delay DegreesPerSecond="0"/>
      </Rotate>
   </Element>

   <Element>
      <Position X="235" Y="36"/>
      <Text X="35" Y="11" Length="5" Fixed="Yes" Font="Arial" Adjust="CENTER" VerticalAdjust="Center" Color="#00FFFF" Bright="Yes">
         <String>%((A:Turb eng1 fuel flow pph, pounds per hour) 1000 /)%!5.2f!</String>
      </Text>
   </Element>  

   <Element>
      <Position X="308" Y="50"/>
      <Image Name="EICAS_NEEDLE2.bmp" PointsTo="WEST" Bright="Yes" ImageSizes="29,2">
         <Axis X="29" Y="1"/>
      </Image>
      <Rotate>
         <Value Minimum="0" Maximum="10000">(A:Turb eng2 fuel flow pph, pounds per hour)</Value>
         <Nonlinearity>
            <Item Value="0" X="337" Y="51"/>
            <Item Value="5000" X="288" Y="74"/>
	    <Item Value="10000" X="283" Y="33"/>	
         </Nonlinearity>
         <Delay DegreesPerSecond="0"/>
      </Rotate>
   </Element>

   <Element>
      <Position X="309" Y="36"/>
      <Text X="35" Y="11" Length="5" Fixed="Yes" Font="Arial" Adjust="Right" VerticalAdjust="Center" Color="#00FFFF" Bright="Yes">
         <String>%((A:Turb eng2 fuel flow pph, pounds per hour) 1000 /)%!5.2f!</String>
      </Text>
   </Element>  

      <!--          FUEL PRESS            -->

   <Element>
      <Position X="233" Y="117"/>
      <Image Name="EICAS_NEEDLE2.bmp" PointsTo="WEST" Bright="Yes" ImageSizes="29,2">
         <Axis X="29" Y="1"/>
      </Image>
      <Rotate>
         <Value>(A:GENERAL ENG1 FUEL PRESSURE, psi)</Value>
         <Nonlinearity>
            <Item Value="0" X="263" Y="117"/>
            <Item Value="25" X="214" Y="140"/>
	    <Item Value="50" X="210" Y="100"/>	
         </Nonlinearity>
         <Delay DegreesPerSecond="0"/>
      </Rotate>
   </Element>

   <Element>
      <Position X="235" Y="102"/>
      <Text X="35" Y="11" Length="5" Fixed="Yes" Font="Arial" Adjust="CENTER" VerticalAdjust="Center" Color="%('#00FFFF' '#FF0000' (A:GENERAL ENG1 FUEL PRESSURE, psi) 5 &lt; ! ?)" Bright="Yes">
         <String>%((A:GENERAL ENG1 FUEL PRESSURE, psi) abs)%!3d!</String>
      </Text>
   </Element>  

   <Element>
      <Position X="308" Y="117"/>
      <Image Name="EICAS_NEEDLE2.bmp" PointsTo="WEST" Bright="Yes" ImageSizes="29,2">
         <Axis X="29" Y="1"/>
      </Image>
      <Rotate>
         <Value>(A:GENERAL ENG2 FUEL PRESSURE, psi)</Value>
         <Nonlinearity>
            <Item Value="0" X="337" Y="117"/>
            <Item Value="25" X="288" Y="141"/>
	    <Item Value="50" X="283" Y="33"/>	
         </Nonlinearity>
         <Delay DegreesPerSecond="0"/>
      </Rotate>
   </Element>

   <Element>
      <Position X="309" Y="102"/>
      <Text X="35" Y="11" Length="5" Fixed="Yes" Font="Arial" Adjust="Right" VerticalAdjust="Center" Color="%('#00FFFF' '#FF0000' (A:GENERAL ENG2 FUEL PRESSURE, psi) 5 &lt; ! ?)" Bright="Yes">
         <String>%((A:GENERAL ENG2 FUEL PRESSURE, psi) abs)%!3d!</String>
      </Text>
   </Element> 

      <!--          FUEL QUANTITY            -->


   <Element>
      <Position X="273" Y="202"/>
      <Image Name="EICAS_NEEDLE2.bmp" PointsTo="West" Bright="Yes" ImageSizes="29,2">
         <Axis X="29" Y="1"/>
      </Image>
      <Rotate>
         <Value Minimum="0" Maximum="1">(A:Fuel tank center level,part)</Value>
         <Nonlinearity>
            <Item Value="0" X="302" Y="202"/>
            <Item Value="0.5" X="254" Y="227"/>
            <Item Value="1" X="249" Y="185"/>
         </Nonlinearity>
         <Delay DegreesPerSecond="5"/>
      </Rotate>
   </Element>

   <Element>
     <Position X="274" Y="185" /> 
      <Text  X="35" Y="15" Bright="Yes" Length="4" Font="Quartz" Color="%('#00FFFF' '#FF0000' (A:FUEL TANK CENTER LEVEL, percent) 15 &lt; ! ?)" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="No"> 
       <String>%((A:FUEL TANK CENTER LEVEL, percent) abs)%!3d!&#37;%</String> 
      </Text> 
   </Element>


   <Element>
      <Position X="235" Y="270"/>
      <Image Name="EICAS_NEEDLE2.bmp" PointsTo="West" Bright="Yes" ImageSizes="29,2">
         <Axis X="29" Y="1"/>
      </Image>
      <Rotate>
         <Value Minimum="0" Maximum="1">(A:Fuel tank left main level,part)</Value>
         <Nonlinearity>
            <Item Value="0" X="265" Y="271"/>
            <Item Value="0.5" X="217" Y="296"/>
            <Item Value="1" X="209" Y="256"/>
         </Nonlinearity>
         <Delay DegreesPerSecond="5"/>
      </Rotate>
   </Element>

   <Element>
     <Position X="236" Y="254" /> 
      <Text  X="35" Y="15" Bright="Yes" Length="4" Font="Quartz" Color="%('#00FFFF' '#FF0000' (A:Fuel tank left main level, percent) 15 &lt; ! ?)" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="No"> 
       <String>%((A:Fuel tank left main level, percent) abs)%!3d!&#37;%</String> 
      </Text> 
   </Element>

  <Element>
      <Position X="309" Y="270"/>
      <Image Name="EICAS_NEEDLE2.bmp" PointsTo="West" Bright="Yes" ImageSizes="29,2">
         <Axis X="29" Y="1"/>
      </Image>
      <Rotate>
         <Value Minimum="0" Maximum="1">(A:Fuel tank right main level,part)</Value>
         <Nonlinearity>
            <Item Value="0" X="338" Y="271"/>
            <Item Value="0.5" X="291" Y="296"/>
            <Item Value="1" X="284" Y="256"/>
         </Nonlinearity>
         <Delay DegreesPerSecond="5"/>
      </Rotate>
   </Element>

   <Element>
     <Position X="310" Y="254" /> 
      <Text  X="35" Y="15" Bright="Yes" Length="4" Font="Quartz" Color="%('#00FFFF' '#FF0000' (A:Fuel tank right main level, percent) 15 &lt; ! ?)" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="No"> 
       <String>%((A:Fuel tank right main level, percent) abs)%!3d!&#37;%</String> 
      </Text> 
   </Element>
</Element>


      <!--===============UPPER 3 ============= -->


<Element>
<Visible>(L:EICAS_SWITCH,enum) 1 ==</Visible>
<Image Name="EICAS_3.bmp" Bright="Yes" ImageSizes="355,339"/>



      <Element>
         <Position X="128" Y="37"/>
         <Text X="85" Y="18" Bright="Yes" Length="6" Font="Arial" Color="ORANGE" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:ATC FLIGHT NUMBER, string))%!s!%</String>
         </Text>
      </Element>

      <Element>
         <Position X="13" Y="37"/>
         <Text X="85" Y="18" Bright="Yes" Length="10" Font="Arial" Color="ORANGE" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:GPS IS ACTIVE WAY POINT, bool))%{if}%((A:GPS WP NEXT ID, string))%!s!%{end}</String>
         </Text>
      </Element>

      <Element>
         <Position X="13" Y="80"/>
         <Text X="85" Y="18" Bright="Yes" Length="10" Font="Arial" Color="ORANGE" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:GPS WP DISTANCE, nautical miles) abs)%!4.1f!</String>
         </Text>
      </Element>

     <Element>
         <Position X="13" Y="123"/>
         <Text X="85" Y="18" Bright="Yes" Length="10" Font="Arial" Color="ORANGE" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:GPS IS ACTIVE WAY POINT, bool))%{if}%((A:GPS WP ETA, hours) flr 100 %)%!02d!:%((A:GPS WP ETA, minutes) flr 60 %)%!02d!%{end}</String>
         </Text>
      </Element>

      <Element>
         <Position X="13" Y="169"/>
         <Text X="85" Y="18" Bright="Yes" Length="10" Font="Arial" Color="ORANGE" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:GPS GROUND SPEED, knots) abs)%!4.0f!</String>
         </Text>
      </Element>

      <Element>
         <Position X="13" Y="216"/>
         <Text X="85" Y="18" Bright="Yes" Length="10" Font="Arial" Color="ORANGE" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:AIRSPEED TRUE, knots) abs)%!4.0f!</String>
         </Text>
      </Element>

      <Element>
         <Position X="267" Y="37"/>
         <Text X="85" Y="18" Bright="Yes" Length="10" Font="Arial" Color="ORANGE" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:GPS WP DESIRED TRACK, degrees) d360)%!03d!%</String>
         </Text>
      </Element>

      <Element>
         <Position X="267" Y="80"/>
         <Text X="85" Y="18" Bright="Yes" Length="10" Font="Arial" Color="ORANGE" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:GPS WP TRUE BEARING, degrees) d360)%!03d!%</String>
         </Text>
      </Element>

      <Element>
         <Position X="267" Y="123"/>
         <Text X="85" Y="18" Bright="Yes" Length="10" Font="Quartz" Color="Orange" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:GPS IS ACTIVE WAY POINT, bool))%{if}%((A:GPS ETA, hours) flr 100 %)%!02d!:%((A:GPS ETA, minutes) flr 60 %)%!02d!%{end}</String>
         </Text>
      </Element>

      <Element>
         <Position X="267" Y="169"/>
         <Text X="85" Y="18" Bright="Yes" Length="10" Font="Arial" Color="ORANGE" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((P:LOCAL TIME, hours) flr 100 %)%!02d!:%((P:LOCAL TIME, minutes) flr 60 %)%!02d!%</String>
         </Text>
      </Element>

      <Element>
         <Position X="267" Y="216"/>
         <Text X="85" Y="18" Bright="Yes" Length="10" Font="Arial" Color="ORANGE" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((P:ZULU TIME, hours) flr 100 %)%!02d!:%((P:ZULU TIME, minutes) flr 60 %)%!02d!%</String>
         </Text>
      </Element>

  <Element>
      <Position X="178" Y="284"/>
      <Image Name="WIND_ND.bmp" Bright="Yes" ImageSizes="50,13">
         <Axis X="0" Y="6.5" PointsTo="East"/>
      </Image>
      <Rotate>
         <Value>(A:Ambient wind direction, radians) (A:Plane heading degrees gyro, radians) - pi 2 / - </Value>
         <Failures>
            <SYSTEM_ELECTRICAL_PANELS Action="Freeze"/>
            <GAUGE_RelativeWind Action="Freeze"/>
         </Failures>
         <Delay DegreesPerSecond="180"/>
      </Rotate>
   </Element>

         <Element>
            <Position X="152" Y="271"/>
            <Text X="25" Y="18" Bright="Yes" Length="3" Font="Arial" Color="#00FF00" Adjust="Center" VerticalAdjust="Right" Multiline="No" Fixed="Yes">
               <String>%((A:AMBIENT WIND DIRECTION, degrees) abs)%!003.0f!</String>
            </Text>
         </Element>

         <Element>
            <Position X="179" Y="271"/>
            <Text X="5" Y="18" Bright="Yes" Length="1" Font="Arial" Color="White" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="Yes">
               <String>/</String>
            </Text>
         </Element>

         <Element>
            <Position X="186" Y="271"/>
            <Text X="20" Y="18" Bright="Yes" Length="2" Font="Arial" Color="#00FF00" Adjust="Center" VerticalAdjust="Left" Multiline="No" Fixed="Yes">
               <String>%((A:AMBIENT WIND VELOCITY, knots) abs)%!02.0f!</String>
            </Text>
         </Element>

</Element>

   </Element>
</Gauge>






