<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\..\FrameXML\UI.xsd">
	<Font name="SystemFont_Shadow_Med1" font="Fonts\FRIZQT__.TTF" virtual="true">
		<Shadow>
			<Offset>
				<AbsDimension x="1" y="-1"/>
			</Offset>
			<Color r="0" g="0" b="0"/>
		</Shadow>
		<FontHeight>
			<AbsValue val="12"/>
		</FontHeight>
	</Font>
	<Font name="SystemFont_Shadow_Med3" font="Fonts\FRIZQT__.TTF" virtual="true">
		<Shadow>
			<Offset>
				<AbsDimension x="1" y="-1"/>
			</Offset>
			<Color r="0" g="0" b="0"/>
		</Shadow>
		<FontHeight>
			<AbsValue val="14"/>
		</FontHeight>
	</Font>
	<Font name="SystemFont_Small" font="Fonts\FRIZQT__.TTF" virtual="true">
		<FontHeight>
			<AbsValue val="10"/>
		</FontHeight>
	</Font>
	<Font name="AchievementFont_Small" font="Fonts\FRIZQT__.TTF" virtual="true">
		<FontHeight>
			<AbsValue val="10"/>
		</FontHeight>
	</Font>
	<Font name="SystemFont_Shadow_Large" font="Fonts\FRIZQT__.TTF" virtual="true">
		<Shadow>
			<Offset>
				<AbsDimension x="1" y="-1"/>
			</Offset>
			<Color r="0" g="0" b="0"/>
		</Shadow>
		<FontHeight>
			<AbsValue val="16"/>
		</FontHeight>
	</Font>
	<Font name="GameFontNormal" inherits="SystemFont_Shadow_Med1" virtual="true">
		<Color r="1.0" g="0.82" b="0"/>
	</Font>
	<Font name="GameFontHighlight" inherits="GameFontNormal" virtual="true">
		<Color r="1.0" g="1.0" b="1.0"/>
	</Font>
	<Font name="GameFontHighlightLeft" inherits="GameFontHighlight" justifyH="LEFT" virtual="true"/>
	<Font name="GameFontHighlightMedium" inherits="SystemFont_Shadow_Med3" virtual="true">
		<Color r="1.0" g="1.0" b="1.0"/>
	</Font>
	<Font name="AchievementPointsFont" inherits="SystemFont_Shadow_Large" justifyH="CENTER" virtual="true">
		<Color r="1.0" g="0.82" b="0"/>
	</Font>
	<Font name="AchievementPointsFontSmall" inherits="SystemFont_Shadow_Med1" justifyH="CENTER" virtual="true">
		<Color r="1.0" g="0.82" b="0"/>
	</Font>
	<Font name="GameFontNormalLarge" inherits="SystemFont_Shadow_Large" virtual="true">
		<Color r="1.0" g="0.82" b="0"/>
	</Font>
	<Font name="AchievementDescriptionFont" inherits="SystemFont_Small" justifyH="CENTER" justifyV="TOP" virtual="true">
		<!-- 	You might be wondering why AchievementDescriptionFont inherits from SystemFont_Small and has its own shadow, rather than inheriting from SystemFont_Shadow_Small.
			Good question! SystemFont_Shadow_Small and SystemFont_Small are the same height in most languages, but in Chinese, they are different. SystemFont_Small is the smaller of the two, and what
			we need to use for things to fit at all well. -->
		<Shadow>
			<Offset>
				<AbsDimension x="1" y="-1"/>
			</Offset>
			<Color r="0" g="0" b="0"/>
		</Shadow>
		<Color r="1" g="1" b="1"/>
	</Font>
	<Font name="AchievementCriteriaFont" inherits="AchievementDescriptionFont" justifyH="LEFT" justifyV="MIDDLE" virtual="true"/>
	<Font name="AchievementDateFont" inherits="AchievementFont_Small" justifyH="RIGHT" virtual="true">
		<Color r="1.0" g="0.82" b="0"/>
	</Font>
	<Font name="GameFontBlackSmall" inherits="SystemFont_Small" virtual="true">
		<Color r="0" g="0" b="0"/>
	</Font>
	<Font name="GameFontWhiteSmall" inherits="GameFontBlackSmall" virtual="true">
		<Color r="1.0" g="1.0" b="1.0"/>
	</Font>
	<Font name="GameFontHighlightRight" inherits="GameFontHighlight" justifyH="RIGHT" virtual="true"/>
	<StatusBar name="TooltipStatusBarTemplate" virtual="true">
		<Size>
			<AbsDimension x="0" y="12"/>
		</Size>
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="$parentText" inherits="GameFontHighlightSmall">
					<Anchors>
						<Anchor point="LEFT">
							<Offset x="5" y="0"/>
						</Anchor>
					</Anchors>
				</FontString>
				<Texture file="Interface\Tooltips\UI-StatusBar-Border">
					<Size>
						<AbsDimension x="128" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset x="-2" y="2"/>
						</Anchor>
						<Anchor point="TOPRIGHT">
							<Offset x="2" y="-2"/>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				this:SetStatusBarColor(0, 1.0, 0);
			</OnLoad>
		</Scripts>
		<BarTexture name="$parentTexture" file="Interface\TargetingFrame\UI-TargetingFrame-BarFill"/>
	</StatusBar>
	<StatusBar name="AchievementFrameSummaryCategoryTemplate" drawLayer="BORDER" virtual="true">
		<Size>
			<AbsDimension x="234" y="21"/>
		</Size>
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="$parentLabel" inherits="GameFontNormal">
					<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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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>
		<Frames>
			<Button name="$parentButton">
				<Anchors>
					<Anchor point="TOPLEFT"/>
					<Anchor point="BOTTOMRIGHT"/>
				</Anchors>
				<Frames>
					<Frame name="$parentHighlight" setAllPoints="true" hidden="true">
						<Layers>
							<Layer level="OVERLAY">
								<Texture name="$parentLeft" file="Interface\AddOns\Achiever\textures\UI-Achievement-StatusBar-Highlight" alphaMode="ADD">
									<Size>
										<AbsDimension x="32" y="32"/>
									</Size>
									<Anchors>
										<Anchor point="TOPLEFT">
											<Offset x="-7" y="8"/>
										</Anchor>
									</Anchors>
									<TexCoords left="0" right="1" top="0" bottom="1"/>
								</Texture>
								<Texture name="$parentRight" file="Interface\AddOns\Achiever\textures\UI-Achievement-StatusBar-Highlight" alphaMode="ADD">
									<Size>
										<AbsDimension x="32" y="32"/>
									</Size>
									<Anchors>
										<Anchor point="TOPRIGHT">
											<Offset x="7" y="8"/>
										</Anchor>
									</Anchors>
									<TexCoords right="0" left="1" top="0" bottom="1"/>
								</Texture>
								<Texture name="$parentMiddle" file="Interface\AddOns\Achiever\textures\UI-Achievement-StatusBar-Highlight" alphaMode="ADD">
									<Anchors>
										<Anchor point="TOPLEFT" relativeTo="$parentLeft" relativePoint="TOPRIGHT"/>
										<Anchor point="BOTTOMRIGHT" relativeTo="$parentRight" relativePoint="BOTTOMLEFT"/>
									</Anchors>
									<TexCoords right="1" left="0.5" top="0" bottom="1"/>
								</Texture>
							</Layer>
						</Layers>
					</Frame>
				</Frames>
				<Scripts>
					<OnClick>
						AchievementFrameSummaryCategoryButton_OnClick(this, button, down);
					</OnClick>
					<OnEnter>
						local _G, _ = _G or getfenv()
						_G[this:GetName().."Highlight"]:Show();
					</OnEnter>
					<OnLeave>
						local _G, _ = _G or getfenv()
						_G[this:GetName().."Highlight"]:Hide();
					</OnLeave>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad>
				AchievementFrameSummaryCategory_OnLoad(this);
			</OnLoad>
			<OnShow>
				AchievementFrameSummaryCategory_OnShow(this);
			</OnShow>
			<OnHide>
				AchievementFrameSummaryCategory_OnHide(this);
			</OnHide>
			<OnEvent>
				AchievementFrameSummaryCategory_OnEvent(this, event, ...);
			</OnEvent>
		</Scripts>
		<BarTexture name="$parentBar" file="Interface\AddOns\Achiever\textures\UI-Character-Skills-Bar"/>
		<BarColor r="0" g="1" b="0"/>
	</StatusBar>
	<CheckButton name="AchievementCheckButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="15" y="15"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentText" inherits="GameFontNormalSmall" text="TRACK_ACHIEVEMENT">
					<Anchors>
						<Anchor point="LEFT" relativePoint="RIGHT"/>
					</Anchors>
					<Color r=".6" g=".6" b=".6" a="1"/>
				</FontString>
			</Layer>
		</Layers>
		<HitRectInsets>
			<AbsInset left="0" right="-100" top="0" bottom="0"/>
		</HitRectInsets>
		<Scripts>
			<OnClick>
				if ( this:GetChecked() ) then
					PlaySound("igMainMenuOptionCheckBoxOn");
				else
					PlaySound("igMainMenuOptionCheckBoxOff");
				end
				local tracked = AchievementButton_ToggleTracking(this:GetParent().id);
				if ( not tracked ) then
					this:SetChecked(0);
				end
			</OnClick>
			<OnEnter>
				GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
				if ( this:GetChecked() ) then
					<!-- GameTooltip:SetText(UNTRACK_ACHIEVEMENT_TOOLTIP, nil, nil, nil, nil, 1); -->
					GameTooltip:SetText(UNTRACK_ACHIEVEMENT_TOOLTIP);
				else
					<!-- GameTooltip:SetText(TRACK_ACHIEVEMENT_TOOLTIP, nil, nil, nil, nil, 1); -->
					GameTooltip:SetText(TRACK_ACHIEVEMENT_TOOLTIP);
				end
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
			<OnShow>
				this:SetChecked(IsTrackedAchievement(this:GetParent().id));
			</OnShow>
		</Scripts>
		<NormalTexture file="Interface\AddOns\Achiever\textures\UI-CheckBox-Up"/>
		<PushedTexture file="Interface\AddOns\Achiever\textures\UI-CheckBox-Down"/>
	 	<HighlightTexture file="Interface\AddOns\Achiever\textures\UI-CheckBox-Highlight" alphaMode="ADD"/>
		<CheckedTexture file="Interface\AddOns\Achiever\textures\UI-CheckBox-Check"/>
		<DisabledCheckedTexture file="Interface\AddOns\Achiever\textures\UI-CheckBox-Check-Disabled"/>
	</CheckButton>

	<Button name="AchievementFrameTabButtonTemplate" virtual="true">
        <Size>
            <AbsDimension x="115" y="37"/>
        </Size>
        <Layers>
        	<Layer level="BACKGROUND">
        		<Texture name="$parentLeftDisabled" file="Interface\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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 _G, _ = _G or getfenv()
				local name = this:GetName();
				_G[name.."Left"]:SetVertexColor(0.6, 0.6, 0.6);
				_G[name.."Middle"]:SetVertexColor(0.6, 0.6, 0.6);
				_G[name.."Right"]:SetVertexColor(0.6, 0.6, 0.6);
				_G[name.."LeftDisabled"]:SetPoint("TOPLEFT", 0, 2);
				this.leftHighlight = _G[name.."LeftHighlight"];
				this.middleHighlight = _G[name.."MiddleHighlight"];
				this.rightHighlight = _G[name.."RightHighlight"];
				this.text = _G[name.."Text"];
			</OnLoad>
			<OnEnter>
				this.leftHighlight:Show();
				this.middleHighlight:Show();
				this.rightHighlight:Show();
			</OnEnter>
			<OnLeave>
				this.leftHighlight:Hide();
				this.middleHighlight:Hide();
				this.rightHighlight:Hide();
			</OnLeave>
			<OnShow>
				myPanelTemplates_TabResize(this, 10);
			</OnShow>
		</Scripts>
		<ButtonText name="$parentText" inherits="GameFontHighlightSmall">
			<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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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 _G, _ = _G or getfenv()
				local name = this:GetName();
				this.points = _G[name .. "Points"];
				this.icon = _G[name .. "Icon"];
			</OnLoad>
			<OnEnter>
				GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
				if ( this.name ) then
					GameTooltip:AddDoubleLine(this.name, this.date, nil, nil, nil, .5, .5, .5);
				end
				if ( this.desc ) then
					GameTooltip:AddLine(this.desc, 1, 1, 1, 1);
				end
				if ( this.numCriteria ) then
					for i = 1, this.numCriteria do
						GameTooltip:AddLine(this["criteria"..i]);
					end
				end
				GameTooltip:Show();
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
	</Frame>

	<Button name="MetaCriteriaTemplate" virtual="true">
		<Size>
			<AbsDimension x="155" y="30"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentIcon">
					<Size x="17" y="17"/>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="6" y="-6"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<Texture name="$parentBorder" file="Interface\AddOns\Achiever\textures\UI-Achievement-Progressive-IconBorder">
					<Size x="30" y="30"/>
					<Anchors>
						<Anchor point="TOPLEFT"/>
					</Anchors>
					<TexCoords left="0" right="0.65625" top="0" bottom="0.65625"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentCheck" file="Interface\AddOns\Achiever\textures\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="LEFT">
							<Offset>
								<AbsDimension x="34" y="2"/>
							</Offset>
						</Anchor>
					</Anchors>
					<Size x="125" y="20"/>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				local _G, _ = _G or getfenv()
				local name = this:GetName();
				this.icon = _G[name .. "Icon"];
				this.label = _G[name .. "Label"];
				this.check = _G[name .. "Check"];
				this.border = _G[name .. "Border"];
				_G[name .. "HighlightTexture"]:SetVertexColor(1.0, 1.0, 1.0, 0.15);
			</OnLoad>
			<OnEnter>
				if ( this.date ) then
					GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
					GameTooltip:AddLine(string.format(ACHIEVEMENT_META_COMPLETED_DATE, this.date), 1, 1, 1);
					GameTooltip:Show();
				end
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
			<OnClick>
				if ( this.id ) then
					AchievementFrame_SelectAchievement(this.id);
				end
			</OnClick>
		</Scripts>
		<HighlightTexture name="$parentHighlightTexture" file="Interface\AddOns\Achiever\textures\UI-FriendsFrame-HighlightBar" alphaMode="ADD">
			<Anchors>
				<Anchor point="TOPLEFT"/>
				<Anchor point="BOTTOMRIGHT">
					<Offset x="0" y="2"/>
				</Anchor>
			</Anchors>
			<Color r="1" g="1" b="1" a=".15"/>
		</HighlightTexture>
	</Button>

	<StatusBar name="AchievementProgressBarTemplate" virtual="true">
		<Size>
			<AbsDimension x="212" y="14"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentBG">
					<Anchors>
						<Anchor point="TOPLEFT"/>
						<Anchor point="BOTTOMRIGHT"/>
					</Anchors>
					<Color r="0" g="0" b="0" a=".4"/>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<FontString name="$parentText" inherits="GameFontHighlightSmall" text="700/700" justifyV="TOP">
					<Size x="0" y="0"/>
					<Anchors>
						<Anchor point="CENTER">
							<Offset x="0" y="0"/>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentBorderLeft" file="Interface\AddOns\Achiever\textures\UI-Achievement-ProgressBar-Border">
					<Size x="16" y="0"/>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="-6" y="5"/>
							</Offset>
						</Anchor>
						<Anchor point="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="-6" y="-5"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="0.0625" top="0" bottom="0.75"/>
				</Texture>
				<Texture name="$parentBorderRight" file="Interface\AddOns\Achiever\textures\UI-Achievement-ProgressBar-Border">
					<Size x="16" y="0"/>
					<Anchors>
						<Anchor point="TOPRIGHT">
							<Offset>
								<AbsDimension x="6" y="5"/>
							</Offset>
						</Anchor>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="6" y="-5"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.812" right="0.8745" top="0" bottom="0.75"/>
				</Texture>
				<Texture name="$parentBorderCenter" file="Interface\AddOns\Achiever\textures\UI-Achievement-ProgressBar-Border">
					<Size x="16"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentBorderLeft" relativePoint="TOPRIGHT"/>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parentBorderRight" relativePoint="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords left="0.0625" right="0.812" top="0" bottom="0.75"/>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				local _G, _ = _G or getfenv()
				this:SetStatusBarColor(0, .6, 0, 1);
				this:SetMinMaxValues(0, 100);
				this:SetValue(0);
				this.text = _G[this:GetName() .. "Text"];
				this:GetStatusBarTexture():SetDrawLayer("BORDER");
			</OnLoad>
		</Scripts>
		<BarTexture file="Interface\AddOns\Achiever\textures\UI-StatusBar"/>
	</StatusBar>

	<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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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 _G, _ = _G or getfenv()
				local name = this:GetName();
				this.title = _G[name .. "Title"];
				this.text = _G[name .. "Text"];
			</OnLoad>
		</Scripts>
		<BarTexture name="$parentBar" file="Interface\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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" wordwrap="false">
					<Anchors>
						<Anchor point="BOTTOMLEFT">
							<Offset x="16" y="4"/>
						</Anchor>
						<Anchor point="TOPRIGHT">
							<Offset x="-8" y="-4"/>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				AchievementCategoryButton_OnLoad(this);
			</OnLoad>
			<OnClick>
				AchievementCategoryButton_OnClick(this, button, down);
			</OnClick>
			<OnEnter>
				if ( this.showTooltipFunc ) then
					this.showTooltipFunc(this);
				end
			</OnEnter>
			<OnLeave>
				GameTooltip:SetMinimumWidth(0, 0);
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
		<HighlightTexture file="Interface\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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(this);
			</OnLoad>
		</Scripts>
	</Frame>

	<Frame name="AchievementCriteriaTemplate" virtual="true">
		<Size>
			<AbsDimension x="350" y="15"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parentCheck" file="Interface\AddOns\Achiever\textures\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 _G, _ = _G or getfenv()
				local name = this:GetName();
				this.name = _G[name .. "Name"];
				this.check = _G[name .. "Check"];
			</OnLoad>
			<OnMouseUp>
				if ( button == "LeftButton" ) then
					this:GetParent():GetParent():Click();
				end
			</OnMouseUp>
		</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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\UI-Achievement-Tsunami-Corners">
					<Size>
						<AbsDimension x="32" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<!-- <AbsDimension x="-2" y="-20"/> -->
								<AbsDimension x="-2" y="-25"/>
							</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\AddOns\Achiever\textures\UI-Achievement-Tsunami-Corners">
					<Size>
						<AbsDimension x="32" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT">
							<Offset>
								<!-- <AbsDimension x="2" y="-20"/> -->
								<AbsDimension x="2" y="-25"/>
							</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\AddOns\Achiever\textures\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="0.35"/>
					<TexCoords left="0" right="0.72265" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentTopTsunami1" file="Interface\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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="TOP">
							<Offset>
								<AbsDimension x="0" y="-30"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<Texture name="$parentCheck" file="Interface\AddOns\Achiever\textures\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>
				<Texture name="$parentPlusMinus" file="Interface\AddOns\Achiever\textures\UI-Achievement-PlusMinus" hidden="true">
					<Size>
						<AbsDimension x="15" y="15"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset x="72" y="-9"/>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right=".5" top="0" bottom=".5"/>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				this.mouseOver = false
				AchievementButton_OnLoad(this);
			</OnLoad>
			<OnClick>
				AchievementButton_OnClick(this);
			</OnClick>
			<OnEnter>
				this.mouseOver = true
				this.highlight:Show();
			</OnEnter>
			<OnLeave>
				if ( not this.selected ) then
					this.highlight:Hide();
				end
				this.mouseOver = false
			</OnLeave>
		</Scripts>
		<Frames>
			<Frame name="$parentHighlight" setAllPoints="true" hidden="true" enableMouse="false">
				<Layers>
					<Layer level="OVERLAY">
						<Texture name="$parentTopLeft" file="Interface\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\UI-Achievement-Shields">
							<Size>
								<AbsDimension x="66" 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="32" y="16"/>
							<Anchors>
								<Anchor point="TOPRIGHT">
									<Offset x="-18" y="-26"/>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						AchievementShield_OnLoad(this);
					</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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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(this);
			</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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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(this);
					</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\AddOns\Achiever\textures\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(this);
					</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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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(this);
			</OnLoad>
			<OnClick>
				AchievementFrameSummaryAchievement_OnClick(this, button, down);
			</OnClick>
			<OnEnter>
				AchievementFrameSummaryAchievement_OnEnter(this, motion);
			</OnEnter>
			<OnLeave>
				this.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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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(this);
							</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\AddOns\Achiever\textures\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(this);
							</OnLoad>
						</Scripts>
					</Frame>
				</Frames>
				<Scripts>
					<OnLoad>
						AchievementComparisonFriendButton_OnLoad(this);
					</OnLoad>
				</Scripts>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad>
				local _G, _ = _G or getfenv()
				local name = this:GetName();
				this.player = _G[name .. "Player"];
				this.friend = _G[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\AddOns\Achiever\textures\UI-Achievement-Stat-Buttons" setAllPoints="true" hidden="true"/>
				<Texture name="$parentHeaderLeft" file="Interface\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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(this, AchievementFrameStats);
			</OnLoad>
			<OnClick>
				AchievementStatButton_OnClick(this, button, down);
			</OnClick>
		</Scripts>
		<ButtonText name="$parentText" inherits="GameFontHighlightLeft">
			<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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\UI-Achievement-Stat-Buttons" setAllPoints="true" hidden="true"/>
				<Texture name="$parentHeaderLeft" file="Interface\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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 = this.tooltip;
						if ( tooltip ) then
							GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
							GameTooltip:SetText(tooltip, nil, nil, nil, nil, 1);
						end
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad>
				AchievementFrameComparisonStat_OnLoad(this);
			</OnLoad>
		</Scripts>
	</Frame>

	<Button name="SummaryStatTemplate" inherits="StatTemplate" virtual="true">
		<Scripts>
			<OnLoad>
				this.summary = true;
				AchievementStatButton_OnLoad(this, AchievementFrameSummaryStats);
				this:SetHeight(18);
			</OnLoad>
		</Scripts>
	</Button>

	<Frame name="AchievementFrame" toplevel="true" movable="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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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="BACKGROUND">
						<Texture name="$parentLeft" file="Interface\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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>
					<Layer level="BORDER">
						<Texture name="$parentPointBorder" file="Interface\AddOns\Achiever\textures\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>
						<Texture name="$parentRightDDLInset" file="Interface\AddOns\Achiever\textures\UI-Achievement-RightDDLInset" hidden="true">
							<Size x="128" y="32"/>
							<Anchors>
								<Anchor point="TOPRIGHT">
									<Offset x="-76" y="-56"/>
								</Anchor>
							</Anchors>
						</Texture>
					</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\AddOns\Achiever\textures\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>
				</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(this);
					</OnLoad>
					<OnEvent>
						AchievementFrameCategories_OnEvent();
					</OnEvent>
					<OnShow>
						AchievementFrameCategories_OnShow(this);
					</OnShow>
				</Scripts>
				<Frames>
					<ScrollFrame name="$parentContainer" inherits="myHybridScrollFrameTemplate">
						<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="myHybridScrollBarTemplate">
								<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>
								<!-- <Scripts>
									<OnShow>
										ACHIEVEMENTUI_CATEGORIESWIDTH = 175;
										AchievementFrameCategories:SetWidth(175);
										AchievementFrameCategoriesContainer:GetScrollChild():SetWidth(175);
										AchievementFrameAchievements:SetPoint("TOPLEFT", "$parentCategories", "TOPRIGHT", 22, 0);
										AchievementFrameStats:SetPoint("TOPLEFT", "$parentCategories", "TOPRIGHT", 22, 0);
										AchievementFrameComparison:SetPoint("TOPLEFT", "$parentCategories", "TOPRIGHT", 22, 0)
										AchievementFrameWaterMark:SetWidth(145);
										AchievementFrameWaterMark:SetTexCoord(0, 145/256, 0, 1);
										for _, button in next, AchievementFrameCategoriesContainer.buttons do
											AchievementFrameCategories_DisplayButton(button, button.element)
										end
									</OnShow>
									<OnHide>
										ACHIEVEMENTUI_CATEGORIESWIDTH = 197;
										AchievementFrameCategories:SetWidth(197);
										AchievementFrameCategoriesContainer:GetScrollChild():SetWidth(197);
										AchievementFrameAchievements:SetPoint("TOPLEFT", "$parentCategories", "TOPRIGHT", 0, 0);
										AchievementFrameStats:SetPoint("TOPLEFT", "$parentCategories", "TOPRIGHT", 0, 0);
										AchievementFrameComparison:SetPoint("TOPLEFT", "$parentCategories", "TOPRIGHT", 0, 0)
										AchievementFrameWaterMark:SetWidth(167);
										AchievementFrameWaterMark:SetTexCoord(0, 167/256, 0, 1);
										for _, button in next, AchievementFrameCategoriesContainer.buttons do
											AchievementFrameCategories_DisplayButton(button, button.element);
										end
									</OnHide>
								</Scripts> -->
							</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\AddOns\Achiever\textures\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(this);
					</OnLoad>
					<OnEvent>
						AchievementFrameAchievements_OnEvent(this, event, ...);
					</OnEvent>
					<OnHide>
						AchievementFrameFilterDropDown:Hide();
						AchievementFrameHeaderRightDDLInset:Hide();
					</OnHide>
					<OnShow>
						AchievementFrameAchievements_OnShow();
					</OnShow>
				</Scripts>
				<Frames>
					<ScrollFrame name="$parentContainer" inherits="myHybridScrollFrameTemplate">
						<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="myHybridScrollBarTemplate">
								<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>
								<!-- <Scripts>
									<OnHide>
										AchievementFrameAchievements:SetWidth(530);
										for _, button in next, AchievementFrameAchievements.buttons do
											button:SetWidth(522);
										end
									</OnHide>
									<OnShow>
										AchievementFrameAchievements:SetWidth(504);
										for _, button in next, AchievementFrameAchievements.buttons do
											button:SetWidth(496);
										end
									</OnShow>
								</Scripts> -->
							</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(this);
							</OnLoad>
						</Scripts>
					</Frame>
				</Frames>
			</Frame>
			<Frame name="$parentStats" hidden="true">
				<Size>
					<AbsDimension x="506" 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>
				<Scripts>
					<OnLoad>
						AchievementFrameStats_OnLoad(this);
					</OnLoad>
					<OnEvent>
						AchievementFrameStats_OnEvent(this, event, ...);
					</OnEvent>
				</Scripts>
				<Frames>
					<Frame name="$parentBG">
						<!-- This prevents the BG from being resized with the rest of the frame when the scrollbar pops in and out -->
						<Size x="526" y="438"/>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset x="2" y="0"/>
							</Anchor>
							<Anchor point="BOTTOM">
								<Offset x="0" y="3"/>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<Texture file="Interface\AddOns\Achiever\textures\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>
								LowerFrameLevel(this);
							</OnLoad>
						</Scripts>
					</Frame>
					<ScrollFrame name="$parentContainer" inherits="myHybridScrollFrameTemplate">
						<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="myHybridScrollBarTemplate">
								<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>
								<!-- <Scripts>
									<OnShow>
										AchievementFrameStats:SetWidth(504);
										for _, button in next, AchievementFrameStats.buttons do
											button:SetWidth(496);
										end
									</OnShow>
									<OnHide>
										AchievementFrameStats:SetWidth(530);
										for _, button in next, AchievementFrameStats.buttons do
											button:SetWidth(522);
										end
									</OnHide>
								</Scripts> -->
							</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(this);
							</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\AddOns\Achiever\textures\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>
					<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(this);
							</OnLoad>
						</Scripts>
					</Frame>
					<Frame name="$parentAchievements">
						<Size>
							<AbsDimension x="0" y="210"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset x="5" y="-20"/>
							</Anchor>
							<Anchor point="TOPRIGHT">
								<Offset x="-5" y="-20"/>
							</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\AddOns\Achiever\textures\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="$parentCategories">
						<Size>
							<AbsDimension x="0" y="164"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentAchievements" relativePoint="BOTTOMLEFT">
								<Offset x="0" y="-8"/>
							</Anchor>
							<Anchor point="TOPRIGHT" relativeTo="$parentAchievements" relativePoint="BOTTOMRIGHT">
								<Offset x="0" y="-8"/>
							</Anchor>
						</Anchors>
						<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="$parentTexture" file="Interface\AddOns\Achiever\textures\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="ACHIEVEMENT_CATEGORY_PROGRESS">
											<Size x="0" y="20"/>
											<Anchors>
												<Anchor point="CENTER">
													<Offset x="0" y="0"/>
												</Anchor>
											</Anchors>
										</FontString>
									</Layer>
								</Layers>
							</Frame>
							<StatusBar name="$parentStatusBar" drawLayer="BORDER">
								<Size>
									<AbsDimension x="488" y="21"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="$parentHeader" relativePoint="BOTTOM">
										<Offset x="0" y="-6"/>
									</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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\UI-Character-Skills-Bar"/>
								<BarColor r="0" g="1" b="0"/>
							</StatusBar>
							<StatusBar name="$parentCategory1" inherits="AchievementFrameSummaryCategoryTemplate" id="92">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="$parentStatusBar" relativePoint="BOTTOMLEFT">
										<Offset x="0" y="-24"/>
									</Anchor>
								</Anchors>
							</StatusBar>
							<StatusBar name="$parentCategory2" inherits="AchievementFrameSummaryCategoryTemplate" id="96">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="$parentCategory1" relativePoint="TOPRIGHT">
										<Offset x="20" y="0"/>
									</Anchor>
								</Anchors>
							</StatusBar>
							<StatusBar name="$parentCategory3" inherits="AchievementFrameSummaryCategoryTemplate" id="97">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="$parentCategory1" relativePoint="BOTTOMLEFT">
										<Offset x="0" y="-14"/>
									</Anchor>
								</Anchors>
							</StatusBar>
							<StatusBar name="$parentCategory4" inherits="AchievementFrameSummaryCategoryTemplate" id="95">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="$parentCategory3" relativePoint="TOPRIGHT">
										<Offset x="20" y="0"/>
									</Anchor>
								</Anchors>
							</StatusBar>
							<StatusBar name="$parentCategory5" inherits="AchievementFrameSummaryCategoryTemplate" id="168">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="$parentCategory3" relativePoint="BOTTOMLEFT">
										<Offset x="0" y="-14"/>
									</Anchor>
								</Anchors>
							</StatusBar>
							<StatusBar name="$parentCategory6" inherits="AchievementFrameSummaryCategoryTemplate" id="169">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="$parentCategory5" relativePoint="TOPRIGHT">
										<Offset x="20" y="0"/>
									</Anchor>
								</Anchors>
							</StatusBar>
							<StatusBar name="$parentCategory7" inherits="AchievementFrameSummaryCategoryTemplate" id="201">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="$parentCategory5" relativePoint="BOTTOMLEFT">
										<Offset x="0" y="-14"/>
									</Anchor>
								</Anchors>
							</StatusBar>
							<StatusBar name="$parentCategory8" inherits="AchievementFrameSummaryCategoryTemplate" id="155">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="$parentCategory7" relativePoint="TOPRIGHT">
										<Offset x="20" y="0"/>
									</Anchor>
								</Anchors>
							</StatusBar>
						</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\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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
								local _G, _ = _G or getfenv()
								SetPortraitTexture(_G[this:GetName().."Portrait"], "player");
								this:SetFrameLevel(this: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\AddOns\Achiever\textures\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>
										local _G, _ = _G or getfenv()
										this:SetBackdropBorderColor(0.4, 0.2, 0, 1);
										this.statusBar = _G[this: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\AddOns\Achiever\textures\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>
										local _G, _ = _G or getfenv()
										this:SetBackdropBorderColor(0.4, 0.2, 0, 1);
										this.statusBar = _G[this:GetName().."StatusBar"];
										this.statusBar.title:Hide();
									</OnLoad>
								</Scripts>
							</Frame>
						</Frames>
					</Frame>
					<ScrollFrame name="$parentContainer" inherits="myHybridScrollFrameTemplate">
						<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="myHybridScrollBarTemplate">
								<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>
								<!-- <Scripts>
									<OnShow>
										AchievementFrameComparison:SetWidth(626);
										AchievementFrameComparisonSummaryPlayer:SetWidth(498);
										for _, button in next, AchievementFrameComparisonContainer.buttons do
											button:SetWidth(616);
											button.player:SetWidth(498);
										end
									</OnShow>
									<OnHide>
										AchievementFrameComparison:SetWidth(650);
										AchievementFrameComparisonSummaryPlayer:SetWidth(522);
										for _, button in next, AchievementFrameComparisonContainer.buttons do
											button:SetWidth(640);
											button.player:SetWidth(522);
										end
									</OnHide>
								</Scripts> -->
							</Slider>
						</Frames>
						<Scripts>
							<OnShow>
								local _G, _ = _G or getfenv()
								local parentName = this:GetParent():GetName();
								_G[parentName .. "Summary"]:Show();
								_G[parentName .. "Watermark"]:Hide();
								_G[parentName .. "Dark"]:Show();
							</OnShow>
							<OnHide>
								local _G, _ = _G or getfenv()
								local parentName = this:GetParent():GetName();
								_G[parentName .. "Summary"]:Hide();
							</OnHide>
						</Scripts>
					</ScrollFrame>
					<ScrollFrame name="$parentStatsContainer" inherits="myHybridScrollFrameTemplate" 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="myHybridScrollBarTemplate">
								<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>
									<!-- <Scripts>
										<OnShow>
											AchievementFrameComparison:SetWidth(626);
											for _, button in next, AchievementFrameComparisonStatsContainer.buttons do
												button:SetWidth(616);
											end
										</OnShow>
										<OnHide>
											AchievementFrameComparison:SetWidth(650);
											for _, button in next, AchievementFrameComparisonStatsContainer.buttons do
												button:SetWidth(640);
											end
										</OnHide>
									</Scripts> -->
								</Anchors>
							</Slider>
						</Frames>
						<Scripts>
							<OnShow>
								local _G, _ = _G or getfenv()
								local parentName = this:GetParent():GetName();
								_G[parentName .. "Watermark"]:Show();
								_G[parentName .. "Dark"]:Hide();
							</OnShow>
						</Scripts>
					</ScrollFrame>
					<Frame setAllPoints="true">
						<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="16"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="16"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="5" right="5" top="5" bottom="5"/>
							</BackgroundInsets>
						</Backdrop>
						<Scripts>
							<OnLoad>
								AchievementFrameAchievementsBackdrop_OnLoad(this);
							</OnLoad>
						</Scripts>
					</Frame>
				</Frames>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentBackground" file="Interface\AddOns\Achiever\textures\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\AddOns\Achiever\textures\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(this);
					</OnLoad>
					<OnEvent>
						AchievementFrameComparison_OnEvent(this, 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
							this: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(this:GetID());
						this.text:SetPoint("CENTER", this, "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(this:GetID());
						this.text:SetPoint("CENTER", this, "CENTER", 0, -5);
						AchievementFrameTab1.text:SetPoint("CENTER", AchievementFrameTab1, "CENTER", 0, -3);
						PlaySound("igCharacterInfoTab");
					</OnClick>
				</Scripts>
			</Button>
			<Frame name="$parentFilterDropDown" hidden="true">
				<Size x="110" y="32"/>
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset x="-98" y="10"/>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="$parentText" inherits="GameFontHighlightSmall" justifyH="LEFT" text="Text">
							<Size x="0" y="32"/>
							<Anchors>
								<Anchor point="LEFT">
									<Offset x="0" y="4"/>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>

				<Frames>
					<Button name="$parentButton">
						<Size>
							<AbsDimension x="24" y="24"/>
						</Size>
						<Anchors>
							<Anchor point="TOPRIGHT"/>
						</Anchors>
						<Scripts>
							<OnClick>
								myToggleDropDownMenu(nil, nil, this:GetParent());
								PlaySound("igMainMenuOptionCheckBoxOn");
							</OnClick>
						</Scripts>
						<NormalTexture name="$parentNormalTexture" file="Interface\AddOns\Achiever\textures\UI-ChatIcon-ScrollDown-Up">
							<Size>
								<AbsDimension x="24" y="24"/>
							</Size>
							<Anchors>
								<Anchor point="RIGHT"/>
							</Anchors>
						</NormalTexture>
						<PushedTexture name="$parentPushedTexture" file="Interface\AddOns\Achiever\textures\UI-ChatIcon-ScrollDown-Down">
							<Size>
								<AbsDimension x="24" y="24"/>
							</Size>
							<Anchors>
								<Anchor point="RIGHT"/>
							</Anchors>
						</PushedTexture>
						<DisabledTexture name="$parentDisabledTexture" file="Interface\AddOns\Achiever\textures\UI-ChatIcon-ScrollDown-Disabled">
							<Size>
								<AbsDimension x="24" y="24"/>
							</Size>
							<Anchors>
								<Anchor point="RIGHT"/>
							</Anchors>
						</DisabledTexture>
						<HighlightTexture name="$parentHighlightTexture" file="Interface\AddOns\Achiever\textures\UI-Common-MouseHilight" alphaMode="ADD">
							<Size>
								<AbsDimension x="24" y="24"/>
							</Size>
							<Anchors>
								<Anchor point="RIGHT"/>
							</Anchors>
						</HighlightTexture>
					</Button>
				</Frames>
				<Scripts>
					<OnLoad>
						this:RegisterForDrag("LeftButton")
						AchievementFrameFilterDropDown_OnLoad(this);
					</OnLoad>
					<OnDragStart>
						this:LockHighlight()
						this:StartMoving()
					</OnDragStart>
					<OnDragStop>
						this:UnlockHighlight()
						this:StopMovingOrSizing()
					</OnDragStop>
					<OnHide>
						myCloseDropDownMenus()
					</OnHide>
				</Scripts>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad>
				AchievementFrame_OnLoad(this);
			</OnLoad>
			<OnShow>
				AchievementFrame_OnShow(this);
			</OnShow>
			<OnHide>
				AchievementFrame_OnHide(this);
			</OnHide>
		</Scripts>
	</Frame>

</Ui>
