<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">
	<Frame name="PVPFrameLineTemplate" virtual="true">
		<Size>
			<AbsDimension x="250" y="2"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentTop">
					<Size>
						<AbsDimension x="250" y="1"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<Color r="0" g="0" b="0" a="1"/>
				</Texture>
				<Texture>
					<Size>
						<AbsDimension x="250" y="1"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTop" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<Color r="1" g="1" b="1" a="0.5"/>
				</Texture>
			</Layer>
		</Layers>
	</Frame>
	<Frame name="PVPTeamStandardTemplate" virtual="true">
		<Size>
			<AbsDimension x="64" y="64"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentBar" file="Interface\PVPFrame\UI-Character-PVP-Elements">
					<Size>
						<AbsDimension x="50" y="13"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="-8" y="6"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="0.099609375" top="0.91015625" bottom="0.935546875"/>
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<Texture name="$parentBanner">
					<Size>
						<AbsDimension x="45" y="90"/>
					</Size>
					<Anchors>
						<Anchor point="TOP" relativeTo="$parentBar" relativePoint="TOP">
							<Offset>
								<AbsDimension x="5" y="-2"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentBorder">
					<Size>
						<AbsDimension x="45" y="90"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER" relativeTo="$parentBanner" relativePoint="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture name="$parentEmblem">
					<Size>
						<AbsDimension x="24" y="24"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER" relativeTo="$parentBorder" relativePoint="CENTER">
							<Offset>
								<AbsDimension x="-5" y="17"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				self:SetAlpha(0.1);
			</OnLoad>
		</Scripts>
	</Frame>
	<Button name="PVPTeamBorderTemplate" virtual="true">
		<Size>
			<AbsDimension x="300" y="78"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentTop" file="Interface\PVPFrame\UI-Character-PVP-Elements">
					<Size>
						<AbsDimension x="279" y="11"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="0.544921875" top="0.849609375" bottom="0.87109375"/>
				</Texture>
				<Texture name="$parentLeft" file="Interface\PVPFrame\UI-Character-PVP-Elements">
					<Size>
						<AbsDimension x="10" y="55"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTop" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.556640625" right="0.576171875" top="0.705078125" bottom="0.82421875"/>
				</Texture>
				<Texture name="$parentBackground">
					<Size>
						<AbsDimension x="265" y="65"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentLeft" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="-1" y="4"/>
							</Offset>
						</Anchor>
					</Anchors>
					<Color r="0" g="0" b="0"/>
				</Texture>
				<Texture name="$parentRight" file="Interface\PVPFrame\UI-Character-PVP-Elements">
					<Size>
						<AbsDimension x="10" y="55"/>
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="$parentTop" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.576171875" right="0.595703125" top="0.705078125" bottom="0.82421875"/>
				</Texture>
				<Texture name="$parentBottom" file="Interface\PVPFrame\UI-Character-PVP-Elements">
					<Size>
						<AbsDimension x="279" y="17"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentLeft" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="0.544921875" top="0.87109375" bottom="0.90625"/>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="$parentHighlight" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentTop">
						<Offset>
							<AbsDimension x="-3" y="7"/>
						</Offset>
					</Anchor>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parentBottom">
						<Offset>
							<AbsDimension x="8" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Backdrop edgeFile="Interface\PVPFrame\UI-Character-PVP-Highlight" tile="true">
					<EdgeSize>
						<AbsValue val="32"/>
					</EdgeSize>
				</Backdrop>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad>
				self:SetAlpha(0.4);
			</OnLoad>
		</Scripts>
	</Button>
	<Frame name="PVPTeamDataTemplate" virtual="true">
		<Size>
			<AbsDimension x="310" y="70"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<FontString name="$parentName" inherits="GameFontNormal" justifyH="LEFT">
					<Size>
						<AbsDimension x="150" y="12"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="15" y="-15"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentRatingLabel" inherits="GameFontDisable" text="ARENA_TEAM_RATING" justifyH="RIGHT">
					<Size>
						<AbsDimension x="95" y="12"/>
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT">
							<Offset>
								<AbsDimension x="-53" y="-15"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentRating" inherits="GameFontNormalSmall" justifyH="LEFT">
					<Size>
						<AbsDimension x="50" y="12"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentRatingLabel" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="2" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<Texture file="Interface\PVPFrame\UI-Character-PVP-Elements">
					<Size>
						<AbsDimension x="0" y="2"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentName" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="2" y="-5"/>
							</Offset>
						</Anchor>
						<Anchor point="RIGHT" x="-14" y="0"/>
					</Anchors>
					<TexCoords left="0" right="0.4140625" top="0.76171875" bottom="0.765625"/>
				</Texture>
				<FontString name="$parentGamesLabel" inherits="GameFontDisableSmall" text="GAMES" justifyH="CENTER">
					<Size>
						<AbsDimension x="55" y="0"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="-142" y="21"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentTypeLabel" inherits="GameFontHighlightSmall" text="ARENA_THIS_WEEK" justifyH="LEFT" justifyV="BOTTOM">
					<Size>
						<AbsDimension x="90" y="0"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="18" y="7"/>
					</Anchors>
				</FontString>
				<FontString name="$parentGames" inherits="GameFontHighlightSmall">
					<Anchors>
						<Anchor point="TOP" relativeTo="$parentGamesLabel">
							<Offset>
								<AbsDimension x="0" y="-15"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentWinLossLabel" inherits="GameFontDisableSmall" text="WIN_LOSS" justifyH="CENTER">
					<Size>
						<AbsDimension x="75" y="0"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentGamesLabel" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parent-" inherits="GameFontHighlightSmall" text=" - ">
					<Anchors>
						<Anchor point="TOP" relativeTo="$parentWinLossLabel">
							<Offset>
								<AbsDimension x="-2" y="-15"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentWins" inherits="GameFontHighlightSmall">
					<Anchors>
						<Anchor point="RIGHT" relativeTo="$parent-" relativePoint="LEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentLoss" inherits="GameFontHighlightSmall">
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parent-" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentPlayedLabel" inherits="GameFontDisableSmall" text="PLAYED" justifyH="CENTER">
					<Size>
						<AbsDimension x="67" y="0"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentWinLossLabel" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentPlayed" inherits="GameFontHighlightSmall">
					<Anchors>
						<Anchor point="TOP" relativeTo="$parentPlayedLabel">
							<Offset>
								<AbsDimension x="0" y="-15"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Frame>
	<Button name="PVPTeamMemberButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="320" y="18"/>
		</Size>
		<Layers> 		
			<Layer level="BACKGROUND">
				<Texture file="Interface\Buttons\UI-Listbox-Highlight2" alphaMode="ADD" hidden="true" parentKey="BG">
					<Color r="1" g="1" b="1" a="0.08"/>
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<Texture name="$parentClassIcon" file="Interface\Glues\CharacterCreate\UI-CharacterCreate-Classes" hidden="true" parentKey="classIcon">
					<Size x="16" y="16"/>
					<Anchors>
						<Anchor point="TOPLEFT"  x="3" y="-1"/>
					</Anchors>
					<Color r="1" g="1" b="1"/>
				</Texture>
				<FontString name="$parentNameText" inherits="GameFontNormalSmall" justifyH="LEFT">
					<Size x="98" y="14"/>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentClassIcon"  relativePoint="RIGHT" x="1" y="-1"/>
					</Anchors>
				</FontString>
				<FontString name="$parentPlayedText" inherits="GameFontNormalSmall" justifyH="CENTER">
					<Size x="45" y="14"/>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentNameText" relativePoint="RIGHT">
							<Offset x="20" y="0"/>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentWinLossText" inherits="GameFontNormalSmall" justifyH="CENTER">
					<Size x="72" y="14"/>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentPlayedText" relativePoint="RIGHT">
							<Offset x="4" y="0"/>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentRatingText" inherits="GameFontNormalSmall" justifyH="CENTER">
					<Size x="54" y="14"/>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentWinLossText" relativePoint="RIGHT">
							<Offset x="4" y="0"/>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
			<Layer level="OVERLAY">
				<Texture name="$parentCaptainIcon" file="Interface\GroupFrame\UI-Group-LeaderIcon" hidden="true" parentKey="leaderIcon">
					<Size x="16" y="16"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentNameText"  relativePoint="TOPRIGHT" x="0" y="0"/>
					</Anchors>
					<Color r="1" g="1" b="1"/>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				self:RegisterForClicks("LeftButtonUp", "RightButtonUp");
			</OnLoad>
			<OnClick>			
				local parent = self:GetParent()
				if ( button == "LeftButton" ) then
					parent.previousSelectedTeamMember = parent.selectedTeamMember;
					parent.selectedTeamMember = self.playerIndex;
					SetArenaTeamRosterSelection(parent.selectedTeam:GetID(), parent.selectedTeamMember);
					PVPTeamManagementFrame_UpdateTeamInfo(self:GetParent())
				else
					local name, rank, level, class, online = GetArenaTeamRosterInfo(parent.selectedTeam:GetID(), self.playerIndex);
					_G[parent:GetName().."_ShowDropdown"](name, online);
				end
				PlaySound("igMainMenuOptionCheckBoxOn");
			</OnClick>
		</Scripts>
		<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/>
	</Button>
	<Button name="PVPTeamDetailsFrameColumnHeaderTemplate" virtual="true">
		<Size>
			<AbsDimension x="10" y="19"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentLeft" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
					<Size>
						<AbsDimension x="5" y="19"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT"/>
					</Anchors>
					<TexCoords left="0" right="0.078125" top="0" bottom="0.75"/>
				</Texture>
				<Texture name="$parentMiddle" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
					<Size>
						<AbsDimension x="53" y="19"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
					</Anchors>
					<TexCoords left="0.078125" right="0.90625" top="0" bottom="0.75"/>
				</Texture>
				<Texture name="$parentRight" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
					<Size>
						<AbsDimension x="4" y="19"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
					</Anchors>
					<TexCoords left="0.90625" right="0.96875" top="0" bottom="0.75"/>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnClick>
				if ( self.sortType ) then
					SortArenaTeamRoster(self.sortType);
				end
				PlaySound("igMainMenuOptionCheckBoxOn");
			</OnClick>
		</Scripts>
		<ButtonText>
			<Anchors>
				<Anchor point="CENTER" relativeTo="$parentMiddle">
					<Offset>
						<AbsDimension x="0" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
		</ButtonText>
		<NormalFont style="GameFontHighlightSmall"/>
		<HighlightTexture name="$parentHighlightTexture" file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parentLeft">
					<Offset>
						<AbsDimension x="-2" y="5"/>
					</Offset>
				</Anchor>
				<Anchor point="BOTTOMRIGHT" relativeTo="$parentRight">
					<Offset>
						<AbsDimension x="2" y="-7"/>
					</Offset>
				</Anchor>
			</Anchors>
		</HighlightTexture>
	</Button>	
	<Button name="PVPBattlegroundButtonTemplate" virtual="true">
		<Size x="295" y="16"/>
		<Frames>
			<Button name="ThumbsDown" parentKey="ThumbsDown" frameStrata="HIGH" virtual="true">
				<Size x="16" y="16"/>
				<Anchors>
					<Anchor point="RIGHT" x="-5" y="0"/>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture parentKey="texture">
							<Size x="16" y="16"/>
							<Anchors>
								<Anchor point="CENTER"/>
							</Anchors>
						</Texture>
					</Layer>
					<Layer level="OVERLAY">
						<FontString name="$holiday" inherits="GameFontNormalLeft" justifyH="RIGHT" parentKey="holiday">
							<Size x="98" y="14"/>
							<Anchors>
								<Anchor point="RIGHT" relativeKey="$parent.texture" relativePoint="LEFT" x="-2"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnClick function="PVPHonor_ThumbsDownClicked"/>
					<OnEnter function="PVPHonor_ThumbsDownEnter"/>
					<OnLeave function="PVPHonor_ThumbsDownLeave"/>
				</Scripts>    
			</Button>
			<Frame parentKey="status">
				<Size x="16" y="16"/>
				<Anchors>
					<Anchor point="LEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture parentKey="texture">
							<Size x="21" y="21"/>
							<Anchors>
								<Anchor point="CENTER"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
			</Frame>
		</Frames>
		<HighlightTexture name="$parentHighlight" file="Interface\Buttons\UI-Listbox-Highlight2" alphaMode="ADD" parentKey="highlight">
			<Color r="1.0" g="0.82" b="0" />
		</HighlightTexture>
		<ButtonText name="$parentText" parentKey="title">
			<Size>
				<AbsDimension x="0" y="0"/>
			</Size>
			<Anchors>
				<Anchor point="LEFT">
					<Offset>
						<AbsDimension x="20" y="1"/>
					</Offset>
				</Anchor>
			</Anchors>
		</ButtonText>
		<NormalFont style="GameFontNormalLeft"/>
		<HighlightFont style="GameFontHighlightLeft"/>
	</Button>
	<Button name="PVPArenaTeamFlagTemplate" virtual="true">
		<Size x="112" y="114"/>	
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentBanner" file="Interface\PVPFrame\PVP-Banner-2">
					<Size>
						<AbsDimension x="49" y="98"/>
					</Size>
					<Anchors>
						<Anchor point="TOP" x="2" y="-29"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<Texture name="$parentGlowBG" parentKey="Glow" file="Interface\PVPFrame\PVP-Conquest-Misc" hidden="true" alphaMode="ADD">
					<Size x="112" y="114"/>	
					<TexCoords left="0.63867188" right="0.74804688" top="0.37695313" bottom="0.59960938"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentHeader" parentKey="NormalHeader" file="Interface\PVPFrame\PVP-Conquest-Misc">
					<Size x="85" y="32"/>	
					<Anchors>
						<Anchor point="TOP" y="-1"/>
					</Anchors>
					<TexCoords left="0.00097656" right="0.08398438" top="0.93359375" bottom="0.99609375"/>			
				</Texture>
				<Texture name="$parentHeaderSelected" parentKey="GlowHeader" file="Interface\PVPFrame\PVP-Conquest-Misc" hidden="true">
					<Size x="85" y="32"/>	
					<Anchors>
						<Anchor point="TOP" y="-1"/>
					</Anchors>
					<TexCoords left="0.08593750" right="0.16894531" top="0.93359375" bottom="0.99609375"/>			
				</Texture>
				<Texture name="$parentBorder">
					<Size>
						<AbsDimension x="49" y="98"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER" relativeTo="$parentBanner" relativePoint="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture name="$parentEmblem">
					<Size>
						<AbsDimension x="26" y="26"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER" relativeTo="$parentBorder" relativePoint="CENTER">
							<Offset>
								<AbsDimension x="-5" y="17"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="$parentTitle" parentKey="title"  inherits="GameFontHighlight" justifyH="CENTER" text="ARENA_2V2">
					<Size>
						<AbsDimension x="0" y="0"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER" relativeTo="$parentHeader" y="0"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<HitRectInsets>
			<AbsInset left="30" right="40" top="29" bottom="6"/>
		</HitRectInsets>
		<HighlightTexture file="Interface\PVPFrame\PVP-Banner-2" alphaMode="ADD">
			<Size>
				<AbsDimension x="47" y="96"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parentBanner">
					<Offset>
						<AbsDimension x="1" y="-1"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Color r="1.0" g="1.0" b="0.0" a="0.3"/>
		</HighlightTexture>
		<PushedTexture file="Interface\PVPFrame\PVP-Banner-2" alphaMode="ADD">
			<Size>
				<AbsDimension x="47" y="96"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parentBanner">
					<Offset>
						<AbsDimension x="1" y="-1"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Color r="0.2" g="0.2" b="1.0" a="0.8"/>
		</PushedTexture>	
	</Button>
	<Button name="WarGameButtonTemplate" virtual="true">
		<Size x="300" y="16"/>
		<Frames>
			<Button name="$parentHeader" parentKey="header" hidden="true">
				<Size x="300" y="16"/>
				<Anchors>
					<Anchor point="TOPLEFT"/>
				</Anchors>
				<NormalTexture file="Interface\Buttons\UI-MinusButton-UP" parentKey="normalTexture">
					<Size>
						<AbsDimension x="16" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="3" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</NormalTexture>
				<HighlightTexture name="$parentHighlight" file="Interface\Buttons\UI-PlusButton-Hilight" alphaMode="ADD" parentKey="highlightTexture">
					<Size>
						<AbsDimension x="16" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="3" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</HighlightTexture>
				<ButtonText name="$parentNormalText" parentKey="name">
					<Size>
						<AbsDimension x="0" y="10"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="20" y="0"/>
							</Offset>
						</Anchor>
					</Anchors> 
				</ButtonText>
				<NormalFont style="GameFontNormalLeft"/>
				<HighlightFont style="GameFontHighlightLeft"/>
				<DisabledFont style="GameFontHighlightLeft"/>
				<Scripts>
					<OnClick function="WarGameButtonHeader_OnClick"/>
				</Scripts>
			</Button>
			<Button name="$parentWarGame" parentKey="warGame" hidden="true">
				<Size x="300" y="40"/>
				<Anchors>
					<Anchor point="TOPLEFT"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentBg">
							<Anchors>
								<Anchor point="TOPLEFT" x="3" y="-1"/>
								<Anchor point="BOTTOMRIGHT" x="-3" y="2"/>
							</Anchors>
							<Color r="0.95" g="0.95" b="1" a="0.09"/>
						</Texture>
					</Layer>
					<Layer level="BORDER">
						<Texture parentKey="selectedTex" file="Interface\ClassTrainerFrame\TrainerTextures" hidden="true" alphaMode="ADD">
							<Anchors>
								<Anchor point="TOPLEFT" x="2" y="0"/>
								<Anchor point="BOTTOMRIGHT" x="-2" y="1"/>
							</Anchors>
							<TexCoords left="0.00195313" right="0.57421875" top="0.84960938" bottom="0.94140625"/>
						</Texture>
					</Layer>
					<Layer level="ARTWORK">
						<Texture name="$parentIcon" parentKey="icon">
							<Size x="32" y="32"/>
							<Anchors>
								<Anchor point="TOPLEFT" x="6" y="-3"/>
							</Anchors>
						</Texture>
						<FontString name="$parentSize" parentKey="size" inherits="GameFontNormal">
							<Anchors>
								<Anchor point="TOPRIGHT" x="-8" y="-8"/>
							</Anchors>
						</FontString>
						<FontString name="$parentMinSize" parentKey="minSize" inherits="GameFontDisableSmall">
							<Anchors>
								<Anchor point="TOPRIGHT" relativeTo="$parentSize" relativePoint="BOTTOMRIGHT" x="0" y="-2"/>
							</Anchors>
						</FontString>
						<FontString name="$parentName" parentKey="name" inherits="GameFontNormal" justifyH="LEFT">
							<Size x="160" y="40"/>
							<Anchors>
								<Anchor point="LEFT" x="44" y="0"/>
							</Anchors>
						</FontString>
					</Layer>
					<Layer level="ARTWORK" textureSubLevel="1">
						<Texture name="$parentBorder" file="Interface\PVPFrame\SilverIconBorder">
							<Size x="48" y="48"/>
							<Anchors>
								<Anchor point="TOPLEFT" x="-2" y="5"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnEnter function="WarGameButton_OnEnter"/>
					<OnLeave function="WarGameButton_OnLeave"/>
					<OnClick function="WarGameButton_OnClick"/>
				</Scripts>
				<HighlightTexture name="$parentHighlight" file="Interface\ClassTrainerFrame\TrainerTextures" alphaMode="ADD">
					<Anchors>
						<Anchor point="TOPLEFT" x="2" y="0"/>
						<Anchor point="BOTTOMRIGHT" x="-2" y="1"/>
					</Anchors>
					<TexCoords left="0.00195313" right="0.57421875" top="0.75390625" bottom="0.84570313"/>
				</HighlightTexture>
			</Button>
		</Frames>
	</Button>
</Ui>