<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">
	<Frame name="QuestFramePanelTemplate" virtual="true">
		<Size x="384" y="512"/>
		<Anchors>
			<Anchor point="TOPLEFT"/>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentBg" file="Interface\QuestFrame\QuestBG">
					<Size x="510" y="620"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="7" y="-62"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<Texture name="$parentMaterialTopLeft">
					<Size x="239" y="300"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="7" y="-62"/>
					</Anchors>
				</Texture>
				<Texture name="$parentMaterialTopRight">
					<Size x="64" y="300"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentMaterialTopLeft" relativePoint="TOPRIGHT"/>
					</Anchors>
				</Texture>
				<Texture name="$parentMaterialBotLeft">
					<Size x="239" y="138"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentMaterialTopLeft" relativePoint="BOTTOMLEFT"/>
					</Anchors>
				</Texture>
				<Texture name="$parentMaterialBotRight">
					<Size x="64" y="138"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentMaterialTopLeft" relativePoint="BOTTOMRIGHT"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
	</Frame>
	<Button name="QuestItemTemplate" inherits="LargeItemButtonTemplate" virtual="true">
		<Scripts>
			<OnEnter>
				if ( self:GetAlpha() > 0 ) then
					if (self.objectType == "item") then
						GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
						GameTooltip:SetQuestItem(self.type, self:GetID());
						GameTooltip_ShowCompareItem(GameTooltip);
					elseif (self.objectType == "currency") then
						GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
						GameTooltip:SetQuestCurrency(self.type, self:GetID());
					end
				end
				CursorUpdate(self);
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
				ResetCursor();
			</OnLeave>
			<OnUpdate>
				CursorOnUpdate(self, elapsed);
			</OnUpdate>
			<OnClick>
				if (self.objectType == "item") then
					HandleModifiedItemClick(GetQuestItemLink(self.type, self:GetID()));
				end
			</OnClick>
		</Scripts>
	</Button>
	<Button name="QuestSpellTemplate" hidden="true" virtual="true">
		<Size x="157" y="56"/>
		<HitRectInsets left="0" right="0" top="0" bottom="14"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentIconTexture" parentKey="Icon">
					<Size x="39" y="39"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="10" y="-2"/>
					</Anchors>
				</Texture>
				<Texture name="$parentNameFrame" file="Interface\QuestFrame\UI-QuestItemNameFrame">
					<Size x="128" y="64"/>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentIconTexture" relativePoint="RIGHT" x="-12" y="0"/>
					</Anchors>
				</Texture>
				<FontString name="$parentName" inherits="GameFontHighlight" justifyH="LEFT" parentKey="Name">
					<Size  x="90" y="36"/>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentNameFrame"  x="17" y="0"/>
					</Anchors>
				</FontString>
			</Layer>
			<Layer level="OVERLAY">
				<Texture name="$parentSpellBorder" inherits="Spellbook-SlotFrame">
					<Anchors>
						<Anchor point="CENTER" relativeTo="$parentIconTexture" x="2" y="0"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnEnter>
				if (self.spellID) then
					GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
					GameTooltip:SetSpellByID(self.spellID);
				end
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
			<OnClick>
				if ( IsModifiedClick("CHATLINK") and self.spellID) then
					ChatEdit_InsertLink(GetSpellLink(self.spellID));
				end
			</OnClick>
		</Scripts>
	</Button>
	<Button name="QuestTitleButtonTemplate" virtual="true">
		<Size x="300" y="16"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentQuestIcon" file="Interface\GossipFrame\AvailableQuestIcon">
					<Size x="16" y="16"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="4" y="2"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnClick>
				QuestTitleButton_OnClick(self, button, down);
			</OnClick>
		</Scripts>
		<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/>
		<ButtonText>
			<Size x="275" y="0"/>
			<Anchors>
				<Anchor point="TOPLEFT" x="20" y="0"/>
			</Anchors>
		</ButtonText>
		<NormalFont style="QuestFontLeft"/>
	</Button>
	<Button name="QuestSkillPointFrameTemplate" inherits="LargeItemButtonTemplate" virtual="true">
		<Layers>
			<Layer level="OVERLAY">
				<Texture name="$parentSkillPointBg" file="Interface\QuestFrame\SkillUp-BG">
					<Size x="32" y="32"/>
					<Anchors>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parentIconTexture" x="12" y="-6"/>
					</Anchors>
				</Texture>
				<Texture name="$parentSkillPointBgGlow" file="Interface\QuestFrame\SkillUp-Glow" alphaMode="ADD" alpha="0.3">
					<Size x="64" y="64"/>
					<Anchors>
						<Anchor point="CENTER" relativeTo="$parentSkillPointBg"/>
					</Anchors>
				</Texture>
				<FontString name="$parentPoints" inherits="GameFontNormalLarge" justifyH="LEFT">
					<Anchors>
						<Anchor point="CENTER" relativeTo="$parentSkillPointBg" relativePoint="CENTER" x="3"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				-- Hacks to get this to display a little more nicely
				_G[self:GetName().."IconTexture"]:SetPoint("TOPLEFT", -3, 0);
				_G[self:GetName().."Name"]:SetPoint("LEFT", _G[self:GetName().."NameFrame"], 24, 0);
				_G[self:GetName().."Name"]:SetWidth(81);
			</OnLoad>
			<OnEnter>
				if (self.tooltip) then
					GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
					GameTooltip:SetText(self.tooltip, HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
				end
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
   </Button>
	<Button name="QuestTalentFrameTemplate" inherits="QuestSkillPointFrameTemplate" virtual="true"/>
   <Frame name="QuestXPFrameTemplate" virtual="true">
		<Size x="280" y="20"/>
		<Layers>
			<Layer level="BACKGROUND">
				<FontString name="$parentReceiveText" inherits="QuestFont" text="EXPERIENCE_COLON">
					<Anchors>
						<Anchor point="LEFT" x="0" y="0"/>
					</Anchors>
				</FontString>
				<FontString name="$parentPoints" inherits="NumberFontNormalLarge" justifyH="LEFT">
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentReceiveText" relativePoint="RIGHT" x="15" y="0"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
   </Frame>   
   <Frame name="QuestReputationTemplate" virtual="true">
		<Size x="280" y="15"/>
		<Layers>
			<Layer level="BACKGROUND">
				<FontString name="$parentFaction" inherits="QuestFont" parentKey="Faction">
					<Anchors>
						<Anchor point="LEFT" x="0" y="0"/>
					</Anchors>
				</FontString>
				<FontString name="$parentAmount" inherits="NumberFontNormalLarge" justifyH="LEFT" parentKey="Amount">
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentFaction" relativePoint="RIGHT" x="15" y="0"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
   </Frame>   
   <Frame name="QuestPlayerTitleFrameTemplate" virtual="true">
		<Size x="500" y="40"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentIconTexture" file="Interface\Icons\INV_Misc_Note_02">
					<Size x="39" y="39"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="0" y="0"/>
					</Anchors>
				</Texture>
				<Texture name="$parentTitleFrameLeft" file="Interface\QuestFrame\UI-QuestItemNameFrame">
					<Size x="4" y="40"/>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentIconTexture" relativePoint="RIGHT" x="2" y="0"/>
					</Anchors>
					<TexCoords left="0.078125" right="0.1171875" top="0.15625" bottom="0.828125"/>
				</Texture>
				<Texture name="$parentTitleFrameCenter" file="Interface\QuestFrame\UI-QuestItemNameFrame">
					<Size x="200" y="40"/>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentTitleFrameLeft" relativePoint="RIGHT" x="0" y="0"/>
					</Anchors>
					<TexCoords left="0.1171875" right="0.828125" top="0.15625" bottom="0.828125"/>
				</Texture>
				<Texture file="Interface\QuestFrame\UI-QuestItemNameFrame">
					<Size x="11" y="40"/>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentTitleFrameCenter" relativePoint="RIGHT" x="0" y="0"/>
					</Anchors>
					<TexCoords left="0.828125" right="0.9140625" top="0.15625" bottom="0.828125"/>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<FontString name="$parentTitleLabel" inherits="GameFontNormalSmall" justifyH="LEFT" text="REWARD_TITLE">
					<Size x="200" y="12"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTitleFrameLeft" x="8" y="-9"/>
					</Anchors>
				</FontString>
				<FontString name="$parentTitle" inherits="GameFontHighlight" justifyH="LEFT" justifyV="TOP">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTitleLabel" relativePoint="BOTTOMLEFT" x="0" y="0"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Frame>
	<ScrollFrame name="QuestScrollFrameTemplate" inherits="UIPanelScrollFrameTemplate" virtual="true">
		<Size x="300" y="403"/>
		<Anchors>
			<Anchor point="TOPLEFT" relativeTo="QuestFrame" x="5" y="-65"/>
		</Anchors>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parentTop" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
					<Size x="31" y="102"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="-2" y="5"/>
					</Anchors>
					<TexCoords left="0" right="0.484375" top="0" bottom="0.4"/>
				</Texture>
				<Texture name="$parentBottom" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
					<Size x="31" y="106"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="-2" y="-2"/>
					</Anchors>
					<TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625"/>
				</Texture>
				<Texture name="$parentMiddle" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
					<Size x="31" y="1"/>
					<Anchors>
						<Anchor point="TOP" relativeTo="$parentTop" relativePoint="BOTTOM"/>
						<Anchor point="BOTTOM" relativeTo="$parentBottom" relativePoint="TOP"/>
					</Anchors>
					<TexCoords left="0" right="0.484375" top=".75" bottom="1.0"/>
				</Texture>
			</Layer>
		</Layers>
	</ScrollFrame>
</Ui>