<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_GuildInfo.lua"/>

<!--
*******************************************************************************
	Templates
*******************************************************************************
-->	
	<CheckButton name="GuildRecruitmentCheckButtonTemplate" virtual="true">
		<Scripts>
			<OnClick>
				if ( self:GetChecked() ) then
					PlaySound("igMainMenuOptionCheckBoxOn");
				else
					PlaySound("igMainMenuOptionCheckBoxOff");
				end
				SetGuildRecruitmentSettings(self:GetID(), self:GetChecked());
				GuildRecruitmentListGuildButton_Update();
			</OnClick>
			<OnEnter function="GuildRecruitmentCheckButton_OnEnter"/>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
		<NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
		<PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
		<HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
		<CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
		<DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
	</CheckButton>
	<Frame name="GuildRecruitmentSectionTemplate" virtual="true">
		<Size x="312" y="74"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentBg" >
					<Anchors>
						<Anchor point="TOPLEFT" x="0" y="0"/>
						<Anchor point="BOTTOMRIGHT" x="0" y="0"/>
					</Anchors>
					<Color r="0.95" g="0.95" b="1" a="0.09"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<FontString name="$parentText" inherits="GameFontNormal">
					<Anchors>
						<Anchor point="TOPLEFT" x="8" y="-5"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Frame>
	<Button name="GuildRecruitmentRoleTemplate" virtual="true" motionScriptsWhileDisabled="true">
		<Size>
			<AbsDimension x="40" y="40"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentText" inherits="GameFontHighlightSmall">
					<Anchors>
						<Anchor point="TOP" relativePoint="BOTTOM" x="0" y="0"/>
					</Anchors>
				</FontString>
			</Layer>
			<Layer level="OVERLAY">
				<Texture file="Interface\LFGFrame\UI-LFG-ICON-ROLES" setAllPoints="true" parentKey="cover" alpha="0.5" hidden="true">
					<TexCoords left="0" right="0.2617" top="0.5234" bottom="0.7851"/>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<CheckButton parentKey="checkButton">
				<Size>
					<AbsDimension x="20" y="20"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="-8" y="-1"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick function="GuildRecruitmentRoleButton_OnClick"/>
					<OnLeave function="GameTooltip_Hide"/>
				</Scripts>
				<NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
				<PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
				<HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
				<CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
				<DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>	
			</CheckButton>
		</Frames>
		<Scripts>
			<OnEnter>
				GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
				GameTooltip:SetText(_G["GUILDRECRUITMENT_ROLE"..self:GetID()], nil, nil, nil, nil, true);
				GameTooltip:Show();
				LFGFrameRoleCheckButton_OnEnter(self);
			</OnEnter>
			<OnClick>
				if ( self.checkButton:IsEnabled()) then
					self.checkButton:Click();
				end
			</OnClick>
			<OnLeave>
				GameTooltip:Hide();
				self.checkButton:UnlockHighlight();
			</OnLeave>
		</Scripts>
		<NormalTexture file="Interface\LFGFrame\UI-LFG-ICON-ROLES"/>
	</Button>
	<Button name="GuildRecruitmentApplicantTemplate" virtual="true">
		<Size>
			<AbsDimension x="320" y="84"/>
		</Size>	
		<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<EdgeSize>
				<AbsValue val="12"/>
			</EdgeSize>
			<TileSize>
				<AbsValue val="12"/>
			</TileSize>
			<BackgroundInsets>
				<AbsInset left="4" right="4" top="4" bottom="4"/>
			</BackgroundInsets>
		</Backdrop>
		<Layers>
			<Layer level="BORDER" textureSubLevel="-1">
				<Texture parentKey="selectedTex" file="Interface\ClassTrainerFrame\TrainerTextures" hidden="true" alphaMode="ADD">
					<Anchors>
						<Anchor point="TOPLEFT" x="1" y="-1"/>
						<Anchor point="BOTTOMRIGHT" x="-1" y="1"/>
					</Anchors>
					<TexCoords left="0.00195313" right="0.57421875" top="0.84960938" bottom="0.94140625"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentClass" file="Interface\TargetingFrame\UI-Classes-Circles" parentKey="class">
					<Size x="39" y="39"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="13" y="-11"/>
					</Anchors>
				</Texture>
				<FontString name="$parentName" inherits="GameFontNormal" justifyH="LEFT" parentKey="name">
					<Size x="170" y="12"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="66" y="-10"/>
					</Anchors>
				</FontString>
				<FontString name="$parentTimeLeft" inherits="GameFontNormalSmall" justifyH="RIGHT" parentKey="timeLeft">
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentName" relativePoint="RIGHT" x="8" y="0"/>
						<Anchor point="RIGHT" x="-8" y="0"/>
					</Anchors>
					<Color r="1.0" g="1.0" b="0.45"/>
				</FontString>
				<FontString name="$parentComment" inherits="GameFontHighlightSmall" justifyH="LEFT" justifyV="TOP" parentKey="comment" spacing="2">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentName" relativePoint="BOTTOMLEFT" x="4" y="-4"/>
						<Anchor point="BOTTOMRIGHT" x="-8" y="8"/>
					</Anchors>
				</FontString>
				<FontString name="$parentFullComment" inherits="GameFontHighlightSmall" justifyH="LEFT" justifyV="TOP" parentKey="fullComment" spacing="2" hidden="true">
					<Size x="10" y="0"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentComment" relativePoint="TOPLEFT"/>
					</Anchors>
				</FontString>
			</Layer>
			<Layer level="ARTWORK" textureSubLevel="1">
				<Texture name="$parentRing" inherits="Talent-Ring" parentKey="ring">
					<Size x="48" y="48"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="8" y="-8"/>
					</Anchors>
				</Texture>
				<Texture name="$parentTankTexture" file="Interface\LFGFrame\UI-LFG-ICON-PORTRAITROLES" parentKey="tankTex">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentRing" relativePoint="BOTTOMLEFT" x="-1" y="1"/>
					</Anchors>
					<Size>
						<AbsDimension x="18" y="18"/>
					</Size>
					<TexCoords left="0" right="0.296875" top="0.34375" bottom="0.640625"/>					
				</Texture>
				<Texture name="$parentHealerTexture" file="Interface\LFGFrame\UI-LFG-ICON-PORTRAITROLES" parentKey="healerTex">
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentTankTexture" relativePoint="RIGHT" x="2" y="0"/>
					</Anchors>
					<Size>
						<AbsDimension x="18" y="18"/>
					</Size>
					<TexCoords left="0.3125" right="0.609375" top="0.015625" bottom="0.3125"/>					
				</Texture>
				<Texture name="$parentDamageTexture" file="Interface\LFGFrame\UI-LFG-ICON-PORTRAITROLES" parentKey="damageTex">
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentHealerTexture" relativePoint="RIGHT" x="2" y="0"/>
					</Anchors>
					<Size>
						<AbsDimension x="18" y="18"/>
					</Size>
					<TexCoords left="0.3125" right="0.609375" top="0.34375" bottom="0.640625"/>					
				</Texture>
			</Layer>
			<Layer level="ARTWORK" textureSubLevel="2">
				<Texture name="$parentLevelRing" atlas="guild-levelring" useAtlasSize="true" parentKey="PointsSpentBgGold">
					<Anchors>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parentRing" relativePoint="BOTTOMRIGHT" x="6" y="3"/>
					</Anchors>
				</Texture>
				<FontString name="$parentLevelText" inherits="GameNormalNumberFont" parentKey="level">
					<Anchors>
						<Anchor point="CENTER" relativeTo="$parentLevelRing" x="0" y="0"/>
					</Anchors>
					<Color r="1.0" g="0.82" b="0.0"/>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				self:SetBackdropColor(1, 1, 1, 0.3);
				self:RegisterForClicks("LeftButtonUp", "RightButtonUp");
				
				if ( GUILD_APPLICANT_LEVEL_TEXT_Y_OVERRIDE ) then
					self.level:SetPoint("CENTER", "$parentLevelRing", "CENTER", select(4, self.level:GetPoint("CENTER")), GUILD_APPLICANT_LEVEL_TEXT_Y_OVERRIDE);
				end
			</OnLoad>
			<OnClick function="GuildRecruitmentApplicant_OnClick"/>
			<OnEnter function="GuildRecruitmentApplicant_ShowTooltip"/>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
		<HighlightTexture name="$parentHighlight" file="Interface\ClassTrainerFrame\TrainerTextures" alphaMode="ADD">
			<Anchors>
				<Anchor point="TOPLEFT" x="1" y="-1"/>
				<Anchor point="BOTTOMRIGHT" x="-1" y="1"/>
			</Anchors>
			<TexCoords left="0.00195313" right="0.57421875" top="0.75390625" bottom="0.84570313"/>
		</HighlightTexture>
	</Button>
	<Frame name="GuildChallengeTemplate" enableMouse="true" virtual="true">
		<Size x="319" y="21"/>
		<Layers>
			<Layer level="ARTWORK">
				<FontString inherits="GameFontHighlight" parentKey="label">
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parent" x="18" y="0"/>
					</Anchors>
				</FontString>
				<FontString inherits="GameFontNormal" parentKey="count">
					<Anchors>
						<Anchor point="RIGHT" relativeTo="$parent" x="-12" y="0"/>
					</Anchors>
				</FontString>
				<Texture file="Interface\GuildFrame\GuildChallenges" hidden="true" parentKey="check">
					<Size x="28" y="24"/>
					<Anchors>
						<Anchor point="RIGHT" relativeTo="$parent" x="-8" y="0"/>
					</Anchors>	
					<TexCoords left="0.00195313" right="0.05664063" top="0.00390625" bottom="0.09765625"/>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				self.label:SetText(_G["GUILD_CHALLENGE_TYPE"..self:GetID()]);
			</OnLoad>
			<OnEnter>
				local index, current, max, gold, maxGold = GetGuildChallengeInfo(self.dataIndex);
				if ( index ) then
					GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
					GameTooltip:SetText(_G["GUILD_CHALLENGE_LABEL"..index]);
					GameTooltip:AddLine(" ")
					GameTooltip:AddLine(_G["GUILD_CHALLENGE_TOOLTIP"..index], 1, 1, 1, true);
					GameTooltip:AddLine(" ")
					local goldString = GetMoneyString(maxGold * COPPER_PER_SILVER * SILVER_PER_GOLD);
					GameTooltip:AddLine(string.format(GUILD_CHALLENGE_REWARD_GOLD, goldString), 1, 1, 1, true);
					GameTooltip:Show();
				end
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
	</Frame>
