<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/">


<!-- ================================================================================================================================== -->
<!-- TOOLTIP                                                                                                                            -->
<!-- ================================================================================================================================== -->

	<FontString name="CH_DummyFont" virtual="true" />

	<Button name="CH_TooltipBuffTemplate" hidden="true" virtual="true">
		<Size>
			<AbsDimension x="15" y="15"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parentIcon" setAllPoints="true"/>
			</Layer>
			<Layer level="OVERLAY">
				<FontString name="$parentApplications" justifyH="RIGHT" justifyV="BOTTOM" inherits="CH_DummyFont" text="2">
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
						<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="-1" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				getglobal(this:GetName()..'Applications'):SetFont( CH_NUMBER_FONT, 8, 'OUTLINE' );
				getglobal(this:GetName()..'Applications'):SetJustifyH( 'RIGHT' );
				getglobal(this:GetName()..'Applications'):SetJustifyV( 'BOTTOM' );
			</OnLoad>
		</Scripts>
	</Button>	

	<Button name="CH_TooltipDebuffTemplate" hidden="true" virtual="true">
		<Size>
			<AbsDimension x="15" y="15"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parentIcon" setAllPoints="true"/>
			</Layer>
			<Layer level="OVERLAY">
				<Texture name="$parentOverlay" file="Interface\Buttons\UI-Debuff-Border" hidden="false">
					<Size>
						<AbsDimension x="17" y="17"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER" />
					</Anchors>
				</Texture>
				<FontString name="$parentApplications" justifyH="RIGHT" justifyV="BOTTOM" inherits="CH_DummyFont" text="2">
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
						<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="-1" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				getglobal(this:GetName()..'Applications'):SetFont( CH_NUMBER_FONT, 8, 'OUTLINE' );
				getglobal(this:GetName()..'Applications'):SetJustifyH( 'RIGHT' );
				getglobal(this:GetName()..'Applications'):SetJustifyV( 'BOTTOM' );
			</OnLoad>
		</Scripts>
	</Button>	

	<Frame name="CH_TooltipBuffs" enableMouse="true" movable="true" hidden="true">
		<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<EdgeSize>
				<AbsValue val="16"/>
			</EdgeSize>
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<BackgroundInsets>
				<AbsInset left="5" right="5" top="5" bottom="5"/>
			</BackgroundInsets>
		</Backdrop>
		<Size>
			<AbsDimension x="90" y="25"/>
		</Size>
		<Scripts>
			<OnLoad>
				this.dockRelative = 'TOPLEFT';
			</OnLoad>
		</Scripts>
		<Frames>
			<Button name="CH_TooltipBuff1" inherits="CH_TooltipBuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="5" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipBuff2" inherits="CH_TooltipBuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipBuff1" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipBuff3" inherits="CH_TooltipBuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipBuff2" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipBuff4" inherits="CH_TooltipBuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipBuff3" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipBuff5" inherits="CH_TooltipBuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipBuff4" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipBuff6" inherits="CH_TooltipBuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipBuff5" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipBuff7" inherits="CH_TooltipBuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipBuff6" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipBuff8" inherits="CH_TooltipBuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipBuff7" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipBuff9" inherits="CH_TooltipBuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipBuff8" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipBuff10" inherits="CH_TooltipBuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipBuff9" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipBuff11" inherits="CH_TooltipBuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipBuff10" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipBuff12" inherits="CH_TooltipBuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipBuff11" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipBuff13" inherits="CH_TooltipBuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipBuff12" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipBuff14" inherits="CH_TooltipBuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipBuff13" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipBuff15" inherits="CH_TooltipBuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipBuff14" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipBuff16" inherits="CH_TooltipBuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipBuff15" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
		</Frames>
	</Frame>

	<Frame name="CH_TooltipDebuffs" enableMouse="true" movable="true" hidden="true">
		<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<EdgeSize>
				<AbsValue val="16"/>
			</EdgeSize>
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<BackgroundInsets>
				<AbsInset left="5" right="5" top="5" bottom="5"/>
			</BackgroundInsets>
		</Backdrop>
		<Size>
			<AbsDimension x="90" y="25"/>
		</Size>
		<Scripts>
			<OnLoad>
				this.dockRelative = 'TOPLEFT';
			</OnLoad>
		</Scripts>
		<Frames>
			<Button name="CH_TooltipDebuff1" inherits="CH_TooltipDebuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="5" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipDebuff2" inherits="CH_TooltipDebuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipDebuff1" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipDebuff3" inherits="CH_TooltipDebuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipDebuff2" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipDebuff4" inherits="CH_TooltipDebuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipDebuff3" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipDebuff5" inherits="CH_TooltipDebuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipDebuff4" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipDebuff6" inherits="CH_TooltipDebuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipDebuff5" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipDebuff7" inherits="CH_TooltipDebuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipDebuff6" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipDebuff8" inherits="CH_TooltipDebuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipDebuff7" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipDebuff9" inherits="CH_TooltipDebuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipDebuff8" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipDebuff10" inherits="CH_TooltipDebuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipDebuff9" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipDebuff11" inherits="CH_TooltipDebuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipDebuff10" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipDebuff12" inherits="CH_TooltipDebuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipDebuff11" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipDebuff13" inherits="CH_TooltipDebuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipDebuff12" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipDebuff14" inherits="CH_TooltipDebuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipDebuff13" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipDebuff15" inherits="CH_TooltipDebuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipDebuff14" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CH_TooltipDebuff16" inherits="CH_TooltipDebuffTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="CH_TooltipDebuff15" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
		</Frames>
	</Frame>

	<Frame name="CH_TooltipActions" frameStrata="HIGH" hidden="true">
		<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<EdgeSize>
				<AbsValue val="16"/>
			</EdgeSize>
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<BackgroundInsets>
				<AbsInset left="5" right="5" top="5" bottom="5"/>
			</BackgroundInsets>
		</Backdrop>
		<Size>
			<AbsDimension x="150" y="61"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentLeftButton" justifyH="RIGHT" justifyV="CENTER" inherits="CH_DummyFont" text="SCA-LMB:">
					<Size>
						<AbsDimension x="40" y="10"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="6" y="-5"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentLeftButtonText" justifyH="LEFT" justifyV="CENTER" inherits="CH_DummyFont" text="Spell">
					<Size>
						<AbsDimension x="92" y="10"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentLeftButton" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="5" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentMiddleButton" justifyH="RIGHT" justifyV="CENTER" inherits="CH_DummyFont" text="SCA-MMB:">
					<Size>
						<AbsDimension x="40" y="10"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentLeftButton" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentMiddleButtonText" justifyH="LEFT" justifyV="CENTER" inherits="CH_DummyFont" text="Spell">
					<Size>
						<AbsDimension x="92" y="10"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentMiddleButton" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="5" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentRightButton" justifyH="RIGHT" justifyV="CENTER" inherits="CH_DummyFont" text="SCA-RMB:">
					<Size>
						<AbsDimension x="40" y="10"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentMiddleButton" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentRightButtonText" justifyH="LEFT" justifyV="CENTER" inherits="CH_DummyFont" text="Spell">
					<Size>
						<AbsDimension x="92" y="10"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentRightButton" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="5" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentButton4" justifyH="RIGHT" justifyV="CENTER" inherits="CH_DummyFont" text="SCA-MB5:">
					<Size>
						<AbsDimension x="40" y="10"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentRightButton" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentButton4Text" justifyH="LEFT" justifyV="CENTER" inherits="CH_DummyFont" text="Spell">
					<Size>
						<AbsDimension x="92" y="10"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentButton4" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="5" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentButton5" justifyH="RIGHT" justifyV="CENTER" inherits="CH_DummyFont" text="SCA-MB5:">
					<Size>
						<AbsDimension x="40" y="10"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentButton4" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentButton5Text" justifyH="LEFT" justifyV="CENTER" inherits="CH_DummyFont" text="Spell">
					<Size>
						<AbsDimension x="92" y="10"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentButton5" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="5" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				this:SetBackdropColor( 0.1, 0.1, 0.1, 0.8 );

				getglobal(this:GetName()..'LeftButton'):SetFont( CH_NUMBER_FONT, 8 );
				getglobal(this:GetName()..'LeftButton'):SetJustifyH( 'RIGHT' );
				getglobal(this:GetName()..'LeftButton'):SetJustifyV( 'CENTER' );
				getglobal(this:GetName()..'LeftButton'):SetTextColor( 1, 1, 0 );
				getglobal(this:GetName()..'LeftButtonText'):SetFont( CH_NUMBER_FONT, 8 );
				getglobal(this:GetName()..'LeftButtonText'):SetJustifyH( 'LEFT' );
				getglobal(this:GetName()..'LeftButtonText'):SetJustifyV( 'CENTER' );

				getglobal(this:GetName()..'MiddleButton'):SetFont( CH_NUMBER_FONT, 8 );
				getglobal(this:GetName()..'MiddleButton'):SetJustifyH( 'RIGHT' );
				getglobal(this:GetName()..'MiddleButton'):SetJustifyV( 'CENTER' );
				getglobal(this:GetName()..'MiddleButton'):SetTextColor( 1, 1, 0 );
				getglobal(this:GetName()..'MiddleButtonText'):SetFont( CH_NUMBER_FONT, 8 );
				getglobal(this:GetName()..'MiddleButtonText'):SetJustifyH( 'LEFT' );
				getglobal(this:GetName()..'MiddleButtonText'):SetJustifyV( 'CENTER' );

				getglobal(this:GetName()..'RightButton'):SetFont( CH_NUMBER_FONT, 8 );
				getglobal(this:GetName()..'RightButton'):SetJustifyH( 'RIGHT' );
				getglobal(this:GetName()..'RightButton'):SetJustifyV( 'CENTER' );
				getglobal(this:GetName()..'RightButton'):SetTextColor( 1, 1, 0 );
				getglobal(this:GetName()..'RightButtonText'):SetFont( CH_NUMBER_FONT, 8 );
				getglobal(this:GetName()..'RightButtonText'):SetJustifyH( 'LEFT' );
				getglobal(this:GetName()..'RightButtonText'):SetJustifyV( 'CENTER' );

				getglobal(this:GetName()..'Button4'):SetFont( CH_NUMBER_FONT, 8 );
				getglobal(this:GetName()..'Button4'):SetJustifyH( 'RIGHT' );
				getglobal(this:GetName()..'Button4'):SetJustifyV( 'CENTER' );
				getglobal(this:GetName()..'Button4'):SetTextColor( 1, 1, 0 );
				getglobal(this:GetName()..'Button4Text'):SetFont( CH_NUMBER_FONT, 8 );
				getglobal(this:GetName()..'Button4Text'):SetJustifyH( 'LEFT' );
				getglobal(this:GetName()..'Button4Text'):SetJustifyV( 'CENTER' );

				getglobal(this:GetName()..'Button5'):SetFont( CH_NUMBER_FONT, 8 );
				getglobal(this:GetName()..'Button5'):SetJustifyH( 'RIGHT' );
				getglobal(this:GetName()..'Button5'):SetJustifyV( 'CENTER' );
				getglobal(this:GetName()..'Button5'):SetTextColor( 1, 1, 0 );
				getglobal(this:GetName()..'Button5Text'):SetFont( CH_NUMBER_FONT, 8 );
				getglobal(this:GetName()..'Button5Text'):SetJustifyH( 'LEFT' );
				getglobal(this:GetName()..'Button5Text'):SetJustifyV( 'CENTER' );
			</OnLoad>
		</Scripts>
	</Frame>

