<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="SellerHelper.lua"/>
	<GameTooltip name="SellerHelperTooltip" parent="UIParent" frameStrata="TOOLTIP" inherits="GameTooltipTemplate">
		<Scripts>
			<OnLoad>
				this:SetOwner(UIParent, "ANCHOR_NONE");
			</OnLoad>
		</Scripts>
	</GameTooltip>
	<Button name="SellerHelperItemTemplate" hidden="true" virtual="true">
		<Size>
			<AbsDimension x="271" y="37"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<FontString name="$parentName" inherits="GameFontNormal" justifyH="LEFT">
					<Size>
						<AbsDimension x="167" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="43" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<Texture name="$parentLeft" file="Interface\AuctionFrame\UI-AuctionItemNameFrame">
					<Size>
						<AbsDimension x="10" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="34" y="2"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="0.078125" top="0" bottom="1.0"/>
				</Texture>
				<Texture name="$parentRight" file="Interface\AuctionFrame\UI-AuctionItemNameFrame">
					<Size>
						<AbsDimension x="10" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT">
							<Offset>
								<AbsDimension x="0" y="2"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.75" right="0.828125" top="0" bottom="1.0"/>
				</Texture>
				<Texture file="Interface\AuctionFrame\UI-AuctionItemNameFrame">
					<Size>
						<AbsDimension x="10" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
						<Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.078125" right="0.75" top="0" bottom="1.0"/>
				</Texture>
			</Layer>
		</Layers>
        <Frames>
			<Button name="$parentItem">
				<Size>
					<AbsDimension x="32" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BORDER">
						<Texture name="$parentIconTexture"/>
						<FontString name="$parentCount" inherits="NumberFontNormal" justifyH="RIGHT">
							<Anchors>
								<Anchor point="BOTTOMRIGHT">
									<Offset>
										<AbsDimension x="-2" y="2"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnEnter>
						SellerHelperItem_OnEnter();
					</OnEnter>
					<OnLeave>
						SellerHelperItem_OnLeave();
					</OnLeave>
					<OnClick>
						SellerHelperItem_OnClick();
					</OnClick>
				</Scripts>
				<NormalTexture name="$parentNormalTexture" file="Interface\Buttons\UI-Quickslot2">
					<Size>
						<AbsDimension x="60" y="60"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</NormalTexture>
				<PushedTexture file="Interface\Buttons\UI-Quickslot-Depress"/>
				<HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/>
			</Button>
			<Frame name="$parentMoney" inherits="SmallMoneyFrameTemplate">
				<Anchors>
					<Anchor point="RIGHT">
						<Offset>
							<AbsDimension x="10" y="3"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						SmallMoneyFrame_OnLoad();
						MoneyFrame_SetType("STATIC");
					</OnLoad>
				</Scripts>
			</Frame>
		</Frames>
		<Scripts>
			<OnClick>
				SellerItemButton_OnClick();
			</OnClick>
		</Scripts>
		<HighlightTexture name="$parentHighlight" file="Interface\HelpFrame\HelpFrameButton-Highlight" alphaMode="ADD">
			<Size>
				<AbsDimension x="234" y="32"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset>
						<AbsDimension x="33" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			<TexCoords left="0" right="1.0" top="0" bottom="0.578125"/>
		</HighlightTexture>
	</Button>
	<Button name="SellerHelperLabelTemplate" virtual="true">
		<Size>
			<AbsDimension x="285" y="37"/>
		</Size>
		<Scripts>
			<OnClick>
				if (this.isExpanded) then
					SellerHelper_CollapseHeader(this.itemIndex);
				else
					SellerHelper_ExpandHeader(this.itemIndex);
				end

				SellerHelper_Update();
			</OnClick>
		</Scripts>
		<NormalTexture file="Interface\Buttons\UI-MinusButton-UP">
			<Size>
				<AbsDimension x="16" y="16"/>
			</Size>
			<Anchors>
				<Anchor point="LEFT">
					<Offset>
						<AbsDimension x="3" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
		</NormalTexture>
		<HighlightTexture name="$parentHighlight" file="Interface\Buttons\UI-PlusButton-Hilight" alphaMode="ADD">
			<Size>
				<AbsDimension x="16" y="16"/>
			</Size>
			<Anchors>
				<Anchor point="LEFT">
					<Offset>
						<AbsDimension x="3" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
		</HighlightTexture>
		<ButtonText name="$parentNormalText" inherits="GameFontNormal" justifyH="LEFT">
			<Size>
				<AbsDimension x="275" y="12"/>
			</Size>
			<Anchors>
				<Anchor point="LEFT">
					<Offset>
						<AbsDimension x="20" y="0"/>
					</Offset>
				</Anchor>
			</Anchors> 
		</ButtonText>
		<HighlightText name="$parentHighlightText" inherits="GameFontHighlight" justifyH="LEFT">
			<Size>
				<AbsDimension x="275" y="12"/>
			</Size>
			<Anchors>
				<Anchor point="LEFT">
					<Offset>
						<AbsDimension x="20" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
		</HighlightText>
		<DisabledText name="$parentDisabledText" inherits="GameFontHighlight" justifyH="LEFT">
			<Size>
				<AbsDimension x="275" y="12"/>
			</Size>
			<Anchors>
				<Anchor point="LEFT">
					<Offset>
						<AbsDimension x="20" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
		</DisabledText>
	</Button>
	<Frame name="SellerHelperFrame" enableMouse="true" parent="UIParent" hidden="true">
		<Size>
			<AbsDimension x="384" y="512"/>
		</Size>
		<Anchors>
			<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="MerchantFrame">
				<Offset>
					<AbsDimension x="0" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture file="Interface\PaperDollInfoFrame\UI-Character-General-TopLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="2" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture file="Interface\PaperDollInfoFrame\UI-Character-General-TopRight">
					<Size>
						<AbsDimension x="128" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT">
							<Offset>
								<AbsDimension x="2" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture file="Interface\PaperDollInfoFrame\SkillFrame-BotLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="2" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture file="Interface\PaperDollInfoFrame\SkillFrame-BotRight">
					<Size>
						<AbsDimension x="128" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="2" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
                <Texture name="SellerHelperFramePortrait">
                    <Size>
                        <AbsDimension x="57" y="57"/>
                    </Size>
                    <Anchors>
                        <Anchor point="TOPLEFT">
                            <Offset>
                                <AbsDimension x="11" y="-8"/>
                            </Offset>
                        </Anchor>
                    </Anchors>
                </Texture>
				<FontString inherits="GameFontNormalSmall" justifyH="LEFT" text="SELLER_HELPER_HELP_TEXT">
					<Size>
						<AbsDimension x="180" y="48"/>
					</Size>
					<Anchors>
						<Anchor point="TOP" relativeTo="SellerHelperFrame" relativePoint="TOP">
							<Offset>
								<AbsDimension x="45" y="-30"/>
							</Offset>
						</Anchor>
					</Anchors>
					<Color r="0.0" g="0.68" b="0.94"/>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
            <Frame name="SellerHelperNameFrame">
                <Size>
                    <AbsDimension x="109" y="12"/>
                </Size>
                 <Anchors>
                    <Anchor point="CENTER">
                        <Offset>
                            <AbsDimension x="6" y="232"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Layers>
                    <Layer>
                        <FontString name="SellerHelperNameText" inherits="GameFontNormal" text="SELLER_HELPER_TITLE">
                            <Size>
                                <AbsDimension x="300" y="12"/>
                            </Size>
                            <Anchors>
                                <Anchor point="CENTER"/>
                            </Anchors>
                            <Color r="1.0" g="1.0" b="1.0"/>
                        </FontString>
                    </Layer>
                </Layers>
                <Scripts>
                     <OnLoad>
                        this:SetFrameLevel(this:GetFrameLevel() + 1);
                    </OnLoad>
                </Scripts>
            </Frame>
            <Button name="SellerHelperFrameCloseButton" inherits="UIPanelCloseButton">
                <Anchors>
                    <Anchor point="CENTER" relativeTo="SellerHelperFrame" relativePoint="TOPRIGHT">
                        <Offset>
                            <AbsDimension x="-44" y="-26"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Scripts>
                    <OnLoad>
                        SellerHelperFrame:Hide();
                    </OnLoad>
                </Scripts>
            </Button>
			<Frame name="SellerHelperFrameExpandButtonFrame">
				<Size>
					<AbsDimension x="54" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="70" y="-49"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="SellerHelperFrameExpandTabLeft" file="Interface\QuestFrame\UI-QuestLogSortTab-Left">
							<Size>
								<AbsDimension x="8" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="0" y="6"/>
									</Offset>
								</Anchor>
							</Anchors>
						</Texture>
						<Texture name="SellerHelperFrameExpandTabMiddle" file="Interface\QuestFrame\UI-QuestLogSortTab-Middle">
							<Size>
								<AbsDimension x="42" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT" relativeTo="SellerHelperFrameExpandTabLeft" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</Texture>
						<Texture file="Interface\QuestFrame\UI-QuestLogSortTab-Right">
							<Size>
								<AbsDimension x="8" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT" relativeTo="SellerHelperFrameExpandTabMiddle" relativePoint="RIGHT"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Frames>
					<Button name="SellerHelperFrameCollapseAllButton" hidden="false" inherits="SellerHelperLabelTemplate">
						<Size>
							<AbsDimension x="40" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT" relativeTo="SellerHelperFrameExpandTabLeft" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="-3" y="-3"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								getglobal(this:GetName()):SetText(ALL);
								this.itemIndex = 0;
								this.isExpanded = 1;
							</OnLoad>
						</Scripts>
					</Button>
				</Frames>
			</Frame>
			<Button name="SellerHelperFrameCancelButton" inherits="UIPanelButtonTemplate" text="CLOSE">
				<Size>
					<AbsDimension x="80" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="305" y="-422"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						CancelSkillUps();
						this:GetParent():Hide();
						HideUIPanel(CharacterFrame);
					</OnClick>
				</Scripts>
			</Button>
			<Button name="SellerHelperLabel1" inherits="SellerHelperLabelTemplate">
				<Anchors>
					<Anchor point="LEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="22" y="-98"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="SellerHelperLabel2" inherits="SellerHelperLabelTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="SellerHelperLabel1">
						<Offset>
							<AbsDimension x="0" y="-40"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="SellerHelperLabel3" inherits="SellerHelperLabelTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="SellerHelperLabel2">
						<Offset>
							<AbsDimension x="0" y="-40"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="SellerHelperLabel4" inherits="SellerHelperLabelTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="SellerHelperLabel3">
						<Offset>
							<AbsDimension x="0" y="-40"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="SellerHelperLabel5" inherits="SellerHelperLabelTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="SellerHelperLabel4">
						<Offset>
							<AbsDimension x="0" y="-40"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="SellerHelperLabel6" inherits="SellerHelperLabelTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="SellerHelperLabel5">
						<Offset>
							<AbsDimension x="0" y="-40"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="SellerHelperLabel7" inherits="SellerHelperLabelTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="SellerHelperLabel6">
						<Offset>
							<AbsDimension x="0" y="-40"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="SellerHelperLabel8" inherits="SellerHelperLabelTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="SellerHelperLabel7">
						<Offset>
							<AbsDimension x="0" y="-40"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<ScrollFrame name="SellerHelperListScrollFrame" inherits="FauxScrollFrameTemplate">
				<Size>
					<AbsDimension x="296" y="333"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="SellerHelperFrame" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-67" y="-75"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture name="$parentScrollBarTexture" file="Interface\ClassTrainerFrame\UI-ClassTrainer-ScrollBar">
							<Size>
								<AbsDimension x="30" y="128"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
									<Offset>
										<AbsDimension x="-2" y="4"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="0.46875" top="0.0" bottom="1.0"/>
						</Texture>
						<Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-ScrollBar">
							<Size>
								<AbsDimension x="30" y="100"/>
							</Size>
							<Anchors>
								<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentScrollBarTexture">
									<Offset>
										<AbsDimension x="0" y="5"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="0.46875" top="0.5" bottom="1.0"/>
						</Texture>
						<Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-ScrollBar">
							<Size>
								<AbsDimension x="30" y="128"/>
							</Size>
							<Anchors>
								<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
									<Offset>
										<AbsDimension x="-2" y="-1"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.53125" right="1.0" top="0.0" bottom="1.0"/>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnVerticalScroll>
						SellerHelper_OnScroll();
					</OnVerticalScroll>
				</Scripts>
			</ScrollFrame>
			<Button name="SellerHelperItem1" inherits="SellerHelperItemTemplate" id="1">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="38" y="-80"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="SellerHelperItem2" inherits="SellerHelperItemTemplate" id="2">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="SellerHelperItem1" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-3"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="SellerHelperItem3" inherits="SellerHelperItemTemplate" id="3">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="SellerHelperItem2" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-3"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="SellerHelperItem4" inherits="SellerHelperItemTemplate" id="4">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="SellerHelperItem3" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-3"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="SellerHelperItem5" inherits="SellerHelperItemTemplate" id="5">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="SellerHelperItem4" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-3"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="SellerHelperItem6" inherits="SellerHelperItemTemplate" id="6">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="SellerHelperItem5" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-3"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="SellerHelperItem7" inherits="SellerHelperItemTemplate" id="7">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="SellerHelperItem6" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-3"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="SellerHelperItem8" inherits="SellerHelperItemTemplate" id="8">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="SellerHelperItem7" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-3"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
		</Frames>
		<Scripts>
			<OnShow>
				SellerHelperFrame_OnShow();
				PlaySound("igBackPackOpen");
				SetPortraitTexture(SellerHelperFramePortrait, "player");
			</OnShow>
			<OnLoad>
				SellerHelperFrame_OnLoad();
			</OnLoad>
			<OnEvent>
				SellerHelperFrame_OnEvent(event);
			</OnEvent>
			<OnHide>
				SellerHelperFrame_OnHide();
				PlaySound("igBackPackClose");
			</OnHide>
			<OnMouseWheel>
				return;
			</OnMouseWheel>
		</Scripts>
	</Frame>
	<Button name="SellHelper_Button" inherits="UIPanelButtonTemplate" parent="MerchantFrame" hidden="true" text="SELLER_HELPER_SHOW_TEXT">
		<Size>
			<AbsDimension x="100" y="24"/>
		</Size>
		<Anchors>
			<Anchor point="TOPRIGHT" relativeTo="MerchantFrame" relativePoint="TOPRIGHT">
				<Offset>
					<AbsDimension x="-50" y="-45"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Scripts>
			<OnClick>
				SellHelper_Button_OnClick();
			</OnClick>
		</Scripts>
	</Button>
</Ui>
