<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="PromotionFrame.lua"/>
	<Frame name="PromotionFrame" setAllPoints="true" toplevel="true" enableKeyboard="true" enableMouse="true" parent="GlueParent" frameStrata="DIALOG" hidden="true">
		<Layers>
			<Layer level="BACKGROUND">
				<Texture>
					<Color r="0" g="0" b="0" a="0.7"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture parentKey="Artwork" setAllPoints="true">
					<Size x="1024" y="512"/>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture parentKey="Logo">
					<Size x="256" y="128"/>
					<Anchors>
						<Anchor point="CENTER" relativeKey="$parent.Artwork" relativePoint="TOP" x="0" y="-58"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Button parentKey="UpgradeButton">
				<Size x="256" y="64"/>
				<Anchors>
					<Anchor point="CENTER" relativeKey="$parent.Artwork" relativePoint="BOTTOMLEFT" x="350" y="80"/>
				</Anchors>
				<NormalTexture>
					<Size x="256" y="64"/>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</NormalTexture>
				<PushedTexture>
					<Size x="256" y="64"/>
					<Anchors>
						<Anchor point="CENTER" x="1" y="-1"/>
					</Anchors>
				</PushedTexture>
				<Scripts>
					<OnClick>
						PromotionFrame_LaunchUpgradeURL();
					</OnClick>
				</Scripts>
			</Button>
			<Button parentKey="PlayButton">
				<Size x="256" y="64"/>
				<Anchors>
					<Anchor point="CENTER" relativeKey="$parent.Artwork" relativePoint="BOTTOMRIGHT" x="-320" y="80"/>
				</Anchors>
				<NormalTexture>
					<Size x="256" y="64"/>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</NormalTexture>
				<PushedTexture>
					<Size x="256" y="64"/>
					<Anchors>
						<Anchor point="CENTER" x="1" y="-1"/>
					</Anchors>
				</PushedTexture>
				<Scripts>
					<OnClick>
						PromotionFrame_Hide();
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad function="PromotionFrame_OnLoad"/>
			<OnEvent function="PromotionFrame_OnEvent"/>
			<OnKeyDown>
				local key = key;--Used to catch key input
			</OnKeyDown>
		</Scripts>
	</Frame>
	<Frame name="PromotionAwaitingFrame" setAllPoints="true" toplevel="true" enableKeyboard="true" enableMouse="true" parent="GlueParent" frameStrata="DIALOG" hidden="true">
		<Layers>
			<Layer level="BACKGROUND">
				<Texture>
					<Color r="0" g="0" b="0" a="0.7"/>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Frame parentKey="Spinner">
				<Size x="48" y="48"/>
				<Anchors>
					<Anchor point="CENTER"/>
				</Anchors>
				<Animations>
					<AnimationGroup parentKey="Loop" looping="REPEAT" >
						<Rotation order="1" duration="6" degrees="-360" />
					</AnimationGroup>
				</Animations>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture file="Interface\COMMON\StreamCircle" name="$parentSpinner" setAllPoints="true">
							<Color r="0" g="1" b="0"/>
						</Texture>
					</Layer>
					<Layer level="OVERLAY" >
						<Texture file="Interface\COMMON\StreamSpark" setAllPoints="true" />
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						self.Loop:Play();
					</OnLoad>
				</Scripts>
			</Frame>
		</Frames>
		<Scripts>
			<OnShow function="PromotionAwaitingFrame_OnShow"/>
			<OnUpdate function="PromotionAwaitingFrame_OnUpdate"/>
			<OnKeyDown>
				local key = key;--Used to catch key input
			</OnKeyDown>
		</Scripts>
	</Frame>
</Ui>