<!--
*******************************************************************************
	Info panel
*******************************************************************************
-->	
	<Frame name="GuildInfoFrame" hidden="true" parent="GuildFrame">
		<Anchors>
			<Anchor point="TOPLEFT" relativeTo="$parent" x="4" y="-65"/>
			<Anchor point="BOTTOMRIGHT" relativeTo="$parent" x="-7" y="26"/>
		</Anchors>
		<Frames>
			<Button name="GuildInfoFrameTab1" inherits="TabButtonTemplate" text="GUILDINFOTAB_INFO" id="1" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" x="60" y="32"/>
				</Anchors>
				<Scripts>
					<OnLoad>
						PanelTemplates_TabResize(self, 0);
						_G[self:GetName().."HighlightTexture"]:SetWidth(self:GetTextWidth() + 31);
					</OnLoad>
					<OnClick>
						PanelTemplates_Tab_OnClick(self, GuildInfoFrame);
						GuildInfoFrame_Update();
						PlaySound("igMainMenuOptionCheckBoxOn");
					</OnClick>
				</Scripts>
			</Button>
			<Button name="GuildInfoFrameTab2" inherits="TabButtonTemplate" text="GUILDINFOTAB_RECRUITMENT" id="2" hidden="true">
				<Anchors>
					<Anchor point="LEFT" relativeTo="GuildInfoFrameTab1" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						PanelTemplates_Tab_OnClick(self, GuildInfoFrame);
						GuildInfoFrame_Update();
						PlaySound("igMainMenuOptionCheckBoxOn");
					</OnClick>
				</Scripts>
			</Button>
			<Button name="GuildInfoFrameTab3" inherits="TabButtonTemplate" text="GUILDINFOTAB_APPLICANTS_NONE" id="3" hidden="true">
				<Anchors>
					<Anchor point="LEFT" relativeTo="GuildInfoFrameTab2" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						PanelTemplates_Tab_OnClick(self, GuildInfoFrame);
						GuildInfoFrame_Update();
						PlaySound("igMainMenuOptionCheckBoxOn");
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad function="GuildInfoFrame_OnLoad"/>
			<OnEvent function="GuildInfoFrame_OnEvent"/>
			<OnShow function="GuildInfoFrame_OnShow"/>
		</Scripts>
	</Frame>
