<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/
C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
	<Script file="localization.lua"/>
	<Script file="localization.ge.lua"/>
	<Script file="localization.fr.lua"/>
	<Script file="localization.cn.lua"/>
	<Script file="GMail.lua"/>
	<Button name="GMailButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="37" y="37"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture file="Interface\Buttons\UI-Slot-Background">
					<Size>
						<AbsDimension x="39" y="39"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="-2" y="2"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="0.640625" top="0" bottom="0.640625"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<FontString name="$parentCount" inherits="NumberFontNormal" justifyH="RIGHT">
					<Anchors>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="-5" y="2"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
			<Layer level="BORDER">
				<Texture name="$parentIconTexture"/>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				this:RegisterForDrag("LeftButton")
			</OnLoad>
			<OnReceiveDrag>
				GMail:MailButton_OnClick()
			</OnReceiveDrag>
			<OnDragStart>
				GMail:MailButton_OnClick()
			</OnDragStart>
			<OnClick>
				GMail:MailButton_OnClick()
			</OnClick>
			<OnEnter>
				GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
				if ( this.item and this.bag ) then
					GameTooltip:SetBagItem(this.bag,this.item);
				else
					GameTooltip:SetText(ATTACHMENT_TEXT, 1.0, 1.0, 1.0);
				end
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide()
			</OnLeave>
		</Scripts> 
		<HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
	</Button>
	<Frame name="GMailFrame" parent="MailFrame" hidden="true">
		<Size>
			<AbsDimension x="384" y="512"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT"/>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<FontString name="GMailTitleText" inherits="GameFontNormal" text="GMAIL_SEND">
					<Size>
						<AbsDimension x="224" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="6" y="230"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="GMailStatusText" inherits="GameFontNormal">
					<Size>
						<AbsDimension x="224" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOM" relativePoint="BOTTOM">
							<Offset>
								<AbsDimension x="0" y="125"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString justifyH="left" justifyV="top" name="GMailHelpText" inherits="GameFontNormal" text="GMAIL_HELP">
					<Size>
						<AbsDimension x="300" y="150"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="30" y="-105"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<Texture name="GMailHorizontalBarLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar">
					<Size>
						<AbsDimension x="256" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="15" y="-350"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="1.0" top="0" bottom="0.25"/>
				</Texture>
				<Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar">
					<Size>
						<AbsDimension x="75" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="GMailHorizontalBarLeft" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="0.29296875" top="0.25" bottom="0.5"/>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<EditBox name="GMailNameEditBox" letters="12" historyLines="0" autoFocus="false">
				<Size>
					<AbsDimension x="122" y="20"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="105" y="-46"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString inherits="GameFontNormal" text="MAIL_TO_LABEL" justifyH="RIGHT">
							<Anchors>
								<Anchor point="RIGHT" relativePoint="LEFT">
									<Offset>
										<AbsDimension x="-12" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<Texture name="$parentLeft" file="Interface\Common\Common-Input-Border">
							<Size>
								<AbsDimension x="8" y="20"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="-8" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="0.0625" top="0" bottom="0.625"/>
						</Texture>
						<Texture name="$parentMiddle" file="Interface\Common\Common-Input-Border">
							<Size>
								<AbsDimension x="100" y="20"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
							</Anchors>
							<TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/>
						</Texture>
						<Texture name="$parentRight" file="Interface\Common\Common-Input-Border">
							<Size>
								<AbsDimension x="8" y="20"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
							</Anchors>
							<TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnTabPressed>
						GMailSubjectEditBox:SetFocus()
					</OnTabPressed>
					<OnEditFocusLost>
						this:HighlightText(0, 0)
					</OnEditFocusLost>
					<OnChar>
						SendMailFrame_SendeeAutocomplete()
					</OnChar>
					<OnEnterPressed>
						GMailSubjectEditBox:SetFocus()
					</OnEnterPressed>
					<OnEscapePressed>
						GMailNameEditBox:ClearFocus()
					</OnEscapePressed>
					<OnTextChanged>
						GMail:CanSend()
					</OnTextChanged>
				</Scripts>
				<FontString inherits="ChatFontNormal"/>
			</EditBox>
			<Frame name="GMailCostMoneyFrame" inherits="SmallMoneyFrameTemplate">
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="-46" y="-48"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString inherits="GameFontNormal" text="SEND_MAIL_COST">
							<Anchors>
								<Anchor point="RIGHT" relativePoint="LEFT">
									<Offset>
										<AbsDimension x="-3" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						SmallMoneyFrame_OnLoad()
						MoneyFrame_SetType("STATIC")
						MoneyFrame_Update("GMailCostMoneyFrame", GetSendMailPrice())
					</OnLoad>
				</Scripts>
			</Frame>
			<EditBox name="GMailSubjectEditBox" letters="64" historyLines="0" autoFocus="false">
				<Size>
					<AbsDimension x="237" y="20"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="GMailNameEditBox" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-3"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString inherits="GameFontNormal" text="MAIL_SUBJECT_LABEL" justifyH="RIGHT">
							<Anchors>
								<Anchor point="RIGHT" relativePoint="LEFT">
									<Offset>
										<AbsDimension x="-12" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<Texture name="$parentLeft" file="Interface\Common\Common-Input-Border">
							<Size>
								<AbsDimension x="8" y="20"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="-8" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="0.0625" top="0" bottom="0.625"/>
						</Texture>
						<Texture name="$parentMiddle" file="Interface\Common\Common-Input-Border">
							<Size>
								<AbsDimension x="221" y="20"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
							</Anchors>
							<TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/>
						</Texture>
						<Texture name="$parentRight" file="Interface\Common\Common-Input-Border">
							<Size>
								<AbsDimension x="8" y="20"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
							</Anchors>
							<TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnTabPressed>
						GMailNameEditBox:SetFocus()
					</OnTabPressed>
					<OnEscapePressed>
						GMailSubjectEditBox:ClearFocus()
					</OnEscapePressed>
				</Scripts>
				<FontString inherits="ChatFontNormal"/>
			</EditBox>
			<Frame name="GMailMoneyFrame" inherits="SmallMoneyFrameTemplate">
				<Anchors>
					<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="183" y="84"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Button name="GMailCancelButton" inherits="UIPanelButtonTemplate" text="CANCEL">
				<Size>
					<AbsDimension x="80" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-39" y="80"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						HideUIPanel(MailFrame)
					</OnClick>
				</Scripts>
			</Button>
			<Button name="GMailMailButton" inherits="UIPanelButtonTemplate" text="SEND_LABEL">
				<Size>
					<AbsDimension x="80" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="RIGHT" relativeTo="SendMailCancelButton" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						GMailAcceptSendFrame:Show()
					</OnClick>
				</Scripts>
			</Button>

			<Button name="GMailAbortButton" hidden="true" inherits="UIPanelButtonTemplate" text="GMAIL_ABORT">
				<Size>
					<AbsDimension x="80" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOM" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="105"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						GMailStatusText:SetText(format(GMAIL_ABORTED, GMailGlobalFrame.total-(getn(GMailGlobalFrame.queue)-1), GMailGlobalFrame.total));
						GMailGlobalFrame.queue = { };
						GMailGlobalFrame.total = 0;
						GMailGlobalFrame:Hide();
					</OnClick>
				</Scripts>
			</Button>

			<Button name="GMailButton1" inherits="GMailButtonTemplate" id="1" hidden="false">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="30" y="-222"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="GMailButton2" inherits="GMailButtonTemplate" id="2" hidden="false">
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton1">
						<Offset>
							<AbsDimension x="8" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="GMailButton3" inherits="GMailButtonTemplate" id="3" hidden="false">
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton2">
						<Offset>
							<AbsDimension x="8" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="GMailButton4" inherits="GMailButtonTemplate" id="4" hidden="false">
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton3">
						<Offset>
							<AbsDimension x="8" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="GMailButton5" inherits="GMailButtonTemplate" id="5" hidden="false">
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton4">
						<Offset>
							<AbsDimension x="8" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="GMailButton6" inherits="GMailButtonTemplate" id="6" hidden="false">
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton5">
						<Offset>
							<AbsDimension x="8" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="GMailButton7" inherits="GMailButtonTemplate" id="7" hidden="false">
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton6">
						<Offset>
							<AbsDimension x="8" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>



			<Button name="GMailButton8" inherits="GMailButtonTemplate" id="8" hidden="false">
				<Anchors>
					<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="GMailButton1">
						<Offset>
							<AbsDimension x="0" y="-8"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="GMailButton9" inherits="GMailButtonTemplate" id="9" hidden="false">
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton8">
						<Offset>
							<AbsDimension x="8" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="GMailButton10" inherits="GMailButtonTemplate" id="10" hidden="false">
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton9">
						<Offset>
							<AbsDimension x="8" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="GMailButton11" inherits="GMailButtonTemplate" id="11" hidden="false">
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton10">
						<Offset>
							<AbsDimension x="8" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="GMailButton12" inherits="GMailButtonTemplate" id="12" hidden="false">
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton11">
						<Offset>
							<AbsDimension x="8" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="GMailButton13" inherits="GMailButtonTemplate" id="13" hidden="false">
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton12">
						<Offset>
							<AbsDimension x="8" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="GMailButton14" inherits="GMailButtonTemplate" id="14" hidden="false">
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton13">
						<Offset>
							<AbsDimension x="8" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>


			<Button name="GMailButton15" inherits="GMailButtonTemplate" id="15" hidden="false">
				<Anchors>
					<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="GMailButton8">
						<Offset>
							<AbsDimension x="0" y="-8"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="GMailButton16" inherits="GMailButtonTemplate" id="16" hidden="false">
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton15">
						<Offset>
							<AbsDimension x="8" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="GMailButton17" inherits="GMailButtonTemplate" id="17" hidden="false">
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton16">
						<Offset>
							<AbsDimension x="8" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="GMailButton18" inherits="GMailButtonTemplate" id="18" hidden="false">
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton17">
						<Offset>
							<AbsDimension x="8" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="GMailButton19" inherits="GMailButtonTemplate" id="19" hidden="false">
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton18">
						<Offset>
							<AbsDimension x="8" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="GMailButton20" inherits="GMailButtonTemplate" id="20" hidden="false">
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton19">
						<Offset>
							<AbsDimension x="8" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="GMailButton21" inherits="GMailButtonTemplate" id="21" hidden="false">
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton20">
						<Offset>
							<AbsDimension x="8" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
		</Frames>
		<Scripts>
			<OnShow>
				GMailNameEditBox:SetFocus()
			</OnShow>
		</Scripts>
	</Frame>

	<Button name="MailFrameTab3" inherits="FriendsFrameTabTemplate" id="3" parent="MailFrame" text="Mass Mail">
		<Anchors>
			<Anchor point="LEFT" relativeTo="MailFrameTab2" relativePoint="RIGHT">
				<Offset>
					<AbsDimension x="-8" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Scripts>
			<OnClick>
				GMail:MailFrameTab_OnClick()
			</OnClick>
		</Scripts>
	</Button>

	<Frame name="GMailAcceptSendFrame" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" parent="GMailFrame">
		<Size>
			<AbsDimension x="400" y="150"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER" relativeTo="UIParent"/>
		</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">
				<Texture name="$parentHeaderTexture" file="Interface\DialogFrame\UI-DialogBox-Header">
					<Size>
						<AbsDimension x="256" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="12"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString inherits="GameFontNormal" text="GMAIL_SEND">
					<Anchors>
						<Anchor point="TOP" relativeTo="$parentHeaderTexture">
							<Offset>
								<AbsDimension x="0" y="-14"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentInfo" justifyV="top" inherits="GameFontNormal" text="GMAIL_SENDINFO">
					<Size>
						<AbsDimension x="350" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="-78"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentInfoString" justifyV="top" inherits="GameFontNormal" text="GMAIL_SENDINFO2">
					<Size>
						<AbsDimension x="350" y="12"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="-30"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentInfoItems" justifyV="top" inherits="GameFontNormal" text="">
					<Size>
						<AbsDimension x="350" y="12"/>
					</Size>
					<Anchors>
						<Anchor point="TOP" relativeTo="$parentInfoString" relativePoint="BOTTOM">
							<Offset>
								<AbsDimension x="0" y="-2"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="$parentMoneyFrame" inherits="SmallMoneyFrameTemplate">
				<Anchors>
					<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentInfo">
						<Offset>
							<AbsDimension x="0" y="5"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						SmallMoneyFrame_OnLoad();
						MoneyFrame_SetType("STATIC");
						MoneyFrame_Update(this:GetName(), GetSendMailPrice())	
					</OnLoad>
				</Scripts>
			</Frame>
			<Button name="$parentSendButton" hidden="false" inherits="GameMenuButtonTemplate" text="GMAIL_SENDBUTTON">
				<Size>
					<AbsDimension x="60" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOM" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="-32" y="8"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						GMailGlobalFrame.queue = GMail:FillItemTable();
						GMailGlobalFrame.total = getn(GMailGlobalFrame.queue);
						GMail:ClearItems();
						GMailGlobalFrame:Show();
						this:GetParent():Hide();
						GMAIL_CANSENDNEXT = 1
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentCancelButton" hidden="false" inherits="GameMenuButtonTemplate" text="GMAIL_CANCELBUTTON">
				<Size>
					<AbsDimension x="60" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOM" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="32" y="8"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						this:GetParent():Hide()
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnShow>
				getglobal(this:GetName() .. "InfoItems"):SetText(GMailFrame.num .. " " .. GMAIL_ITEMS);
				MoneyFrame_Update(this:GetName() .. "MoneyFrame", GMailFrame.num*GetSendMailPrice())
			</OnShow>
		</Scripts>
	</Frame>
	<Frame name="GMailInboxFrame" parent="UIParent">
		<Scripts>
			<OnUpdate>
				GMail:Inbox_OnUpdate(arg1)
			</OnUpdate>
		</Scripts>
	</Frame>
	<CheckButton name="GMailBoxItemCBTemplate" hidden="true" virtual="true" inherits="OptionsCheckButtonTemplate">
		<HitRectInsets>
			<AbsInset left="0" right="0" top="0" bottom="0"/>
		</HitRectInsets>
		<Size>
			<AbsDimension x="24" y="24"/>
		</Size>
		<Anchors>
			<Anchor point="RIGHT" relativePoint="LEFT">
				<Offset>
					<AbsDimension x="1" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Scripts>
			<OnClick>
				GMail_Inbox_SetSelected()
			</OnClick>
		</Scripts>
	</CheckButton>
	<CheckButton name="GMailBoxItem1CB" id="1" hidden="false" parent="MailItem1" inherits="GMailBoxItemCBTemplate"/>
	<CheckButton name="GMailBoxItem2CB" id="2" hidden="false" parent="MailItem2" inherits="GMailBoxItemCBTemplate"/>
	<CheckButton name="GMailBoxItem3CB" id="3" hidden="false" parent="MailItem3" inherits="GMailBoxItemCBTemplate"/>
	<CheckButton name="GMailBoxItem4CB" id="4" hidden="false" parent="MailItem4" inherits="GMailBoxItemCBTemplate"/>
	<CheckButton name="GMailBoxItem5CB" id="5" hidden="false" parent="MailItem5" inherits="GMailBoxItemCBTemplate"/>
	<CheckButton name="GMailBoxItem6CB" id="6" hidden="false" parent="MailItem6" inherits="GMailBoxItemCBTemplate"/>
	<CheckButton name="GMailBoxItem7CB" id="7" hidden="false" parent="MailItem7" inherits="GMailBoxItemCBTemplate"/>
	<Button name="GMailInboxOpenSelected" parent="InboxFrame" inherits="UIPanelButtonTemplate" text="GMAIL_INBOX_OPENSELECTED">
		<Size>
			<AbsDimension x="120" y="25"/>
		</Size>
		<Anchors>
			<Anchor relativePoint="TOP" point="RIGHT">
				<Offset>
					<AbsDimension x="5" y="-53"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Scripts>
			<OnClick>
				GMail_Inbox_OpenSelected()
			</OnClick>
		</Scripts>
	</Button>
	<Button name="GMailInboxOpenAllButton" parent="InboxFrame" inherits="UIPanelButtonTemplate" text="GMAIL_INBOX_OPENALL">
		<Size>
			<AbsDimension x="120" y="25"/>
		</Size>
		<Anchors>
			<Anchor relativePoint="TOP" point="LEFT">
				<Offset>
					<AbsDimension x="10" y="-53"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Scripts>
			<OnClick>
				ShowUIPanel(GMailInboxOpenAll)
			</OnClick>
		</Scripts>
	</Button>
	<Frame name="GMailInboxOpenAll" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" parent="MailFrame">
		<Size>
			<AbsDimension x="400" y="100"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER" relativeTo="UIParent"/>
		</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">
				<Texture name="$parentHeaderTexture" file="Interface\DialogFrame\UI-DialogBox-Header">
					<Size>
						<AbsDimension x="256" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="12"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString inherits="GameFontNormal" text="GMAIL_INBOX_OPENALLTITLE">
					<Anchors>
						<Anchor point="TOP" relativeTo="$parentHeaderTexture">
							<Offset>
								<AbsDimension x="0" y="-14"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentInfo" justifyV="top" inherits="GameFontNormal" text="GMAIL_INBOX_OPENALLCONFIRMATION">
					<Size>
						<AbsDimension x="350" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="4"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button name="$parentOpenButton" hidden="false" inherits="GameMenuButtonTemplate" text="GMAIL_INBOX_OPENALL">
				<Size>
					<AbsDimension x="125" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="-8" y="16"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						GMail_Inbox_OpenSelected(1);
						HideUIPanel(this:GetParent())
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentCancelButton" hidden="false" inherits="GameMenuButtonTemplate" text="GMAIL_CANCELBUTTON">
				<Size>
					<AbsDimension x="125" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMLEFT" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="8" y="16"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						HideUIPanel(this:GetParent())
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
	</Frame>
	
	<!-- Mail forwarding -->
	<Button name="OpenMailForwardButton" parent="OpenMailFrame" inherits="UIPanelButtonTemplate" text="Forward">
		<Size>
			<AbsDimension x="82" y="22"/>
		</Size>
		<Anchors>
			<Anchor point="RIGHT" relativeTo="OpenMailReplyButton" relativePoint="LEFT">
				<Offset>
					<AbsDimension x="0" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Scripts>
			<OnClick>
				GMail:OpenReply()
			</OnClick>
		</Scripts>
	</Button>
	<Frame name="GMailForwardFrame" parent="UIParent">
		<Scripts>
			<OnUpdate>
				GMail:Forward_OnUpdate(arg1)
			</OnUpdate>
		</Scripts>
	</Frame>

	<Frame name="GMailGlobalFrame" parent="UIParent" hidden="true">
		<Scripts>
			<OnUpdate>
				GMail:ProcessQueue(arg1)
			</OnUpdate>
		</Scripts>
	</Frame>
	<GameTooltip name="GMailTooltip" inherits="GameTooltipTemplate"></GameTooltip>
</Ui>
