<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\..\FrameXML\UI.xsd">
	<Script file="Blizzard_ArchaeologyUI.lua"/>

<!--size=512,256
<Texture name="Arch-Icon-Header.png" >
	<Size x="370" y="79"/>	
	<TexCoords left="0.00195313" right="0.72460938" top="0.00390625" bottom="0.31250000"/>	
</Texture>
<Texture name="Arch-Complete-Selected.png" >
	<Size x="63" y="57"/>	
	<TexCoords left="0.72851563" right="0.85156250" top="0.00390625" bottom="0.22656250"/>	
</Texture>
<Texture name="Arch-Summary-Selected.png" >
	<Size x="63" y="57"/>	
	<TexCoords left="0.85546875" right="0.97851563" top="0.00390625" bottom="0.22656250"/>	
</Texture>
<Texture name="Arch-Border-Complete.png" >
	<Size x="212" y="60"/>	
	<TexCoords left="0.00195313" right="0.41601563" top="0.32031250" bottom="0.55468750"/>	
</Texture>
<Texture name="Arch-Detail-Big-Right.png" >
	<Size x="54" y="34"/>	
	<TexCoords left="0.00195313" right="0.10742188" top="0.56250000" bottom="0.69531250"/>	
</Texture>
<Texture name="Arch-Detail-Big-Left.png" >
	<Size x="54" y="34"/>	
	<TexCoords left="0.00195313" right="0.10742188" top="0.70312500" bottom="0.83593750"/>	
</Texture>
<Texture name="Arch-Detail-Small-Right.png" >
	<Size x="42" y="27"/>	
	<TexCoords left="0.00195313" right="0.08398438" top="0.84375000" bottom="0.94921875"/>	
</Texture>
<Texture name="Arch-Keystone.png" >
	<Size x="51" y="56"/>	
	<TexCoords left="0.11132813" right="0.21093750" top="0.56250000" bottom="0.78125000"/>	
</Texture>
<Texture name="Arch-Detail-Small-Left.png" >
	<Size x="42" y="27"/>	
	<TexCoords left="0.11132813" right="0.19335938" top="0.78906250" bottom="0.89453125"/>	
</Texture>
<Texture name="Arch-Summary-Norm.png" >
	<Size x="48" y="57"/>	
	<TexCoords left="0.21484375" right="0.30859375" top="0.56250000" bottom="0.78515625"/>	
</Texture>
<Texture name="Arch-Icon-Tab-Horde.png" >
	<Size x="30" y="37"/>	
	<TexCoords left="0.21484375" right="0.27343750" top="0.79296875" bottom="0.93750000"/>	
</Texture>
<Texture name="Arch-Complete-Norm.png" >
	<Size x="48" y="57"/>	
	<TexCoords left="0.31250000" right="0.40625000" top="0.56250000" bottom="0.78515625"/>	
</Texture>
<Texture name="Arch-Icon-Tab-Alliance.png" >
	<Size x="30" y="37"/>	
	<TexCoords left="0.31250000" right="0.37109375" top="0.79296875" bottom="0.93750000"/>	
</Texture>
<Texture name="Arch-Icon-Ribbon-Horde.png" >
	<Size x="27" y="33"/>	
	<TexCoords left="0.41992188" right="0.47265625" top="0.32031250" bottom="0.44921875"/>	
</Texture>
<Texture name="Arch-Icon-Ribbon-Alliance.png" >
	<Size x="27" y="33"/>	
	<TexCoords left="0.41992188" right="0.47265625" top="0.45703125" bottom="0.58593750"/>	
