<SimBase.Document Type="AceXML" version="1,0" id="radar_settings">
    <Descr>AceXML Document</Descr>
    <Filename>radar_settings.xml</Filename>
    <SimGauge.Gauge id="Gauge" ArtDirectory="%INETROOT%\private\fs\src\gauges\Radar\objd\i386">
        <FloatPosition>0.000,0.000</FloatPosition>
        <Size>246,232</Size>
        <Macro id="PanUpButton" Name="PanUpButton">
            <MacroValue>(L:PanVertical) 100 - (&gt;L:PanVertical) </MacroValue>
        </Macro>
        <Macro id="PanDownButton" Name="PanDownButton">
            <MacroValue>(L:PanVertical) 100 + (&gt;L:PanVertical) 
</MacroValue>
        </Macro>
        <Macro id="PanLeftButton" Name="PanLeftButton">
            <MacroValue>(L:PanHorizontal) 100 - (&gt;L:PanHorizontal) </MacroValue>
        </Macro>
        <Macro id="PanRightButton" Name="PanRightButton">
            <MacroValue>(L:PanHorizontal) 100 + (&gt;L:PanHorizontal, number) 
</MacroValue>
        </Macro>
        <Macro id="ZOOMINButton" Name="ZOOMINButton">
            <MacroValue>(L:map_ZoomStep, number) -- 1 max (&gt;L:map_ZoomStep, number)
@CalculateZoomFactor((L:map_ZoomStep, number)) (&gt;L:map_ZoomFactor, number)</MacroValue>
        </Macro>
        <Macro id="ZOOMOUTButton" Name="ZOOMOUTButton">
            <MacroValue>(L:map_ZoomStep, number) ++ 20 min (&gt;L:map_ZoomStep, number)
