<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">

	<StatusBar name="AchievementFrameSummaryCategoryTemplate" drawLayer="BORDER" virtual="true">
		<Size x="234" y="21"/>
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="$parentLabel" inherits="GameFontNormal" text="" parentKey="label">
					<Anchors>
						<Anchor point="LEFT" x="6" y="4"/>
					</Anchors>
				</FontString>
				<FontString name="$parentText" inherits="GameFontHighlight" parentKey="text">
					<Size x="0" y="14"/>
					<Anchors>
						<Anchor point="RIGHT" x="-5" y="3"/>
					</Anchors>
				</FontString>
				<Texture name="$parentLeft" file="Interface\AchievementFrame\UI-Achievement-Header">
					<Size x="32" y="48"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="-15" y="16"/>
					</Anchors>
					<TexCoords left="0.423828125" right="0.486" top="0.56640625" bottom="0.75"/>
				</Texture>
				<Texture name="$parentRight" file="Interface\AchievementFrame\UI-Achievement-Header">
					<Size x="32" y="48"/>
					<Anchors>
						<Anchor point="TOPRIGHT" x="15" y="16"/>
					</Anchors>
					<TexCoords right="0.423828125" left="0.486" bottom="0.75" top="0.56640625"/>
				</Texture>
				<Texture name="$parentMiddle" file="Interface\AchievementFrame\UI-Achievement-Header">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentLeft" relativePoint="TOPRIGHT"/>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parentRight" relativePoint="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords right="0.486" left="0.889224609375" bottom="0.75" top="0.56640625"/>
				</Texture>
			</Layer>
			<Layer level="BACKGROUND">
				<Texture name="$parentFillBar">
					<Size x="0" y="15"/>
					<Color r="0" g="0" b="0" a="0.5"/>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Button name="$parentButton">
				<Anchors>
					<Anchor point="TOPLEFT"/>
					<Anchor point="BOTTOMRIGHT"/>
				</Anchors>
				<Frames>
					<Frame name="$parentHighlight" setAllPoints="true" hidden="true">
						<Layers>
							<Layer level="OVERLAY">
								<Texture name="$parentLeft" file="Interface\AchievementFrame\UI-Achievement-StatusBar-Highlight" alphaMode="ADD">
									<Size x="32" y="32"/>
									<Anchors>
										<Anchor point="TOPLEFT" x="-7" y="8"/>
									</Anchors>
									<TexCoords left="0" right="1" top="0" bottom="1"/>
								</Texture>
								<Texture name="$parentRight" file="Interface\AchievementFrame\UI-Achievement-StatusBar-Highlight" alphaMode="ADD">
									<Size x="32" y="32"/>
									<Anchors>
										<Anchor point="TOPRIGHT" x="7" y="8"/>
									</Anchors>
									<TexCoords right="0" left="1" top="0" bottom="1"/>
								</Texture>
								<Texture name="$parentMiddle" file="Interface\AchievementFrame\UI-Achievement-StatusBar-Highlight" alphaMode="ADD">
									<Anchors>
										<Anchor point="TOPLEFT" relativeTo="$parentLeft" relativePoint="TOPRIGHT"/>
										<Anchor point="BOTTOMRIGHT" relativeTo="$parentRight" relativePoint="BOTTOMLEFT"/>
									</Anchors>
									<TexCoords right="1" left="0.5" top="0" bottom="1"/>
								</Texture>
							</Layer>
						</Layers>
					</Frame>
				</Frames>
				<Scripts>
					<OnClick>
						AchievementFrameSummaryCategoryButton_OnClick(self, button, down);
					</OnClick>
					<OnEnter>
						_G[self:GetName().."Highlight"]:Show();
					</OnEnter>
					<OnLeave>
						_G[self:GetName().."Highlight"]:Hide();
					</OnLeave>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad>
				AchievementFrameSummaryCategory_OnLoad(self);
			</OnLoad>
			<OnShow>
				AchievementFrameSummaryCategory_OnShow(self);
			</OnShow>
			<OnEvent>
				AchievementFrameSummaryCategory_OnEvent(self, event, ...);
			</OnEvent>
		</Scripts>		
		<BarTexture name="$parentBar" file="Interface\PaperDollInfoFrame\UI-Character-Skills-Bar"/>
		<BarColor r="0" g="1" b="0"/>
	</StatusBar>
	<CheckButton name="AchievementCheckButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="15" y="15"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentText" inherits="GameFontNormalSmall" text="TRACK_ACHIEVEMENT">
					<Anchors>
						<Anchor point="LEFT" relativePoint="RIGHT"/>
					</Anchors>
					<Color r=".6" g=".6" b=".6" a="1"/>
				</FontString>
			</Layer>
		</Layers>		
		<HitRectInsets>
			<AbsInset left="0" right="-100" top="0" bottom="0"/>
		</HitRectInsets>
		<Scripts>
			<OnClick>
				if ( self:GetChecked() ) then
					PlaySound("igMainMenuOptionCheckBoxOn");
				else
					PlaySound("igMainMenuOptionCheckBoxOff");
				end
				local tracked = AchievementButton_ToggleTracking(self:GetParent().id);
				if ( not tracked ) then
					self:SetChecked(0);
				end
			</OnClick>
			<OnEnter>
				GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
				if ( self:GetChecked() ) then
					GameTooltip:SetText(UNTRACK_ACHIEVEMENT_TOOLTIP, nil, nil, nil, nil, 1);
				else
					GameTooltip:SetText(TRACK_ACHIEVEMENT_TOOLTIP, nil, nil, nil, nil, 1);
				end
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
			<OnShow>
				self:SetChecked(IsTrackedAchievement(self:GetParent().id));
			</OnShow>
		</Scripts>
		<NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
		<PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
	 	<HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
		<CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
		<DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>		
	</CheckButton>

	<Button name="AchievementFrameTabButtonTemplate" virtual="true">
        <Size x="115" y="32"/>
        <Layers>
        	<Layer level="BACKGROUND">
        		<Texture name="$parentLeftDisabled" file="Interface\AchievementFrame\UI-Achievement-Header">
        			<Size x="21" y="59"/>
        			<Anchors>
        				<Anchor point="TOPLEFT" x="0" y="5"/>
        			</Anchors>
					<TexCoords left="0.47265625" right="0.513671875" top="0.76953125" bottom="1.0"/>
        		</Texture>
				<Texture name="$parentMiddleDisabled" file="Interface\AchievementFrame\UI-Achievement-Header">
        			<Size x="88" y="59"/>
        			<Anchors>
        				<Anchor point="LEFT" relativeTo="$parentLeftDisabled" relativePoint="RIGHT"/>
        			</Anchors>
					<TexCoords left="0.513671875" right="0.685546875" top="0.76953125" bottom="1.0"/>
        		</Texture>
				<Texture name="$parentRightDisabled" file="Interface\AchievementFrame\UI-Achievement-Header">
        			<Size x="18" y="59"/>
        			<Anchors>
        				<Anchor point="LEFT" relativeTo="$parentMiddleDisabled" relativePoint="RIGHT"/>
        			</Anchors>
					<TexCoords left="0.685546875" right="0.720703125" top="0.76953125" bottom="1.0"/>
        		</Texture>
				<Texture name="$parentLeft" file="Interface\AchievementFrame\UI-Achievement-Header">
        			<Size x="21" y="49"/>
        			<Anchors>
        				<Anchor point="TOPLEFT"/>
        			</Anchors>
					<TexCoords left="0.47265625" right="0.513671875" top="0.76953125" bottom="1.0"/>
        		</Texture>
				<Texture name="$parentMiddle" file="Interface\AchievementFrame\UI-Achievement-Header">
        			<Size x="88" y="49"/>
        			<Anchors>
        				<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
					</Anchors>
					<TexCoords left="0.513671875" right="0.685546875" top="0.76953125" bottom="1.0"/>
        		</Texture>
				<Texture name="$parentRight" file="Interface\AchievementFrame\UI-Achievement-Header">
        			<Size x="18" y="49"/>
        			<Anchors>
        				<Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
        			</Anchors>
					<TexCoords left="0.685546875" right="0.720703125" top="0.76953125" bottom="1.0"/>
        		</Texture>
				<Texture name="$parentLeftHighlight" file="Interface\AchievementFrame\UI-Achievement-Header" hidden="true" alphaMode="ADD" parentKey="leftHighlight">
        			<Size x="32" y="49"/>
        			<Anchors>
        				<Anchor point="TOPLEFT" x="-3" y="-1"/>
        			</Anchors>
					<TexCoords left="0.720703125" right="0.783203125" top="0.76953125" bottom="1.0"/>
        		</Texture>
				<Texture name="$parentRightHighlight" file="Interface\AchievementFrame\UI-Achievement-Header" hidden="true" alphaMode="ADD" parentKey="rightHighlight">
        			<Size x="18" y="49"/>
        			<Anchors>
        				<Anchor point="TOPRIGHT" x="-4" y="-1"/>
        			</Anchors>
					<TexCoords left="0.923828125" right="0.986328125" top="0.76953125" bottom="1.0"/>
        		</Texture>
				<Texture name="$parentMiddleHighlight" file="Interface\AchievementFrame\UI-Achievement-Header" hidden="true" alphaMode="ADD" parentKey="middleHighlight">
        			<Size x="88" y="49"/>
        			<Anchors>
        				<Anchor point="LEFT" relativeTo="$parentLeftHighlight" relativePoint="RIGHT"/>
						<Anchor point="RIGHT" relativeTo="$parentRightHighlight" relativePoint="LEFT"/>
					</Anchors>
					<TexCoords left="0.783203125" right="0.923828125" top="0.76953125" bottom="1.0"/>
        		</Texture>
        	</Layer>
        </Layers>
		<Scripts>
			<OnLoad>
				local name = self:GetName();
				_G[name.."Left"]:SetVertexColor(0.6, 0.6, 0.6);
				_G[name.."Middle"]:SetVertexColor(0.6, 0.6, 0.6);
				_G[name.."Right"]:SetVertexColor(0.6, 0.6, 0.6);
				_G[name.."LeftDisabled"]:SetPoint("TOPLEFT", 0, 2);
			</OnLoad>
			<OnEnter>
				self.leftHighlight:Show();
				self.middleHighlight:Show();
				self.rightHighlight:Show();
			</OnEnter>
			<OnLeave>
				self.leftHighlight:Hide();
				self.middleHighlight:Hide();
				self.rightHighlight:Hide();
			</OnLeave>
			<OnShow>
				PanelTemplates_TabResize(self, 10);
			</OnShow>
		</Scripts>
		<ButtonText name="$parentText" parentKey="text">
			<Anchors>
				<Anchor point="CENTER" x="0" y="-3"/>
			</Anchors>
		</ButtonText>
		<NormalFont style="GameFontNormalSmall"/>
		<HighlightFont style="GameFontHighlightSmall"/>
		<DisabledFont style="GameFontHighlightSmall"/>
    </Button>
	<Frame name="AchievementFrameAchievementsObjectives">
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentReputationCriteria" inherits="GameFontNormalSmall" parentKey="repCriteria">
					<Anchors>
						<Anchor point="TOP" x="8" y="-2"/>
					</Anchors>
					<Color r="1" g="1" b="1" a="1"/>
				</FontString>
			</Layer>
		</Layers>
	</Frame>
	<Frame name="AchievementGuildTabardTemplate" hidden="true" virtual="true">
		<Size x="72" y="128"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentBackground" file="Interface\AchievementFrame\GuildTabard" parentKey="background">
					<Size x="72" y="128"/>
					<Anchors>
						<Anchor point="TOP" x="0" y="0"/>
					</Anchors>
					<TexCoords left="0.00781250" right="0.57031250" top="0.48437500" bottom="0.98437500"/>
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<Texture name="$parentBorder" file="Interface\AchievementFrame\GuildTabard" parentKey="border">
					<Size x="56" y="121"/>
					<Anchors>
						<Anchor point="TOP" x="0" y="0"/>
					</Anchors>
					<TexCoords left="0.00781250" right="0.44531250" top="0.00390625" bottom="0.47656250"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentEmblem" file="Interface\GuildFrame\GuildEmblemsLG_01" parentKey="emblem">
					<Size x="60" y="60"/>
					<Anchors>
						<Anchor point="BOTTOM" x="0" y="14"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
	</Frame>
	<Frame name="MiniAchievementTemplate" virtual="true" parent="AchievementFrame">
		<Size x="42" y="42"/>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentIcon" parentKey="icon">
					<Anchors>
						<Anchor point="TOPLEFT" x="8" y="-8"/>
						<Anchor point="BOTTOMRIGHT" x="-8" y="8"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<Texture name="$parentBorder" file="Interface\AchievementFrame\UI-Achievement-Progressive-IconBorder" parentKey="border">
					<Anchors>
						<Anchor point="TOPLEFT"/>
						<Anchor point="BOTTOMRIGHT"/>
					</Anchors>
					<TexCoords left="0" right="0.65625" top="0" bottom="0.65625"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentShield" file="Interface\AchievementFrame\UI-Achievement-Progressive-Shield">
					<Anchors>
						<Anchor point="TOPLEFT" x="12" y="-12"/>
						<Anchor point="BOTTOMRIGHT" x="16" y="-16"/>
					</Anchors>
					<TexCoords left="0" right="0.75" top="0" bottom="0.75"/>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<FontString name="$parentPoints" inherits="GameFontWhiteSmall" text="10" justifyV="BOTTOM" parentKey="points">
					<Size x="18" y="18"/>
					<Anchors>
						<Anchor point="BOTTOMRIGHT" x="-2" y="3"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnEnter>
				GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
				if ( self.name ) then
					GameTooltip:AddDoubleLine(self.name, self.date, nil, nil, nil, .5, .5, .5);
				end
				if ( self.desc ) then
					GameTooltip:AddLine(self.desc, 1, 1, 1, 1);
				end
				if ( self.numCriteria ) then
					if ( self.numCriteria > 30 ) then
						for i = 1, self.numCriteria, 2 do
							GameTooltip:AddDoubleLine(self["criteria"..i], self["criteria"..(i+1)]);
						end
					else
						for i = 1, self.numCriteria do
							GameTooltip:AddLine(self["criteria"..i]);
						end
					end
				end
				GameTooltip:Show();
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
	</Frame>

	<Button name="MetaCriteriaTemplate" virtual="true">
		<Size x="155" y="30"/>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentIcon" parentKey="icon">
					<Size x="17" y="17"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="6" y="-6"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<Texture name="$parentBorder" file="Interface\AchievementFrame\UI-Achievement-Progressive-IconBorder" parentKey="border">
					<Size x="30" y="30"/>
					<Anchors>
						<Anchor point="TOPLEFT"/>
					</Anchors>
					<TexCoords left="0" right="0.65625" top="0" bottom="0.65625"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentCheck" file="Interface\AchievementFrame\UI-Achievement-Criteria-Check" parentKey="check">
					<Size x="20" y="16"/>
					<Anchors>
						<Anchor point="RIGHT" relativePoint="LEFT" x="0" y="0"/>
					</Anchors>
					<TexCoords left="0" right="0.65625" top="0" bottom="1"/>
				</Texture>
				<FontString name="$parentLabel" inherits="AchievementCriteriaFont" text="Fake criteria!" parentKey="label">
					<Anchors>
						<Anchor point="LEFT" relativePoint="LEFT" x="34" y="2"/>
					</Anchors>
					<Size x="125" y="20"/>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<!-- This OnEnter might also be called from AchievementFrameAchievements_OnEvent -->
			<OnEnter function="AchievementMeta_OnEnter"/>
			<OnLeave function="AchievementMeta_OnLeave"/>
			<OnClick>
				if ( self.id ) then
					AchievementFrame_SelectAchievement(self.id);
				end
			</OnClick>
		</Scripts>
		<HighlightTexture file="Interface\FriendsFrame\UI-FriendsFrame-HighlightBar" alphaMode="ADD">
			<Anchors>
				<Anchor point="TOPLEFT"/>
				<Anchor point="BOTTOMRIGHT" x="0" y="2"/>
			</Anchors>						
			<Color r="1" g="1" b="1" a=".15"/>
		</HighlightTexture>
	</Button>
	
	<StatusBar name="AchievementProgressBarTemplate" virtual="true">
		<Size x="212" y="14"/>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentBG">
					<Anchors>
						<Anchor point="TOPLEFT"/>
						<Anchor point="BOTTOMRIGHT"/>
					</Anchors>
					<Color r="0" g="0" b="0" a=".4"/>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<FontString name="$parentText" inherits="GameFontHighlightSmall" text="700/700" justifyV="TOP" parentKey="text">
					<Size x="0" y="0"/>
					<Anchors>
						<Anchor point="CENTER" x="0" y="0"/>
					</Anchors>
				</FontString>			
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentBorderLeft" file="Interface\AchievementFrame\UI-Achievement-ProgressBar-Border">
					<Size x="16" y="0"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="-6" y="5"/>
						<Anchor point="BOTTOMLEFT" x="-6" y="-5"/>
					</Anchors>
					<TexCoords left="0" right="0.0625" top="0" bottom="0.75"/>
				</Texture>
				<Texture name="$parentBorderRight" file="Interface\AchievementFrame\UI-Achievement-ProgressBar-Border">
					<Size x="16" y="0"/>
					<Anchors>
						<Anchor point="TOPRIGHT" x="6" y="5"/>
						<Anchor point="BOTTOMRIGHT" x="6" y="-5"/>
					</Anchors>
					<TexCoords left="0.812" right="0.8745" top="0" bottom="0.75"/>
				</Texture>
				<Texture name="$parentBorderCenter" file="Interface\AchievementFrame\UI-Achievement-ProgressBar-Border">
					<Size x="16"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentBorderLeft" relativePoint="TOPRIGHT"/>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parentBorderRight" relativePoint="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords left="0.0625" right="0.812" top="0" bottom="0.75"/>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				self:SetStatusBarColor(0, .6, 0, 1);
				self:SetMinMaxValues(0, 100);
				self:SetValue(0);
				self:GetStatusBarTexture():SetDrawLayer("BORDER");
			</OnLoad>
		</Scripts>
		<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
	</StatusBar>

	<StatusBar name="AchievementHeaderStatusBarTemplate" virtual="true">
		<Anchors>
			<!-- That's right. -0. -->
			<Anchor point="TOP" x="-0" y="-17"/>
		</Anchors>
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="$parentTitle" inherits="GameFontNormal" text="ACHIEVEMENTS_COMPLETED" parentKey="title">
					<Anchors>
						<Anchor point="LEFT" x="6" y="4"/>
					</Anchors>
				</FontString>
				<FontString name="$parentText" inherits="GameFontHighlight" parentKey="text">
					<Size x="0" y="14"/>
					<Anchors>
						<Anchor point="RIGHT" x="-5" y="3"/>
					</Anchors>
				</FontString>
				<Texture name="$parentLeft" file="Interface\AchievementFrame\UI-Achievement-Header">
					<Size x="32" y="48"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="-15" y="16"/>
					</Anchors>
					<TexCoords left="0.423828125" right="0.486" top="0.56640625" bottom="0.75"/>
				</Texture>
				<Texture name="$parentRight" file="Interface\AchievementFrame\UI-Achievement-Header">
					<Size x="32" y="48"/>
					<Anchors>
						<Anchor point="TOPRIGHT" x="15" y="16"/>
					</Anchors>
					<TexCoords right="0.423828125" left="0.486" bottom="0.75" top="0.56640625"/>
				</Texture>
				<Texture name="$parentMiddle" file="Interface\AchievementFrame\UI-Achievement-Header">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentLeft" relativePoint="TOPRIGHT"/>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parentRight" relativePoint="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords right="0.486" left="0.889224609375" bottom="0.75" top="0.56640625"/>
				</Texture>
			</Layer>
			<Layer level="BACKGROUND">
				<Texture name="$parentFillBar">
					<Size x="0" y="15"/>
					<Color r="0" g="0" b="0" a="0.5"/>
				</Texture>
			</Layer>
		</Layers>
		<BarTexture name="$parentBar" file="Interface\PaperDollInfoFrame\UI-Character-Skills-Bar"/>
		<BarColor r="0" g="1" b="0"/>
	</StatusBar>
	
	<Button name="AchievementCategoryTemplate" virtual="true">
		<Size x="158" y="24"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentBackground" file="Interface\AchievementFrame\UI-Achievement-Category-Background" parentKey="background">
					<Size x="170" y="32"/>
					<Anchors>
						<Anchor point="TOPLEFT"/>
						<Anchor point="TOPRIGHT"/>
					</Anchors>
					<TexCoords left="0" right="0.6640625" top="0" bottom="1"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<FontString name="$parentLabel" text="This is a Category" inherits="GameFontNormalLeftBottom" wordwrap="false" parentKey="label">
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="16" y="4"/>
						<Anchor point="TOPRIGHT" x="-8" y="-4"/>
					</Anchors>					
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				AchievementCategoryButton_OnLoad(self);
			</OnLoad>
			<OnClick>
				AchievementCategoryButton_OnClick(self, button, down);
			</OnClick>
			<OnEnter>
				if ( self.showTooltipFunc ) then
					self.showTooltipFunc(self);
				end
			</OnEnter>
			<OnLeave>
				GameTooltip:SetMinimumWidth(0, 0);
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
		<HighlightTexture file="Interface\AchievementFrame\UI-Achievement-Category-Highlight" alphaMode="ADD">
			<Anchors>
				<Anchor point="TOPLEFT" x="0" y="0"/>
				<Anchor point="BOTTOMRIGHT" x="-1" y="-7"/>
			</Anchors>
			<TexCoords left="0" right="0.6640625" top="0" bottom="1"/>
		</HighlightTexture>
	</Button>

	<Frame name="AchievementIconFrameTemplate" virtual="true">
		<Layers>
			<Layer level="BORDER">
				<Texture name="$parentBling" file="Interface\AchievementFrame\UI-Achievement-Bling" hidden="true" parentKey="bling">
					<Anchors>
						<Anchor point="CENTER" x="-1" y="1"/>
					</Anchors>
					<Size x="116" y="116"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentTexture" file="Interface\Icons\Spell_Misc_HellifrePVPHonorHoldFavor" parentKey="texture">
					<Anchors>
						<Anchor point="CENTER" x="0" y="3"/>
					</Anchors>
					<Size x="50" y="50"/>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture name="$parentOverlay" file="Interface\AchievementFrame\UI-Achievement-IconFrame" parentKey="frame">
					<Anchors>
						<Anchor point="CENTER" x="-1" y="2"/>
					</Anchors>
					<Size x="72" y="72"/>
					<TexCoords left="0" right="0.5625" top="0" bottom="0.5625"/>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				AchievementIcon_OnLoad(self);
			</OnLoad>
		</Scripts>
	</Frame>
	
	<Frame name="AchievementCriteriaTemplate" virtual="true">
		<Size x="350" y="15"/>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parentCheck" file="Interface\AchievementFrame\UI-Achievement-Criteria-Check" parentKey="check">
					<Size x="20" y="16"/>
					<Anchors>
						<Anchor point="LEFT" x="0" y="-3"/>
					</Anchors>
					<TexCoords left="0" right="0.625" top="0" bottom="1"/>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<FontString name="$parentName" inherits="AchievementCriteriaFont" text="Capture the Bone Wastes" parentKey="name">
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentCheck" relativePoint="RIGHT" x="5" y="2"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnMouseUp>
				if ( button == "LeftButton" ) then
					self:GetParent():GetParent():Click();
				end
			</OnMouseUp>
		</Scripts>
	</Frame>	

	<Button name="AchievementTemplate" virtual="true">
		<Size x="434" y="142"/>
		<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<EdgeSize>
				<AbsValue val="16"/>
			</EdgeSize>
		</Backdrop>		
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentBackground" file="Interface\AchievementFrame\UI-Achievement-Parchment-Horizontal" parentKey="background">
					<Anchors>
						<Anchor point="TOPLEFT" x="3" y="-3"/>
						<Anchor point="BOTTOMRIGHT" x="-3" y="3"/>
					</Anchors>
				</Texture>						
			</Layer>			
			<Layer level="BORDER">
				<Texture name="$parentBottomLeftTsunami" file="Interface\AchievementFrame\UI-Achievement-Tsunami-Corners">
					<Size x="32" y="32"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="-2" y="-2"/>
					</Anchors>
					<Color r="1" g="1" b="1" a=".2"/>
					<TexCoords left="0" right=".5" top="0" bottom="1"/>
				</Texture>				
				<Texture name="$parentBottomRightTsunami" file="Interface\AchievementFrame\UI-Achievement-Tsunami-Corners">
					<Size x="32" y="32"/>
					<Anchors>
						<Anchor point="BOTTOMRIGHT" x="2" y="-2"/>
					</Anchors>
					<Color r="1" g="1" b="1" a=".2"/>
					<TexCoords left=".5" right="1" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentTopLeftTsunami" file="Interface\AchievementFrame\UI-Achievement-Tsunami-Corners">
					<Size x="32" y="32"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="-2" y="-20"/>
					</Anchors>
					<Color r="1" g="1" b="1" a=".1"/>
					<TexCoords left="1" right=".5" top="1" bottom="0"/>
				</Texture>
				<Texture name="$parentTopRightTsunami" file="Interface\AchievementFrame\UI-Achievement-Tsunami-Corners">
					<Size x="32" y="32"/>
					<Anchors>
						<Anchor point="TOPRIGHT" x="2" y="-20"/>
					</Anchors>
					<Color r="1" g="1" b="1" a=".1"/>
					<TexCoords left=".5" right="0" top="1" bottom="0"/>
				</Texture>							
				<Texture name="$parentBottomTsunami1" file="Interface\AchievementFrame\UI-Achievement-Borders">
					<Size x="370" y="16"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativeTo="$parentBottomLeftTsunami" relativePoint="BOTTOMRIGHT" x="0" y="3"/>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parentBottomRightTsunami" relativePoint="BOTTOMLEFT"/>
					</Anchors>
					<Color r="1" g="1" b="1" a=".35"/>
					<TexCoords left="0" right="0.72265" top="0.51953125" bottom="0.58203125"/>
				</Texture>
				<Texture name="$parentTopTsunami1" file="Interface\AchievementFrame\UI-Achievement-Borders">
					<Size x="370" y="16"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTopLeftTsunami" relativePoint="TOPRIGHT" x="0" y="-3"/>
						<Anchor point="TOPRIGHT" relativeTo="$parentTopRightTsunami" relativePoint="TOPLEFT"/>
					</Anchors>
					<Color r="1" g="1" b="1" a="0.3"/>
					<TexCoords left="0.72265" right="0" top="0.58203125" bottom="0.51953125"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentTitleBackground" file="Interface\AchievementFrame\UI-Achievement-Borders" parentKey="titleBar">
					<Size x="0" y="24"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="5" y="-4"/>
						<Anchor point="TOPRIGHT" x="-5" y="-4"/>
					</Anchors>
					<TexCoords left="0" right="0.9765625" top="0.66015625" bottom="0.73828125"/>
					<Color r="1" g="1" b="1" a=".8"/>
				</Texture>
				<Texture name="$parentGlow" file="Interface\AchievementFrame\UI-Achievement-Borders" parentKey="glow">
					<Size x="10" y="64"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTitleBackground" relativePoint="BOTTOMLEFT" x="0" y="4"/>
						<Anchor point="RIGHT" x="0" y="4"/>
					</Anchors>
					<TexCoords left="0" right="1" top="0.00390625" bottom="0.25390625"/>
				</Texture>
				<Texture name="$parentRewardBackground" file="Interface\AchievementFrame\UI-Achievement-Reward-Background" hidden="true" parentKey="rewardBackground">
					<Size x="384" y="24"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="5" y="-2"/>
						<Anchor point="BOTTOMRIGHT" x="-5" y="5"/>
						<!--<Anchor point="BOTTOMRIGHT"/> -->
					</Anchors>
					<TexCoords left="0" right=".69" top="0" bottom=".75"/>
				</Texture>
				<Texture name="$parentGuildCornerL" file="Interface\AchievementFrame\UI-Achievement-Guild" parentKey="guildCornerL" hidden="true">
					<Size x="54" y="53"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="-1" y="-1"/>
					</Anchors>
					<TexCoords left="0.89062500" right="0.99609375" top="0.08593750" bottom="0.18945313"/>
				</Texture>
				<Texture name="$parentGuildCornerR" file="Interface\AchievementFrame\UI-Achievement-Guild" parentKey="guildCornerR" hidden="true">
					<Size x="54" y="53"/>
					<Anchors>
						<Anchor point="BOTTOMRIGHT" x="1" y="-1"/>
					</Anchors>
					<TexCoords left="0.75195313" right="0.85742188" top="0.36328125" bottom="0.46679688"/>
				</Texture>
			</Layer>	
			<Layer level="OVERLAY">
				<FontString name="$parentLabel" inherits="GameFontHighlightMedium" text="For the Alliance!" parentKey="label">
					<Size x="320" y="20"/>
					<Anchors>
						<Anchor point="TOP" relativeTo="$parentTitleBackground" relativePoint="TOP" x="0" y="0"/>
					</Anchors>
				</FontString>
				<FontString name="$parentReward" inherits="GameFontNormalSmall" hidden="true" parentKey="reward">
					<Size x="400" y="20"/>			
					<Anchors>
						<Anchor point="TOP" relativeTo="$parentRewardBackground" relativePoint="TOP" x="0" y="1"/>
					</Anchors>							
				</FontString>
				<FontString name="$parentDescription" inherits="AchievementDescriptionFont" parentKey="description">
					<Size x="0" y="0"/>		
					<Anchors>
						<Anchor point="TOP" x="0" y="-30"/>
					</Anchors>
				</FontString>
				<FontString name="$parentHiddenDescription" inherits="AchievementDescriptionFont" hidden="true" parentKey="hiddenDescription">
					<Size x="0" y="0"/>
					<Anchors>
						<Anchor point="TOP" x="0" y="-30"/>
					</Anchors>
				</FontString>
				<Texture name="$parentCheck" file="Interface\Buttons\UI-CheckBox-Check" hidden="true" parentKey="check">
					<Size x="20" y="16"/>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentLabel" relativePoint="RIGHT" x="0" y="-1"/>
					</Anchors>
					<TexCoords left="0" right="1" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentPlusMinus" file="Interface\AchievementFrame\UI-Achievement-PlusMinus" hidden="true" parentKey="plusMinus">
					<Size x="15" y="15"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="72" y="-9"/>
					</Anchors>
					<TexCoords left="0" right=".5" top="0" bottom=".25"/>
				</Texture>				
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				AchievementButton_OnLoad(self);
			</OnLoad>
			<OnClick>
				-- this is also called from the shield's OnClick
				AchievementButton_OnClick(self);
			</OnClick>
			<OnEnter>
				-- this is also called from the shield's OnEnter
				self.highlight:Show();
			</OnEnter>
			<OnLeave>
				-- this is also called from the shield's OnLeave
				if ( not self.selected ) then
					self.highlight:Hide();
				end
			</OnLeave>
		</Scripts>
		<Frames>
			<Frame name="$parentHighlight" setAllPoints="true" hidden="true" enableMouse="false" parentKey="highlight">
				<Layers>
					<Layer level="OVERLAY">
						<Texture name="$parentTopLeft" file="Interface\PaperDollInfoFrame\UI-Character-ReputationBar-Highlight" alphaMode="ADD">
							<Size x="16" y="16"/>
							<Anchors>
								<Anchor point="TOPLEFT" x="-1" y="2"/>
							</Anchors>
							<TexCoords left="0.06640625" right="0" top="0.4375" bottom="0.65625"/>
						</Texture>
						<Texture name="$parentBottomLeft" file="Interface\PaperDollInfoFrame\UI-Character-ReputationBar-Highlight" alphaMode="ADD">
							<Size x="16" y="16"/>
							<Anchors>
								<Anchor point="BOTTOMLEFT" x="-1" y="-2"/>
							</Anchors>
							<TexCoords left="0.06640625" right="0" top="0.65625" bottom="0.4375"/>
						</Texture>		
						<Texture name="$parentTopRight" file="Interface\PaperDollInfoFrame\UI-Character-ReputationBar-Highlight" alphaMode="ADD">
							<Size x="16" y="16"/>
							<Anchors>
								<Anchor point="TOPRIGHT" x="1" y="2"/>
							</Anchors>
							<TexCoords left="0" right="0.06640625" top="0.4375" bottom="0.65625"/>
						</Texture>
						<Texture name="$parentBottomRight" file="Interface\PaperDollInfoFrame\UI-Character-ReputationBar-Highlight" alphaMode="ADD">
							<Size x="16" y="16"/>
							<Anchors>
								<Anchor point="BOTTOMRIGHT" x="1" y="-2"/>
							</Anchors>
							<TexCoords left="0" right="0.06640625" top="0.65625" bottom="0.4375"/>
						</Texture>			
						<Texture name="$parentTop" file="Interface\PaperDollInfoFrame\UI-Character-ReputationBar-Highlight" alphaMode="ADD">
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parentTopLeft" relativePoint="TOPRIGHT"/>
								<Anchor point="BOTTOMRIGHT" relativeTo="$parentTopRight" relativePoint="BOTTOMLEFT"/>
							</Anchors>
							<TexCoords left="0" right="0.015" top="0.4375" bottom="0.65625"/>
						</Texture>
						<Texture name="$parentBottom" file="Interface\PaperDollInfoFrame\UI-Character-ReputationBar-Highlight" alphaMode="ADD">
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parentBottomLeft" relativePoint="TOPRIGHT"/>
								<Anchor point="BOTTOMRIGHT" relativeTo="$parentBottomRight" relativePoint="BOTTOMLEFT"/>
							</Anchors>
							<TexCoords left="0" right="0.015" top="0.65625" bottom="0.4375"/>
						</Texture>			
						<Texture name="$parentLeft" file="Interface\PaperDollInfoFrame\UI-Character-ReputationBar-Highlight" alphaMode="ADD">
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parentTopLeft" relativePoint="BOTTOMLEFT"/>
								<Anchor point="BOTTOMRIGHT" relativeTo="$parentBottomLeft" relativePoint="TOPRIGHT"/>
							</Anchors>
							<TexCoords left="0.06640625" right="0" top="0.65625" bottom="0.6"/>
						</Texture>
						<Texture name="$parentRight" file="Interface\PaperDollInfoFrame\UI-Character-ReputationBar-Highlight" alphaMode="ADD">
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parentTopRight" relativePoint="BOTTOMLEFT"/>
								<Anchor point="BOTTOMRIGHT" relativeTo="$parentBottomRight" relativePoint="TOPRIGHT"/>
							</Anchors>
							<TexCoords left="0" right="0.06640625" top="0.65625" bottom="0.6"/>
						</Texture>
					</Layer>
				</Layers>
			</Frame>
			<Frame name="$parentIcon" inherits="AchievementIconFrameTemplate" parentKey="icon">
				<Size x="60" y="60"/>
				<Anchors>
					<Anchor point="TOPLEFT" x="8" y="-9"/>
				</Anchors>
			</Frame>
			<Frame name="$parentTabard" inherits="AchievementGuildTabardTemplate" parentKey="tabard">
				<Anchors>
					<Anchor point="TOPRIGHT" x="-3" y="-4"/>
				</Anchors>
			</Frame>
			<Button name="$parentShield" parentKey="shield">
				<Size x="64" y="64"/>
				<Anchors>
					<Anchor point="TOPRIGHT" x="-6" y="0"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentIcon" file="Interface\AchievementFrame\UI-Achievement-Shields" parentKey="icon">
							<Size x="66" y="64"/>
							<Anchors>
								<Anchor point="TOPRIGHT" x="0" y="-6"/>
							</Anchors>
							<TexCoords left="0" right=".5" top="0" bottom="0.5"/>
						</Texture>
					</Layer>
					<Layer level="OVERLAY">
						<FontString name="$parentPoints" inherits="AchievementPointsFont" parentKey="points">
							<Size x="42" y="16"/>
							<Anchors>
								<Anchor point="TOPRIGHT" x="-13" y="-26"/>
							</Anchors>
						</FontString>
						<FontString name="$parentDateCompleted" inherits="AchievementDateFont" text="5/16/08" hidden="true" justifyH="CENTER" parentKey="dateCompleted">
							<Size x="100" y="14"/>
							<Anchors>
								<Anchor point="TOP" relativePoint="BOTTOM" x="-2" y="6"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>				
				<Scripts>
					<OnLoad>
						AchievementShield_OnLoad(self);
					</OnLoad>
					<OnClick>
						local parent = self:GetParent();
						AchievementButton_OnClick(parent);
					</OnClick>
					<!-- This OnEnter might also be called from AchievementFrameAchievements_OnEvent -->
					<OnEnter function="AchievementShield_OnEnter"/>
					<OnLeave function="AchievementShield_OnLeave"/>
				</Scripts>
			</Button>
			<Frame name="$parentObjectives" parentKey="objectives">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentDescription" relativePoint="BOTTOM" x="0" y="-8"/>
					<Anchor point="LEFT" relativeTo="$parentIcon" relativePoint="RIGHT" x="8" y="0"/>
					<Anchor point="RIGHT" relativeTo="$parentShield" relativePoint="LEFT" x="-10" y="0"/>
					<Anchor point="BOTTOM" relativeTo="$parentRewardBackground" relativePoint="TOP" x="0" y="0"/>
				</Anchors>
			</Frame>
			<CheckButton name="$parentTracked" hidden="true" inherits="AchievementCheckButtonTemplate" parentKey="tracked">
				<Anchors>
					<Anchor point="TOPLEFT" x="12" y="-66"/>
				</Anchors>
			</CheckButton>
		</Frames>
	</Button>
	<Frame name="ComparisonPlayerTemplate" virtual="true">
		<Size x="498" y="50"/>
		<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<EdgeSize>
				<AbsValue val="16"/>
			</EdgeSize>
		</Backdrop>				
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentBackground" file="Interface\AchievementFrame\UI-Achievement-Parchment-Horizontal" parentKey="background">
					<Anchors>
						<Anchor point="TOPLEFT" x="3" y="-3"/>
						<Anchor point="BOTTOMRIGHT" x="-3" y="3"/>
					</Anchors>
					<TexCoords left="0" right="1" top="0" bottom="0.25"/>
				</Texture>						
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentTitleBackground" file="Interface\AchievementFrame\UI-Achievement-Borders" parentKey="titleBar">
					<Size x="0" y="20"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="5" y="-4"/>
						<Anchor point="TOPRIGHT" x="-5" y="-4"/>
					</Anchors>
					<TexCoords left="0" right="0.9765625" top="0.66015625" bottom="0.73828125"/>
					<Color r="1" g="1" b="1" a=".8"/>
				</Texture>
				<Texture name="$parentGlow" file="Interface\AchievementFrame\UI-Achievement-Borders" parentKey="glow">
					<Size x="10" y="64"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTitleBackground" relativePoint="BOTTOMLEFT" x="0" y="2"/>
						<Anchor point="BOTTOMRIGHT" x="0" y="4"/>
					</Anchors>
					<TexCoords left="0" right="1" top="0.00390625" bottom="0.25390625"/>
				</Texture>			
			</Layer>	
			<Layer level="OVERLAY">
				<FontString name="$parentLabel" inherits="GameFontHighlightMedium" text="For the Alliance!" parentKey="label">
					<Anchors>
						<Anchor point="TOP" relativeTo="$parentTitleBackground" relativePoint="TOP" x="0" y="0"/>
					</Anchors>
					<Size x="260" y="20"/>
				</FontString>
				<FontString name="$parentDateCompleted" inherits="AchievementDateFont" text="5/16/08" hidden="true" parentKey="dateCompleted">
					<Anchors>
						<Anchor point="TOPRIGHT" x="-63" y="-8"/>
					</Anchors>
					<Size x="100" y="14"/>
				</FontString>
				<FontString name="$parentDescription" inherits="AchievementDescriptionFont" parentKey="description">
					<Anchors>
						<Anchor point="TOP" x="0" y="-30"/>
					</Anchors>
					<Size x="380" y="13"/>
				</FontString>
			</Layer>
		</Layers>		
		<Scripts>
			<OnLoad>
				AchievementComparisonPlayerButton_OnLoad(self);
			</OnLoad>
		</Scripts>
		<Frames>
			<Frame name="$parentIcon" parentKey="icon">
				<Size x="48" y="48"/>
				<Anchors>
					<Anchor point="TOPLEFT" x="3" y="-3"/>
				</Anchors>
				<Layers>			
					<Layer level="BORDER">
						<Texture name="$parentBling" file="Interface\AchievementFrame\UI-Achievement-Bling" hidden="true" parentKey="bling">
							<Anchors>
								<Anchor point="CENTER" x="-1" y="1"/>
							</Anchors>
							<Size x="84" y="84"/>
						</Texture>
					</Layer>
					<Layer level="ARTWORK">
						<Texture name="$parentTexture" file="Interface\Icons\Spell_Misc_HellifrePVPHonorHoldFavor" parentKey="texture">
							<Anchors>
								<Anchor point="CENTER" x="0" y="3"/>
							</Anchors>
							<Size x="36" y="36"/>
						</Texture>
					</Layer>
					<Layer level="OVERLAY">
						<Texture name="$parentOverlay" file="Interface\AchievementFrame\UI-Achievement-IconFrame" parentKey="frame">
							<Anchors>
								<Anchor point="CENTER" x="-1" y="2"/>
							</Anchors>
							<Size x="46" y="46"/>
							<TexCoords left="0" right="0.5625" top="0" bottom="0.5625"/>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						AchievementIcon_OnLoad(self);
					</OnLoad>
				</Scripts>				
			</Frame>
			<Frame name="$parentShield" parentKey="shield">
				<Size x="48" y="48"/>
				<Anchors>
					<Anchor point="TOPRIGHT" x="-10" y="-4"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentIcon" file="Interface\AchievementFrame\UI-Achievement-Shields" parentKey="icon">
							<Size x="48" y="48"/>
							<Anchors>
								<Anchor point="TOPRIGHT" x="0" y="0"/>
							</Anchors>
							<TexCoords left="0" right=".5" top="0" bottom="0.5"/>
						</Texture>
					</Layer>
					<Layer level="OVERLAY">
						<FontString name="$parentPoints" inherits="GameFontNormal" justifyH="CENTER" text="60" parentKey="points">
							<Anchors>
								<Anchor point="CENTER" x="0" y="3"/>
							</Anchors>
							<Size x="40" y="26"/>
						</FontString>
					</Layer>
				</Layers>				
				<Scripts>
					<OnLoad>
						AchievementShield_OnLoad(self);
					</OnLoad>
				</Scripts>
			</Frame>
		</Frames>		
	</Frame>
	<Frame name="SummaryAchievementTemplate" inherits="ComparisonPlayerTemplate" virtual="true">
		<Size x="100" y="48"/>
		<Frames>
			<Frame name="$parentHighlight" setAllPoints="true" hidden="true" enableMouse="false" parentKey="highlight">
				<Layers>
					<Layer level="OVERLAY">
						<Texture name="$parentTopLeft" file="Interface\PaperDollInfoFrame\UI-Character-ReputationBar-Highlight" alphaMode="ADD">
							<Size x="16" y="16"/>
							<Anchors>
								<Anchor point="TOPLEFT" x="-1" y="2"/>
							</Anchors>
							<TexCoords left="0.06640625" right="0" top="0.4375" bottom="0.65625"/>
						</Texture>
						<Texture name="$parentBottomLeft" file="Interface\PaperDollInfoFrame\UI-Character-ReputationBar-Highlight" alphaMode="ADD">
							<Size x="16" y="16"/>
							<Anchors>
								<Anchor point="BOTTOMLEFT" x="-1" y="-2"/>
							</Anchors>
							<TexCoords left="0.06640625" right="0" top="0.65625" bottom="0.4375"/>
						</Texture>		
						<Texture name="$parentTopRight" file="Interface\PaperDollInfoFrame\UI-Character-ReputationBar-Highlight" alphaMode="ADD">
							<Size x="16" y="16"/>
							<Anchors>
								<Anchor point="TOPRIGHT" x="1" y="2"/>
							</Anchors>
							<TexCoords left="0" right="0.06640625" top="0.4375" bottom="0.65625"/>
						</Texture>
						<Texture name="$parentBottomRight" file="Interface\PaperDollInfoFrame\UI-Character-ReputationBar-Highlight" alphaMode="ADD">
							<Size x="16" y="16"/>
							<Anchors>
								<Anchor point="BOTTOMRIGHT" x="1" y="-2"/>
							</Anchors>
							<TexCoords left="0" right="0.06640625" top="0.65625" bottom="0.4375"/>
						</Texture>			
						<Texture name="$parentTop" file="Interface\PaperDollInfoFrame\UI-Character-ReputationBar-Highlight" alphaMode="ADD">
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parentTopLeft" relativePoint="TOPRIGHT"/>
								<Anchor point="BOTTOMRIGHT" relativeTo="$parentTopRight" relativePoint="BOTTOMLEFT"/>
							</Anchors>
							<TexCoords left="0" right="0.015" top="0.4375" bottom="0.65625"/>
						</Texture>
						<Texture name="$parentBottom" file="Interface\PaperDollInfoFrame\UI-Character-ReputationBar-Highlight" alphaMode="ADD">
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parentBottomLeft" relativePoint="TOPRIGHT"/>
								<Anchor point="BOTTOMRIGHT" relativeTo="$parentBottomRight" relativePoint="BOTTOMLEFT"/>
							</Anchors>
							<TexCoords left="0" right="0.015" top="0.65625" bottom="0.4375"/>
						</Texture>			
						<Texture name="$parentLeft" file="Interface\PaperDollInfoFrame\UI-Character-ReputationBar-Highlight" alphaMode="ADD">
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parentTopLeft" relativePoint="BOTTOMLEFT"/>
								<Anchor point="BOTTOMRIGHT" relativeTo="$parentBottomLeft" relativePoint="TOPRIGHT"/>
							</Anchors>
							<TexCoords left="0.06640625" right="0" top="0.65625" bottom="0.6"/>
						</Texture>
						<Texture name="$parentRight" file="Interface\PaperDollInfoFrame\UI-Character-ReputationBar-Highlight" alphaMode="ADD">
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parentTopRight" relativePoint="BOTTOMLEFT"/>
								<Anchor point="BOTTOMRIGHT" relativeTo="$parentBottomRight" relativePoint="TOPRIGHT"/>
							</Anchors>
							<TexCoords left="0" right="0.06640625" top="0.65625" bottom="0.6"/>
						</Texture>
					</Layer>
				</Layers>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad>
				AchievementFrameSummaryAchievement_OnLoad(self);
			</OnLoad>
			<OnClick>
				AchievementFrameSummaryAchievement_OnClick(self, button, down);
			</OnClick>
			<OnEnter>
				AchievementFrameSummaryAchievement_OnEnter(self, motion);
			</OnEnter>
			<OnLeave>
				self.highlight:Hide();
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
	</Frame>
	<Frame name="ComparisonTemplate" virtual="true">
		<Size x="616" y="50"/>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Frames>
			<Frame name="$parentPlayer" inherits="ComparisonPlayerTemplate" parentKey="player">
				<Anchors>
					<Anchor point="LEFT"/>
				</Anchors>
			</Frame>
			<Frame name="$parentFriend" parentKey="friend">
				<Size x="120" y="50"/>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentPlayer" relativePoint="RIGHT"/>
				</Anchors>
				<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
					<EdgeSize>
						<AbsValue val="16"/>
					</EdgeSize>
				</Backdrop>		
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentBackground" file="Interface\AchievementFrame\UI-Achievement-Parchment-Horizontal" parentKey="background">
							<Anchors>
								<Anchor point="TOPLEFT" x="3" y="-3"/>
								<Anchor point="BOTTOMRIGHT" x="-3" y="3"/>
							</Anchors>
							<TexCoords left=".2" right=".75" top="0" bottom="1"/>
						</Texture>						
					</Layer>
					<Layer level="ARTWORK">
						<Texture name="$parentTitleBackground" file="Interface\AchievementFrame\UI-Achievement-Borders" parentKey="titleBar">
							<Size x="0" y="20"/>
							<Anchors>
								<Anchor point="TOPLEFT" x="5" y="-4"/>
								<Anchor point="TOPRIGHT" x="-5" y="-4"/>
							</Anchors>
							<TexCoords left="0.3" right="0.575" top="0.66015625" bottom="0.73828125"/>
							<Color r="1" g="1" b="1" a=".8"/>
						</Texture>
						<Texture name="$parentGlow" file="Interface\AchievementFrame\UI-Achievement-Borders" parentKey="glow">
							<Size x="10" y="64"/>
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parentTitleBackground" relativePoint="BOTTOMLEFT" x="0" y="2"/>
								<Anchor point="BOTTOMRIGHT" x="0" y="4"/>
							</Anchors>
							<TexCoords left="0.2" right="0.86" top="0.00390625" bottom="0.25390625"/>
						</Texture>			
					</Layer>	
					<Layer level="OVERLAY">
						<FontString name="$parentStatus" inherits="AchievementDateFont" text="Incomplete" parentKey="status">
							<Anchors>
								<Anchor point="BOTTOM" x="20" y="5"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Frame name="$parentIcon" parentKey="icon">
						<Size x="48" y="48"/>
						<Anchors>
							<Anchor point="TOPLEFT" x="3" y="-3"/>
						</Anchors>
						<Layers>			
							<Layer level="BORDER">
								<Texture name="$parentBling" file="Interface\AchievementFrame\UI-Achievement-Bling" hidden="true" parentKey="bling">
									<Anchors>
										<Anchor point="CENTER" x="-1" y="1"/>
									</Anchors>
									<Size x="84" y="84"/>
								</Texture>
							</Layer>
							<Layer level="ARTWORK">
								<Texture name="$parentTexture" file="Interface\Icons\Spell_Misc_HellifrePVPHonorHoldFavor" parentKey="texture">
									<Anchors>
										<Anchor point="CENTER" x="0" y="3"/>
									</Anchors>
									<Size x="36" y="36"/>
								</Texture>
							</Layer>
							<Layer level="OVERLAY">
								<Texture name="$parentOverlay" file="Interface\AchievementFrame\UI-Achievement-IconFrame" parentKey="frame">
									<Anchors>
										<Anchor point="CENTER" x="-1" y="2"/>
									</Anchors>
									<Size x="46" y="46"/>
									<TexCoords left="0" right="0.5625" top="0" bottom="0.5625"/>
								</Texture>
							</Layer>
						</Layers>
						<Scripts>
							<OnLoad function="AchievementIcon_OnLoad"/>
						</Scripts>				
					</Frame>
					<Frame name="$parentShield" parentKey="shield">
						<Size x="40" y="36"/>
						<Anchors>
							<Anchor point="TOPRIGHT" x="-20" y="-2"/>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<Texture name="$parentIcon" file="Interface\AchievementFrame\UI-Achievement-Shields" parentKey="icon">
									<Size x="40" y="40"/>
									<Anchors>
										<Anchor point="TOPRIGHT" x="0" y="0"/>
									</Anchors>
									<TexCoords left="0" right=".5" top="0" bottom=".45"/>
								</Texture>
							</Layer>
							<Layer level="OVERLAY">
								<FontString name="$parentPoints" inherits="GameFontNormalSmall" text="60" parentKey="points">
									<Anchors>
										<Anchor point="CENTER" x="-1" y="0"/>
									</Anchors>
									<Size x="40" y="14"/>
								</FontString>
							</Layer>
						</Layers>				
						<Scripts>
							<OnLoad function="AchievementShield_OnLoad"/>
						</Scripts>
					</Frame>
				</Frames>					
				<Scripts>
					<OnLoad>
						AchievementComparisonFriendButton_OnLoad(self);
					</OnLoad>
				</Scripts>
			</Frame>
		</Frames>
	</Frame>
	
	<Button name="StatTemplate" virtual="true" hidden="true">
		<Size x="511" y="24"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentBG" file="Interface\AchievementFrame\UI-Achievement-Stat-Buttons" setAllPoints="true" hidden="true" parentKey="background"/>
				<Texture name="$parentHeaderLeft" file="Interface\AchievementFrame\UI-Achievement-Stat-Buttons" parentKey="left">
					<Size x="23" y="23"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="0" y="-1"/>
					</Anchors>
					<TexCoords left="0" right="0.08984375" top="0" bottom="0.1796875"/>
				</Texture>
				<Texture name="$parentHeaderRight" file="Interface\AchievementFrame\UI-Achievement-Stat-Buttons" parentKey="right">
					<Size x="23" y="23"/>
					<Anchors>
						<Anchor point="BOTTOMRIGHT" x="0" y="-1"/>
					</Anchors>
					<TexCoords left="0.91015625" right="1" top="0" bottom="0.1796875"/>
				</Texture>
				<Texture name="$parentHeaderMiddle" file="Interface\AchievementFrame\UI-Achievement-Stat-Buttons" parentKey="middle">
					<Size x="0" y="23"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentHeaderLeft" relativePoint="TOPRIGHT" x="0" y="0"/>
						<Anchor point="TOPRIGHT" relativeTo="$parentHeaderRight" relativePoint="TOPLEFT" x="0" y="0"/>
					</Anchors>
					<TexCoords left="0.08984375" right="0.91015625" top="0" bottom="0.1796875"/>
				</Texture>
				<FontString name="$parentTitle" inherits="GameFontNormalLarge" parentKey="title">
					<Anchors>
						<Anchor point="CENTER" x="0" y="0"/>
					</Anchors>
				</FontString>
				<FontString name="$parentValue" inherits="GameFontHighlightRight" parentKey="value">
					<Anchors>
						<Anchor point="RIGHT" x="-5" y="0"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				AchievementStatButton_OnLoad(self, AchievementFrameStats);
			</OnLoad>
			<OnClick>
				AchievementStatButton_OnClick(self, button, down);
			</OnClick>
			<OnEnter function="AchievementStatButton_OnEnter"/>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
		<ButtonText parentKey="text">
			<Size x="400" y="13"/>
			<Anchors>
				<Anchor point="LEFT" x="5" y="0"/>
			</Anchors>
		</ButtonText>
		<NormalFont style="GameFontHighlightLeft"/>
		<HighlightTexture file="Interface\AchievementFrame\UI-Achievement-Stat-Buttons" alphaMode="ADD">
			<TexCoords left="0" right="1" top="0.5546875" bottom="0.7265625"/>
		</HighlightTexture>
	</Button>

	<Frame name="ComparisonStatTemplate" virtual="true">		
		<Size x="511" y="24"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentBG" file="Interface\AchievementFrame\UI-Achievement-Stat-Buttons" setAllPoints="true" hidden="true" parentKey="background"/>
				<Texture name="$parentHeaderLeft" file="Interface\AchievementFrame\UI-Achievement-Stat-Buttons" parentKey="left">
					<Size x="23" y="23"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="0" y="-1"/>
					</Anchors>
					<TexCoords left="0" right="0.08984375" top="0" bottom="0.1796875"/>
				</Texture>
				<Texture name="$parentHeaderRight" file="Interface\AchievementFrame\UI-Achievement-Stat-Buttons" parentKey="right">
					<Size x="23" y="23"/>
					<Anchors>
						<Anchor point="BOTTOMRIGHT" x="-135" y="-1"/>
					</Anchors>
					<TexCoords left="0.91015625" right="1" top="0" bottom="0.1796875"/>
				</Texture>
				<Texture name="$parentHeaderMiddle" file="Interface\AchievementFrame\UI-Achievement-Stat-Buttons" parentKey="middle">
					<Size x="0" y="23"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentHeaderLeft" relativePoint="TOPRIGHT" x="0" y="0"/>
						<Anchor point="TOPRIGHT" relativeTo="$parentHeaderRight" relativePoint="TOPLEFT" x="0" y="0"/>
					</Anchors>
					<TexCoords left="0.08984375" right="0.91015625" top="0" bottom="0.1796875"/>
				</Texture>
				<Texture name="$parentHeaderLeft2" file="Interface\AchievementFrame\UI-Achievement-Stat-Buttons" parentKey="left2">
					<Size x="23" y="23"/>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentHeaderRight" relativePoint="RIGHT" x="5" y="0"/>
					</Anchors>
					<TexCoords left="0" right="0.08984375" top="0" bottom="0.1796875"/>
				</Texture>
				<Texture name="$parentHeaderRight2" file="Interface\AchievementFrame\UI-Achievement-Stat-Buttons" parentKey="right2">
					<Size x="23" y="23"/>
					<Anchors>
						<Anchor point="BOTTOMRIGHT" x="4" y="-1"/>
					</Anchors>
					<TexCoords left="0.91015625" right="1" top="0" bottom="0.1796875"/>
				</Texture>
				<Texture name="$parentHeaderMiddle2" file="Interface\AchievementFrame\UI-Achievement-Stat-Buttons" parentKey="middle2">
					<Size x="0" y="23"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentHeaderLeft2" relativePoint="TOPRIGHT" x="0" y="0"/>
						<Anchor point="TOPRIGHT" relativeTo="$parentHeaderRight2" relativePoint="TOPLEFT" x="0" y="0"/>
					</Anchors>
					<TexCoords left="0.08984375" right="0.91015625" top="0" bottom="0.1796875"/>
				</Texture>
				<FontString name="$parentTitle" inherits="GameFontNormalLarge" parentKey="title">
					<Anchors>
						<Anchor point="CENTER" x="-67" y="-1"/>
					</Anchors>
				</FontString>
				<FontString name="$parentText" inherits="GameFontHighlightLeft" parentKey="text">
					<Anchors>
						<Anchor point="LEFT" x="4" y="0"/>
					</Anchors>
				</FontString>
				<FontString name="$parentValue" inherits="GameFontHighlightRight" parentKey="value">
					<Size x="500" y="24"/>
					<Anchors>
						<Anchor point="RIGHT" x="-150" y="-1"/>
					</Anchors>
				</FontString>
				<FontString name="$parentComparisonValue" inherits="GameFontHighlightRight" parentKey="friendValue">
					<Size x="120" y="24"/>
					<Anchors>
						<Anchor point="RIGHT" x="-4" y="-1"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="$parentMouseover" enableMouse="true" hidden="true" parentKey="mouseover"> 
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentComparisonValue"/>
					<Anchor point="BOTTOMRIGHT" x="-4" y="4"/>
				</Anchors>
				<Scripts>
					<OnEnter>
						local tooltip = self.tooltip;
						if ( tooltip ) then
							GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
							GameTooltip:SetText(tooltip, nil, nil, nil, nil, 1);
						end
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad>
				AchievementFrameComparisonStat_OnLoad(self);
			</OnLoad>
		</Scripts>
	</Frame>
	
	<Button name="SummaryStatTemplate" inherits="StatTemplate" virtual="true">
		<Scripts>
			<OnLoad>
				self.summary = true;
				AchievementStatButton_OnLoad(self, AchievementFrameSummaryStats);
				self:SetHeight(18);
			</OnLoad>
		</Scripts>
	</Button>

	<Frame name="AchievementFrame" toplevel="true" parent="UIParent" frameStrata="MEDIUM" hidden="true" enableMouse="true">
		<Size x="768" y="500"/>
		<Anchors>	
			<Anchor point="TOPLEFT" x="0" y="-104"/>
		</Anchors>
		<Backdrop edgeFile="Interface\AchievementFrame\UI-Achievement-WoodBorder" tile="true">
			<EdgeSize>
				<AbsValue val="64"/>
			</EdgeSize>
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<BackgroundInsets>
				<AbsInset left="5" right="5" top="5" bottom="5"/>
			</BackgroundInsets>
		</Backdrop>		
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentBackground" file="Interface\TutorialFrame\TutorialFrameBackground">
					<Anchors>
						<Anchor point="TOPLEFT" x="16" y="-16"/>
						<Anchor point="BOTTOMRIGHT" x="-16" y="16"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentMetalBorderLeft" file="Interface\AchievementFrame\UI-Achievement-MetalBorder-Left">
					<Size x="16" y="436"/>
					<Anchors>
						<Anchor point="LEFT" x="14" y="0"/>
					</Anchors>
					<TexCoords left="0" right="1" top="0" bottom=".87"/>
				</Texture>
				<Texture name="$parentMetalBorderRight" file="Interface\AchievementFrame\UI-Achievement-MetalBorder-Left">
					<Size x="16" y="436"/>
					<Anchors>
						<Anchor point="RIGHT" x="-13" y="0"/>
					</Anchors>
					<TexCoords left="1" right="0" top=".87" bottom="0"/>
				</Texture>
				<Texture name="$parentMetalBorderBottom" file="Interface\AchievementFrame\UI-Achievement-MetalBorder-Top">
					<Size x="450" y="16"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="28" y="13"/>
						<Anchor point="BOTTOMRIGHT" x="-28" y="13"/>
					</Anchors>
					<TexCoords left="0" right=".87" top="1.0" bottom="0"/>
				</Texture>
				<Texture name="$parentMetalBorderTop" file="Interface\AchievementFrame\UI-Achievement-MetalBorder-Top">
					<Size x="450" y="16"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="28" y="-12"/>
						<Anchor point="TOPRIGHT" x="-28" y="-12"/>
					</Anchors>
					<TexCoords left=".87" right="0" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentCategoriesBG" file="Interface\AchievementFrame\UI-Achievement-Parchment">
					<Size x="195" y="0"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="25" y="-23"/>
						<Anchor point="BOTTOMLEFT" x="25" y="23"/>
					</Anchors>
					<TexCoords left="0" right="0.5" top="0" bottom="1"/>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture name="$parentWaterMark" file="Interface\AchievementFrame\UI-Achievement-AchievementWatermark">
					<Size x="256" y="256"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativeTo="$parentCategoriesBG" x="0" y="0"/>
					</Anchors>
				</Texture>
				<Texture name="$parentGuildEmblemLeft" hidden="true">
					<Size x="94" y="188"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativeTo="$parentCategoriesBG"/>
					</Anchors>
					<TexCoords left="0.7" right="0" top="0.15" bottom="0.85"/>
				</Texture>
				<Texture name="$parentGuildEmblemRight" hidden="true">
					<Size x="94" y="188"/>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentGuildEmblemLeft" relativePoint="RIGHT"/>
					</Anchors>
					<TexCoords left="0" right="0.7" top="0.15" bottom="0.85"/>
				</Texture>
				<Texture name="$parentMetalBorderTopLeft" file="Interface\AchievementFrame\UI-Achievement-MetalBorder-Joint">
					<Size x="32" y="32"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="9" y="-7"/>
					</Anchors>
					<TexCoords left="1" right="0" top="1" bottom="0"/>
				</Texture>
				<Texture name="$parentMetalBorderTopRight" file="Interface\AchievementFrame\UI-Achievement-MetalBorder-Joint">
					<Size x="32" y="32"/>
					<Anchors>
						<Anchor point="TOPRIGHT" x="-8" y="-7"/>
					</Anchors>
					<TexCoords left="0" right="1" top="1" bottom="0"/>
				</Texture>
				<Texture name="$parentMetalBorderBottomLeft" file="Interface\AchievementFrame\UI-Achievement-MetalBorder-Joint">
					<Size x="32" y="32"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="9" y="8"/>
					</Anchors>
					<TexCoords left="1" right="0" top="0" bottom="1"/>				
				</Texture>
				<Texture name="$parentMetalBorderBottomRight" file="Interface\AchievementFrame\UI-Achievement-MetalBorder-Joint">
					<Size x="32" y="32"/>
					<Anchors>
						<Anchor point="BOTTOMRIGHT" x="-8" y="8"/>
					</Anchors>
					<TexCoords left="0" right="1" top="0" bottom="1"/>				
				</Texture>
				<Texture name="$parentWoodBorderTopLeft" file="Interface\AchievementFrame\UI-Achievement-WoodBorder-Corner">
					<Size x="64" y="64"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="4" y="-2"/>
					</Anchors>
					<TexCoords left="0" right="1" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentWoodBorderTopRight" file="Interface\AchievementFrame\UI-Achievement-WoodBorder-Corner">
					<Size x="64" y="64"/>
					<Anchors>
						<Anchor point="TOPRIGHT" x="-4" y="-2"/>
					</Anchors>
					<TexCoords left="1" right="0" top="0" bottom="1"/>
				</Texture>		
				<Texture name="$parentWoodBorderBottomLeft" file="Interface\AchievementFrame\UI-Achievement-WoodBorder-Corner">
					<Size x="64" y="64"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="4" y="3"/>
					</Anchors>
					<TexCoords left="0" right="1" top="1" bottom="0"/>
				</Texture>		
				<Texture name="$parentWoodBorderBottomRight" file="Interface\AchievementFrame\UI-Achievement-WoodBorder-Corner">
					<Size x="64" y="64"/>
					<Anchors>
						<Anchor point="BOTTOMRIGHT" x="-4" y="3"/>
					</Anchors>
					<TexCoords left="1" right="0" top="1" bottom="0"/>
				</Texture>						
			</Layer>
		</Layers>
		<Frames>
			<Frame name="$parentHeader" enableMouse="true">
				<Size x="726" y="106"/>
				<Anchors>
					<Anchor point="BOTTOMLEFT" relativeTo="AchievementFrame" relativePoint="TOPLEFT" x="26" y="-38"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentLeft" file="Interface\AchievementFrame\UI-Achievement-Header">
							<Size x="512" y="106"/>
							<Anchors>
								<Anchor point="BOTTOMLEFT"/>
							</Anchors>
							<TexCoords left="0" right="1" top="0" bottom="0.4140625"/>
						</Texture>
						<Texture name="$parentRight" file="Interface\AchievementFrame\UI-Achievement-Header">
							<Size x="215" y="100"/>
							<Anchors>
								<Anchor point="BOTTOMLEFT" relativeTo="$parentLeft" relativePoint="BOTTOMRIGHT" x="0" y="-6"/>
							</Anchors>
							<TexCoords left="0" right="0.419921875" top="0.4140625" bottom="0.8046875"/>
						</Texture>
					</Layer>				
					<Layer level="BORDER">
						<Texture name="$parentPointBorder" file="Interface\AchievementFrame\UI-Achievement-Header">
							<Size x="133" y="39"/>
							<Anchors>
								<Anchor point="BOTTOM" relativeTo="AchievementFrameHeader" relativePoint="BOTTOM" x="20" y="16"/>
							</Anchors>
							<TexCoords left="0.419921875" right="0.6796875" top="0.4140625" bottom="0.56640625"/>
						</Texture>
						<FontString name="$parentTitle" inherits="GameFontNormal" text="ACHIEVEMENT_TITLE">
							<Size x="200" y="12"/>
							<Anchors>
								<Anchor point="TOP" relativeTo="AchievementFrameHeaderPointBorder" relativePoint="TOP" x="0" y="7"/>
							</Anchors>
						</FontString>
						<Texture name="$parentRightDDLInset" file="Interface\AchievementFrame\UI-Achievement-RightDDLInset" hidden="true">
							<Size x="128" y="32"/>
							<Anchors>
								<Anchor point="TOPRIGHT" x="-76" y="-56"/>
							</Anchors>
						</Texture>
					</Layer>
					<Layer level="ARTWORK">
						<FontString name="$parentPoints" inherits="GameFontHighlight">
							<Size x="0" y="12"/>
							<Anchors>
								<Anchor point="TOP" relativeTo="AchievementFrameHeaderPointBorder" relativePoint="TOP" x="0" y="-13"/>
							</Anchors>
						</FontString>
						<Texture name="$parentShield" file="Interface\AchievementFrame\UI-Achievement-TinyShield">
							<Size x="20" y="20"/>
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentPoints" relativePoint="RIGHT" x="3" y="-1"/>
							</Anchors>
							<TexCoords left="0" right="0.625" top="0" bottom="0.625"/>
						</Texture> 	
					</Layer>
				</Layers>
			</Frame>
			<Frame name="$parentCategories">
				<Anchors>
					<Anchor point="TOPLEFT" x="21" y="-19"/>
					<Anchor point="BOTTOMLEFT" x="21" y="20"/>
				</Anchors>
				<Size x="175" y="0"/>
				<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
					<EdgeSize>
						<AbsValue val="16"/>
					</EdgeSize>
					<TileSize>
						<AbsValue val="16"/>
					</TileSize>
					<BackgroundInsets>
						<AbsInset left="5" right="5" top="5" bottom="5"/>
					</BackgroundInsets>
				</Backdrop>		
				<Scripts>
					<OnLoad function="AchievementFrameCategories_OnLoad"/>
					<OnShow function="AchievementFrameCategories_OnShow"/>
				</Scripts>
				<Frames>
					<ScrollFrame name="$parentContainer" inherits="HybridScrollFrameTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" x="0" y="-5"/>
							<Anchor point="BOTTOMRIGHT" x="0" y="5"/>
						</Anchors>
						<Frames>
							<Slider name="$parentScrollBar" inherits="HybridScrollBarTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="1" y="-14"/>
									<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="1" y="12"/>
								</Anchors>
							</Slider>
						</Frames>
					</ScrollFrame>
				</Frames>
			</Frame>
			<Frame name="$parentAchievements">
				<Size x="504" y="440"/>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentCategories" relativePoint="TOPRIGHT" x="22" y="0"/>
					<Anchor point="BOTTOM" relativeTo="$parentCategories" relativePoint="BOTTOM"/>
					<!--<Anchor point="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-44" y="20"/>
						</Offset>
					</Anchor>-->
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentBackground" file="Interface\AchievementFrame\UI-Achievement-AchievementBackground">
							<Anchors>
								<Anchor point="TOPLEFT" x="3" y="-3"/>
								<Anchor point="BOTTOMRIGHT" x="-3" y="3"/>
							</Anchors>
							<TexCoords left="0" right="1" top="0" bottom="0.5"/>
						</Texture>
					</Layer>
					<Layer level="ARTWORK">
						<FontString name="$parentFeatOfStrengthText" inherits="GameFontHighlight" text="FEAT_OF_STRENGTH_DESCRIPTION">
							<Size x="490" y="0"/>
							<Anchors>
								<Anchor point="TOP" x="0" y="-189"/>
							</Anchors>
						</FontString>
						<Texture>
							<Size x="0" y="0"/>
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parentBackground" x="0" y="0"/>
								<Anchor point="BOTTOMRIGHT" x="0" y="0"/>
							</Anchors>
							<Color r="0" g="0" b="0" a="0.75"/>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad function="AchievementFrameAchievements_OnLoad"/>
					<OnEvent function="AchievementFrameAchievements_OnEvent"/>
					<OnHide>
						AchievementFrameFilterDropDown:Hide();
						AchievementFrameHeaderRightDDLInset:Hide();
					</OnHide>
					<OnShow function="AchievementFrameAchievements_OnShow"/>
				</Scripts>
				<Frames>
					<ScrollFrame name="$parentContainer" inherits="HybridScrollFrameTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" x="4" y="-3"/>
							<Anchor point="BOTTOMRIGHT" x="0" y="5"/>
						</Anchors>
						<Frames>
							<Slider name="$parentScrollBar" inherits="HybridScrollBarTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="1" y="-16"/>
									<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="1" y="12"/>
								</Anchors>
							</Slider>
						</Frames>
					</ScrollFrame>
					<Frame setAllPoints="true">
						<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="16"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="16"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="5" right="5" top="5" bottom="5"/>
							</BackgroundInsets>
						</Backdrop>	
						<Scripts>
							<OnLoad function="AchievementFrameAchievementsBackdrop_OnLoad"/>
						</Scripts>
					</Frame>
				</Frames>				
			</Frame>
			<Frame name="$parentStats" hidden="true">
				<Size x="506" y="440"/>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentCategories" relativePoint="TOPRIGHT" x="22" y="0"/>
					<Anchor point="BOTTOM" relativeTo="$parentCategories" relativePoint="BOTTOM"/>
				</Anchors>
				<Scripts>
					<OnLoad function="AchievementFrameStats_OnLoad"/>
					<OnEvent function="AchievementFrameStats_OnEvent"/>
				</Scripts>
				<Frames>
					<Frame name="$parentBG">
						<!-- This prevents the BG from being resized with the rest of the frame when the scrollbar pops in and out -->
						<Size x="526" y="438"/>
						<Anchors>
							<Anchor point="TOPLEFT" x="2" y="0"/>
							<Anchor point="BOTTOM" x="0" y="3"/>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<Texture file="Interface\AchievementFrame\UI-Achievement-StatsBackground">
									<Anchors>
										<Anchor point="TOPLEFT" x="0" y="0"/>
										<Anchor point="BOTTOMRIGHT" x="0" y="0"/>
									</Anchors>
								</Texture>
							</Layer>
						</Layers>
						<Scripts>
							<OnLoad function="LowerFrameLevel"/>
						</Scripts>
					</Frame>
					<ScrollFrame name="$parentContainer" inherits="HybridScrollFrameTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" x="3" y="-3"/>
							<Anchor point="BOTTOMRIGHT" x="0" y="5"/>
						</Anchors>
						<Frames>
							<Slider name="$parentScrollBar" inherits="HybridScrollBarTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="1" y="-16"/>
									<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="1" y="12"/>
								</Anchors>
							</Slider>
						</Frames>
					</ScrollFrame>
					<Frame setAllPoints="true">
						<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="16"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="16"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="5" right="5" top="5" bottom="5"/>
							</BackgroundInsets>
						</Backdrop>	
						<Scripts>
							<OnLoad function="AchievementFrameAchievementsBackdrop_OnLoad"/>
						</Scripts>
					</Frame>
				</Frames>				
			</Frame>
			<Frame name="$parentSummary" hidden="true">
				<Size x="529" y="461"/>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentCategories" relativePoint="TOPRIGHT" x="0" y="1"/>
					<Anchor point="BOTTOM" relativeTo="$parentCategories" relativePoint="BOTTOM"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentBackground" file="Interface\AchievementFrame\UI-Achievement-AchievementBackground">
							<Anchors>
								<Anchor point="TOPLEFT" x="3" y="-3"/>
								<Anchor point="BOTTOMRIGHT" x="-3" y="3"/>
							</Anchors>
							<TexCoords left="0" right="1" top="0" bottom="0.5"/>
						</Texture>
					</Layer>
				</Layers>
				<Frames>
					<Frame setAllPoints="true">
						<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="16"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="16"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="5" right="5" top="5" bottom="5"/>
							</BackgroundInsets>
						</Backdrop>	
						<Scripts>
							<OnLoad function="AchievementFrameAchievementsBackdrop_OnLoad"/>
						</Scripts>
					</Frame>
					<Frame name="$parentAchievements">
						<Size x="0" y="210"/>
						<Anchors>
							<Anchor point="TOPLEFT" x="5" y="-10"/>
							<Anchor point="TOPRIGHT" x="-5" y="-10"/>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<FontString name="$parentEmptyText" inherits="GameFontHighlight" text="NO_COMPLETED_ACHIEVEMENTS">
									<Anchors>
										<Anchor point="TOP" x="0" y="-30"/>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Frames>
							<Frame name="$parentHeader">
								<Size x="0" y="20"/>
								<Anchors>
									<Anchor point="TOPLEFT" x="0" y="0"/>
									<Anchor point="TOPRIGHT" x="0" y="0"/>
								</Anchors>
								<Layers>
									<Layer level="BACKGROUND">
										<Texture name="$parentHeader" file="Interface\AchievementFrame\UI-Achievement-RecentHeader">
											<Anchors>
												<Anchor point="TOPLEFT" x="-20" y="0"/>
												<Anchor point="BOTTOMRIGHT" x="20" y="0"/>
											</Anchors>
											<TexCoords left="0" right="1" top="0" bottom="0.71875"/>
										</Texture>
										<FontString name="$parentTitle" inherits="GameFontNormal" text="LATEST_UNLOCKED_ACHIEVEMENTS">
											<Size x="0" y="20"/>
											<Anchors>
												<Anchor point="CENTER" x="0" y="0"/>
											</Anchors>
										</FontString>
									</Layer>
								</Layers>
							</Frame>
						</Frames>
					</Frame>
					<Frame name="$parentCategories">
						<Size x="0" y="164"/>
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentAchievements" relativePoint="BOTTOMLEFT" x="0" y="6"/>
							<Anchor point="TOPRIGHT" relativeTo="$parentAchievements" relativePoint="BOTTOMRIGHT" x="0" y="6"/>
						</Anchors>								
						<Frames>
							<Frame name="$parentHeader">
								<Size x="0" y="20"/>
								<Anchors>
									<Anchor point="TOPLEFT" x="0" y="0"/>
									<Anchor point="TOPRIGHT" x="0" y="0"/>
								</Anchors>
								<Layers>
									<Layer level="BACKGROUND">
										<Texture name="$parentTexture" file="Interface\AchievementFrame\UI-Achievement-RecentHeader">
											<Anchors>
												<Anchor point="TOPLEFT" x="-20" y="0"/>
												<Anchor point="BOTTOMRIGHT" x="20" y="0"/>
											</Anchors>
											<TexCoords left="0" right="1" top="0" bottom="0.71875"/>
										</Texture>
										<FontString name="$parentTitle" inherits="GameFontNormal" text="ACHIEVEMENT_CATEGORY_PROGRESS">
											<Size x="0" y="20"/>
											<Anchors>
												<Anchor point="CENTER" x="0" y="0"/>
											</Anchors>
										</FontString>
									</Layer>
								</Layers>
							</Frame>
							<StatusBar name="$parentStatusBar" drawLayer="BORDER">
								<Size x="488" y="21"/>
								<Anchors>
									<Anchor point="TOP" relativeTo="$parentHeader" relativePoint="BOTTOM" x="0" y="-6"/>
								</Anchors>
								<Layers>
									<Layer level="OVERLAY">
										<FontString name="$parentTitle" inherits="GameFontNormal" text="ACHIEVEMENTS_COMPLETED">
											<Anchors>
												<Anchor point="LEFT" x="6" y="4"/>
											</Anchors>
										</FontString>
										<FontString name="$parentText" inherits="GameFontHighlight">
											<Size x="0" y="14"/>
											<Anchors>
												<Anchor point="RIGHT" x="-5" y="3"/>
											</Anchors>
										</FontString>
										<Texture name="$parentLeft" file="Interface\AchievementFrame\UI-Achievement-Header">
											<Size x="32" y="48"/>
											<Anchors>
												<Anchor point="TOPLEFT" x="-15" y="16"/>
											</Anchors>
											<TexCoords left="0.423828125" right="0.486" top="0.56640625" bottom="0.75"/>
										</Texture>
										<Texture name="$parentRight" file="Interface\AchievementFrame\UI-Achievement-Header">
											<Size x="32" y="48"/>
											<Anchors>
												<Anchor point="TOPRIGHT" x="15" y="16"/>
											</Anchors>
											<TexCoords right="0.423828125" left="0.486" bottom="0.75" top="0.56640625"/>
										</Texture>
										<Texture name="$parentMiddle" file="Interface\AchievementFrame\UI-Achievement-Header">
											<Size x="218" y="48"/>
											<Anchors>
												<Anchor point="TOPLEFT" relativeTo="$parentLeft" relativePoint="TOPRIGHT"/>
												<Anchor point="BOTTOMRIGHT" relativeTo="$parentRight" relativePoint="BOTTOMLEFT"/>
											</Anchors>
											<TexCoords right="0.486" left="0.889224609375" bottom="0.75" top="0.56640625"/>
										</Texture>
									</Layer>
									<Layer level="BACKGROUND">
										<Texture name="$parentFillBar">
											<Size x="0" y="15"/>
											<Color r="0" g="0" b="0" a="0.5"/>
										</Texture>
									</Layer>
								</Layers>
								<BarTexture name="$parentBar" file="Interface\PaperDollInfoFrame\UI-Character-Skills-Bar"/>
								<BarColor r="0" g="1" b="0"/>
							</StatusBar>							
							<StatusBar name="$parentCategory1" inherits="AchievementFrameSummaryCategoryTemplate" id="92">	
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="$parentStatusBar" relativePoint="BOTTOMLEFT" x="0" y="-24"/>
								</Anchors>
							</StatusBar>
							<StatusBar name="$parentCategory2" inherits="AchievementFrameSummaryCategoryTemplate" id="96">	
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="$parentCategory1" relativePoint="TOPRIGHT" x="20" y="0"/>
								</Anchors>
							</StatusBar>
							<StatusBar name="$parentCategory3" inherits="AchievementFrameSummaryCategoryTemplate" id="97">	
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="$parentCategory1" relativePoint="BOTTOMLEFT" x="0" y="-14"/>
								</Anchors>							
							</StatusBar>
							<StatusBar name="$parentCategory4" inherits="AchievementFrameSummaryCategoryTemplate" id="95">	
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="$parentCategory3" relativePoint="TOPRIGHT" x="20" y="0"/>
								</Anchors>						
							</StatusBar>
							<StatusBar name="$parentCategory5" inherits="AchievementFrameSummaryCategoryTemplate" id="168">	
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="$parentCategory3" relativePoint="BOTTOMLEFT" x="0" y="-14"/>
								</Anchors>						
							</StatusBar>
							<StatusBar name="$parentCategory6" inherits="AchievementFrameSummaryCategoryTemplate" id="15165">	
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="$parentCategory5" relativePoint="TOPRIGHT" x="20" y="0"/>
								</Anchors>
							</StatusBar>
							<StatusBar name="$parentCategory7" inherits="AchievementFrameSummaryCategoryTemplate" id="169">	
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="$parentCategory5" relativePoint="BOTTOMLEFT" x="0" y="-14"/>
								</Anchors>							
							</StatusBar>
							<StatusBar name="$parentCategory8" inherits="AchievementFrameSummaryCategoryTemplate" id="201">	
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="$parentCategory7" relativePoint="TOPRIGHT" x="20" y="0"/>
								</Anchors>							
							</StatusBar>
							<StatusBar name="$parentCategory9" inherits="AchievementFrameSummaryCategoryTemplate" id="155">	
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="$parentCategory7" relativePoint="BOTTOMLEFT" x="0" y="-14"/>
								</Anchors>							
							</StatusBar>
							<StatusBar name="$parentCategory10" inherits="AchievementFrameSummaryCategoryTemplate" id="15117">	
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="$parentCategory9" relativePoint="TOPRIGHT" x="20" y="0"/>
								</Anchors>							
							</StatusBar>	
						</Frames>
					</Frame>
				</Frames>
				<Scripts>
					<OnLoad>
						self:RegisterEvent("ACHIEVEMENT_EARNED");
					</OnLoad>
					<OnEvent function="AchievementFrameSummary_Update"/>
					<OnShow function="AchievementFrameSummary_OnShow"/>
				</Scripts>
			</Frame>
			<Frame name="$parentComparison" hidden="true">
				<Size x="650" y="461"/>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentCategories" relativePoint="TOPRIGHT" x="0" y="0"/>
					<Anchor point="BOTTOM" relativeTo="$parentCategories" relativePoint="BOTTOM"/>
				</Anchors>
				<Frames>
					<Frame name="$parentHeader">
						<Anchors>
							<Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" x="39" y="-5"/>
						</Anchors>
						<Size x="190" y="57"/>
						<Layers>
							<Layer level="ARTWORK">
								<Texture name="$parentBG" file="Interface\AchievementFrame\UI-Achievement-ComparisonHeader">
									<Anchors>
										<Anchor point="TOPLEFT"/>
										<Anchor point="BOTTOMRIGHT"/>
									</Anchors>
									<TexCoords left="0" right="0.821575" top="0" bottom="0.910625"/>
								</Texture>
							</Layer>
							<Layer level="BACKGROUND">
								<Texture name="$parentPortrait">
									<Anchors>
										<Anchor point="TOPLEFT" x="27" y="-19"/>
									</Anchors>
									<Size x="36" y="36"/>
									<TexCoords left="0.05" right=".95" top="0" bottom=".9"/>
								</Texture>
							</Layer>
							<Layer level="BACKGROUND" textureSubLevel="-1">
								<Texture name="$parentPortraitBg">
									<Anchors>
										<Anchor point="TOPLEFT" relativeTo="$parentPortrait"/>
										<Anchor point="BOTTOMRIGHT" relativeTo="$parentPortrait"/>
									</Anchors>
									<Color r="0" g="0" b="0"/>
								</Texture>
							</Layer>
							<Layer level="OVERLAY">
								<FontString name="$parentName" text="PLAYER" inherits="GameFontNormalLeft">
									<Size x="78" y="12"/>
									<Anchors>
										<Anchor point="TOPLEFT" x="62" y="-25"/>
									</Anchors>
								</FontString>
								<FontString name="$parentPoints" text="500" inherits="GameFontHighlight">
									<Anchors>
										<Anchor point="TOPLEFT" relativeTo="$parentName" relativePoint="BOTTOMLEFT" x="4" y="-3"/>
									</Anchors>
								</FontString>
								<Texture name="$parentShield" file="Interface\AchievementFrame\UI-Achievement-TinyShield">
									<Size x="20" y="20"/>
									<Anchors>
										<Anchor point="LEFT" relativeTo="$parentPoints" relativePoint="RIGHT" x="2" y="-2"/>
									</Anchors>
									<TexCoords left="0" right="0.625" top="0" bottom="0.625"/>
								</Texture> 	
							</Layer>
						</Layers>
						<Scripts>
							<OnShow>
								--Temporaries
								SetPortraitTexture(_G[self:GetName().."Portrait"], "player");
								self:SetFrameLevel(self:GetParent():GetFrameLevel() + 4);
							</OnShow>
						</Scripts>
					</Frame>
					<Frame name="$parentSummary" hidden="true">
						<Anchors>
							<Anchor point="TOPLEFT" x="4" y="-3"/>
						</Anchors>
						<Size x="616" y="50"/>
						<Frames>
							<Frame name="$parentPlayer">
								<Size x="498" y="50"/>
								<Anchors>
									<Anchor point="LEFT"/>
								</Anchors>
								<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
									<EdgeSize>
										<AbsValue val="16"/>
									</EdgeSize>
								</Backdrop>				
								<Layers>
									<Layer level="BACKGROUND">
										<Texture name="$parentBackground" file="Interface\AchievementFrame\UI-Achievement-Parchment-Horizontal">
											<Anchors>
												<Anchor point="TOPLEFT" x="3" y="-3"/>
												<Anchor point="BOTTOMRIGHT" x="-3" y="3"/>
											</Anchors>
											<TexCoords left="0" right="1" top="0" bottom="0.25"/>
										</Texture>						
									</Layer>
								</Layers>								
								<Frames>
									<StatusBar name="$parentStatusBar" inherits="AchievementHeaderStatusBarTemplate" parentKey="statusBar">
										<Size x="0" y="21"/>
										<Anchors>
											<Anchor point="TOPLEFT" x="19" y="-17"/>
											<Anchor point="TOPRIGHT" x="-19" y="-17"/>
										</Anchors>
									</StatusBar>								
								</Frames>
								<Scripts>
									<OnLoad>
										self:SetBackdropBorderColor(0.4, 0.2, 0, 1);
									</OnLoad>
								</Scripts>
							</Frame>
							<Frame name="$parentFriend">
								<Size x="120" y="50"/>
								<Anchors>
									<Anchor point="LEFT" relativeTo="$parentPlayer" relativePoint="RIGHT"/>
								</Anchors>
								<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
									<EdgeSize>
										<AbsValue val="16"/>
									</EdgeSize>
								</Backdrop>		
								<Layers>
									<Layer level="BACKGROUND">
										<Texture name="$parentBackground" file="Interface\AchievementFrame\UI-Achievement-Parchment-Horizontal">
											<Anchors>
												<Anchor point="TOPLEFT" x="3" y="-3"/>
												<Anchor point="BOTTOMRIGHT" x="-3" y="3"/>
											</Anchors>
											<TexCoords left=".2" right=".75" top="0" bottom="1"/>
										</Texture>						
									</Layer>
								</Layers>
								<Frames>
									<StatusBar name="$parentStatusBar" inherits="AchievementHeaderStatusBarTemplate" parentKey="statusBar">
										<Size x="90" y="21"/>
									</StatusBar>
								</Frames>
								<Scripts>
									<OnLoad>
										self:SetBackdropBorderColor(0.4, 0.2, 0, 1);
										self.statusBar.title:Hide();
									</OnLoad>
								</Scripts>
							</Frame>
						</Frames>
					</Frame>
					<ScrollFrame name="$parentContainer" inherits="HybridScrollFrameTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentSummary" relativePoint="BOTTOMLEFT" x="0" y="1"/>
							<Anchor point="BOTTOMRIGHT" x="0" y="5"/>
						</Anchors>
						<Frames>
							<Slider name="$parentScrollBar" inherits="HybridScrollBarTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="AchievementFrameComparisonSummary" relativePoint="TOPRIGHT" x="7" y="-16"/>
									<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="1" y="12"/>
								</Anchors>
							</Slider>
						</Frames>
						<Scripts>
							<OnShow>
								local parentName = self:GetParent():GetName();
								_G[parentName .. "Summary"]:Show();
								_G[parentName .. "Watermark"]:Hide();
								_G[parentName .. "Dark"]:Show();
							</OnShow>
							<OnHide>
								local parentName = self:GetParent():GetName();
								_G[parentName .. "Summary"]:Hide();
							</OnHide>
						</Scripts>
					</ScrollFrame>
					<ScrollFrame name="$parentStatsContainer" inherits="HybridScrollFrameTemplate" hidden="true">
						<Anchors>
							<Anchor point="TOPLEFT" x="4" y="-3"/>
							<Anchor point="BOTTOMRIGHT" x="0" y="5"/>
						</Anchors>
						<Frames>
							<Slider name="$parentScrollBar" inherits="HybridScrollBarTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="1" y="-16"/>
									<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="1" y="12"/>
								</Anchors>
							</Slider>
						</Frames>
						<Scripts>
							<OnShow>
								local parentName = self:GetParent():GetName();
								_G[parentName .. "Watermark"]:Show();
								_G[parentName .. "Dark"]:Hide();
							</OnShow>
						</Scripts>
					</ScrollFrame>
					<Frame setAllPoints="true">
						<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="16"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="16"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="5" right="5" top="5" bottom="5"/>
							</BackgroundInsets>
						</Backdrop>	
						<Scripts>
							<OnLoad function="AchievementFrameAchievementsBackdrop_OnLoad"/>
						</Scripts>
					</Frame>
				</Frames>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentBackground" file="Interface\AchievementFrame\UI-Achievement-AchievementBackground">
							<Anchors>
								<Anchor point="TOPLEFT" x="3" y="-3"/>
								<Anchor point="BOTTOMRIGHT" x="-3" y="3"/>
							</Anchors>
							<TexCoords left="0" right="1" top="0" bottom="0.5"/>
						</Texture>
					</Layer>
					<Layer level="ARTWORK">
						<Texture name="$parentDark">
							<Size x="0" y="0"/>
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parentBackground" x="0" y="0"/>
								<Anchor point="BOTTOMRIGHT" x="0" y="0"/>
							</Anchors>
							<Color r="0" g="0" b="0" a="0.75"/>
						</Texture>
						<Texture name="$parentWatermark" file="Interface\AchievementFrame\UI-Achievement-StatsComparisonBackground">
							<Size x="160" y="0"/>
							<Anchors>
								<Anchor point="TOPRIGHT" x="0" y="-3"/>
								<Anchor point="BOTTOMRIGHT" x="0" y="3"/>
							</Anchors>
							<TexCoords left="0" right=".65" top="0" bottom="1"/>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad function="AchievementFrameComparison_OnLoad"/>
					<OnEvent function="AchievementFrameComparison_OnEvent"/>
					<OnShow function="AchievementFrameComparison_OnShow"/>
					<OnHide function="AchievementFrameComparison_OnHide"/>
				</Scripts>
			</Frame>			
			<Button name="$parentCloseButton" inherits="UIPanelCloseButton">
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="AchievementFrame" relativePoint="TOPRIGHT" x="3" y="4"/>
				</Anchors>
				<Scripts>
					<OnShow>
						if ( AchievementFrameComparisonHeader:IsShown() ) then
							self:SetFrameLevel(AchievementFrameComparisonHeader:GetFrameLevel() + 1);
						end
					</OnShow>
				</Scripts>
			</Button>
			<Button name="$parentTab1" inherits="AchievementFrameTabButtonTemplate" id="1" text="ACHIEVEMENTS">
				<Anchors>
					<Anchor point="BOTTOMLEFT" x="11" y="-30"/>
				</Anchors>
				<Scripts>
					<OnClick>
						AchievementFrameTab_OnClick(self:GetID());
						PlaySound("igCharacterInfoTab");
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentTab2" inherits="AchievementFrameTabButtonTemplate" id="2" text="ACHIEVEMENTS_GUILD_TAB">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentTab1" relativePoint="RIGHT" x="-5" y="0"/>
				</Anchors>
				<Scripts>
					<OnClick>
						AchievementFrameTab_OnClick(self:GetID());
						PlaySound("igCharacterInfoTab");
					</OnClick>
				</Scripts>				
			</Button>
			<Button name="$parentTab3" inherits="AchievementFrameTabButtonTemplate" id="3" text="STATISTICS">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentTab2" relativePoint="RIGHT" x="-5" y="0"/>
				</Anchors>
				<Scripts>
					<OnClick>
						AchievementFrameTab_OnClick(self:GetID());
						PlaySound("igCharacterInfoTab");
					</OnClick>
				</Scripts>
			</Button>
			<Frame name="$parentFilterDropDown" hidden="true">
				<Size x="110" y="32"/>
				<Anchors>
					<Anchor point="TOPRIGHT" x="-98" y="10"/>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="$parentText" inherits="GameFontHighlightSmall" justifyH="LEFT" text="Text">
							<Size x="0" y="32"/>								
							<Anchors>
								<Anchor point="LEFT" x="0" y="4"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>	
				<Frames>
					<Button name="$parentButton">
						<Size x="24" y="24"/>
						<Anchors>
							<Anchor point="TOPRIGHT"/>
						</Anchors>
						<Scripts>
							<OnClick>
								ToggleDropDownMenu(nil, nil, self:GetParent());
								PlaySound("igMainMenuOptionCheckBoxOn");
							</OnClick>
						</Scripts>
						<NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Up">
							<Size x="24" y="24"/>
							<Anchors>
								<Anchor point="RIGHT"/>
							</Anchors>
						</NormalTexture>
						<PushedTexture name="$parentPushedTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Down">
							<Size x="24" y="24"/>
							<Anchors>
								<Anchor point="RIGHT"/>
							</Anchors>
						</PushedTexture>
						<DisabledTexture name="$parentDisabledTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Disabled">
							<Size x="24" y="24"/>
							<Anchors>
								<Anchor point="RIGHT"/>
							</Anchors>
						</DisabledTexture>
						<HighlightTexture name="$parentHighlightTexture" file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD">
							<Size x="24" y="24"/>
							<Anchors>
								<Anchor point="RIGHT"/>
							</Anchors>
						</HighlightTexture>
					</Button>
					<Frame name="$parentMouseOver" enableMouse="true">
						<Size x="125" y="32"/>
						<Anchors>
							<Anchor point="TOPLEFT" x="-3"/>
						</Anchors>
						<Scripts>
							<OnEnter function="AchievementFrameFilterDropDown_OnEnter"/>
							<OnLeave>
								GameTooltip:Hide();
							</OnLeave>
						</Scripts>
					</Frame>
				</Frames>
				<Scripts>
					<OnLoad function="AchievementFrameFilterDropDown_OnLoad"/>
					<OnHide>
						CloseDropDownMenus()
					</OnHide>
				</Scripts>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad function="AchievementFrame_OnLoad"/>
			<OnShow function="AchievementFrame_OnShow"/>
			<OnHide function="AchievementFrame_OnHide"/>
		</Scripts>
	</Frame>
		
</Ui>