<!--
*******************************************************************************
	GuildInfoFrameInfo
*******************************************************************************
-->
	<Frame name="GuildInfoFrameInfo" parent="GuildInfoFrame" setAllPoints="true">
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parentBar1Left" file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar">
					<Size>
						<AbsDimension x="256" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" x="-3" y="0"/>
						<Anchor point="RIGHT" x="-69" y="0"/>
						<Anchor point="BOTTOM" relativeTo="$parent" relativePoint="TOP" x="0" y="-146"/>
					</Anchors>
					<TexCoords left="0" right="1.0" top="0" bottom="0.25"/>
				</Texture>
				<Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar">
					<Size>
						<AbsDimension x="70" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentBar1Left" relativePoint="RIGHT"/>
					</Anchors>
					<TexCoords left="0" right="0.29296875" top="0.25" bottom="0.5"/>
				</Texture>
				<Texture name="$parentBar2Left" file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar">
					<Size>
						<AbsDimension x="256" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" x="-3" y="0"/>
						<Anchor point="RIGHT" x="-69" y="0"/>
						<Anchor point="TOP" relativeTo="$parent" relativePoint="BOTTOM" x="0" y="128"/>
					</Anchors>
					<TexCoords left="0" right="1.0" top="0" bottom="0.25"/>
				</Texture>
				<Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar">
					<Size>
						<AbsDimension x="70" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentBar2Left" relativePoint="RIGHT"/>
					</Anchors>
					<TexCoords left="0" right="0.29296875" top="0.25" bottom="0.5"/>
				</Texture>
			</Layer>
			<Layer level="BACKGROUND">
				<Texture file="Interface\GuildFrame\GuildFrame">
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT" x="-3" y="-4"/>
						<Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT" x="4" y="3"/>
					</Anchors>
					<TexCoords left="0.00097656" right="0.31445313" top="0.00195313" bottom="0.59765625"/>
				</Texture>
			</Layer>
			<Layer level="BACKGROUND" textureSubLevel="1">
				<Texture name="$parentHeader1" file="Interface\GuildFrame\GuildFrame">
					<Size x="319" y="22"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="4" y="-3"/>
					</Anchors>
					<TexCoords left="0.00097656" right="0.31445313" top="0.93164063" bottom="0.97460938"/>
				</Texture>
				<Texture name="$parentHeader2" file="Interface\GuildFrame\GuildFrame">
					<Size x="319" y="22"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentBar1Left" relativePoint="TOPLEFT" x="7" y="-11"/>
					</Anchors>
					<TexCoords left="0.00097656" right="0.31445313" top="0.93164063" bottom="0.97460938"/>
				</Texture>
				<Texture name="$parentHeader3" file="Interface\GuildFrame\GuildFrame">
					<Size x="319" y="22"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentBar2Left" relativePoint="TOPLEFT" x="7" y="-11"/>
					</Anchors>
					<TexCoords left="0.00097656" right="0.31445313" top="0.93164063" bottom="0.97460938"/>
				</Texture>
				<Texture file="Interface\GuildFrame\GuildChallenges">	<!-- challenges BG -->
					<Size x="319" y="109"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentHeader1" relativePoint="BOTTOMLEFT" x="0" y="0"/>
					</Anchors>
					<TexCoords left="0.13671875" right="0.75976563" top="0.27343750" bottom="0.69921875"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<FontString	name="$parentHeader1Label" inherits="GameFontNormal" text="GUILD_FRAME_CHALLENGES">
					<Size>
						<AbsDimension x="0" y="0"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentHeader1" x="10" y="0"/>
					</Anchors>
				</FontString>	
				<FontString	inherits="GameFontNormal" text="GUILD_MOTD_LABEL">
					<Size>
						<AbsDimension x="0" y="0"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentHeader2" x="10" y="0"/>
					</Anchors>
				</FontString>
				<FontString	inherits="GameFontNormal" text="GUILD_INFORMATION">
					<Size>
						<AbsDimension x="0" y="0"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentHeader3" x="10" y="0"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<ScrollFrame name="$parentMOTDScrollFrame" inherits="MinimalScrollFrameTemplate">
				<Size>
					<AbsDimension x="284" y="42"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentHeader2" relativePoint="BOTTOMLEFT" x="14" y="-2"/>
				</Anchors>
				<ScrollChild>
					<SimpleHTML name="GuildInfoMOTD" disallowFormatting="true">
						<Size>
							<AbsDimension x="284" y="42"/>
						</Size>
						<Scripts>
							<OnHyperlinkClick>
								SetItemRef(link, text, button, self);
							</OnHyperlinkClick>
						</Scripts>
						<FontString inherits="GameFontNormalSmall" justifyH="LEFT" justifyV="TOP" spacing="2">
							<Color r="1" g="1" b="1"/>
						</FontString>
					</SimpleHTML>
				</ScrollChild>
				<Scripts>
					<OnLoad>
						self.scrollBarHideable = true;
						self.noScrollThumb = true;
						ScrollBar_AdjustAnchors(GuildInfoFrameInfoMOTDScrollFrameScrollBar, 2, -2);
						GuildInfoFrameInfoMOTDScrollFrameScrollBar:Hide();
						ScrollFrame_OnLoad(self);
					</OnLoad>
				</Scripts>
			</ScrollFrame>
			<!-- id is what controls the challenge type. buttons not necessarily in order by id. -->
			<Frame name="$parentChallenge1" inherits="GuildChallengeTemplate" id="1">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="GuildInfoFrameInfoHeader1" relativePoint="BOTTOMLEFT" x="0" y="-1"/>
				</Anchors>
			</Frame>
			<!--Scenario rewards aren't a thing at the moment, so Challenge4 is hidden-->
			<Frame name="$parentChallenge4" inherits="GuildChallengeTemplate" id="4" hidden="true">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentChallenge1" relativePoint="BOTTOM" x="0" y="-1"/>
				</Anchors>
			</Frame>
			<Frame name="$parentChallenge5" inherits="GuildChallengeTemplate" id="5">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentChallenge1" relativePoint="BOTTOM" x="0" y="-7"/>
				</Anchors>
			</Frame>
			<Frame name="$parentChallenge2" inherits="GuildChallengeTemplate" id="2">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentChallenge5" relativePoint="BOTTOM" x="0" y="-7"/>
				</Anchors>
			</Frame>
			<Frame name="$parentChallenge3" inherits="GuildChallengeTemplate" id="3">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentChallenge2" relativePoint="BOTTOM" x="0" y="-7"/>
				</Anchors>
			</Frame>
			<Button name="GuildInfoEditMOTDButton" text="GUILD_EDIT_TEXT_LINK" hidden="true">
				<Anchors>
					<Anchor point="RIGHT" relativeTo="$parentHeader2" x="-8" y="0"/>
				</Anchors>
				<Scripts>
					<OnClick>
						GuildTextEditFrame_Show("motd");
					</OnClick>
				</Scripts>
				<ButtonText>
					<Anchors>
						<Anchor point="RIGHT" x="-2" y="0"/>
					</Anchors>
					<Color r="0.973" g="0.937" b="0.580"/>
				</ButtonText>
				<NormalFont style="GameFontNormalSmall"/>
			</Button>
			<Button name="GuildInfoEditDetailsButton" text="GUILD_EDIT_TEXT_LINK" hidden="true">
				<Anchors>
					<Anchor point="RIGHT" relativeTo="$parentHeader3" x="-8" y="0"/>
				</Anchors>
				<Scripts>
					<OnClick>
						GuildTextEditFrame_Show("info");
					</OnClick>
				</Scripts>
				<ButtonText>
					<Anchors>
						<Anchor point="RIGHT" x="-2" y="0"/>
					</Anchors>
					<Color r="0.973" g="0.937" b="0.580"/>
				</ButtonText>
				<NormalFont style="GameFontNormalSmall"/>
			</Button>
			<ScrollFrame name="GuildInfoDetailsFrame" inherits="MinimalScrollFrameTemplate">
				<Size>
					<AbsDimension x="284" y="85"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentHeader3" relativePoint="BOTTOMLEFT" x="14" y="-1"/>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.scrollBarHideable = true;
						ScrollBar_AdjustAnchors(GuildInfoDetailsFrameScrollBar, 1, -7);
						GuildInfoDetailsFrameScrollBar:Hide();
					</OnLoad>
				</Scripts>
				<ScrollChild>
					<Frame>
						<Size>
							<AbsDimension x="284" y="60"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT"/>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
								<FontString name="GuildInfoDetails" inherits="GameFontNormalSmall" nonspacewrap="true" justifyH="LEFT" justifyV="TOP" spacing="2">
									<Size>
										<AbsDimension x="284" y="0"/>
									</Size>
									<Anchors>
										<Anchor point="TOPLEFT" x="0" y="-4"/>
									</Anchors>
									<Color r="1" g="1" b="1"/>
								</FontString>
							</Layer>
						</Layers>
					</Frame>
				</ScrollChild>
			</ScrollFrame>
			<Button name="GuildAddMemberButton" inherits="MagicButtonTemplate" text="ADDMEMBER">
				<Size x="116" y="22"/>
				<Anchors>
					<Anchor point="BOTTOMLEFT" x="0" y="-22"/>
				</Anchors>
				<Scripts>
					<OnClick>
						if ( StaticPopup_FindVisible("ADD_GUILDMEMBER") ) then
							StaticPopup_Hide("ADD_GUILDMEMBER");
						else
							StaticPopup_Show("ADD_GUILDMEMBER");
						end
					</OnClick>
					<OnEnter>
						GameTooltip_AddNewbieTip(self, ADDMEMBER, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_ADDMEMBER, 1);
					</OnEnter>
					<OnLeave function="GameTooltip_Hide"/>
				</Scripts>
			</Button>
			<Button name="GuildControlButton" inherits="MagicButtonTemplate" text="GUILDCONTROL">
				<Size x="116" y="22"/>
				<Anchors>
					<Anchor point="BOTTOMRIGHT" x="0" y="-22"/>
				</Anchors>
				<Scripts>
					<OnClick>
						if ( not GuildControlUI ) then
							UIParentLoadAddOn("Blizzard_GuildControlUI");
						end
						CloseWindows(nil, GuildFrame);
						GuildFramePopup_Toggle(GuildControlUI);
					</OnClick>
					<OnEnter>
						GameTooltip_AddNewbieTip(self, GUILDCONTROL, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_GUILDCONTROL, 1);
					</OnEnter>
					<OnLeave function="GameTooltip_Hide"/>
				</Scripts>
			</Button>
			<Button name="GuildViewLogButton" inherits="MagicButtonTemplate" text="GUILD_VIEW_LOG">
				<Size x="0" y="22"/>
				<Anchors>
					<Anchor point="LEFT" relativeTo="GuildAddMemberButton" relativePoint="RIGHT"/>
					<Anchor point="RIGHT" relativeTo="GuildControlButton" relativePoint="LEFT"/>
				</Anchors>
				<Scripts>
					<OnClick>
						GuildFramePopup_Toggle(GuildLogFrame);
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad function="GuildInfoFrameInfo_OnLoad"/>
			<OnShow function="GuildInfoFrameInfo_OnShow"/>
		</Scripts>
	</Frame>
