<?xml version="1.0" encoding="utf-8"?>
<Gauge Name="Primary Flight Display" Version="1.0" Copyright="Yosuke Ube @ Project Open Sky">
  <Image Name="posky777_nd_back.bmp" Bright="Yes" />
  <Element>
    <Position X="1" Y="1" />
    <Container />
    <Update Frequency="7" />
    <Element>
      <Size X="189" Y="197" />
      <Visible>(A:Circuit general panel on, bool)
</Visible>
      <Element id="attitude card">
        <Position X="80" Y="91" />
        <Element>
          <MaskImage Name="attitude_card_mask.bmp" Bright="Yes">
            <Axis X="95" Y="99" />
          </MaskImage>
          <Image Name="attitude_card.bmp" Bright="Yes">
            <Axis X="152" Y="721" />
          </Image>
          <Shift>
            <Value Minimum="-90" Maximum="90">(A:Attitude indicator pitch degrees:1, degrees) /-/</Value>
            <Scale Y="4" />
          </Shift>
          <Rotate>
            <Value>(A:Attitude indicator bank degrees:1, radians)</Value>
          </Rotate>
        </Element>
        <Element>
          <MaskImage Name="attitude_roll_card_mask.bmp" Bright="Yes">
            <Axis X="95" Y="99" />
          </MaskImage>
          <Image Name="attitude_roll_card.bmp" Bright="Yes">
            <Axis X="152" Y="721" />
          </Image>
          <Shift>
            <Value Minimum="-90" Maximum="90">(A:Attitude indicator pitch degrees:1, degrees) /-/
</Value>
            <Scale Y="4" />
          </Shift>
          <Rotate>
            <Value>(A:Attitude indicator bank degrees:1, radians)
</Value>
          </Rotate>
        </Element>
        <Element>
          <Image Name="attitude_roll_ticks.bmp" Bright="Yes" />
        </Element>
        <Element>
          <Position X="93" Y="95" />
          <Image Name="attitude_bank_pointer.bmp" Bright="Yes">
            <Axis X="8" Y="89" />
          </Image>
          <Rotate>
            <Value>(A:Attitude indicator bank degrees:1, radians)</Value>
          </Rotate>
        </Element>
        <Element>
          <Position X="93" Y="95" />
          <Image Name="attitude_bank_slip_skid.bmp" Bright="Yes">
            <Axis X="8" Y="80" />
          </Image>
          <Rotate>
            <Value>(A:Attitude indicator bank degrees:1, radians) (A:Turn coordinator ball, position) 4 / +</Value>
          </Rotate>
        </Element>
        <Element>
          <Position X="17" Y="98" />
          <Image Name="attitude_plane.bmp" Bright="Yes">
            <Axis X="0" Y="0" />
          </Image>
        </Element>
        <Element>
          <Position X="59" Y="-23" />
          <Visible>(A:Autopilot flight director active, bool)</Visible>
          <Text Bright="Yes" X="73" Y="18" Length="7" Fixed="Yes" Font="Msgothic" Color="#00FD00" Adjust="Center" VerticalAdjust="Center">
            <String>FLT DIR</String>
          </Text>
        </Element>
        <Element>
          <Position X="94" Y="98" />
          <Image Name="attitude_fd_bar_pitch.bmp" Bright="Yes">
            <Axis X="54.5" Y="0" />
          </Image>
          <Visible>(A:Autopilot flight director active, bool)</Visible>
          <Shift>
            <Value Minimum="-10" Maximum="10">(A:Autopilot flight director pitch, degrees) (A:Attitude indicator pitch degrees:1, degrees) -</Value>
            <Scale Y="4" />
          </Shift>
        </Element>
        <Element>
          <Position X="94" Y="98" />
          <Image Name="attitude_fd_bar_roll.bmp" Bright="Yes">
            <Axis X="0" Y="54.5" />
          </Image>
          <Visible>(A:Autopilot flight director active, bool)</Visible>
          <Shift>
            <Value Minimum="-20" Maximum="20">(A:Autopilot flight director bank, degrees) (A:Attitude indicator bank degrees:1, degrees) - /-/</Value>
            <Scale X="4" />
          </Shift>
        </Element>
        <Element>
          <Position X="94" Y="-16" />
          <Visible>(A:Autopilot flight director active, bool) (A:Autopilot master, bool)
