<?xml version="1.0" encoding="utf-8"?>
<Context Font="TwCenMT16" FontStyle="Base" ColorSet="Beige_Black" >

	<AlphaAnim ID="Timer" Speed="10" Pause="0" Cycle="Bounce" />

	<Grid ID="ClockOptionsPanel" Hidden="1" ConsumeMouse="1" Anchor="R,T" Offset="100,-10" Size="220,220" Style="Grid9DetailTwo140" >
		<Stack ID="ClockOptions" Anchor="L,T" Offset="20,45" Padding="0" StackGrowth="Bottom" >
			<Stack Anchor="R,T" StackGrowth="Right" Padding="3" >
			        <CheckBox ID="AlarmCheckBox" Anchor="L,C" />
				<Box Anchor="L,C" Size="34,24" Color="255,255,200,255" >
					<Box Anchor="C,C" Size="32,22" Color="0,0,0,255" >
						<EditBox ID="AlarmHours" EditMode="1" Size="30,18" Anchor="C,C" NumberInput="1" MaxLength="2" />
					</Box>
				</Box>
				<Label Anchor="L,C" String=":" />
				<Box Anchor="L,C" Size="34,24" Color="255,255,200,255" >
					<Box Anchor="C,C" Size="32,22" Color="0,0,0,255" >
						<EditBox ID="AlarmMinutes" EditMode="1" Size="30,18" Anchor="C,C" NumberInput="1" MaxLength="2" />
					</Box>
				</Box>
			</Stack>
		</Stack>
		<TextButton ID="ClockOptionsPanelClose" Anchor="C,B" Offset="0,22" String="TXT_KEY_CLOSE" Font="TwCenMT14" FontStyle="Shadow" MouseOverStyle="SoftShadow" />
	</Grid>
	<Instance Name="ClockOptionInstance">
		<RadioButton ID="ClockOption" Anchor="L,T" TextAnchor="R,C" IsChecked="0" RadioGroup="ClockOptionGroup" />
	</Instance>

	<Box ID="TopPanelMask" Hidden="1" ConsumeMouse="1" Anchor="C,T" Size="Full.30" Color="0,0,0,200" />

	<Image ID="TopPanelBarL" Hidden="1" ConsumeMouse="1" Anchor="L,T" Texture="TopPanelBar.dds" Size="512.32" >
		<Image Anchor="R,T" AnchorSide="O,I" Offset="-9,-30" Texture="Dec32x64Right.dds" Size="32.64" ConsumeMouse="true" />
	</Image>

	<Image ID="TopPanelBarR" Hidden="1" ConsumeMouse="1" Anchor="R,T" Texture="TopPanelBar.dds" Size="512.32" >
		<Image Anchor="L,T" AnchorSide="O,I" Offset="-9,-30" Texture="Dec32x64Left.dds" Size="32.64" ConsumeMouse="true" />
	</Image>
	<Image ID="TopPanelBar" Anchor="C,T" Texture="TopPanelBar.dds" Size="Full.32" ConsumeMouse="true" />

	<Stack ID="TopPanelInfoStack" Anchor="L,T" Padding="0" Offset="4,6" StackGrowth="Right" >

		<!-- Science  -->
		<TextButton ID="SciencePerTurn" Anchor="L,T" String="TXT_KEY_TOP_PANEL_SCIENCE_OFF"  Color="Science" ToolTipType="EUI_TopPanelProgressTooltip" />
		<Label ID="ScienceTurns" Anchor="L,T" Offset="0,9" Color0="Science,255" Color1="0,0,0,200" Font="TwCenMT14" FontStyle="Stroke" ForceNonIME="1" />
		<Box ID="ScienceBox" Hidden="1" Anchor="L,T" Offset="0,-6" Size="6,30" Color="0,0,0,255" >
			<Bar ID="ScienceBarShadow" Anchor="C,B" Offset="0,0" Size="4,30" FGColor="Science,128" Direction="Up"/>
			<Bar ID="ScienceBar" Anchor="C,B" Offset="0,0" Size="4,30" FGColor="Science,255" Direction="Up"/>
			<Box Anchor="L,C" Offset="0,0" Size="3,30" Color="0,0,0,64" />
			<Box Anchor="R,C" Offset="1,0" Size="1,30" Color="255,255,0,64" />
		</Box>
		<Button ID="TechIcon" Hidden="1" NoStateChange="1" Anchor="L,T" Offset="-5,-13" Size="45.45" ToolTipType="EUI_TopPanelProgressTooltip" />
		<Container Size="10,1" />

		<!-- Culture -->
		<TextButton ID="CultureString" Anchor="L,T" String="TXT_KEY_TOP_PANEL_POLICIES_OFF" Color0="Culture,255" Color1="0,0,0,200" ToolTipType="EUI_ItemTooltip" />
		<Label ID="CultureTurns" Anchor="L,T" Offset="0,9" Color0="Culture,255" Color1="0,0,0,200" Font="TwCenMT14" FontStyle="Stroke" ForceNonIME="1" />
		<Box ID="CultureBox" Hidden="1" Anchor="L,T" Offset="0,-6" Size="6,30" Color="0,0,0,255" >
			<Bar ID="CultureBarShadow" Anchor="C,B" Offset="0,0" Size="4,30" FGColor="Culture,128" Direction="Up"/>
			<Bar ID="CultureBar" Anchor="C,B" Offset="0,0" Size="4,30" FGColor="Culture,255" Direction="Up"/>
			<Box Anchor="L,C" Offset="0,0" Size="3,30" Color="0,0,0,64"/>
			<Box Anchor="R,C" Offset="1,0" Size="1,30" Color="255,255,0,64"/>
		</Box>
		<Container Size="10,1" />

		<!-- Faith -->
		<TextButton ID="FaithString" Anchor="L,T" String="" Color0="255,255,200,255" ToolTipType="EUI_ItemTooltip"/>
		<Label ID="FaithTurns" Hidden="1" Anchor="L,T" Offset="0,9" Color0="White,255" Color1="0,0,0,200" Font="TwCenMT14" FontStyle="Stroke" ForceNonIME="1" />
		<Box ID="FaithBox" Hidden="1" Anchor="L,T" Offset="0,-6" Size="6,30" Color="0,0,0,255" >
			<Bar ID="FaithBarShadow" Anchor="C,B" Offset="0,0" Size="4,30" FGColor="White,128" Direction="Up"/>
			<Bar ID="FaithBar" Anchor="C,B" Offset="0,0" Size="4,30" FGColor="White,255" Direction="Up"/>
			<Box Anchor="L,C" Offset="0,0" Size="3,30" Color="0,0,0,64"/>
			<Box Anchor="R,C" Offset="1,0" Size="1,30" Color="255,255,0,64"/>
		</Box>
		<Button ID="FaithIcon" Hidden="1" NoStateChange="1" Anchor="L,T" Offset="-5,-13" Size="45.45" ToolTipType="EUI_ItemTooltip" />
		<Container Size="10,1" />

		<!-- GreatPerson -->
		<Label ID="GpTurns" Anchor="L,T" Offset="0,9" Color0="Production,255" Color1="0,0,0,200" Font="TwCenMT14" FontStyle="Stroke" ForceNonIME="1" />
		<Box ID="GpBox" Hidden="1" Anchor="L,T" Offset="0,-6" Size="6,30" Color="0,0,0,255" >
			<Bar ID="GpBarShadow" Anchor="C,B" Offset="0,0" Size="4,30" FGColor="Production,128" Direction="Up"/>
			<Bar ID="GpBar" Anchor="C,B" Offset="0,0" Size="4,30" FGColor="Production,255" Direction="Up"/>
			<Box Anchor="L,C" Offset="0,0" Size="3,30" Color="0,0,0,64" />
			<Box Anchor="R,C" Offset="1,0" Size="1,30" Color="255,255,0,64" />
		</Box>
		<Button ID="GpIcon" Hidden="1" NoStateChange="1" Anchor="L,T" Offset="-5,-13" Size="45.45" ToolTipType="EUI_ItemTooltip" />
		<Container Size="10,1" />

		<!-- Happy & Golden Age -->
		<TextButton ID="HappinessString" Anchor="L,T" String="TXT_KEY_TOP_PANEL_HAPPINESS_OFF" ColorLayer0="255,255,200,255" ToolTipType="EUI_ItemTooltip"/>
		<Label ID="HappyTurns" Anchor="L,T" Offset="0,9" Color0="White,255" Color1="0,0,0,200" Font="TwCenMT14" FontStyle="Stroke" ForceNonIME="1" />
		<Box ID="HappyBox" Hidden="1" Anchor="L,T" Offset="0,-6" Size="6,30" Color="0,0,0,255" >
			<Bar ID="HappyBarShadow" Anchor="C,B" Offset="0,0" Size="4,30" FGColor="White,128" Direction="Up"/>
			<Bar ID="HappyBar" Anchor="C,B" Offset="0,0" Size="4,30" FGColor="White,255" Direction="Up"/>
			<Box Anchor="L,C" Offset="0,0" Size="3,30" Color="0,0,0,64"/>
			<Box Anchor="R,C" Offset="1,0" Size="1,30" Color="255,255,0,64"/>
		</Box>
		<TextButton ID="GoldenAgeString" String="[ICON_GOLDEN_AGE]" Anchor="L,T" ColorLayer0="255,255,255,255" ToolTipType="EUI_ItemTooltip" >
			<AlphaAnim ID="GoldenAgeAnim" Hidden="1" Anchor="C,C" Offset="0,1" Size="48,48" Texture="TopPanelGoldenAge.dds" Sampler="Linear" Pause="0" Cycle="Bounce" Speed="1" AlphaStart="0" AlphaEnd="1" />
		</TextButton>
		<Container Size="10,1" />

		<!-- Gold  -->
		<TextButton ID="GoldPerTurn" Anchor="L,T" String="000 (+000)" ColorLayer0="255,235,0,255" ToolTipType="EUI_ItemTooltip"/>

		<!-- Warnings  -->
		<Label String = " "/>
		<Image ID="UnitSupplyString" Anchor="L,T" Offset="2,-4" Texture="OverSupplyLimit.dds" Size="20.20" />
		<Label ID="WarningString" Anchor="L,T" />
	</Stack>

	<Stack ID="TopPanelDiploStack" Anchor="R,T" Offset="0,6" Padding="10" StackGrowth="Left" >

		<Button	ID="ExitCityScreen" Anchor="R,T" Offset="0,-8" Size="32,32" Texture="IconFrame32Delete.dds" ToolTip="TXT_KEY_CITYVIEW_RETURN_TT" Hidden="1" />

		<Button	ID="MenuButton" Anchor="R,T" Offset="0,-6" Texture="MenuButton.dds" Size="28,28" ToolTip="TXT_KEY_MENU_TOOLTIP"/>

		<Button ID="CivilopediaButton" Anchor="R,T" Offset="0,-6" Texture="HelpButton.dds" Size="28,28" ToolTip="TXT_KEY_CIVILOPEDIA_TOOLTIP"/>

		<!-- Time -->
		<TextButton ID="CurrentTime" Hidden="1" Anchor="R,T" />

		<!-- Date -->
		<TextButton ID="CurrentDate" Anchor="R,T" />

		<!-- Turn -->
		<TextButton ID="CurrentTurn" Anchor="R,T" />

		<!-- Resources -->
		<TextButton ID="ResourceString" Anchor="R,T" ColorLayer0="255,0,255,255" ToolTipType="EUI_ItemTooltip" />

		<!-- Trade Routes -->
		<TextButton ID="InternationalTradeRoutes" Anchor="R,T" String="" ColorLayer0="255,235,0,255" ToolTipType="EUI_ItemTooltip" />

		<!-- Tourism -->
		<TextButton ID="TourismString" Anchor="R,T" String="" ColorLayer0="255,255,200,255" ToolTipType="EUI_ItemTooltip" />
	</Stack>

	<Instance Name="ResourceInstance">
		<Image ID="Image" Size="28,28" Offset="0,-6" TextureOffset="48,48" Sampler="Linear" Hidden="1">
			<Button ID="Count" Size="28,28" String="?" TextAnchor="R,B" Font="TwCenMT16" FontStyle="Stroke" Color0="Beige,255" Color1="Black,155" ToolTipType="EUI_ItemTooltip" />
		</Image>
	</Instance>


	<!-- Compatibility -->
	<ToolTipType Name="TooltipTypeTopPanel" >
		<Grid Size="530,90" Offset="8.0" Padding="8,8" Style="GridBlack8"  ID="TopPanelMouseover" NoClip="1" >
			<Label Offset="12,12" Font="TwCenMT16" ID="TooltipLabel" String="Brief description" LeadingOffset="-5" WrapWidth="512" />
		</Grid>
	</ToolTipType>

</Context>