@CalculateZoomFactor((L:map_ZoomStep, number)) (&gt;L:map_ZoomFactor, number)
</MacroValue>
        </Macro>
        <Macro id="g" Name="g">
            <MacroValue>C:fs9gps</MacroValue>
        </Macro>
        <Macro id="TextHeight" Name="TextHeight">
            <MacroValue>15</MacroValue>
        </Macro>
        <Macro id="TextWidth" Name="TextWidth">
            <MacroValue>50</MacroValue>
        </Macro>
        <Macro id="TextColor" Name="TextColor">
            <MacroValue>0x7BB984</MacroValue>
        </Macro>
        <Macro id="ButtonWidth" Name="ButtonWidth">
            <MacroValue>53</MacroValue>
        </Macro>
        <Macro id="ButtonHeight" Name="ButtonHeight">
            <MacroValue>34</MacroValue>
        </Macro>
        <Macro id="ButtonMargin" Name="ButtonMargin">
            <MacroValue>5</MacroValue>
        </Macro>
        <Macro id="ButtonTop" Name="ButtonTop">
            <MacroValue>41</MacroValue>
        </Macro>
        <Macro id="ButtonLeft" Name="ButtonLeft">
            <MacroValue>9</MacroValue>
        </Macro>
        <Macro id="CalculateZoomFactor" Name="CalculateZoomFactor">
            <MacroValue>2000 1500 1000 500 350 200 150 100 50 35 20 15 10 5 3.5 2.0 1.5 1.0 0.576037 0.329164 0.246873 0.164582 0.082290 0 24 @1 case</MacroValue>
        </Macro>
        <Macro id="RectangleBlue" Name="RectangleBlue">
            <MacroValue>0x6F341D</MacroValue>
        </Macro>
        <Macro id="RectanglePurple" Name="RectanglePurple">
            <MacroValue>0x6D1F5D</MacroValue>
        </Macro>
        <Image id="radar_settings_window.bmp" Name="radar_settings_window.bmp">
            <Transparent>True</Transparent>
            <Bright>True</Bright>
        </Image>
        <Element id="Zoom Out">
            <FloatPosition>20.000,40.000</FloatPosition>
            <LeftScript>@ButtonLeft</LeftScript>
            <TopScript>@ButtonTop 8 -</TopScript>
            <GaugeText id="GaugeText">
                <Bold>True</Bold>
                <Bright>True</Bright>
                <FontColor>@TextColor</FontColor>
                <FontHeightScript>@TextHeight 2 -</FontHeightScript>
                <GaugeString>ZOOM\nOUT</GaugeString>
                <HorizontalAlign>CENTER</HorizontalAlign>
                <Length>30</Length>
                <Size>20,20</Size>
                <HeightScript>@ButtonHeight</HeightScript>
                <WidthScript>@ButtonWidth</WidthScript>
                <Transparent>True</Transparent>
                <VerticalAlign>CENTER</VerticalAlign>
            </GaugeText>
        </Element>
        <Element id="Zoom In">
            <FloatPosition>20.000,40.000</FloatPosition>
            <LeftScript>@ButtonLeft</LeftScript>
            <TopScript>@ButtonTop @ButtonMargin + @ButtonHeight + 8 -</TopScript>
            <GaugeText id="GaugeText">
                <Bold>True</Bold>
                <Bright>True</Bright>
                <FontColor>@TextColor</FontColor>
                <FontHeightScript>@TextHeight 2 -</FontHeightScript>
                <GaugeString>ZOOM\nIN</GaugeString>
                <HorizontalAlign>CENTER</HorizontalAlign>
                <Length>30</Length>
                <Size>20,20</Size>
                <HeightScript>@ButtonHeight</HeightScript>
                <WidthScript>@ButtonWidth</WidthScript>
                <Transparent>True</Transparent>
                <VerticalAlign>CENTER</VerticalAlign>
            </GaugeText>
        </Element>
        <Element id="Center">
            <FloatPosition>101.000,52.000</FloatPosition>
            <Rectangle id="Rectangle">
                <LineWidth>3</LineWidth>
                <Bright>True</Bright>
                <Width>44</Width>
                <Height>34</Height>
                <LineColor>Gray</LineColor>
                <FillColor>@RectangleBlue</FillColor>
            </Rectangle>
            <Element id="Element">
                <FloatPosition>0.000,7.000</FloatPosition>
                <GaugeText id="GaugeText">
                    <Bold>True</Bold>
                    <Bright>True</Bright>
                    <FontColor>@TextColor</FontColor>
                    <FontHeightScript>@TextHeight 2 -</FontHeightScript>
                    <GaugeString>CNTR</GaugeString>
                    <HorizontalAlign>CENTER</HorizontalAlign>
                    <Length>30</Length>
                    <Size>20,20</Size>
                    <HeightScript>@ButtonHeight</HeightScript>
                    <WidthScript>43</WidthScript>
                    <Transparent>True</Transparent>
                    <VerticalAlign>CENTER</VerticalAlign>
                </GaugeText>
            </Element>
        </Element>
        <Element id="COMP">
            <FloatPosition>20.000,40.000</FloatPosition>
            <LeftScript>@ButtonLeft</LeftScript>
            <TopScript>@ButtonTop @ButtonMargin 2 * + @ButtonHeight 2 * +</TopScript>
            <Element id="Color Blocks">
                <FloatPosition>0.000,-8.000</FloatPosition>
                <Element id="Blue">
                    <FloatPosition>0.000,0.000</FloatPosition>
                    <Visibility>(L:LayerCompass) 1 ==</Visibility>
                    <Rectangle id="Rectangle">
                        <LineWidth>2</LineWidth>
                        <Bright>True</Bright>
                        <Width>54</Width>
                        <WidthScript>@ButtonWidth</WidthScript>
                        <Height>34</Height>
                        <HeightScript>@ButtonHeight</HeightScript>
                        <LineColor>Gray</LineColor>
                        <FillColor>@RectangleBlue</FillColor>
                    </Rectangle>
                </Element>
            </Element>
            <Element id="Text">
                <FloatPosition>0.000,0.000</FloatPosition>
                <GaugeText id="GaugeText">
                    <Bold>True</Bold>
                    <Bright>True</Bright>
                    <FontColor>@TextColor</FontColor>
                    <FontHeightScript>@TextHeight 2 -</FontHeightScript>
                    <GaugeString>COMP</GaugeString>
                    <HorizontalAlign>CENTER</HorizontalAlign>
                    <Length>30</Length>
                    <Size>20,20</Size>
                    <HeightScript>@ButtonHeight</HeightScript>
                    <WidthScript>@ButtonWidth</WidthScript>
                    <Transparent>True</Transparent>
                    <VerticalAlign>CENTER</VerticalAlign>
                </GaugeText>
            </Element>
        </Element>
        <Element id="APT">
            <FloatPosition>20.000,40.000</FloatPosition>
            <LeftScript>@ButtonLeft</LeftScript>
            <TopScript>@ButtonTop @ButtonMargin 3 * + @ButtonHeight 3 * +</TopScript>
            <Element id="Color Blocks">
                <FloatPosition>0.000,-8.000</FloatPosition>
                <Element id="Blue">
                    <FloatPosition>0.000,0.000</FloatPosition>
                    <Visibility>(L:LayerAirports) 1 ==</Visibility>
                    <Rectangle id="Rectangle">
                        <LineWidth>2</LineWidth>
                        <Bright>True</Bright>
                        <Width>54</Width>
                        <WidthScript>@ButtonWidth</WidthScript>
                        <Height>34</Height>
                        <HeightScript>@ButtonHeight</HeightScript>
                        <LineColor>Gray</LineColor>
                        <FillColor>@RectangleBlue</FillColor>
                    </Rectangle>
                </Element>
                <Element id="Purple">
                    <FloatPosition>0.000,0.000</FloatPosition>
                    <Visibility>(L:LayerAirports) 2 ==</Visibility>
                    <Rectangle id="Rectangle">
                        <LineWidth>2</LineWidth>
                        <Bright>True</Bright>
                        <Width>54</Width>
                        <WidthScript>@ButtonWidth</WidthScript>
                        <Height>34</Height>
                        <HeightScript>@ButtonHeight</HeightScript>
                        <LineColor>Gray</LineColor>
                        <FillColor>@RectanglePurple</FillColor>
                    </Rectangle>
                </Element>
            </Element>
            <Element id="Element">
                <FloatPosition>0.000,0.000</FloatPosition>
                <GaugeText id="GaugeText">
                    <Bold>True</Bold>
                    <Bright>True</Bright>
                    <FontColor>@TextColor</FontColor>
                    <FontHeightScript>@TextHeight 2 -</FontHeightScript>
                    <GaugeString>APT%((L:LayerAirports))%{case}%{:1} 1%{:2} 2%{end}</GaugeString>
                    <HorizontalAlign>CENTER</HorizontalAlign>
                    <Length>30</Length>
                    <Size>20,20</Size>
                    <HeightScript>@ButtonHeight</HeightScript>
                    <WidthScript>@ButtonWidth</WidthScript>
                    <Transparent>True</Transparent>
                    <VerticalAlign>CENTER</VerticalAlign>
                </GaugeText>
            </Element>
        </Element>
        <Element id="ILS">
            <FloatPosition>20.000,40.000</FloatPosition>
            <LeftScript>@ButtonLeft</LeftScript>
            <TopScript>@ButtonTop @ButtonMargin 4 * + @ButtonHeight 4 * +</TopScript>
            <Element id="Color Blocks">
                <FloatPosition>0.000,-8.000</FloatPosition>
                <Element id="Blue">
                    <FloatPosition>0.000,0.000</FloatPosition>
                    <Visibility>(L:LayerILSs) 1 ==</Visibility>
                    <Rectangle id="Rectangle">
                        <LineWidth>2</LineWidth>
                        <Bright>True</Bright>
                        <Width>54</Width>
                        <WidthScript>@ButtonWidth</WidthScript>
                        <Height>34</Height>
                        <HeightScript>@ButtonHeight</HeightScript>
                        <LineColor>Gray</LineColor>
                        <FillColor>@RectangleBlue</FillColor>
                    </Rectangle>
                </Element>
            </Element>
            <Element id="Text">
                <FloatPosition>0.000,0.000</FloatPosition>
                <GaugeText id="GaugeText">
                    <Bold>True</Bold>
                    <Bright>True</Bright>
                    <FontColor>@TextColor</FontColor>
                    <FontHeightScript>@TextHeight 2 -</FontHeightScript>
                    <GaugeString>ILS</GaugeString>
                    <HorizontalAlign>CENTER</HorizontalAlign>
                    <Length>30</Length>
                    <Size>20,20</Size>
                    <HeightScript>@ButtonHeight</HeightScript>
                    <WidthScript>@ButtonWidth</WidthScript>
                    <Transparent>True</Transparent>
                    <VerticalAlign>CENTER</VerticalAlign>
                </GaugeText>
            </Element>
        </Element>
        <Element id="RINGS">
            <FloatPosition>20.000,40.000</FloatPosition>
            <LeftScript>@ButtonLeft @ButtonMargin + @ButtonWidth +</LeftScript>
            <TopScript>@ButtonTop @ButtonMargin 2 * + @ButtonHeight 2 * +</TopScript>
            <Element id="Color Blocks">
                <FloatPosition>0.000,-8.000</FloatPosition>
                <Element id="Blue">
                    <FloatPosition>0.000,0.000</FloatPosition>
                    <Visibility>(L:LayerRangeRings) 0 &gt;</Visibility>
                    <Rectangle id="Rectangle">
                        <LineWidth>2</LineWidth>
                        <Bright>True</Bright>
                        <Width>54</Width>
                        <WidthScript>@ButtonWidth</WidthScript>
                        <Height>34</Height>
                        <HeightScript>@ButtonHeight</HeightScript>
                        <LineColor>Gray</LineColor>
                        <FillColor>@RectangleBlue</FillColor>
                    </Rectangle>
                </Element>
            </Element>
            <Element id="Text">
                <FloatPosition>0.000,-7.000</FloatPosition>
                <GaugeText id="GaugeText">
                    <Bold>True</Bold>
                    <Bright>True</Bright>
                    <FontColor>@TextColor</FontColor>
                    <FontHeightScript>@TextHeight 2 -</FontHeightScript>
                    <GaugeString>RINGS%((L:LayerRangeRings))%{if}\n%((L:LayerRangeRings))%!d! NM%{end}</GaugeString>
                    <HorizontalAlign>CENTER</HorizontalAlign>
                    <Length>30</Length>
                    <Multiline>True</Multiline>
                    <Size>20,20</Size>
                    <HeightScript>@ButtonHeight</HeightScript>
                    <WidthScript>@ButtonWidth</WidthScript>
                    <Transparent>True</Transparent>
                    <VerticalAlign>CENTER</VerticalAlign>
                </GaugeText>
                <Shift id="Shift">
                    <Scale>0.000,1.000</Scale>
                    <Expression id="Expression">
                        <Script>(L:LayerRangeRings) 0 ==  if{ 7 }</Script>
                    </Expression>
                </Shift>
            </Element>
        </Element>
        <Element id="VOR">
            <FloatPosition>20.000,40.000</FloatPosition>
            <LeftScript>@ButtonLeft @ButtonMargin + @ButtonWidth +</LeftScript>
            <TopScript>@ButtonTop @ButtonMargin 3 * + @ButtonHeight 3 * +</TopScript>
            <Element id="Color Blocks">
                <FloatPosition>0.000,-8.000</FloatPosition>
                <Element id="Blue">
                    <FloatPosition>0.000,0.000</FloatPosition>
                    <Visibility>(L:LayerVORs) 1 ==</Visibility>
                    <Rectangle id="Rectangle">
                        <LineWidth>2</LineWidth>
                        <Bright>True</Bright>
                        <Width>54</Width>
                        <WidthScript>@ButtonWidth</WidthScript>
                        <Height>34</Height>
                        <HeightScript>@ButtonHeight</HeightScript>
                        <LineColor>Gray</LineColor>
                        <FillColor>@RectangleBlue</FillColor>
                    </Rectangle>
                </Element>
                <Element id="Purple">
                    <FloatPosition>0.000,0.000</FloatPosition>
                    <Visibility>(L:LayerVORs) 2 ==</Visibility>
                    <Rectangle id="Rectangle">
                        <LineWidth>2</LineWidth>
                        <Bright>True</Bright>
                        <Width>54</Width>
                        <WidthScript>@ButtonWidth</WidthScript>
                        <Height>34</Height>
                        <HeightScript>@ButtonHeight</HeightScript>
                        <LineColor>Gray</LineColor>
                        <FillColor>@RectanglePurple</FillColor>
                    </Rectangle>
                </Element>
            </Element>
            <Element id="Text">
                <FloatPosition>0.000,0.000</FloatPosition>
                <GaugeText id="GaugeText">
                    <Bold>True</Bold>
                    <Bright>True</Bright>
                    <FontColor>@TextColor</FontColor>
                    <FontHeightScript>@TextHeight 2 -</FontHeightScript>
                    <GaugeString>VOR%((L:LayerVORs))%{case}%{:1} 1%{:2} 2%{end}</GaugeString>
                    <HorizontalAlign>CENTER</HorizontalAlign>
                    <Length>30</Length>
                    <Size>20,20</Size>
                    <HeightScript>@ButtonHeight</HeightScript>
                    <WidthScript>@ButtonWidth</WidthScript>
                    <Transparent>True</Transparent>
                    <VerticalAlign>CENTER</VerticalAlign>
                </GaugeText>
            </Element>
        </Element>
        <Element id="NDB">
            <FloatPosition>20.000,40.000</FloatPosition>
            <LeftScript>@ButtonLeft @ButtonMargin + @ButtonWidth +</LeftScript>
            <TopScript>@ButtonTop @ButtonMargin 4 * + @ButtonHeight 4 * +</TopScript>
            <Element id="Color Blocks">
                <FloatPosition>0.000,-8.000</FloatPosition>
                <Element id="Blue">
                    <FloatPosition>0.000,0.000</FloatPosition>
                    <Visibility>(L:LayerNDBs) 1 ==</Visibility>
                    <Rectangle id="Rectangle">
                        <LineWidth>2</LineWidth>
                        <Bright>True</Bright>
                        <Width>54</Width>
                        <WidthScript>@ButtonWidth</WidthScript>
                        <Height>34</Height>
                        <HeightScript>@ButtonHeight</HeightScript>
                        <LineColor>Gray</LineColor>
                        <FillColor>@RectangleBlue</FillColor>
                    </Rectangle>
                </Element>
                <Element id="Purple">
                    <FloatPosition>0.000,0.000</FloatPosition>
                    <Visibility>(L:LayerNDBs) 2 ==</Visibility>
                    <Rectangle id="Rectangle">
                        <LineWidth>2</LineWidth>
                        <Bright>True</Bright>
                        <Width>54</Width>
                        <WidthScript>@ButtonWidth</WidthScript>
                        <Height>34</Height>
                        <HeightScript>@ButtonHeight</HeightScript>
                        <LineColor>Gray</LineColor>
                        <FillColor>@RectanglePurple</FillColor>
                    </Rectangle>
                </Element>
            </Element>
            <Element id="Text">
                <FloatPosition>0.000,0.000</FloatPosition>
                <GaugeText id="GaugeText">
                    <Bold>True</Bold>
                    <Bright>True</Bright>
                    <FontColor>@TextColor</FontColor>
                    <FontHeightScript>@TextHeight 2 -</FontHeightScript>
                    <GaugeString>NDB%((L:LayerNDBs))%{case}%{:1} 1%{:2} 2%{end}</GaugeString>
                    <HorizontalAlign>CENTER</HorizontalAlign>
                    <Length>30</Length>
                    <Size>20,20</Size>
                    <HeightScript>@ButtonHeight</HeightScript>
                    <WidthScript>@ButtonWidth</WidthScript>
                    <Transparent>True</Transparent>
                    <VerticalAlign>CENTER</VerticalAlign>
                </GaugeText>
            </Element>
        </Element>
        <Element id="TERR">
            <FloatPosition>20.000,40.000</FloatPosition>
            <LeftScript>@ButtonLeft @ButtonMargin 2 * + @ButtonWidth 2 * +</LeftScript>
            <TopScript>@ButtonTop @ButtonMargin 2 * + @ButtonHeight 2 * +</TopScript>
            <Element id="Color Blocks">
                <FloatPosition>0.000,-8.000</FloatPosition>
                <Element id="Blue">
                    <FloatPosition>0.000,0.000</FloatPosition>
                    <Visibility>(L:LayerTerrain) 1 ==</Visibility>
                    <Rectangle id="Rectangle">
                        <LineWidth>2</LineWidth>
                        <Bright>True</Bright>
                        <Width>54</Width>
                        <WidthScript>@ButtonWidth</WidthScript>
                        <Height>34</Height>
                        <HeightScript>@ButtonHeight</HeightScript>
                        <LineColor>Gray</LineColor>
                        <FillColor>@RectangleBlue</FillColor>
                    </Rectangle>
                </Element>
            </Element>
            <Element id="Text">
                <FloatPosition>0.000,0.000</FloatPosition>
                <GaugeText id="GaugeText">
                    <Bold>True</Bold>
                    <Bright>True</Bright>
                    <FontColor>@TextColor</FontColor>
                    <FontHeightScript>@TextHeight 2 -</FontHeightScript>
                    <GaugeString>TERR</GaugeString>
                    <HorizontalAlign>CENTER</HorizontalAlign>
                    <Length>30</Length>
                    <Size>20,20</Size>
                    <HeightScript>@ButtonHeight</HeightScript>
                    <WidthScript>@ButtonWidth</WidthScript>
                    <Transparent>True</Transparent>
                    <VerticalAlign>CENTER</VerticalAlign>
                </GaugeText>
            </Element>
        </Element>
        <Element id="LOW AWY">
            <FloatPosition>20.000,40.000</FloatPosition>
            <LeftScript>@ButtonLeft @ButtonMargin 2 * + @ButtonWidth 2 * +</LeftScript>
            <TopScript>@ButtonTop @ButtonMargin 3 * + @ButtonHeight 3 * +</TopScript>
            <Element id="Color Blocks">
                <FloatPosition>0.000,-8.000</FloatPosition>
                <Element id="Blue">
                    <FloatPosition>0.000,0.000</FloatPosition>
                    <Visibility>(L:LayerLowAirways) 1 ==</Visibility>
                    <Rectangle id="Rectangle">
                        <LineWidth>2</LineWidth>
                        <Bright>True</Bright>
                        <Width>54</Width>
                        <WidthScript>@ButtonWidth</WidthScript>
                        <Height>34</Height>
                        <HeightScript>@ButtonHeight</HeightScript>
                        <LineColor>Gray</LineColor>
                        <FillColor>@RectangleBlue</FillColor>
                    </Rectangle>
                </Element>
                <Element id="Purple">
                    <FloatPosition>0.000,0.000</FloatPosition>
                    <Visibility>(L:LayerLowAirways) 2 ==</Visibility>
                    <Rectangle id="Rectangle">
                        <LineWidth>2</LineWidth>
                        <Bright>True</Bright>
                        <Width>54</Width>
                        <WidthScript>@ButtonWidth</WidthScript>
                        <Height>34</Height>
                        <HeightScript>@ButtonHeight</HeightScript>
                        <LineColor>Gray</LineColor>
                        <FillColor>@RectanglePurple</FillColor>
                    </Rectangle>
                </Element>
            </Element>
            <Element id="Text">
                <FloatPosition>0.000,-7.000</FloatPosition>
                <GaugeText id="GaugeText">
                    <Bold>True</Bold>
                    <Bright>True</Bright>
                    <FontColor>@TextColor</FontColor>
                    <FontHeightScript>@TextHeight 2 -</FontHeightScript>
                    <GaugeString>LOW\nAWY%((L:LayerLowAirways))%{case}%{:1} 1%{:2} 2%{end}</GaugeString>
                    <HorizontalAlign>CENTER</HorizontalAlign>
                    <Length>30</Length>
                    <Size>20,20</Size>
                    <HeightScript>@ButtonHeight</HeightScript>
                    <WidthScript>@ButtonWidth</WidthScript>
                    <Transparent>True</Transparent>
                    <VerticalAlign>CENTER</VerticalAlign>
                </GaugeText>
            </Element>
        </Element>
        <Element id="INT">
            <FloatPosition>20.000,40.000</FloatPosition>
            <LeftScript>@ButtonLeft @ButtonMargin 2 * + @ButtonWidth 2 * +</LeftScript>
            <TopScript>@ButtonTop @ButtonMargin 4 * + @ButtonHeight 4 * +</TopScript>
            <Element id="Color Blocks">
                <FloatPosition>0.000,-8.000</FloatPosition>
                <Element id="Blue">
                    <FloatPosition>0.000,0.000</FloatPosition>
                    <Visibility>(L:LayerIntersections) 1 ==</Visibility>
                    <Rectangle id="Rectangle">
                        <LineWidth>2</LineWidth>
                        <Bright>True</Bright>
                        <Width>54</Width>
                        <WidthScript>@ButtonWidth</WidthScript>
                        <Height>34</Height>
                        <HeightScript>@ButtonHeight</HeightScript>
                        <LineColor>Gray</LineColor>
                        <FillColor>@RectangleBlue</FillColor>
                    </Rectangle>
                </Element>
                <Element id="Purple">
                    <FloatPosition>0.000,0.000</FloatPosition>
                    <Visibility>(L:LayerIntersections) 2 ==</Visibility>
                    <Rectangle id="Rectangle">
                        <LineWidth>2</LineWidth>
                        <Bright>True</Bright>
                        <Width>54</Width>
                        <WidthScript>@ButtonWidth</WidthScript>
                        <Height>34</Height>
                        <HeightScript>@ButtonHeight</HeightScript>
                        <LineColor>Gray</LineColor>
                        <FillColor>@RectanglePurple</FillColor>
                    </Rectangle>
                </Element>
            </Element>
            <Element id="Element">
                <FloatPosition>0.000,0.000</FloatPosition>
                <GaugeText id="GaugeText">
                    <Bold>True</Bold>
                    <Bright>True</Bright>
                    <FontColor>@TextColor</FontColor>
                    <FontHeightScript>@TextHeight 2 -</FontHeightScript>
                    <GaugeString>FIX%((L:LayerIntersections))%{case}%{:1} 1%{:2} 2%{end}</GaugeString>
                    <HorizontalAlign>CENTER</HorizontalAlign>
                    <Length>30</Length>
                    <Size>20,20</Size>
                    <HeightScript>@ButtonHeight</HeightScript>
                    <WidthScript>@ButtonWidth</WidthScript>
                    <Transparent>True</Transparent>
                    <VerticalAlign>CENTER</VerticalAlign>
                </GaugeText>
            </Element>
        </Element>
        <Element id="TAG">
            <FloatPosition>20.000,40.000</FloatPosition>
            <LeftScript>@ButtonLeft @ButtonMargin 3 * + @ButtonWidth 3 * +</LeftScript>
            <TopScript>@ButtonTop</TopScript>
            <Element id="Color Blocks">
                <FloatPosition>0.000,-8.000</FloatPosition>
                <Element id="Blue">
                    <FloatPosition>0.000,0.000</FloatPosition>
                    <Visibility>(L:LayerTags) 1 ==</Visibility>
                    <Rectangle id="Rectangle">
                        <LineWidth>2</LineWidth>
                        <Bright>True</Bright>
                        <Width>54</Width>
                        <WidthScript>@ButtonWidth</WidthScript>
                        <Height>34</Height>
                        <HeightScript>@ButtonHeight</HeightScript>
                        <LineColor>Gray</LineColor>
                        <FillColor>@RectangleBlue</FillColor>
                    </Rectangle>
                </Element>
                <Element id="Purple">
                    <FloatPosition>0.000,0.000</FloatPosition>
                    <Visibility>(L:LayerTags) 2 ==</Visibility>
                    <Rectangle id="Rectangle">
                        <LineWidth>2</LineWidth>
                        <Bright>True</Bright>
                        <Width>54</Width>
                        <WidthScript>@ButtonWidth</WidthScript>
                        <Height>34</Height>
                        <HeightScript>@ButtonHeight</HeightScript>
                        <LineColor>Gray</LineColor>
                        <FillColor>@RectanglePurple</FillColor>
                    </Rectangle>
                </Element>
            </Element>
            <Element id="Element">
                <FloatPosition>0.000,0.000</FloatPosition>
                <GaugeText id="GaugeText">
                    <Bold>True</Bold>
                    <Bright>True</Bright>
                    <FontColor>@TextColor</FontColor>
                    <FontHeightScript>@TextHeight 2 -</FontHeightScript>
                    <GaugeString>TAG%((L:LayerTags))%{case}%{:1} 1%{:2} 2%{end}</GaugeString>
                    <HorizontalAlign>CENTER</HorizontalAlign>
                    <Length>30</Length>
                    <Size>20,20</Size>
                    <HeightScript>@ButtonHeight</HeightScript>
                    <WidthScript>@ButtonWidth</WidthScript>
                    <Transparent>True</Transparent>
                    <VerticalAlign>CENTER</VerticalAlign>
                </GaugeText>
            </Element>
        </Element>
        <Element id="REPO TAG">
            <FloatPosition>20.000,40.000</FloatPosition>
            <LeftScript>@ButtonLeft @ButtonMargin 3 * + @ButtonWidth 3 * +</LeftScript>
            <TopScript>@ButtonTop @ButtonMargin + @ButtonHeight + 7 -</TopScript>
            <Element id="Element">
                <FloatPosition>0.000,0.000</FloatPosition>
                <GaugeText id="GaugeText">
                    <Bold>True</Bold>
                    <Bright>True</Bright>
                    <FontColor>@TextColor</FontColor>
                    <FontHeightScript>@TextHeight 2 -</FontHeightScript>
                    <GaugeString>REPO\nTAG %((C:fs9gps:1:TagPosition) 1 +)%!d!</GaugeString>
                    <HorizontalAlign>CENTER</HorizontalAlign>
                    <Length>30</Length>
                    <Size>20,20</Size>
                    <HeightScript>@ButtonHeight</HeightScript>
                    <WidthScript>@ButtonWidth</WidthScript>
                    <Transparent>True</Transparent>
                    <VerticalAlign>CENTER</VerticalAlign>
                </GaugeText>
            </Element>
        </Element>
        <Element id="ARSPC">
            <FloatPosition>20.000,40.000</FloatPosition>
            <LeftScript>@ButtonLeft @ButtonMargin 3 * + @ButtonWidth 3 * +</LeftScript>
            <TopScript>@ButtonTop @ButtonMargin 2 * + @ButtonHeight 2 * +</TopScript>
            <Element id="Color Blocks">
                <FloatPosition>0.000,-8.000</FloatPosition>
                <Element id="Blue">
                    <FloatPosition>0.000,0.000</FloatPosition>
                    <Visibility>(L:LayerAirspaces) 1 ==</Visibility>
                    <Rectangle id="Rectangle">
                        <LineWidth>2</LineWidth>
                        <Bright>True</Bright>
                        <Width>54</Width>
                        <WidthScript>@ButtonWidth</WidthScript>
                        <Height>34</Height>
                        <HeightScript>@ButtonHeight</HeightScript>
                        <LineColor>Gray</LineColor>
                        <FillColor>@RectangleBlue</FillColor>
                    </Rectangle>
                </Element>
            </Element>
            <Element id="Element">
                <FloatPosition>0.000,0.000</FloatPosition>
                <GaugeText id="GaugeText">
                    <Bold>True</Bold>
                    <Bright>True</Bright>
                    <FontColor>@TextColor</FontColor>
                    <FontHeightScript>@TextHeight 2 -</FontHeightScript>
                    <GaugeString>ARSPC</GaugeString>
                    <HorizontalAlign>CENTER</HorizontalAlign>
                    <Length>30</Length>
                    <Size>20,20</Size>
                    <HeightScript>@ButtonHeight</HeightScript>
                    <WidthScript>@ButtonWidth</WidthScript>
                    <Transparent>True</Transparent>
                    <VerticalAlign>CENTER</VerticalAlign>
                </GaugeText>
            </Element>
        </Element>
        <Element id="HIGH AWY">
            <FloatPosition>20.000,40.000</FloatPosition>
            <LeftScript>@ButtonLeft @ButtonMargin 3 * + @ButtonWidth 3 * +</LeftScript>
            <TopScript>@ButtonTop @ButtonMargin 3 * + @ButtonHeight 3 * +</TopScript>
            <Element id="Color Blocks">
                <FloatPosition>0.000,-8.000</FloatPosition>
                <Element id="Blue">
                    <FloatPosition>0.000,0.000</FloatPosition>
                    <Visibility>(L:LayerHighAirways) 1 ==</Visibility>
                    <Rectangle id="Rectangle">
                        <LineWidth>2</LineWidth>
                        <Bright>True</Bright>
                        <Width>54</Width>
                        <WidthScript>@ButtonWidth</WidthScript>
                        <Height>34</Height>
                        <HeightScript>@ButtonHeight</HeightScript>
                        <LineColor>Gray</LineColor>
                        <FillColor>@RectangleBlue</FillColor>
                    </Rectangle>
                </Element>
                <Element id="Purple">
                    <FloatPosition>0.000,0.000</FloatPosition>
                    <Visibility>(L:LayerHighAirways) 2 ==</Visibility>
                    <Rectangle id="Rectangle">
                        <LineWidth>2</LineWidth>
                        <Bright>True</Bright>
                        <Width>54</Width>
                        <WidthScript>@ButtonWidth</WidthScript>
                        <Height>34</Height>
                        <HeightScript>@ButtonHeight</HeightScript>
                        <LineColor>Gray</LineColor>
                        <FillColor>@RectanglePurple</FillColor>
                    </Rectangle>
                </Element>
            </Element>
            <Element id="Element">
                <FloatPosition>0.000,-7.000</FloatPosition>
                <GaugeText id="GaugeText">
                    <Bold>True</Bold>
                    <Bright>True</Bright>
                    <FontColor>@TextColor</FontColor>
                    <FontHeightScript>@TextHeight 2 -</FontHeightScript>
                    <GaugeString>HIGH\nAWY%((L:LayerHighAirways))%{case}%{:1} 1%{:2} 2%{end}</GaugeString>
                    <HorizontalAlign>CENTER</HorizontalAlign>
                    <Length>30</Length>
                    <Multiline>True</Multiline>
                    <Size>20,20</Size>
                    <HeightScript>@ButtonHeight</HeightScript>
                    <WidthScript>@ButtonWidth</WidthScript>
                    <Transparent>True</Transparent>
                    <VerticalAlign>CENTER</VerticalAlign>
                </GaugeText>
            </Element>
        </Element>
        <Element id="GRND">
            <FloatPosition>20.000,40.000</FloatPosition>
            <LeftScript>@ButtonLeft @ButtonMargin 3 * + @ButtonWidth 3 * +</LeftScript>
            <TopScript>@ButtonTop @ButtonMargin 4 * + @ButtonHeight 4 * +</TopScript>
            <Element id="Color Blocks">
                <FloatPosition>0.000,-8.000</FloatPosition>
                <Element id="Blue">
                    <FloatPosition>0.000,0.000</FloatPosition>
                    <Visibility>(L:VehicleObjectDetail) 2 ==</Visibility>
                    <Rectangle id="Rectangle">
                        <LineWidth>2</LineWidth>
                        <Bright>True</Bright>
                        <Width>54</Width>
                        <WidthScript>@ButtonWidth</WidthScript>
                        <Height>34</Height>
                        <HeightScript>@ButtonHeight</HeightScript>
                        <LineColor>Gray</LineColor>
                        <FillColor>@RectangleBlue</FillColor>
                    </Rectangle>
                </Element>
                <Element id="Purple">
                    <FloatPosition>0.000,0.000</FloatPosition>
                    <Visibility>(L:VehicleObjectDetail) 4 ==</Visibility>
                    <Rectangle id="Rectangle">
                        <LineWidth>2</LineWidth>
                        <Bright>True</Bright>
                        <Width>54</Width>
                        <WidthScript>@ButtonWidth</WidthScript>
                        <Height>34</Height>
                        <HeightScript>@ButtonHeight</HeightScript>
                        <LineColor>Gray</LineColor>
                        <FillColor>@RectanglePurple</FillColor>
                    </Rectangle>
                </Element>
            </Element>
            <Element id="Element">
                <FloatPosition>0.000,0.000</FloatPosition>
                <GaugeText id="GaugeText">
                    <Bold>True</Bold>
                    <Bright>True</Bright>
                    <FontColor>@TextColor</FontColor>
                    <FontHeightScript>@TextHeight 2 -</FontHeightScript>
                    <GaugeString>%((L:VehicleObjectDetail) 6 ==)%{if}ALL%{end}
