<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="FriendsFrame.lua"/>
	<Button name="FriendsFrameButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="298" y="31"/>
		</Size>
		<Frames>
			<Frame name="$parentButtonText" setAllPoints="true">
				<Layers>
					<Layer level="BORDER">
						<FontString name="$parentName" inherits="GameFontNormal" justifyH="LEFT">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="10" y="-3"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<Texture name="$parentLink" file="Interface/FriendsFrame/UI-FriendsFrame-Link" hidden="true">
							<Size x="16" y="16"/>
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentName" relativePoint="RIGHT">
									<Offset x="0" y="0"/>
								</Anchor>
							</Anchors>
						</Texture>
						<FontString name="$parentLocation" inherits="GameFontNormal" justifyH="LEFT">
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentName" relativePoint="RIGHT"/>
								<Anchor point="TOPRIGHT">
									<Offset>
										<AbsDimension x="10" y="-3"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentInfo" inherits="GameFontHighlightSmall" justifyH="LEFT">
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parentName" relativePoint="BOTTOMLEFT"/>
							</Anchors>
						</FontString>
						<FontString name="$parentNoteHiddenText" inherits="GameFontNormalSmall" justifyH="LEFT" hidden="true">
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentInfo" relativePoint="RIGHT">
									<Offset x="5" y="0"/>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentNoteText" inherits="GameFontNormalSmall" justifyH="LEFT">
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentInfo" relativePoint="RIGHT">
									<Offset x="2" y="0"/>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Button name="$parentSummonButton" inherits="ActionButtonTemplate">
						<Size x="24" y="24"/>
						<Anchors>
							<Anchor point="LEFT">
								<Offset x="12" y="1"/>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<Texture name="$parentIcon"/>
							</Layer>
							<Layer level="ARTWORK">
								<Texture name="$parentFlash" file="Interface\Buttons\UI-QuickslotRed" hidden="true"/>
								<FontString name="$parentHotKey" inherits="NumberFontNormalSmallGray" justifyH="RIGHT">
									<Size>
										<AbsDimension x="32" y="10"/>
									</Size>
									<Anchors>
										<Anchor point="TOPLEFT">
											<Offset>
												<AbsDimension x="-2" y="-2"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
								<FontString name="$parentCount" inherits="NumberFontNormal" justifyH="RIGHT">
									<Anchors>
										<Anchor point="BOTTOMRIGHT">
											<Offset>
												<AbsDimension x="-2" y="2"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
							<Layer level="OVERLAY">
								<FontString name="$parentName" inherits="GameFontHighlightSmallOutline">
									<Size>
										<AbsDimension x="32" y="10"/>
									</Size>
									<Anchors>
										<Anchor point="BOTTOM">
											<Offset>
												<AbsDimension x="0" y="2"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Frames>
							<Cooldown name="$parentCooldown" inherits="CooldownFrameTemplate">
								<Size x="28" y="28"/>
								<Anchors>
									<Anchor point="CENTER">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Cooldown>
						</Frames>
						<Scripts>
							<OnLoad>
								getglobal(self:GetName().."Icon"):SetTexture("Interface\\Icons\\Spell_Shadow_Teleport");
								self:RegisterEvent("SPELL_UPDATE_COOLDOWN");
							</OnLoad>
							<OnEvent>
								FriendsFrame_SummonButton_OnEvent(self, event, ...);
							</OnEvent>
							<OnShow>
								FriendsFrame_SummonButton_OnShow(self)
							</OnShow>
							<OnClick>
								FriendsFrame_ClickSummonButton(self)
							</OnClick>
							<OnEnter>
								GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
								GameTooltip:AddLine(RAF_SUMMON_LINKED, 1, 1, 1, 1);
								if ( self.duration ) then
									GameTooltip:AddLine(COOLDOWN_REMAINING .. " " .. SecondsToTime(self.duration - (GetTime() - self.start)), 1, 1, 1, 1);
								end
								if ( SHOW_NEWBIE_TIPS == "1" ) then
									GameTooltip:AddLine(NEWBIE_TOOLTIP_RAF_SUMMON_LINKED, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1)
								end
								GameTooltip:Show();
							</OnEnter>
							<OnLeave>
								GameTooltip:Hide();
							</OnLeave>
						</Scripts>
						<NormalTexture name="$parentNormalTexture" file="Interface\Buttons\UI-Quickslot2">
							<Size>
								<AbsDimension x="40" y="40"/>
							</Size>
							<Anchors>
								<Anchor point="CENTER">
									<Offset>
										<AbsDimension x="0" y="-1"/>
									</Offset>
								</Anchor>
							</Anchors>
						</NormalTexture>
						<PushedTexture file="Interface\Buttons\UI-Quickslot-Depress"/>
						<HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
					</Button>
					<Button name="$parentNote">
						<Size x="7" y="8"/>
						<Anchors>
							<Anchor point="RIGHT" relativeTo="$parentName" relativePoint="LEFT">
								<Offset x="0" y="0"/>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<Texture name="$parentIcon" file="Interface/FriendsFrame/UI-FriendsFrame-Note">
									<Size x="7" y="8"/>
									<Anchors>
										<Anchor point="TOPLEFT"/>
									</Anchors>
								</Texture>
							</Layer>
						</Layers>
						<Scripts>
							<OnLoad>
								self:RegisterForClicks("LeftButtonUp", "RightButtonUp");
							</OnLoad>
							<OnClick>
								FriendsFrame.NotesID = self:GetParent():GetParent():GetID();
								local dialog = StaticPopup_Show("SET_FRIENDNOTE", GetFriendInfo(FriendsFrame.NotesID));
								PlaySound("igCharacterInfoClose");
							</OnClick>
						</Scripts>
						<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD">
							<Size x="7" y="8"/>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset x="-1" y="0"/>
								</Anchor>
							</Anchors>
						</HighlightTexture>
					</Button>
				</Frames>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad>
				self:RegisterForClicks("LeftButtonUp", "RightButtonUp");
			</OnLoad>
			<OnClick>
				FriendsFrameFriendButton_OnClick(self, button);
				PlaySound("igMainMenuOptionCheckBoxOn");
			</OnClick>
		</Scripts>
		<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/>
	</Button>
	<Button name="FriendsFrameIgnoreButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="298" y="16"/>
		</Size>
		<Frames>
			<Frame name="$parentButtonText" setAllPoints="true">
				<Layers>
					<Layer level="BORDER">
						<FontString name="$parentName" inherits="GameFontNormal">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="10" y="-3"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
		</Frames>
		<Scripts>
			<OnClick>
				FriendsFrameIgnoreButton_OnClick(self);
				PlaySound("igMainMenuOptionCheckBoxOn");
			</OnClick>
		</Scripts>
		<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/>
	</Button>
	<Button name="FriendsFrameMuteButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="298" y="16"/>
		</Size>
		<Frames>
			<Frame name="$parentButtonText" setAllPoints="true">
				<Layers>
					<Layer level="BORDER">
						<FontString name="$parentName" inherits="GameFontNormal">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="10" y="-3"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
		</Frames>
		<Scripts>
			<OnClick>
				FriendsFrameMuteButton_OnClick(self);
				PlaySound("igMainMenuOptionCheckBoxOn");
			</OnClick>
		</Scripts>
		<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/>
	</Button>
	<Button name="FriendsFrameWhoButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="298" y="16"/>
		</Size>
		<Layers>
			<Layer level="BORDER">
				<FontString name="$parentName" inherits="GameFontNormalSmall" justifyH="LEFT">
					<Size>
						<AbsDimension x="88" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="10" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentVariable" inherits="GameFontHighlightSmall" justifyH="LEFT">
					<Size>
						<AbsDimension x="95" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentName" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentLevel" inherits="GameFontHighlightSmall" justifyH="CENTER">
					<Size>
						<AbsDimension x="20" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentVariable" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="2" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentClass" inherits="GameFontHighlightSmall" justifyH="LEFT">
					<Size>
						<AbsDimension x="80" y="8"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentLevel" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="12" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<!--
				<FontString name="$parentGroup" inherits="GameFontHighlightSmall" justifyH="CENTER">
					<Size>
						<AbsDimension x="45" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentClass" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="-2" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				-->
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				self:RegisterForClicks("LeftButtonUp", "RightButtonUp");
			</OnLoad>
			<OnClick>
				FriendsFrameWhoButton_OnClick(self, button);
				PlaySound("igMainMenuOptionCheckBoxOn");
			</OnClick>
		</Scripts>
		<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD">
			<Size>
				<AbsDimension x="298" y="16"/>
			</Size>
			<Anchors>
				<Anchor point="TOP">
					<Offset>
						<AbsDimension x="5" y="-2"/>
					</Offset>
				</Anchor>
			</Anchors>
		</HighlightTexture>
	</Button>
	<Button name="WhoFrameColumnHeaderTemplate" 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
					SortWho(self.sortType);
				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="FriendsFrameGuildPlayerStatusButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="298" y="16"/>
		</Size>
		<Layers>
			<Layer level="BORDER">
				<FontString name="$parentName" inherits="GameFontNormalSmall" justifyH="LEFT">
					<Size>
						<AbsDimension x="78" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="14" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentZone" inherits="GameFontHighlightSmall" justifyH="LEFT">
					<Size>
						<AbsDimension x="90" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentName" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="3" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentLevel" inherits="GameFontHighlightSmall" justifyH="CENTER">
					<Size>
						<AbsDimension x="20" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentZone" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="4" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentClass" inherits="GameFontHighlightSmall" justifyH="LEFT">
					<Size>
						<AbsDimension x="80" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentLevel" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="12" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentGroup" inherits="GameFontHighlightSmall" justifyH="CENTER">
					<Size>
						<AbsDimension x="40" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentClass" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				self:RegisterForClicks("LeftButtonUp", "RightButtonUp");
			</OnLoad>
			<OnClick>
				FriendsFrameGuildStatusButton_OnClick(self, button);
			</OnClick>
			<OnEnter>
				GameTooltip_AddNewbieTip(self, GUILD_MEMBER_OPTIONS, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_GUILD_MEMBER_OPTIONS, 1);
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
		<HighlightTexture file="Interface\FriendsFrame\UI-FriendsFrame-HighlightBar" alphaMode="ADD">
			<Size>
				<AbsDimension x="298" y="16"/>
			</Size>
			<Anchors>
				<Anchor point="TOP">
					<Offset>
						<AbsDimension x="5" y="-2"/>
					</Offset>
				</Anchor>
			</Anchors>
		</HighlightTexture>
	</Button>
	<Button name="FriendsFrameGuildStatusButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="298" y="16"/>
		</Size>
		<Layers>
			<Layer level="BORDER">
				<FontString name="$parentName" inherits="GameFontNormalSmall" justifyH="LEFT">
					<Size>
						<AbsDimension x="75" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="14" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentRank" inherits="GameFontHighlightSmall" justifyH="LEFT">
					<Size>
						<AbsDimension x="55" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentName" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="5" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentNote" inherits="GameFontHighlightSmall" justifyH="LEFT">
					<Size>
						<AbsDimension x="85" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentRank" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="11" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentOnline" inherits="GameFontHighlightSmall" justifyH="LEFT">
					<Size>
						<AbsDimension x="80" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentNote" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="10" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				self:RegisterForClicks("LeftButtonUp", "RightButtonUp");
			</OnLoad>
			<OnClick>
				FriendsFrameGuildStatusButton_OnClick(self, button);
			</OnClick>
		</Scripts>
		<HighlightTexture file="Interface\FriendsFrame\UI-FriendsFrame-HighlightBar" alphaMode="ADD">
			<Size>
				<AbsDimension x="298" y="16"/>
			</Size>
			<Anchors>
				<Anchor point="TOP">
					<Offset>
						<AbsDimension x="5" y="-2"/>
					</Offset>
				</Anchor>
			</Anchors>
		</HighlightTexture>
	</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);
				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>
	<CheckButton name="GuildControlPopupFrameCheckboxTemplate" virtual="true">
		<Size>
			<AbsDimension x="20" y="20"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentText" inherits="GameFontNormalSmall">
					<Anchors>
						<Anchor point="LEFT" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="1" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnClick>
				if ( self:GetChecked() ) then
					PlaySound("igMainMenuOptionCheckBoxOff");
				else
					PlaySound("igMainMenuOptionCheckBoxOn");
				end
				GuildControlSetRankFlag(self:GetID(), self:GetChecked());
				GuildControlPopupAcceptButton:Enable();
			</OnClick>
		</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>
	<Button name="GuildBankTabPermissionsTabTemplate" virtual="true">
		<Size x="26" y="32"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentBackground" file="Interface\GuildBankFrame\UI-GuildFrame-PermissionTab">
					<Size>
						<AbsDimension x="32" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnClick>
				GuildBankTabPermissionsTab_OnClick(self:GetID());
			</OnClick>
			<OnEnter>
				if(self.tooltip) then
					GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
					GameTooltip:SetText(self.tooltip);
				end
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
		<ButtonText name="$parentText">
			<Size>
				<AbsDimension x="50" y="8"/>
			</Size>
			<Anchors>
				<Anchor point="CENTER" relativeTo="$parentBackground">
					<Offset>
						<AbsDimension x="0" y="-5"/>
					</Offset>
				</Anchor>
			</Anchors>
		</ButtonText>
		<NormalFont style="GameFontNormalSmall"/>
		<HighlightFont style="GameFontHighlightSmall"/>
		<DisabledFont style="GameFontDisableSmall"/>
		<HighlightTexture file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parentBackground">
					<Offset>
						<AbsDimension x="6" y="0"/>
					</Offset>
				</Anchor>
				<Anchor point="BOTTOMRIGHT" relativeTo="$parentBackground">
					<Offset>
						<AbsDimension x="-7" y="-7"/>
					</Offset>
				</Anchor>
			</Anchors>
		</HighlightTexture>
	</Button>
	<Button name="FriendsFrameTabTemplate" inherits="CharacterFrameTabButtonTemplate" virtual="true">
		<Scripts>
			<OnClick>
				PanelTemplates_Tab_OnClick(self, FriendsFrame);
				FriendsFrame_OnShow();
				GuildControlPopupFrame:Hide();
				GuildMemberDetailFrame:Hide();
				GuildInfoFrame:Hide();
				GuildFrame:Hide();
			</OnClick>
		</Scripts>
	</Button>
	<Frame name="FriendsFrame" toplevel="true" parent="UIParent" movable="true" enableMouse="true" hidden="true">
		<Size>
			<AbsDimension x="384" y="512"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT">
				<Offset>
					<AbsDimension x="0" y="-104"/>
				</Offset>
			</Anchor>
		</Anchors>
		<HitRectInsets>
			<AbsInset left="0" right="30" top="0" bottom="45"/>
		</HitRectInsets>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture file="Interface\FriendsFrame\FriendsFrameScrollIcon">
					<Size>
						<AbsDimension x="60" y="60"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="7" y="-6"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="FriendsFrameTopLeft" file="Interface\PaperDollInfoFrame\UI-Character-General-TopLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="FriendsFrameTopRight" file="Interface\PaperDollInfoFrame\UI-Character-General-TopRight">
					<Size>
						<AbsDimension x="128" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="FriendsFrameBottomLeft" file="Interface\FriendsFrame\UI-FriendsFrame-BotLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="FriendsFrameBottomRight" file="Interface\FriendsFrame\UI-FriendsFrame-BotRight">
					<Size>
						<AbsDimension x="128" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<FontString name="FriendsFrameTitleText" inherits="GameFontNormal">
					<Size>
						<AbsDimension x="250" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="3" y="-16"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="FriendsDropDown" inherits="UIDropDownMenuTemplate"/>
			<Button name="FriendsFrameCloseButton" inherits="UIPanelCloseButton">
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="-30" y="-8"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Frame name="FriendsListFrame" hidden="true" setAllPoints="true">
				<Frames>
					<Button name="FriendsFrameToggleTab1" inherits="TabButtonTemplate" text="FRIENDS" id="1">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="FriendsFrame">
								<Offset>
									<AbsDimension x="70" y="-39"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								PanelTemplates_SelectTab(self);
								PanelTemplates_TabResize(self, 0);
								getglobal(self:GetName().."HighlightTexture"):SetWidth(self:GetTextWidth() + 31);
							</OnLoad>
						</Scripts>
					</Button>
					<Button name="FriendsFrameToggleTab2" inherits="TabButtonTemplate" text="IGNORE" id="2">
						<Anchors>
							<Anchor point="LEFT" relativeTo="FriendsFrameToggleTab1" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnShow>
								PanelTemplates_DeselectTab(self);
							</OnShow>
							<OnClick>
								FriendsFrame.showFriendsList = nil;
								FriendsFrame.showMutedList = nil;
								FriendsFrame_Update();
							</OnClick>
						</Scripts>
					</Button>
					<Button name="FriendsFrameToggleTab3" inherits="TabButtonTemplate" text="MUTED" id="3">
						<Anchors>
							<Anchor point="LEFT" relativeTo="FriendsFrameToggleTab2" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnShow>
								PanelTemplates_DeselectTab(self);
							</OnShow>
							<OnClick>
								FriendsFrame.showFriendsList = nil;
								FriendsFrame.showMutedList = 1;
								FriendsFrame_Update();
							</OnClick>
						</Scripts>
					</Button>
					<Button name="FriendsFrameAddFriendButton" inherits="UIPanelButtonTemplate" text="ADD_FRIEND">
						<Size>
							<AbsDimension x="131" y="21"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMLEFT" relativeTo="FriendsFrame">
								<Offset>
									<AbsDimension x="17" y="107"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								if ( UnitIsPlayer("target") and UnitCanCooperate("player", "target") ) then
									AddFriend("target");
								else
									StaticPopup_Show("ADD_FRIEND");
								end
							</OnClick>
							<OnEnter>
								GameTooltip_AddNewbieTip(self, ADD_FRIEND, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_ADDFRIEND, 1);
							</OnEnter>
							<OnLeave>
								GameTooltip:Hide();
							</OnLeave>
						</Scripts>
					</Button>
					<Button name="FriendsFrameRemoveFriendButton" inherits="UIPanelButtonTemplate" text="REMOVE_FRIEND">
						<Size>
							<AbsDimension x="131" y="21"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameAddFriendButton" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-5"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self:SetFrameLevel( self:GetFrameLevel() + 3 );
							</OnLoad>
							<OnClick>
								FriendsFrame_RemoveFriend();
							</OnClick>
							<OnEnter>
								GameTooltip_AddNewbieTip(self, REMOVE_FRIEND, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_REMOVEFRIEND, 1);
							</OnEnter>
							<OnLeave>
								GameTooltip:Hide();
							</OnLeave>
						</Scripts>
					</Button>
					<Button name="FriendsFrameSendMessageButton" inherits="UIPanelButtonTemplate" text="SEND_MESSAGE">
						<Size>
							<AbsDimension x="131" y="21"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT" relativeTo="FriendsFrameAddFriendButton" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="66" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								FriendsFrame_SendMessage();
							</OnClick>
							<OnEnter>
								GameTooltip_AddNewbieTip(self, SEND_MESSAGE, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_SENDMESSAGE, 1);
							</OnEnter>
							<OnLeave>
								GameTooltip:Hide();
							</OnLeave>
						</Scripts>
					</Button>
					<Button name="FriendsFrameGroupInviteButton" inherits="UIPanelButtonTemplate" text="GROUP_INVITE">
						<Size>
							<AbsDimension x="131" y="21"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameSendMessageButton" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-5"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								FriendsFrame_GroupInvite();
							</OnClick>
							<OnEnter>
								GameTooltip_AddNewbieTip(self, GROUP_INVITE, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_GROUPINVITE, 1);
							</OnEnter>
							<OnLeave>
								GameTooltip:Hide();
							</OnLeave>
						</Scripts>
					</Button>
					<Button name="FriendsFrameFriendButton1" inherits="FriendsFrameButtonTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="FriendsFrame">
								<Offset>
									<AbsDimension x="23" y="-76"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameFriendButton2" inherits="FriendsFrameButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameFriendButton1" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameFriendButton3" inherits="FriendsFrameButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameFriendButton2" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameFriendButton4" inherits="FriendsFrameButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameFriendButton3" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameFriendButton5" inherits="FriendsFrameButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameFriendButton4" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameFriendButton6" inherits="FriendsFrameButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameFriendButton5" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameFriendButton7" inherits="FriendsFrameButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameFriendButton6" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameFriendButton8" inherits="FriendsFrameButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameFriendButton7" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameFriendButton9" inherits="FriendsFrameButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameFriendButton8" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameFriendButton10" inherits="FriendsFrameButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameFriendButton9" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<ScrollFrame name="FriendsFrameFriendsScrollFrame" inherits="FauxScrollFrameTemplate">
						<Size>
							<AbsDimension x="296" y="304"/>
						</Size>
						<Anchors>
							<Anchor point="TOPRIGHT" relativeTo="FriendsFrame">
								<Offset>
									<AbsDimension x="-67" y="-75"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
								<Texture name="$parentScrollBarTop" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
									<Size>
										<AbsDimension x="31" y="256"/>
									</Size>
									<Anchors>
										<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
											<Offset>
												<AbsDimension x="-2" y="5"/>
											</Offset>
										</Anchor>
									</Anchors>
									<TexCoords left="0" right="0.484375" top="0" bottom="1.0"/>
								</Texture>
								<Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
									<Size>
										<AbsDimension x="31" y="106"/>
									</Size>
									<Anchors>
										<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
											<Offset>
												<AbsDimension x="-2" y="-2"/>
											</Offset>
										</Anchor>
									</Anchors>
									<TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625"/>
								</Texture>
							</Layer>
						</Layers>
						<Scripts>
							<OnVerticalScroll>
								FauxScrollFrame_OnVerticalScroll(self, offset, FRIENDS_FRAME_FRIEND_HEIGHT, FriendsList_Update)
							</OnVerticalScroll>
						</Scripts>
					</ScrollFrame>
				</Frames>
			</Frame>
			<Frame name="IgnoreListFrame" hidden="true" setAllPoints="true">
				<Frames>
					<Button name="IgnoreFrameToggleTab1" inherits="TabButtonTemplate" text="FRIENDS" id="1">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="FriendsFrame">
								<Offset>
									<AbsDimension x="70" y="-39"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnShow>
								PanelTemplates_DeselectTab(self);
							</OnShow>
							<OnClick>
								FriendsFrame.showFriendsList = 1;
								FriendsFrame.showMutedList = nil;
								FriendsFrame_Update();
							</OnClick>
						</Scripts>
					</Button>
					<Button name="IgnoreFrameToggleTab2" inherits="TabButtonTemplate" text="IGNORE" id="2">
						<Anchors>
							<Anchor point="LEFT" relativeTo="IgnoreFrameToggleTab1" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								PanelTemplates_SelectTab(self);
								PanelTemplates_TabResize(self, 0);
								getglobal(self:GetName().."HighlightTexture"):SetWidth(self:GetTextWidth() + 31);
							</OnLoad>
						</Scripts>
					</Button>
					<Button name="IgnoreFrameToggleTab3" inherits="TabButtonTemplate" text="MUTED" id="3">
						<Anchors>
							<Anchor point="LEFT" relativeTo="IgnoreFrameToggleTab2" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnShow>
								PanelTemplates_DeselectTab(self);
							</OnShow>
							<OnClick>
								FriendsFrame.showFriendsList = nil;
								FriendsFrame.showMutedList = 1;
								FriendsFrame_Update();
							</OnClick>
						</Scripts>
					</Button>
					<Button name="FriendsFrameIgnorePlayerButton" inherits="UIPanelButtonTemplate" text="IGNORE_PLAYER">
						<Size>
							<AbsDimension x="131" y="21"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMLEFT" relativeTo="FriendsFrame">
								<Offset>
									<AbsDimension x="17" y="81"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self:SetFrameLevel( self:GetFrameLevel() + 3 );
							</OnLoad>
							<OnClick>
								if ( UnitCanCooperate("player", "target") ) then
									AddIgnore("target");
								else
									StaticPopup_Show("ADD_IGNORE");
								end
							</OnClick>
							<OnEnter>
								GameTooltip_AddNewbieTip(self, IGNORE_PLAYER, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_IGNOREPLAYER, 1);
							</OnEnter>
							<OnLeave>
								GameTooltip:Hide();
							</OnLeave>
						</Scripts>
					</Button>
					<Button name="FriendsFrameStopIgnoreButton" inherits="UIPanelButtonTemplate" text="STOP_IGNORE">
						<Size>
							<AbsDimension x="131" y="21"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT" relativeTo="FriendsFrameIgnorePlayerButton" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="62" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self:SetFrameLevel( self:GetFrameLevel() + 3 );
							</OnLoad>
							<OnClick>
								FriendsFrame_UnIgnore();
							</OnClick>
							<OnEnter>
								GameTooltip_AddNewbieTip(self, STOP_IGNORE, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_STOPIGNORE, 1);
							</OnEnter>
							<OnLeave>
								GameTooltip:Hide();
							</OnLeave>
						</Scripts>
					</Button>
					<Button name="FriendsFrameIgnoreButton1" inherits="FriendsFrameIgnoreButtonTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="FriendsFrame">
								<Offset>
									<AbsDimension x="23" y="-80"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameIgnoreButton2" inherits="FriendsFrameIgnoreButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton1" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameIgnoreButton3" inherits="FriendsFrameIgnoreButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton2" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameIgnoreButton4" inherits="FriendsFrameIgnoreButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton3" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameIgnoreButton5" inherits="FriendsFrameIgnoreButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton4" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameIgnoreButton6" inherits="FriendsFrameIgnoreButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton5" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameIgnoreButton7" inherits="FriendsFrameIgnoreButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton6" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameIgnoreButton8" inherits="FriendsFrameIgnoreButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton7" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameIgnoreButton9" inherits="FriendsFrameIgnoreButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton8" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameIgnoreButton10" inherits="FriendsFrameIgnoreButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton9" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameIgnoreButton11" inherits="FriendsFrameIgnoreButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton10" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameIgnoreButton12" inherits="FriendsFrameIgnoreButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton11" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameIgnoreButton13" inherits="FriendsFrameIgnoreButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton12" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameIgnoreButton14" inherits="FriendsFrameIgnoreButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton13" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameIgnoreButton15" inherits="FriendsFrameIgnoreButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton14" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameIgnoreButton16" inherits="FriendsFrameIgnoreButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton15" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameIgnoreButton17" inherits="FriendsFrameIgnoreButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton16" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameIgnoreButton18" inherits="FriendsFrameIgnoreButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton17" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameIgnoreButton19" inherits="FriendsFrameIgnoreButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton18" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameIgnoreButton20" inherits="FriendsFrameIgnoreButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton19" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<ScrollFrame name="FriendsFrameIgnoreScrollFrame" inherits="FauxScrollFrameTemplate">
						<Size>
							<AbsDimension x="296" y="332"/>
						</Size>
						<Anchors>
							<Anchor point="TOPRIGHT" relativeTo="FriendsFrame">
								<Offset>
									<AbsDimension x="-67" y="-75"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
								<Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
									<Size>
										<AbsDimension x="31" y="256"/>
									</Size>
									<Anchors>
										<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
											<Offset>
												<AbsDimension x="-2" y="5"/>
											</Offset>
										</Anchor>
									</Anchors>
									<TexCoords left="0" right="0.484375" top="0" bottom="1.0"/>
								</Texture>
								<Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
									<Size>
										<AbsDimension x="31" y="106"/>
									</Size>
									<Anchors>
										<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
											<Offset>
												<AbsDimension x="-2" y="-2"/>
											</Offset>
										</Anchor>
									</Anchors>
									<TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625"/>
								</Texture>
							</Layer>
						</Layers>
						<Scripts>
							<OnVerticalScroll>
								FauxScrollFrame_OnVerticalScroll(self, offset, FRIENDS_FRAME_IGNORE_HEIGHT, IgnoreList_Update);
							</OnVerticalScroll>
						</Scripts>
					</ScrollFrame>
				</Frames>
			</Frame>
			<Frame name="MutedListFrame" hidden="true" setAllPoints="true">
				<Frames>
					<Button name="MutedFrameToggleTab1" inherits="TabButtonTemplate" text="FRIENDS" id="1">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="FriendsFrame">
								<Offset>
									<AbsDimension x="70" y="-39"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnShow>
								PanelTemplates_DeselectTab(self);
							</OnShow>
							<OnClick>
								FriendsFrame.showMutedList = nil;
								FriendsFrame.showFriendsList = 1;
								FriendsFrame_Update();
							</OnClick>
						</Scripts>
					</Button>
					<Button name="MutedFrameToggleTab2" inherits="TabButtonTemplate" text="IGNORE" id="2">
						<Anchors>
							<Anchor point="LEFT" relativeTo="MutedFrameToggleTab1" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnShow>
								PanelTemplates_DeselectTab(self);
							</OnShow>
							<OnClick>
								FriendsFrame.showMutedList = nil;
								FriendsFrame.showFriendsList = nil;
								FriendsFrame_Update();
							</OnClick>
						</Scripts>
					</Button>
					<Button name="MutedFrameToggleTab3" inherits="TabButtonTemplate" text="MUTED" id="3">
						<Anchors>
							<Anchor point="LEFT" relativeTo="MutedFrameToggleTab2" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								PanelTemplates_SelectTab(self);
								PanelTemplates_TabResize(self, 0);
								getglobal(self:GetName().."HighlightTexture"):SetWidth(self:GetTextWidth() + 31);
							</OnLoad>
						</Scripts>
					</Button>
					<Button name="FriendsFrameMutedPlayerButton" inherits="UIPanelButtonTemplate" text="MUTE_PLAYER">
						<Size>
							<AbsDimension x="131" y="21"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMLEFT" relativeTo="FriendsFrame">
								<Offset>
									<AbsDimension x="17" y="81"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self:SetFrameLevel( self:GetFrameLevel() + 3 );
							</OnLoad>
							<OnClick>
								if ( UnitCanCooperate("player", "target") ) then
									AddMute(UnitName("target"));
								else
									StaticPopup_Show("ADD_MUTE");
								end
							</OnClick>
							<OnEnter>
								GameTooltip_AddNewbieTip(self, MUTE_PLAYER, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_MUTEPLAYER, 1);
							</OnEnter>
							<OnLeave>
								GameTooltip:Hide();
							</OnLeave>
						</Scripts>
					</Button>
					<Button name="FriendsFrameUnmuteButton" inherits="UIPanelButtonTemplate" text="UNMUTE">
						<Size>
							<AbsDimension x="131" y="21"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT" relativeTo="FriendsFrameMutedPlayerButton" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="62" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self:SetFrameLevel( self:GetFrameLevel() + 3 );
							</OnLoad>
							<OnClick>
								FriendsFrame_UnMute();
							</OnClick>
							<OnEnter>
								GameTooltip_AddNewbieTip(self, UNMUTE, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_UNMUTE, 1);
							</OnEnter>
							<OnLeave>
								GameTooltip:Hide();
							</OnLeave>
						</Scripts>
					</Button>
					<Button name="FriendsFrameMutedButton1" inherits="FriendsFrameMuteButtonTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="FriendsFrame">
								<Offset>
									<AbsDimension x="23" y="-80"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameMutedButton2" inherits="FriendsFrameMuteButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameMutedButton1" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameMutedButton3" inherits="FriendsFrameMuteButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameMutedButton2" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameMutedButton4" inherits="FriendsFrameMuteButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameMutedButton3" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameMutedButton5" inherits="FriendsFrameMuteButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameMutedButton4" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameMutedButton6" inherits="FriendsFrameMuteButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameMutedButton5" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameMutedButton7" inherits="FriendsFrameMuteButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameMutedButton6" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameMutedButton8" inherits="FriendsFrameMuteButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameMutedButton7" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameMutedButton9" inherits="FriendsFrameMuteButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameMutedButton8" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameMutedButton10" inherits="FriendsFrameMuteButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameMutedButton9" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameMutedButton11" inherits="FriendsFrameMuteButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameMutedButton10" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameMutedButton12" inherits="FriendsFrameMuteButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameMutedButton11" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameMutedButton13" inherits="FriendsFrameMuteButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameMutedButton12" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameMutedButton14" inherits="FriendsFrameMuteButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameMutedButton13" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameMutedButton15" inherits="FriendsFrameMuteButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameMutedButton14" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameMutedButton16" inherits="FriendsFrameMuteButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameMutedButton15" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameMutedButton17" inherits="FriendsFrameMuteButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameMutedButton16" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameMutedButton18" inherits="FriendsFrameMuteButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameMutedButton17" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameMutedButton19" inherits="FriendsFrameMuteButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameMutedButton18" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="FriendsFrameMutedButton20" inherits="FriendsFrameMuteButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="FriendsFrameMutedButton19" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<ScrollFrame name="FriendsFrameMutedScrollFrame" inherits="FauxScrollFrameTemplate">
						<Size>
							<AbsDimension x="296" y="332"/>
						</Size>
						<Anchors>
							<Anchor point="TOPRIGHT" relativeTo="FriendsFrame">
								<Offset>
									<AbsDimension x="-67" y="-75"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
								<Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
									<Size>
										<AbsDimension x="31" y="256"/>
									</Size>
									<Anchors>
										<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
											<Offset>
												<AbsDimension x="-2" y="5"/>
											</Offset>
										</Anchor>
									</Anchors>
									<TexCoords left="0" right="0.484375" top="0" bottom="1.0"/>
								</Texture>
								<Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
									<Size>
										<AbsDimension x="31" y="106"/>
									</Size>
									<Anchors>
										<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
											<Offset>
												<AbsDimension x="-2" y="-2"/>
											</Offset>
										</Anchor>
									</Anchors>
									<TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625"/>
								</Texture>
							</Layer>
						</Layers>
						<Scripts>
							<OnVerticalScroll>
								FauxScrollFrame_OnVerticalScroll(self, offset, FRIENDS_FRAME_IGNORE_HEIGHT, MutedList_Update);
							</OnVerticalScroll>
						</Scripts>
					</ScrollFrame>
				</Frames>
			</Frame>
			<Frame name="WhoFrame" setAllPoints="true" hidden="true">
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="WhoFrameTotals" inherits="GameFontNormalSmall">
							<Size>
								<AbsDimension x="298" y="16"/>
							</Size>
							<Anchors>
								<Anchor point="BOTTOM">
									<Offset>
										<AbsDimension x="-10" y="127"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Button name="WhoFrameColumnHeader1" inherits="WhoFrameColumnHeaderTemplate" text="NAME">
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="20" y="-70"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								WhoFrameColumn_SetWidth(self, 83);
								self.sortType = "name";
							</OnLoad>
						</Scripts>
					</Button>
					<Button name="WhoFrameColumnHeader2" inherits="WhoFrameColumnHeaderTemplate">
						<Anchors>
							<Anchor point="LEFT" relativeTo="WhoFrameColumnHeader1" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="-2" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Frames>
							<Frame name="WhoFrameDropDown" inherits="UIDropDownMenuTemplate" id="1">
								<Anchors>
									<Anchor point="TOPLEFT">
										<Offset>
											<AbsDimension x="-15" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Layers>
									<Layer level="OVERLAY">
										<Texture name="WhoFrameDropDownHighlightTexture" file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD" hidden="true">
											<Anchors>
												<Anchor point="TOPLEFT">
													<Offset>
														<AbsDimension x="15" y="3"/>
													</Offset>
												</Anchor>
												<Anchor point="BOTTOMRIGHT">
													<Offset>
														<AbsDimension x="-30" y="-2"/>
													</Offset>
												</Anchor>
											</Anchors>
										</Texture>
									</Layer>
								</Layers>
								<Scripts>
									<OnLoad>
										WhoFrameDropDown_OnLoad(self);
									</OnLoad>
									<OnShow>
										UIDropDownMenu_Initialize(self, WhoFrameDropDown_Initialize);
										UIDropDownMenu_SetSelectedID(self, 1);
									</OnShow>
									<OnEnter>
										WhoFrameDropDownHighlightTexture:Show();
									</OnEnter>
									<OnLeave>
										WhoFrameDropDownHighlightTexture:Hide();
									</OnLeave>
									<OnMouseUp>
										if ( WHOFRAME_DROPDOWN_LIST[UIDropDownMenu_GetSelectedID(self)].sortType ) then
											SortWho(WHOFRAME_DROPDOWN_LIST[UIDropDownMenu_GetSelectedID(self)].sortType);
										end
									</OnMouseUp>
								</Scripts>
							</Frame>
						</Frames>
						<Scripts>
							<OnLoad>
								WhoFrameColumn_SetWidth(self, 105);
							</OnLoad>
						</Scripts>
					</Button>
					<Button name="WhoFrameColumnHeader3" inherits="WhoFrameColumnHeaderTemplate" text="LEVEL_ABBR">
						<Anchors>
							<Anchor point="LEFT" relativeTo="WhoFrameColumnHeader2" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="-2" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								WhoFrameColumn_SetWidth(self, 32);
								self.sortType = "level";
							</OnLoad>
						</Scripts>
					</Button>
					<Button name="WhoFrameColumnHeader4" inherits="WhoFrameColumnHeaderTemplate" text="CLASS">
						<Anchors>
							<Anchor point="LEFT" relativeTo="WhoFrameColumnHeader3" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="-2" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								WhoFrameColumn_SetWidth(self, 92);
								self.sortType = "class";
							</OnLoad>
						</Scripts>
					</Button>
					<!--
					<Button name="WhoFrameColumnHeader5" inherits="WhoFrameColumnHeaderTemplate" text="GROUP">
						<Anchors>
							<Anchor point="LEFT" relativeTo="WhoFrameColumnHeader4" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="-2" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								WhoFrameColumn_SetWidth(53);
								self.sortType = "group";
							</OnLoad>
						</Scripts>
					</Button>
					-->
					<Button name="WhoFrameButton1" inherits="FriendsFrameWhoButtonTemplate" id="1">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="WhoFrame">
								<Offset>
									<AbsDimension x="15" y="-95"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="WhoFrameButton2" inherits="FriendsFrameWhoButtonTemplate" id="2">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="WhoFrameButton1" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="WhoFrameButton3" inherits="FriendsFrameWhoButtonTemplate" id="3">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="WhoFrameButton2" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="WhoFrameButton4" inherits="FriendsFrameWhoButtonTemplate" id="4">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="WhoFrameButton3" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="WhoFrameButton5" inherits="FriendsFrameWhoButtonTemplate" id="5">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="WhoFrameButton4" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="WhoFrameButton6" inherits="FriendsFrameWhoButtonTemplate" id="6">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="WhoFrameButton5" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="WhoFrameButton7" inherits="FriendsFrameWhoButtonTemplate" id="7">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="WhoFrameButton6" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="WhoFrameButton8" inherits="FriendsFrameWhoButtonTemplate" id="8">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="WhoFrameButton7" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="WhoFrameButton9" inherits="FriendsFrameWhoButtonTemplate" id="9">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="WhoFrameButton8" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="WhoFrameButton10" inherits="FriendsFrameWhoButtonTemplate" id="10">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="WhoFrameButton9" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="WhoFrameButton11" inherits="FriendsFrameWhoButtonTemplate" id="11">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="WhoFrameButton10" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="WhoFrameButton12" inherits="FriendsFrameWhoButtonTemplate" id="12">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="WhoFrameButton11" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="WhoFrameButton13" inherits="FriendsFrameWhoButtonTemplate" id="13">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="WhoFrameButton12" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="WhoFrameButton14" inherits="FriendsFrameWhoButtonTemplate" id="14">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="WhoFrameButton13" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="WhoFrameButton15" inherits="FriendsFrameWhoButtonTemplate" id="15">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="WhoFrameButton14" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="WhoFrameButton16" inherits="FriendsFrameWhoButtonTemplate" id="16">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="WhoFrameButton15" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="WhoFrameButton17" inherits="FriendsFrameWhoButtonTemplate" id="17">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="WhoFrameButton16" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="WhoFrameGroupInviteButton" inherits="UIPanelButtonTemplate" text="GROUP_INVITE">
						<Size>
							<AbsDimension x="120" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMRIGHT">
								<Offset>
									<AbsDimension x="-40" y="82"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								InviteUnit(WhoFrame.selectedName);
							</OnClick>
						</Scripts>
					</Button>
					<Button name="WhoFrameAddFriendButton" inherits="UIPanelButtonTemplate" text="ADD_FRIEND">
						<Size>
							<AbsDimension x="120" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="RIGHT" relativeTo="WhoFrameGroupInviteButton" relativePoint="LEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								AddFriend(WhoFrame.selectedName);
							</OnClick>
						</Scripts>
					</Button>
					<Button name="WhoFrameWhoButton" inherits="UIPanelButtonTemplate" text="REFRESH">
						<Size>
							<AbsDimension x="85" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="RIGHT" relativeTo="WhoFrameAddFriendButton" relativePoint="LEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								WhoFrameEditBox_OnEnterPressed(WhoFrameEditBox);
								WhoFrame.selectedWho = nil;
							</OnClick>
						</Scripts>
					</Button>
					<EditBox name="WhoFrameEditBox" autoFocus="false" frameStrata="HIGH" historyLines="32">
						<Size>
							<AbsDimension x="296" y="32"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOM">
								<Offset>
									<AbsDimension x="-20" y="100"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnShow>
								self:ClearFocus();
							</OnShow>
							<OnEnterPressed>
								WhoFrameEditBox_OnEnterPressed(self);
							</OnEnterPressed>
							<OnEscapePressed>
								self:ClearFocus();
							</OnEscapePressed>
						</Scripts>
						<FontString inherits="ChatFontNormal" bytes="256"/>
					</EditBox>
					<ScrollFrame name="WhoListScrollFrame" inherits="FauxScrollFrameTemplate">
						<Size>
							<AbsDimension x="296" y="287"/>
						</Size>
						<Anchors>
							<Anchor point="TOPRIGHT" relativeTo="FriendsFrame" relativePoint="TOPRIGHT">
								<Offset>
									<AbsDimension x="-67" y="-96"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnVerticalScroll>
								FauxScrollFrame_OnVerticalScroll(self, offset, FRIENDS_FRAME_WHO_HEIGHT, WhoList_Update);
							</OnVerticalScroll>
						</Scripts>
						<Layers>
							<Layer level="BACKGROUND">
								<Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
									<Size>
										<AbsDimension x="31" y="256"/>
									</Size>
									<Anchors>
										<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
											<Offset>
												<AbsDimension x="-2" y="5"/>
											</Offset>
										</Anchor>
									</Anchors>
									<TexCoords left="0" right="0.484375" top="0" bottom="1.0"/>
								</Texture>
								<Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
									<Size>
										<AbsDimension x="31" y="106"/>
									</Size>
									<Anchors>
										<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
											<Offset>
												<AbsDimension x="-2" y="-2"/>
											</Offset>
										</Anchor>
									</Anchors>
									<TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625"/>
								</Texture>
							</Layer>
						</Layers>
					</ScrollFrame>
				</Frames>
				<Scripts>
					<OnLoad>
						SetWhoToUI(0);
					</OnLoad>
					<OnShow>
						SetWhoToUI(1);
					</OnShow>
					<OnHide>
						SetWhoToUI(0);
					</OnHide>
				</Scripts>
			</Frame>
			<Frame name="GuildFrame" setAllPoints="true" hidden="true">
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="GuildFrameTotals" inherits="GameFontNormalSmall" justifyH="LEFT">
							<Size>
								<AbsDimension x="0" y="16"/>
							</Size>
							<Anchors>
								<Anchor point="BOTTOM" relativeTo="$parent" relativePoint="LEFT">
									<Offset>
										<AbsDimension x="75" y="-75"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="GuildFrameOnlineTotals" inherits="GameFontNormalSmall" justifyH="LEFT">
							<Size>
								<AbsDimension x="0" y="16"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT" relativeTo="GuildFrameTotals" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="3" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="GuildFrameNotesLabel" inherits="GameFontNormalSmall" justifyH="LEFT" text="GUILD_MOTD_LABEL">
							<Size>
								<AbsDimension x="225" y="11"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="23" y="-344"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="GuildFrameNotesText" inherits="GameFontHighlightSmall" justifyH="LEFT" justifyV="TOP">
							<Size>
								<AbsDimension x="315" y="45"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="GuildFrameNotesLabel" relativePoint="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="0" y="-3"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Frame name="GuildFrameLFGFrame">
						<Size>
							<AbsDimension x="210" y="23"/>
						</Size>
						<Anchors>
							<Anchor point="TOPRIGHT">
								<Offset>
									<AbsDimension x="-42" y="-38"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<Texture name="GuildFrameLFGFrameRight" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
									<Size>
										<AbsDimension x="12" y="28"/>
									</Size>
									<Anchors>
										<Anchor point="TOPRIGHT"/>
									</Anchors>
									<TexCoords left="0.90625" right="1.0" top="0" bottom="1.0"/>
								</Texture>
								<Texture name="GuildFrameLFGFrameMiddle" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
									<Size>
										<AbsDimension x="186" y="28"/>
									</Size>
									<Anchors>
										<Anchor point="RIGHT" relativeTo="GuildFrameLFGFrameRight" relativePoint="LEFT"/>
									</Anchors>
									<TexCoords left="0.09375" right="0.90625" top="0" bottom="1.0"/>
								</Texture>
								<Texture name="GuildFrameLFGFrameLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
									<Size>
										<AbsDimension x="12" y="28"/>
									</Size>
									<Anchors>
										<Anchor point="RIGHT" relativeTo="GuildFrameLFGFrameMiddle" relativePoint="LEFT"/>
									</Anchors>
									<TexCoords left="0" right="0.09375" top="0" bottom="1.0"/>
								</Texture>
							</Layer>
						</Layers>
						<Frames>
							<CheckButton name="GuildFrameLFGButton" virtual="true">
								<Size>
									<AbsDimension x="20" y="20"/>
								</Size>
								<Anchors>
									<Anchor point="RIGHT">
										<Offset>
											<AbsDimension x="-8" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Layers>
									<Layer level="ARTWORK">
										<FontString name="GuildFrameLFGButtonText" inherits="GameFontHighlightSmall" text="SHOW_OFFLINE_MEMBERS">
											<Anchors>
												<Anchor point="RIGHT" relativePoint="LEFT">
													<Offset>
														<AbsDimension x="-10" y="1"/>
													</Offset>
												</Anchor>
											</Anchors>
										</FontString>
									</Layer>
								</Layers>
								<Scripts>
									<OnLoad>
										self:RegisterEvent("VARIABLES_LOADED");
									</OnLoad>
									<OnEvent>
										if ( event == "VARIABLES_LOADED" ) then
											self:SetChecked(GetGuildRosterShowOffline());
										end
									</OnEvent>
									<OnClick>
										SetGuildRosterSelection(0);
										if ( self:GetChecked() ) then
											PlaySound("igMainMenuOptionCheckBoxOff");
										else
											PlaySound("igMainMenuOptionCheckBoxOn");
										end
										SetGuildRosterShowOffline(self:GetChecked());
										GuildStatus_Update();
									</OnClick>
								</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>
					</Frame>
					<Frame name="GuildPlayerStatusFrame" hidden="true">
						<Size>
							<AbsDimension x="300" y="200"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Frames>
							<Button name="GuildFrameColumnHeader1" inherits="GuildFrameColumnHeaderTemplate" text="NAME">
								<Anchors>
									<Anchor point="TOPLEFT">
										<Offset>
											<AbsDimension x="20" y="-70"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnLoad>
										WhoFrameColumn_SetWidth(self, 83);
										self.sortType = "name";
									</OnLoad>
								</Scripts>
							</Button>
							<Button name="GuildFrameColumnHeader2" inherits="GuildFrameColumnHeaderTemplate" text="ZONE">
								<Anchors>
									<Anchor point="LEFT" relativeTo="GuildFrameColumnHeader1" relativePoint="RIGHT">
										<Offset>
											<AbsDimension x="-2" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnLoad>
										WhoFrameColumn_SetWidth(self, 105);
										self.sortType = "zone";
									</OnLoad>
								</Scripts>
							</Button>
							<Button name="GuildFrameColumnHeader3" inherits="GuildFrameColumnHeaderTemplate" text="LEVEL_ABBR">
								<Anchors>
									<Anchor point="LEFT" relativeTo="GuildFrameColumnHeader2" relativePoint="RIGHT">
										<Offset>
											<AbsDimension x="-2" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnLoad>
										WhoFrameColumn_SetWidth(self, 32);
										self.sortType = "level";
									</OnLoad>
								</Scripts>
							</Button>
							<Button name="GuildFrameColumnHeader4" inherits="GuildFrameColumnHeaderTemplate" text="CLASS">
								<Anchors>
									<Anchor point="LEFT" relativeTo="GuildFrameColumnHeader3" relativePoint="RIGHT">
										<Offset>
											<AbsDimension x="-2" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnLoad>
										WhoFrameColumn_SetWidth(self, 92);
										self.sortType = "class";
									</OnLoad>
								</Scripts>
							</Button>
							<Button name="GuildFrameButton1" inherits="FriendsFrameGuildPlayerStatusButtonTemplate" id="1">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildFrame">
										<Offset>
											<AbsDimension x="15" y="-95"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildFrameButton2" inherits="FriendsFrameGuildPlayerStatusButtonTemplate" id="2">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildFrameButton1" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildFrameButton3" inherits="FriendsFrameGuildPlayerStatusButtonTemplate" id="3">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildFrameButton2" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildFrameButton4" inherits="FriendsFrameGuildPlayerStatusButtonTemplate" id="4">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildFrameButton3" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildFrameButton5" inherits="FriendsFrameGuildPlayerStatusButtonTemplate" id="5">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildFrameButton4" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildFrameButton6" inherits="FriendsFrameGuildPlayerStatusButtonTemplate" id="6">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildFrameButton5" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildFrameButton7" inherits="FriendsFrameGuildPlayerStatusButtonTemplate" id="7">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildFrameButton6" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildFrameButton8" inherits="FriendsFrameGuildPlayerStatusButtonTemplate" id="8">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildFrameButton7" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildFrameButton9" inherits="FriendsFrameGuildPlayerStatusButtonTemplate" id="9">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildFrameButton8" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildFrameButton10" inherits="FriendsFrameGuildPlayerStatusButtonTemplate" id="10">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildFrameButton9" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildFrameButton11" inherits="FriendsFrameGuildPlayerStatusButtonTemplate" id="11">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildFrameButton10" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildFrameButton12" inherits="FriendsFrameGuildPlayerStatusButtonTemplate" id="12">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildFrameButton11" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildFrameButton13" inherits="FriendsFrameGuildPlayerStatusButtonTemplate" id="13">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildFrameButton12" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
						</Frames>
					</Frame>
					<Frame name="GuildStatusFrame" hidden="true">
						<Size>
							<AbsDimension x="300" y="200"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Frames>
							<Button name="GuildFrameGuildStatusColumnHeader1" inherits="GuildFrameColumnHeaderTemplate" text="NAME">
								<Anchors>
									<Anchor point="TOPLEFT">
										<Offset>
											<AbsDimension x="20" y="-70"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnLoad>
										WhoFrameColumn_SetWidth(self, 83);
										self.sortType = "name";
									</OnLoad>
								</Scripts>
							</Button>
							<Button name="GuildFrameGuildStatusColumnHeader2" inherits="GuildFrameColumnHeaderTemplate" text="RANK">
								<Anchors>
									<Anchor point="LEFT" relativeTo="GuildFrameGuildStatusColumnHeader1" relativePoint="RIGHT">
										<Offset>
											<AbsDimension x="-2" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnLoad>
										WhoFrameColumn_SetWidth(self, 75);
										self.sortType = "rank";
									</OnLoad>
								</Scripts>
							</Button>
							<Button name="GuildFrameGuildStatusColumnHeader3" inherits="GuildFrameColumnHeaderTemplate" text="LABEL_NOTE">
								<Anchors>
									<Anchor point="LEFT" relativeTo="GuildFrameGuildStatusColumnHeader2" relativePoint="RIGHT">
										<Offset>
											<AbsDimension x="-2" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnLoad>
										WhoFrameColumn_SetWidth(self, 75);
										self.sortType = "note";
									</OnLoad>
								</Scripts>
							</Button>
							<Button name="GuildFrameGuildStatusColumnHeader4" inherits="GuildFrameColumnHeaderTemplate" text="LASTONLINE">
								<Anchors>
									<Anchor point="LEFT" relativeTo="GuildFrameGuildStatusColumnHeader3" relativePoint="RIGHT">
										<Offset>
											<AbsDimension x="-2" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnLoad>
										WhoFrameColumn_SetWidth(self, 75);
										self.sortType = "online";
									</OnLoad>
								</Scripts>
							</Button>
							<Button name="GuildFrameGuildStatusButton1" inherits="FriendsFrameGuildStatusButtonTemplate" id="1">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildFrame">
										<Offset>
											<AbsDimension x="15" y="-95"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildFrameGuildStatusButton2" inherits="FriendsFrameGuildStatusButtonTemplate" id="2">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildFrameButton1" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildFrameGuildStatusButton3" inherits="FriendsFrameGuildStatusButtonTemplate" id="3">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildFrameButton2" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildFrameGuildStatusButton4" inherits="FriendsFrameGuildStatusButtonTemplate" id="4">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildFrameButton3" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildFrameGuildStatusButton5" inherits="FriendsFrameGuildStatusButtonTemplate" id="5">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildFrameButton4" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildFrameGuildStatusButton6" inherits="FriendsFrameGuildStatusButtonTemplate" id="6">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildFrameButton5" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildFrameGuildStatusButton7" inherits="FriendsFrameGuildStatusButtonTemplate" id="7">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildFrameButton6" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildFrameGuildStatusButton8" inherits="FriendsFrameGuildStatusButtonTemplate" id="8">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildFrameButton7" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildFrameGuildStatusButton9" inherits="FriendsFrameGuildStatusButtonTemplate" id="9">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildFrameButton8" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildFrameGuildStatusButton10" inherits="FriendsFrameGuildStatusButtonTemplate" id="10">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildFrameButton9" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildFrameGuildStatusButton11" inherits="FriendsFrameGuildStatusButtonTemplate" id="11">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildFrameButton10" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildFrameGuildStatusButton12" inherits="FriendsFrameGuildStatusButtonTemplate" id="12">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildFrameButton11" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildFrameGuildStatusButton13" inherits="FriendsFrameGuildStatusButtonTemplate" id="13">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildFrameButton12" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
						</Frames>
					</Frame>
					<ScrollFrame name="GuildListScrollFrame" inherits="FauxScrollFrameTemplate">
						<Size>
							<AbsDimension x="296" y="237"/>
						</Size>
						<Anchors>
							<Anchor point="TOPRIGHT" relativeTo="GuildFrame" relativePoint="TOPRIGHT">
								<Offset>
									<AbsDimension x="-67" y="-98"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnVerticalScroll>
								FauxScrollFrame_OnVerticalScroll(self, offset, FRIENDS_FRAME_GUILD_HEIGHT, GuildStatus_Update);
							</OnVerticalScroll>
						</Scripts>
						<Layers>
							<Layer level="BACKGROUND">
								<Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
									<Size>
										<AbsDimension x="31" y="226"/>
									</Size>
									<Anchors>
										<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
											<Offset>
												<AbsDimension x="-2" y="5"/>
											</Offset>
										</Anchor>
									</Anchors>
									<TexCoords left="0" right="0.484375" top="0" bottom="0.8828125"/>
								</Texture>
								<Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
									<Size>
										<AbsDimension x="31" y="106"/>
									</Size>
									<Anchors>
										<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
											<Offset>
												<AbsDimension x="-2" y="-2"/>
											</Offset>
										</Anchor>
									</Anchors>
									<TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625"/>
								</Texture>
							</Layer>
						</Layers>
					</ScrollFrame>
					<Button name="GuildFrameGuildListToggleButton">
						<Size>
							<AbsDimension x="32" y="32"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT">
								<Offset>
									<AbsDimension x="245" y="-67"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								GuildFrameGuildListToggleButton_OnClick();
								PlaySound("igMainMenuOptionCheckBoxOn");
							</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"/>
						<ButtonText>
							<Anchors>
								<Anchor point="RIGHT">
									<Offset>
										<AbsDimension x="-32" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</ButtonText>
						<NormalFont style="GameFontNormalSmall"/>
						<PushedTextOffset>
							<AbsDimension x="0" y="0"/>
						</PushedTextOffset>
					</Button>
					<Button name="GuildFrameControlButton" inherits="UIPanelButtonTemplate" text="GUILDCONTROL">
						<Size>
							<AbsDimension x="104" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMRIGHT">
								<Offset>
									<AbsDimension x="-39" y="82"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnUpdate>
								GuildFrameControlButton_OnUpdate();
							</OnUpdate>
							<OnClick>
								if ( GuildControlPopupFrame:IsShown() ) then
									GuildControlPopupFrame:Hide();
								else
									GuildFramePopup_Show(GuildControlPopupFrame);
								end
							</OnClick>
							<OnEnter>
								GameTooltip_AddNewbieTip(self, GUILDCONTROL, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_GUILDCONTROL, 1);
							</OnEnter>
							<OnLeave>
								GameTooltip:Hide();
							</OnLeave>
						</Scripts>
						<NormalFont style="GameFontNormalSmall"/>
						<HighlightFont style="GameFontHighlightSmall"/>
						<DisabledFont style="GameFontDisableSmall"/>
					</Button>
					<Button name="GuildFrameAddMemberButton" inherits="UIPanelButtonTemplate" text="ADDMEMBER">
						<Size>
							<AbsDimension x="98" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="RIGHT" relativeTo="GuildFrameControlButton" relativePoint="LEFT">
								<Offset>
									<AbsDimension x="-2" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								StaticPopup_Show("ADD_GUILDMEMBER");
							</OnClick>
							<OnEnter>
								GameTooltip_AddNewbieTip(self, ADDMEMBER, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_ADDMEMBER, 1);
							</OnEnter>
							<OnLeave>
								GameTooltip:Hide();
							</OnLeave>
						</Scripts>
						<NormalFont style="GameFontNormalSmall"/>
						<HighlightFont style="GameFontHighlightSmall"/>
						<DisabledFont style="GameFontDisableSmall"/>
					</Button>
					<Button name="GuildFrameGuildInformationButton" inherits="UIPanelButtonTemplate" text="GUILD_INFORMATION">
						<Size>
							<AbsDimension x="123" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="RIGHT" relativeTo="GuildFrameAddMemberButton" relativePoint="LEFT">
								<Offset>
									<AbsDimension x="-2" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								ToggleGuildInfoFrame();
							</OnClick>
							<OnEnter>
								GameTooltip_AddNewbieTip(self, GUILD_INFORMATION, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_GUILD_INFORMATION, 1);
							</OnEnter>
							<OnLeave>
								GameTooltip:Hide();
							</OnLeave>
						</Scripts>
						<NormalFont style="GameFontNormalSmall"/>
						<HighlightFont style="GameFontHighlightSmall"/>
						<DisabledFont style="GameFontDisableSmall"/>
					</Button>
					<Button name="GuildMOTDEditButton">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="GuildFrameNotesText">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
							<Anchor point="BOTTOMRIGHT" relativeTo="GuildFrameNotesText">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								StaticPopup_Show("SET_GUILDMOTD");
							</OnClick>
						</Scripts>
					</Button>
				</Frames>
				<Scripts>
					<OnShow>
						GuildRoster();
					</OnShow>
					<OnHide>
						GuildControlPopupFrame:Hide();
						GuildMemberDetailFrame:Hide();
						GuildEventLogFrame:Hide();
					</OnHide>
				</Scripts>
			</Frame>
			<Frame name="GuildControlPopupFrame" toplevel="true" parent="UIParent" movable="true" enableMouse="true" hidden="true">
				<Size>
					<AbsDimension x="320" y="457"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="GuildFrame" relativePoint="TOPRIGHT">
						<Offset x="-37" y="-6"/>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture file="Interface\MacroFrame\MacroPopup-TopLeft">
							<Size>
								<AbsDimension x="256" y="256"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT"/>
							</Anchors>
						</Texture>
						<Texture file="Interface\MacroFrame\MacroPopup-TopRight">
							<Size>
								<AbsDimension x="64" y="256"/>
							</Size>
							<Anchors>
								<Anchor point="TOPRIGHT"/>
							</Anchors>
						</Texture>
						<Texture file="Interface\MacroFrame\MacroPopup-BotLeft">
							<Size>
								<AbsDimension x="256" y="64"/>
							</Size>
							<Anchors>
								<Anchor point="BOTTOMLEFT"/>
							</Anchors>
						</Texture>
						<Texture file="Interface\MacroFrame\MacroPopup-BotRight">
							<Size>
								<AbsDimension x="64" y="64"/>
							</Size>
							<Anchors>
								<Anchor point="BOTTOMRIGHT"/>
							</Anchors>
						</Texture>
						<Texture file="Interface\MacroFrame\MacroPopup-TopLeft">
							<Size>
								<AbsDimension x="256" y="20"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset x="0" y="-256"/>
								</Anchor>
								<Anchor point="BOTTOMLEFT">
									<Offset x="0" y="64"/>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="1" top="0.3125" bottom="1"/>
						</Texture>
						<Texture file="Interface\MacroFrame\MacroPopup-TopRight">
							<Size>
								<AbsDimension x="64" y="20"/>
							</Size>
							<Anchors>
								<Anchor point="TOPRIGHT">
									<Offset x="0" y="-256"/>
								</Anchor>
								<Anchor point="BOTTOMRIGHT">
									<Offset x="0" y="64"/>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="1" top="0.3125" bottom="1"/>
						</Texture>
						<FontString inherits="GameFontNormal" text="GUILDCONTROL_SELECTRANK">
							<Anchors>
								<Anchor point="TOP">
									<Offset>
										<AbsDimension x="0" y="-15"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString inherits="GameFontHighlightSmall" text="GUILDCONTROL_ALLOWRANK">
							<Anchors>
								<Anchor point="TOP">
									<Offset>
										<AbsDimension x="0" y="-106"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Frame name="GuildControlPopupFrameCheckboxes">
						<Size>
							<AbsDimension x="300" y="500"/>
						</Size>
						<Anchors>
							<Anchor point="TOPRIGHT">
								<Offset x="-22" y="1"/>
							</Anchor>
						</Anchors>
						<Frames>
							<Frame name="GuildControlPopupFrameDropDown" inherits="UIDropDownMenuTemplate">
								<Anchors>
									<Anchor point="TOP">
										<Offset>
											<AbsDimension x="0" y="-30"/>
										</Offset>
									</Anchor>
								</Anchors>
								<HitRectInsets>
									<AbsInset left="0" right="20" top="0" bottom="0"/>
								</HitRectInsets>
								<Scripts>
									<OnLoad>
										GuildControlPopupFrameDropDown_OnLoad(self);
									</OnLoad>
								</Scripts>
							</Frame>
							<Button name="GuildControlPopupFrameAddRankButton">
								<Size>
									<AbsDimension x="16" y="16"/>
								</Size>
								<Anchors>
									<Anchor point="LEFT" relativeTo="GuildControlPopupFrameDropDown" relativePoint="RIGHT">
										<Offset>
											<AbsDimension x="-15" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnUpdate>
										GuildControlPopupFrameAddRankButton_OnUpdate(self);
									</OnUpdate>
									<OnClick>
										StaticPopup_Show("ADD_GUILDRANK");
									</OnClick>
									<OnEnter>
										GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
										GameTooltip:SetText(GUILDADDRANK_BUTTON_TOOLTIP);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
								<NormalTexture file="Interface\Buttons\UI-PlusButton-Up"/>
								<PushedTexture file="Interface\Buttons\UI-PlusButton-Down"/>
								<DisabledTexture file="Interface\Buttons\UI-PlusButton-Disabled"/>
								<HighlightTexture file="Interface\Buttons\UI-PlusButton-Hilight" alphaMode="ADD"/>
							</Button>
							<Button name="GuildControlPopupFrameRemoveRankButton">
								<Size>
									<AbsDimension x="16" y="16"/>
								</Size>
								<Anchors>
									<Anchor point="LEFT" relativeTo="GuildControlPopupFrameAddRankButton" relativePoint="RIGHT">
										<Offset>
											<AbsDimension x="-2" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnUpdate>
										GuildControlPopupFrameRemoveRankButton_OnUpdate(self);
									</OnUpdate>
									<OnClick>
										GuildControlPopupFrameRemoveRankButton_OnClick();
									</OnClick>
									<OnEnter>
										GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
										GameTooltip:SetText(GUILDREMOVERANK_BUTTON_TOOLTIP);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
								<NormalTexture file="Interface\Buttons\UI-MinusButton-Up"/>
								<PushedTexture file="Interface\Buttons\UI-MinusButton-Down"/>
								<DisabledTexture file="Interface\Buttons\UI-MinusButton-Disabled"/>
								<HighlightTexture file="Interface\Buttons\UI-PlusButton-Hilight" alphaMode="ADD"/>
							</Button>
							<CheckButton name="GuildControlPopupFrameCheckbox1" inherits="GuildControlPopupFrameCheckboxTemplate" id="1">
								<Anchors>
									<Anchor point="TOPLEFT">
										<Offset>
											<AbsDimension x="25" y="-123"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="GuildControlPopupFrameCheckbox3" inherits="GuildControlPopupFrameCheckboxTemplate" id="3">
								<Anchors>
									<Anchor point="TOP" relativeTo="GuildControlPopupFrameCheckbox1" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="GuildControlPopupFrameCheckbox5" inherits="GuildControlPopupFrameCheckboxTemplate" id="5">
								<Anchors>
									<Anchor point="TOP" relativeTo="GuildControlPopupFrameCheckbox3" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="GuildControlPopupFrameCheckbox7" inherits="GuildControlPopupFrameCheckboxTemplate" id="7">
								<Anchors>
									<Anchor point="TOP" relativeTo="GuildControlPopupFrameCheckbox5" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="GuildControlPopupFrameCheckbox9" inherits="GuildControlPopupFrameCheckboxTemplate" id="9">
								<Anchors>
									<Anchor point="TOP" relativeTo="GuildControlPopupFrameCheckbox7" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="GuildControlPopupFrameCheckbox11" inherits="GuildControlPopupFrameCheckboxTemplate" id="11">
								<Anchors>
									<Anchor point="TOP" relativeTo="GuildControlPopupFrameCheckbox9" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="GuildControlPopupFrameCheckbox13" inherits="GuildControlPopupFrameCheckboxTemplate" id="13">
								<Anchors>
									<Anchor point="TOP" relativeTo="GuildControlPopupFrameCheckbox11" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<Frame name="GuildControlWithdrawGold">
								<Size>
									<AbsDimension x="20" y="20"/>
								</Size>
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildControlPopupFrameCheckbox13" relativePoint="BOTTOMLEFT">
										<Offset x="0" y="-16"/>
									</Anchor>
								</Anchors>
								<Layers>
									<Layer level="BACKGROUND">
										<FontString name="GuildControlWithdrawGoldText" inherits="GameFontNormalSmall" text="GUILDCONTROL_WITHDRAW_GOLD">
											<Anchors>
												<Anchor point="TOPLEFT"/>
											</Anchors>
										</FontString>
										<FontString name="GuildControlWithdrawGoldAmountText" inherits="GameFontNormalSmall" text="GOLD_PER_DAY">
											<Anchors>
												<Anchor point="TOPLEFT" relativeTo="GuildControlWithdrawGoldText" relativePoint="BOTTOMLEFT">
													<Offset x="0" y="-13"/>
												</Anchor>
											</Anchors>
										</FontString>
									</Layer>
								</Layers>
								<Frames>
									<EditBox name="GuildControlWithdrawGoldEditBox" autoFocus="false" historyLines="1" inherits="InputBoxTemplate" numeric="true">
										<Size>
											<AbsDimension x="70" y="32"/>
										</Size>
										<Anchors>
											<Anchor point="LEFT" relativeTo="GuildControlWithdrawGoldAmountText" relativePoint="RIGHT">
												<Offset>
													<AbsDimension x="11" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
										<Frames>
											<Frame name="$parentMask" enableMouse="true" hidden="true" setAllPoints="true"/>
										</Frames>
										<Scripts>
											<OnTextChanged>
												if ( self:GetText() ~= UNLIMITED ) then
													GuildControlPopupAcceptButton:Enable();
													GuildControlPopupFrame.goldChanged = 1;
												end
											</OnTextChanged>
											<OnEditFocusGained>
												GuildControlPopupAcceptButton:Enable();
											</OnEditFocusGained>
											<OnEnterPressed>
												self:ClearFocus();
												GuildControlPopupAcceptButton:Enable();
											</OnEnterPressed>
											<OnEscapePressed>
												self:ClearFocus();
											</OnEscapePressed>
										</Scripts>
									</EditBox>
								</Frames>
							</Frame>
							<CheckButton name="GuildControlPopupFrameCheckbox2" inherits="GuildControlPopupFrameCheckboxTemplate" id="2">
								<Anchors>
									<Anchor point="LEFT" relativeTo="GuildControlPopupFrameCheckbox1" relativePoint="RIGHT">
										<Offset>
											<AbsDimension x="115" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="GuildControlPopupFrameCheckbox4" inherits="GuildControlPopupFrameCheckboxTemplate" id="4">
								<Anchors>
									<Anchor point="TOP" relativeTo="GuildControlPopupFrameCheckbox2" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="GuildControlPopupFrameCheckbox6" inherits="GuildControlPopupFrameCheckboxTemplate" id="6">
								<Anchors>
									<Anchor point="TOP" relativeTo="GuildControlPopupFrameCheckbox4" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="GuildControlPopupFrameCheckbox8" inherits="GuildControlPopupFrameCheckboxTemplate" id="8">
								<Anchors>
									<Anchor point="TOP" relativeTo="GuildControlPopupFrameCheckbox6" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="GuildControlPopupFrameCheckbox10" inherits="GuildControlPopupFrameCheckboxTemplate" id="10">
								<Anchors>
									<Anchor point="TOP" relativeTo="GuildControlPopupFrameCheckbox8" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="GuildControlPopupFrameCheckbox12" inherits="GuildControlPopupFrameCheckboxTemplate" id="12">
								<Anchors>
									<Anchor point="TOP" relativeTo="GuildControlPopupFrameCheckbox10" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="GuildControlPopupFrameCheckbox17" inherits="GuildControlPopupFrameCheckboxTemplate" id="17">
								<Anchors>
									<Anchor point="TOP" relativeTo="GuildControlPopupFrameCheckbox12" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="GuildControlPopupFrameCheckbox16" inherits="GuildControlPopupFrameCheckboxTemplate" id="16">
								<Anchors>
									<Anchor point="LEFT" relativeTo="GuildControlWithdrawGoldText" relativePoint="RIGHT">
										<Offset x="4" y="-1"/>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnClick>
										if ( self:GetChecked() ) then
											PlaySound("igMainMenuOptionCheckBoxOff");
										else
											PlaySound("igMainMenuOptionCheckBoxOn");
										end
										GuildControlSetRankFlag(self:GetID(), self:GetChecked());
										GuildControlPopupAcceptButton:Enable();
										WithdrawGoldEditBox_Update();
									</OnClick>
									<OnEnter>
										GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
										GameTooltip:SetText(GUILDCONTROL_OPTION16_TOOLTIP, nil, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</CheckButton>
							<CheckButton name="GuildControlPopupFrameCheckbox15" inherits="GuildControlPopupFrameCheckboxTemplate" id="15">
								<Anchors>
									<Anchor point="LEFT" relativeTo="GuildControlPopupFrameCheckbox16Text" relativePoint="RIGHT">
										<Offset x="12" y="-1"/>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnClick>
										if ( self:GetChecked() ) then
											PlaySound("igMainMenuOptionCheckBoxOff");
										else
											PlaySound("igMainMenuOptionCheckBoxOn");
										end
										GuildControlSetRankFlag(self:GetID(), self:GetChecked());
										GuildControlPopupAcceptButton:Enable();
										WithdrawGoldEditBox_Update();
									</OnClick>
									<OnEnter>
										GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
										GameTooltip:SetText(GUILDCONTROL_OPTION15_TOOLTIP, nil, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</CheckButton>

						</Frames>
					</Frame>
					<Button name="GuildControlPopupFrameCancelButton" inherits="UIPanelButtonTemplate" text="CANCEL">
						<Size>
							<AbsDimension x="78" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMRIGHT" relativeTo="GuildControlPopupFrame">
								<Offset x="-33" y="34"/>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								self:GetParent():Hide();
							</OnClick>
						</Scripts>
					</Button>
					<Button name="GuildControlPopupAcceptButton" inherits="UIPanelButtonTemplate" text="ACCEPT">
						<Size>
							<AbsDimension x="78" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="RIGHT" relativeTo="GuildControlPopupFrameCancelButton" relativePoint="LEFT">
								<Offset>
									<AbsDimension x="-2" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								GuildControlPopupAcceptButton_OnClick();
							</OnClick>
						</Scripts>
					</Button>
					<EditBox name="GuildControlPopupFrameEditBox" autoFocus="false" historyLines="1" letters="15" inherits="InputBoxTemplate">
						<Size>
							<AbsDimension x="130" y="32"/>
						</Size>
						<Anchors>
							<Anchor point="TOP">
								<Offset>
									<AbsDimension x="35" y="-68"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<FontString inherits="GameFontNormal" text="GUILDCONTROL_RANKLABEL">
									<Anchors>
										<Anchor point="RIGHT" relativeTo="GuildControlPopupFrameEditBox" relativePoint="LEFT">
											<Offset>
												<AbsDimension x="-12" y="1"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Scripts>
							<OnEditFocusGained>
								GuildControlPopupAcceptButton:Enable();
							</OnEditFocusGained>
							<OnEnterPressed>
								self:ClearFocus();
								GuildControlPopupAcceptButton:Enable();
							</OnEnterPressed>
							<OnEscapePressed>
								self:ClearFocus();
							</OnEscapePressed>
						</Scripts>
					</EditBox>
					<Frame name="GuildControlPopupFrameTabPermissions">
						<Size>
							<AbsDimension x="268" y="62"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMLEFT" relativeTo="GuildControlPopupFrame" relativePoint="BOTTOMLEFT">
								<Offset x="13" y="58"/>
							</Anchor>
						</Anchors>
						<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="16"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="16"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="5" right="5" top="5" bottom="5"/>
							</BackgroundInsets>
						</Backdrop>
						<Layers>
							<Layer level="BACKGROUND">
								<FontString name="GuildBankTabLabel" inherits="GameFontHighlightSmall" text="GUILDBANK_TAB_COLON">
									<Anchors>
										<Anchor point="TOPLEFT" relativeTo="GuildControlPopupFrameTabPermissions" relativePoint="TOPLEFT">
											<Offset x="9" y="13"/>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Frames>
							<CheckButton name="GuildControlTabPermissionsViewTab" inherits="GuildControlPopupFrameCheckboxTemplate" id="1">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildControlPopupFrameTabPermissions" relativePoint="TOPLEFT">
										<Offset x="10" y="-6"/>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnClick>
										SetPendingGuildBankTabPermissions(GuildControlPopupFrameTabPermissions.selectedTab, self:GetID(), self:GetChecked());
										GuildControlPopupAcceptButton:Enable();
										GuildControlPopup_UpdateDepositCheckBox();
									</OnClick>
								</Scripts>
							</CheckButton>
							<CheckButton name="GuildControlTabPermissionsDepositItems" inherits="GuildControlPopupFrameCheckboxTemplate" id="2">
								<Anchors>
									<Anchor point="LEFT" relativeTo="GuildControlTabPermissionsViewTabText" relativePoint="RIGHT">
										<Offset x="45" y="-1"/>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnClick>
										SetPendingGuildBankTabPermissions(GuildControlPopupFrameTabPermissions.selectedTab, self:GetID(), self:GetChecked());
										GuildControlPopupAcceptButton:Enable();
									</OnClick>
								</Scripts>
							</CheckButton>
							<CheckButton name="GuildControlTabPermissionsUpdateText" inherits="GuildControlPopupFrameCheckboxTemplate" id="3">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildControlTabPermissionsViewTab" relativePoint="BOTTOMLEFT">
										<Offset x="0" y="4"/>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnClick>
										SetPendingGuildBankTabPermissions(GuildControlPopupFrameTabPermissions.selectedTab, self:GetID(), self:GetChecked());
										GuildControlPopupAcceptButton:Enable();
									</OnClick>
								</Scripts>
							</CheckButton>
							<Frame name="GuildControlTabPermissionsWithdrawItems">
								<Size>
									<AbsDimension x="20" y="20"/>
								</Size>
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildControlTabPermissionsViewTab" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="-16"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Layers>
									<Layer level="BACKGROUND">
										<FontString name="GuildControlTabPermissionsWithdrawItemsText" inherits="GameFontNormalSmall" text="GUILDCONTROL_WITHDRAW_ITEMS">
											<Anchors>
												<Anchor point="TOPLEFT"/>
											</Anchors>
										</FontString>
									</Layer>
								</Layers>
								<Frames>
									<EditBox name="GuildControlWithdrawItemsEditBox" autoFocus="false" historyLines="1" letters="15" inherits="InputBoxTemplate" numeric="true">
										<Size>
											<AbsDimension x="70" y="32"/>
										</Size>
										<Anchors>
											<Anchor point="LEFT" relativeTo="GuildControlTabPermissionsWithdrawItemsText" relativePoint="RIGHT">
												<Offset>
													<AbsDimension x="20" y="0"/>
												</Offset>
											</Anchor>
										</Anchors>
										<Frames>
											<Frame name="$parentMask" enableMouse="true" hidden="true" setAllPoints="true"/>
										</Frames>
										<Scripts>
											<OnEditFocusGained>
												GuildControlPopupAcceptButton:Enable();
											</OnEditFocusGained>
											<OnTextChanged>
												local amount = self:GetText();
												if(amount and amount ~= "" and amount ~= UNLIMITED) then
													SetPendingGuildBankTabWithdraw(GuildControlPopupFrameTabPermissions.selectedTab, amount);
												end
											</OnTextChanged>
											<OnEnterPressed>
												self:ClearFocus();
												GuildControlPopupAcceptButton:Enable();
											</OnEnterPressed>
											<OnEscapePressed>
												self:ClearFocus();
											</OnEscapePressed>
										</Scripts>
									</EditBox>
								</Frames>
							</Frame>
							<Button name="GuildBankTabPermissionsTab6" inherits="GuildBankTabPermissionsTabTemplate" id="6" text="6">
								<Anchors>
									<Anchor point="TOPRIGHT" relativeTo="GuildControlPopupFrameTabPermissions" relativePoint="TOPRIGHT">
										<Offset x="-4" y="27"/>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildBankTabPermissionsTab5" inherits="GuildBankTabPermissionsTabTemplate" id="5" text="5">
								<Anchors>
									<Anchor point="RIGHT" relativeTo="GuildBankTabPermissionsTab6" relativePoint="LEFT">
										<Offset x="4" y="0"/>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildBankTabPermissionsTab4" inherits="GuildBankTabPermissionsTabTemplate" id="4" text="4">
								<Anchors>
									<Anchor point="RIGHT" relativeTo="GuildBankTabPermissionsTab5" relativePoint="LEFT">
										<Offset x="4" y="0"/>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildBankTabPermissionsTab3" inherits="GuildBankTabPermissionsTabTemplate" id="3"  text="3">
								<Anchors>
									<Anchor point="RIGHT" relativeTo="GuildBankTabPermissionsTab4" relativePoint="LEFT">
										<Offset x="4" y="0"/>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildBankTabPermissionsTab2" inherits="GuildBankTabPermissionsTabTemplate" id="2"  text="2">
								<Anchors>
									<Anchor point="RIGHT" relativeTo="GuildBankTabPermissionsTab3" relativePoint="LEFT">
										<Offset x="4" y="0"/>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="GuildBankTabPermissionsTab1" inherits="GuildBankTabPermissionsTabTemplate" id="1"  text="1">
								<Anchors>
									<Anchor point="RIGHT" relativeTo="GuildBankTabPermissionsTab2" relativePoint="LEFT">
										<Offset x="4" y="0"/>
									</Anchor>
								</Anchors>
							</Button>
						</Frames>
						<Scripts>
							<OnLoad>
								self:SetBackdropBorderColor(0.4, 0.4, 0.4);
								self:SetBackdropColor(0.15, 0.15, 0.15);
							</OnLoad>
						</Scripts>
					</Frame>
				</Frames>
				<Scripts>
					<OnLoad>
						GuildControlPopupFrame_OnLoad();
					</OnLoad>
					<OnShow>
						GuildControlPopupFrame_OnShow();
					</OnShow>
					<OnHide>
						GuildControlPopupFrame_OnHide();
					</OnHide>
				</Scripts>
			</Frame>
			<Frame name="GuildInfoFrame" toplevel="true" enableMouse="true" hidden="true">
				<Size>
					<AbsDimension x="297" y="298"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="GuildControlPopupFrame">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<Texture name="GuildInfoCorner" file="Interface\DialogFrame\UI-DialogBox-Corner">
							<Size>
								<AbsDimension x="32" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="TOPRIGHT">
									<Offset>
										<AbsDimension x="-6" y="-7"/>
									</Offset>
								</Anchor>
							</Anchors>
						</Texture>
						<FontString name="GuildInfoTitle" inherits="GameFontNormal" text="GUILD_INFORMATION">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="17" y="-17"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Frame name="GuildInfoTextBackground">
						<Size>
							<AbsDimension x="276" y="230"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="11" y="-32"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="16"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="16"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="5" right="5" top="5" bottom="5"/>
							</BackgroundInsets>
						</Backdrop>
						<Frames>
							<ScrollFrame name="GuildInfoFrameScrollFrame" inherits="UIPanelScrollFrameTemplate">
								<Size>
									<AbsDimension x="243" y="218"/>
								</Size>
								<Anchors>
									<Anchor point="TOPLEFT">
										<Offset>
											<AbsDimension x="5" y="-7"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnMouseDown>
										if ( CanEditGuildInfo() ) then
											GuildInfoEditBox:SetFocus();
										else
											GuildInfoEditBox:ClearFocus();
										end
									</OnMouseDown>
									<OnMouseUp>
										if ( CanEditGuildInfo() ) then
											GuildInfoEditBox:SetFocus();
										else
											GuildInfoEditBox:ClearFocus();
										end
									</OnMouseUp>
								</Scripts>
								<ScrollChild>
									<EditBox name="GuildInfoEditBox" letters="500" multiLine="true" autoFocus="false">
										<Size>
											<AbsDimension x="240" y="218"/>
										</Size>
										<Scripts>
											<OnEscapePressed>
												self:ClearFocus();
											</OnEscapePressed>
											<OnTextChanged>
												ScrollingEdit_OnTextChanged(self, self:GetParent());
											</OnTextChanged>
											<OnCursorChanged>
												ScrollingEdit_OnCursorChanged(self, x, y, w, h);
											</OnCursorChanged>
											<OnUpdate>
												ScrollingEdit_OnUpdate(self, 0, self:GetParent());
											</OnUpdate>
										</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(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
							</OnLoad>
							<OnShow>
								local guildInfoText = GetGuildInfoText();
								if ( not guildInfoText ) then
									guildInfoText = "";
								end
								if ( CanEditGuildInfo() ) then
									if ( guildInfoText ~= "" ) then
										GuildInfoEditBox:SetText(guildInfoText);
									else
										GuildInfoEditBox:SetText(GUILD_INFO_EDITLABEL);
									end
									GuildInfoEditBox:SetTextColor(1, 1, 1);
									GuildInfoEditBox:EnableMouse(1);
									GuildInfoSaveButton:Enable();
								else
									GuildInfoEditBox:SetText(guildInfoText);
									GuildInfoEditBox:SetTextColor(0.65, 0.65, 0.65);
									GuildInfoEditBox:EnableMouse();
									GuildInfoSaveButton:Disable();
								end
							</OnShow>
						</Scripts>
					</Frame>
					<Button name="GuildInfoCloseButton" inherits="UIPanelCloseButton">
						<Anchors>
							<Anchor point="TOPRIGHT">
								<Offset>
									<AbsDimension x="-3" y="-3"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="GuildInfoSaveButton" inherits="UIPanelButtonTemplate" text="ACCEPT">
						<Size>
							<AbsDimension x="90" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMLEFT" relativeTo="GuildInfoFrame" relativePoint="BOTTOMLEFT">
								<Offset x="108" y="12"/>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								SetGuildInfoText(GuildInfoEditBox:GetText());
								GuildRoster();
								GuildInfoFrame:Hide();
							</OnClick>
						</Scripts>
						<NormalFont style="GameFontNormalSmall"/>
						<HighlightFont style="GameFontHighlightSmall"/>
						<DisabledFont style="GameFontDisableSmall"/>
					</Button>
					<Button name="GuildInfoCancelButton" inherits="UIPanelButtonTemplate" text="CLOSE">
						<Size>
							<AbsDimension x="90" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT" relativeTo="GuildInfoSaveButton" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								GuildInfoFrame:Hide();
							</OnClick>
						</Scripts>
						<NormalFont style="GameFontNormalSmall"/>
						<HighlightFont style="GameFontHighlightSmall"/>
						<DisabledFont style="GameFontDisableSmall"/>
					</Button>
					<Button name="GuildInfoGuildEventButton" inherits="UIPanelButtonTemplate" text="GUILD_EVENT_LOG">
						<Size>
							<AbsDimension x="65" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="RIGHT" relativeTo="GuildInfoSaveButton" relativePoint="LEFT">
								<Offset x="-32" y="0"/>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								ToggleGuildEventLog();
							</OnClick>
						</Scripts>
						<NormalFont style="GameFontNormalSmall"/>
						<HighlightFont style="GameFontHighlightSmall"/>
						<DisabledFont style="GameFontDisableSmall"/>
					</Button>
				</Frames>
				<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
					<BackgroundInsets>
						<AbsInset left="11" right="12" top="12" bottom="11"/>
					</BackgroundInsets>
					<TileSize>
						<AbsValue val="32"/>
					</TileSize>
					<EdgeSize>
						<AbsValue val="32"/>
					</EdgeSize>
				</Backdrop>
			</Frame>
			<Frame name="GuildMemberDetailFrame" toplevel="true" enableMouse="true" hidden="true">
				<Size>
					<AbsDimension x="212" y="270"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="GuildFrame" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-33" y="-28"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
					<BackgroundInsets>
						<AbsInset left="11" right="12" top="12" bottom="11"/>
					</BackgroundInsets>
					<TileSize>
						<AbsValue val="32"/>
					</TileSize>
					<EdgeSize>
						<AbsValue val="32"/>
					</EdgeSize>
				</Backdrop>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="GuildMemberDetailName" inherits="GameFontNormal">
							<Size>
								<AbsDimension x="0" y="12"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="17" y="-18"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="GuildMemberDetailLevel" inherits="GameFontHighlightSmall">
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="GuildMemberDetailName" relativePoint="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="0" y="-2"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="GuildMemberDetailZoneLabel" inherits="GameFontNormalSmall" text="ZONE_COLON">
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="GuildMemberDetailLevel" relativePoint="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="0" y="-11"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="GuildMemberDetailZoneText" inherits="GameFontHighlight" justifyH="LEFT">
							<Size x="147" y="12"/>
							<Anchors>
								<Anchor point="LEFT" relativeTo="GuildMemberDetailZoneLabel" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="2" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="GuildMemberDetailRankLabel" inherits="GameFontNormalSmall" text="RANK_COLON">
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="GuildMemberDetailZoneLabel" relativePoint="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="0" y="-8"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="GuildMemberDetailRankText" inherits="GameFontHighlight" justifyH="LEFT">
							<Anchors>
								<Anchor point="LEFT" relativeTo="GuildMemberDetailRankLabel" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="2" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="GuildMemberDetailOnlineLabel" inherits="GameFontNormalSmall" text="LAST_ONLINE_COLON">
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="GuildMemberDetailRankLabel" relativePoint="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="0" y="-8"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="GuildMemberDetailOnlineText" inherits="GameFontHighlight">
							<Anchors>
								<Anchor point="LEFT" relativeTo="GuildMemberDetailOnlineLabel" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="2" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="GuildMemberDetailNoteLabel" inherits="GameFontNormalSmall" text="NOTE_COLON">
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="GuildMemberDetailOnlineLabel" relativePoint="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="0" y="-8"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="GuildMemberDetailOfficerNoteLabel" inherits="GameFontNormalSmall" text="OFFICER_NOTE_COLON">
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="GuildMemberDetailNoteLabel" relativePoint="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="0" y="-43"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<Texture file="Interface\FriendsFrame\UI-GuildMember-Patch">
							<Size>
								<AbsDimension x="256" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="12" y="3"/>
									</Offset>
								</Anchor>
							</Anchors>
						</Texture>
					</Layer>
					<Layer level="OVERLAY">
						<Texture name="GuildMemberDetailCorner" file="Interface\DialogFrame\UI-DialogBox-Corner">
							<Size>
								<AbsDimension x="32" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="TOPRIGHT">
									<Offset>
										<AbsDimension x="-6" y="-7"/>
									</Offset>
								</Anchor>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Frames>
					<Button name="GuildMemberDetailCloseButton" inherits="UIPanelCloseButton">
						<Anchors>
							<Anchor point="TOPRIGHT">
								<Offset>
									<AbsDimension x="-3" y="-3"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="GuildMemberRemoveButton" inherits="UIPanelButtonTemplate" text="REMOVE">
						<Size>
							<AbsDimension x="96" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="10" y="12"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								StaticPopup_Show("REMOVE_GUILDMEMBER");
							</OnClick>
							<OnEnter>
								GameTooltip_AddNewbieTip(self, REMOVE, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_GUILDREMOVE, 1);
							</OnEnter>
							<OnLeave>
								GameTooltip:Hide();
							</OnLeave>
						</Scripts>
						<NormalFont style="GameFontNormalSmall"/>
						<HighlightFont style="GameFontHighlightSmall"/>
						<DisabledFont style="GameFontDisableSmall"/>
					</Button>
					<Button name="GuildMemberGroupInviteButton" inherits="UIPanelButtonTemplate" text="GROUP_INVITE">
						<Size>
							<AbsDimension x="96" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT" relativeTo="GuildMemberRemoveButton" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="1" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								InviteUnit(GuildFrame.selectedName);
							</OnClick>
							<OnEnter>
								GameTooltip_AddNewbieTip(self, GROUP_INVITE, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_GROUPINVITE, 1);
							</OnEnter>
							<OnLeave>
								GameTooltip:Hide();
							</OnLeave>
						</Scripts>
						<NormalFont style="GameFontNormalSmall"/>
						<HighlightFont style="GameFontHighlightSmall"/>
						<DisabledFont style="GameFontDisableSmall"/>
					</Button>
					<Button name="GuildFramePromoteButton">
						<Size>
							<AbsDimension x="28" y="28"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT" relativeTo="GuildMemberDetailFrame" relativePoint="RIGHT">
								<Offset x="-60" y="50"/>
							</Anchor>
						</Anchors>
						<HitRectInsets>
							<AbsInset left="6" right="6" top="7" bottom="7"/>
						</HitRectInsets>
						<Scripts>
							<OnClick>
								GuildPromote(GuildFrame.selectedName);
								PlaySound("UChatScrollButton");
								GuildFramePromoteButton:Disable();
							</OnClick>
							<OnEnter>
								GameTooltip_AddNewbieTip(self, PROMOTE, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_PROMOTE, 1);
							</OnEnter>
							<OnLeave>
								GameTooltip:Hide();
							</OnLeave>
						</Scripts>
						<NormalTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollUpButton-Up"/>
						<PushedTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollUpButton-Down"/>
						<DisabledTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollUpButton-Disabled"/>
						<HighlightTexture alphaMode="ADD" file="Interface\MainMenuBar\UI-MainMenu-ScrollUpButton-Highlight"/>
					</Button>
					<Button name="GuildFrameDemoteButton">
						<Size>
							<AbsDimension x="28" y="28"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT" relativeTo="GuildFramePromoteButton" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="-8" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<HitRectInsets>
							<AbsInset left="6" right="6" top="7" bottom="7"/>
						</HitRectInsets>
						<Scripts>
							<OnClick>
								GuildDemote(GuildFrame.selectedName);
								PlaySound("UChatScrollButton");
								GuildFrameDemoteButton:Disable();
							</OnClick>
							<OnEnter>
								GameTooltip_AddNewbieTip(self, DEMOTE, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_DEMOTE, 1);
							</OnEnter>
							<OnLeave>
								GameTooltip:Hide();
							</OnLeave>
						</Scripts>
						<NormalTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Up"/>
						<PushedTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Down"/>
						<DisabledTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Disabled"/>
						<HighlightTexture alphaMode="ADD" file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Highlight"/>
					</Button>
					<Frame name="GuildMemberNoteBackground" enableMouse="true">
						<Size>
							<AbsDimension x="181" y="40"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="GuildMemberDetailNoteLabel" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="-2" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
								<FontString name="PersonalNoteText" inherits="GameFontHighlight" justifyH="LEFT" justifyV="TOP">
									<Size>
										<AbsDimension x="165" y="32"/>
									</Size>
									<Anchors>
										<Anchor point="TOP">
											<Offset>
												<AbsDimension x="1" y="-6"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="16"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="16"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="5" right="5" top="5" bottom="5"/>
							</BackgroundInsets>
						</Backdrop>
						<Scripts>
							<OnLoad>
								self:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b, 0.5);
								self:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b, 0.25);
							</OnLoad>
							<OnMouseUp>
								StaticPopup_Show("SET_GUILDPLAYERNOTE");
							</OnMouseUp>
						</Scripts>
					</Frame>
					<Frame name="GuildMemberOfficerNoteBackground">
						<Size>
							<AbsDimension x="181" y="40"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="GuildMemberDetailOfficerNoteLabel" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="-2" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
								<FontString name="OfficerNoteText" inherits="GameFontHighlight" justifyH="LEFT" justifyV="TOP">
									<Size>
										<AbsDimension x="165" y="32"/>
									</Size>
									<Anchors>
										<Anchor point="TOP">
											<Offset>
												<AbsDimension x="1" y="-6"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="16"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="16"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="5" right="5" top="5" bottom="5"/>
							</BackgroundInsets>
						</Backdrop>
						<Scripts>
							<OnLoad>
								self:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b, 0.5);
								self:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b, 0.25);
							</OnLoad>
							<OnMouseUp>
								StaticPopup_Show("SET_GUILDOFFICERNOTE");
							</OnMouseUp>
						</Scripts>
					</Frame>
				</Frames>
			</Frame>
			<Frame name="GuildEventLogFrame" enableMouse="true" hidden="true">
				<Size>
					<AbsDimension x="395" y="435"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="GuildControlPopupFrame">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<Texture file="Interface\DialogFrame\UI-DialogBox-Corner">
							<Size>
								<AbsDimension x="32" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="TOPRIGHT">
									<Offset>
										<AbsDimension x="-6" y="-7"/>
									</Offset>
								</Anchor>
							</Anchors>
						</Texture>
						<FontString name="GuildEventLogTitle" inherits="GameFontNormal" text="GUILD_EVENT_LOG">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="17" y="-17"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Frame name="GuildEventFrame">
						<Size>
							<AbsDimension x="375" y="370"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="11" y="-32"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="16"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="16"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="5" right="5" top="5" bottom="5"/>
							</BackgroundInsets>
						</Backdrop>
						<Frames>
							<ScrollingMessageFrame name="GuildEventMessageFrame" insertMode="TOP" maxLines="200" fade="false">
								<Size>
									<AbsDimension x="345" y="350"/>
								</Size>
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="GuildEventFrame" relativePoint="TOPLEFT">
										<Offset x="8" y="-8"/>
									</Anchor>
								</Anchors>
								<FontString inherits="ChatFontNormal" justifyH="LEFT"/>
							</ScrollingMessageFrame>
							<ScrollFrame name="GuildEventLogScrollFrame" inherits="FauxScrollFrameTemplate">
								<Size>
									<AbsDimension x="340" y="359"/>
								</Size>
								<Anchors>
									<Anchor point="TOPRIGHT" relativeTo="GuildEventFrame" relativePoint="TOPRIGHT">
										<Offset x="-28" y="-6"/>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnVerticalScroll>
										FauxScrollFrame_OnVerticalScroll(self, offset, GUILDEVENT_TRANSACTION_HEIGHT, GuildEventLogScroll)
									</OnVerticalScroll>
								</Scripts>
							</ScrollFrame>
						</Frames>
						<Scripts>
							<OnLoad>
								self:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b);
								self:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
							</OnLoad>
						</Scripts>
					</Frame>
					<Button name="GuildEventLogCloseButton" inherits="UIPanelCloseButton">
						<Anchors>
							<Anchor point="TOPRIGHT">
								<Offset>
									<AbsDimension x="-3" y="-3"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="GuildEventLogCancelButton" inherits="UIPanelButtonTemplate" text="CLOSE">
						<Size>
							<AbsDimension x="139" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMRIGHT" relativeTo="GuildEventLogFrame" relativePoint="BOTTOMRIGHT">
								<Offset x="-9" y="13"/>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								GuildEventLogFrame:Hide();
							</OnClick>
						</Scripts>
						<NormalFont style="GameFontNormalSmall"/>
						<HighlightFont style="GameFontHighlightSmall"/>
						<DisabledFont style="GameFontDisableSmall"/>
					</Button>
				</Frames>
				<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
					<BackgroundInsets>
						<AbsInset left="11" right="12" top="12" bottom="11"/>
					</BackgroundInsets>
					<TileSize>
						<AbsValue val="32"/>
					</TileSize>
					<EdgeSize>
						<AbsValue val="32"/>
					</EdgeSize>
				</Backdrop>
				<Scripts>
					<OnLoad>
						self:RegisterEvent("GUILD_EVENT_LOG_UPDATE");
					</OnLoad>
					<OnEvent>
						if ( event == "GUILD_EVENT_LOG_UPDATE" ) then
							GuildEventLog_Update();
							GuildEventLogScroll();
						end
					</OnEvent>
					<OnShow>
						QueryGuildEventLog();
					</OnShow>
				</Scripts>
			</Frame>
			<Button name="FriendsFrameTab1" inherits="FriendsFrameTabTemplate" id="1" text="FRIENDS">
				<Anchors>
					<Anchor point="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="11" y="46"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnEnter>
						GameTooltip_AddNewbieTip(self, MicroButtonTooltipText(FRIENDS, "TOGGLEFRIENDSTAB"), 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_FRIENDSTAB, 1);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Button>
			<!--
			<Button name="FriendsFrameTab2" inherits="FriendsFrameTabTemplate" id="2" text="IGNORE">
				<Anchors>
					<Anchor point="LEFT" relativeTo="FriendsFrameTab1" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="-14" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnEnter>
						GameTooltip_AddNewbieTip(nil, nil, nil, nil, NEWBIE_TOOLTIP_IGNORETAB, 1);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Button>
			-->
			<Button name="FriendsFrameTab2" inherits="FriendsFrameTabTemplate" id="2" text="WHO">
				<Anchors>
					<Anchor point="LEFT" relativeTo="FriendsFrameTab1" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="-15" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnEnter>
						GameTooltip_AddNewbieTip(self, MicroButtonTooltipText(WHO, "TOGGLEWHOTAB"), 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_WHOTAB, 1);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Button>
			<Button name="FriendsFrameTab3" inherits="FriendsFrameTabTemplate" id="3" text="GUILD">
				<Anchors>
					<Anchor point="LEFT" relativeTo="FriendsFrameTab2" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="-15" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						InGuildCheck();
						FriendsFrame_Update();
					</OnLoad>
					<OnClick>
						PanelTemplates_Tab_OnClick(self, FriendsFrame);
						FriendsFrame_OnShow();
					</OnClick>
					<OnEnter>
						GameTooltip_AddNewbieTip(self, MicroButtonTooltipText(GUILD, "TOGGLEGUILDTAB"), 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_GUILDTAB, 1);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Button>
			<Button name="FriendsFrameTab4" inherits="FriendsFrameTabTemplate" id="4" text="CHAT">
				<Anchors>
					<Anchor point="LEFT" relativeTo="FriendsFrameTab3" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="-15" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						FriendsFrame_Update();
					</OnLoad>
					<OnEvent>
						FriendsFrame_Update();
					</OnEvent>
					<OnEnter>
						GameTooltip_AddNewbieTip(self, MicroButtonTooltipText(CHAT_CHANNELS, "TOGGLECHANNELTAB"), 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_CHANNELTAB, 1);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Button>
			<Button name="FriendsFrameTab5" inherits="FriendsFrameTabTemplate" id="5" text="RAID">
				<Anchors>
					<Anchor point="LEFT" relativeTo="FriendsFrameTab4" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="-15" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						FriendsFrame_Update();
					</OnLoad>
					<OnEvent>
						FriendsFrame_Update();
					</OnEvent>
					<OnEnter>
						GameTooltip_AddNewbieTip(self, MicroButtonTooltipText(RAID, "TOGGLERAIDTAB"), 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_RAIDTAB, 1);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad>
				FriendsFrame_OnLoad(self);
			</OnLoad>
			<OnShow>
				FriendsFrame_OnShow();
			</OnShow>
			<OnHide>
				FriendsFrame_OnHide();
			</OnHide>
			<OnEvent>
				FriendsFrame_OnEvent(self, event, ...);
			</OnEvent>
			<OnMouseWheel>
				return;
			</OnMouseWheel>
		</Scripts>
	</Frame>
</Ui>