</Texture>-->

	
	
	
	
	
	<Button name="ArchaeologyRaceTemplate" virtual="true" alpha="0.83">
		<Animations>
			<AnimationGroup parentKey="readyAnim" looping="REPEAT">
				<Alpha target="$parentGlow" change="1.0" duration="0.9" order="1"/>
				<Alpha target="$parentGlow" change="-1.0" duration="0.9" order="2"/>
			</AnimationGroup>
		</Animations>
		
		<Size x="82" y="93"/>
		<Layers>
			<Layer>
				<FontString inherits="SystemFont_Med1" justifyH="CENTER" text="RACES" parentKey="raceName">
					<Anchors>
						<Anchor point="TOP" relativePoint="BOTTOM" x="0" y="6"/>
					</Anchors>
					<Color r="0.25" g="0.13" b="0"/>
				</FontString>
				<Texture name="$parentGlow" parentKey="glow" file="Interface\Archeology\Arch-TempLogo" alphaMode="ADD" alpha="0">
					<Size x="82" y="93"/>
					<Anchors>
						<Anchor point="TOP" x="0" y="0"/>
					</Anchors>
					<TexCoords left="0.0" right="0.5703" top="0.0" bottom="0.6484"/>
					<Color r="0.5" g="0.5" b="0.7" a="0.1"/>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnClick>
				ArchaeologyFrame_ShowArtifact(self:GetID() + ((ArchaeologyFrame.summaryPage.currentPage - 1) * ARCHAEOLOGY_MAX_RACES));
				PlaySound("igSpellBookOpen");
			</OnClick>
			<OnDisable>
				SetDesaturation(self:GetNormalTexture(), true);
				self:SetAlpha(0.5);
				self.raceName:SetText("");
			</OnDisable>
			<OnEnable>
				SetDesaturation(self:GetNormalTexture(), false);
				self:SetAlpha(0.83);
			</OnEnable>
		</Scripts>
		
		<NormalTexture file="Interface\Archeology\Arch-TempLogo">
			<TexCoords left="0.0" right="0.5703" top="0.0" bottom="0.6484"/>
		</NormalTexture>
		<HighlightTexture file="Interface\Archeology\Arch-TempLogo" alphaMode="ADD">
			<TexCoords left="0.0" right="0.5703" top="0.0" bottom="0.6484"/>
			<Color r="0.5" g="0.5" b="1" a="0.3"/>
		</HighlightTexture>
	</Button>	
	<Button name="ArchaeologyArtifactTemplate" motionScriptsWhileDisabled="true" virtual="true" hidden="true">
		<Size x="200" y="44"/>
		<Layers>
			<Layer level="BORDER">
				<Texture name="$parentBorder" file="Interface\Archeology\ArchaeologyParts" parentKey="border">
					<Anchors>
						<Anchor point="CENTER" x="0" y="-1"/>
					</Anchors>
					<Size x="212" y="58"/>
					<TexCoords left="0.00195313" right="0.41601563" top="0.32031250" bottom="0.55468750"/>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture name="$parentBg">
					<Color r="0.0" g="0.0" b="0.0" a="0.2"/>
				</Texture>
				<Texture name="$parentIcon" file="Interface\Icons\Ability_ThunderClap" parentKey="icon">
					<Size x="44"  y="44"/>
					<Anchors>
						<Anchor point="LEFT" x="0" y="0"/>
					</Anchors>
				</Texture>
				<FontString name="$parentArtifactName" inherits="SystemFont_Med1" justifyH="LEFT" text="RACES" parentKey="artifactName">
					<Size x="130" y="30"/>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentIcon"  relativePoint="RIGHT" x="12" y="6"/>
					</Anchors>
					<Color r="0.0" g="0.0" b="0"/>
				</FontString>
				<FontString name="$parentArtifactSubText" inherits="SystemFont_Med1" justifyH="LEFT" text="RACES" parentKey="artifactSubText">
					<Size x="130" y="12"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentArtifactName" relativePoint="BOTTOMLEFT" x="0" y="4"/>
					</Anchors>
					<Color r="0.25" g="0.13" b="0" a="0.7"/>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnClick>
				ArchaeologyFrame_ShowArtifact(self.raceIndex + ((ArchaeologyFrame.summaryPage.currentPage - 1) * ARCHAEOLOGY_MAX_RACES), self.projectIndex);
				PlaySound("igSpellBookOpen");
			</OnClick>
			<OnEnter>
				GameTooltip:SetOwner(self, "ANCHOR_BOTTOMRIGHT");
				GameTooltip:AddLine(self.artifactName:GetText(), HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b, true);
				GameTooltip:AddLine(self.spellDescription, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, true);
				
				GameTooltip:AddLine(" ");
				
				local adate = date("*t", self.firstComletionTime);
				GameTooltip:AddLine(ARCHAEOLOGY_TIMESTAMP.." |cffffffff"..string.format(SHORTDATE, adate.day, adate.month, adate.year).." "..
												GameTime_GetFormattedTime(adate.hour, adate.min, true).."|r");
				GameTooltip:AddLine(string.format(ARCHAEOLOGY_COMPLETION, self.completionCount));
				GameTooltip:Show();
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
		<HighlightTexture alphaMode="ADD">
			<Color r="0.2" g="0.2" b="0.2" a="0.4"/>
		</HighlightTexture>
	</Button>
	<Button name="KeystoneTemplate" virtual="true">
		<Size x="51" y="56"/>
		<Layers>
			<Layer level="OVERLAY">
				<Texture name="$parentIcon" parentKey="icon" mask="Interface\Archeology\Arch-Keystone-Mask">
					<Size x="36" y="36"/>
					<Anchors>
						<Anchor point="CENTER" x="0" y="0"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnClick>
				ArchaeologyFrame_KeyStoneClick(self);
				GameTooltip:SetOwner(self, "ANCHOR_LEFT");
				GameTooltip:SetText(self.tooltip, NORMAL_FONT_COLOR[1], NORMAL_FONT_COLOR[2], NORMAL_FONT_COLOR[3], 1, true);
				PlaySound("igMainMenuOptionCheckBoxOn");
			</OnClick>
			<OnEnter>
				GameTooltip:SetOwner(self, "ANCHOR_LEFT");
				GameTooltip:SetText(self.tooltip, NORMAL_FONT_COLOR[1], NORMAL_FONT_COLOR[2], NORMAL_FONT_COLOR[3], 1, true);
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
			<OnEnable>
				self:SetAlpha(1.0);
			</OnEnable>
			<OnDisable>
				self:SetAlpha(0.3);
			</OnDisable>
		</Scripts>
		<NormalTexture file="Interface\Archeology\ArchaeologyParts">
			<Size x="51" y="56"/>	
			<TexCoords left="0.11132813" right="0.21093750" top="0.56250000" bottom="0.78125000"/>
		</NormalTexture>
		<HighlightTexture file="Interface\Archeology\ArchaeologyParts" alphaMode="ADD">
			<Size x="51" y="56"/>	
			<TexCoords left="0.11132813" right="0.21093750" top="0.56250000" bottom="0.78125000"/>
			<Color r="0.8" g="0.8" b="0.8" a="0.4"/>
		</HighlightTexture>
	</Button>
	
	
	
	

	<Frame name="ArchaeologyFrame" toplevel="true" enableMouse="true" hidden="true" parent="UIParent" inherits="ButtonFrameTemplate" frameStrata="MEDIUM">
		<Size x="550" y="525"/>
		<Layers>
			<Layer level="OVERLAY">
				<Texture name="$parentFactionIcon" file="Interface\Archeology\ArchaeologyParts" parentKey="factionIcon">
					<Size x="27" y="33"/>
					<Anchors>
						<Anchor point="LEFT" x="41" y="-10"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="BACKGROUND">
				<Texture name="$parentBgLeft" file="Interface\Archeology\Arch-BookItemLeft" parentKey="bgLeft">
					<Anchors>
						<Anchor point="TOPLEFT" x="2" y="-2" relativeTo="$parentInset" />
					</Anchors>
				</Texture>
				<Texture name="$parentBgRight" file="Interface\Archeology\Arch-BookItemRight" parentKey="bgRight">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentBgLeft" relativePoint="TOPRIGHT" />
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="$parentRaceFilter" inherits="UIDropDownMenuTemplate" enableMouse="true" parentKey="raceFilterDropDown" hidden="true">
				<Anchors>
					<Anchor point="TOPRIGHT"  x="-30" y="-50"/>
				</Anchors>
				<Scripts>
					<OnShow>
						ArchaeologyFrame.rankBar:ClearAllPoints();
						ArchaeologyFrame.rankBar:SetPoint("TOPLEFT", 104, -60);
					</OnShow>
					<OnHide>
						ArchaeologyFrame.rankBar:ClearAllPoints();
						ArchaeologyFrame.rankBar:SetPoint("TOP", 20, -60);
					</OnHide>
				</Scripts>
			</Frame>
			<StatusBar name="$parentRankBar" drawLayer="BACKGROUND" enableMouse="false" parentKey="rankBar">
				<Size>
					<AbsDimension x="246" y="13"/>
				</Size>
				<Anchors>
					<Anchor point="TOP" x="20" y="-60"/>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parentSkillRank" inherits="TextStatusBarText" justifyH="CENTER" parentKey="text">
							<Size>
								<AbsDimension x="0" y="9"/>
							</Size>
							<Anchors>
								<Anchor point="CENTER">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<Texture name="$parentBorder" file="Interface\PaperDollInfoFrame\UI-Character-Skills-BarBorder">
							<Size>
								<AbsDimension x="255" y="29"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT" x="-5" y="0"/>
							</Anchors>
						</Texture>
					</Layer>
					<Layer level="BACKGROUND">
						<Texture name="$parentBackground">
							<Anchors>
								<Anchor point="TOPLEFT" x="1" y="-1"/>
								<Anchor point="BOTTOMRIGHT" x="-1" y="1"/>
							</Anchors>
							<Color r="0.0" g="0.0" b="0.0" a="1.0"/>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnEnter>
						GameTooltip:SetOwner(self, "ANCHOR_BOTTOMRIGHT");
						GameTooltip:AddLine(ARCHAEOLOGY_RANK_TOOLTIP, HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b, true);
						GameTooltip:Show();
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
				<BarTexture name="$parentBar" file="Interface\PaperDollInfoFrame\UI-Character-Skills-Bar"/>
				<BarColor r="0.03125" g="0.85" b="0.0" />
			</StatusBar>
			<Button name="$parentSummarytButton" parentKey="tab1" id="1">
				<Size x="63" y="57"/>
				<Anchors>
					<Anchor point="TOPLEFT" x="-22" y="-50" relativePoint="TOPRIGHT"/>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<Texture name="$parentFactionIcon" file="Interface\Archeology\ArchaeologyParts" parentKey="factionIcon">
							<Size x="30" y="37"/>
							<Anchors>
								<Anchor point="CENTER" x="-6" y="0"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnClick>
						ArchaeologyFrame_OnTabClick(self)
						PlaySound("igSpellBookOpen");
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(self, "ANCHOR_BOTTOMRIGHT");
						GameTooltip:SetText(ARCHAEOLOGY_CURRENT);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
				<NormalTexture file="Interface\Archeology\ArchaeologyParts">
					<Size x="63" y="57"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="0" y="0"/>
					</Anchors>
					<TexCoords left="0.85546875" right="0.97851563" top="0.00390625" bottom="0.22656250"/>
				</NormalTexture>
				<HighlightTexture file="Interface\Archeology\ArchaeologyParts" alphaMode="ADD">
					<Size x="63" y="57"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="0" y="0"/>
					</Anchors>
					<TexCoords left="0.85546875" right="0.97851563" top="0.00390625" bottom="0.22656250"/>
					<Color r="1" g="1" b="1" a="0.3"/>
				</HighlightTexture>
			</Button>
			<Button name="$parentCompletedButton"  parentKey="tab2" id="2">
				<Size x="63" y="57"/>
				<Anchors>
					<Anchor point="TOPLEFT" x="-22" y="-120" relativePoint="TOPRIGHT"/>
				</Anchors>
				<Scripts>
					<OnClick>
						ArchaeologyFrame_OnTabClick(self)
						PlaySound("igSpellBookOpen");
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(self, "ANCHOR_BOTTOMRIGHT");
						GameTooltip:SetText(ARCHAEOLOGY_COMPLETED);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
				<NormalTexture file="Interface\Archeology\ArchaeologyParts">
					<Size x="48" y="57"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="0" y="0"/>
					</Anchors>
					<TexCoords left="0.31250000" right="0.40625000" top="0.56250000" bottom="0.78515625"/>
				</NormalTexture>
				<HighlightTexture file="Interface\Archeology\ArchaeologyParts" alphaMode="ADD">
					<Size x="48" y="57"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="0" y="0"/>
					</Anchors>
					<TexCoords left="0.31250000" right="0.40625000" top="0.56250000" bottom="0.78515625"/>
					<Color r="1" g="1" b="1" a="0.3"/>
				</HighlightTexture>
			</Button>
			<Frame name="$parentSummaryPage" parentKey="summaryPage">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentInset" x="45" y="-15"/>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parentInset"/>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="$parentTitle" inherits="SystemFont_Med1" justifyH="CENTER" text="RACES">
							<Anchors>
								<Anchor point="TOP" x="0" y="-55"/>
							</Anchors>
							<Color r="0.25" g="0.13" b="0"/>
						</FontString>
						<Texture file="Interface\Archeology\ArchaeologyParts">
							<Anchors>
								<Anchor point="RIGHT" relativeTo="$parentTitle" relativePoint="LEFT" x="-10"/>
							</Anchors>
							<Size x="42" y="27"/>
							<TexCoords left="0.11132813" right="0.19335938" top="0.78906250" bottom="0.89453125"/>
						</Texture>
						<Texture file="Interface\Archeology\ArchaeologyParts">
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentTitle" relativePoint="RIGHT" x="10"/>
							</Anchors>
							<Size x="42" y="27"/>
							<TexCoords left="0.00195313" right="0.08398438" top="0.84375000" bottom="0.94921875"/>
						</Texture>
						<FontString name="$parentPageText" inherits="GameFontBlack" justifyH="RIGHT" parentKey="pageText" text="PAGE">
							<Size>
								<AbsDimension x="102" y="0"/>
							</Size>
							<Anchors>
								<Anchor point="BOTTOMRIGHT"  x="-110" y="22"/>
							</Anchors>
							<Color r="0.13" g="0.06" b="0"/>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Button name="$parentRace1" inherits="ArchaeologyRaceTemplate" id="1" parentKey="race1">
						<Anchors>
							<Anchor point="TOPLEFT" x="60" y="-85"/>
						</Anchors>
					</Button>
					<Button name="$parentRace2" inherits="ArchaeologyRaceTemplate" id="2" parentKey="race2">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentRace1" relativePoint="TOPRIGHT" x="13"/>
						</Anchors>
					</Button>
					<Button name="$parentRace3" inherits="ArchaeologyRaceTemplate" id="3" parentKey="race3">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentRace2" relativePoint="TOPRIGHT" x="13"/>
						</Anchors>
					</Button>
					<Button name="$parentRace4" inherits="ArchaeologyRaceTemplate" id="4" parentKey="race4">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentRace3" relativePoint="TOPRIGHT" x="13"/>
						</Anchors>
					</Button>
					<Button name="$parentRace5" inherits="ArchaeologyRaceTemplate" id="5" parentKey="race5">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentRace1" relativePoint="BOTTOMLEFT" y="-30"/>
						</Anchors>
					</Button>
					<Button name="$parentRace6" inherits="ArchaeologyRaceTemplate" id="6" parentKey="race6">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentRace5" relativePoint="TOPRIGHT" x="13"/>
						</Anchors>
					</Button>
					<Button name="$parentRace7" inherits="ArchaeologyRaceTemplate" id="7" parentKey="race7">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentRace6" relativePoint="TOPRIGHT" x="13"/>
						</Anchors>
					</Button>
					<Button name="$parentRace8" inherits="ArchaeologyRaceTemplate" id="8" parentKey="race8">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentRace7" relativePoint="TOPRIGHT" x="13"/>
						</Anchors>
					</Button>
					<Button name="$parentRace9" inherits="ArchaeologyRaceTemplate" id="9" parentKey="race9">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentRace5" relativePoint="BOTTOMLEFT" y="-30"/>
						</Anchors>
					</Button>
					<Button name="$parentRace10" inherits="ArchaeologyRaceTemplate" id="10" parentKey="race10">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentRace9" relativePoint="TOPRIGHT" x="13"/>
						</Anchors>
					</Button>
					<Button name="$parentRace11" inherits="ArchaeologyRaceTemplate" id="11" parentKey="race11">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentRace10" relativePoint="TOPRIGHT" x="13"/>
						</Anchors>
					</Button>
					<Button name="$parentRace12" inherits="ArchaeologyRaceTemplate" id="12" parentKey="race12">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentRace11" relativePoint="TOPRIGHT" x="13"/>
						</Anchors>
					</Button>
					<Button name="$parentPrevPageButton"  inherits="UIPanelSquareButton" parentKey="prevPageButon">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$parentPageText" relativePoint="RIGHT" x="8"/>
						</Anchors>
						<Scripts>
							<OnLoad>
								SquareButton_SetIcon(self, "LEFT");
							</OnLoad>
							<OnClick>
								ArchaeologyFrameSummary_PageClick(self, false);
								PlaySound("igSpellBookOpen");
							</OnClick>
						</Scripts>
					</Button>
					<Button name="$parentNextPageButton"  inherits="UIPanelSquareButton" parentKey="nextPageButon">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$parentPrevPageButton" relativePoint="RIGHT" x="8" y="0"/>
						</Anchors>
						<Scripts>
							<OnLoad>
								SquareButton_SetIcon(self, "RIGHT");
							</OnLoad>
							<OnClick>
								ArchaeologyFrameSummary_PageClick(self, true);
								PlaySound("igSpellBookOpen");
							</OnClick>
						</Scripts>
					</Button>
				</Frames>
			</Frame>
			<Frame name="$parentCompletedPage" parentKey="completedPage" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentInset" x="45" y="-15"/>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parentInset"/>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString inherits="SystemFont_Med1" justifyH="CENTER" text="ARCHAEOLOGY_NONE_COMPLETED" parentKey="infoText">
							<Anchors>
								<Anchor point="CENTER"/>
							</Anchors>
							<Size x="380" y="0"/>
							<Color r="0.25" g="0.13" b="0"/>
						</FontString>
						
						<FontString name="$parentTitle" inherits="SystemFont_Med3" justifyH="CENTER" text="ARCHAEOLOGY_COMPLETED" parentKey="titleBig">
							<Anchors>
								<Anchor point="TOP" x="0" y="-55"/>
							</Anchors>
							<Color r="0.25" g="0.13" b="0"/>
						</FontString>
						<Texture file="Interface\Archeology\ArchaeologyParts" parentKey="titleBigLeft">
							<Anchors>
								<Anchor point="RIGHT" relativeTo="$parentTitle" relativePoint="LEFT" x="-10"/>
							</Anchors>
							<Size x="54" y="34"/>
							<TexCoords left="0.00195313" right="0.10742188" top="0.70312500" bottom="0.83593750"/>
						</Texture>
						<Texture file="Interface\Archeology\ArchaeologyParts" parentKey="titleBigRight">
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentTitle" relativePoint="RIGHT" x="10"/>
							</Anchors>
							<Size x="54" y="34"/>
							<TexCoords left="0.00195313" right="0.10742188" top="0.56250000" bottom="0.69531250"/>
						</Texture>
						
						<FontString name="$parentTitleTop" inherits="SystemFont_Med1" justifyH="CENTER" parentKey="titleTop">
							<Anchors>
								<Anchor point="TOP" x="0" y="-55"/>
							</Anchors>
							<Color r="0.25" g="0.13" b="0"/>
						</FontString>
						<Texture file="Interface\Archeology\ArchaeologyParts" parentKey="titleTopLeft">
							<Anchors>
								<Anchor point="RIGHT" relativeTo="$parentTitleTop" relativePoint="LEFT" x="-8"/>
							</Anchors>
							<Size x="42" y="27"/>
							<TexCoords left="0.11132813" right="0.19335938" top="0.78906250" bottom="0.89453125"/>
						</Texture>
						<Texture file="Interface\Archeology\ArchaeologyParts" parentKey="titleTopRight">
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentTitleTop" relativePoint="RIGHT" x="8"/>
							</Anchors>
							<Size x="42" y="27"/>
							<TexCoords left="0.00195313" right="0.08398438" top="0.84375000" bottom="0.94921875"/>
						</Texture>
						
						<FontString name="$parentTitleMid" inherits="SystemFont_Med1" justifyH="CENTER" parentKey="titleMid" text="ARCHAEOLOGY_COMMON_COMPLETED">
							<Anchors>
								<Anchor point="TOP" x="0" y="-55"/>
							</Anchors>
							<Color r="0.25" g="0.13" b="0"/>
						</FontString>
						<Texture file="Interface\Archeology\ArchaeologyParts" parentKey="titleMidLeft">
							<Anchors>
								<Anchor point="RIGHT" relativeTo="$parentTitleMid" relativePoint="LEFT" x="-8"/>
							</Anchors>
							<Size x="42" y="27"/>
							<TexCoords left="0.11132813" right="0.19335938" top="0.78906250" bottom="0.89453125"/>
						</Texture>
						<Texture file="Interface\Archeology\ArchaeologyParts" parentKey="titleMidRight">
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentTitleMid" relativePoint="RIGHT" x="8"/>
							</Anchors>
							<Size x="42" y="27"/>
							<TexCoords left="0.00195313" right="0.08398438" top="0.84375000" bottom="0.94921875"/>
						</Texture>
						<FontString name="$parentPageText" inherits="GameFontBlack" justifyH="RIGHT" parentKey="pageText" text="PAGE">
							<Size>
								<AbsDimension x="102" y="0"/>
							</Size>
							<Anchors>
								<Anchor point="BOTTOMRIGHT"  x="-110" y="22"/>
							</Anchors>
							<Color r="0.13" g="0.06" b="0"/>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Button name="$parentArtifact1" inherits="ArchaeologyArtifactTemplate" parentKey="artifact1">
						<Anchors>
							<Anchor point="TOPLEFT" x="35" y="-90"/>
						</Anchors>
					</Button>
					<Button name="$parentArtifact3" inherits="ArchaeologyArtifactTemplate" parentKey="artifact3">
						<Anchors>
							<Anchor point="TOP" relativeTo="$parentArtifact1" relativePoint="BOTTOM" x="0" y="-15"/>
						</Anchors>
					</Button>
					<Button name="$parentArtifact5" inherits="ArchaeologyArtifactTemplate" parentKey="artifact5">
						<Anchors>
							<Anchor point="TOP" relativeTo="$parentArtifact3" relativePoint="BOTTOM" x="0" y="-15"/>
						</Anchors>
					</Button>
					<Button name="$parentArtifact7" inherits="ArchaeologyArtifactTemplate" parentKey="artifact7">
						<Anchors>
							<Anchor point="TOP" relativeTo="$parentArtifact5" relativePoint="BOTTOM" x="0" y="-15"/>
						</Anchors>
					</Button>
					<Button name="$parentArtifact9" inherits="ArchaeologyArtifactTemplate" parentKey="artifact9">
						<Anchors>
							<Anchor point="TOP" relativeTo="$parentArtifact7" relativePoint="BOTTOM" x="0" y="-15"/>
						</Anchors>
					</Button>
					<Button name="$parentArtifact11" inherits="ArchaeologyArtifactTemplate" parentKey="artifact11">
						<Anchors>
							<Anchor point="TOP" relativeTo="$parentArtifact9" relativePoint="BOTTOM" x="0" y="-15"/>
						</Anchors>
					</Button>
					<Button name="$parentArtifact2" inherits="ArchaeologyArtifactTemplate" parentKey="artifact2">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$parentArtifact1" relativePoint="RIGHT" x="20" y="0"/>
						</Anchors>
					</Button>
					<Button name="$parentArtifact4" inherits="ArchaeologyArtifactTemplate" parentKey="artifact4">
						<Anchors>
							<Anchor point="TOP" relativeTo="$parentArtifact2" relativePoint="BOTTOM" x="0" y="-15"/>
						</Anchors>
					</Button>
					<Button name="$parentArtifact6" inherits="ArchaeologyArtifactTemplate" parentKey="artifact6">
						<Anchors>
							<Anchor point="TOP" relativeTo="$parentArtifact4" relativePoint="BOTTOM" x="0" y="-15"/>
						</Anchors>
					</Button>
					<Button name="$parentArtifact8" inherits="ArchaeologyArtifactTemplate" parentKey="artifact8">
						<Anchors>
							<Anchor point="TOP" relativeTo="$parentArtifact6" relativePoint="BOTTOM" x="0" y="-15"/>
						</Anchors>
					</Button>
					<Button name="$parentArtifact10" inherits="ArchaeologyArtifactTemplate" parentKey="artifact10">
						<Anchors>
							<Anchor point="TOP" relativeTo="$parentArtifact8" relativePoint="BOTTOM" x="0" y="-15"/>
						</Anchors>
					</Button>
					<Button name="$parentArtifact12" inherits="ArchaeologyArtifactTemplate" parentKey="artifact12">
						<Anchors>
							<Anchor point="TOP" relativeTo="$parentArtifact10" relativePoint="BOTTOM" x="0" y="-15"/>
						</Anchors>
					</Button>
					<Button name="$parentPrevPageButton"  inherits="UIPanelSquareButton" parentKey="prevPageButon">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$parentPageText" relativePoint="RIGHT" x="8"/>
						</Anchors>
						<Scripts>
							<OnLoad>
								SquareButton_SetIcon(self, "LEFT");
							</OnLoad>
							<OnClick>
								ArchaeologyFrame_PageClick(self, false);
								PlaySound("igSpellBookOpen");
							</OnClick>
						</Scripts>
					</Button>
					<Button name="$parentNextPageButton"  inherits="UIPanelSquareButton" parentKey="nextPageButon">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$parentPrevPageButton" relativePoint="RIGHT" x="8" y="0"/>
						</Anchors>
						<Scripts>
							<OnLoad>
								SquareButton_SetIcon(self, "RIGHT");
							</OnLoad>
							<OnClick>
								ArchaeologyFrame_PageClick(self, true);
								PlaySound("igSpellBookOpen");
							</OnClick>
						</Scripts>
					</Button>
				</Frames>
			</Frame>
			<Frame name="$parentArtifactPage" parentKey="artifactPage" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentInset" x="45" y="-15"/>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parentInset"/>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="$parentHistoryTitle" inherits="SystemFont_Med3" justifyH="CENTER" text="HISTORY" parentKey="historyTitle">
							<Anchors>
								<Anchor point="TOP" x="0" y="-40"/>
							</Anchors>
							<Color r="0.25" g="0.13" b="0"/>
						</FontString>
						<Texture file="Interface\Archeology\ArchaeologyParts">
							<Anchors>
								<Anchor point="RIGHT" relativeTo="$parentHistoryTitle" relativePoint="LEFT" x="-10"/>
							</Anchors>
							<Size x="54" y="34"/>
							<TexCoords left="0.00195313" right="0.10742188" top="0.70312500" bottom="0.83593750"/>
						</Texture>
						<Texture file="Interface\Archeology\ArchaeologyParts">
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentHistoryTitle" relativePoint="RIGHT" x="10"/>
							</Anchors>
							<Size x="54" y="34"/>
							<TexCoords left="0.00195313" right="0.10742188" top="0.56250000" bottom="0.69531250"/>
						</Texture>
						<Texture name="$parentIcon" file="Interface\Icons\Ability_ThunderClap" parentKey="icon">
							<Size x="62" y="62"/>
							<Anchors>
								<Anchor point="TOPLEFT" x="32" y="-46"/>
							</Anchors>
						</Texture>
						<FontString name="$parentArtifactName" inherits="GameFontNormalLarge" justifyH="LEFT" text="RACES" parentKey="artifactName">
							<Size x="330" y="0"/>
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentIcon"  relativePoint="RIGHT" x="12" y="10"/>
							</Anchors>
						</FontString>
						<FontString name="$parentArtifactSubText" inherits="GameFontNormal" justifyH="LEFT" text="RACES" parentKey="raceRarity">
							<Size x="330" y="12"/>
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parentArtifactName" relativePoint="BOTTOMLEFT" x="0" y="-3"/>
							</Anchors>
							<Color r="1" g="1" b="1"/>
						</FontString>
					</Layer>
					<Layer level="BORDER">
						<Texture name="$parentIconBG" file="Interface\Archeology\ArchaeologyParts">
							<Size x="368" y="79"/>
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentIcon" x="-10" y="1"/>
							</Anchors>
							<TexCoords left="0.00195313" right="0.72460938" top="0.00390625" bottom="0.31250000"/>
						</Texture>
					</Layer>
					<Layer level="BACKGROUND">
						<Texture name="$parentRaceBG" parentKey="raceBG">
							<Size x="256" y="300"/>
							<Anchors>
								<Anchor point="LEFT"  x="25" y="50"/>
							</Anchors>
							<TexCoords left="0" right="1" top="0" bottom="0.5859375"/>
						</Texture>
						<Texture name="$parentArtifactBG" parentKey="artifactBG">
							<Size x="420" y="240"/>
							<Anchors>
								<Anchor point="LEFT"  x="25" y="80"/>
							</Anchors>
							<TexCoords left="0" right="0.8203125" top="0" bottom="0.9375"/>
						</Texture>
					</Layer>
				</Layers>
				<Frames>
					<Button name="$parentBackButton" inherits="UIPanelButtonTemplate" text="BACK" parentKey="backButton">
						<Size x="80" y="22"/>
						<Anchors>
							<Anchor point="BOTTOMLEFT" x="30" y="40"/>
						</Anchors>
						<Scripts>
							<OnClick>
								ArchaeologyFrame.currentFrame = ArchaeologyFrame.completedPage;
								ArchaeologyFrame.artifactPage:Hide();
								ArchaeologyFrame.completedPage:Show();
								ArchaeologyFrame.raceFilterDropDown:Show();
								PlaySound("igMainMenuOptionCheckBoxOn");
							</OnClick>
						</Scripts>
					</Button>
					<Frame name="$parentSolveFrame" parentKey="solveFrame">
						<Size x="420" y="100"/>
						<Anchors>
							<Anchor point="BOTTOM" x="-8" y="30"/>
						</Anchors>
						<Frames>
							<Button name="$parentKeystone1" inherits="KeystoneTemplate" id="1" parentKey="keystone1">
								<Anchors>
									<Anchor point="BOTTOMLEFT" x="30"/>
								</Anchors>
							</Button>
							<Button name="$parentKeystone2" inherits="KeystoneTemplate" id="2" parentKey="keystone2">
								<Anchors>
									<Anchor point="LEFT" relativeTo="$parentKeystone1" relativePoint="RIGHT" x="10"/>
								</Anchors>
							</Button>
							<Button name="$parentKeystone3" inherits="KeystoneTemplate" id="3" parentKey="keystone3">
								<Anchors>
									<Anchor point="LEFT" relativeTo="$parentKeystone2" relativePoint="RIGHT" x="10"/>
								</Anchors>
							</Button>
							<Button name="$parentKeystone4" inherits="KeystoneTemplate" id="4" parentKey="keystone4">
								<Anchors>
									<Anchor point="LEFT" relativeTo="$parentKeystone3" relativePoint="RIGHT" x="10"/>
								</Anchors>
							</Button>
							<Button name="$parentSolveButton" inherits="UIPanelButtonTemplate" text="SOLVE" parentKey="solveButton">
								<Size x="90" y="22"/>
								<Anchors>
									<Anchor point="BOTTOMRIGHT" x="-10" y="20"/>
								</Anchors>
								<Scripts>
									<OnClick>
										SolveArtifact();
									</OnClick>
								</Scripts>
							</Button>
							<StatusBar name="$parentStatusBar" inherits="TextStatusBar"  parentKey="statusBar">
								<Size x="415" y="26"/>
								<Anchors>
									<Anchor point="TOP"  x="0" y="-11"/>
								</Anchors>
								<Layers>
									<Layer level="BACKGROUND">
										<Texture name="$parentBarBG" file="Interface\Archeology\Arch-Progress-Bg">
											<Size x="436" y="46"/>
											<Anchors>
												<Anchor point="CENTER"  x="0" y="2"/>
											</Anchors>
											<TexCoords left="0" right="0.84765625" top="0" bottom="0.65625"/>
										</Texture>
									</Layer>
									<Layer level="OVERLAY">
										<FontString name="$parentText" inherits="TextStatusBarText" parentKey="text">
											<Anchors>
												<Anchor point="CENTER">
													<Offset>
														<AbsDimension x="0" y="0"/>
													</Offset>
												</Anchor>
											</Anchors>
										</FontString>
									</Layer>
								</Layers>
								<Scripts>
									<OnEnter>
										GameTooltip:SetOwner(self, "ANCHOR_BOTTOMRIGHT");
										GameTooltip:AddLine(ARCHAEOLOGY_POJECTBAR_TOOLTIP, HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b, true);
										GameTooltip:Show();
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
								<BarTexture file="Interface\Archeology\Arch-Progress-Fill">
								</BarTexture>
							</StatusBar>
						</Frames>
					</Frame>
					<ScrollFrame name="$parentHistoryScroll" inherits="MinimalScrollFrameTemplate" parentKey="historyScroll">
						<Anchors>
							<Anchor point="TOP" relativeTo="$parentHistoryTitle" relativePoint="BOTTOM" y="-12"/>
						</Anchors>
						<Scripts>
							<OnLoad>
								self.scrollBarHideable = true;
								local name = self:GetName();
								_G[name.."ScrollBar"]:Hide();
								_G[name.."ScrollBarTrack"]:Hide();
							</OnLoad>
						</Scripts>
						<ScrollChild>
							<Frame name="$parentChild" parentKey="child" >
								<Anchors>
									<Anchor point="TOPLEFT"/>
								</Anchors>
								<Layers>
									<Layer level="ARTWORK">
										<FontString name="$parentText" inherits="SystemFont_Med1" justifyH="LEFT" justifyV="TOP" parentKey="text">
											<Anchors>
												<Anchor point="TOPLEFT" x="0" y="-2"/>
											</Anchors>
											<Color r="0.25" g="0.13" b="0"/>
										</FontString>
									</Layer>
								</Layers>
							</Frame>
						</ScrollChild>
					</ScrollFrame>
					<Frame name="$parentFinishedGlow" parentKey="glow">
						<Animations>
							<AnimationGroup parentKey="completeAnim">
								<Alpha change="1.0" duration="0.1" order="1" />
								<Alpha startDelay="0.1" change="-1.0" duration="0.5" order="2" />
							</AnimationGroup>
						</Animations>
						<Size x="512" y="512"/>
						<Anchors>
							<Anchor point="CENTER" x="9" y="-6"/>
						</Anchors>
						<Layers>
							<Layer level="OVERLAY">
								<Texture  name="$parentFinishedGlow" file="Interface\Archeology\Arch-FlareEffect" alphaMode="ADD">
								</Texture>
							</Layer>
						</Layers>
					</Frame>
				</Frames>
			</Frame>
			<Button name="$parentInfoButton" inherits="UIPanelInfoButton" parentKey="infoButton" id="0">
				<Anchors>
					<Anchor point="TOPLEFT"  x="60" y="-3" />
				</Anchors>
				<Scripts>
					<OnClick>
						ArchaeologyFrame_OnTabClick(self);
						PlaySound("igSpellBookOpen");
					</OnClick>
				</Scripts>
			</Button>
			<Frame name="$parentHelpPage" parentKey="helpPage" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentInset" x="45" y="-15"/>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parentInset"/>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="$parentTitle" inherits="SystemFont_Med3" justifyH="CENTER" parentKey="titleText">
							<Anchors>
								<Anchor point="TOP" x="0" y="-35"/>
							</Anchors>
							<Color r="0.25" g="0.13" b="0"/>
						</FontString>
						<Texture file="Interface\Archeology\ArchaeologyParts">
							<Anchors>
								<Anchor point="RIGHT" relativeTo="$parentTitle" relativePoint="LEFT" x="-10"/>
							</Anchors>
							<Size x="54" y="34"/>
							<TexCoords left="0.00195313" right="0.10742188" top="0.70312500" bottom="0.83593750"/>
						</Texture>
						<Texture file="Interface\Archeology\ArchaeologyParts">
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentTitle" relativePoint="RIGHT" x="10"/>
							</Anchors>
							<Size x="54" y="34"/>
							<TexCoords left="0.00195313" right="0.10742188" top="0.56250000" bottom="0.69531250"/>
						</Texture>
						
						<Texture name="$parentDigTex" file="Interface\Archeology\Arch-Help">
							<Size x="480" y="243"/>
							<Anchors>
								<Anchor point="BOTTOM" y="40"/>
							</Anchors>
							<TexCoords left="0" right="0.9375" top="0" bottom="0.94921875"/>
						</Texture>
						<FontString name="$parentDigTitle" inherits="SystemFont_Med3" justifyH="CENTER" text="ARCHAEOLOGY_DIG_HELP">
							<Anchors>
								<Anchor point="TOP" relativeTo="$parentDigTex" relativePoint="TOP" x="0" y="-25"/>
							</Anchors>
							<Color r="0.25" g="0.13" b="0"/>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<ScrollFrame name="$parentHelpScroll" inherits="MinimalScrollFrameTemplate">
						<Size x="400" y="120"/>
						<Anchors>
							<Anchor point="TOP" relativeTo="$parentTitle" relativePoint="BOTTOM" x="0" y="-10"/>
						</Anchors>
						<Scripts>
							<OnLoad>
								self.scrollBarHideable = true;
								local name = self:GetName();
								_G[name.."ScrollBar"]:Hide();
								_G[name.."ScrollBarTrack"]:Hide();
							</OnLoad>
						</Scripts>
						<ScrollChild>
							<Frame>
								<Size x="400" y="120"/>
								<Anchors>
									<Anchor point="TOPLEFT"/>
								</Anchors>
								<Layers>
									<Layer level="ARTWORK">
										<FontString name="$parentHelpText" inherits="SystemFont_Med1" justifyH="LEFT" nonspacewrap="true" justifyV="TOP" text="ARCHAEOLOGY_HELP">
											<Size x="400" y="0"/>
											<Anchors>
												<Anchor point="TOPLEFT" x="0" y="-4"/>
											</Anchors>
											<Color r="0.25" g="0.13" b="0"/>
										</FontString>
									</Layer>
								</Layers>
							</Frame>
						</ScrollChild>
					</ScrollFrame>
				</Frames>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad function="ArchaeologyFrame_OnLoad"/>
			<OnEvent function="ArchaeologyFrame_OnEvent"/>
			<OnShow function="ArchaeologyFrame_OnShow"/>
			<OnHide function="ArchaeologyFrame_OnHide"/>
		</Scripts>
	</Frame>
</Ui>