<Gauge Name="Trim_0" Version="1.0">
   <Image Name="Trim_0_Back.bmp" ImageSizes="60,150,0,0"/>
   <Element>
      <Position X="9" Y="5"/>
      <Select>
         <Failures>
            <SYSTEM_ELECTRICAL_PANELS Action="0"/>
         </Failures>
       <Value Minimum="0" Maximum="15">(A:Trailing edge flaps0 left percent,percent) 15 &gt; (L:Control,bool) ||</Value>
         <Case Value="0">
            <Image Name="Zagr_Off.bmp" ImageSizes="42,50,0,0"/>
         </Case>
         <Case Value="1">
            <Image Name="Zagr_on.bmp" Bright="Yes" ImageSizes="42,50,0,0"/>
         </Case>
       </Select>
   </Element>
   <Element>
      <Position X="9" Y="65"/>
      <Select>
         <Failures>
            <SYSTEM_ELECTRICAL_PANELS Action="1"/>
         </Failures>
         <Value Minimum="-1" Maximum="1">(A:Rudder trim, degrees) 10 *</Value>
         <Case Value="-1">
            <Image Name="Ind_Off.bmp" ImageSizes="42,20,0,0"/>
         </Case>
         <Case Value="0">
            <Image Name="RudderTrim_0.bmp" Bright="Yes" ImageSizes="42,20,0,0"/>
         </Case>
         <Case Value="1">
            <Image Name="Ind_Off.bmp" ImageSizes="42,20,0,0"/>
         </Case>
      </Select>
   </Element>
   <Element>
      <Visible>(A:CIRCUIT GENERAL PANEL ON,bool)</Visible>
      <Position X="9" Y="95"/>
      <Select>
         <Failures>
            <SYSTEM_ELECTRICAL_PANELS Action="1"/>
         </Failures>
         <Value Minimum="-1" Maximum="1">(A:Aileron trim,degrees) 10 *</Value>
         <Case Value="-1">
            <Image Name="Ind_Off.bmp" ImageSizes="42,20,0,0"/>
         </Case>
         <Case Value="0">
            <Image Name="AileronTrim_0.bmp" Bright="Yes" ImageSizes="42,20,0,0"/>
         </Case>
         <Case Value="1">
            <Image Name="Ind_Off.bmp" ImageSizes="42,20,0,0"/>
         </Case>
       </Select>
   </Element>
   <Element>
      <Visible>(A:CIRCUIT GENERAL PANEL ON,bool)</Visible>
      <Position X="9" Y="125"/>
      <Select>
         <Value>(L:Zstab,number) 2 == if{ (A:Elevator Trim Position,degrees) 0.1 &lt; (A:Elevator Trim Position,degrees) -0.2 &gt; &amp;&amp; if{ 1 } els{ 0 } } els{ (L:Zstab,number) 1 == if{ (A:Elevator Trim Position,degrees) 6.1 &lt; (A:Elevator Trim Position,degrees) 5.8 &gt; &amp;&amp; if{ 1 } els{ 0 } } els{ (A:Elevator Trim Position,degrees) 2.1 &lt; (A:Elevator Trim Position,degrees) 1.8 &gt; &amp;&amp; if{ 1 } els{ 0 } } } (L:Control,bool) ||</Value>
         <Case Value="0">
            <Image Name="Ind_Off.bmp" ImageSizes="42,20,0,0"/>
         </Case>
         <Case Value="1">
            <Image Name="RV_Trim_0.bmp" Bright="Yes" ImageSizes="42,20,0,0"/>
         </Case>
       </Select>
   </Element>
</Gauge>