</Visible>
          <Image Name="fltdir.bmp" Bright="Yes">
            <Axis X="52" Y="11" />
          </Image>
        </Element>
        <Element>
          <Position X="77" Y="-23" />
          <Visible>(A:Autopilot flight director active, bool) (A:Autopilot master, bool)</Visible>
          <Text Bright="Yes" X="36" Y="18" Length="3" Fixed="Yes" Font="Msgothic" Color="#00FD00" Adjust="Center" VerticalAdjust="Center">
            <String>A/P</String>
          </Text>
        </Element>
        <Element>
          <Position X="94" Y="-16" />
          <Visible>(A:Autopilot flight director active, bool) (A:Autopilot master, bool) and 1== (A:HSI GSI needle valid, bool) and 1== (A:HSI has localizer, bool) and 1== (A:Autopilot approach hold, bool) and 1==</Visible>
          <Image Name="fltdir.bmp" Bright="Yes">
            <Axis X="52" Y="11" />
          </Image>
        </Element>
        <Element>
          <Position X="59" Y="-23" />
          <Visible>(A:Autopilot flight director active, bool) (A:Autopilot master, bool) and 1== (A:HSI GSI needle valid, bool) and 1== (A:HSI has localizer, bool) and 1== (A:Autopilot approach hold, bool) and 1==</Visible>
          <Text Bright="Yes" X="73" Y="18" Length="6" Fixed="Yes" Font="Msgothic" Color="#00FD00" Adjust="Center" VerticalAdjust="Center">
            <String>LAND 3</String>
          </Text>
        </Element>
      </Element>
      <Element id="airspeed tape">
        <Position X="12" Y="53" />
        <Element>
          <MaskImage Name="Airspeed_number_strip_mask.bmp" Bright="Yes">
            <Axis X="24" Y="139" />
          </MaskImage>
          <Image Name="Airspeed_number_strip.bmp" Bright="Yes">
            <Nonlinearity>
              <Item Value="30" X="24" Y="1334" />
              <Item Value="610" X="24" Y="0" />
            </Nonlinearity>
          </Image>
          <Shift>
            <Value Minimum="30" Maximum="610">(A:Airspeed select indicated or true, knots)</Value>
          </Shift>
        </Element>
        <Element>
          <MaskImage Name="Airspeed_number_strip5_mask.bmp" Bright="Yes">
            <Axis X="-10" Y="139" />
          </MaskImage>
          <Image Name="airspeed_maximum_bar.bmp" Bright="Yes">
            <Axis X="-57" Y="268" />
          </Image>
          <Shift>
            <Value>(A:Airspeed barber pole, knots) (A:Airspeed select indicated or true, knots) -</Value>
            <Scale Y="-2.30" />
          </Shift>
        </Element>
        <Element>
          <MaskImage Name="Airspeed_number_strip5_mask.bmp" Bright="Yes">
            <Axis X="-10" Y="139" />
          </MaskImage>
          <Image Name="airspeed_minimum_bar.bmp" Bright="Yes">
            <Axis X="-57" Y="0" />
          </Image>
          <Visible>(A:Airspeed select indicated or true, knots) 80 &gt;=</Visible>
          <Shift>
            <Value>(A:Airspeed select indicated or true, knots) (A:Design Speed VS0, knots) - </Value>
            <Scale Y="2.30" />
          </Shift>
        </Element>
        <Element>
          <Position X="-4" Y="119" />
          <Image Name="airspeed_indicator.bmp" Bright="Yes" />
        </Element>
        <Element>
          <Position X="2" Y="132" />
          <Select>
            <Value>(A:Airspeed select indicated or true, knots) 30 max 1000 % 100 / flr</Value>
            <Case Value="0">
              <Image Name="airspeed_numbers_0.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="airspeed_numbers_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="airspeed_numbers_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="airspeed_numbers_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="airspeed_numbers_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="airspeed_numbers_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="airspeed_numbers_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="airspeed_numbers_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="airspeed_numbers_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="airspeed_numbers_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="12" Y="132" />
          <Select>
            <Value>(A:Airspeed select indicated or true, knots) 30 max 100 % 10 / flr</Value>
            <Case Value="0">
              <Image Name="airspeed_numbers_0.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="airspeed_numbers_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="airspeed_numbers_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="airspeed_numbers_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="airspeed_numbers_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="airspeed_numbers_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="airspeed_numbers_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="airspeed_numbers_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="airspeed_numbers_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="airspeed_numbers_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="22" Y="122" />
          <MaskImage Name="Airspeed_strip_ones_mask.bmp" Bright="Yes">
            <Axis X="0" Y="17" />
          </MaskImage>
          <Image Name="Airspeed_number_strip_ones.bmp" Bright="Yes">
            <Nonlinearity>
              <Item Value="0" X="0" Y="177" />
              <Item Value="10" X="0" Y="18" />
            </Nonlinearity>
          </Image>
          <Shift>
            <Value>(A:Airspeed select indicated or true, knots) 30 max 10 %</Value>
          </Shift>
        </Element>
        <Element>
          <Position X="51" Y="140" />
          <Image Name="Airspeed_bug.bmp" Bright="Yes">
            <Axis X="13" Y="8" />
          </Image>
          <Shift>
            <Value Minimum="-60" Maximum="60">(A:Airspeed select indicated or true, knots) (A:Autopilot airspeed hold var, knots) -</Value>
            <Scale Y="2.30" />
          </Shift>
        </Element>
        <Element>
          <Position X="38" Y="-29" />
          <Image Name="mask.bmp" Bright="Yes" />
        </Element>
        <Element>
          <Position X="38" Y="277" />
          <Image Name="mask.bmp" Bright="Yes" />
        </Element>
        <Element>
          <Position X="11" Y="-26" />
          <Select>
            <Value>(A:Autopilot airspeed hold var, knots) 9999 min 30 max 1000 % 100 / flr</Value>
            <Case Value="0">
              <Image Name="airspeed_hold_numbers_0.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="airspeed_hold_numbers_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="airspeed_hold_numbers_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="airspeed_hold_numbers_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="airspeed_hold_numbers_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="airspeed_hold_numbers_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="airspeed_hold_numbers_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="airspeed_hold_numbers_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="airspeed_hold_numbers_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="airspeed_hold_numbers_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="21" Y="-26" />
          <Select>
            <Value>(A:Autopilot airspeed hold var, knots) 9999 min 30 max 100 % 10 / flr</Value>
            <Case Value="0">
              <Image Name="airspeed_hold_numbers_0.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="airspeed_hold_numbers_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="airspeed_hold_numbers_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="airspeed_hold_numbers_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="airspeed_hold_numbers_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="airspeed_hold_numbers_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="airspeed_hold_numbers_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="airspeed_hold_numbers_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="airspeed_hold_numbers_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="airspeed_hold_numbers_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="31" Y="-26" />
          <Select>
            <Value>(A:Autopilot airspeed hold var, knots) 9999 min 30 max 10 % 1 / flr</Value>
            <Case Value="0">
              <Image Name="airspeed_hold_numbers_0.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="airspeed_hold_numbers_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="airspeed_hold_numbers_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="airspeed_hold_numbers_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="airspeed_hold_numbers_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="airspeed_hold_numbers_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="airspeed_hold_numbers_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="airspeed_hold_numbers_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="airspeed_hold_numbers_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="airspeed_hold_numbers_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="9" Y="307" />
          <Visible>(A:Airspeed mach, machs) 0.4 &gt;=</Visible>
          <Image Name="mach_number_dot.bmp" Bright="Yes" />
        </Element>
        <Element>
          <Position X="17" Y="296" />
          <Visible>(A:Airspeed mach, machs) 0.4 &gt;=</Visible>
          <Select>
            <Value>(A:Airspeed mach, machs) 0 max 1 % 0.1 / flr</Value>
            <Case Value="0">
              <Image Name="airspeed_numbers_0.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="airspeed_numbers_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="airspeed_numbers_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="airspeed_numbers_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="airspeed_numbers_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="airspeed_numbers_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="airspeed_numbers_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="airspeed_numbers_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="airspeed_numbers_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="airspeed_numbers_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="27" Y="296" />
          <Visible>(A:Airspeed mach, machs) 0.4 &gt;=</Visible>
          <Select>
            <Value>(A:Airspeed mach, machs) 0 max 0.1 % 0.01 / flr</Value>
            <Case Value="0">
              <Image Name="airspeed_numbers_0.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="airspeed_numbers_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="airspeed_numbers_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="airspeed_numbers_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="airspeed_numbers_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="airspeed_numbers_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="airspeed_numbers_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="airspeed_numbers_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="airspeed_numbers_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="airspeed_numbers_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="37" Y="296" />
          <Visible>(A:Airspeed mach, machs) 0.4 &gt;=</Visible>
          <Select>
            <Value>(A:Airspeed mach, machs) 0 max 0.01 % 0.001 / flr</Value>
            <Case Value="0">
              <Image Name="airspeed_numbers_0.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="airspeed_numbers_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="airspeed_numbers_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="airspeed_numbers_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="airspeed_numbers_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="airspeed_numbers_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="airspeed_numbers_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="airspeed_numbers_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="airspeed_numbers_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="airspeed_numbers_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
      </Element>
      <Element id="altitude tape">
        <Position X="291" Y="53" />
        <Element>
          <Position X="66" Y="44" />
          <Image Name="vertical_speed_background.bmp" Bright="Yes" />
          <Element>
            <Position X="13" Y="0" />
            <Clip Top="97" Left="357" Right="390" Bottom="287" />
            <Image Name="vertical_speed_needle.bmp" Bright="Yes">
              <Axis X="0" Y="1" PointsTo="East" />
            </Image>
            <Rotate>
              <Value Minimum="-60" Maximum="60">(A:Vertical speed, feet per minute) 100 /</Value>
              <Nonlinearity>
                <Item Value="-60" X="45" Y="-100" />
                <Item Value="-20" X="54" Y="-94" />
                <Item Value="-10" X="77" Y="-79" />
                <Item Value="0" X="109" Y="0" />
                <Item Value="10" X="77" Y="79" />
                <Item Value="20" X="54" Y="94" />
                <Item Value="60" X="45" Y="100" />
              </Nonlinearity>
            </Rotate>
            <Shift>
              <Value Minimum="-60" Maximum="60">(A:Vertical speed, feet per minute) 100 /