<!--
*******************************************************************************
	GuildInfoFrameRecruitment
*******************************************************************************
-->
	<Frame name="GuildInfoFrameRecruitment" parent="GuildInfoFrame" setAllPoints="true" hidden="true">
		<Frames>
			<Frame name="GuildRecruitmentInterestFrame" inherits="GuildRecruitmentSectionTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" x="8" y="-10"/>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="GuildRecruitmentQuestText" inherits="GameFontHighlightSmall" text="GUILD_INTEREST_QUEST">
							<Anchors>
								<Anchor point="TOPLEFT" x="31" y="-26"/>
							</Anchors>
						</FontString>
						<FontString name="GuildRecruitmentRaidText" inherits="GameFontHighlightSmall" text="GUILD_INTEREST_RAID">
							<Anchors>
								<Anchor point="TOPRIGHT" x="-12" y="-26"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<CheckButton name="GuildRecruitmentQuestButton" inherits="GuildRecruitmentCheckButtonTemplate" id="1">
						<Size>
							<AbsDimension x="20" y="20"/>
						</Size>
						<Anchors>
							<Anchor point="RIGHT" relativeTo="GuildRecruitmentQuestText" relativePoint="LEFT" x="-3" y="0"/>
						</Anchors>
					</CheckButton>
					<CheckButton name="GuildRecruitmentRaidButton" inherits="GuildRecruitmentCheckButtonTemplate" id="3">
						<Size>
							<AbsDimension x="20" y="20"/>
						</Size>
						<Anchors>
							<Anchor point="RIGHT" relativeTo="GuildRecruitmentRaidText" relativePoint="LEFT" x="-3" y="0"/>
						</Anchors>
					</CheckButton>
					<Frame name="GuildRecruitmentDungeonFramePlacer">
						<Size x="0" y="30"/>
						<Anchors>
							<Anchor point="LEFT" relativeTo="GuildRecruitmentQuestText" relativePoint="RIGHT" x="0" y="0"/>
							<Anchor point="RIGHT" relativeTo="GuildRecruitmentRaidButton" relativePoint="LEFT" x="0" y="0"/>									
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
								<FontString name="GuildRecruitmentDungeonText" inherits="GameFontHighlightSmall" text="GUILD_INTEREST_DUNGEON">
									<Anchors>
										<Anchor point="CENTER" x="11" y="0"/>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
					</Frame>
					<CheckButton name="GuildRecruitmentDungeonButton" inherits="GuildRecruitmentCheckButtonTemplate" id="2">
						<Size>
							<AbsDimension x="20" y="20"/>
						</Size>
						<Anchors>
							<Anchor point="RIGHT" relativeTo="GuildRecruitmentDungeonText" relativePoint="LEFT" x="-3" y="0"/>
						</Anchors>
					</CheckButton>
					<CheckButton name="GuildRecruitmentPvPButton" inherits="GuildRecruitmentCheckButtonTemplate" id="4">
						<Size>
							<AbsDimension x="20" y="20"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="GuildRecruitmentQuestButton" relativePoint="BOTTOMLEFT" x="0" y="0"/>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
								<FontString name="$parentText" inherits="GameFontHighlightSmall" text="GUILD_INTEREST_PVP">
									<Anchors>
										<Anchor point="LEFT" relativePoint="RIGHT">
											<Offset>
												<AbsDimension x="3" y="0"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
					</CheckButton>
					<CheckButton name="GuildRecruitmentRPButton" inherits="GuildRecruitmentCheckButtonTemplate" id="5">
						<Size>
							<AbsDimension x="20" y="20"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="GuildRecruitmentDungeonButton" relativePoint="BOTTOMLEFT" x="0" y="0"/>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
								<FontString name="$parentText" inherits="GameFontHighlightSmall" text="GUILD_INTEREST_RP">
									<Anchors>
										<Anchor point="LEFT" relativePoint="RIGHT">
											<Offset>
												<AbsDimension x="3" y="0"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
					</CheckButton>
				</Frames>
			</Frame>
			<Frame name="GuildRecruitmentAvailabilityFrame" inherits="GuildRecruitmentSectionTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="GuildRecruitmentInterestFrame" relativePoint="BOTTOMLEFT" x="0" y="-4"/>
				</Anchors>
				<Frames>
					<CheckButton name="GuildRecruitmentWeekdaysButton" inherits="GuildRecruitmentCheckButtonTemplate" id="6">
						<Size>
							<AbsDimension x="20" y="20"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" x="0" y="-21"/>
							<Anchor point="LEFT" relativeTo="GuildRecruitmentQuestButton" relativePoint="LEFT"/>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
								<FontString name="$parentText" inherits="GameFontHighlightSmall" text="GUILD_AVAILABILITY_WEEKDAYS">
									<Anchors>
										<Anchor point="LEFT" relativePoint="RIGHT">
											<Offset>
												<AbsDimension x="3" y="0"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
					</CheckButton>
					<CheckButton name="GuildRecruitmentWeekendsButton" inherits="GuildRecruitmentCheckButtonTemplate" id="7">
						<Size>
							<AbsDimension x="20" y="20"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" x="0" y="-21"/>
							<Anchor point="LEFT" relativeTo="GuildRecruitmentDungeonButton" relativePoint="LEFT"/>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
								<FontString name="$parentText" inherits="GameFontHighlightSmall" text="GUILD_AVAILABILITY_WEEKENDS">
									<Anchors>
										<Anchor point="LEFT" relativePoint="RIGHT">
											<Offset>
												<AbsDimension x="3" y="0"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
					</CheckButton>
				</Frames>
			</Frame>
			<Frame name="GuildRecruitmentRolesFrame" inherits="GuildRecruitmentSectionTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="GuildRecruitmentAvailabilityFrame" relativePoint="BOTTOMLEFT" x="0" y="-4"/>
				</Anchors>
				<Frames>
					<Button name="GuildRecruitmentTankButton" inherits="GuildRecruitmentRoleTemplate" id="2">
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="30" y="-24"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self:GetNormalTexture():SetTexCoord(GetTexCoordsForRole("TANK"));
								self.param = LFGUILD_PARAM_TANK;
								GuildRecruitmentTankButtonText:SetText(TANK);
							</OnLoad>
						</Scripts>
					</Button>
					<Button name="GuildRecruitmentHealerButton" inherits="GuildRecruitmentRoleTemplate" id="3">
						<Anchors>
							<Anchor point="TOP">
								<Offset>
									<AbsDimension x="1" y="-24"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self:GetNormalTexture():SetTexCoord(GetTexCoordsForRole("HEALER"));
								self.param = LFGUILD_PARAM_HEALER;
								GuildRecruitmentHealerButtonText:SetText(HEALER);
							</OnLoad>
						</Scripts>
					</Button>
					<Button name="GuildRecruitmentDamagerButton" inherits="GuildRecruitmentRoleTemplate" id="1">
						<Anchors>
							<Anchor point="TOPRIGHT">
								<Offset>
									<AbsDimension x="-30" y="-24"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self:GetNormalTexture():SetTexCoord(GetTexCoordsForRole("DAMAGER"));
								self.param = LFGUILD_PARAM_DAMAGE;
								GuildRecruitmentDamagerButtonText:SetText(DAMAGER);
							</OnLoad>
						</Scripts>
					</Button>
				</Frames>
			</Frame>
			<Frame name="GuildRecruitmentLevelFrame" inherits="GuildRecruitmentSectionTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="GuildRecruitmentRolesFrame" relativePoint="BOTTOMLEFT" x="0" y="-4"/>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="GuildRecruitmentLevelAnyText" inherits="GameFontHighlightSmall" text="GUILD_RECRUITMENT_ANYLEVEL">
							<Anchors>
								<Anchor point="TOP" x="0" y="-26"/>
								<Anchor point="LEFT" relativeTo="GuildRecruitmentQuestText"/>
							</Anchors>
						</FontString>
						<FontString name="GuildRecruitmentLevelMaxText" inherits="GameFontHighlightSmall" text="GUILD_RECRUITMENT_MAXLEVEL">
							<Anchors>
								<Anchor point="TOP" x="0" y="-26"/>
								<Anchor point="LEFT" relativeTo="GuildRecruitmentDungeonText"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<CheckButton name="GuildRecruitmentLevelAnyButton" inherits="UIRadioButtonTemplate">
						<Anchors>
							<Anchor point="RIGHT" relativeTo="GuildRecruitmentLevelAnyText" relativePoint="LEFT" x="-3" y="0"/>
						</Anchors>
						<Scripts>
							<OnClick>
								GuildRecruitmentLevelButton_OnClick(1, true);
							</OnClick>
						</Scripts>
					</CheckButton>
					<CheckButton name="GuildRecruitmentLevelMaxButton" inherits="UIRadioButtonTemplate">
						<Anchors>
							<Anchor point="RIGHT" relativeTo="GuildRecruitmentLevelMaxText" relativePoint="LEFT" x="-3" y="0"/>
						</Anchors>
						<Scripts>
							<OnClick>
								GuildRecruitmentLevelButton_OnClick(2, true);
							</OnClick>
						</Scripts>
					</CheckButton>
				</Frames>
			</Frame>
			<Frame name="GuildRecruitmentCommentFrame" inherits="GuildRecruitmentSectionTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="GuildRecruitmentLevelFrame" relativePoint="BOTTOMLEFT" x="0" y="-4"/>
				</Anchors>
				<Frames>
					<Frame name="GuildRecruitmentCommentInputFrame">
						<Size x="286" y="62"/>
						<Anchors>
							<Anchor point="TOP">
								<Offset x="0" y="-5"/>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<Texture name="$parentTopLeft" file="Interface\Common\Common-Input-Border-TL">
									<Size>
										<AbsDimension x="8" y="8"/>
									</Size>
									<Anchors>
										<Anchor point="TOPLEFT">
											<Offset x="0" y="0"/>
										</Anchor>
									</Anchors>
								</Texture>
								<Texture name="$parentTopRight" file="Interface\Common\Common-Input-Border-TR">
									<Size>
										<AbsDimension x="8" y="8"/>
									</Size>
									<Anchors>
										<Anchor point="TOPRIGHT">
											<Offset x="0" y="0"/>
										</Anchor>
									</Anchors>
								</Texture>
								<Texture name="$parentTop" file="Interface\Common\Common-Input-Border-T">
									<Anchors>
										<Anchor point="TOPLEFT" relativeTo="$parentTopLeft" relativePoint="TOPRIGHT"/>
										<Anchor point="BOTTOMRIGHT" relativeTo="$parentTopRight" relativePoint="BOTTOMLEFT"/>
									</Anchors>
								</Texture>
								<Texture name="$parentBottomLeft" file="Interface\Common\Common-Input-Border-BL">
									<Size>
										<AbsDimension x="8" y="8"/>
									</Size>
									<Anchors>
										<Anchor point="BOTTOMLEFT">
											<Offset x="0" y="0"/>
										</Anchor>
									</Anchors>
								</Texture>
								<Texture name="$parentBottomRight" file="Interface\Common\Common-Input-Border-BR">
									<Size>
										<AbsDimension x="8" y="8"/>
									</Size>
									<Anchors>
										<Anchor point="BOTTOMRIGHT">
											<Offset x="0" y="0"/>
										</Anchor>
									</Anchors>
								</Texture>
								<Texture name="$parentBottom" file="Interface\Common\Common-Input-Border-B">
									<Anchors>
										<Anchor point="TOPLEFT" relativeTo="$parentBottomLeft" relativePoint="TOPRIGHT"/>
										<Anchor point="BOTTOMRIGHT" relativeTo="$parentBottomRight" relativePoint="BOTTOMLEFT"/>
									</Anchors>
								</Texture>
								<Texture name="$parentLeft" file="Interface\Common\Common-Input-Border-L">
									<Anchors>
										<Anchor point="TOPLEFT" relativeTo="$parentTopLeft" relativePoint="BOTTOMLEFT"/>
										<Anchor point="BOTTOMRIGHT" relativeTo="$parentBottomLeft" relativePoint="TOPRIGHT"/>
									</Anchors>
								</Texture>
								<Texture name="$parentRight" file="Interface\Common\Common-Input-Border-R">
									<Anchors>
										<Anchor point="TOPLEFT" relativeTo="$parentTopRight" relativePoint="BOTTOMLEFT"/>
										<Anchor point="BOTTOMRIGHT" relativeTo="$parentBottomRight" relativePoint="TOPRIGHT"/>
									</Anchors>
								</Texture>
								<Texture name="$parentMiddle" file="Interface\Common\Common-Input-Border-M">
									<Anchors>
										<Anchor point="TOPLEFT" relativeTo="$parentLeft" relativePoint="TOPRIGHT"/>
										<Anchor point="BOTTOMRIGHT" relativeTo="$parentRight" relativePoint="BOTTOMLEFT"/>
									</Anchors>
								</Texture>
							</Layer>
						</Layers>
						<Frames>
							<ScrollFrame name="$parentScrollFrame" inherits="UIPanelScrollFrameTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="6" y="-6"/>
									<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT" x="0" y="6"/>
								</Anchors>
								<Frames>
									<Button name="$parentFocusButton" setAllPoints="true">
										<Scripts>
											<OnClick>
												GuildRecruitmentCommentEditBox:SetFocus();
											</OnClick>
										</Scripts>
									</Button>
								</Frames>
								<Scripts>
									<OnLoad>
										local scrollBar = _G[self:GetName().."ScrollBar"];
										scrollBar:SetFrameLevel(_G[self:GetName().."FocusButton"]:GetFrameLevel() + 2);
										scrollBar:ClearAllPoints();
										scrollBar:SetPoint("TOPLEFT", self, "TOPRIGHT", -18, -10);
										scrollBar:SetPoint("BOTTOMLEFT", self, "BOTTOMRIGHT", -18, 8);
										-- reposition the up and down buttons
										_G[self:GetName().."ScrollBarScrollDownButton"]:SetPoint("TOP", scrollBar, "BOTTOM", 0, 4);
										_G[self:GetName().."ScrollBarScrollUpButton"]:SetPoint("BOTTOM", scrollBar, "TOP", 0, -4);
										-- make the scroll bar hideable and force it to start off hidden so positioning calculations can be done
										-- as soon as it needs to be shown
										self.scrollBarHideable = 1;
										scrollBar:Hide();
									</OnLoad>
								</Scripts>
								<ScrollChild>
									<EditBox name="GuildRecruitmentCommentEditBox" multiLine="true" letters="255" countInvisibleLetters="true" autoFocus="false">
										<Size x="258" y="1"/>
										<Layers>
											<Layer level="BORDER">
												<FontString name="$parentFill" inherits="GameFontHighlightSmall" justifyH="LEFT" justifyV="MIDDLE" text="CLICK_TO_ENTER_COMMENT">
													<Anchors>
														<Anchor point="LEFT">
															<Offset>
																<AbsDimension x="3" y="0"/>
															</Offset>
														</Anchor>
													</Anchors>
													<Color r="0.35" g="0.35" b="0.35"/>
												</FontString>
											</Layer>
										</Layers>
										<Scripts>
											<OnTabPressed>
												GuildRecruitmentCommentEditBox:SetFocus();
											</OnTabPressed>
											<OnEditFocusLost function="GuildRecruitmentComment_SaveText"/>
											<OnTextChanged>
												ScrollingEdit_OnTextChanged(self, self:GetParent());
												if ( self:GetText() ~= "" ) then
													GuildRecruitmentCommentEditBoxFill:Hide();
												else
													GuildRecruitmentCommentEditBoxFill:Show();
												end
											</OnTextChanged> 
											<OnCursorChanged function="ScrollingEdit_OnCursorChanged"/>
											<OnUpdate>
												ScrollingEdit_OnUpdate(self, elapsed, self:GetParent());
											</OnUpdate>
											<OnEscapePressed>
												self:ClearFocus();
											</OnEscapePressed>
											<OnEnterPressed>
												self:ClearFocus();
											</OnEnterPressed>
										</Scripts>
										<FontString inherits="GameFontHighlightSmall"/>
									</EditBox>
								</ScrollChild>
							</ScrollFrame>
						</Frames>
					</Frame>
				</Frames>
			</Frame>
			<Button name="GuildRecruitmentListGuildButton" inherits="MagicButtonTemplate" text="GUILD_OPEN_RECRUITMENT">
				<Size x="136" y="22"/>
				<Anchors>
					<Anchor point="BOTTOMRIGHT" x="0" y="-22"/>
				</Anchors>
				<Scripts>
					<OnClick function="GuildRecruitmentListGuildButton_OnClick"/>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad function="GuildInfoFrameRecruitment_OnLoad"/>
		</Scripts>
	</Frame>
