<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">
	<Script file="ArenaRegistrarFrame.lua"/>
	<Frame name="PVPBannerFrameCustomizeTemplate" virtual="true">
		<Size>
			<AbsDimension x="164" y="20"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentMiddle" file="Interface\Glues\CharacterCreate\CharacterCreate-LabelFrame">
					<Size>
						<AbsDimension x="95" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="17"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.1953125" right="0.8046875" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentLeft" file="Interface\Glues\CharacterCreate\CharacterCreate-LabelFrame">
					<Size>
						<AbsDimension x="25" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT" relativeTo="$parentMiddle" relativePoint="LEFT"/>
					</Anchors>
					<TexCoords left="0" right="0.1953125" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentRight" file="Interface\Glues\CharacterCreate\CharacterCreate-LabelFrame">
					<Size>
						<AbsDimension x="25" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
					</Anchors>
					<TexCoords left="0.8046875" right="1" top="0" bottom="1"/>
				</Texture>
				<FontString name="$parentText" inherits="GameFontHighlightSmall">
					<Size>
						<AbsDimension x="85" y="10"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER" relativeTo="$parentMiddle">
							<Offset>
								<AbsDimension x="0" y="2"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button name="$parentLeftButton">
				<Size>
					<AbsDimension x="32" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="RIGHT" relativeTo="$parentLeft" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="21" y="2"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						PVPBannerCustomization_Left(self, button, down);
					</OnClick>
				</Scripts>
				<NormalTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Up"/>
				<PushedTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Down"/>
				<DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Disabled"/>
				<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
			</Button>
			<Button name="$parentRightButton">
				<Size>
					<AbsDimension x="32" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentRight" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="-19" y="2"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						PVPBannerCustomization_Right(self, button, down);
					</OnClick>
				</Scripts>
				<NormalTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Up"/>
				<PushedTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Down"/>
				<DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Disabled"/>
				<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
			</Button>
		</Frames>
	</Frame>
	<Frame name="PVPBannerFrame" inherits="ButtonFrameTemplate" enableMouse="true" hidden="true" toplevel="true" parent="UIParent" frameStrata="HIGH">
		<Layers>
			<Layer level="BACKGROUND" textureSubLevel="2">
				<Texture name="PVPBannerFrameBackground" file="Interface\TabardFrame\TabardFrameBackground" hidden="false">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="PVPBannerFrameInsetBg"/>
						<Anchor point="BOTTOMRIGHT" relativeTo="PVPBannerFrameInsetBg"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="BACKGROUND" textureSubLevel="3">
				<Texture name="PVPBannerFrameOuterFrameTopLeft" file="Interface\TabardFrame\TabardFrameOuterFrame">
					<Size>
						<AbsDimension x="20" y="39"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="PVPBannerFrameBackground" x="2" y="-2"/>
					</Anchors>
					<TexCoords left="0.109375" right="0.1875" top="0" bottom="0.3046875"/>
				</Texture>
				<Texture name="PVPBannerFrameOuterFrameTop" file="Interface\TabardFrame\TabardFrameOuterFrame">
					<Size>
						<AbsDimension x="283" y="6"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="PVPBannerFrameOuterFrameTopLeft" relativePoint="TOPRIGHT"/>
					</Anchors>
					<TexCoords left="0.1875" right="0.8828125" top="0" bottom="0.046875"/>
				</Texture>
				<Texture name="PVPBannerFrameOuterFrameTopRight" file="Interface\TabardFrame\TabardFrameOuterFrame">
					<Size>
						<AbsDimension x="20" y="39"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="PVPBannerFrameOuterFrameTop" relativePoint="TOPRIGHT"/>
					</Anchors>
					<TexCoords left="0.8828125" right="0.9609375" top="0" bottom="0.3046875"/>
				</Texture>
				<Texture name="PVPBannerFrameOuterFrameLeftTop" file="Interface\TabardFrame\TabardFrameOuterFrame">
					<Size>
						<AbsDimension x="7" y="128"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="PVPBannerFrameOuterFrameTopLeft" relativePoint="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords left="0" right="0.02734375" top="0" bottom="1"/>
				</Texture>
				<Texture name="PVPBannerFrameOuterFrameLeftBottom" file="Interface\TabardFrame\TabardFrameOuterFrame">
					<Size>
						<AbsDimension x="7" y="128"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="PVPBannerFrameOuterFrameLeftTop" relativePoint="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords left="0.02734375" right="0.0546875" top="0" bottom="1"/>
				</Texture>
				<Texture name="PVPBannerFrameOuterFrameRightTop" file="Interface\TabardFrame\TabardFrameOuterFrame">
					<Size>
						<AbsDimension x="7" y="128"/>
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="PVPBannerFrameOuterFrameTopRight" relativePoint="BOTTOMRIGHT"/>
					</Anchors>
					<TexCoords left="0.0546875" right="0.08203125" top="0" bottom="1"/>
				</Texture>
				<Texture name="PVPBannerFrameOuterFrameRightBottom" file="Interface\TabardFrame\TabardFrameOuterFrame">
					<Size>
						<AbsDimension x="7" y="128"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="PVPBannerFrameOuterFrameRightTop" relativePoint="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords left="0.08203125" right="0.109375" top="0" bottom="1"/>
				</Texture>
				<Texture name="PVPBannerFrameOuterFrameBottomLeft" file="Interface\TabardFrame\TabardFrameOuterFrame">
					<Size>
						<AbsDimension x="20" y="39"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="PVPBannerFrameOuterFrameLeftBottom" relativePoint="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords left="0.109375" right="0.1875" top="0.3046875" bottom="0.6171875"/>
				</Texture>
				<Texture name="PVPBannerFrameOuterFrameBottom" file="Interface\TabardFrame\TabardFrameOuterFrame">
					<Size>
						<AbsDimension x="283" y="8"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativeTo="PVPBannerFrameOuterFrameBottomLeft" relativePoint="BOTTOMRIGHT"/>
					</Anchors>
					<TexCoords left="0.1875" right="0.8828125" top="0.5546875" bottom="0.6171875"/>
				</Texture>
				<Texture name="PVPBannerFrameOuterFrameBottomRight" file="Interface\TabardFrame\TabardFrameOuterFrame">
					<Size>
						<AbsDimension x="20" y="39"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativeTo="PVPBannerFrameOuterFrameBottom" relativePoint="BOTTOMRIGHT"/>
					</Anchors>
					<TexCoords left="0.8828125" right="0.9609375" top="0.3046875" bottom="0.6171875"/>
				</Texture>				
			</Layer>
			<Layer level="OVERLAY">
				<Texture name="PVPBannerFrameEmblemTopRight" alphaMode="ADD">
					<Size>
						<AbsDimension x="128" y="128"/>
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="PVPBannerFrameOuterFrameTopRight">
							<Offset>
								<AbsDimension x="35" y="20"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="0.5" top="0" bottom="1"/>
				</Texture>
				<Texture name="PVPBannerFrameEmblemBottomRight" alphaMode="ADD">
					<Size>
						<AbsDimension x="128" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOP" relativeTo="PVPBannerFrameEmblemTopRight" relativePoint="BOTTOM"/>
					</Anchors>
					<TexCoords left="0" right="0.5" top="0" bottom="1"/>
				</Texture>
				<Texture name="PVPBannerFrameEmblemTopLeft" alphaMode="ADD">
					<Size>
						<AbsDimension x="128" y="128"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT" relativeTo="PVPBannerFrameEmblemTopRight" relativePoint="LEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.5" right="0" top="0" bottom="1"/>
				</Texture>
				<Texture name="PVPBannerFrameEmblemBottomLeft" alphaMode="ADD">
					<Size>
						<AbsDimension x="128" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOP" relativeTo="PVPBannerFrameEmblemTopLeft" relativePoint="BOTTOM"/>
					</Anchors>
					<TexCoords left="0.5" right="0" top="0" bottom="1"/>
				</Texture>
				<FontString name="PVPBannerFrameNameText" inherits="GameFontNormal">
					<Size>
						<AbsDimension x="109" y="16"/>
					</Size>
					<Anchors>
						 <Anchor point="CENTER">
							<Offset>
								<AbsDimension x="6" y="232"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="PVPBannerFrameGreetingText" inherits="GameFontHighlightMedium" text="ARENA_BANNER_VENDOR_GREETING">
					<Size>
						<AbsDimension x="290" y="0"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="PVPBannerFrame">
							<Offset>
								<AbsDimension x="16" y="-80"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentEnterNameText" inherits="GameFontHighlightMedium" text="ARENA_ENTER_TEAM_NAME"  justifyH="LEFT" >
					<Size>
						<AbsDimension x="105" y="12"/>
					</Size>
					<Anchors>
						<Anchor point="TOP" relativeTo="PVPBannerFrame">
							<Offset>
								<AbsDimension x="-55" y="-37"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<EditBox name="$parentEditBox" inherits="InputBoxTemplate" letters="23" historyLines="1" autoFocus="false" parentKey="teamName">
				<Size x="140" y="32"/>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentEnterNameText" relativePoint="RIGHT" x="4" y="0"/>
				</Anchors>
				<Scripts>
					<OnEnterPressed>
						self:ClearFocus();
					</OnEnterPressed>
					<OnEscapePressed>
						self:ClearFocus();
					</OnEscapePressed>
				</Scripts>
			</EditBox>
			<Frame name="PVPBannerFrameStandard">
				<Size x="128" y="256"/>
				<Anchors>
					<Anchor point="LEFT" relativeTo="PVPBannerFrame" x="30" y="-60"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentBanner" file="Interface\PVPFrame\PVP-Banner-2">
							<Size x="128" y="256"/>
							<Anchors>
								<Anchor point="LEFT" x="0" y="0"/>
							</Anchors>
						</Texture>
						<Texture name="$parentEmblemWatermark">
							<Size x="128" y="128"/>
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentBanner" relativePoint="RIGHT" x="20" y="85"/>
							</Anchors>
						</Texture>
					</Layer>
					<Layer level="BORDER">
						<Texture name="$parentBorder">
							<Size x="128" y="256"/>
							<Anchors>
								<Anchor point="LEFT" x="0" y="0"/>
							</Anchors>
						</Texture>
					</Layer>
					<Layer level="ARTWORK">
						<Texture name="$parentEmblem">
							<Size x="70" y="70"/>
							<Anchors>
								<Anchor point="CENTER" relativeTo="$parentBanner" x="-17" y="55"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
			</Frame>
			<Frame name="PVPBannerFrameCustomizationFrame">
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="PVPBannerFrameCustomizationBorder" file="Interface\TabardFrame\TabardFrameCustomizationFrame">
							<Size x="256" y="256"/>
							<Anchors>
								<Anchor point="BOTTOMRIGHT" relativeTo="PVPBannerFrame" x="27" y="-27"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Frames>
					<Frame name="PVPBannerFrameCustomization1" inherits="PVPBannerFrameCustomizeTemplate" id="1">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="PVPBannerFrameCustomizationBorder" relativePoint="TOPLEFT" x="48" y="-65"/>
						</Anchors>
						<Scripts>
							<OnLoad>
								PVPBannerFrameCustomization1Text:SetText(EMBLEM_SYMBOL);
							</OnLoad>
						</Scripts>
					</Frame>
					<Frame name="PVPBannerFrameCustomization2" inherits="PVPBannerFrameCustomizeTemplate" id="2">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="PVPBannerFrameCustomization1" relativePoint="BOTTOMLEFT" x="0" y="-5"/>
						</Anchors>
						<Scripts>
							<OnLoad>
								PVPBannerFrameCustomization2Text:SetText(EMBLEM_BORDER);
							</OnLoad>
						</Scripts>
					</Frame>
					<Button name="PVPColorPickerButton1" inherits="GameMenuButtonTemplate" text="EMBLEM_SYMBOL_COLOR">
						<Size x="115" y="25"/>
						<Anchors>
							<Anchor point="TOP" relativeTo="PVPBannerFrameCustomization2" relativePoint="BOTTOM" x="0" y="-7"/>
						</Anchors>
						<Scripts>
							<OnClick>
								PlaySound("igMainMenuOptionCheckBoxOn");
								PVPBannerFrame_OpenColorPicker(self, PVPBannerFrameStandardEmblem);
							</OnClick>
						</Scripts>
					</Button>
					<Button name="PVPColorPickerButton2" inherits="GameMenuButtonTemplate" text="EMBLEM_BORDER_COLOR">
						<Size x="115" y="25"/>
						<Anchors>
							<Anchor point="TOP" relativeTo="PVPBannerFrameCustomization2" relativePoint="BOTTOM" x="0" y="-31"/>
						</Anchors>
						<Scripts>
							<OnClick>
								PlaySound("igMainMenuOptionCheckBoxOn");
								PVPBannerFrame_OpenColorPicker(self, PVPBannerFrameStandardBorder);
							</OnClick>
						</Scripts>
					</Button>
					<Button name="PVPColorPickerButton3" inherits="GameMenuButtonTemplate" text="EMBLEM_BACKGROUND">
						<Size x="115" y="25"/>
						<Anchors>
							<Anchor point="TOP" relativeTo="PVPBannerFrameCustomization2" relativePoint="BOTTOM" x="0" y="-55"/>
						</Anchors>
						<Scripts>
							<OnClick>
								PlaySound("igMainMenuOptionCheckBoxOn");
								PVPBannerFrame_OpenColorPicker(self, PVPBannerFrameStandardBanner);
							</OnClick>
						</Scripts>
					</Button>
					<Button name="PVPBannerFrameCancelButton" inherits="UIPanelButtonTemplate" text="CLOSE">
						<Size x="80" y="22"/>
						<Anchors>
							<Anchor point="CENTER" relativePoint="TOPLEFT" x="305" y="-422"/>
						</Anchors>
						<Scripts>
							<OnLoad function="RaiseFrameLevel"/>
							<OnClick function="HideParentPanel"/>
						</Scripts>
					</Button>
					<Button name="PVPBannerFrameSaveButton" inherits="UIPanelButtonTemplate" text="SAVE">
						<Size x="80" y="22"/>
						<Anchors>
							<Anchor point="CENTER" relativePoint="TOPLEFT" x="305" y="-422"/>
						</Anchors>
						<Scripts>
							<OnClick function=""/>
						</Scripts>
					</Button>
				</Frames>
			</Frame>
			<Button name="PVPBannerFrameCancelButton" inherits="MagicButtonTemplate" text="CANCEL">
				<Size x="80" y="22"/>
				<Anchors>
					<Anchor point="BOTTOMRIGHT"/>
				</Anchors>
				<Scripts>
					<OnClick function="HideParentPanel"/>	
				</Scripts>
			</Button>
			<Button name="PVPBannerFrameAcceptButton" inherits="MagicButtonTemplate" text="CREATE_ARENA_TEAM">
				<Size x="80" y="22"/>
				<Anchors>
					<Anchor point="BOTTOMLEFT"/>
				</Anchors>
				<Scripts>
					<OnClick function="PVPBannerFrame_SaveBanner"/>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnShow function="PVPBannerFrame_OnShow"/>
			<OnHide>
				PlaySound("igCharacterInfoClose");
				HideUIPanel(ColorPickerFrame);
			</OnHide>
	</Scripts>
	</Frame>
</Ui>