<Gauge Name="MFD" Version="1.0" Author="Ken Mitchell">
      <Size X="355" Y="339"/>

<Element>
   <Position X="0" Y="0"/>
   <Container/>
   <Update Frequency="6"/>
   <Element>
      <Size X="355" Y="339"/>
      <Visible>(A:Circuit general panel on, bool)</Visible>

         <!--  ILS -->
         <Element>
            <Visible>(L:MFD SWITCH, enum) 0 ==</Visible>
            <Position X="0" Y="0"/>
            <Element>
               <Position X="179" Y="161"/>
               <Clip/>
               <Image Name="ND_ILS_ROSE.bmp" Bright="Yes" ImageSizes="280,280">
                  <Axis X="140" Y="140"/>
               </Image>
               <Rotate>
                  <Value>(A:Plane heading degrees gyro, radians) /-/</Value>
               </Rotate>
            </Element>

            <Element>
               <Position X="180" Y="161"/>
               <Image Name="ND_ILS_MARKERS.bmp" Bright="Yes" ImageSizes="170,170">
                  <Axis X="85" Y="85"/>
               </Image>
            </Element>

            <Element>
               <Position X="180" Y="161"/>
               <Image Name="ND_ILS_ADF.bmp" Bright="Yes">
                  <Axis X="12.5" Y="136.5"/>
               </Image>
               <Rotate>
                  <Value>(A:ADF1 radial, radians)</Value>
               </Rotate>
            </Element>


            <Element>
               <Position X="179" Y="161"/>
               <Image Name="ND_HDG_BUG.bmp" Bright="Yes" ImageSizes="30,17">
                  <Axis X="15" Y="140"/>
               </Image>
               <Rotate>
                  <Value>(A:Autopilot heading lock dir, radians) (A:Plane heading degrees gyro, radians) -</Value>
               </Rotate>
            </Element>

            <Element>
             <Position X="179" Y="161"/>
               <Image Name="ND_VOR1_ARROW.bmp" Bright="Yes" ImageSizes="27,273">
                  <Axis X="13" Y="136.5"/>
               </Image>
               <Rotate>
                  <Value>(A:NAV1 OBS, radians) (A:Plane heading degrees gyro, radians) -</Value>
               </Rotate>
            </Element>
            <Element>
           <Position X="179" Y="161"/>
               <Select>
                  <Value>(A:HSI has localizer, bool) 0 !=</Value>
                  <Case Value="1">
                     <Image Name="ND_CDI_NEEDLE.bmp" Bright="Yes" ImageSizes="6,148">
                        <Axis X="3" Y="74"/>
                     </Image>
                  </Case>
               </Select>
               <Shift>
                  <Value>(A:HSI CDI needle valid,bool) if{ (A:HSI CDI needle,number)  } els{ 0 }</Value>
                  <Scale X="0.50"><!--30/127 == 0.32--></Scale>
               </Shift>
               <Rotate>
                  <Value>(A:NAV1 OBS, radians) (A:Plane heading degrees gyro, radians) -</Value>
               </Rotate>
               <Clip/>
            </Element>


         <Element>
            <Position X="179" Y="161"/>
            <Visible>(A:HSI GSI needle valid, bool)</Visible>
            <Element>
               <Image Name="ND_GLIDESLOPE.bmp" Bright="Yes" ImageSizes="148,6">
                  <Axis X="74" Y="3"/>
               </Image>
               <Shift>
                  <Value>(A:HSI GSI needle, number)</Value>
                  <Scale Y="0.50"/>
               </Shift>
               <Rotate>
                  <Value>(A:NAV1 OBS, radians) (A:Plane heading degrees gyro, radians) -</Value>
               </Rotate>
            </Element>
         </Element>
         </Element>

         <!--  VOR -->
         <Element>
            <Visible>(L:MFD SWITCH, enum) 1 ==</Visible>
            <Position X="0" Y="0"/>
            <Element>
               <Position X="179" Y="161"/>
               <Clip/>
               <Image Name="ND_VOR_ROSE.bmp" Bright="Yes" ImageSizes="280,280">
                  <Axis X="140" Y="140"/>
               </Image>
               <Rotate>
                  <Value>(A:Plane heading degrees gyro, radians) /-/</Value>
               </Rotate>
            </Element>

            <Element>
               <Position X="179" Y="161"/>
               <Image Name="ND_VOR2_ARROW.bmp" Bright="Yes" ImageSizes="26,273">
                  <Axis X="13" Y="136.5"/>
               </Image>
               <Rotate>
                  <Value>(A:NAV2 radial, radians) (A:Plane heading degrees gyro, radians) - pi  +</Value>
               </Rotate>
            </Element>
            <Element>
               <Position X="179" Y="161"/>
               <Image Name="ND_HDG_BUG.bmp" Bright="Yes" ImageSizes="30,17">
                  <Axis X="15" Y="140"/>
               </Image>
               <Rotate>
                  <Value>(A:Autopilot heading lock dir, radians) (A:Plane heading degrees gyro, radians) -</Value>
               </Rotate>
            </Element>

            <Element>
               <Position X="179" Y="161"/>
               <Image Name="ND_VOR1_ARROW.bmp" Bright="Yes" ImageSizes="27,273">
                  <Axis X="13" Y="136.5"/>
               </Image>
               <Rotate>
                  <Value>(A:NAV1 radial, radians) (A:Plane heading degrees gyro, radians) - pi  +</Value>
               </Rotate>
            </Element>


            <Element>
               <Position X="179" Y="161"/>
               <Image Name="nd_hsi_plane.bmp" Bright="Yes" ImageSizes="35,33">
                  <Axis X="17.5" Y="16.5"/>
               </Image>
            </Element>


         </Element>

         <!--  NAV -->
         <Element>
            <Visible>(L:MFD SWITCH, enum) 2 ==</Visible>
            <Position X="0" Y="0"/>
            <Element>
               <Position X="181" Y="171.5"/>
               <Clip/>
               <Image Name="nd_hsi_card.bmp" Bright="Yes" ImageSizes="258,258">
                  <Axis X="129" Y="129"/>
               </Image>
               <Rotate>
                  <Value>(A:Plane heading degrees gyro, radians) /-/</Value>
               </Rotate>
            </Element>
            <Element>
               <Position X="181" Y="171.5"/>
               <Image Name="nd_hsi_adf_needle.bmp" Bright="Yes" ImageSizes="21,228">
                  <Axis X="10" Y="114"/>
               </Image>
               <Rotate>
                  <Value>(A:ADF1 radial, radians)</Value>
               </Rotate>
            </Element>
            <Element>
               <Position X="181" Y="171.5"/>
               <Image Name="nd_hsi_vor2_needle.bmp" Bright="Yes" ImageSizes="27,228">
                  <Axis X="13" Y="114"/>
               </Image>
               <Rotate>
                  <Value>(A:NAV2 radial, radians) (A:Plane heading degrees gyro, radians) - pi  +</Value>
               </Rotate>
            </Element>
            <Element>
               <Position X="181" Y="171.5"/>
               <Image Name="nd_hsi_heading_bug.bmp" Bright="Yes" ImageSizes="30,17">
                  <Axis X="15" Y="119"/>
               </Image>
               <Rotate>
                  <Value>(A:Autopilot heading lock dir, radians) (A:Plane heading degrees gyro, radians) -</Value>
               </Rotate>
            </Element>
            <Element>
               <Position X="181" Y="171.5"/>
               <Image Name="nd_hsi_vor1_needle.bmp" Bright="Yes" ImageSizes="111,200">
                  <Axis X="55.5" Y="100"/>
               </Image>
               <Rotate>
                  <Value>(A:NAV1 OBS, radians) (A:Plane heading degrees gyro, radians) -</Value>
               </Rotate>
            </Element>
            <Element>
               <Position X="181" Y="171.5"/>
               <Select>
                  <Value>(A:HSI has localizer, bool) 0 !=</Value>
                  <Case Value="0">
                     <Image Name="nd_hsi_cdi_hollow.bmp" Bright="Yes" ImageSizes="11,106">
                        <Axis X="5" Y="53"/>
                     </Image>
                  </Case>
                  <Case Value="1">
                     <Image Name="nd_hsi_cdi_filled.bmp" Bright="Yes" ImageSizes="8,106">
                        <Axis X="4" Y="53"/>
                     </Image>
                  </Case>
               </Select>
               <Shift>
                  <Value>(A:HSI CDI needle valid,bool) if{ (A:HSI CDI needle,number)  } els{ 0 }</Value>
                  <Scale X="0.32"><!--30/127 == 0.32--></Scale>
               </Shift>
               <Rotate>
                  <Value>(A:NAV1 OBS, radians) (A:Plane heading degrees gyro, radians) -</Value>
               </Rotate>
               <Clip/>
            </Element>
            <Element>
               <Position X="181" Y="171.5"/>
               <Image Name="nd_hsi_plane.bmp" Bright="Yes" ImageSizes="35,33">
                  <Axis X="17.5" Y="16.5"/>
               </Image>
            </Element>

         <Element>
            <Position X="181" Y="171.5"/>
            <Visible>(A:HSI GSI needle valid, bool)</Visible>
            <Image Name="nd_glideslope_bg.bmp" Bright="Yes" ImageSizes="19,123">
               <Axis X="9.5" Y="61.5"/>
            </Image>
            <Element>
               <Image Name="nd_glideslope_filled.bmp" Bright="Yes" ImageSizes="106,8">
                  <Axis X="53" Y="4"/>
               </Image>
               <Shift>
                  <Value>(A:HSI GSI needle, number)</Value>
                  <Scale Y="0.58"/>
               </Shift>
            </Element>
         </Element>
         </Element>

         <!-- ARC -->

         <Element>
            <Visible>(L:MFD SWITCH, enum) 3 ==</Visible>
            <Element>
               <Position X="181" Y="290"/>
               <Image Name="nd2_expanded_rose2.bmp" Bright="Yes" ImageSizes="550,550">
                  <Axis X="275" Y="275"/>
               </Image>
               <Rotate>
                  <Value>(A:Plane heading degrees gyro, radians) /-/</Value>
               </Rotate>
               <Clip Left="20" Right="345" Top="10" Bottom="270"/>
            </Element>
            <Element>
               <Visible>(A:Nav2 has nav, bool) 1</Visible>
               <Position X="181" Y="290"/>
               <Image Name="nd2_vor_arrow.bmp" Bright="Yes" PointsTo="West" ImageSizes="50,424">
                  <Axis X="25" Y="212"/>
               </Image>
               <Rotate>
                  <Value>(A:NAV2 radial, radians) (A:Plane heading degrees gyro, radians) - pi +</Value>
               </Rotate>
               <Clip Left="20" Right="345" Top="10" Bottom="270"/>
            </Element>
            <Element>
               <Visible>(A:ADF1 signal, number) 0 &gt;</Visible>
               <Position X="181" Y="290"/>
               <Image Name="nd2_adf_arrow.bmp" Bright="Yes" PointsTo="West" ImageSizes="30,424">
                  <Axis X="15" Y="212"/>
               </Image>
               <Rotate>
                  <Value>(A:ADF1 radial, radians)</Value>
               </Rotate>
               <Clip Left="20" Right="345" Top="10" Bottom="270"/>
            </Element>
            <Element>
               <Position X="181" Y="290"/>
               <Image Name="ND2_Staple_Track.bmp" Bright="Yes" ImageSizes="71,521">
                  <Axis X="35.5" Y="276"/>
               </Image>
               <Rotate>
                  <Value>(A:Autopilot heading lock dir, radians) (A:Plane heading degrees gyro, radians) -</Value>
               </Rotate>
               <Clip Left="20" Right="345" Top="10" Bottom="270"/>
            </Element>
            <Element>
               <Visible>(A:HSI CDI needle valid, bool)</Visible>
               <Clip/>
               <Position X="181" Y="290"/>
               <Image Name="nd2_horizontal_gs.bmp" Bright="Yes" ImageSizes="235,424">
                  <Axis X="117.5" Y="212"/>
               </Image>
               <Rotate>
                  <Value>(A:NAV1 OBS, radians) (A:Plane heading degrees gyro, radians) -</Value>
               </Rotate>
               <Clip Left="20" Right="345" Top="10" Bottom="300"/>
            </Element>
            <Element>
               <Visible>(A:HSI CDI needle valid, bool)</Visible>
               <Position X="181" Y="290"/>
               <Select>
                  <Value>(A:HSI has localizer, bool) 0 !=</Value>
                  <Case Value="0">
                     <Image Name="nd_hsi_cdi_hollow.bmp" Bright="Yes" ImageSizes="11,106">
                        <Axis X="5.5" Y="53"/>
                     </Image>
                  </Case>
                  <Case Value="1">
                     <Image Name="nd2_hsi_cdi_filled.bmp" Bright="Yes" ImageSizes="8,106">
                        <Axis X="4" Y="53"/>
                     </Image>
                  </Case>
               </Select>
               <Shift>
                  <Value>(A:HSI CDI needle valid,bool) if{ (A:HSI CDI needle,number)  } els{ 0 }</Value>
                  <Scale X="0.64"><!--31/127 == 0.64--></Scale>
               </Shift>
               <Rotate>
                  <Value>(A:NAV1 OBS, radians) (A:Plane heading degrees gyro, radians) -</Value>
               </Rotate>
               <Clip Left="20" Right="345" Top="10" Bottom="300"/>
            </Element>
            <Element>
               <Position X="181" Y="290"/>
               <Image Name="nd2_track.bmp" Bright="Yes" ImageSizes="21,424">
                  <Axis X="10.5" Y="212"/>
               </Image>
               <Rotate>
                  <Value>(A:Velocity world X, m/s) (A:Velocity world Z, m/s) atg2 (A:Magvar, radians) - (A:Plane heading degrees gyro, radians) - </Value>
               </Rotate>
               <Clip Left="20" Right="345" Top="10" Bottom="270"/>
            </Element>
            <Element>
               <Position X="181" Y="290"/>
               <Image Name="nd2_Ownship.bmp" Bright="Yes" ImageSizes="48,48">
                  <Axis X="24" Y="24"/>
               </Image>
            </Element>
            <Element>
               <Position X="181" Y="290"/>
               <Visible>(A:HSI GSI needle valid, bool)</Visible>
               <Image Name="nd2_vertical_gs.bmp" Bright="Yes" ImageSizes="29,235">
                  <Axis X="14.5" Y="117.5"/>
               </Image>
               <Element>
                  <Image Name="nd2_ILS_pointer.bmp" Bright="Yes" ImageSizes="200,20">
                     <Axis X="100" Y="10"/>
                  </Image>
                  <Shift>
                     <Value>(A:HSI GSI needle, number)</Value>
                     <Scale Y="1.2"/>
                  </Shift>
                  <Clip Left="20" Right="345" Top="10" Bottom="300"/>
               </Element>
            </Element>
            </Element>

        <!--  PLAN -->
             <Macro Name="c">C:fs9gps</Macro> 
               <Element>
            <Visible>(L:MFD SWITCH, enum) 4 ==</Visible>




            <Element Name="MapView Pages">
               <Position X="10" Y="10"/>
               <CustomDraw Name="fs9gps:map" X="326" Y="313" 
		FlightPlanLineWidth="2" Bright="Yes" 
		ActiveColorLayerFlightPlan="0xff00ff"
		PastColorLayerFlightPlan="0x009900"
		ColorLayerFlightPlan="0x990099"
		ColorLayerAirports="0xffffff"
		ColorLayerVORs="0x00FF00"
		ColorLayerNDBs="0x00FF00"
		ColorLayerIntersections="0x00FF00" 
		CenterX="169" CenterY="249"> 
                <Zoom>592640 296320 148160 74080 37040 18520 6 (L:ND_ZOOM,number) case</Zoom>
                <Latitude>(A:GPS POSITION LAT, Radians)</Latitude>
		<Longitude>(A:GPS POSITION LON, Radians)</Longitude>
		<Heading>(A:GPS GROUND TRUE TRACK, Radians)</Heading>
		<DetailLayerTerrain>1</DetailLayerTerrain>
		<LayerFlightPlan>(L:ND_CRS, bool)</LayerFlightPlan>
		<LayerAirports>(L:ND_AIRPORT, bool)</LayerAirports>
		<LayerVORs>(L:ND_VOR, bool)</LayerVORs>
		<LayerNDBs>(L:ND_NDB, bool)</LayerNDBs>
		<LayerIntersections>(L:ND_WPT, bool)</LayerIntersections>
		<ObjectDetailLayerAirports>0x4F</ObjectDetailLayerAirports>
		<TextDetailLayerAirports>(L:ND_AIRPORT, bool)</TextDetailLayerAirports>
		<TextDetailLayerVORs>(L:ND_VOR, bool)</TextDetailLayerVORs>
		<TextDetailLayerNDBs>(L:ND_NDB, bool)</TextDetailLayerNDBs>
		<TextDetailLayerIntersections>(L:ND_WPT, bool)</TextDetailLayerIntersections>
		<ObjectDetailLayerFlightPlan>0xF</ObjectDetailLayerFlightPlan>
		<TrackUp>1</TrackUp>
		</CustomDraw>
                <Clip Top="40" Bottom="284" />

         </Element>
            <Element>
               <Position X="179" Y="259"/>
               <Clip/>
               <Image Name="MAP_ROSE.bmp" Bright="Yes">
                  <Axis X="238" Y="238"/>
               </Image>
               <Rotate>
                  <Value>(A:Plane heading degrees gyro, radians) /-/</Value>
               </Rotate>
            </Element>

            <Element>
               <Position X="179" Y="259"/>
               <Image Name="nd_hsi_plane.bmp" Bright="Yes" ImageSizes="35,33">
                  <Axis X="17.5" Y="16.5"/>
               </Image>
            </Element>
            <Element>
               <Position X="179" Y="259"/>
               <Image Name="ND_HDG_BUG.bmp" Bright="Yes" ImageSizes="30,17">
                  <Axis X="15" Y="238"/>
               </Image>
               <Rotate>
                  <Value>(A:Autopilot heading lock dir, radians) (A:Plane heading degrees gyro, radians) -</Value>
               </Rotate>
               <Clip/>
            </Element>

      <Element>
         <Position X="179" Y="290"/>
         <Text X="60" Y="14" Bright="Yes" Length="5"  Font="Arial" Color="White" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="No">
                  <Axis X="30" Y="0"/>
            <String>RANGE</String>
         </Text>
      </Element>

      <Element>
         <Position X="179" Y="304"/>
         <Text X="50" Y="14" Bright="Yes" Length="6"  Font="Arial" Color="White" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="No">
                  <Axis X="25" Y="0"/>
            <String>%((L:ND_ZOOM,number) 0 == if{ '10 NM' } (L:ND_ZOOM,number) 1 == if{ '20 NM' } (L:ND_ZOOM,number) 2 == if{ '40 NM' } (L:ND_ZOOM,number) 3 == if{ '80 NM' } (L:ND_ZOOM,number) 4 == if{ '160 NM' } (L:ND_ZOOM,number) 5 == if{ '320 NM' }  )%!s!</String>
         </Text>
      </Element>
         </Element>



         <!--  TEXT -->

        <Element>
            <Position X="0" Y="0"/>
         <Image Name="nd_background_overlay.bmp" Bright="Yes" ImageSizes="355,339"/>
         <!--  TEXT -->
         <Element>
            <Position X="159" Y="0"/>
            <Text X="40" Y="14" Bright="Yes" Length="3" Font="Arial" Color="White" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="Yes">
               <String>%((A:PLANE HEADING DEGREES GYRO,degrees))%!03.f!</String>
            </Text>
         </Element>

         <Element>
            <Position X="34" Y="320"/>
            <Text X="26" Y="12" Bright="Yes" Length="3" Font="Arial" Color="White" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="Yes">
               <String>%((A:Nav1 ident, string))%!s!</String>
            </Text>
         </Element>
         <Element>
            <Position X="293" Y="320"/>
            <Text X="26" Y="12" Bright="Yes" Length="3" Font="Arial" Color="White" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="Yes">
               <String>%((A:Nav2 ident, string))%!s!</String>
            </Text>
         </Element>
         <Element>
            <Position X="33" Y="5"/>
            <Text X="33" Y="15" Bright="Yes" Length="4" Font="Arial" Color="#00FF00" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="Yes">
               <String>%((A:GPS GROUND SPEED, knots) abs)%!3.0f!</String>
            </Text>
         </Element>
         <Element>
            <Position X="23" Y="22"/>
            <Text X="25" Y="14" 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="50" Y="22"/>
            <Text X="10" Y="14" Bright="Yes" Length="1" Font="Arial" Color="White" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="Yes">
               <String>/</String>
            </Text>
         </Element>
         <Element>
            <Position X="60" Y="22"/>
            <Text X="20" Y="14" 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>
            <Position X="88" Y="5"/>
            <Text X="33" Y="15" Bright="Yes" Length="4" Font="Arial" Color="#00FF00" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="Yes">
               <String>%((A:AIRSPEED TRUE, knots) abs)%!3.0f!</String>
            </Text>
         </Element>
         <Element>
            <Position X="251" Y="3"/>
            <Text X="40" Y="12" Bright="Yes" Length="5" Font="Arial" Color="WHITE" 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="290" Y="3"/>
            <Text X="40" Y="12" Bright="Yes" Length="5" Font="Arial" Color="#00FF00" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="No">
               <String>%((A:GPS WP TRUE BEARING, degrees) d360)%!03d!%</String>
            </Text>
         </Element>
         <Element>
            <Position X="272" Y="17"/>
            <Text X="40" Y="12" Bright="Yes" Length="5" Font="Arial" Color="#00FF00" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="No">
               <String>%((A:GPS WP DISTANCE, nautical miles) abs)%!4.1f!</String>
            </Text>
         </Element>
         <Element>
            <Position X="296" Y="30"/>
            <Text X="40" Y="12" Bright="Yes" Length="6" Font="Arial" Color="#00FF00" 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="79" Y="318"/>
            <Text X="41" Y="13" Bright="Yes" Length="4" Font="Arial" Color="#00FF00" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="Yes">
               <String>%((A:NAV1 DME, nmiles) s0)%!004.1f!%</String>
            </Text>
         </Element>
         <Element>
            <Position X="221" Y="318"/>
            <Text X="41" Y="13" Bright="Yes" Length="4" Font="Arial" Color="#00FF00" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="Yes">
               <String>%((A:NAV2 DME, nmiles) s0)%!004.1f!%</String>
            </Text>
         </Element>
         <Element>
            <Position X="124" Y="1"/>
            <Select>
               <Value>(A:GPS drives nav1, bool)</Value>
               <Case Value="0">
                  <Image Name="ANNUN_VOR.bmp" Bright="Yes" ImageSizes="31,17"/>
               </Case>
               <Case Value="1">
                  <Image Name="ANNUN_GPS.bmp" Bright="Yes" ImageSizes="31,17"/>
               </Case>
            </Select>
         </Element>
         <Element>
            <Position X="204" Y="1"/>
            <Select>
               <Value>(A:Autopilot approach hold, bool)</Value>
               <Case Value="1">
                  <Image Name="ANNUN_APP.bmp" Bright="Yes" ImageSizes="31,17"/>
               </Case>
            </Select>
         </Element>
         <Element>
            <Position X="14" Y="42"/>
               <Select>
                  <Value>(A:Marker beacon state, enum)</Value>
                  <Case Value="1">
                     <Image Name="OUTER.bmp" Bright="Yes" ImageSizes="22,16"/>
                  </Case>
                  <Case Value="2">
                     <Image Name="MIDDLE.bmp" Bright="Yes" ImageSizes="22,16"/>
                  </Case>
                  <Case Value="3">
                     <Image Name="INNER.bmp" Bright="Yes" ImageSizes="22,16"/>
                  </Case>
               </Select>
         </Element>
         <Element>
            <Position X="177.5" Y="169.5"/>
               <Visible>(L:Warning, bool) if{ (P:Local time, seconds) flr 2 % l0 | s0 } els{ 0 }</Visible>
            <Text X="200" Y="32"
