<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">
	<GameTooltip name="CT_EHTooltip" inherits="GameTooltipTemplate" parent="WorldFrame">
		<Scripts>
			<OnLoad>
				self:SetOwner(WorldFrame, "ANCHOR_NONE");
			</OnLoad>
		</Scripts>
	</GameTooltip>
	<Button name="CT_EH_LogTabTemplate" virtual="true">
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentBackground">
					<Anchors>
						<Anchor point="TOPLEFT"/>
						<Anchor point="BOTTOMRIGHT"/>
					</Anchors>
					<Color r="1" g="1" b="1" a="1"/>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnShow>
				_G[self:GetName() .. "Background"]:SetVertexColor(0, 0, 0, 0.5);
			</OnShow>
			<OnEnter>
				_G[self:GetName() .. "Background"]:SetVertexColor(0.5, 0.5, 0.5, 0.5);
			</OnEnter>
			<OnLeave>
				_G[self:GetName() .. "Background"]:SetVertexColor(0, 0, 0, 0.5);
			</OnLeave>
		</Scripts>
		<NormalFont style="GameFontNormal"/>
		<HighlightFont style="GameFontHighlight"/>
		<DisabledFont style="GameFontHighlight"/>
	</Button>
	<Button name="CT_ExpenseHistoryFrameTabTemplate" inherits="CharacterFrameTabButtonTemplate" virtual="true">
		<Size>
		    <AbsDimension x="115" y="32"/>
		</Size>
		<Scripts>
			<OnLoad>
				self:SetFrameLevel(2);
			</OnLoad>
			<OnClick>
				CT_EH_Tab_OnClick(self);
			</OnClick>
		</Scripts>
	</Button>
	<Frame name="CT_ExpenseHistoryLogLineTemplate" virtual="true" hidden="true">
		<Size>
			<AbsDimension x="375" y="20"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentDate" inherits="ChatFontNormal">
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="20" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentChar" inherits="ChatFontNormal">
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="80" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentType" inherits="ChatFontNormal">
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="205" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="$parentCost" inherits="SmallMoneyFrameTemplate">
				<Anchors>
					<Anchor point="RIGHT">
						<Offset>
							<AbsDimension x="-20" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self:SetAlpha(0.75);
						self.staticMoney = 0;
						MoneyFrame_SetType(self, "STATIC");
						self.info.truncateSmallCoins = 1;
						MoneyFrame_Update(self:GetName(), 0);
					</OnLoad>
				</Scripts>
			</Frame>
		</Frames>
	</Frame>
	<Frame name="CT_ExpenseHistoryClassTemplate" virtual="true" hidden="true">
		<Size>
			<AbsDimension x="32" y="32"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<Texture file="Interface\Glues\CharacterCreate\UI-CharacterCreate-Classes" name="$parentTexture">
					<Anchors>
						<Anchor point="TOPLEFT"/>
						<Anchor point="BOTTOMRIGHT"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="$parentPile">
				<Size>
					<AbsDimension x="25" y="1"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="42"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture name="$parentBackground" file="Interface\Tooltips\UI-Tooltip-Background" hidden="false">
							<Anchors>
								<Anchor point="TOPLEFT"/>
								<Anchor point="BOTTOMRIGHT"/>
							</Anchors>
							<Color r="1" g="1" b="1" a="0.4"/>
						</Texture>
						<FontString name="$parentNumber" text="5" inherits="GameFontNormal">
							<Anchors>
								<Anchor point="TOP">
									<Offset>
										<AbsDimension x="0" y="15"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
		</Frames>
		<Scripts>
			<OnEnter>
				GameTooltip:SetOwner(self, "ANCHOR_LEFT");
				GameTooltip:SetText(self.name);
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
	</Frame>
	<Frame name="CT_ExpenseHistoryFrame" movable="true" frameStrata="DIALOG" toplevel="true" hidden="true" parent="UIParent" clampedToScreen="true">
		<Size>
			<AbsDimension x="375" y="535"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER"/>
		</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="300" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="12"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="$parentTitle" inherits="GameFontNormal" text="CT_ExpenseHistory">
					<Anchors>
						<Anchor point="TOP" relativeTo="$parentHeaderTexture">
							<Offset>
								<AbsDimension x="0" y="-14"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentRecordingText" inherits="GameFontNormal">
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="-505"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button name="$parentCloseButton" hidden="false">
				<Size>
					<AbsDimension x="42" y="42"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="-5" y="-5"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						HideUIPanel(self:GetParent());
					</OnClick>
				</Scripts>
				<NormalTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Up"/>
				<PushedTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Down"/>
				<HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
			</Button>
			<Frame name="$parentDrag">
				<Size>
					<AbsDimension x="150" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="TOP">
						<Offset>
							<AbsDimension x="0" y="12"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnMouseDown>
						-- OnMouseDown(self, button)
						if ( button == "LeftButton" ) then
							self:GetParent():StartMoving();
						elseif ( button == "RightButton" ) then
							self:GetParent():ClearAllPoints();
							self:GetParent():SetPoint("CENTER", "UIParent", "CENTER");
						end
					</OnMouseDown>
					<OnMouseUp>
						-- OnMouseUp(self, button)
						self:GetParent():StopMovingOrSizing();
					</OnMouseUp>
					<OnEnter>
						-- OnEnter(self, motion)
						GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
						GameTooltip:SetText("Left-click to drag\nRight-click to reset");
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Frame>

			<Frame name="$parentSummary" hidden="false">
				<Anchors>
					<Anchor point="TOPLEFT"/>
					<Anchor point="BOTTOMRIGHT"/>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parentPlayerDistribution" inherits="GameFontNormal">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="25" y="-265"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentAverageRepair" inherits="GameFontNormal">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="25" y="-40"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentAvgExpensesPerDay" inherits="GameFontNormal">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="25" y="-65"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentAvgExpensesFlights" inherits="ChatFontNormal">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="45" y="-80"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentAvgExpensesRepairs" inherits="ChatFontNormal">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="45" y="-95"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentAvgExpensesReagents" inherits="ChatFontNormal">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="45" y="-110"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentAvgExpensesAmmo" inherits="ChatFontNormal">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="45" y="-125"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentAvgExpensesMail" inherits="ChatFontNormal">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="45" y="-140"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentTotalCost"  inherits="GameFontNormal">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="25" y="-165"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentTotalCostFlights"  inherits="ChatFontNormal">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="45" y="-180"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentTotalCostRepairs" inherits="ChatFontNormal">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="45" y="-195"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentTotalCostReagents" inherits="ChatFontNormal">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="45" y="-210"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentTotalCostAmmo" inherits="ChatFontNormal">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="45" y="-225"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentTotalCostMail" inherits="ChatFontNormal">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="45" y="-240"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Frame name="$parentAverageRepairMoney" inherits="MoneyFrameTemplate">
						<Anchors>
							<Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentAverageRepair">
								<Offset>
									<AbsDimension x="350" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self.staticMoney = 0;
								MoneyFrame_SetType(self, "STATIC");
								MoneyFrame_Update(self:GetName(), 0);
							</OnLoad>
						</Scripts>
					</Frame>
					<Frame name="$parentAvgExpensesPerDayMoney" inherits="MoneyFrameTemplate">
						<Anchors>
							<Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentAvgExpensesPerDay">
								<Offset>
									<AbsDimension x="350" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self.staticMoney = 0;
								MoneyFrame_SetType(self, "STATIC");
								MoneyFrame_Update(self:GetName(), 0);
							</OnLoad>
						</Scripts>
					</Frame>
					<Frame name="$parentTotalCostMoney" inherits="MoneyFrameTemplate">
						<Anchors>
							<Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentTotalCost">
								<Offset>
									<AbsDimension x="350" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self.staticMoney = 0;
								MoneyFrame_SetType(self, "STATIC");
								MoneyFrame_Update(self:GetName(), 0);
							</OnLoad>
						</Scripts>
					</Frame>
					<Frame name="$parentAvgExpensesFlightsMoney" inherits="SmallMoneyFrameTemplate">
						<Anchors>
							<Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentAvgExpensesFlights">
								<Offset>
									<AbsDimension x="330" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self:SetAlpha(0.75);
								self.staticMoney = 0;
								MoneyFrame_SetType(self, "STATIC");
								MoneyFrame_Update(self:GetName(), 0);
							</OnLoad>
						</Scripts>
					</Frame>
					<Frame name="$parentAvgExpensesRepairsMoney" inherits="SmallMoneyFrameTemplate">
						<Anchors>
							<Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentAvgExpensesRepairs">
								<Offset>
									<AbsDimension x="330" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self:SetAlpha(0.75);
								self.staticMoney = 0;
								MoneyFrame_SetType(self, "STATIC");
								MoneyFrame_Update(self:GetName(), 0);
							</OnLoad>
						</Scripts>
					</Frame>
					<Frame name="$parentAvgExpensesReagentsMoney" inherits="SmallMoneyFrameTemplate">
						<Anchors>
							<Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentAvgExpensesReagents">
								<Offset>
									<AbsDimension x="330" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self:SetAlpha(0.75);
								self.staticMoney = 0;
								MoneyFrame_SetType(self, "STATIC");
								MoneyFrame_Update(self:GetName(), 0);
							</OnLoad>
						</Scripts>
					</Frame>
					<Frame name="$parentAvgExpensesAmmoMoney" inherits="SmallMoneyFrameTemplate">
						<Anchors>
							<Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentAvgExpensesAmmo">
								<Offset>
									<AbsDimension x="330" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self:SetAlpha(0.75);
								self.staticMoney = 0;
								MoneyFrame_SetType(self, "STATIC");
								MoneyFrame_Update(self:GetName(), 0);
							</OnLoad>
						</Scripts>
					</Frame>
					<Frame name="$parentAvgExpensesMailMoney" inherits="SmallMoneyFrameTemplate">
						<Anchors>
							<Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentAvgExpensesMail">
								<Offset>
									<AbsDimension x="330" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self:SetAlpha(0.75);
								self.staticMoney = 0;
								MoneyFrame_SetType(self, "STATIC");
								MoneyFrame_Update(self:GetName(), 0);
							</OnLoad>
						</Scripts>
					</Frame>
					<Frame name="$parentTotalCostFlightsMoney" inherits="SmallMoneyFrameTemplate">
						<Anchors>
							<Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentTotalCostFlights">
								<Offset>
									<AbsDimension x="330" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self:SetAlpha(0.75);
								self.staticMoney = 0;
								MoneyFrame_SetType(self, "STATIC");
								MoneyFrame_Update(self:GetName(), 0);
							</OnLoad>
						</Scripts>
					</Frame>
					<Frame name="$parentTotalCostRepairsMoney" inherits="SmallMoneyFrameTemplate">
						<Anchors>
							<Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentTotalCostRepairs">
								<Offset>
									<AbsDimension x="330" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self:SetAlpha(0.75);
								self.staticMoney = 0;
								MoneyFrame_SetType(self, "STATIC");
								MoneyFrame_Update(self:GetName(), 0);
							</OnLoad>
						</Scripts>
					</Frame>
					<Frame name="$parentTotalCostReagentsMoney" inherits="SmallMoneyFrameTemplate">
						<Anchors>
							<Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentTotalCostReagents">
								<Offset>
									<AbsDimension x="330" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self:SetAlpha(0.75);
								self.staticMoney = 0;
								MoneyFrame_SetType(self, "STATIC");
								MoneyFrame_Update(self:GetName(), 0);
							</OnLoad>
						</Scripts>
					</Frame>
					<Frame name="$parentTotalCostAmmoMoney" inherits="SmallMoneyFrameTemplate">
						<Anchors>
							<Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentTotalCostAmmo">
								<Offset>
									<AbsDimension x="330" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self:SetAlpha(0.75);
								self.staticMoney = 0;
								MoneyFrame_SetType(self, "STATIC");
								MoneyFrame_Update(self:GetName(), 0);
							</OnLoad>
						</Scripts>
					</Frame>
					<Frame name="$parentTotalCostMailMoney" inherits="SmallMoneyFrameTemplate">
						<Anchors>
							<Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentTotalCostMail">
								<Offset>
									<AbsDimension x="330" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self:SetAlpha(0.75);
								self.staticMoney = 0;
								MoneyFrame_SetType(self, "STATIC");
								MoneyFrame_Update(self:GetName(), 0);
							</OnLoad>
						</Scripts>
					</Frame>
					<Frame name="$parentDiagram">
						<Size>
							<AbsDimension x="350" y="144"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="25" y="-270"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Frames>
							<Frame name="$parentClass1" inherits="CT_ExpenseHistoryClassTemplate" id="1">
								<Anchors>
									<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="17" y="-20"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Frame>
							<Frame name="$parentClass2" inherits="CT_ExpenseHistoryClassTemplate" id="2">
								<Anchors>
									<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentClass1">
										<Offset>
											<AbsDimension x="5" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Frame>
							<Frame name="$parentClass3" inherits="CT_ExpenseHistoryClassTemplate" id="3">
								<Anchors>
									<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentClass2">
										<Offset>
											<AbsDimension x="5" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Frame>
							<Frame name="$parentClass4" inherits="CT_ExpenseHistoryClassTemplate" id="4">
								<Anchors>
									<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentClass3">
										<Offset>
											<AbsDimension x="5" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Frame>
							<Frame name="$parentClass5" inherits="CT_ExpenseHistoryClassTemplate" id="5">
								<Anchors>
									<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentClass4">
										<Offset>
											<AbsDimension x="5" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Frame>
							<Frame name="$parentClass6" inherits="CT_ExpenseHistoryClassTemplate" id="6">
								<Anchors>
									<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentClass5">
										<Offset>
											<AbsDimension x="5" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Frame>
							<Frame name="$parentClass7" inherits="CT_ExpenseHistoryClassTemplate" id="7">
								<Anchors>
									<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentClass6">
										<Offset>
											<AbsDimension x="5" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Frame>
							<Frame name="$parentClass8" inherits="CT_ExpenseHistoryClassTemplate" id="8">
								<Anchors>
									<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentClass7">
										<Offset>
											<AbsDimension x="5" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Frame>
						</Frames>
					</Frame>
				</Frames>
				<Scripts>
					<OnLoad>
						local frame1 = CreateFrame("Frame", "CT_ExpenseHistoryFrameServerDropDown", self, "UIDropDownMenuTemplate");   -- L_Create_UIDropDownMenu("CT_ExpenseHistoryFrameServerDropDown",self);
						frame1:SetID(2);
						frame1:SetPoint("TOPLEFT",0,-475);
						frame1:SetSize(100,15);
						local frame2 = CreateFrame("Frame", "CT_ExpenseHistoryFrameDropDown", self, "UIDropDownMenuTemplate");  -- L_Create_UIDropDownMenu("CT_ExpenseHistoryFrameDropDown",self);
						frame2:SetID(1);
						frame2:SetSize(200,15);
						frame2:SetPoint("LEFT", frame1, "RIGHT", -30, 0);
						
						-- adding localized strings
						local L = CT_ExpenseHistory.text or { } --see localization.lua
						local strings =
						{
							{"AverageRepair", L["CT_ExpenseHistory/Summary/AverageRepair"]},
							{"AvgExpensesPerDay", L["CT_ExpenseHistory/Summary/AverageExpenses"]},
							{"AvgExpensesFlights", L["CT_ExpenseHistory/Summary/FlightCost"]},
							{"AvgExpensesRepairs", L["CT_ExpenseHistory/Summary/RepairCost"]},
							{"AvgExpensesReagents", L["CT_ExpenseHistory/Summary/ReagentCost"]},
							{"AvgExpensesAmmo", L["CT_ExpenseHistory/Summary/AmmoCost"]},
							{"AvgExpensesMail", L["CT_ExpenseHistory/Summary/MailCost"]},
							{"TotalCost", L["CT_ExpenseHistory/Summary/TotalCost"]},
							{"TotalCostFlights", L["CT_ExpenseHistory/Summary/FlightCost"]},
							{"TotalCostRepairs", L["CT_ExpenseHistory/Summary/RepairCost"]},
							{"TotalCostReagents", L["CT_ExpenseHistory/Summary/ReagentCost"]},
							{"TotalCostAmmo", L["CT_ExpenseHistory/Summary/AmmoCost"]},
							{"TotalCostMail", L["CT_ExpenseHistory/Summary/MailCost"]},
							{"PlayerDistribution", L["CT_ExpenseHistory/Summary/PlayerDistribution"]},
						}
						for __, data in ipairs(strings) do
							local string = _G[self:GetName() .. data[1]];
							string:SetText(data[2]);
						end
					</OnLoad>
				</Scripts>
			</Frame>
			<Frame name="$parentLog" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT"/>
					<Anchor point="BOTTOMRIGHT"/>
				</Anchors>
				<Frames>
					<Button name="$parentDate" inherits="CT_EH_LogTabTemplate">
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="12" y="-35"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Size>
							<AbsDimension x="60" y="24"/>
						</Size>
						<Scripts>
							<OnClick>
								CT_EH_SortLogBy(1);
								PlaySound(856);
							</OnClick>
							<OnLoad>
								self:SetText(CT_ExpenseHistory.text["CT_ExpenseHistory/Log/Date"]);
							</OnLoad>
						</Scripts>
					</Button>
					<Button name="$parentChar" inherits="CT_EH_LogTabTemplate">
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="72" y="-35"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Size>
							<AbsDimension x="125" y="24"/>
						</Size>
						<Scripts>
							<OnClick>
								CT_EH_SortLogBy(2);
								PlaySound(856);
							</OnClick>
							<OnLoad>
								self:SetText(CT_ExpenseHistory.text["CT_ExpenseHistory/Log/Char"]);
							</OnLoad>
						</Scripts>
					</Button>
					<Button name="$parentType" inherits="CT_EH_LogTabTemplate">
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="197" y="-35"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Size>
							<AbsDimension x="73" y="24"/>
						</Size>
						<Scripts>
							<OnClick>
								CT_EH_SortLogBy(3);
								PlaySound(856);
							</OnClick>
							<OnLoad>
								self:SetText(CT_ExpenseHistory.text["CT_ExpenseHistory/Log/Type"]);
							</OnLoad>
						</Scripts>
					</Button>
					<Button name="$parentCost" inherits="CT_EH_LogTabTemplate">
						<Anchors>
							<Anchor point="TOPRIGHT">
								<Offset>
									<AbsDimension x="-30" y="-35"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Size>
							<AbsDimension x="75" y="24"/>
						</Size>
						<Scripts>
							<OnClick>
								CT_EH_SortLogBy(4);
								PlaySound(856);
							</OnClick>
							<OnLoad>
								self:SetText(CT_ExpenseHistory.text["CT_ExpenseHistory/Log/Cost"]);
							</OnLoad>
						</Scripts>
					</Button>
					<ScrollFrame name="$parentScrollFrame" inherits="FauxScrollFrameTemplate">
						<Size>
							<AbsDimension x="320" y="465"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="19" y="-40"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnVerticalScroll>
								-- OnVerticalScroll(self, offset)
								FauxScrollFrame_OnVerticalScroll(self, offset, 20, CT_EH_UpdateLog);
							</OnVerticalScroll>
						</Scripts>
					</ScrollFrame>
					<Frame name="$parentLine1" inherits="CT_ExpenseHistoryLogLineTemplate" id="1">
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="0" y="-55"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Frame>
					<Frame name="$parentLine2" inherits="CT_ExpenseHistoryLogLineTemplate" id="2">
						<Anchors>
							<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentLine1"/>
						</Anchors>
					</Frame>
					<Frame name="$parentLine3" inherits="CT_ExpenseHistoryLogLineTemplate" id="3">
						<Anchors>
							<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentLine2"/>
						</Anchors>
					</Frame>
					<Frame name="$parentLine4" inherits="CT_ExpenseHistoryLogLineTemplate" id="4">
						<Anchors>
							<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentLine3"/>
						</Anchors>
					</Frame>
					<Frame name="$parentLine5" inherits="CT_ExpenseHistoryLogLineTemplate" id="5">
						<Anchors>
							<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentLine4"/>
						</Anchors>
					</Frame>
					<Frame name="$parentLine6" inherits="CT_ExpenseHistoryLogLineTemplate" id="6">
						<Anchors>
							<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentLine5"/>
						</Anchors>
					</Frame>
					<Frame name="$parentLine7" inherits="CT_ExpenseHistoryLogLineTemplate" id="7">
						<Anchors>
							<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentLine6"/>
						</Anchors>
					</Frame>
					<Frame name="$parentLine8" inherits="CT_ExpenseHistoryLogLineTemplate" id="8">
						<Anchors>
							<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentLine7"/>
						</Anchors>
					</Frame>
					<Frame name="$parentLine9" inherits="CT_ExpenseHistoryLogLineTemplate" id="9">
						<Anchors>
							<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentLine8"/>
						</Anchors>
					</Frame>
					<Frame name="$parentLine10" inherits="CT_ExpenseHistoryLogLineTemplate" id="10">
						<Anchors>
							<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentLine9"/>
						</Anchors>
					</Frame>
					<Frame name="$parentLine11" inherits="CT_ExpenseHistoryLogLineTemplate" id="11">
						<Anchors>
							<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentLine10"/>
						</Anchors>
					</Frame>
					<Frame name="$parentLine12" inherits="CT_ExpenseHistoryLogLineTemplate" id="12">
						<Anchors>
							<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentLine11"/>
						</Anchors>
					</Frame>
					<Frame name="$parentLine13" inherits="CT_ExpenseHistoryLogLineTemplate" id="13">
						<Anchors>
							<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentLine12"/>
						</Anchors>
					</Frame>
					<Frame name="$parentLine14" inherits="CT_ExpenseHistoryLogLineTemplate" id="14">
						<Anchors>
							<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentLine13"/>
						</Anchors>
					</Frame>
					<Frame name="$parentLine15" inherits="CT_ExpenseHistoryLogLineTemplate" id="15">
						<Anchors>
							<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentLine14"/>
						</Anchors>
					</Frame>
					<Frame name="$parentLine16" inherits="CT_ExpenseHistoryLogLineTemplate" id="16">
						<Anchors>
							<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentLine15"/>
						</Anchors>
					</Frame>
					<Frame name="$parentLine17" inherits="CT_ExpenseHistoryLogLineTemplate" id="17">
						<Anchors>
							<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentLine16"/>
						</Anchors>
					</Frame>
					<Frame name="$parentLine18" inherits="CT_ExpenseHistoryLogLineTemplate" id="18">
						<Anchors>
							<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentLine17"/>
						</Anchors>
					</Frame>
					<Frame name="$parentLine19" inherits="CT_ExpenseHistoryLogLineTemplate" id="19">
						<Anchors>
							<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentLine18"/>
						</Anchors>
					</Frame>
					<Frame name="$parentLine20" inherits="CT_ExpenseHistoryLogLineTemplate" id="20">
						<Anchors>
							<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentLine19"/>
						</Anchors>
					</Frame>
					<Frame name="$parentLine21" inherits="CT_ExpenseHistoryLogLineTemplate" id="21">
						<Anchors>
							<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentLine20"/>
						</Anchors>
					</Frame>
					<Frame name="$parentLine22" inherits="CT_ExpenseHistoryLogLineTemplate" id="22">
						<Anchors>
							<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentLine21"/>
						</Anchors>
					</Frame>
				</Frames>
			</Frame>
			<Button name="$parentTab1" inherits="CT_ExpenseHistoryFrameTabTemplate" id="1" ><Scripts><OnLoad>self:SetText(CT_ExpenseHistory.text["CT_ExpenseHistory/Summary/Heading"]);</OnLoad></Scripts>
                <Anchors>
                    <Anchor point="CENTER" relativePoint="BOTTOMLEFT">
                        <Offset>
                            <AbsDimension x="60" y="-8"/>
                        </Offset>
                    </Anchor>
                </Anchors>
			</Button>
			<Button name="$parentTab2" inherits="CT_ExpenseHistoryFrameTabTemplate" id="2" ><Scripts><OnLoad>self:SetText(CT_ExpenseHistory.text["CT_ExpenseHistory/Log/Heading"]);</OnLoad></Scripts>
                <Anchors>
                   <Anchor point="LEFT" relativeTo="$parentTab1" relativePoint="RIGHT">
                        <Offset>
                            <AbsDimension x="-16" y="0"/>
                        </Offset>
                    </Anchor>
                </Anchors>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad>
				self:RegisterEvent("PLAYER_ENTERING_WORLD");
				self.elapsed = 0;
				PanelTemplates_SetNumTabs(self, 2);
				PanelTemplates_SetTab(self, 1);
			</OnLoad>
			<OnEvent>
				CT_EH_OnEvent(event);
			</OnEvent>
			<OnShow>
				CT_EH_OnShow();
			</OnShow>
			<OnUpdate>
				CT_EH_ProcessAnimation(self, elapsed);
			</OnUpdate>
			<OnHide>
				PlaySound(1115);
			</OnHide>
		</Scripts>
	</Frame>
</Ui>