<!--
*******************************************************************************
	GuildInfoFrameApplicants
*******************************************************************************
-->
	<Frame name="GuildInfoFrameApplicants" parent="GuildInfoFrame" setAllPoints="true" hidden="true">
		<Frames>
			<ScrollFrame name="$parentContainer" inherits="HybridScrollFrameTemplate" hidden="false">
				<Size x="304" y="327"/>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="4" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Frames>
					<Slider name="$parentScrollBar" inherits="HybridScrollBarTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
								<Offset>
									<AbsDimension x="0" y="-12"/>
								</Offset>
							</Anchor>
							<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
								<Offset>
									<AbsDimension x="0" y="13"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Slider>
				</Frames>
			</ScrollFrame>
			<Button name="GuildRecruitmentInviteButton" inherits="MagicButtonTemplate" text="INVITE">
				<Size x="92" y="22"/>
				<Anchors>
					<Anchor point="BOTTOMLEFT" x="0" y="-22"/>
				</Anchors>
				<Scripts>
					<OnClick>
						PlaySound("igMainMenuOptionCheckBoxOn");
						local name = GetGuildApplicantInfo(GetGuildApplicantSelection());
						if ( name ) then
							GuildInvite(name);
						end
					</OnClick>
				</Scripts>
			</Button>
			<Button name="GuildRecruitmentDeclineButton" inherits="MagicButtonTemplate" text="DECLINE">
				<Size x="92" y="22"/>
				<Anchors>
					<Anchor point="BOTTOMRIGHT" x="0" y="-22"/>
				</Anchors>
				<Scripts>
					<OnClick>
						PlaySound("igMainMenuOptionCheckBoxOn");
						DeclineGuildApplicant(GetGuildApplicantSelection());
					</OnClick>
				</Scripts>
			</Button>
			<Button name="GuildRecruitmentMessageButton" inherits="MagicButtonTemplate" text="SEND_MESSAGE">
				<Size x="0" y="22"/>
				<Anchors>
					<Anchor point="LEFT" relativeTo="GuildRecruitmentInviteButton" relativePoint="RIGHT"/>
					<Anchor point="RIGHT" relativeTo="GuildRecruitmentDeclineButton" relativePoint="LEFT"/>
				</Anchors>
				<Scripts>
					<OnClick>
						PlaySound("igMainMenuOptionCheckBoxOn");
						local name = GetGuildApplicantInfo(GetGuildApplicantSelection());
						if ( name ) then
							ChatFrame_SendTell(name);
						end
					</OnClick>
				</Scripts>
			</Button>
			<Frame name="GuildRecruitmentDropDown" inherits="UIDropDownMenuTemplate" hidden="true">
				<Size>
					<AbsDimension x="10" y="10"/>
				</Size>
				<Scripts>
					<OnLoad function="GuildRecruitmentDropDown_OnLoad"/>
				</Scripts>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad function="GuildInfoFrameApplicants_OnLoad"/>
			<OnShow function="GuildInfoFrameApplicants_OnShow"/>
		</Scripts>
	</Frame>