<!-- ========== Popup Buffs ======================================================================================================== -->

	<Button name="CH_PopupBuffsButton" hidden="true" virtual="true">
		<Size>
			<AbsDimension x="140" y="10"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentBackground" setAllpoints="true" hidden="true">
					<Color r="0.5" g="0.5" b="0.5" a="0.5"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<FontString name="$parentText" justifyH="LEFT" justifyV="TOP" inherits="CH_DummyFont" text="automatic">
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="TOPLEFT" />
						<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" />
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnEnter>
				getglobal(this:GetName()..'Background'):Show();
				CH_BuffPopupCloseTime = 0;
			</OnEnter>
			<OnLeave>
				getglobal(this:GetName()..'Background'):Hide();
				CH_BuffPopupCloseTime = GetTime() + CH_BUFF_POPUP_AUTOCLOSE;

			</OnLeave>
			<OnClick>
				CH_BuffUnit( this.ch_unit, this.ch_buff_idx );
				this:GetParent():Hide();
			</OnClick>
			<OnLoad>
				getglobal(this:GetName()..'Text'):SetFont( CH_NUMBER_FONT, 8 );
				getglobal(this:GetName()..'Text'):SetJustifyH( 'LEFT' );
				getglobal(this:GetName()..'Text'):SetJustifyV( 'TOP' );
				this:RegisterForClicks( "LeftButtonUp", "MiddleButtonUp", "RightButtonUp", "Button4Up", "Button5Up" );
			</OnLoad>
		</Scripts>
	</Button>	

	<Frame name="CH_PopupBuffs" frameStrata="TOOLTIP" hidden="false">
		<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<EdgeSize>
				<AbsValue val="16"/>
			</EdgeSize>
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<BackgroundInsets>
				<AbsInset left="5" right="5" top="5" bottom="5"/>
			</BackgroundInsets>
		</Backdrop>
		<Size>
			<AbsDimension x="150" y="61"/>
		</Size>
		<Frames>
			<Button name="$parentButton1" inherits="CH_PopupBuffsButton">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="5" y="-5"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentButton2" inherits="CH_PopupBuffsButton">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentButton1" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentButton3" inherits="CH_PopupBuffsButton">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentButton2" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentButton4" inherits="CH_PopupBuffsButton">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentButton3" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentButton5" inherits="CH_PopupBuffsButton">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentButton4" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentButton6" inherits="CH_PopupBuffsButton">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentButton5" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentButton7" inherits="CH_PopupBuffsButton">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentButton6" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentButton8" inherits="CH_PopupBuffsButton">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentButton7" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentButton9" inherits="CH_PopupBuffsButton">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentButton8" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentButton10" inherits="CH_PopupBuffsButton">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentButton9" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentButton11" inherits="CH_PopupBuffsButton">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentButton10" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentButton12" inherits="CH_PopupBuffsButton">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentButton11" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad>
				this:SetBackdropColor( 0.1, 0.1, 0.1, 0.8 );
			</OnLoad>
			<OnEnter>
				CH_BuffPopupCloseTime = 0;
			</OnEnter>
			<OnLeave>
				CH_BuffPopupCloseTime = GetTime();
			</OnLeave>
		</Scripts>
	</Frame>

</Ui>
