<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="Blizzard_GuildUI.lua"/>
<!--
*******************************************************************************
	Templates
*******************************************************************************
-->
	<Frame name="GuildProgressBarTemplate" virtual="true">
		<Size>
			<AbsDimension x="264" y="20"/>
		</Size>
		<Layers>
			<Layer level="BORDER">
				<Texture name="$parentLeft" file="Interface\GuildFrame\GuildFrame">
					<Size x="18" y="18"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT" x="0" y="0"/>
					</Anchors>
					<TexCoords left="0.60742188" right="0.62500000" top="0.78710938" bottom="0.82226563"/>
				</Texture>
				<Texture name="$parentRight" file="Interface\GuildFrame\GuildFrame">
					<Size x="18" y="18"/>
					<Anchors>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
					</Anchors>
					<TexCoords left="0.60742188" right="0.62500000" top="0.82617188" bottom="0.86132813"/>
				</Texture>
				<Texture name="$parentMiddle" file="Interface\GuildFrame\GuildFrame">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentLeft" relativePoint="TOPRIGHT" x="0" y="0"/>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parentRight" relativePoint="BOTTOMLEFT" x="0" y="0"/>
					</Anchors>
					<TexCoords left="0.60742188" right="0.62500000" top="0.74804688" bottom="0.78320313"/>
				</Texture>
			</Layer>
			<Layer level="BACKGROUND">
				<Texture name="$parentBG" file="Interface\GuildFrame\GuildFrame">
					<Size x="0" y="14"/>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="LEFT" x="0" y="0"/>
						<Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="RIGHT" x="0" y="0"/>
					</Anchors>
					<TexCoords left="0.39843750" right="0.41210938" top="0.96875000" bottom="0.99609375"/>
				</Texture>
			</Layer>
			<Layer level="BACKGROUND" textureSubLevel="1">
				<Texture name="$parentProgress" file="Interface\TargetingFrame\UI-StatusBar" parentKey="progress">
					<Size x="1" y="14"/>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="LEFT" x="1" y="0"/>
					</Anchors>
					<Color r="0.224" g="0.396" b="0.839"/>
				</Texture>
				<Texture name="$parentShadow" file="Interface\GuildFrame\GuildFrame" parentKey="shadow">
					<Size x="9" y="14"/>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentProgress" relativePoint="RIGHT" x="0" y="0"/>
					</Anchors>
					<TexCoords left="0.41601563" right="0.42480469" top="0.88671875" bottom="0.91406250"/>
				</Texture>
				<Texture name="$parentCap" file="Interface\TargetingFrame\UI-StatusBar" hidden="true" parentKey="cap">
					<Size x="20" y="14"/>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentProgress" relativePoint="RIGHT" x="0" y="0"/>
					</Anchors>
					<Color r="0" g="0.245" b="0.094" a="0.5"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentCapMarker" file="Interface\GuildFrame\GuildFrame" hidden="true" parentKey="capMarker">
					<Size x="9" y="20"/>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentCap" relativePoint="RIGHT" x="-4" y="0"/>
					</Anchors>
					<TexCoords left="0.38378906" right="0.39257813" top="0.95898438" bottom="0.99804688"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK" textureSubLevel="1">
				<FontString name="$parentText" inherits="GameFontHighlightSmall">
					<Anchors>
						<Anchor point="BOTTOM" x="0" y="4"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Frame>
	
	<Button name="GuildPerksButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="314" y="44"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentLeft" file="Interface\GuildFrame\GuildFrame">
					<Size x="16" y="40"/>
					<Anchors>
						<Anchor point="LEFT" x="44" y="0"/>
					</Anchors>
					<TexCoords left="0.48144531" right="0.49707031" top="0.88281250" bottom="0.96093750"/>
				</Texture>
				<Texture name="$parentRight" file="Interface\GuildFrame\GuildFrame">
					<Size x="16" y="40"/>
					<Anchors>
						<Anchor point="RIGHT" x="0" y="0"/>
					</Anchors>
					<TexCoords left="0.44628906" right="0.46191406" top="0.88281250" bottom="0.96093750"/>
				</Texture>
				<Texture file="Interface\GuildFrame\GuildFrame">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentLeft" relativePoint="TOPRIGHT"/>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parentRight" relativePoint="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords left="0.46386719" right="0.47949219" top="0.88281250" bottom="0.96093750"/>
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<Texture file="Interface\GuildFrame\GuildFrame">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentDisabledLeft" relativePoint="TOPRIGHT"/>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parentDisabledRight" relativePoint="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords left="0.49902344" right="0.51464844" top="0.88281250" bottom="0.96093750"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentIconTexture" parentKey="icon">
					<Size>
						<AbsDimension x="39" y="39"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="$parentName" inherits="GameFontHighlight" justifyH="LEFT" parentKey="name">
					<Size>
						<AbsDimension x="0" y="36"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentLeft" x="6" y="0"/>
						<Anchor point="RIGHT" x="-12" y="0"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Frame parentKey="normalBorder" setAllPoints="true" hidden="true">
				<Layers>
					<Layer level="BORDER">
						<Texture name="$parentLeft" file="Interface\GuildFrame\GuildFrame">
							<Size x="16" y="40"/>
							<Anchors>
								<Anchor point="LEFT" x="44" y="0"/>
							</Anchors>
							<TexCoords left="0.48144531" right="0.49707031" top="0.88281250" bottom="0.96093750"/>
						</Texture>
						<Texture name="$parentRight" file="Interface\GuildFrame\GuildFrame">
							<Size x="16" y="40"/>
							<Anchors>
								<Anchor point="RIGHT" x="-20" y="0"/>
							</Anchors>
							<TexCoords left="0.44628906" right="0.46191406" top="0.88281250" bottom="0.96093750"/>
						</Texture>
						<Texture file="Interface\GuildFrame\GuildFrame">
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parentLeft" relativePoint="TOPRIGHT"/>
								<Anchor point="BOTTOMRIGHT" relativeTo="$parentRight" relativePoint="BOTTOMLEFT"/>
							</Anchors>
							<TexCoords left="0.46386719" right="0.47949219" top="0.88281250" bottom="0.96093750"/>
						</Texture>
					</Layer>
				</Layers>
			</Frame>
			<Frame parentKey="disabledBorder" setAllPoints="true" hidden="true">
				<Layers>
					<Layer level="BORDER">
						<Texture name="$parentLeft" file="Interface\GuildFrame\GuildFrame">
							<Size x="16" y="40"/>
							<Anchors>
								<Anchor point="LEFT" x="44" y="0"/>
							</Anchors>
							<TexCoords left="0.42871094" right="0.44433594" top="0.88281250" bottom="0.96093750"/>
						</Texture>		
						<Texture name="$parentRight" file="Interface\GuildFrame\GuildFrame">
							<Size x="16" y="40"/>
							<Anchors>
								<Anchor point="RIGHT" x="-20" y="0"/>
							</Anchors>
							<TexCoords left="0.39843750" right="0.41406250" top="0.88671875" bottom="0.96484375"/>
						</Texture>		
						<Texture file="Interface\GuildFrame\GuildFrame">
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parentLeft" relativePoint="TOPRIGHT"/>
								<Anchor point="BOTTOMRIGHT" relativeTo="$parentRight" relativePoint="BOTTOMLEFT"/>
							</Anchors>
							<TexCoords left="0.49902344" right="0.51464844" top="0.88281250" bottom="0.96093750"/>
						</Texture>
					</Layer>
				</Layers>
			</Frame>
		</Frames>
		<Scripts>
			<OnEnter function="GuildPerksButton_OnEnter"/>
			<OnLeave>
				GuildPerksContainer.activeButton = nil;
				GameTooltip:Hide();
			</OnLeave>
			<OnClick>
				if ( IsModifiedClick("CHATLINK") ) then
					GuildFrame_LinkItem(_, _, GetSpellLink(self.spellID));
				end
			</OnClick>
		</Scripts>
	</Button>
	<Button name="GuildFrameColumnHeaderTemplate" virtual="true">
		<Size>
			<AbsDimension x="10" y="24"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentLeft" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
					<Size>
						<AbsDimension x="5" y="24"/>
					</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="24"/>
					</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="24"/>
					</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
					SortGuildRoster(self.sortType);
					GuildRoster_Update();
				end				
				PlaySound("igMainMenuOptionCheckBoxOn");
			</OnClick>
		</Scripts>
		<ButtonText>
			<Anchors>
				<Anchor point="LEFT">
					<Offset>
						<AbsDimension x="8" 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="GuildNewsButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="298" y="18"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentHeader" file="Interface\GuildFrame\GuildFrame" parentKey="header" setAllPoints="true" hidden="true">
					<TexCoords left="0.63183594" right="0.94531250" top="0.57617188" bottom="0.61523438"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<FontString name="$parentText" inherits="GameFontHighlightSmall" justifyH="LEFT" wordwrap="false" parentKey="text">
					<Anchors>
						<Anchor point="LEFT" x="24" y="0"/>
						<Anchor point="RIGHT" x="-8" y="0"/>
					</Anchors>
				</FontString>
				<FontString name="$parentDash" inherits="GameFontHighlightSmall" text="QUEST_DASH" justifyH="RIGHT" hidden="true" parentKey="dash">
					<Anchors>
						<Anchor point="RIGHT" relativeTo="$parentText" relativePoint="LEFT" x="0" y="0"/>
					</Anchors>
				</FontString>
				<Texture name="$parentIcon" file="Interface\GuildFrame\GuildFrame" parentKey="icon">
					<Size x="13" y="11"/>
					<Anchors>
						<Anchor point="RIGHT" relativeTo="$parentText" relativePoint="LEFT" x="-4" y="0"/>
					</Anchors>
					<TexCoords left="0.41406250" right="0.42675781" top="0.96875000" bottom="0.99023438"/>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				self:RegisterForClicks("LeftButtonUp", "RightButtonUp");
			</OnLoad>
			<OnEnter>
				if ( not self.isEvent ) then
					GuildNewsButton_OnEnter(self);
				end
			</OnEnter>
			<OnClick>
				if ( self.isEvent ) then
					GuildEventButton_OnClick(self, button);
				else
					GuildNewsButton_OnClick(self, button);
				end
			</OnClick>
			<OnLeave>
				if ( not self.isEvent ) then
					GuildNewsButton_OnLeave(self);
				end
			</OnLeave>
		</Scripts>
		<HighlightTexture file="Interface\FriendsFrame\UI-FriendsFrame-HighlightBar-Blue" setAllPoints="true" alphaMode="ADD"/>
	</Button>
	<Button name="GuildFrameTabButtonTemplate" inherits="CharacterFrameTabButtonTemplate" virtual="true">
		<Scripts>
			<OnClick>
				GuildFrame_TabClicked(self);
				PanelTemplates_Tab_OnClick(self, GuildFrame);
				PlaySound("igCharacterInfoTab");
			</OnClick>
			<OnShow>
				PanelTemplates_TabResize(self, 0);
			</OnShow>
			<OnLeave function="GameTooltip_Hide"/>
		</Scripts>
	</Button>