Bright="Yes" Length="18"
Font="Arial" Bold="Yes"
FontWeight="800" 
Color="Red"
BackgroundColor="White"
Adjust="Center" VerticalAdjust="Center"
Multiline="No">
                  <Axis X="100" Y="16"/>
               <String>%(  0 (A:Stall warning, bool) 0
&lt;&lt; | (A:Overspeed warning, bool) 1
&lt;&lt;  |  d s0 (&gt;L:Current warnings, mask)
(L:Displayed warnings, mask) ~ &amp; s1 if{ l1 
(&gt;L:Displayed warn, mask) } l0 (&gt;L:Displayed
warnings, mask) l0 (L:Displayed warn, mask) &amp; s1
(&gt;L:Displayed warn, mask))%(l1 2
&amp;)%{if}OVERSPEED%{else}%(l1 1
&amp;)%{if}STALL%{end}%{end}</String>
            </Text>
         </Element>






            <Element>
            <Position X="177.5" Y="202"/>
               <Visible>(L:Cautions, bool) if{ (P:Local time, seconds) flr 2 % l0 | s0 } els{ 0 }</Visible>
               <Text X="170" Y="32"
Bright="Yes" Length="18"
Font="Arial" Bold="Yes"
FontWeight="800" 
Color="#FFDE43"
BackgroundColor="White"
Adjust="Center" VerticalAdjust="Center"
Multiline="No">
                  <Axis X="85" Y="16"/>
                  <String>%(0 (A:FUEL SELECTED QUANTITY PERCENT, percent) 10 &lt; 0 &lt;&lt; | (A:Vertical speed, ft/min) -7000 &lt; 1 &lt;&lt; | (A:Radio
height, feet) s0 200 &lt; (A:Airspeed select indicated or
true, knots) 250 &gt; &amp;&amp; 2
&lt;&lt; | d s0 (&gt;L:Current cautions, mask)
(L:Displayed cautions, mask) ~ &amp; s1 if{ l1 
(&gt;L:Displayed caut, mask) } l0 (&gt;L:Displayed
cautions, mask) l0 (L:Displayed caut, mask) &amp; s1
(&gt;L:Displayed caut, mask))%(l1 4 &amp;)%{if}TERRAIN%{else}%(l1 2 &amp;)%{if}SINKRATE%{else}%(l1 1
&amp;)%{if}LOW FUEL%{end}%{end}%{end}</String>
               </Text>
            </Element>

         </Element>




         </Element>
         </Element>
</Gauge>