%((L:VehicleObjectDetail) 4 ==)%{if}AIR%{end}
%((L:VehicleObjectDetail) 2 ==)%{if}GRND%{end}</GaugeString>
                    <HorizontalAlign>CENTER</HorizontalAlign>
                    <Length>30</Length>
                    <Size>20,20</Size>
                    <HeightScript>@ButtonHeight</HeightScript>
                    <WidthScript>@ButtonWidth</WidthScript>
                    <Transparent>True</Transparent>
                    <VerticalAlign>CENTER</VerticalAlign>
                </GaugeText>
            </Element>
        </Element>
        <MouseArea id="MouseArea">
            <FloatPosition>0.000,0.000</FloatPosition>
            <Size>246,232</Size>
            <MouseArea id="Pan">
                <FloatPosition>72.000,30.000</FloatPosition>
                <Size>106,76</Size>
                <MouseArea id="Pan up">
                    <FloatPosition>29.000,2.000</FloatPosition>
                    <Size>40,22</Size>
                    <CursorType>UpArrow</CursorType>
                    <HelpId>HELPID_GAUGE_RADAR_PAN_UP</HelpId>
                    <MouseClick id="MouseClick">
                        <Script>@PanUpButton</Script>
                    </MouseClick>
                </MouseArea>
                <MouseArea id="Pan down">
                    <FloatPosition>31.000,57.000</FloatPosition>
                    <Size>40,19</Size>
                    <CursorType>DownArrow</CursorType>
                    <HelpId>HELPID_GAUGE_RADAR_PAN_DOWN</HelpId>
                    <MouseClick id="MouseClick">
                        <Script>@PanDownButton</Script>
                    </MouseClick>
                </MouseArea>
                <MouseArea id="Pan left">
                    <FloatPosition>1.000,23.000</FloatPosition>
                    <Size>26,33</Size>
                    <CursorType>LeftArrow</CursorType>
                    <HelpId>HELPID_GAUGE_RADAR_PAN_LEFT</HelpId>
                    <MouseClick id="MouseClick">
                        <Script>@PanLeftButton</Script>
                    </MouseClick>
                </MouseArea>
                <MouseArea id="Pan right">
                    <FloatPosition>77.000,22.000</FloatPosition>
                    <Size>26,33</Size>
                    <CursorType>RightArrow</CursorType>
                    <HelpId>HELPID_GAUGE_RADAR_PAN_RIGHT</HelpId>
                    <MouseClick id="MouseClick">
                        <Script>@PanRightButton</Script>
                    </MouseClick>
                </MouseArea>
                <MouseArea id="Center">
                    <FloatPosition>28.000,24.000</FloatPosition>
                    <Size>45,33</Size>
                    <CursorType>Hand</CursorType>
                    <HelpId>HELPID_GAUGE_RADAR_CENTER_ON_AIRPORT</HelpId>
                    <MouseClick id="MouseClick">
                        <Script>(L:PanReset) ! (&gt;L:PanReset)</Script>
                    </MouseClick>
                </MouseArea>
            </MouseArea>
            <MouseArea id="Zoom out">
                <FloatPosition>10.000,34.000</FloatPosition>
                <Size>54,34</Size>
                <CursorType>DownArrow</CursorType>
                <HelpId>HELPID_GAUGE_RADAR_ZOOM_OUT</HelpId>
                <MouseClick id="MouseClick">
                    <Script>@ZOOMOUTButton</Script>
                </MouseClick>
            </MouseArea>
            <MouseArea id="Zoom in">
                <FloatPosition>11.000,73.000</FloatPosition>
                <Size>54,34</Size>
                <CursorType>UpArrow</CursorType>
                <HelpId>HELPID_GAUGE_RADAR_ZOOM_IN</HelpId>
                <MouseClick id="MouseClick">
                    <Script>@ZOOMINButton</Script>
                </MouseClick>
            </MouseArea>
            <MouseArea id="COMP">
                <FloatPosition>10.000,112.000</FloatPosition>
                <Size>54,34</Size>
                <CursorType>Hand</CursorType>
                <HelpId>HELPID_GAUGE_RADAR_COMPASS_ROSE</HelpId>
                <MouseClick id="MouseClick">
                    <Script>(L:LayerCompass) ++ 2 % (&gt;L:LayerCompass)</Script>
                </MouseClick>
            </MouseArea>
            <MouseArea id="APT">
                <FloatPosition>10.000,150.000</FloatPosition>
                <Size>54,34</Size>
                <CursorType>Hand</CursorType>
                <HelpId>HELPID_GAUGE_RADAR_AIRPORTS</HelpId>
                <MouseClick id="MouseClick">
                    <Script>(L:LayerAirports) ++ 3 % (&gt;L:LayerAirports)</Script>
                </MouseClick>
            </MouseArea>
            <MouseArea id="ILS">
                <FloatPosition>10.000,189.000</FloatPosition>
                <Size>54,34</Size>
                <CursorType>Hand</CursorType>
                <HelpId>HELPID_GAUGE_RADAR_ILS</HelpId>
                <MouseClick id="MouseClick">
                    <Script>(L:LayerILSs) ++ 2 % (&gt;L:LayerILSs)</Script>
                </MouseClick>
            </MouseArea>
            <MouseArea id="RINGS">
                <FloatPosition>68.000,112.000</FloatPosition>
                <Size>54,34</Size>
                <CursorType>Hand</CursorType>
                <HelpId>HELPID_GAUGE_RADAR_RANGE_RINGS</HelpId>
                <MouseClick id="MouseClick">
                    <Script>(L:LayerRangeRings) 0 == if{ 2 (&gt;L:LayerRangeRings) quit }
