<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/
C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">

	<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
				AchievementButton_ToggleTracking(self:GetParent().id);
			</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>
				if ( GetTrackedAchievement() == self:GetParent().id ) then
					self:SetChecked(true);
				else
					self:SetChecked(false);
				end
			</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>
            <AbsDimension x="115" y="32"/>
        </Size>
        <Layers>
        	<Layer level="BACKGROUND">
        		<Texture name="$parentLeftDisabled" file="Interface\AchievementFrame\UI-Achievement-Header">
        			<Size>
        				<AbsDimension x="21" y="59"/>
        			</Size>
        			<Anchors>
        				<Anchor point="TOPLEFT">
        					<Offset>
        						<AbsDimension x="0" y="5"/>
        					</Offset>
        				</Anchor>
        			</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>
        				<AbsDimension x="88" y="59"/>
        			</Size>
        			<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>
        				<AbsDimension x="18" y="59"/>
        			</Size>
        			<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>
        				<AbsDimension x="21" y="49"/>
        			</Size>
        			<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>
        				<AbsDimension x="88" y="49"/>
        			</Size>
        			<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>
        				<AbsDimension x="18" y="49"/>
        			</Size>
        			<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">
        			<Size>
        				<AbsDimension x="32" y="49"/>
        			</Size>
        			<Anchors>
        				<Anchor point="TOPLEFT">
							<Offset x="-3" y="-1"/>
						</Anchor>
        			</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">
        			<Size>
        				<AbsDimension x="18" y="49"/>
        			</Size>
        			<Anchors>
        				<Anchor point="TOPRIGHT">
							<Offset x="-4" y="-1"/>
						</Anchor>
        			</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">
        			<Size>
        				<AbsDimension x="88" y="49"/>
        			</Size>
        			<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();
				getglobal(name.."Left"):SetVertexColor(0.6, 0.6, 0.6);
				getglobal(name.."Middle"):SetVertexColor(0.6, 0.6, 0.6);
				getglobal(name.."Right"):SetVertexColor(0.6, 0.6, 0.6);
				getglobal(name.."LeftDisabled"):SetPoint("TOPLEFT", 0, 2);
				self.leftHighlight = getglobal(name.."LeftHighlight");
				self.middleHighlight = getglobal(name.."MiddleHighlight");
				self.rightHighlight = getglobal(name.."RightHighlight");
				self.text = getglobal(name.."Text");
			</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">
			<Anchors>
				<Anchor point="CENTER">
					<Offset>
						<AbsDimension x="0" y="-3"/>
					</Offset>
				</Anchor>
			</Anchors>
		</ButtonText>
		<NormalFont style="GameFontNormalSmall"/>
		<HighlightFont style="GameFontHighlightSmall"/>
		<DisabledFont style="GameFontHighlightSmall"/>
    </Button>
	<Frame name="AchievementFrameAchievementsObjectives"/>
	<Frame name="MiniAchievementTemplate" virtual="true" parent="AchievementFrame">
		<Size>
			<AbsDimension x="42" y="42"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentIcon">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="8" y="-8"/>
							</Offset>
						</Anchor>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="-8" y="8"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<Texture name="$parentBorder" file="Interface\AchievementFrame\UI-Achievement-Progressive-IconBorder">
					<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">
							<Offset>
								<AbsDimension x="12" y="-12"/>
							</Offset>
						</Anchor>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="16" y="-16"/>
							</Offset>
						</Anchor>
					</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">	
					<Size>
						<AbsDimension x="18" y="18"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="-2" y="3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				local name = self:GetName();
				self.points = getglobal(name .. "Points");
				self.icon = getglobal(name .. "Icon");
			</OnLoad>
			<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);
				end
				if ( self.numCriteria ) then
					for i = 1, self.numCriteria do
						GameTooltip:AddLine(self["criteria"..i]);
					end
				end
				GameTooltip:Show();
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
	</Frame>

	<Button name="MetaCriteriaTemplate" virtual="true">
		<Size>
			<AbsDimension x="30" y="30"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentIcon">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="6" y="-6"/>
							</Offset>
						</Anchor>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="-7" y="7"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<Texture name="$parentBorder" file="Interface\AchievementFrame\UI-Achievement-Progressive-IconBorder">
					<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="$parentCheck" file="Interface\AchievementFrame\UI-Achievement-Criteria-Check">
					<Size>
						<AbsDimension x="20" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT" relativePoint="LEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="0.65625" top="0" bottom="1"/>
				</Texture>
				<FontString name="$parentLabel" inherits="AchievementCriteriaFont" text="Fake criteria!">
					<Anchors>
						<Anchor point="LEFT" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="4" y="2"/>
							</Offset>
						</Anchor>
					</Anchors>
					<Size x="125" y="20"/>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				local name = self:GetName();
				self.icon = getglobal(name .. "Icon");
				self.label = getglobal(name .. "Label");
				self.check = getglobal(name .. "Check");
				self.border = getglobal(name .. "Border");
			</OnLoad>
			<OnEnter>
				if ( self.date ) then
					GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
					GameTooltip:AddLine(self.date, 1, 1, 1);
					GameTooltip:Show();
				end
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
			<OnClick>
				if ( self.id ) then
					AchievementFrame_SelectAchievement(self.id);
				end
			</OnClick>
		</Scripts>
	</Button>
	
	<!-- Looking for AchievementProgressBarTemplate? It's in QuestLogFrame.xml, since tracking needs it!, -->

	<StatusBar name="AchievementHeaderStatusBarTemplate" virtual="true">
		<Anchors>
			<Anchor point="TOP">
				<!-- That's right. -0. -->
				<Offset x="-0" y="-17"/>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="$parentTitle" inherits="GameFontNormal" text="ACHIEVEMENTS_COMPLETED">
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="6" y="4"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentText" inherits="GameFontHighlight">
					<Size>
						<AbsDimension x="0" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT">
							<Offset x="-5" y="3"/>
						</Anchor>
					</Anchors>
				</FontString>
				<Texture name="$parentLeft" file="Interface\AchievementFrame\UI-Achievement-Header">
					<Size>
						<AbsDimension x="32" y="48"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset x="-15" y="16"/>
						</Anchor>
					</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>
						<AbsDimension x="32" y="48"/>
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT">
							<Offset x="15" y="16"/>
						</Anchor>
					</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>
						<AbsDimension x="0" y="15"/>
					</Size>
					<Color r="0" g="0" b="0" a="0.5"/>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				local name = self:GetName();
				self.title = getglobal(name .. "Title");
				self.text = getglobal(name .. "Text");
			</OnLoad>
		</Scripts>
		<BarTexture name="$parentBar" file="Interface\PaperDollInfoFrame\UI-Character-Skills-Bar"/>
		<BarColor r="0" g="1" b="0"/>
	</StatusBar>
	
	<Button name="AchievementCategoryTemplate" virtual="true">
		<Size>
			<AbsDimension x="158" y="24"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentBackground" file="Interface\AchievementFrame\UI-Achievement-Category-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">
					<Size x="145" y="14"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT">
							<Offset x="16" y="4"/> 
						</Anchor>
					</Anchors>					
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				AchievementCategoryButton_OnLoad(self);
			</OnLoad>
			<OnClick>
				AchievementCategoryButton_OnClick(self);
			</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">
					<Offset x="0" y="0"/>
				</Anchor>
				<Anchor point="BOTTOMRIGHT">
					<Offset x="-1" y="-7"/>
				</Anchor>
			</Anchors>
			<TexCoords left="0" right="0.6640625" top="0" bottom="1"/>
		</HighlightTexture>
	</Button>

	<Frame name="AchievementIconFrameTemplate" virtual="true">
		<Layers>			
			<Layer level="BACKGROUND">
				<Texture name="$parentBackfill" file="Interface\AchievementFrame\UI-Achievement-IconFrame-Backfill" hidden="true">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
					<Size>
						<AbsDimension x="64" y="64"/>
					</Size>
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<Texture name="$parentBling" file="Interface\AchievementFrame\UI-Achievement-Bling" hidden="true">
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="-1" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
					<Size>
						<AbsDimension x="116" y="116"/>
					</Size>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentTexture" file="Interface\Icons\Spell_Misc_HellifrePVPHonorHoldFavor">
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="3"/>
							</Offset>
						</Anchor>
					</Anchors>
					<Size>
						<AbsDimension x="50" y="50"/>
					</Size>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture name="$parentOverlay" file="Interface\AchievementFrame\UI-Achievement-IconFrame">
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="-1" y="2"/>
							</Offset>
						</Anchor>
					</Anchors>
					<Size>
						<AbsDimension x="72" y="72"/>
					</Size>
					<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>
			<AbsDimension x="350" y="15"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parentCheck" file="Interface\AchievementFrame\UI-Achievement-Criteria-Check">
					<Size>
						<AbsDimension x="20" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="0" y="-3"/>
							</Offset>
						</Anchor>
					</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">
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentCheck" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="5" y="2"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				local name = self:GetName();
				self.name = getglobal(name .. "Name");
				self.check = getglobal(name .. "Check");
			</OnLoad>
			<OnMouseUp>
				if ( button == "LeftButton" ) then
					self:GetParent():GetParent():Click();
				end
			</OnMouseUp>
			<OnEnter>
				
			</OnEnter>
			<OnLeave>
				
			</OnLeave>
		</Scripts>
	</Frame>	

	<Button name="AchievementTemplate" virtual="true">
		<Size>
			<AbsDimension x="434" y="142"/>
		</Size>
		<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">
							<Offset>
								<AbsDimension x="3" y="-3"/>
							</Offset>
						</Anchor>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="-3" y="3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>						
			</Layer>
			
			<Layer level="BORDER">
				<Texture name="$parentBottomLeftTsunami" file="Interface\AchievementFrame\UI-Achievement-Tsunami-Corners">
					<Size>
						<AbsDimension x="32" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="-2" y="-2"/>
							</Offset>
						</Anchor>
					</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>	
						<AbsDimension x="32" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="2" y="-2"/>
							</Offset>
						</Anchor>
					</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>
						<AbsDimension x="32" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="-2" y="-20"/>
							</Offset>
						</Anchor>
					</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>
						<AbsDimension x="32" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT">
							<Offset>
								<AbsDimension x="2" y="-20"/>
							</Offset>
						</Anchor>
					</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-Tsunami-Horizontal">
					<Size>
						<AbsDimension x="370" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativeTo="$parentBottomLeftTsunami" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="3"/>
							</Offset>
						</Anchor>	
						<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" bottom="1"/>
				</Texture>
				<Texture name="$parentTopTsunami1" file="Interface\AchievementFrame\UI-Achievement-Tsunami-Horizontal">
					<Size>
						<AbsDimension x="370" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTopLeftTsunami" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="0" y="-3"/>
							</Offset>
						</Anchor>				
						<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="1" bottom="0"/>
				</Texture>	
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentTitleBackground" file="Interface\AchievementFrame\UI-Achievement-Title">
					<Size>
						<AbsDimension x="0" y="24"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="5" y="-5"/>
							</Offset>
						</Anchor>
						<Anchor point="TOPRIGHT">
							<Offset>
								<AbsDimension x="-5" y="-5"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="0.9765625" top="0" bottom="0.3125"/>
					<Color r="1" g="1" b="1" a=".8"/>
				</Texture>
				<Texture name="$parentGlow" file="Interface\AchievementFrame\UI-Achievement-Parchment-Highlight">
					<Size>
						<AbsDimension x="10" y="128"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTitleBackground" relativePoint="BOTTOMLEFT">
							<Offset x="0" y="4"/>
						</Anchor>
						<Anchor point="BOTTOMRIGHT">
							<Offset x="0" y="4"/>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="$parentRewardBackground" file="Interface\AchievementFrame\UI-Achievement-Reward-Background" hidden="true">
					<Size>
						<AbsDimension x="384" y="24"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="5" y="-2"/>
							</Offset>
						</Anchor>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="-5" y="5"/>
							</Offset>
						</Anchor>
						<!--<Anchor point="BOTTOMRIGHT"/> -->
					</Anchors>
					<TexCoords left="0" right=".69" top="0" bottom=".75"/>
				</Texture>
			</Layer>	
			<Layer level="OVERLAY">
				<FontString name="$parentLabel" inherits="GameFontHighlightMedium" text="For the Alliance!">
					<Size>
						<AbsDimension x="320" y="20"/>
					</Size>
					<Anchors>
						<Anchor point="TOP" relativeTo="$parentTitleBackground" relativePoint="TOP">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentDateCompleted" inherits="AchievementDateFont" text="5/16/08" hidden="true" justifyH="CENTER">
					<Size>
						<AbsDimension x="100" y="14"/>
					</Size>
					<Anchors>
						<!-- This is a fake anchor. We don't want DateCompleted to be anchored to top. We reanchor it in AchievementButton_OnLoad so that it can be anchored to the shield, which is a frame, and not loaded at this point. -->
						<Anchor point="TOP"/>
					</Anchors>
				</FontString>
				<FontString name="$parentReward" inherits="GameFontNormalSmall" hidden="true">
					<Size>
						<AbsDimension x="400" y="20"/>
					</Size>					
					<Anchors>
						<Anchor point="TOP" relativeTo="$parentRewardBackground" relativePoint="TOP">
							<Offset>
								<AbsDimension x="0" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>							
				</FontString>
				<FontString name="$parentDescription" inherits="AchievementDescriptionFont">
					<Size>
						<AbsDimension x="0" y="0"/>
					</Size>				
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="-30"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentHiddenDescription" inherits="AchievementDescriptionFont" hidden="true">
					<Size>
						<AbsDimension x="0" y="0"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset x="-75" y="-30"/>
						</Anchor>
						<Anchor point="TOPRIGHT">
							<Offset x="75" y="-30"/>
						</Anchor>
					</Anchors>
				</FontString>
				<Texture name="$parentCheck" file="Interface\Buttons\UI-CheckBox-Check" hidden="true">
					<Size>
						<AbsDimension x="20" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentLabel" relativePoint="RIGHT">
							<Offset x="0" y="-1"/>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="1" top="0" bottom="1"/>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				AchievementButton_OnLoad(self);
			</OnLoad>
			<OnClick>
				AchievementButton_OnClick(self);
			</OnClick>
			<OnEnter>
				self.highlight:Show();
			</OnEnter>
			<OnLeave>
				if ( not self.selected ) then
					self.highlight:Hide();
				end
			</OnLeave>
		</Scripts>
		<Frames>
			<Frame name="$parentHighlight" setAllPoints="true" hidden="true" enableMouse="false">
				<Layers>
					<Layer level="OVERLAY">
						<Texture name="$parentTopLeft" file="Interface\PaperDollInfoFrame\UI-Character-ReputationBar-Highlight" alphaMode="ADD">
							<Size>
								<AbsDimension x="16" y="16"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="-1" y="2"/>
									</Offset>
								</Anchor>
							</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>
								<AbsDimension x="16" y="16"/>
							</Size>
							<Anchors>
								<Anchor point="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="-1" y="-2"/>
									</Offset>
								</Anchor>
							</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>
								<AbsDimension x="16" y="16"/>
							</Size>
							<Anchors>
								<Anchor point="TOPRIGHT">
									<Offset>
										<AbsDimension x="1" y="2"/>
									</Offset>
								</Anchor>
							</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>
								<AbsDimension x="16" y="16"/>
							</Size>
							<Anchors>
								<Anchor point="BOTTOMRIGHT">
									<Offset>
										<AbsDimension x="1" y="-2"/>
									</Offset>
								</Anchor>
							</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">
				<Size>
					<AbsDimension x="60" y="60"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="8" y="-9"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentShield">
				<Size>
					<AbsDimension x="64" y="64"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="-6" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentIcon" file="Interface\AchievementFrame\UI-Achievement-Shields">
							<Size>
								<AbsDimension x="64" y="64"/>
							</Size>
							<Anchors>
								<Anchor point="TOPRIGHT">
									<Offset>
										<AbsDimension x="0" y="-6"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right=".5" top="0" bottom="1"/>
						</Texture>
					</Layer>
					<Layer level="OVERLAY">
						<FontString name="$parentPoints" inherits="AchievementPointsFont">
							<Size x="48" y="16"/>
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parentIcon">
									<Offset x="14" y="-21"/>
								</Anchor>
								<Anchor point="TOPRIGHT" relativeTo="$parentIcon">
									<Offset x="-16" y="-21"/>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>				
				<Scripts>
					<OnLoad>
						AchievementShield_OnLoad(self);
						self.points.SetText = 
							function (self, text)
								getmetatable(self).__index.SetText(self, text);
								local width = self:GetStringWidth();
								
								-- Round the width, GetStringWidth returns a float.
								width = math.floor(width * 10^0 + 0.5) / 10^0;
								if ( math.fmod(width, 2) == 0 ) then
									self:SetPoint("TOPLEFT", "$parentIcon", 13, -21);
								else
									self:SetPoint("TOPLEFT", "$parentIcon", 14, -21);
								end
							end
					</OnLoad>
				</Scripts>
			</Frame>
			<Frame name="$parentObjectives">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentDescription" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-8"/>
						</Offset>
					</Anchor>
					<Anchor point="LEFT" relativeTo="$parentIcon" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="8" y="0"/>
						</Offset>
					</Anchor>
					<Anchor point="RIGHT" relativeTo="$parentShield" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="-10" y="0"/>
						</Offset>
					</Anchor>
					<Anchor point="BOTTOM" relativeTo="$parentRewardBackground" relativePoint="TOP">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<CheckButton name="$parentTracked" hidden="true" inherits="AchievementCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="12" y="-66"/>
					</Anchor>
				</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">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="3" y="-3"/>
							</Offset>
						</Anchor>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="-3" y="3"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="1" top="0" bottom="0.25"/>
				</Texture>						
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentTitleBackground" file="Interface\AchievementFrame\UI-Achievement-Title">
					<Size>
						<AbsDimension x="0" y="20"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="5" y="-5"/>
							</Offset>
						</Anchor>
						<Anchor point="TOPRIGHT">
							<Offset>
								<AbsDimension x="-5" y="-5"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="0.9765625" top="0" bottom="0.3125"/>
					<Color r="1" g="1" b="1" a=".8"/>
				</Texture>
				<Texture name="$parentGlow" file="Interface\AchievementFrame\UI-Achievement-Parchment-Highlight">
					<Size>
						<AbsDimension x="10" y="128"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTitleBackground" relativePoint="BOTTOMLEFT">
							<Offset x="0" y="2"/>
						</Anchor>
						<Anchor point="BOTTOMRIGHT">
							<Offset x="0" y="4"/>
						</Anchor>
					</Anchors>
				</Texture>			
			</Layer>	
			<Layer level="OVERLAY">
				<FontString name="$parentLabel" inherits="GameFontHighlightMedium" text="For the Alliance!">
					<Anchors>
						<Anchor point="TOP" relativeTo="$parentTitleBackground" relativePoint="TOP">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<Size>
						<AbsDimension x="260" y="20"/>
					</Size>
				</FontString>
				<FontString name="$parentDateCompleted" inherits="AchievementDateFont" text="5/16/08" hidden="true">
					<Anchors>
						<Anchor point="TOPRIGHT">
							<Offset>
								<AbsDimension x="-63" y="-8"/>
							</Offset>
						</Anchor>
					</Anchors>
					<Size>
						<AbsDimension x="100" y="14"/>
					</Size>
				</FontString>
				<FontString name="$parentDescription" inherits="AchievementDescriptionFont">
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="-30"/>
							</Offset>
						</Anchor>
					</Anchors>
					<Size>
						<AbsDimension x="380" y="13"/>
					</Size>
				</FontString>
			</Layer>
		</Layers>		
		<Scripts>
			<OnLoad>
				AchievementComparisonPlayerButton_OnLoad(self);
			</OnLoad>
		</Scripts>
		<Frames>
			<Frame name="$parentIcon">
				<Size>
					<AbsDimension x="48" y="48"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="3" y="-3"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>			
					<Layer level="BORDER">
						<Texture name="$parentBling" file="Interface\AchievementFrame\UI-Achievement-Bling" hidden="true">
							<Anchors>
								<Anchor point="CENTER">
									<Offset>
										<AbsDimension x="-1" y="1"/>
									</Offset>
								</Anchor>
							</Anchors>
							<Size>
								<AbsDimension x="84" y="84"/>
							</Size>
						</Texture>
					</Layer>
					<Layer level="ARTWORK">
						<Texture name="$parentTexture" file="Interface\Icons\Spell_Misc_HellifrePVPHonorHoldFavor">
							<Anchors>
								<Anchor point="CENTER">
									<Offset>
										<AbsDimension x="0" y="3"/>
									</Offset>
								</Anchor>
							</Anchors>
							<Size>
								<AbsDimension x="36" y="36"/>
							</Size>
						</Texture>
					</Layer>
					<Layer level="OVERLAY">
						<Texture name="$parentOverlay" file="Interface\AchievementFrame\UI-Achievement-IconFrame">
							<Anchors>
								<Anchor point="CENTER">
									<Offset>
										<AbsDimension x="-1" y="2"/>
									</Offset>
								</Anchor>
							</Anchors>
							<Size>
								<AbsDimension x="46" y="46"/>
							</Size>
							<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">
				<Size>
					<AbsDimension x="48" y="48"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="-10" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentIcon" file="Interface\AchievementFrame\UI-Achievement-Shields">
							<Size>
								<AbsDimension x="48" y="48"/>
							</Size>
							<Anchors>
								<Anchor point="TOPRIGHT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right=".5" top="0" bottom="1"/>
						</Texture>
					</Layer>
					<Layer level="OVERLAY">
						<FontString name="$parentPoints" inherits="GameFontNormal" text="60">
							<Anchors>
								<Anchor point="CENTER">
									<Offset>
										<AbsDimension x="-1" y="3"/>
									</Offset>
								</Anchor>
							</Anchors>
							<Size>
								<AbsDimension x="40" y="26"/>
							</Size>
						</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">
				<Layers>
					<Layer level="OVERLAY">
						<Texture name="$parentTopLeft" file="Interface\PaperDollInfoFrame\UI-Character-ReputationBar-Highlight" alphaMode="ADD">
							<Size>
								<AbsDimension x="16" y="16"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="-1" y="2"/>
									</Offset>
								</Anchor>
							</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>
								<AbsDimension x="16" y="16"/>
							</Size>
							<Anchors>
								<Anchor point="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="-1" y="-2"/>
									</Offset>
								</Anchor>
							</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>
								<AbsDimension x="16" y="16"/>
							</Size>
							<Anchors>
								<Anchor point="TOPRIGHT">
									<Offset>
										<AbsDimension x="1" y="2"/>
									</Offset>
								</Anchor>
							</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>
								<AbsDimension x="16" y="16"/>
							</Size>
							<Anchors>
								<Anchor point="BOTTOMRIGHT">
									<Offset>
										<AbsDimension x="1" y="-2"/>
									</Offset>
								</Anchor>
							</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);
			</OnClick>
			<OnEnter>
				AchievementFrameSummaryAchievement_OnEnter(self);
			</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">
				<Anchors>
					<Anchor point="LEFT"/>
				</Anchors>
			</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">
									<Offset>
										<AbsDimension x="3" y="-3"/>
									</Offset>
								</Anchor>
								<Anchor point="BOTTOMRIGHT">
									<Offset>
										<AbsDimension x="-3" y="3"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left=".2" right=".75" top="0" bottom="1"/>
						</Texture>						
					</Layer>
					<Layer level="ARTWORK">
						<Texture name="$parentTitleBackground" file="Interface\AchievementFrame\UI-Achievement-Title">
							<Size>
								<AbsDimension x="0" y="20"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="5" y="-5"/>
									</Offset>
								</Anchor>
								<Anchor point="TOPRIGHT">
									<Offset>
										<AbsDimension x="-5" y="-5"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left=".3" right="0.575" top="0" bottom="0.3125"/>
							<Color r="1" g="1" b="1" a=".8"/>
						</Texture>
						<Texture name="$parentGlow" file="Interface\AchievementFrame\UI-Achievement-Parchment-Highlight">
							<Size>
								<AbsDimension x="10" y="128"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parentTitleBackground" relativePoint="BOTTOMLEFT">
									<Offset x="0" y="2"/>
								</Anchor>
								<Anchor point="BOTTOMRIGHT">
									<Offset x="0" y="4"/>
								</Anchor>
							</Anchors>
							<TexCoords left="0.2" right="0.86" top="0" bottom="1"/>
						</Texture>			
					</Layer>	
					<Layer level="OVERLAY">
						<FontString name="$parentStatus" inherits="AchievementDateFont" text="Incomplete">
							<Anchors>
								<Anchor point="BOTTOM">
									<Offset x="20" y="5"/>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Frame name="$parentIcon">
						<Size>
							<AbsDimension x="48" y="48"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="3" y="-3"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Layers>			
							<Layer level="BORDER">
								<Texture name="$parentBling" file="Interface\AchievementFrame\UI-Achievement-Bling" hidden="true">
									<Anchors>
										<Anchor point="CENTER">
											<Offset>
												<AbsDimension x="-1" y="1"/>
											</Offset>
										</Anchor>
									</Anchors>
									<Size>
										<AbsDimension x="84" y="84"/>
									</Size>
								</Texture>
							</Layer>
							<Layer level="ARTWORK">
								<Texture name="$parentTexture" file="Interface\Icons\Spell_Misc_HellifrePVPHonorHoldFavor">
									<Anchors>
										<Anchor point="CENTER">
											<Offset>
												<AbsDimension x="0" y="3"/>
											</Offset>
										</Anchor>
									</Anchors>
									<Size>
										<AbsDimension x="36" y="36"/>
									</Size>
								</Texture>
							</Layer>
							<Layer level="OVERLAY">
								<Texture name="$parentOverlay" file="Interface\AchievementFrame\UI-Achievement-IconFrame">
									<Anchors>
										<Anchor point="CENTER">
											<Offset>
												<AbsDimension x="-1" y="2"/>
											</Offset>
										</Anchor>
									</Anchors>
									<Size>
										<AbsDimension x="46" y="46"/>
									</Size>
									<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">
						<Size>
							<AbsDimension x="40" y="36"/>
						</Size>
						<Anchors>
							<Anchor point="TOPRIGHT">
								<Offset>
									<AbsDimension x="-20" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<Texture name="$parentIcon" file="Interface\AchievementFrame\UI-Achievement-Shields">
									<Size>
										<AbsDimension x="40" y="40"/>
									</Size>
									<Anchors>
										<Anchor point="TOPRIGHT">
											<Offset>
												<AbsDimension x="0" y="0"/>
											</Offset>
										</Anchor>
									</Anchors>
									<TexCoords left="0" right=".5" top="0" bottom=".9"/>
								</Texture>
							</Layer>
							<Layer level="OVERLAY">
								<FontString name="$parentPoints" inherits="GameFontNormalSmall" text="60">
									<Anchors>
										<Anchor point="CENTER">
											<Offset>
												<AbsDimension x="-1" y="0"/>
											</Offset>
										</Anchor>
									</Anchors>
									<Size>
										<AbsDimension x="40" y="14"/>
									</Size>
								</FontString>
							</Layer>
						</Layers>				
						<Scripts>
							<OnLoad>
								AchievementShield_OnLoad(self);
							</OnLoad>
						</Scripts>
					</Frame>
				</Frames>					
				<Scripts>
					<OnLoad>
						AchievementComparisonFriendButton_OnLoad(self);
					</OnLoad>
				</Scripts>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad>
				local name = self:GetName();
				self.player = getglobal(name .. "Player");
				self.friend = getglobal(name .. "Friend");
			</OnLoad>
		</Scripts>
	</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"/>
				<Texture name="$parentHeaderLeft" file="Interface\AchievementFrame\UI-Achievement-Stat-Buttons">
					<Size>
						<AbsDimension x="23" y="23"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT">
							<Offset x="0" y="-1"/>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="0.08984375" top="0" bottom="0.1796875"/>
				</Texture>
				<Texture name="$parentHeaderRight" file="Interface\AchievementFrame\UI-Achievement-Stat-Buttons">
					<Size>
						<AbsDimension x="23" y="23"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMRIGHT">
							<Offset x="0" y="-1"/>
						</Anchor>
					</Anchors>
					<TexCoords left="0.91015625" right="1" top="0" bottom="0.1796875"/>
				</Texture>
				<Texture name="$parentHeaderMiddle" file="Interface\AchievementFrame\UI-Achievement-Stat-Buttons">
					<Size>
						<AbsDimension x="0" y="23"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentHeaderLeft" relativePoint="TOPRIGHT">
							<Offset x="0" y="0"/>
						</Anchor>
						<Anchor point="TOPRIGHT" relativeTo="$parentHeaderRight" relativePoint="TOPLEFT">
							<Offset x="0" y="0"/>
						</Anchor>
					</Anchors>
					<TexCoords left="0.08984375" right="0.91015625" top="0" bottom="0.1796875"/>
				</Texture>
				<FontString name="$parentTitle" inherits="GameFontNormalLarge">
					<Anchors>
						<Anchor point="CENTER">
							<Offset x="0" y="0"/>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentValue" inherits="GameFontHighlightRight">
					<Anchors>
						<Anchor point="RIGHT">
							<Offset x="-5" y="0"/>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				AchievementStatButton_OnLoad(self, AchievementFrameStats);
			</OnLoad>
			<OnClick>
				AchievementStatButton_OnClick(self);
			</OnClick>
		</Scripts>
		<ButtonText>
			<Size x="400" y="13"/>
			<Anchors>
				<Anchor point="LEFT">
					<Offset>
						<AbsDimension x="5" y="0"/>
					</Offset>
				</Anchor>
			</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"/>
				<Texture name="$parentHeaderLeft" file="Interface\AchievementFrame\UI-Achievement-Stat-Buttons">
					<Size>
						<AbsDimension x="23" y="23"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT">
							<Offset x="0" y="-1"/>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="0.08984375" top="0" bottom="0.1796875"/>
				</Texture>
				<Texture name="$parentHeaderRight" file="Interface\AchievementFrame\UI-Achievement-Stat-Buttons">
					<Size>
						<AbsDimension x="23" y="23"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMRIGHT">
							<Offset x="-135" y="-1"/>
						</Anchor>
					</Anchors>
					<TexCoords left="0.91015625" right="1" top="0" bottom="0.1796875"/>
				</Texture>
				<Texture name="$parentHeaderMiddle" file="Interface\AchievementFrame\UI-Achievement-Stat-Buttons">
					<Size>
						<AbsDimension x="0" y="23"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentHeaderLeft" relativePoint="TOPRIGHT">
							<Offset x="0" y="0"/>
						</Anchor>
						<Anchor point="TOPRIGHT" relativeTo="$parentHeaderRight" relativePoint="TOPLEFT">
							<Offset x="0" y="0"/>
						</Anchor>
					</Anchors>
					<TexCoords left="0.08984375" right="0.91015625" top="0" bottom="0.1796875"/>
				</Texture>
				<Texture name="$parentHeaderLeft2" file="Interface\AchievementFrame\UI-Achievement-Stat-Buttons">
					<Size>
						<AbsDimension x="23" y="23"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentHeaderRight" relativePoint="RIGHT">
							<Offset x="5" y="0"/>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="0.08984375" top="0" bottom="0.1796875"/>
				</Texture>
				<Texture name="$parentHeaderRight2" file="Interface\AchievementFrame\UI-Achievement-Stat-Buttons">
					<Size>
						<AbsDimension x="23" y="23"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMRIGHT">
							<Offset x="4" y="-1"/>
						</Anchor>
					</Anchors>
					<TexCoords left="0.91015625" right="1" top="0" bottom="0.1796875"/>
				</Texture>
				<Texture name="$parentHeaderMiddle2" file="Interface\AchievementFrame\UI-Achievement-Stat-Buttons">
					<Size>
						<AbsDimension x="0" y="23"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentHeaderLeft2" relativePoint="TOPRIGHT">
							<Offset x="0" y="0"/>
						</Anchor>
						<Anchor point="TOPRIGHT" relativeTo="$parentHeaderRight2" relativePoint="TOPLEFT">
							<Offset x="0" y="0"/>
						</Anchor>
					</Anchors>
					<TexCoords left="0.08984375" right="0.91015625" top="0" bottom="0.1796875"/>
				</Texture>
				<FontString name="$parentTitle" inherits="GameFontNormalLarge">
					<Anchors>
						<Anchor point="CENTER">
							<Offset x="-67" y="-1"/>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentText" inherits="GameFontHighlightLeft">
					<Anchors>
						<Anchor point="LEFT">
							<Offset x="4" y="0"/>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentValue" inherits="GameFontHighlightRight">
					<Size x="500" y="24"/>
					<Anchors>
						<Anchor point="RIGHT">
							<Offset x="-150" y="-1"/>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentComparisonValue" inherits="GameFontHighlightRight">
					<Size x="120" y="24"/>
					<Anchors>
						<Anchor point="RIGHT">
							<Offset x="-4" y="-1"/>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="$parentMouseover" enableMouse="true" hidden="true"> 
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentComparisonValue"/>
					<Anchor point="BOTTOMRIGHT">
						<Offset x="-4" y="4"/>
					</Anchor>
				</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="AchievementAlertFrameTemplate" parent="UIParent" hidden="true" frameStrata="DIALOG" virtual="true">
		<Size>
			<AbsDimension x="300" y="88"/>
		</Size>
		<Anchors>
			<Anchor point="BOTTOM">
				<Offset>
					<AbsDimension x="0" y="128"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentBackground" file="Interface\AchievementFrame\UI-Achievement-Alert-Background">
					<Anchors>
						<Anchor point="TOPLEFT"/>
						<Anchor point="BOTTOMRIGHT"/>
					</Anchors>
					<TexCoords left="0" right=".605" top="0" bottom=".703"/>
				</Texture>
				<FontString name="$parentUnlocked" inherits="GameFontBlackTiny" text="ACHIEVEMENT_UNLOCKED">
					<Size x="200" y="12"/>
					<Anchors>
						<Anchor point="TOP">
							<Offset x="7" y="-23"/>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentName" inherits="GameFontHighlight" text="For the Alliance!">
					<Anchors>
						<Anchor point="BOTTOMLEFT">
							<Offset x="72" y="36"/>
						</Anchor>
						<Anchor point="BOTTOMRIGHT">
							<Offset x="-60" y="36"/>
						</Anchor>
					</Anchors>
					<Size x="240" y="16"/>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="$parentIcon" inherits="AchievementIconFrameTemplate">
				<Size>
					<AbsDimension x="124" y="124"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="-26" y="16"/>
						</Offset>
					</Anchor>
				</Anchors>			
			</Frame>
			<Frame name="$parentShield">
				<Size>
					<AbsDimension x="64" y="64"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="-10" y="-13"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentIcon" file="Interface\AchievementFrame\UI-Achievement-Shields">
							<Size>
								<AbsDimension x="52" y="48"/>
							</Size>
							<Anchors>
								<Anchor point="TOPRIGHT">
									<Offset>
										<AbsDimension x="1" y="-6"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right=".5" top="0" bottom=".9"/>
						</Texture>
					</Layer>
					<Layer level="OVERLAY">
						<FontString name="$parentPoints" inherits="GameFontNormal">
							<Anchors>
								<Anchor point="CENTER">
									<Offset>
										<AbsDimension x="7" y="2"/>
									</Offset>
								</Anchor>
							</Anchors>
							<Size>
								<AbsDimension x="64" y="64"/>
							</Size>
						</FontString>
					</Layer>
				</Layers>				
				<Scripts>
					<OnLoad>
						AchievementShield_OnLoad(self);
					</OnLoad>
				</Scripts>
			</Frame>
			<Button name="$parentButton">
				<Anchors>
					<Anchor point="TOPLEFT"/>
					<Anchor point="BOTTOMRIGHT"/>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<Texture name="$parentGlow" file="Interface\AchievementFrame\UI-Achievement-Alert-Glow" alphaMode="ADD">
							<Size>
								<AbsDimension x="400" y="171"/>
							</Size>
							<Anchors>
								<Anchor point="CENTER">
									<Offset x="0" y="0"/>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="0.78125" top="0" bottom="0.66796875"/>
						</Texture>
						<Texture name="$parentShine" file="Interface\AchievementFrame\UI-Achievement-Alert-Glow" alphaMode="ADD">
							<Size>
								<AbsDimension x="67" y="72"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset x="0" y="0"/>
								</Anchor>
							</Anchors>
							<TexCoords left="0.78125" right="0.912109375" top="0" bottom="0.28125"/>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						self:RegisterForClicks("LeftButtonUp");
					</OnLoad>
					<OnClick>
						AchievementAlertFrame_OnClick(self:GetParent());
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad>
				AchievementAlertFrame_OnLoad(self)
			</OnLoad>
		</Scripts>
	</Frame>	