</Value>
              <Nonlinearity>
                <Item Value="-60" X="13" Y="183" />
                <Item Value="-20" X="13" Y="163" />
                <Item Value="-10" X="13" Y="135" />
                <Item Value="0" X="13" Y="94" />
                <Item Value="10" X="13" Y="55" />
                <Item Value="20" X="13" Y="27" />
                <Item Value="60" X="13" Y="7" />
              </Nonlinearity>
            </Shift>
          </Element>
          <Element>
            <Image Name="vertical_speed_bug.bmp" Bright="Yes">
              <Axis X="0" Y="2" />
            </Image>
            <Visible>(A:Autopilot altitude lock, bool) 1 == (A:Autopilot vertical hold var, feet per minute) abs 6000 &lt;=</Visible>
            <Shift>
              <Value>(A:Autopilot vertical hold var, feet per minute)</Value>
              <Nonlinearity>
                <Item Value="-6000" X="10" Y="183" />
                <Item Value="-2000" X="10" Y="163" />
                <Item Value="-1000" X="10" Y="135" />
                <Item Value="0" X="10" Y="94" />
                <Item Value="1000" X="10" Y="55" />
                <Item Value="2000" X="10" Y="27" />
                <Item Value="6000" X="10" Y="7" />
              </Nonlinearity>
            </Shift>
          </Element>
          <Element>
            <Position X="32" Y="43" />
            <Image Name="vertical_speed_needle_mask.bmp" Bright="Yes" />
          </Element>
        </Element>
        <Element>
          <MaskImage Name="Altitude_number_strip_mask.bmp" Bright="Yes">
            <Axis X="0" Y="138" />
          </MaskImage>
          <Image Name="Altitude_number_strip.bmp" Bright="Yes">
            <Nonlinearity>
              <Item Value="0" X="0" Y="19278" />
              <Item Value="56000" X="0" Y="238" />
            </Nonlinearity>
          </Image>
          <Shift>
            <Value Minimum="-1500" Maximum="56000">(P:Units of measure, enum) 2 == if{ (A:Indicated Altitude, meters) } els{ (A:Indicated Altitude, feet) }</Value>
          </Shift>
        </Element>
        <Element>
          <Position X="0" Y="138.5" />
          <Image Name="Altitude_bug.bmp" Bright="Yes">
            <Axis X="0" Y="20" />
          </Image>
          <Shift>
            <Value Minimum="-410" Maximum="410">(P:Units of measure, enum) 2 == if{ (A:Indicated Altitude, meters) (A:Autopilot altitude lock var, meters)  -  } els{ (A:Indicated Altitude, feet) (A:Autopilot altitude lock var, feet)  -  } </Value>
            <Scale Y="0.34" />
          </Shift>
        </Element>
        <Element>
          <Position X="0" Y="277" />
          <Image Name="mask.bmp" Bright="Yes" />
        </Element>
        <Element>
          <Position X="0" Y="-29" />
          <Image Name="mask.bmp" Bright="Yes" />
        </Element>
        <Element>
          <Position X="3" Y="0" />
          <MaskImage Name="Altitude_number_strip_mask.bmp" Bright="Yes">
            <Axis X="0" Y="0" />
          </MaskImage>
          <Image Name="altitude_lai.bmp" Bright="Yes">
            <Axis X="0" Y="208" />
          </Image>
          <Shift>
            <Value>(P:Units of measure, enum) 2 == if{ (A:Radio height, meters) } els{ (A:Radio height, feet) } 0 max </Value>
            <Scale Y="0.34" />
          </Shift>
          <Visible>(A:Radio height, feet) d 2000 &lt; r 0 &gt; &amp;&amp;</Visible>
        </Element>
        <Element>
          <Position X="14" Y="119" />
          <Image Name="altitude_indicator.bmp" Bright="Yes" />
        </Element>
        <Element>
          <Position X="27" Y="131" />
          <Select>
            <Value>(A:Indicated Altitude, feet) 0 max 100000 % 10000 / flr</Value>
            <Case Value="0">
              <Image Name="altitude_numbers_0.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="airspeed_numbers_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="airspeed_numbers_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="airspeed_numbers_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="airspeed_numbers_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="airspeed_numbers_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="airspeed_numbers_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="airspeed_numbers_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="airspeed_numbers_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="airspeed_numbers_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="37" Y="131" />
          <Select>
            <Value>(A:Indicated Altitude, feet) 0 max 10000 % 1000 / flr</Value>
            <Case Value="0">
              <Image Name="airspeed_numbers_0.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="airspeed_numbers_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="airspeed_numbers_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="airspeed_numbers_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="airspeed_numbers_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="airspeed_numbers_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="airspeed_numbers_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="airspeed_numbers_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="airspeed_numbers_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="airspeed_numbers_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="48" Y="132" />
          <Select>
            <Value>(A:Indicated Altitude, feet) 0 max 1000 % 100 / flr</Value>
            <Case Value="0">
              <Image Name="altitude_numbers_00.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="altitude_numbers_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="altitude_numbers_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="altitude_numbers_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="altitude_numbers_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="altitude_numbers_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="altitude_numbers_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="altitude_numbers_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="altitude_numbers_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="altitude_numbers_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="56" Y="125" />
          <MaskImage Name="Altitude_strip_tens_mask.bmp" Bright="Yes">
            <MaskImage X="0" Y="0" />
          </MaskImage>
          <Image Name="Altitude_strip_tens.bmp" Bright="Yes">
            <Nonlinearity>
              <Item Value="0" X="0" Y="86" />
              <Item Value="100" X="0" Y="12" />
            </Nonlinearity>
          </Image>
          <Shift>
            <Value>(P:Units of measure, enum) 2 == if{ (A:Indicated Altitude, meters) } els{ (A:Indicated Altitude, feet) } 0 max 100 %</Value>
          </Shift>
        </Element>
        <Element>
          <Position X="11" Y="-25" />
          <Select>
            <Value>(A:Autopilot altitude lock var, feet) 0 max 100000 % 10000 / flr</Value>
            <Case Value="0">
              <Image Name="altitude_number_blank.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="airspeed_hold_numbers_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="airspeed_hold_numbers_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="airspeed_hold_numbers_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="airspeed_hold_numbers_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="airspeed_hold_numbers_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="airspeed_hold_numbers_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="airspeed_hold_numbers_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="airspeed_hold_numbers_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="airspeed_hold_numbers_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="21" Y="-25" />
          <Select>
            <Value>(A:Autopilot altitude lock var, feet) 0 max 10000 % 1000 / flr</Value>
            <Case Value="0">
              <Image Name="airspeed_hold_numbers_0.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="airspeed_hold_numbers_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="airspeed_hold_numbers_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="airspeed_hold_numbers_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="airspeed_hold_numbers_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="airspeed_hold_numbers_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="airspeed_hold_numbers_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="airspeed_hold_numbers_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="airspeed_hold_numbers_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="airspeed_hold_numbers_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="31" Y="-23" />
          <Select>
            <Value>(A:Autopilot altitude lock var, feet) 0 max 1000 % 100 / flr</Value>
            <Case Value="0">
              <Image Name="altitude_number_0.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="altitude_number_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="altitude_number_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="altitude_number_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="altitude_number_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="altitude_number_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="altitude_number_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="altitude_number_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="altitude_number_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="altitude_number_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="38" Y="-23" />
          <Image Name="altitude_number_00.bmp" Bright="Yes" />
        </Element>
        <Element>
          <Position X="-7" Y="293" />
          <Image Name="baro_number_dot.bmp" Bright="Yes" />
        </Element>
        <Element>
          <Position X="12" Y="290" />
          <Select>
            <Value>(A:Kohlsman setting hg, inHg) 0 max 100 % 10 / flr</Value>
            <Case Value="0">
              <Image Name="baro_number_0.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="baro_number_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="baro_number_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="baro_number_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="baro_number_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="baro_number_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="baro_number_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="baro_number_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="baro_number_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="baro_number_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="19" Y="290" />
          <Select>
            <Value>(A:Kohlsman setting hg, inHg) 0 max 10 % 1 / flr</Value>
            <Case Value="0">
              <Image Name="baro_number_0.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="baro_number_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="baro_number_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="baro_number_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="baro_number_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="baro_number_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="baro_number_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="baro_number_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="baro_number_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="baro_number_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="33" Y="290" />
          <Select>
            <Value>(A:Kohlsman setting hg, inHg) 0 max 1 % 0.1 / flr</Value>
            <Case Value="0">
              <Image Name="baro_number_0.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="baro_number_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="baro_number_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="baro_number_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="baro_number_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="baro_number_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="baro_number_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="baro_number_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="baro_number_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="baro_number_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="40" Y="290" />
          <Select>
            <Value>(A:Kohlsman setting hg, inHg) 0 max 0.1 % 0.01 / flr</Value>
            <Case Value="0">
              <Image Name="baro_number_0.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="baro_number_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="baro_number_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="baro_number_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="baro_number_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="baro_number_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="baro_number_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="baro_number_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="baro_number_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="baro_number_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="69" Y="21" />
          <Visible>(A:Vertical speed, feet per minute) 400 &gt;=</Visible>
          <Select>
            <Value>(A:Vertical speed, feet per minute) 0 max 10000 % 1000 / flr</Value>
            <Case Value="0">
              <Image Name="altitude_numbers_blank.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="altitude_numbers_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="altitude_numbers_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="altitude_numbers_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="altitude_numbers_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="altitude_numbers_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="altitude_numbers_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="altitude_numbers_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="altitude_numbers_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="altitude_numbers_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="76" Y="21" />
          <Visible>(A:Vertical speed, feet per minute) 400 &gt;=</Visible>
          <Select>
            <Value>(A:Vertical speed, feet per minute) 0 max 1000 % 100 / flr</Value>
            <Case Value="0">
              <Image Name="altitude_numbers_00.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="altitude_numbers_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="altitude_numbers_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="altitude_numbers_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="altitude_numbers_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="altitude_numbers_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="altitude_numbers_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="altitude_numbers_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="altitude_numbers_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="altitude_numbers_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="83" Y="21" />
          <Visible>(A:Vertical speed, feet per minute) 400 &gt;=</Visible>
          <Image Name="altitude_number_000.bmp" Bright="Yes" />
        </Element>
        <Element>
          <Position X="69" Y="246" />
          <Visible>(A:Vertical speed, feet per minute) -400 &lt;=</Visible>
          <Select>
            <Value>(A:Vertical speed, feet per minute) 0 min -10000 % -1000 / flr</Value>
            <Case Value="0">
              <Image Name="altitude_numbers_blank.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="altitude_numbers_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="altitude_numbers_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="altitude_numbers_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="altitude_numbers_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="altitude_numbers_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="altitude_numbers_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="altitude_numbers_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="altitude_numbers_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="altitude_numbers_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="76" Y="246" />
          <Visible>(A:Vertical speed, feet per minute) -400 &lt;=</Visible>
          <Select>
            <Value>(A:Vertical speed, feet per minute) 0 min -1000 % -100 / flr</Value>
            <Case Value="0">
              <Image Name="altitude_numbers_00.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="altitude_numbers_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="altitude_numbers_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="altitude_numbers_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="altitude_numbers_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="altitude_numbers_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="altitude_numbers_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="altitude_numbers_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="altitude_numbers_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="altitude_numbers_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="83" Y="246" />
          <Visible>(A:Vertical speed, feet per minute) -400 &lt;=</Visible>
          <Image Name="altitude_number_000.bmp" Bright="Yes" />
        </Element>
        <Element>
          <Position X="-141" Y="213" />
          <Visible>(A:Radio height, feet) 2500 &lt;=</Visible>
          <Image Name="radioheight_background.bmp" Bright="Yes" />
        </Element>
        <Element>
          <Position X="-137" Y="215" />
          <Visible>(A:Radio height, feet) 1000 &gt;= (A:Radio height, feet) 2500 &lt;=</Visible>
          <Select>
            <Value>(A:Radio height, feet) 0 max 10000 % 1000 / flr</Value>
            <Case Value="1">
              <Image Name="airspeed_numbers_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="airspeed_numbers_2.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="-127" Y="215" />
          <Visible>(A:Radio height, feet) 1000 &gt;= (A:Radio height, feet) 2500 &lt;=</Visible>
          <Select>
            <Value>(A:Radio height, feet) 0 max 1000 % 100 / flr</Value>
            <Case Value="0">
              <Image Name="airspeed_numbers_0.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="airspeed_numbers_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="airspeed_numbers_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="airspeed_numbers_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="airspeed_numbers_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="airspeed_numbers_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="airspeed_numbers_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="airspeed_numbers_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="airspeed_numbers_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="airspeed_numbers_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="-117" Y="215" />
          <Visible>(A:Radio height, feet) 1000 &gt;= (A:Radio height, feet) 2500 &lt;=</Visible>
          <Select>
            <Value>(A:Radio height, feet) 0 max 100 % 10 / flr</Value>
            <Case Value="0">
              <Image Name="airspeed_numbers_0.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="airspeed_numbers_0.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="airspeed_numbers_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="airspeed_numbers_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="airspeed_numbers_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="airspeed_numbers_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="airspeed_numbers_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="airspeed_numbers_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="airspeed_numbers_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="airspeed_numbers_8.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="-107" Y="215" />
          <Visible>(A:Radio height, feet) 1000 &gt;= (A:Radio height, feet) 2500 &lt;=</Visible>
          <Image Name="airspeed_numbers_0.bmp" Bright="Yes" />
        </Element>
        <Element>
          <Position X="-141" Y="213" />
          <Visible>(A:Radio height, feet) 1000 &lt;=</Visible>
          <Image Name="radioheight_background.bmp" Bright="Yes" />
        </Element>
        <Element>
          <Position X="-131" Y="215" />
          <Visible>(A:Radio height, feet) 100 &gt; (A:Radio height, feet) 1000 &lt;</Visible>
          <Select>
            <Value>(A:Radio height, feet) 0 max 1000 % 100 / flr</Value>
            <Case Value="0">
              <Image Name="airspeed_numbers_0.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="airspeed_numbers_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="airspeed_numbers_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="airspeed_numbers_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="airspeed_numbers_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="airspeed_numbers_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="airspeed_numbers_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="airspeed_numbers_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="airspeed_numbers_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="airspeed_numbers_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="-121" Y="215" />
          <Visible>(A:Radio height, feet) 100 &gt; (A:Radio height, feet) 1000 &lt;</Visible>
          <Select>
            <Value>(A:Radio height, feet) 0 max 100 % 10 / flr</Value>
            <Case Value="0">
              <Image Name="airspeed_numbers_0.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="airspeed_numbers_0.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="airspeed_numbers_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="airspeed_numbers_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="airspeed_numbers_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="airspeed_numbers_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="airspeed_numbers_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="airspeed_numbers_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="airspeed_numbers_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="airspeed_numbers_8.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="-111" Y="215" />
          <Visible>(A:Radio height, feet) 100 &gt; (A:Radio height, feet) 1000 &lt;</Visible>
          <Image Name="airspeed_numbers_0.bmp" Bright="Yes" />
        </Element>
        <Element>
          <Position X="-141" Y="213" />
          <Visible>(A:Radio height, feet) 100 &lt;=</Visible>
          <Image Name="radioheight_background.bmp" Bright="Yes" />
        </Element>
        <Element>
          <Position X="-127" Y="215" />
          <Visible>(A:Radio height, feet) 100 &lt;=</Visible>
          <Select>
            <Value>(A:Radio height, feet) 0 max 100 % 10 / flr</Value>
            <Case Value="0">
              <Image Name="airspeed_numbers_0.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="airspeed_numbers_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="airspeed_numbers_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="airspeed_numbers_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="airspeed_numbers_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="airspeed_numbers_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="airspeed_numbers_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="airspeed_numbers_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="airspeed_numbers_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="airspeed_numbers_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="-117" Y="215" />
          <Visible>(A:Radio height, feet) 100 &lt;=</Visible>
          <Select>
            <Value>(A:Radio height, feet) 0 max 10 % 1 / flr</Value>
            <Case Value="0">
              <Image Name="airspeed_numbers_0.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="airspeed_numbers_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="airspeed_numbers_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="airspeed_numbers_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="airspeed_numbers_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="airspeed_numbers_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="airspeed_numbers_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="airspeed_numbers_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="airspeed_numbers_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="airspeed_numbers_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
      </Element>
      <Element id="heading plate">
        <Element>
          <Position X="175" Y="464" />
          <Clip Top="336" Left="71" Right="278" Bottom="393" />
          <Image Name="pfd_heading_card.bmp" Bright="Yes">
            <Axis X="128" Y="128" />
          </Image>
          <Rotate>
            <Value>(A:PLANE HEADING DEGREES MAGNETIC, radians) /-/</Value>
          </Rotate>
        </Element>
        <Element>
          <Position X="175" Y="464" />
          <Image Name="pfd_heading_card_bug.bmp" Bright="Yes">
            <Axis X="9" Y="133" />
          </Image>
          <Value>(A:PLANE HEADING DEGREES MAGNETIC, radians) /-/</Value>
          <Rotate>
            <Value>
									(A:PARTIAL PANEL HEADING,bool) (A:PARTIAL PANEL ELECTRICAL,bool) or 0 ==
									if{ 
										(A:Autopilot heading lock dir,degrees) (A:Plane heading degrees magnetic,degrees) - 360 + 360 % s0
										180 &gt;
										if{ l0 313 &lt; if{ 313 } els{ l0 } }
										els{ l0 47 &gt; if{ 47 } els{ l0 } }
										dgrd
									}
									els{ 0 }
								</Value>
          </Rotate>
        </Element>
        <Element>
          <Position X="167" Y="326" />
          <Image Name="pfd_heading_card_pointer.bmp" Bright="Yes">
            <Axis X="0" Y="0" />
          </Image>
        </Element>
        <Element>
          <Position X="195" Y="377" />
          <Image Name="pfd_heading_card_mag.bmp" Bright="Yes" />
        </Element>
        <Element>
          <Position X="131" Y="375" />
          <Select>
            <Value>(A:Autopilot heading lock dir, degrees) 0 max 1000 % 100 / flr</Value>
            <Case Value="0">
              <Image Name="altitude_number_0.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="altitude_number_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="altitude_number_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="altitude_number_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="altitude_number_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="altitude_number_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="altitude_number_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="altitude_number_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="altitude_number_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="altitude_number_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="138" Y="375" />
          <Select>
            <Value>(A:Autopilot heading lock dir, degrees) 0 max 100 % 10 / flr</Value>
            <Case Value="0">
              <Image Name="altitude_number_0.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="altitude_number_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="altitude_number_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="altitude_number_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="altitude_number_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="altitude_number_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="altitude_number_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="altitude_number_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="altitude_number_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="altitude_number_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="145" Y="375" />
          <Select>
            <Value>(A:Autopilot heading lock dir, degrees) 0 max 10 % 1 / flr</Value>
            <Case Value="0">
              <Image Name="altitude_number_0.bmp" Bright="Yes" />
            </Case>
            <Case Value="1">
              <Image Name="altitude_number_1.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="altitude_number_2.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="altitude_number_3.bmp" Bright="Yes" />
            </Case>
            <Case Value="4">
              <Image Name="altitude_number_4.bmp" Bright="Yes" />
            </Case>
            <Case Value="5">
              <Image Name="altitude_number_5.bmp" Bright="Yes" />
            </Case>
            <Case Value="6">
              <Image Name="altitude_number_6.bmp" Bright="Yes" />
            </Case>
            <Case Value="7">
              <Image Name="altitude_number_7.bmp" Bright="Yes" />
            </Case>
            <Case Value="8">
              <Image Name="altitude_number_8.bmp" Bright="Yes" />
            </Case>
            <Case Value="9">
              <Image Name="altitude_number_9.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
        <Element>
          <Position X="175" Y="464" />
          <Clip Top="336" Left="71" Right="278" Bottom="393" />
          <Image Name="pfd_trk_bar.bmp" Bright="Yes">
            <Axis X="4" Y="125" />
          </Image>
          <Rotate>
            <Value>(A:GPS GROUND MAGNETIC TRACK, radians) (A:PLANE HEADING DEGREES MAGNETIC, radians) -</Value>
          </Rotate>
        </Element>
        <Element>
          <Position X="58" Y="392" />
          <Image Name="pfd_heading_card_mask.bmp" Bright="Yes" />
        </Element>
        <Element>
          <Position X="155" Y="378" />
          <Image Name="heading_h.bmp" Bright="Yes" />
        </Element>
      </Element>
      <Element id="AP indicator">
        <Position X="235" Y="38" />
        <Element>
          <Position X="20" Y="26" />
        </Element>
        <Element>
          <Position X="-149" Y="21" />
          <Text Bright="Yes" X="70" Y="10" Fixed="Yes" Font="Msgothic" Color="#EEEEEE" Adjust="Center" VerticalAdjust="Center" Length="10">
            <String>%((A:GPS drives nav1, bool))%{if}GPS%{else}DME%{end} %((A:HSI distance, nmiles) s1 0 &gt;=)%{if}%(l1 100 &gt;=)%{if}%(l1)%!d!%{else}%(l1)%!0.1f!%{end}%{else}----%{end}</String>
          </Text>
        </Element>
        <Element>
          <Position X="-149" Y="7" />
          <Text Bright="Yes" X="80" Y="10" Fixed="Yes" Font="Msgothic" Color="#EEEEEE" Adjust="Center" VerticalAdjust="Center" Length="12">
            <String>%((A:GPS drives nav1, bool))%{if}GPS%{else}%((A:Nav1 ident, string))%!s!%{end}/%((A:NAV1 OBS,degrees))%!3d!°</String>
          </Text>
        </Element>
      </Element>
      <Element id="AP indicator 2">
        <Position X="63" Y="8" />
        <Element>
          <Image Name="indicator_back.bmp" Bright="Yes" />
        </Element>
        <Element>
          <Position X="96" Y="1" />
          <Visible>(A:Autopilot nav1 lock, bool)</Visible>
          <Text Bright="Yes" X="35" Y="14" Length="4" Fixed="Yes" Font="Msgothic" Color="#00FD00" Adjust="Center" VerticalAdjust="Center">
            <String>LNAV</String>
          </Text>
        </Element>
        <Element>
          <Position X="177" Y="1" />
          <Visible>(A:Autopilot altitude lock, bool)</Visible>
          <Text Bright="Yes" X="28" Y="14" Length="3" Fixed="Yes" Font="Msgothic" Color="#00FD00" Adjust="Center" VerticalAdjust="Center">
            <String>ALT
