<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="WatchFrame.lua"/>
	
	<Texture name="AutoQuest-QuestLogIcon" file="Interface\QuestFrame\AutoQuest-Parts" virtual="true" >
		<Size x="10" y="13"/>	
		<TexCoords left="0.00195313" right="0.02148438" top="0.01562500" bottom="0.21875000"/>	
	</Texture>
	<Texture name="AutoQuestToastBorder-TopLeft" file="Interface\QuestFrame\AutoQuest-Parts" virtual="true" >
		<Size x="16" y="16"/>	
		<TexCoords left="0.02539063" right="0.05664063" top="0.01562500" bottom="0.26562500"/>	
	</Texture>
	<Texture name="AutoQuestToastBorder-TopRight" file="Interface\QuestFrame\AutoQuest-Parts" virtual="true" >
		<Size x="16" y="16"/>	
		<TexCoords left="0.02539063" right="0.05664063" top="0.29687500" bottom="0.54687500"/>	
	</Texture>
	<Texture name="AutoQuestToastBorder-BotLeft" file="Interface\QuestFrame\AutoQuest-Parts" virtual="true" >
		<Size x="16" y="16"/>	
		<TexCoords left="0.02539063" right="0.05664063" top="0.57812500" bottom="0.82812500"/>	
	</Texture>
	<Texture name="AutoQuestToastBorder-BotRight" file="Interface\QuestFrame\AutoQuest-Parts" virtual="true" >
		<Size x="16" y="16"/>	
		<TexCoords left="0.06054688" right="0.09179688" top="0.01562500" bottom="0.26562500"/>	
	</Texture>
	<Texture name="TrackerButton-AutoComplete-Up" file="Interface\QuestFrame\AutoQuest-Parts" virtual="true" >
		<Size x="18" y="19"/>	
		<TexCoords left="0.09570313" right="0.13085938" top="0.01562500" bottom="0.31250000"/>	
	</Texture>
	<Texture name="TrackerButton-AutoComplete-Down" file="Interface\QuestFrame\AutoQuest-Parts" virtual="true" >
		<Size x="18" y="19"/>	
		<TexCoords left="0.09570313" right="0.13085938" top="0.34375000" bottom="0.64062500"/>	
	</Texture>
	<Texture name="QuestIcon-Exclamation" file="Interface\QuestFrame\AutoQuest-Parts" virtual="true" >
		<Size x="19" y="33"/>	
		<TexCoords left="0.13476563" right="0.17187500" top="0.01562500" bottom="0.53125000"/>	
	</Texture>
	<Texture name="QuestIcon-QuestionMark" file="Interface\QuestFrame\AutoQuest-Parts" virtual="true" >
		<Size x="19" y="33"/>	
		<TexCoords left="0.17578125" right="0.21289063" top="0.01562500" bottom="0.53125000"/>	
	</Texture>
	<Texture name="QuestIcon-WhiteFlash" file="Interface\QuestFrame\AutoQuest-Parts" virtual="true" >
		<Size x="42" y="42"/>	
		<TexCoords left="0.21679688" right="0.29882813" top="0.01562500" bottom="0.67187500"/>	
	</Texture>
	<Texture name="QuestIcon-Large" file="Interface\QuestFrame\AutoQuest-Parts" virtual="true" >
		<Size x="60" y="60"/>	
		<TexCoords left="0.30273438" right="0.41992188" top="0.01562500" bottom="0.95312500"/>	
	</Texture>
	<Texture name="QuestTracker-Shadow" file="Interface\QuestFrame\AutoQuest-Parts" virtual="true" >
		<Size x="262" y="49"/>	
		<TexCoords left="0.42382813" right="0.93554688" top="0.01562500" bottom="0.78125000"/>	
	</Texture>
		
	<FontString name="WatchFontTemplate" inherits="GameFontHighlight" virtual="true" justifyH="LEFT" justifyV="MIDDLE">
		<Size>
			<AbsDimension x="0" y="16"/>
		</Size>
	</FontString>
	
	<Button name="WatchFrameLinkButtonTemplate" virtual="true">
		<Scripts>
			<OnLoad> self:RegisterForClicks("LeftButtonUp", "RightButtonUp"); </OnLoad>
			<OnClick> WatchFrameLinkButtonTemplate_OnClick(self, button, down); </OnClick>
			<OnEnter> WatchFrameLinkButtonTemplate_Highlight(self, true); </OnEnter>
			<OnLeave> WatchFrameLinkButtonTemplate_Highlight(self, false); </OnLeave>
		</Scripts>
	</Button>
	
	<Button name="WatchFrameItemButtonTemplate" virtual="true">
		<Size x="26" y="26"/>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentHotKey" inherits="NumberFontNormalSmallGray" justifyH="LEFT" text="RANGE_INDICATOR">
					<Size>
						<AbsDimension x="29" y="10"/>
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT">
							<Offset>
								<AbsDimension x="16" y="-2"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
			<Layer level="BORDER">
				<Texture name="$parentIconTexture"/>
				<FontString name="$parentCount" inherits="NumberFontNormal" justifyH="RIGHT" hidden="true">
					<Anchors>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="-3" y="2"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentStock" inherits="NumberFontNormalYellow" justifyH="LEFT" hidden="true">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="0" y="-2"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>			
		</Layers>
		<Frames>
			<Cooldown name="$parentCooldown" inherits="CooldownFrameTemplate"/>
		</Frames>
		<Scripts>
			<OnLoad>
				WatchFrameItem_OnLoad(self);
			</OnLoad>
			<OnEvent>
				WatchFrameItem_OnEvent(self, event, ...);
			</OnEvent>
			<OnUpdate>
				WatchFrameItem_OnUpdate(self, elapsed);
			</OnUpdate>
			<OnShow>
				WatchFrameItem_OnShow(self);
			</OnShow>
			<OnHide>
				WatchFrameItem_OnHide(self);
			</OnHide>
			<OnEnter>
				WatchFrameItem_OnEnter(self, motion);
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
			<OnClick>
				WatchFrameItem_OnClick(self, button, down);
			</OnClick>
		</Scripts>
		<NormalTexture name="$parentNormalTexture" file="Interface\Buttons\UI-Quickslot2">
			<Size x="42" y="42"/>
			<Anchors>
				<Anchor point="CENTER"/>
			</Anchors>
		</NormalTexture>
		<PushedTexture file="Interface\Buttons\UI-Quickslot-Depress"/>
		<HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/>		
	</Button>
	
	<Frame name="WatchFrameLineTemplate" virtual="true">
		<Size x="150" y="16"/>
		<Layers>
			<Layer level="BACKGROUND">
				<FontString name="$parentDash" inherits="WatchFontTemplate" justifyV="TOP" parentKey="dash">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset x="0" y="-1"/>
						</Anchor>
						<Anchor point="BOTTOMLEFT"/>
					</Anchors>
				</FontString>				
				<FontString name="$parentText" inherits="WatchFontTemplate" parentKey="text">
					<Size x="160" y="0"/>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentDash" relativePoint="RIGHT" />
					</Anchors>
				</FontString>
			</Layer>

		</Layers>
		<Scripts>
			<OnLoad>
				WatchFrameLineTemplate_OnLoad(self);
			</OnLoad>
		</Scripts>
	</Frame>
	
	<Frame name="WatchFrame" parent="UIParent" clampedToScreen="true" hidden="false" frameStrata="LOW">
		<Size x="204" y="140"/>
		<Anchors>
			<Anchor point="TOPRIGHT" relativeTo="MinimapCluster" relativePoint="BOTTOMRIGHT">
				<Offset x="0" y="0"/>
			</Anchor>
		</Anchors>
		<Frames>
			<Button name="$parentHeader">
				<Size>
					<AbsDimension x="160" y="16"/>
				</Size>			
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="0" y="-6"/>
					</Anchor>
				</Anchors>
				<Layers>		
					<Layer level="OVERLAY">
						<FontString name="WatchFrameTitle" inherits="GameFontNormal" text="OBJECTIVES_TRACKER_LABEL">
							<Anchors>
								<Anchor point="TOPLEFT" />
							</Anchors>
						</FontString>
					</Layer>
				</Layers>				
				<Scripts>
					<OnLoad> self:RegisterForClicks("RightButtonUp"); </OnLoad>
					<OnClick function="WatchFrameHeader_OnClick" />
				</Scripts>
			</Button>
			<Button name="$parentCollapseExpandButton">
				<Size>
					<AbsDimension x="16" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset x="-12" y="-5"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick function="WatchFrame_CollapseExpandButton_OnClick"/>
				</Scripts>
				<NormalTexture file="Interface\Buttons\UI-Panel-QuestHideButton">
					<TexCoords left="0" right="0.5" top="0.5" bottom="1"/>
				</NormalTexture>
				<PushedTexture file="Interface\Buttons\UI-Panel-QuestHideButton">
					<TexCoords left="0.5" right="1" top="0.5" bottom="1"/>
				</PushedTexture>
				<HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD" />
				<DisabledTexture file="Interface\Buttons\UI-Panel-QuestHideButton-disabled" />
			</Button>
			<Frame name="WatchFrameLines" hidden="false">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="WatchFrame" relativePoint="TOPLEFT">
						<Offset x="0" y="-30"/>
					</Anchor>
					<Anchor point="BOTTOMRIGHT" relativeTo="WatchFrame" relativePoint="BOTTOMRIGHT">
						<Offset x="-24" y="12"/>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="WatchFrameLinesShadow" inherits="QuestTracker-Shadow" parentKey="Shadow" hidden="true">
							<Anchors>
								<Anchor point="TOPLEFT" x="-40" y="8"/>
							</Anchors>
							<Animations>
								<AnimationGroup name="WatchFrameLinesShadowFadeIn" parentKey="FadeIn">
									<Alpha change="-1" duration="0" order="1"/>
									<Alpha change="1" duration="0.5" order="2"/>
								</AnimationGroup>
							</Animations>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						self:SetFrameStrata("LOW");
						self.updateFunctions = {};
						self.numFunctions = 0;
					</OnLoad>
				</Scripts>
			</Frame>
		</Frames>		
		<Scripts>
			<OnLoad function="WatchFrame_OnLoad"/>
			<OnEvent function="WatchFrame_OnEvent"/>
			<OnUpdate function="WatchFrame_OnUpdate"/>
		</Scripts>
	</Frame>
	
	<ScrollFrame name="WatchFrameAutoQuestPopUpTemplate" enableMouse="true" virtual="true">
		<Size x="224" y="72"/>
		<Scripts>
			<OnMouseUp>
				if (self.type == "OFFER") then
					ShowQuestOffer(GetQuestLogIndexByID(self.questId));
				else
					ShowQuestComplete(GetQuestLogIndexByID(self.questId));
				end
				WatchFrameAutoQuest_ClearPopUp(self.questId);
			</OnMouseUp>
			<OnLoad>
				self:SetHorizontalScroll(-28.5);
			</OnLoad>
		</Scripts>
		<ScrollChild>
			<Frame name="$parentScrollChild" parentKey="ScrollChild">
				<Size x="190" y="60"/>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentBg" setAllPoints="true">	
							<Color r="0" g="0" b="0" a="0.5"/>
						</Texture>
					</Layer>
					<Layer level="BORDER">
						<Texture name="$parentBorderTopLeft" inherits="AutoQuestToastBorder-TopLeft">
							<Anchors>
								<Anchor point="TOPLEFT" x="-4" y="4" />
							</Anchors>
						</Texture>
						<Texture name="$parentBorderTopRight" inherits="AutoQuestToastBorder-TopRight">
							<Anchors>
								<Anchor point="TOPRIGHT" x="4" y="4" />
							</Anchors>
						</Texture>
						<Texture name="$parentBorderBotLeft" inherits="AutoQuestToastBorder-BotLeft">
							<Anchors>
								<Anchor point="BOTTOMLEFT" x="-4" y="-4" />
							</Anchors>
						</Texture>
						<Texture name="$parentBorderBotRight" inherits="AutoQuestToastBorder-BotRight">
							<Anchors>
								<Anchor point="BOTTOMRIGHT" x="4" y="-4"/>
							</Anchors>
						</Texture>
						<Texture name="$parentBorderLeft" file="Interface\QuestFrame\AutoQuestToastBorder-LeftRight" vertTile="true">
							<Size x="8" y="16"/>
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parentBorderTopLeft" relativePoint="BOTTOMLEFT"/>
								<Anchor point="BOTTOMLEFT" relativeTo="$parentBorderBotLeft" relativePoint="TOPLEFT"/>
							</Anchors>
							<TexCoords left="0" right="0.5" top="0" bottom="1"/>
						</Texture>
						<Texture name="$parentBorderRight" file="Interface\QuestFrame\AutoQuestToastBorder-LeftRight" vertTile="true">
							<Size x="8" y="16"/>
							<Anchors>
								<Anchor point="TOPRIGHT" relativeTo="$parentBorderTopRight" relativePoint="BOTTOMRIGHT"/>
								<Anchor point="BOTTOMRIGHT" relativeTo="$parentBorderBotRight" relativePoint="TOPRIGHT"/>
							</Anchors>
							<TexCoords left="0.5" right="1" top="0" bottom="1"/>
						</Texture>
						<Texture name="$parentBorderTop" file="Interface\QuestFrame\AutoQuestToastBorder-TopBot" horizTile="true">
							<Size x="16" y="8"/>
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parentBorderTopLeft" relativePoint="TOPRIGHT"/>
								<Anchor point="TOPRIGHT" relativeTo="$parentBorderTopRight" relativePoint="TOPLEFT"/>
							</Anchors>
							<TexCoords left="0" right="1" top="0" bottom="0.5"/>
						</Texture>
						<Texture name="$parentBorderBottom" file="Interface\QuestFrame\AutoQuestToastBorder-TopBot" horizTile="true">
							<Size x="16" y="8"/>
							<Anchors>
								<Anchor point="BOTTOMLEFT" relativeTo="$parentBorderBotLeft" relativePoint="BOTTOMRIGHT"/>
								<Anchor point="BOTTOMRIGHT" relativeTo="$parentBorderBotRight" relativePoint="BOTTOMLEFT"/>
							</Anchors>
							<TexCoords left="0" right="1" top="0.5" bottom="1"/>
						</Texture>
					</Layer>
					<Layer level="ARTWORK">
						<Texture name="$parentQuestIconBg" inherits="QuestIcon-Large">
							<Anchors>
								<Anchor point="CENTER" relativePoint="LEFT"/>
							</Anchors>
						</Texture>
					</Layer>
					<Layer level="ARTWORK" textureSubLevel="1">
						<Texture name="$parentExclamation" inherits="QuestIcon-Exclamation" parentKey="Exclamation" hidden="true">
							<Anchors>
								<Anchor point="CENTER" relativeTo="$parentQuestIconBg" x="0.5" />
							</Anchors>
						</Texture>
						<Texture name="$parentQuestionMark" inherits="QuestIcon-QuestionMark" parentKey="QuestionMark" hidden="true">
							<Anchors>
								<Anchor point="CENTER" relativeTo="$parentQuestIconBg" x="0.5" />
							</Anchors>
						</Texture>
					</Layer>
					<Layer level="BORDER">
						<FontString name="$parentQuestName" inherits="QuestFont_Large" parentKey="QuestName">
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentQuestIconBg" relativePoint="RIGHT" x="-6"/>
								<Anchor point="RIGHT" x="-8"/>
								<Anchor point="TOP" x="0" y="-24"/>
							</Anchors>
							<Color r="1" g="1" b="1"/>
						</FontString>
						<FontString name="$parentTopText" inherits="GameFontNormalSmall" parentKey="TopText">
							<Anchors>
								<Anchor point="TOP" x="0" y="-4"/>
								<Anchor point="LEFT" relativeTo="$parentQuestIconBg" relativePoint="RIGHT" x="-6"/>
								<Anchor point="RIGHT" x="-8"/>
							</Anchors>
						</FontString>
						<FontString name="$parentBottomText" inherits="GameFontDisableSmall" parentKey="BottomText">
							<Anchors>
								<Anchor point="BOTTOM" x="0" y="4"/>
								<Anchor point="LEFT" relativeTo="$parentQuestIconBg" relativePoint="RIGHT" x="-6"/>
								<Anchor point="RIGHT" x="-8"/>
							</Anchors>
						</FontString>
					</Layer>
					<Layer level="BORDER" textureSubLevel="1">
						<Texture name="$parentShine" alphaMode="ADD" alpha="0" hidden="true" parentKey="Shine">
							<Animations>
								<AnimationGroup name="$parentFlash" parentKey="Flash">
									<Alpha startDelay="0" change="0.4" duration="0.25" order="1"/>
									<Alpha startDelay="0.05" change="-0.4" duration="0.25" order="2"/>
									<Scripts>
										<OnStop>
											self:GetParent():Hide();
										</OnStop>
										<OnFinished>
											self:GetParent():Hide();
										</OnFinished>
									</Scripts>
								</AnimationGroup>
							</Animations>
							<Anchors>
								<Anchor point="TOPLEFT" x="-1" y="1"/>
								<Anchor point="BOTTOMRIGHT" x="1" y="-1"/>
							</Anchors>
							<Color r="1" g="1" b="1"/>
						</Texture>
					</Layer>
					<Layer level="OVERLAY">
						<Texture name="$parentIconShine" alphaMode="ADD" inherits="QuestIcon-WhiteFlash" alpha="0" hidden="true" parentKey="IconShine">
							<Anchors>
								<Anchor point="CENTER" relativeTo="$parentQuestIconBg"/>
							</Anchors>
							<Animations>
								<AnimationGroup name="$parentFlash" parentKey="Flash">
									<Alpha change="0.9" duration="0.25" order="1"/>
									<Alpha startDelay="0.05" change="-0.9" duration="0.25" order="2"/>
									<Scripts>
										<OnStop>
											self:GetParent():Hide();
										</OnStop>
										<OnFinished>
											self:GetParent():Hide();
											if (self:GetParent():GetParent():GetParent().type=="COMPLETED") then
												self:GetParent():GetParent().Flash:Show();
											end
										</OnFinished>
									</Scripts>
								</AnimationGroup>
							</Animations>
						</Texture>
					</Layer>
				</Layers>
				<Frames>
					<Frame name="$parentFlash" useParentLevel="true" setAllPoints="true" hidden="true" parentKey="Flash">
						<Layers>
							<Layer level="BORDER">
								<Texture name="QuestLogFrameCompleteButtonFlash" inherits="UIPanelButtonHighlightTexture" parentKey="Flash">
									<Size x="180" y="28"/>
									<Anchors>
										<Anchor point="TOPLEFT" x="14" y="-2"/>
									</Anchors>
								</Texture>
							</Layer>
							<Layer level="OVERLAY">
								<Texture name="$parentIconFlash" alphaMode="ADD" inherits="QuestIcon-WhiteFlash" alpha="0.5" parentKey="IconFlash">
									<Anchors>
										<Anchor point="CENTER" relativePoint="LEFT"/>
									</Anchors>
								</Texture>
							</Layer>
						</Layers>
						<Scripts>
							<OnLoad>
								self.IconFlash:SetVertexColor(1, 0, 0);
							</OnLoad>
							<OnShow>
								UIFrameFlash(self, 0.75, 0.75, -1, nil);
							</OnShow>
							<OnHide>
								UIFrameFlashStop(self);
							</OnHide>
						</Scripts>
					</Frame>
				</Frames>
			</Frame>
		</ScrollChild>
	</ScrollFrame>

	<Frame name="WatchFrameHeaderDropDown" inherits="UIDropDownMenuTemplate" id="1" hidden="true">
		<Size>
			<AbsDimension x="10" y="10"/>
		</Size>
		<Scripts>
			<OnLoad function="WatchFrameHeaderDropDown_OnLoad"/>
		</Scripts>
	</Frame>	
	<Frame name="WatchFrameDropDown" inherits="UIDropDownMenuTemplate" id="1" hidden="true">
		<Size>
			<AbsDimension x="10" y="10"/>
		</Size>
		<Scripts>
			<OnLoad function="WatchFrameDropDown_OnLoad"/>
		</Scripts>
	</Frame>

	<Frame name="WatchFrameScenarioLineTemplate" inherits="WatchFrameLineTemplate" virtual="true">
		<Layers>
			<Layer level="ARTWORK">
				<Texture parentKey="Glow" file="Interface\Scenarios\Objective-Lineglow" alpha="0" alphaMode="ADD">
					<Size x="80" y="0"/>
					<Anchors>
						<Anchor point="LEFT" relativeKey="$parent.text" x="-2" y="0"/>
						<Anchor point="TOP" x="0" y="-3"/>
						<Anchor point="BOTTOM" x="0" y="-3"/>
					</Anchors>
					<Animations>
						<AnimationGroup parentKey="ScaleAnim">
							<Scale parentKey="ScaleGlow" startDelay="0.067" scaleX="2" scaleY="1" duration="0.533" order="1"/>
						</AnimationGroup>
						<AnimationGroup parentKey="AlphaAnim">
							<Alpha startDelay="0.067" change="1.0" duration="0.1" order="1"/>
							<Alpha startDelay="0.3" change="-1.0" duration="0.267" order="2"/>
						</AnimationGroup>
					</Animations>
				</Texture>
				<Texture name="$parentIcon" parentKey="icon">
					<Size x="16" y="16"/>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset x="0" y="-1"/>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture parentKey="Check" file="Interface\Scenarios\ScenarioIcon-Check" alphaMode="ADD" alpha="0">
					<Size x="16" y="16"/>
					<Anchors>
						<Anchor point="CENTER" relativeKey="$parent.icon"/>
					</Anchors>
					<Animations>
						<AnimationGroup parentKey="Anim">
							<Alpha change="1.0" duration="0.067" order="1"/>
							<Scale scaleX="1.25" scaleY="1.25" duration="0.2" order="2"/>
							<Alpha change="-1.0" startDelay="0.167" duration="0.23" order="2"/>
						</AnimationGroup>
					</Animations>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture parentKey="Sheen" file="Interface\Scenarios\Objective-Sheen" alpha="0">
					<Size x="32" y="0"/>
					<Anchors>
						<Anchor point="LEFT" relativeKey="$parent.Glow"/>
						<Anchor point="TOP" x="0" y="2"/>
						<Anchor point="BOTTOM" x="0" y="-14"/>
					</Anchors>
					<Animations>
						<AnimationGroup parentKey="Anim">
							<Translation startDelay="0.067" offsetX="155" offsetY="0" duration="0.467" order="1"/>
							<Alpha startDelay="0.067" change="1.0" duration="0.133" order="1"/>
							<Alpha startDelay="0.2" change="-1.0" duration="0.133" order="1" smoothing="IN"/>
						</AnimationGroup>
					</Animations>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				self.Glow.ScaleAnim.ScaleGlow:SetOrigin("LEFT", 0, 0);
			</OnLoad>
		</Scripts>
	</Frame>
	<ScrollFrame name="WatchFrameScenarioFrame" hidden="true" parent="WatchFrameLines">
		<Size x="204" y="83"/>
		<Anchors>
			<Anchor point="TOPLEFT"/>
		</Anchors>
		<ScrollChild>
			<Frame parentKey="ScrollChild">
				<Size x="201" y="83"/>
				<Anchors>
					<Anchor point="TOP"/>
				</Anchors>
				<Frames>
					<Frame parentKey="TextHeader" inherits="WatchFrameLineTemplate" hidden="true">
						<Anchors>
							<Anchor point="TOP" x="0" y="-4"/>
							<Anchor point="LEFT" relativeTo="WatchFrameLines"/>
							<Anchor point="RIGHT" relativeTo="WatchFrameLines"/>
						</Anchors>
					</Frame>
					<Frame parentKey="BlockHeader" name="WatchFrameBoxHeaderFrame" enableMouse="true">
						<Size x="201" y="83"/>
						<Anchors>
							<Anchor point="TOP"/>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<Texture file="Interface\Scenarios\ScenariosParts" parentKey="bg">
									<Size x="201" y="77"/>
									<Anchors>
										<Anchor point="TOP" x="0" y="0"/>
									</Anchors>
									<TexCoords left="0.00195313" right="0.39453125" top="0.48242188" bottom="0.63281250"/>
								</Texture>
							</Layer>
							<Layer level="BORDER">
								<Texture file="Interface\Scenarios\ScenariosParts" parentKey="finalBg">
									<Size x="193" y="69"/>
									<Anchors>
										<Anchor point="TOP" x="0" y="-4"/>
									</Anchors>
									<TexCoords left="0.61328125" right="0.99023438" top="0.26171875" bottom="0.39648438"/>
								</Texture>
								<Texture file="Interface\Scenarios\ScenariosParts" parentKey="bgAnim" alpha="0" alphaMode="ADD">
									<Size x="201" y="77"/>
									<Anchors>
										<Anchor point="TOP" x="0" y="0"/>
									</Anchors>
									<TexCoords left="0.00195313" right="0.39453125" top="0.48242188" bottom="0.63281250"/>
									<Animations>
										<AnimationGroup parentKey="AlphaAnim">
											<Alpha change="1" duration="0.266" order="1"/>
											<Alpha endDelay="0.2" change="-1" duration="0.333" order="2"/>
										</AnimationGroup>
									</Animations>
								</Texture>
							</Layer>
							<Layer level="ARTWORK">
								<FontString inherits="QuestTitleFont" parentKey="stageLevel">
									<Anchors>
										<Anchor point="TOPLEFT" x="15" y="-10"/>
									</Anchors>
									<Color r="1" g="0.914" b="0.682"/>
									<Shadow>
										<Offset>
											<AbsDimension x="1" y="-1"/>
										</Offset>
										<Color r="0" g="0" b="0"/>
									</Shadow>
								</FontString>
								<FontString inherits="QuestTitleFont" parentKey="stageComplete" text="STAGE_COMPLETE" hidden="true">
									<Anchors>
										<Anchor point="LEFT" x="15" y="3"/>
									</Anchors>
									<Color r="1" g="0.914" b="0.682"/>
									<Shadow>
										<Offset>
											<AbsDimension x="1" y="-1"/>
										</Offset>
										<Color r="0" g="0" b="0"/>
									</Shadow>
								</FontString>
								<FontString inherits="GameFontNormal" justifyH="LEFT" justifyV="TOP" parentKey="stageName" spacing="2">
									<Size x="172" y="28"/>
									<Anchors>
										<Anchor point="TOPLEFT" relativeKey="$parent.stageLevel" relativePoint="BOTTOMLEFT" x="0" y="-4"/>
									</Anchors>
									<Color r="1" g="0.831" b="0.380"/>
								</FontString>
							</Layer>
						</Layers>
						<Scripts>
							<OnEnter>
								GameTooltip:SetOwner(self, "ANCHOR_NONE");
								GameTooltip:ClearAllPoints();
								GameTooltip:SetPoint("RIGHT", self, "LEFT", 0, 0);
								local _, currentStage, numStages, flags = C_Scenario.GetInfo();
								local name, description = C_Scenario.GetStepInfo();
								if(bit.band(flags, SCENARIO_FLAG_SUPRESS_STAGE_TEXT) == SCENARIO_FLAG_SUPRESS_STAGE_TEXT) then
								  GameTooltip:SetText(name, 1, 0.914, 0.682, 1);
								  GameTooltip:AddLine(description, 1, 1, 1, 1);
								  GameTooltip:Show();
								else
								  GameTooltip:SetText(string.format(SCENARIO_STAGE_STATUS, currentStage, numStages), 1, 0.914, 0.682, 1);
								  GameTooltip:AddLine(name, 1, 0.831, 0.380, 1);
								  GameTooltip:AddLine(" ");
								  GameTooltip:AddLine(description, 1, 1, 1, 1);
								  GameTooltip:Show();
								end
							</OnEnter>
							<OnLeave>
								GameTooltip:Hide();
							</OnLeave>
						</Scripts>
					</Frame>
				</Frames>
			</Frame>
		</ScrollChild>
		<Scripts>
			<OnHide>
				WatchFrameScenario_StopAllAnimations();
			</OnHide>
		</Scripts>
	</ScrollFrame>
	<Frame name="WatchFrameScenarioBonusHeader" parent="WatchFrameLines" enableMouse="true" hidden="true">
		<Size x="191" y="34"/>
		<Anchors>
			<Anchor point="TOPLEFT" relativeTo="WatchFrameScenarioFrame" relativePoint="BOTTOMLEFT" x="10" y="-4"/>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture parentKey="Background" file="Interface\Scenarios\ScenariosParts" setAllPoints="true">
					<TexCoords left="0.00195313" right="0.37500000" top="0.63671875" bottom="0.70312500"/>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture parentKey="FailureGlow" file="Interface\Scenarios\ScenariosParts" alpha="0">
					<Size x="177" y="16"/>
					<Anchors>
						<Anchor point="BOTTOM" x="0" y="4"/>
					</Anchors>
					<TexCoords left="0.64453125" right="0.99023438" top="0.07421875" bottom="0.10546875"/>
				</Texture>
				<Texture parentKey="SuccessGlow" file="Interface\Scenarios\ScenariosParts" alpha="0">
					<Size x="177" y="16"/>
					<Anchors>
						<Anchor point="BOTTOM" x="0" y="4"/>
					</Anchors>
					<TexCoords left="0.64453125" right="0.99023438" top="0.10937500" bottom="0.14062500"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture parentKey="Flag" file="Interface\Scenarios\ScenariosParts">
					<Size x="37" y="42"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="3" y="0"/>
					</Anchors>
					<TexCoords left="0.00195313" right="0.07421875" top="0.90820313" bottom="0.99023438"/>	
				</Texture>
				<FontString parentKey="Label" inherits="GameFontNormal">
					<Anchors>
						<Anchor point="TOPLEFT" x="40" y="-11"/>
					</Anchors>
				</FontString>
				<FontString parentKey="TimeLeft" inherits="GameFontHighlightMedium">
					<Anchors>
						<Anchor point="TOPLEFT" x="138" y="-10"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Animations>
			<AnimationGroup parentKey="AnimSuccess">
				<Alpha targetKey="$parent.$parent.SuccessGlow" change="1" duration="0.5" endDelay="0.5" order="1"/>
				<Alpha targetKey="$parent.$parent.SuccessGlow" change="-1" duration="1" order="2"/>
			</AnimationGroup>
			<AnimationGroup parentKey="AnimFailure">
				<Alpha targetKey="$parent.$parent.FailureGlow" change="1" duration="0.5" endDelay="0.5" order="1"/>
				<Alpha targetKey="$parent.$parent.FailureGlow" change="-1" duration="1" order="2"/>
			</AnimationGroup>
		</Animations>
		<Scripts>
			<OnEnter function="WatchFrameScenarioBonusHeader_OnEnter"/>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
			<OnShow>
				self.updateTime = true;
			</OnShow>
		</Scripts>
	</Frame>
	
</Ui>