-->
	
	<Frame name="AchievementFrame" toplevel="true" parent="UIParent" frameStrata="MEDIUM" hidden="true" enableMouse="true">
		<Size>
			<AbsDimension x="768" y="500"/>
		</Size>
		<Anchors>	
			<Anchor point="TOPLEFT">
				<Offset>
					<AbsDimension x="0" y="-104"/>
				</Offset>
			</Anchor>
		</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">
							<Offset>
								<AbsDimension x="16" y="-16"/>
							</Offset>
						</Anchor>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="-16" y="16"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentMetalBorderLeft" file="Interface\AchievementFrame\UI-Achievement-MetalBorder-Left">
					<Size>
						<AbsDimension x="16" y="436"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="14" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="1" top="0" bottom=".87"/>
				</Texture>
				<Texture name="$parentMetalBorderRight" file="Interface\AchievementFrame\UI-Achievement-MetalBorder-Left">
					<Size>
						<AbsDimension x="16" y="436"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT">
							<Offset>
								<AbsDimension x="-13" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="1" right="0" top=".87" bottom="0"/>
				</Texture>
				<Texture name="$parentMetalBorderBottom" file="Interface\AchievementFrame\UI-Achievement-MetalBorder-Top">
					<Size>
						<AbsDimension x="450" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="28" y="13"/>
							</Offset>
						</Anchor>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="-28" y="13"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right=".87" top="1.0" bottom="0"/>
				</Texture>
				<Texture name="$parentMetalBorderTop" file="Interface\AchievementFrame\UI-Achievement-MetalBorder-Top">
					<Size>
						<AbsDimension x="450" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="28" y="-12"/>
							</Offset>
						</Anchor>
						<Anchor point="TOPRIGHT">
							<Offset>
								<AbsDimension x="-28" y="-12"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left=".87" right="0" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentCategoriesBG" file="Interface\AchievementFrame\UI-Achievement-Parchment">
					<Size>
						<AbsDimension x="195" y="0"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="25" y="-23"/>
							</Offset>
						</Anchor>
						<Anchor point="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="25" y="23"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture name="$parentWaterMark" file="Interface\AchievementFrame\UI-Achievement-AchievementWatermark">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativeTo="$parentCategoriesBG">
							<Offset x="0" y="0"/>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="$parentMetalBorderTopLeft" file="Interface\AchievementFrame\UI-Achievement-MetalBorder-Joint">
					<Size>
						<AbsDimension x="32" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="9" y="-7"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="1" right="0" top="1" bottom="0"/>
				</Texture>
				<Texture name="$parentMetalBorderTopRight" file="Interface\AchievementFrame\UI-Achievement-MetalBorder-Joint">
					<Size>
						<AbsDimension x="32" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT">
							<Offset>
								<AbsDimension x="-8" y="-7"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="1" top="1" bottom="0"/>
				</Texture>
				<Texture name="$parentMetalBorderBottomLeft" file="Interface\AchievementFrame\UI-Achievement-MetalBorder-Joint">
					<Size>
						<AbsDimension x="32" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="9" y="8"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="1" right="0" top="0" bottom="1"/>				
				</Texture>
				<Texture name="$parentMetalBorderBottomRight" file="Interface\AchievementFrame\UI-Achievement-MetalBorder-Joint">
					<Size>
						<AbsDimension x="32" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="-8" y="8"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="1" top="0" bottom="1"/>				
				</Texture>
				<Texture name="$parentWoodBorderTopLeft" file="Interface\AchievementFrame\UI-Achievement-WoodBorder-Corner">
					<Size>
						<AbsDimension x="64" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="4" y="-2"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="1" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentWoodBorderTopRight" file="Interface\AchievementFrame\UI-Achievement-WoodBorder-Corner">
					<Size>
						<AbsDimension x="64" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT">
							<Offset>
								<AbsDimension x="-4" y="-2"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="1" right="0" top="0" bottom="1"/>
				</Texture>		
				<Texture name="$parentWoodBorderBottomLeft" file="Interface\AchievementFrame\UI-Achievement-WoodBorder-Corner">
					<Size>
						<AbsDimension x="64" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="4" y="3"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="1" top="1" bottom="0"/>
				</Texture>		
				<Texture name="$parentWoodBorderBottomRight" file="Interface\AchievementFrame\UI-Achievement-WoodBorder-Corner">
					<Size>
						<AbsDimension x="64" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="-4" y="3"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="1" right="0" top="1" bottom="0"/>
				</Texture>						
			</Layer>
		</Layers>
		<Frames>
			<Frame name="$parentHeader" enableMouse="true">
				<Size>
					<AbsDimension x="726" y="106"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMLEFT" relativeTo="AchievementFrame" relativePoint="TOPLEFT">
						<Offset x="26" y="-39"/>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BORDER">
						<Texture name="$parentPointBorder" file="Interface\AchievementFrame\UI-Achievement-Header">
							<Size>
								<AbsDimension x="133" y="39"/>
							</Size>
							<Anchors>
								<Anchor point="BOTTOM" relativeTo="AchievementFrameHeader" relativePoint="BOTTOM">
									<Offset x="20" y="16"/>
								</Anchor>
							</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">
									<Offset x="0" y="7"/>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
					<Layer level="ARTWORK">
						<FontString name="$parentPoints" inherits="GameFontHighlight">
							<Size x="0" y="12"/>
							<Anchors>
								<Anchor point="TOP" relativeTo="AchievementFrameHeaderPointBorder" relativePoint="TOP">
									<Offset x="0" y="-13"/>
								</Anchor>
							</Anchors>
						</FontString>
						<Texture name="$parentShield" file="Interface\AchievementFrame\UI-Achievement-TinyShield">
							<Size>
								<AbsDimension x="20" y="20"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentPoints" relativePoint="RIGHT">
									<Offset x="3" y="-1"/>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="0.625" top="0" bottom="0.625"/>
						</Texture> 	
					</Layer>
					<Layer level="BACKGROUND">
						<Texture name="$parentLeft" file="Interface\AchievementFrame\UI-Achievement-Header">
							<Size>
								<AbsDimension x="512" y="106"/>
							</Size>
							<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>
								<AbsDimension x="215" y="100"/>
							</Size>
							<Anchors>
								<Anchor point="BOTTOMLEFT" relativeTo="$parentLeft" relativePoint="BOTTOMRIGHT">
									<Offset x="0" y="-6"/>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="0.419921875" top="0.4140625" bottom="0.8046875"/>
						</Texture>
					</Layer>
				</Layers>
			</Frame>
			<Frame name="$parentCategories">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="21" y="-19"/>
						</Offset>
					</Anchor>
					<Anchor point="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="21" y="20"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Size>
					<AbsDimension x="175" y="0"/>
				</Size>
				<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>
						AchievementFrameCategories_OnLoad(self);
					</OnLoad>
					<OnShow>
						AchievementFrameCategories_OnShow(self);
					</OnShow>
				</Scripts>
				<Frames>
					<ScrollFrame name="$parentContainer" inherits="HybridScrollFrameTemplate">
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="0" y="-5"/>
								</Offset>
							</Anchor>
							<Anchor point="BOTTOMRIGHT">
								<Offset>
									<AbsDimension x="0" y="5"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Frames>
							<Slider name="$parentScrollBar" inherits="HybridScrollBarTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
										<Offset>
											<AbsDimension x="1" y="-14"/>
										</Offset>
									</Anchor>
									<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
										<Offset>
											<AbsDimension x="1" y="12"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Slider>
						</Frames>
					</ScrollFrame>
				</Frames>
			</Frame>
			<Frame name="$parentAchievements">
				<Size>
					<AbsDimension x="504" y="440"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentCategories" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="22" y="0"/>
						</Offset>
					</Anchor>
					<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">
									<Offset x="3" y="-3"/>
								</Anchor>
								<Anchor point="BOTTOMRIGHT">
									<Offset x="-3" y="3"/>
								</Anchor>
							</Anchors>
						</Texture>
					</Layer>
					<Layer level="ARTWORK">
						<FontString name="$parentFeatOfStrengthText" inherits="GameFontHighlight" text="FEAT_OF_STRENGTH_DESCRIPTION">
							<Size x="490" y="0"/>
							<Anchors>
								<Anchor point="TOP">
									<Offset x="0" y="-189"/>
								</Anchor>
							</Anchors>
						</FontString>
						<Texture>
							<Size>
								<AbsDimension x="0" y="0"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parentBackground">
									<Offset x="0" y="0"/>
								</Anchor>
								<Anchor point="BOTTOMRIGHT">
									<Offset x="0" y="0"/>
								</Anchor>
							</Anchors>
							<Color r="0" g="0" b="0" a="0.75"/>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						AchievementFrameAchievements_OnLoad(self);
					</OnLoad>
					<OnEvent>
						AchievementFrameAchievements_OnEvent(self, event, ...);
					</OnEvent>
				</Scripts>
				<Frames>
					<ScrollFrame name="$parentContainer" inherits="HybridScrollFrameTemplate">
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="4" y="-3"/>
								</Offset>
							</Anchor>
							<Anchor point="BOTTOMRIGHT">
								<Offset>
									<AbsDimension x="0" y="5"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Frames>
							<Slider name="$parentScrollBar" inherits="HybridScrollBarTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
										<Offset>
											<AbsDimension x="1" y="-16"/>
										</Offset>
									</Anchor>
									<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
										<Offset>
											<AbsDimension x="1" y="12"/>
										</Offset>
									</Anchor>
								</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>
								AchievementFrameAchievementsBackdrop_OnLoad(self);
							</OnLoad>
						</Scripts>
					</Frame>
				</Frames>				
			</Frame>
			<Frame name="$parentStats" hidden="true">
				<Size>
					<AbsDimension x="504" y="440"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentCategories" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="22" y="0"/>
						</Offset>
					</Anchor>
					<Anchor point="BOTTOM" relativeTo="$parentCategories" relativePoint="BOTTOM"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture file="Interface\AchievementFrame\UI-Achievement-StatsBackground">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset x="0" y="0"/>
								</Anchor>
								<Anchor point="BOTTOMRIGHT">
									<Offset x="0" y="0"/>
								</Anchor>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						AchievementFrameStats_OnLoad(self);
					</OnLoad>
					<OnEvent>
						AchievementFrameStats_OnEvent(self, event, ...);
					</OnEvent>
				</Scripts>
				<Frames>
					<ScrollFrame name="$parentContainer" inherits="HybridScrollFrameTemplate">
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="3" y="-3"/>
								</Offset>
							</Anchor>
							<Anchor point="BOTTOMRIGHT">
								<Offset>
									<AbsDimension x="0" y="5"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Frames>
							<Slider name="$parentScrollBar" inherits="HybridScrollBarTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
										<Offset>
											<AbsDimension x="1" y="-16"/>
										</Offset>
									</Anchor>
									<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
										<Offset>
											<AbsDimension x="1" y="12"/>
										</Offset>
									</Anchor>
								</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>
								AchievementFrameAchievementsBackdrop_OnLoad(self);
							</OnLoad>
						</Scripts>
					</Frame>
				</Frames>				
			</Frame>
			<Frame name="$parentSummary" hidden="true">
				<Size>
					<AbsDimension x="529" y="461"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentCategories" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
					<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">
									<Offset x="3" y="-3"/>
								</Anchor>
								<Anchor point="BOTTOMRIGHT">
									<Offset x="-3" y="3"/>
								</Anchor>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Frames>
					<StatusBar name="$parentStatusBar" drawLayer="BORDER">
						<Size>
							<AbsDimension x="488" y="21"/>
						</Size>
						<Anchors>
							<Anchor point="TOP">
								<Offset x="-0" y="-21"/>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="OVERLAY">
								<FontString name="$parentTitle" inherits="GameFontNormal" text="ACHIEVEMENTS_COMPLETED">
									<Anchors>
										<Anchor point="LEFT">
											<Offset>
												<AbsDimension x="6" y="4"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
								<FontString name="$parentText" inherits="GameFontHighlight">
									<Size>
										<AbsDimension x="0" y="14"/>
									</Size>
									<Anchors>
										<Anchor point="RIGHT">
											<Offset x="-5" y="3"/>
										</Anchor>
									</Anchors>
								</FontString>
								<Texture name="$parentLeft" file="Interface\AchievementFrame\UI-Achievement-Header">
									<Size>
										<AbsDimension x="32" y="48"/>
									</Size>
									<Anchors>
										<Anchor point="TOPLEFT">
											<Offset x="-15" y="16"/>
										</Anchor>
									</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>
										<AbsDimension x="32" y="48"/>
									</Size>
									<Anchors>
										<Anchor point="TOPRIGHT">
											<Offset x="15" y="16"/>
										</Anchor>
									</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>
										<AbsDimension x="218" y="48"/>
									</Size>
									<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>
										<AbsDimension x="0" y="15"/>
									</Size>
									<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>
					<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>
								AchievementFrameAchievementsBackdrop_OnLoad(self);
							</OnLoad>
						</Scripts>
					</Frame>
					<Frame name="$parentAchievements">
						<Size>
							<AbsDimension x="0" y="258"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset x="5" y="-52"/>
							</Anchor>
							<Anchor point="TOPRIGHT">
								<Offset x="-5" y="-52"/>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<FontString name="$parentEmptyText" inherits="GameFontHighlight" text="NO_COMPLETED_ACHIEVEMENTS">
									<Anchors>
										<Anchor point="TOP">
											<Offset x="0" y="-30"/>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Frames>
							<Frame name="$parentHeader">
								<Size x="0" y="20"/>
								<Anchors>
									<Anchor point="TOPLEFT">
										<Offset x="0" y="0"/>
									</Anchor>
									<Anchor point="TOPRIGHT">
										<Offset x="0" y="0"/>
									</Anchor>
								</Anchors>
								<Layers>
									<Layer level="BACKGROUND">
										<Texture name="$parentHeader" file="Interface\AchievementFrame\UI-Achievement-RecentHeader">
											<Anchors>
												<Anchor point="TOPLEFT">
													<Offset x="-20" y="0"/>
												</Anchor>
												<Anchor point="BOTTOMRIGHT">
													<Offset x="20" y="0"/>
												</Anchor>
											</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">
													<Offset x="0" y="0"/>
												</Anchor>
											</Anchors>
										</FontString>
									</Layer>
								</Layers>
							</Frame>
						</Frames>
					</Frame>
					<Frame name="$parentStats">
						<Size>
							<AbsDimension x="0" y="164"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentAchievements" relativePoint="BOTTOMLEFT">
								<Offset x="0" y="0"/>
							</Anchor>
							<Anchor point="TOPRIGHT" relativeTo="$parentAchievements" relativePoint="BOTTOMRIGHT">
								<Offset x="0" y="0"/>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<FontString name="$parentEmptyText" inherits="GameFontHighlight" text="NO_UPDATED_STATS_TEXT">
									<Anchors>
										<Anchor point="TOP">
											<Offset x="0" y="-30"/>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Frames>
							<Frame name="$parentHeader">
								<Size x="0" y="20"/>
								<Anchors>
									<Anchor point="TOPLEFT">
										<Offset x="0" y="0"/>
									</Anchor>
									<Anchor point="TOPRIGHT">
										<Offset x="0" y="0"/>
									</Anchor>
								</Anchors>
								<Layers>
									<Layer level="BACKGROUND">
										<Texture name="$parentHeaderLeft" file="Interface\AchievementFrame\UI-Achievement-Stat-Buttons">
											<Size>
												<AbsDimension x="23" y="23"/>
											</Size>
											<Anchors>
												<Anchor point="BOTTOMLEFT">
													<Offset x="0" y="-1"/>
												</Anchor>
											</Anchors>
											<TexCoords left="0" right="0.08984375" top="0" bottom="0.1796875"/>
										</Texture>
										<Texture name="$parentHeaderRight" file="Interface\AchievementFrame\UI-Achievement-Stat-Buttons">
											<Size>
												<AbsDimension x="23" y="23"/>
											</Size>
											<Anchors>
												<Anchor point="BOTTOMRIGHT">
													<Offset x="0" y="-1"/>
												</Anchor>
											</Anchors>
											<TexCoords left="0.91015625" right="1" top="0" bottom="0.1796875"/>
										</Texture>
										<Texture name="$parentHeaderMiddle" file="Interface\AchievementFrame\UI-Achievement-Stat-Buttons">
											<Size>
												<AbsDimension x="0" y="23"/>
											</Size>
											<Anchors>
												<Anchor point="TOPLEFT" relativeTo="$parentHeaderLeft" relativePoint="TOPRIGHT">
													<Offset x="0" y="0"/>
												</Anchor>
												<Anchor point="TOPRIGHT" relativeTo="$parentHeaderRight" relativePoint="TOPLEFT">
													<Offset x="0" y="0"/>
												</Anchor>
											</Anchors>
											<TexCoords left="0.08984375" right="0.91015625" top="0" bottom="0.1796875"/>
										</Texture>
										<FontString name="$parentTitle" inherits="GameFontNormalLarge" text="LATEST_UPDATED_STATS">
											<Size x="0" y="20"/>
											<Anchors>
												<Anchor point="CENTER">
													<Offset x="0" y="0"/>
												</Anchor>
											</Anchors>
										</FontString>
									</Layer>
								</Layers>
							</Frame>
						</Frames>
					</Frame>
				</Frames>
				<Scripts>
					<OnLoad>
						self:RegisterEvent("ACHIEVEMENT_EARNED");
					</OnLoad>
					<OnEvent>
						AchievementFrameSummary_Update();
					</OnEvent>
					<OnShow>
						AchievementFrameSummary_OnShow();
					</OnShow>
				</Scripts>
			</Frame>
			<Frame name="$parentComparison" hidden="true">
				<Size>
					<AbsDimension x="650" y="461"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentCategories" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
					<Anchor point="BOTTOM" relativeTo="$parentCategories" relativePoint="BOTTOM"/>
				</Anchors>
				<Frames>
					<Frame name="$parentHeader">
						<Anchors>
							<Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT">
								<Offset x="39" y="-5"/>
							</Anchor>
						</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">
											<Offset x="27" y="-19"/>
										</Anchor>
									</Anchors>
									<Size x="36" y="36"/>
									<TexCoords left="0.05" right=".95" top="0" bottom=".9"/>
								</Texture>
							</Layer>
							<Layer level="OVERLAY">
								<FontString name="$parentName" text="PLAYER" inherits="GameFontNormalLeft">
									<Size x="78" y="12"/>
									<Anchors>
										<Anchor point="TOPLEFT">
											<Offset x="62" y="-25"/>
										</Anchor>
									</Anchors>
								</FontString>
								<FontString name="$parentPoints" text="500" inherits="GameFontHighlight">
									<Anchors>
										<Anchor point="TOPLEFT" relativeTo="$parentName" relativePoint="BOTTOMLEFT">
											<Offset x="4" y="-3"/>
										</Anchor>
									</Anchors>
								</FontString>
								<Texture name="$parentShield" file="Interface\AchievementFrame\UI-Achievement-TinyShield">
									<Size>
										<AbsDimension x="20" y="20"/>
									</Size>
									<Anchors>
										<Anchor point="LEFT" relativeTo="$parentPoints" relativePoint="RIGHT">
											<Offset x="2" y="-2"/>
										</Anchor>
									</Anchors>
									<TexCoords left="0" right="0.625" top="0" bottom="0.625"/>
								</Texture> 	
							</Layer>
						</Layers>
						<Scripts>
							<OnShow>
								--Temporaries
								SetPortraitTexture(getglobal(self:GetName().."Portrait"), "player");
								self:SetFrameLevel(self:GetParent():GetFrameLevel() + 4);
							</OnShow>
						</Scripts>
					</Frame>
					<Frame name="$parentSummary" hidden="true">
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="4" y="-3"/>
								</Offset>
							</Anchor>
						</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">
													<Offset>
														<AbsDimension x="3" y="-3"/>
													</Offset>
												</Anchor>
												<Anchor point="BOTTOMRIGHT">
													<Offset>
														<AbsDimension x="-3" y="3"/>
													</Offset>
												</Anchor>
											</Anchors>
											<TexCoords left="0" right="1" top="0" bottom="0.25"/>
										</Texture>						
									</Layer>
								</Layers>								
								<Frames>
									<StatusBar name="$parentStatusBar" inherits="AchievementHeaderStatusBarTemplate">
										<Size x="0" y="21"/>
										<Anchors>
											<Anchor point="TOPLEFT">
												<Offset x="19" y="-17"/>
											</Anchor>
											<Anchor point="TOPRIGHT">
												<Offset x="-19" y="-17"/>
											</Anchor>
										</Anchors>
									</StatusBar>								
								</Frames>
								<Scripts>
									<OnLoad>
										self:SetBackdropBorderColor(0.4, 0.2, 0, 1);
										self.statusBar = getglobal(self:GetName().."StatusBar");
									</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">
													<Offset>
														<AbsDimension x="3" y="-3"/>
													</Offset>
												</Anchor>
												<Anchor point="BOTTOMRIGHT">
													<Offset>
														<AbsDimension x="-3" y="3"/>
													</Offset>
												</Anchor>
											</Anchors>
											<TexCoords left=".2" right=".75" top="0" bottom="1"/>
										</Texture>						
									</Layer>
								</Layers>
								<Frames>
									<StatusBar name="$parentStatusBar" inherits="AchievementHeaderStatusBarTemplate">
										<Size x="90" y="21"/>
									</StatusBar>
								</Frames>
								<Scripts>
									<OnLoad>
										self:SetBackdropBorderColor(0.4, 0.2, 0, 1);
										self.statusBar = getglobal(self:GetName().."StatusBar");
										self.statusBar.title:Hide();
									</OnLoad>
								</Scripts>
							</Frame>
						</Frames>
					</Frame>
					<ScrollFrame name="$parentContainer" inherits="HybridScrollFrameTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentSummary" relativePoint="BOTTOMLEFT">
								<Offset x="0" y="1"/>
							</Anchor>
							<Anchor point="BOTTOMRIGHT">
								<Offset>
									<AbsDimension x="0" y="5"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Frames>
							<Slider name="$parentScrollBar" inherits="HybridScrollBarTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="AchievementFrameComparisonSummary" relativePoint="TOPRIGHT">
										<Offset>
											<AbsDimension x="7" y="-16"/>
										</Offset>
									</Anchor>
									<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
										<Offset>
											<AbsDimension x="1" y="12"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Slider>
						</Frames>
						<Scripts>
							<OnShow>
								local parentName = self:GetParent():GetName();
								getglobal(parentName .. "Summary"):Show();
								getglobal(parentName .. "Watermark"):Hide();
								getglobal(parentName .. "Dark"):Show();
							</OnShow>
							<OnHide>
								local parentName = self:GetParent():GetName();
								getglobal(parentName .. "Summary"):Hide();
							</OnHide>
						</Scripts>
					</ScrollFrame>
					<ScrollFrame name="$parentStatsContainer" inherits="HybridScrollFrameTemplate" hidden="true">
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="4" y="-3"/>
								</Offset>
							</Anchor>
							<Anchor point="BOTTOMRIGHT">
								<Offset>
									<AbsDimension x="0" y="5"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Frames>
							<Slider name="$parentScrollBar" inherits="HybridScrollBarTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
										<Offset>
											<AbsDimension x="1" y="-16"/>
										</Offset>
									</Anchor>
									<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
										<Offset>
											<AbsDimension x="1" y="12"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Slider>
						</Frames>
						<Scripts>
							<OnShow>
								local parentName = self:GetParent():GetName();
								getglobal(parentName .. "Watermark"):Show();
								getglobal(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>
								AchievementFrameAchievementsBackdrop_OnLoad(self);
							</OnLoad>
						</Scripts>
					</Frame>
				</Frames>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentBackground" file="Interface\AchievementFrame\UI-Achievement-AchievementBackground">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset x="3" y="-3"/>
								</Anchor>
								<Anchor point="BOTTOMRIGHT">
									<Offset x="-3" y="3"/>
								</Anchor>
							</Anchors>
						</Texture>
					</Layer>
					<Layer level="ARTWORK">
						<Texture name="$parentDark">
							<Size>
								<AbsDimension x="0" y="0"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parentBackground">
									<Offset x="0" y="0"/>
								</Anchor>
								<Anchor point="BOTTOMRIGHT">
									<Offset x="0" y="0"/>
								</Anchor>
							</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">
									<Offset x="0" y="-3"/>
								</Anchor>
								<Anchor point="BOTTOMRIGHT">
									<Offset x="0" y="3"/>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right=".65" top="0" bottom="1"/>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						AchievementFrameComparison_OnLoad(self)
						self:RegisterEvent("ACHIEVEMENT_EARNED");
					</OnLoad>
					<OnEvent>
						AchievementFrameComparison_OnEvent(self, event, ...);
					</OnEvent>
					<OnShow>
						AchievementFrameComparison_OnShow();
					</OnShow>
					<OnHide>
						AchievementFrameComparison_OnHide();
					</OnHide>
				</Scripts>
			</Frame>			
			<Button name="$parentCloseButton" inherits="UIPanelCloseButton">
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="AchievementFrame" relativePoint="TOPRIGHT">
						<Offset x="3" y="4"/>
					</Anchor>
				</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">
						<Offset>
							<AbsDimension x="11" y="-30"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						AchievementFrameTab_OnClick(self:GetID());
						self.text:SetPoint("CENTER", self, "CENTER", 0, -5);
						AchievementFrameTab2.text:SetPoint("CENTER", AchievementFrameTab2, "CENTER", 0, -3);
						PlaySound("igCharacterInfoTab");
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentTab2" inherits="AchievementFrameTabButtonTemplate" id="2" text="STATISTICS">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentTab1" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="-5" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						AchievementFrameTab_OnClick(self:GetID());
						self.text:SetPoint("CENTER", self, "CENTER", 0, -5);
						AchievementFrameTab1.text:SetPoint("CENTER", AchievementFrameTab1, "CENTER", 0, -3);
						PlaySound("igCharacterInfoTab");
					</OnClick>
				</Scripts>				
			</Button>			
		</Frames>
		<Scripts>
			<OnLoad>
				AchievementFrame_OnLoad(self);
			</OnLoad>
			<OnShow>
				AchievementFrame_OnShow(self);
			</OnShow>
			<OnHide>
				AchievementFrame_OnHide(self);
			</OnHide>
		</Scripts>
	</Frame>
		
</Ui>