</String>
          </Text>
        </Element>
        <Element>
          <Position X="19" Y="1" />
          <Visible>(A:Autopilot airspeed hold, bool)</Visible>
          <Text Bright="Yes" X="27" Y="14" Length="3" Fixed="Yes" Font="Msgothic" Color="#00FD00" Adjust="Center" VerticalAdjust="Center">
            <String>SPD</String>
          </Text>
        </Element>
        <Element>
          <Position X="79" Y="1" />
          <Visible>(A:Autopilot heading lock, bool)</Visible>
          <Text Bright="Yes" X="67" Y="14" Length="7" Fixed="Yes" Font="Msgothic" Color="#00FD00" Adjust="Center" VerticalAdjust="Center">
            <String>HDG SEL
</String>
          </Text>
        </Element>
        <Element>
          <Position X="102" Y="15" />
          <Visible>(A:HSI has localizer, bool) 0 == (A:Autopilot approach hold, bool) and 1==</Visible>
          <Text Bright="Yes" X="25" Y="10" Length="3" Fixed="Yes" Font="Msgothic" Color="#EEEEEE" Adjust="Center" VerticalAdjust="Center">
            <String>LOC</String>
          </Text>
        </Element>
        <Element>
          <Position X="177" Y="15" />
          <Visible>(A:Autopilot altitude lock, bool) (A:Autopilot approach hold, bool) and 1==</Visible>
          <Text Bright="Yes" X="25" Y="10" Length="3" Fixed="Yes" Font="Msgothic" Color="#EEEEEE" Adjust="Center" VerticalAdjust="Center">
            <String>G/S</String>
          </Text>
        </Element>
        <Element>
          <Position X="17" Y="1" />
          <Visible>(A:Autopilot mach hold, bool)</Visible>
          <Text Bright="Yes" X="27" Y="14" Length="3" Fixed="Yes" Font="Msgothic" Color="#00FD00" Adjust="Center" VerticalAdjust="Center">
            <String>SPD</String>
          </Text>
        </Element>
        <Element>
          <Position X="177" Y="1" />
          <Visible>(A:Autopilot altitude lock, bool) 0 == (A:Autopilot approach hold, bool) and 1== (A:HSI GSI needle valid, bool) and 1==</Visible>
          <Text Bright="Yes" X="28" Y="14" Length="3" Fixed="Yes" Font="Msgothic" Color="#00FD00" Adjust="Center" VerticalAdjust="Center">
            <String>G/S