<!--
*******************************************************************************
	Popups
*******************************************************************************
-->	
	<Frame name="GuildTextEditFrame" toplevel="true" frameStrata="DIALOG" hidden="true" parent="GuildFrame" inherits="TranslucentFrameTemplate">
		<Size>
			<AbsDimension x="295" y="312"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT" relativeTo="GuildFrame" relativePoint="TOPRIGHT" x="8" y="0"/>
		</Anchors>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentTitle" inherits="GameFontNormal">
					<Anchors>
						<Anchor point="TOPLEFT" x="24" y="-18"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button name="$parentCloseButton" inherits="UIPanelCloseButton">
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="-4" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Frame name="GuildTextEditContainer">
				<Anchors>
					<Anchor point="TOPLEFT" x="22" y="-36"/>
					<Anchor point="TOPRIGHT" x="-22" y="-36"/>
					<Anchor point="BOTTOM" x="0" y="42"/>
				</Anchors>
				<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
					<EdgeSize>
						<AbsValue val="12"/>
					</EdgeSize>
					<TileSize>
						<AbsValue val="8"/>
					</TileSize>
					<BackgroundInsets>
						<AbsInset left="1" right="1" top="1" bottom="1"/>
					</BackgroundInsets>
				</Backdrop>
				<Frames>
					<ScrollFrame name="GuildTextEditScrollFrame" inherits="MinimalScrollFrameTemplate">
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset x="4" y="-4"/>
							</Anchor>
							<Anchor point="BOTTOMRIGHT">
								<Offset x="-26" y="4"/>
							</Anchor>
						</Anchors>
						<ScrollChild>
							<EditBox name="GuildTextEditBox" multiLine="true" letters="500" autoFocus="false">
								<Size x="218" y="1"/>
								<Anchors>
									<Anchor point="TOPLEFT"/>
								</Anchors>
								<Scripts>
									<OnTextChanged>
										ScrollingEdit_OnTextChanged(self, self:GetParent());
									</OnTextChanged> 
									<OnCursorChanged function="ScrollingEdit_OnCursorChanged"/>
									<OnUpdate>
										ScrollingEdit_OnUpdate(self, elapsed, self:GetParent());
									</OnUpdate>
									<OnEscapePressed function="EditBox_ClearFocus"/>
									<OnEditFocusLost>
										self:HighlightText(0, 0);
									</OnEditFocusLost>
								</Scripts>
								<FontString inherits="GameFontHighlight"/>
							</EditBox>
						</ScrollChild>
					</ScrollFrame>
				</Frames>
				<Scripts>
					<OnLoad>
						self:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b);
						self:SetBackdropColor(0.0, 0.0, 0.0, 0.9);
					</OnLoad>
				</Scripts>
			</Frame>
			<Button name="$parentAcceptButton" inherits="UIPanelButtonTemplate" text="ACCEPT">
				<Size x="90" y="22"/>
				<Anchors>
					<Anchor point="BOTTOMLEFT" x="24" y="16"/>
				</Anchors>
				<Scripts>
					<OnClick function="GuildTextEditFrame_OnAccept"/>
				</Scripts>
			</Button>
			<Button name="$parentCloseButton" inherits="UIPanelButtonTemplate" text="CLOSE">
				<Size x="90" y="22"/>
				<Anchors>
					<Anchor point="BOTTOMRIGHT" x="-24" y="16"/>
				</Anchors>
				<Scripts>
					<OnClick>
						self:GetParent():Hide();
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad function="GuildTextEditFrame_OnLoad"/>
			<OnHide>
				PlaySound("igMainMenuOptionCheckBoxOff");
			</OnHide>
		</Scripts>
	</Frame>
	<Frame name="GuildLogFrame" toplevel="true" frameStrata="DIALOG" enableMouse="true" hidden="true" parent="GuildFrame" inherits="TranslucentFrameTemplate">
		<Size>
			<AbsDimension x="384" y="0"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT" relativeTo="GuildFrame" relativePoint="TOPRIGHT" x="8" y="0"/>
			<Anchor point="BOTTOMLEFT" relativeTo="GuildFrame" relativePoint="BOTTOMRIGHT" x="8" y="0"/>
		</Anchors>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentTitle" inherits="GameFontNormal" text="GUILD_EVENT_LOG">
					<Anchors>
						<Anchor point="TOPLEFT" x="24" y="-18"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button name="$parentCloseButton" inherits="UIPanelCloseButton">
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="-4" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Frame name="GuildLogContainer">
				<Anchors>
					<Anchor point="TOPLEFT" x="22" y="-36"/>
					<Anchor point="TOPRIGHT" x="-22" y="-36"/>
					<Anchor point="BOTTOM" x="0" y="42"/>
				</Anchors>
				<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
					<EdgeSize>
						<AbsValue val="12"/>
					</EdgeSize>
					<TileSize>
						<AbsValue val="8"/>
					</TileSize>
					<BackgroundInsets>
						<AbsInset left="1" right="1" top="1" bottom="1"/>
					</BackgroundInsets>
				</Backdrop>
				<Frames>
					<ScrollFrame name="GuildLogScrollFrame" inherits="MinimalScrollFrameTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" x="8" y="-4"/>
							<Anchor point="TOPRIGHT" x="-25" y="-4"/>
							<Anchor point="BOTTOM" x="0" y="5"/>
						</Anchors>
						<ScrollChild>
							<Frame>
								<Size x="10" y="10"/>
								<Frames>
									<SimpleHTML name="GuildLogHTMLFrame">
										<Size x="304" y="10"/>
										<Anchors>
											<Anchor point="TOPLEFT" x="0" y="-4"/>
										</Anchors>
										<FontString inherits="GameFontHighlight" justifyH="LEFT"/>
									</SimpleHTML>
								</Frames>
							</Frame>
						</ScrollChild>
					</ScrollFrame>
				</Frames>
				<Scripts>
					<OnLoad>
						self:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b);
						self:SetBackdropColor(0.0, 0.0, 0.0, 0.9);
					</OnLoad>
				</Scripts>
			</Frame>
			<Button name="$parentCloseButton" inherits="UIPanelButtonTemplate" text="CLOSE">
				<Size x="90" y="22"/>
				<Anchors>
					<Anchor point="BOTTOMRIGHT" x="-24" y="16"/>
				</Anchors>
				<Scripts>
					<OnClick>
						self:GetParent():Hide();
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad function="GuildLogFrame_OnLoad"/>
			<OnEvent function="GuildLogFrame_Update"/>
			<OnShow>
				GuildViewLogButton:LockHighlight();
				QueryGuildEventLog();
				PlaySound("igMainMenuOptionCheckBoxOn");
			</OnShow>
			<OnHide>
				PlaySound("igMainMenuOptionCheckBoxOff");
				GuildViewLogButton:UnlockHighlight();
			</OnHide>
		</Scripts>
	</Frame>
</Ui>