<!--
*******************************************************************************
	Guild Frame
*******************************************************************************
-->
	<Frame name="GuildFrame" inherits="ButtonFrameTemplate" toplevel="true" parent="UIParent" enableMouse="true" hidden="true">	
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parentTabardBackground" file="Interface\GuildFrame\GuildFrame">
					<Size x="62" y="62"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="-7" y="8"/>
					</Anchors>
					<TexCoords left="0.63183594" right="0.69238281" top="0.61914063" bottom="0.74023438"/>
				</Texture>
				<FontString name="$parentMembersCount" inherits="GameFontHighlightSmall" text="1/1">
					<Anchors>
						<Anchor point="BOTTOMRIGHT" x="-14" y="8"/>
					</Anchors>
				</FontString>
				<FontString name="$parentMembersCountLabel" inherits="GameFontNormalSmall" text="GUILD_MEMBERS_ONLINE_COLON">
					<Anchors>
						<Anchor point="RIGHT" relativeTo="$parentMembersCount" relativePoint="LEFT" x="0" y="0"/>
					</Anchors>
				</FontString>
			</Layer>
			<Layer level="ARTWORK" textureSubLevel="1">
				<Texture name="$parentTabardEmblem" file="Interface\GuildFrame\GuildEmblemsLG_01">
					<Size x="64" y="64"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="-8" y="9"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK" textureSubLevel="2">
				<Texture name="$parentTabardBorder" file="Interface\GuildFrame\GuildFrame">
					<Size x="61" y="60"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="-6" y="7"/>
					</Anchors>
					<TexCoords left="0.63183594" right="0.69238281" top="0.74414063" bottom="0.86523438"/>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Frame parentKey="TitleMouseover">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentTitleText"/>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parentTitleText"/>
				</Anchors>
				<Scripts>
					<OnEnter>
						if (self.tooltip) then
							GameTooltip:SetOwner(self, "ANCHOR_CURSOR_RIGHT");
							GameTooltip:SetText(self.tooltip, HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
						end
					</OnEnter>
					<OnLeave function="GameTooltip_Hide"/>
				</Scripts>
			</Frame>
			<Button name="$parentTab1" inherits="GuildFrameTabButtonTemplate" id="1" text="GUILD_TAB_NEWS_ABBR">
				<Anchors>
					<!--This position is changed in some Localization files.-->
					<Anchor point="BOTTOMLEFT" x="11" y="-30"/>
				</Anchors>
				<Scripts>
					<OnEnter>
						GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
						GameTooltip:SetText(GUILD_TAB_NEWS, 1.0,1.0,1.0 );
					</OnEnter>
				</Scripts>
			</Button>
			<Button name="$parentTab2" inherits="GuildFrameTabButtonTemplate" id="2" text="GUILD_TAB_ROSTER_ABBR">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentTab1" relativePoint="RIGHT" x="-15" y="0"/>
				</Anchors>
				<Scripts>
					<OnEnter>
						GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
						GameTooltip:SetText(GUILD_TAB_ROSTER, 1.0,1.0,1.0 );
					</OnEnter>
				</Scripts>
			</Button>
            <Button name="$parentTab3" inherits="GuildFrameTabButtonTemplate" id="3" text="GUILD_TAB_PERKS_ABBR">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentTab2" relativePoint="RIGHT" x="-15" y="0"/>
				</Anchors>
				<Scripts>
					<OnEnter>
						GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
						GameTooltip:SetText(GUILD_TAB_PERKS, 1.0,1.0,1.0 );
					</OnEnter>
				</Scripts>
			</Button>
			<Button name="$parentTab4" inherits="GuildFrameTabButtonTemplate" id="4" text="GUILD_TAB_REWARDS_ABBR">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentTab3" relativePoint="RIGHT" x="-15" y="0"/>
				</Anchors>
				<Scripts>
					<OnEnter>
						GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
						GameTooltip:SetText(GUILD_TAB_REWARDS, 1.0,1.0,1.0 );
					</OnEnter>
				</Scripts>
			</Button>
			<Button name="$parentTab5" inherits="GuildFrameTabButtonTemplate" id="5" text="GUILD_TAB_INFO_ABBR">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentTab4" relativePoint="RIGHT" x="-15" y="0"/>
				</Anchors>
				<Scripts>
					<OnEnter>
						GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
						GameTooltip:SetText(GUILD_TAB_INFO, 1.0,1.0,1.0 );
					</OnEnter>
				</Scripts>
			</Button>
			<Frame name="$parentBottomInset" useParentLevel="true" inherits="InsetFrameTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentInset" relativePoint="BOTTOMLEFT" x="0" y="-3"/>
					<Anchor point="TOPRIGHT" relativeTo="$parentInset" relativePoint="BOTTOMRIGHT" x="0" y="-3"/>
					<Anchor point="BOTTOM" x="0" y="44"/>
				</Anchors>
			</Frame>
			<Frame name="GuildDropDown" inherits="UIDropDownMenuTemplate"/>
			<Frame name="GuildPointFrame">
				<Size x="264" y="30"/>
				<Anchors>
					<Anchor point="BOTTOM" relativeTo="GuildFrameInset" relativePoint="TOP" x="0" y="0"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture parentKey="LeftCap" atlas="PetJournal-PetBattleAchievementBG">
							<Size x="46" y="18"/>
							<Anchors>
								<Anchor point="LEFT" x="0" y="2"/>
							</Anchors>
							<Color r="1" g="1" b="1" a="1"/>
						</Texture>
					</Layer>
					<Layer level="OVERLAY">
						<Fontstring parentKey="SumText" inherits="GameFontNormalLarge" text="25">
							<Size x="0" y="28"/>
							<Anchors>
								<Anchor point="LEFT" relativeKey="$parent.LeftCap" relativePoint="RIGHT" x="4" y="0"/>
							</Anchors>
							<Size x="0" y="0"/>	
							<Color r="0" g="1" b="0"/>
						</Fontstring>
						<Texture parentKey="Icon" file="Interface\AchievementFrame\UI-Achievement-Shields-NoPoints">
							<Size x="28" y="28"/>
							<Anchors>
								<Anchor point="LEFT" relativeKey="$parent.SumText" relativePoint="RIGHT" x="4" y="-2"/>
							</Anchors>
							<TexCoords left="0" right=".5" top="0.5" bottom="1.0"/>
						</Texture>
					</Layer>
					<Layer level="BACKGROUND">
						<Texture parentKey="RightCap" atlas="PetJournal-PetBattleAchievementBG">
							<Size x="46" y="18"/>
							<Anchors>
								<Anchor point="LEFT" relativeKey="$parent.Icon" relativePoint="RIGHT" x="4" y="2"/>
							</Anchors>	
							<Color r="1" g="1" b="1" a="1"/>
							<TexCoords left="1.0" right="0" top="0" bottom="1.0"/>
						</Texture>
					</Layer>
				</Layers>
			</Frame>
			<Frame name="GuildFactionFrame">
				<Size>
					<AbsDimension x="170" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentBottomInset" relativePoint="BOTTOMLEFT" x="6" y="-21"/>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="$parentLabel" inherits="GameFontHighlightSmall" hidden="true">
							<Anchors>
								<Anchor point="CENTER" x="0" y="1"/>
							</Anchors>
						</FontString>
						<FontString name="$parentHeader" inherits="GameFontNormalSmall" text="GUILD_REPUTATION_COLON">
							<Anchors>
								<Anchor point="TOPLEFT" x="0" y="13"/>
							</Anchors>
						</FontString>
						<FontString name="$parentStanding" inherits="GameFontHighlightSmall">
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentHeader" relativePoint="RIGHT" x="2" y="0"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Frame name="GuildFactionBar" inherits="GuildProgressBarTemplate">
						<Size>
							<AbsDimension x="184" y="20"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT" x="-1" y="2"/>
						</Anchors>
						<Layers>
							<Layer level="OVERLAY">
								<FontString name="$parentLabel" inherits="GameFontHighlightSmall" hidden="true">
									<Anchors>
										<Anchor point="CENTER" x="0" y="-1"/>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
					</Frame>
				</Frames>
				<Scripts>
					<OnLoad>
						GuildFactionBar:SetScale(0.92);
					</OnLoad>
					<OnEnter function="GuildFactionBar_OnEnter"/>
					<OnLeave>
						GuildFactionBarLabel:Hide();
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Frame>		
			<Button name="GuildNameChangeAlertFrame" inherits="GlowBoxTemplate" parentKey="nameAlert" enableMouse="true" frameStrata="DIALOG" hidden="true">
				<Size x="256" y="36"/>
				<Anchors>
					<Anchor point="TOP" x="15" y="-4"/>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="$parentText" inherits="GameFontHighlightLeft" justifyH="CENTER" text="GUILD_NAME_ALERT" parentKey="alert">
							<Size x="190" y="0"/>
							<Anchors>
								<Anchor point="BOTTOM" relativePoint="CENTER" x="0" y="0"/>
							</Anchors>
						</FontString>
						<FontString name="$parentText" inherits="GameFontDisableSmall" justifyH="CENTER" text="CLICK_HERE_FOR_MORE_INFO" parentKey="clickText">
							<Size x="180" y="0"/>
							<Anchors>
								<Anchor point="TOP" relativePoint="CENTER" x="0" y="-1"/>
							</Anchors>
						</FontString>
						<Texture name="$parentAlertL" file="Interface\DialogFrame\UI-Dialog-Icon-AlertNew">
							<Size x="30" y="30"/>
							<Anchors>
								<Anchor point="LEFT" x="8" y="-1"/>
							</Anchors>
						</Texture>
						<Texture name="$parentAlertR" file="Interface\DialogFrame\UI-Dialog-Icon-AlertNew">
							<Size x="30" y="30"/>
							<Anchors>
								<Anchor point="RIGHT" x="-8" y="-1"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						self.topAnchored = true;
					</OnLoad>
					<OnClick>
						self.topAnchored = false;
						GuildFrame_CheckName()
					</OnClick>
				</Scripts>
			</Button>
			<Frame name="GuildNameChangeFrame" parentKey="nameAlert" enableMouse="true" frameStrata="DIALOG" hidden="true">
				<Size x="300" y="300"/>
				<Anchors>
					<Anchor point="TOPLEFT" x="6" y="-68"/>
					<Anchor point="BOTTOMRIGHT" x="-7" y="7"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture>
							<Size x="30" y="30"/>
							<Anchors>
								<Anchor point="TOPLEFT" x="-2" y="2"/>
								<Anchor point="BOTTOMRIGHT" x="2" y="-2"/>
							</Anchors>
							<Color r="1" g=".9" b="0" a="1"/>
						</Texture>
					</Layer>
					<Layer level="BACKGROUND" textureSubLevel="1">
						<Texture>
							<Anchors>
								<Anchor point="TOPLEFT" x="0" y="0"/>
								<Anchor point="BOTTOMRIGHT" x="0" y="0"/>
							</Anchors>
							<Color r="0" g="0" b="0" a="1"/>
						</Texture>
					</Layer>
					<Layer level="OVERLAY">
						<FontString name="$parentError" inherits="GameFontHighlight" justifyH="CENTER" text="GUILD_NAME_ALERT_WARNING">
							<Size x="280" y="0"/>
							<Anchors>
								<Anchor point="TOP" x="0" y="-80"/>
							</Anchors>
							<Color r="1" g="0" b="0" a="1"/>
						</FontString>
						<FontString name="$parentGMText" inherits="GameFontHighlightCenter" text="GUILD_NAME_ALERT_GM_HELP" parentKey="gmText">
							<Size x="280" y="0"/>
							<Anchors>
								<Anchor point="TOP" relativeTo="$parentError" relativePoint="BOTTOM" x="0" y="-30"/>
							</Anchors>
						</FontString>
						<FontString name="$parentMemberText" inherits="GameFontHighlightCenter" text="GUILD_NAME_ALERT_MEMBER_HELP" parentKey="memberText" hidden="true">
							<Size x="280" y="0"/>
							<Anchors>
								<Anchor point="TOP" relativeTo="$parentError" relativePoint="BOTTOM" x="0" y="-30"/>
							</Anchors>
						</FontString>
						<FontString name="$parentRename" inherits="GameFontNormalMed3" text="RENAME_GUILD_LABEL" parentKey="renameText">
							<Size x="240" y="0"/>
							<Anchors>
								<Anchor point="BOTTOM" x="0" y="90"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<EditBox name="$parentEditBox" letters="24" inherits="InputBoxTemplate" autoFocus="false" parentKey="editBox">
						<Size x="200" y="20"/>
						<Anchors>
							<Anchor point="TOP" relativeTo="$parentRename" relativePoint="BOTTOM" x="0" y="-10"/>
						</Anchors>
						<Scripts>
							<OnLoad>
							</OnLoad>
							<OnEscapePressed function="EditBox_ClearFocus"/>
							<OnEditFocusLost>
							</OnEditFocusLost>
							<OnEditFocusGained>
								self:HighlightText();
							</OnEditFocusGained>
						</Scripts>
					</EditBox>
					<Button name="$parentButton" inherits="UIPanelButtonTemplate" text="ACCEPT" parentKey="button">
						<Size x="80" y="22"/>
						<Anchors>
							<Anchor point="TOP" relativeTo="$parentEditBox" relativePoint="BOTTOM" x="0" y="-10"/>
						</Anchors>
						<Scripts>
							<OnClick>
								if IsGuildLeader() then
									SubmitRequiredGuildRename(self:GetParent().editBox:GetText());
								else
									GuildNameChangeAlertFrame.topAnchored = true;
									GuildFrame_CheckName()
								end
							</OnClick>
						</Scripts>
					</Button>
				</Frames>
				<Scripts>
					<OnShow>
						self:SetFrameLevel(GuildNameChangeAlertFrame:GetFrameLevel()-1);
					</OnShow>
				</Scripts>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad function="GuildFrame_OnLoad"/>
			<OnShow function="GuildFrame_OnShow"/>
			<OnEvent function="GuildFrame_OnEvent"/>
			<OnHide function="GuildFrame_OnHide"/>
		</Scripts>
	</Frame>
<!--
*******************************************************************************
	Guild panel
*******************************************************************************
-->
	<Frame name="GuildPerksFrame" hidden="true" parent="GuildFrame">
		<Anchors>
			<Anchor point="TOPLEFT" relativeTo="GuildFrameInset" relativePoint="TOPLEFT"/>
			<Anchor point="BOTTOMRIGHT" relativeTo="GuildFrameBottomInset" relativePoint="BOTTOMRIGHT"/>
		</Anchors>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentMembersCountLabel" inherits="GameFontNormalSmall" text="GUILD_MEMBERS_ONLINE">
					<Anchors>
						<Anchor point="BOTTOMRIGHT" relativeTo="GuildFrameMembersCount" relativePoint="TOPRIGHT" x="0" y="6"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="GuildAllPerksFrame" setAllPoints="true" hidden="false">
				<Layers>
					<Layer level="BACKGROUND">
						<Texture file="Interface\GuildFrame\GuildFrame">
							<Size x="318" y="326"/>
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="GuildFrameInset" x="4" y="-4"/>
							</Anchors>
							<TexCoords left="0.63183594" right="0.94531250" top="0.00195313" bottom="0.57226563"/>
						</Texture>
					</Layer>
				</Layers>
				<Frames>
					<ScrollFrame name="GuildPerksContainer" inherits="MinimalHybridScrollFrameTemplate">
						<Size x="299" y="326"/>
						<KeyValues>
							<KeyValue key="buttonWidth" value="291" type="number"/>
							<KeyValue key="width" value="299" type="number"/>
							<KeyValue key="height" value="326" type="number"/>
							<KeyValue key="yOffset" value="-4" type="number"/>
							<KeyValue key="buttonWidthNoScroll" value="310" type="number"/>
							<KeyValue key="widthNoScroll" value="334" type="number"/>
							<KeyValue key="heightNoScroll" value="310" type="number"/>
							<KeyValue key="yOffsetNoScroll" value="-8" type="number"/>
						</KeyValues>
						<Anchors>
							<Anchor point="TOPLEFT" x="0" y="-4"/>
						</Anchors>
					</ScrollFrame>
				</Frames>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad function="GuildPerksFrame_OnLoad"/>
			<OnShow function="GuildPerksFrame_OnShow"/>
			<OnEvent function="GuildPerksFrame_OnEvent"/>
		</Scripts>
	</Frame>
</Ui>