</String>
          </Text>
        </Element>
        <Element>
          <Position X="99" Y="1" />
          <Visible>(A:Autopilot heading lock, bool) 0 == (A:Autopilot approach hold, bool) (A:HSI has localizer, bool) and 1==</Visible>
          <Text Bright="Yes" X="31" Y="14" Length="3" Fixed="Yes" Font="Msgothic" Color="#00FD00" Adjust="Center" VerticalAdjust="Center">
            <String>LOC</String>
          </Text>
        </Element>
      </Element>
      <Element id="HSI">
        <Element>
          <Position X="277" Y="192" />
          <Visible>(A:HSI GSI needle valid, bool)</Visible>
          <Element>
            <Image Name="pfd_gs_needle_filled.bmp" Bright="Yes">
              <Axis X="6" Y="9" />
            </Image>
            <Shift>
              <Value Minimum="-1" Maximum="1">(A:HSI GSI needle, number) 120 /</Value>
              <Nonlinearity>
                <Item Value="-1" X="0" Y="-55" />
                <Item Value="0" X="0" Y="0" />
                <Item Value="1" X="0" Y="55" />
              </Nonlinearity>
            </Shift>
          </Element>
          <Element>
            <Image Name="pfd_glideslope_background.bmp" Bright="Yes">
              <Axis X="7" Y="58.5" />
            </Image>
          </Element>
        </Element>
        <Element>
          <Position X="175.5" Y="297" />
          <Visible>(A:HSI has localizer, bool)</Visible>
          <Element>
            <Image Name="pfd_localizer_needle_filled.bmp" Bright="Yes">
              <Axis X="9" Y="6" />
            </Image>
            <Shift>
              <Value Minimum="-1" Maximum="1">(A:HSI CDI needle, number) 127 / </Value>
              <Nonlinearity>
                <Item Value="-1" X="-56" Y="0" />
                <Item Value="0" X="0" Y="0" />
                <Item Value="1" X="56" Y="0" />
              </Nonlinearity>
            </Shift>
          </Element>
          <Element>
            <Image Name="pfd_localizer_background.bmp" Bright="Yes">
              <Axis X="59" Y="8" />
            </Image>
          </Element>
        </Element>
      </Element>
      <Element id="marker">
        <Position X="241" Y="98" />
        <Element>
          <Select>
            <Value>(A:Marker beacon state, enum)</Value>
            <Case Value="1">
              <Image Name="pfd_omi_o.bmp" Bright="Yes" />
            </Case>
            <Case Value="2">
              <Image Name="pfd_omi_m.bmp" Bright="Yes" />
            </Case>
            <Case Value="3">
              <Image Name="pfd_omi_i.bmp" Bright="Yes" />
            </Case>
          </Select>
        </Element>
      </Element>
    </Element>
  </Element>
  <Mouse>
    <Help ID="HELPID_GAUGE_PFD" />
  </Mouse>
</Gauge>