(L:LayerRangeRings) 2 == if{ 5 (&gt;L:LayerRangeRings) quit }
(L:LayerRangeRings) 5 == if{ 10 (&gt;L:LayerRangeRings) quit }
(L:LayerRangeRings) 10 == if{ 20 (&gt;L:LayerRangeRings) quit }
(L:LayerRangeRings) 20 == if{ 0 (&gt;L:LayerRangeRings) quit }</Script>
                </MouseClick>
            </MouseArea>
            <MouseArea id="VOR">
                <FloatPosition>68.000,150.000</FloatPosition>
                <Size>54,34</Size>
                <CursorType>Hand</CursorType>
                <HelpId>HELPID_GAUGE_RADAR_VORS</HelpId>
                <MouseClick id="MouseClick">
                    <Script>(L:LayerVORs) ++ 3 % (&gt;L:LayerVORs)</Script>
                </MouseClick>
            </MouseArea>
            <MouseArea id="NDB">
                <FloatPosition>68.000,189.000</FloatPosition>
                <Size>54,34</Size>
                <CursorType>Hand</CursorType>
                <HelpId>HELPID_GAUGE_RADAR_NDB</HelpId>
                <MouseClick id="MouseClick">
                    <Script>(L:LayerNDBs) ++ 3 % (&gt;L:LayerNDBs)</Script>
                </MouseClick>
            </MouseArea>
            <MouseArea id="TERR">
                <FloatPosition>126.000,112.000</FloatPosition>
                <Size>54,34</Size>
                <CursorType>Hand</CursorType>
                <HelpId>HELPID_GAUGE_RADAR_TERRAIN</HelpId>
                <MouseClick id="MouseClick">
                    <Script>(L:LayerTerrain) ++ 2 % (&gt;L:LayerTerrain)</Script>
                </MouseClick>
            </MouseArea>
            <MouseArea id="LOW AWY">
                <FloatPosition>126.000,150.000</FloatPosition>
                <Size>54,34</Size>
                <CursorType>Hand</CursorType>
                <HelpId>HELPID_GAUGE_RADAR_LOW_AIRWAYS</HelpId>
                <MouseClick id="MouseClick">
                    <Script>(L:LayerLowAirways) ++ 3 % (&gt;L:LayerLowAirways)</Script>
                </MouseClick>
            </MouseArea>
            <MouseArea id="INT">
                <FloatPosition>126.000,189.000</FloatPosition>
                <Size>54,34</Size>
                <CursorType>Hand</CursorType>
                <HelpId>HELPID_GAUGE_RADAR_INTERSECTIONS</HelpId>
                <MouseClick id="MouseClick">
                    <Script>(L:LayerIntersections) ++ 3 % (&gt;L:LayerIntersections)</Script>
                </MouseClick>
            </MouseArea>
            <MouseArea id="GRND">
                <FloatPosition>184.000,189.000</FloatPosition>
                <Size>54,34</Size>
                <CursorType>Hand</CursorType>
                <MouseClick id="MouseClick">
                    <Script>0 (&gt;L:ListFirstVis)
