<!-- edited with XMLSpy v2005 rel. 3 U (http://www.altova.com) by  () -->
<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/
D:\UI.xsd">
	<Script file="Localization.lua"/>
	<Script file="TextVars.lua"/>
	<Script file="BEB.lua"/>
	<Frame name="BEBElementTemplate" enableMouse="false" virtual="true">
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parentTexture">
					<Anchors>
						<Anchor point="TOPLEFT"/>
						<Anchor point="BOTTOMRIGHT"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				self.texture = getglobal(self:GetName().."Texture")
			</OnLoad>
			<OnHide>
				self.shown = nil
			</OnHide>
			<OnShow>
				self.shown = true
			</OnShow>
		</Scripts>
	</Frame>
	<Button name="BEBMain" hidden="false" enableMouse="true" movable="true" parent="UIParent">
		<Scripts>
			<OnEnter>
				BEB.OnEnter()
			</OnEnter>
			<OnLeave>
				BEB.OnLeave()
			</OnLeave>
			<OnDragStart>
				BEB.OnDragStart();
			</OnDragStart>
			<OnDragStop>
				BEB.OnDragStop();
			</OnDragStop>
			<OnUpdate>
				BEB.OnUpdate(elapsed);
			</OnUpdate>
			<OnEvent>
				BEB.OnEvent(event, ...);
			</OnEvent>
			<OnLoad>
				BEB.OnLoad(self);
			</OnLoad>
			<OnClick>
				BEB.OnClick(button);
			</OnClick>
		</Scripts>
		<Frames>
			<Frame name="BEBTextEventFrame" hidden="true">
				<Scripts>
					<OnEvent>
						BEB.StringEvent(event)
					</OnEvent>
				</Scripts>
			</Frame>
			<Frame name="BEBBackground" inherits="BEBElementTemplate"/>
			<Frame name="BEBXpBar" inherits="BEBElementTemplate"/>
			<Frame name="BEBRestedXpBar" inherits="BEBElementTemplate"/>
			<Frame name="BEBMarkers" inherits="BEBElementTemplate"/>
			<Frame name="BEBXpTick" inherits="BEBElementTemplate"/>
			<Frame name="BEBRestedXpTick" inherits="BEBElementTemplate">
				<Frames>
					<Frame name="BEBRestedXpTickGlow" inherits="BEBElementTemplate"/>
				</Frames>
				<Scripts>
					<OnHide>
						BEBRestedXpTickGlow:Hide()
					</OnHide>
					<OnShow>
						if (GetRestState() == 1) then
							BEBRestedXpTickGlow:Show()
						else
							BEBRestedXpTickGlow:Hide()
						end
					</OnShow>
				</Scripts>
			</Frame>
			<Frame name="BEBBarText">
				<Layers>
					<Layer>
						<FontString name="$parentTextframe" inherits="GameFontNormal" maxLines="1" justifyH="CENTER" justifyV="MIDDLE">
							<Anchors>
								<Anchor point="CENTER"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						self.textframe = getglobal(self:GetName().."Textframe")
					</OnLoad>
					<OnShow>
						self.shown = true
					</OnShow>
					<OnHide>
						self.shown = nil
					</OnHide>
				</Scripts>
			</Frame>
		</Frames>
	</Button>
</Ui>