(L:VehicleObjectDetail) 6 == if{ 
	4 (&gt;L:VehicleObjectDetail) 
	0x11 (&gt;L:Filter) 
	quit }
(L:VehicleObjectDetail) 4 == if{ 
	2 (&gt;L:VehicleObjectDetail) 
	0x09 (&gt;L:Filter) 
	quit }
(L:VehicleObjectDetail) 2 == if{ 
	6 (&gt;L:VehicleObjectDetail) 
	0x19 (&gt;L:Filter) 
	quit }</Script>
                </MouseClick>
            </MouseArea>
            <MouseArea id="HIGH AWY">
                <FloatPosition>184.000,150.000</FloatPosition>
                <Size>54,34</Size>
                <CursorType>Hand</CursorType>
                <HelpId>HELPID_GAUGE_RADAR_HIGH_AIRWAYS</HelpId>
                <MouseClick id="MouseClick">
                    <Script>(L:LayerHighAirways) ++ 3 % (&gt;L:LayerHighAirways)</Script>
                </MouseClick>
            </MouseArea>
            <MouseArea id="ARSPC">
                <FloatPosition>184.000,112.000</FloatPosition>
                <Size>54,34</Size>
                <CursorType>Hand</CursorType>
                <HelpId>HELPID_GAUGE_RADAR_AIRSPACE</HelpId>
                <MouseClick id="MouseClick">
                    <Script>(L:LayerAirspaces) ++ 2 % (&gt;L:LayerAirspaces)</Script>
                </MouseClick>
            </MouseArea>
            <MouseArea id="TAG">
                <FloatPosition>184.000,34.000</FloatPosition>
                <Size>54,34</Size>
                <CursorType>Hand</CursorType>
                <HelpId>HELPID_GAUGE_RADAR_AIRCRAFT_TAGS</HelpId>
                <MouseClick id="MouseClick">
                    <Script>(L:LayerTags) ++ 3 % (&gt;L:LayerTags)</Script>
                </MouseClick>
            </MouseArea>
            <MouseArea id="REPO TAG">
                <FloatPosition>184.000,73.000</FloatPosition>
                <Size>54,34</Size>
                <CursorType>Hand</CursorType>
                <HelpId>HELPID_GAUGE_RADAR_REPOSITION_TAG</HelpId>
                <MouseClick id="MouseClick">
                    <Script>(C:fs9gps:1:TagPosition) ++ 8 % (&gt;C:fs9gps:1:TagPosition) </Script>
                </MouseClick>
            </MouseArea>
            <MouseArea id="Close">
                <FloatPosition>224.000,3.000</FloatPosition>
                <Size>20,20</Size>
                <CursorType>Hand</CursorType>
                <HelpId>HELPID_GAUGE_CLOSE_POPUP_WINDOW</HelpId>
                <MouseClick id="MouseClick">
                    <Script>262 (&gt;K:PANEL_ID_TOGGLE)</Script>
                </MouseClick>
            </MouseArea>
        </MouseArea>
    </SimGauge.Gauge>
</SimBase.Document>