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

<!-- ================================================================================================================================== -->
<!-- MAIN FRAME TEMPLATES                                                                                                               -->
<!-- ================================================================================================================================== -->

	<Button name="CH_DebuffTemplate" 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="16" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER" />
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
	</Button>	

	<Button name="CH_CooldownTemplate" virtual="true">
		<Size>
			<AbsDimension x="20" y="20"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parentIcon" setAllPoints="true"/>
			</Layer>
			<Layer level="OVERLAY">
				<FontString name="$parentTime" justifyH="CENTER" justifyV="TOP" inherits="GameFontNormalSmall" text="empty">
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
						<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="-15"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Button>	

	<!-- template for the drag anchor ====================================================== -->
        <Frame name="CH_AnchorTemplate" enableMouse="true" movable="true" parent="UIParent" hidden="true" virtual="true">
		<Size>
			<AbsDimension x="100" y="5"/>
		</Size>
		<Frames>
			<Button name="$parentMove">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
                        		</Anchor>
					<Anchor point="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
                        		</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentDarkBackground" setAllpoints="true">
							<Color r="0.1" g="0.1" b="0.1" a="0.9"/>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnMouseDown>
						CH_StartMoving( this:GetParent() );
					</OnMouseDown>
					<OnMouseUp>
						CH_StopMoving( this:GetParent()  );
					</OnMouseUp>
					<OnHide>
						CH_StopMoving( this:GetParent()  );
					</OnHide>
				</Scripts>
			</Button>
		</Frames>
	</Frame>

	<!-- template for Extra/Panic buttons -->
	<Button name="CH_ButtonTemplate" virtual="true" hidden="false">
		<Anchors>
			<Anchor point="TOPLEFT">
				<Offset>
					<AbsDimension x="0" y="0"/>
				</Offset>
                        </Anchor>
			<Anchor point="BOTTOMRIGHT">
				<Offset>
					<AbsDimension x="0" y="0"/>
				</Offset>
                        </Anchor>
		</Anchors>
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="$parentText" justifyH="LEFT" justifyV="TOP" hidden="false" inherits="GameFontNormal" text="empty" noneSpaceWrap="false">
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="5" y="-4"/>
							</Offset>
						</Anchor>
						<Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="-3" y="-20"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				this.index = 1;
				getglobal(this:GetName().."Text"):SetText( "empty0text" );
                                this:RegisterForClicks( "LeftButtonDown", "MiddleButtonDown", "RightButtonDown", "Button4Down", "Button5Down" );
			</OnLoad>
			<OnClick>
				CH_UnitClicked( this.index, arg1, arg2, arg3, arg4 );
			</OnClick>
			<OnEnter>
				CH_TooltipFrameIndex = this.index;
				CH_TooltipShow( this.index, this.index, 'GLOBAL' );
				CH_TooltipActionsShow( this.index, this.index );
			</OnEnter>
			<OnLeave>
				CH_TooltipFrameIndex = nil;
				CH_TooltipHide();
				CH_TooltipActionsHide();
			</OnLeave>
		</Scripts>
	</Button>

	<!-- template for party names buttons -->
	<Button name="CH_NameTemplate" virtual="true" hidden="false">
		<Anchors>
			<Anchor point="TOPLEFT" relativePoint="TOPLEFT" />
			<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" />
		</Anchors>
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="$parentText" justifyH="LEFT" justifyV="TOP" hidden="false" inherits="GameFontNormal" text="empty" noneSpaceWrap="false">
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="5" y="-4"/>
							</Offset>
						</Anchor>
						<Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="-3" y="-20"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentEffects" justifyH="RIGHT" justifyV="TOP" inherits="GameFontNormal" text="CPDMS" virtual="true" hidden="false">
					<Size>
						<AbsDimension x="50" y="16"/>
					</Size>
					<Color r="1" g="1" b="1" />
					<Anchors>
						<Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="-5" y="-4"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				this.index = 1;
				getglobal(this:GetName().."Text"):SetText( "empty0text" );
                                this:RegisterForClicks( "LeftButtonDown", "MiddleButtonDown", "RightButtonDown", "Button4Down", "Button5Down" );
			</OnLoad>
			<OnClick>
				CH_UnitClicked( this.index, arg1, arg2, arg3, arg4 );
			</OnClick>
			<OnEnter>
				CH_TooltipFrameIndex = this.index;
				CH_TooltipShow( this.index, this.index, 'GLOBAL' );
				CH_TooltipActionsShow( this.index, this.index );
			</OnEnter>
			<OnLeave>
				CH_TooltipFrameIndex = nil;
				CH_TooltipHide();
				CH_TooltipActionsHide();
			</OnLeave>
		</Scripts>
	</Button>

	<!-- template for target buttons (small font) -->
	<Button name="CH_TargetNameTemplate" virtual="true" hidden="false">
		<Anchors>
			<Anchor point="TOPLEFT" />
			<Anchor point="BOTTOMRIGHT" />
		</Anchors>
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="$parentText" justifyH="LEFT" justifyV="TOP" hidden="false" inherits="GameFontNormalSmall" text="empty">
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="6" y="-5"/>
							</Offset>
						</Anchor>
						<Anchor point="BOTTOMRIGHT" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="-6" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentEffects" justifyH="RIGHT" justifyV="TOP" inherits="GameFontNormalSmall" text="Rogue" virtual="true" hidden="false">
					<Size>
						<AbsDimension x="50" y="16"/>
					</Size>
					<Color r="1" g="1" b="1" />
					<Anchors>
						<Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="-5" y="-6"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				this.index = 1;
				getglobal(this:GetName().."Text"):SetText( "empty0text" );
                                this:RegisterForClicks( "LeftButtonDown", "MiddleButtonDown", "RightButtonDown", "Button4Down", "Button5Down" );
			</OnLoad>
			<OnClick>
				CH_UnitClicked( this.index, arg1, arg2, arg3, arg4 );
			</OnClick>
			<OnEnter>
				CH_TooltipFrameIndex = this.index;
				CH_TooltipShow( this.index, this.index, 'GLOBAL' );
				CH_TooltipActionsShow( this.index, this.index );
			</OnEnter>
			<OnLeave>
				CH_TooltipFrameIndex = nil;
				CH_TooltipHide();
				CH_TooltipActionsHide( );
			</OnLeave>
		</Scripts>
	</Button>

        <StatusBar name="CH_BarTemplate" inherits="TextStatusBar" virtual="true" hidden="false">
		<Scripts>
			<OnLoad>
				this:SetMinMaxValues( 0, 100 );
				this:SetValue( 100 );
			</OnLoad>
		</Scripts>
		<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
		<BarColor r="0" g="1" b="0"/>
	</StatusBar>

        <StatusBar name="CH_NumberBarTemplate" inherits="TextStatusBar" virtual="true" hidden="false">
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="$parentCenter" justifyH="CENTER" justifyV="BOTTOM" hidden="false" inherits="GameFontNormal" text="38">
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="TOPLEFT" />
						<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" />
					</Anchors>
					<Color r="1" g="1" b="1"/>
				</FontString>
				<FontString name="$parentRight" justifyH="RIGHT" justifyV="BOTTOM" hidden="false" inherits="GameFontNormal" text="138">
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="TOP" />
						<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" />
					</Anchors>
					<Color r="1" g="0" b="0"/>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				this:SetMinMaxValues( 0, 100 );
				this:SetValue( 100 );
			</OnLoad>
		</Scripts>
		<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
		<BarColor r="0" g="1" b="0"/>
	</StatusBar>

        <StatusBar name="CH_CastBarTemplate" inherits="TextStatusBar" virtual="true" hidden="false">
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="$parentCastTime" justifyH="LEFT" justifyV="BOTTOM" hidden="false" inherits="GameFontNormal" text="38">
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
        						<Offset>
			        				<AbsDimension x="3" y="0"/>
        						</Offset>
			        		</Anchor>
						<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" />
					</Anchors>
					<Color r="1" g="1" b="1"/>
				</FontString>
				<FontString name="$parentRight" justifyH="RIGHT" justifyV="BOTTOM" hidden="false" inherits="GameFontNormal" text="138">
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="TOP" />
						<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" />
					</Anchors>
					<Color r="1" g="0" b="0"/>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				this:SetMinMaxValues( 0, 100 );
				this:SetValue( 100 );
			</OnLoad>
		</Scripts>
		<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
		<BarColor r="0" g="1" b="0"/>
	</StatusBar>

        <StatusBar name="CH_FiveSecRuleBarTemplate" inherits="TextStatusBar" virtual="true" hidden="false">
		<Anchors>
			<Anchor point="TOPLEFT" relativePoint="TOPLEFT" />
			<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" />
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentDarkBackground" setAllpoints="true">
					<Color r="0" g="0.5" b="0.5"/>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<FontString name="$parentCenter" justifyH="CENTER" justifyV="BOTTOM" hidden="false" inherits="GameFontNormal" text="38">
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="TOPLEFT" />
						<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" />
					</Anchors>
					<Color r="1" g="1" b="1"/>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				this:SetMinMaxValues( 0, 5000 );
				this:SetValue( 5000 );
			</OnLoad>
		</Scripts>
		<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
		<BarColor r="0" g="1" b="0"/>
	</StatusBar>

	<StatusBar name="CH_HPBarTemplate" inherits="CH_BarTemplate" virtual="true">
        	<Anchors>
        		<Anchor point="TOPLEFT" relativePoint="LEFT">
        			<Offset>
        				<AbsDimension x="5" y="0"/>
        			</Offset>
        		</Anchor>
        		<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
        			<Offset>
        				<AbsDimension x="-5" y="5"/>
        			</Offset>
        		</Anchor>
        	</Anchors>
	</StatusBar>

        <Frame name="CH_PlayerSPBarTemplate" virtual="true">
        	<Anchors>
        		<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
        			<Offset>
        				<AbsDimension x="5" y="8"/>
        			</Offset>
        		</Anchor>
        		<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
        			<Offset>
        				<AbsDimension x="-5" y="5"/>
        			</Offset>
        		</Anchor>
        	</Anchors>
		<Frames>
			<Button name="$parentButton" virtual="true" hidden="false">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
					<Anchor point="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
       	                        	   this:RegisterForClicks( "LeftButtonDown", "MiddleButtonDown", "RightButtonDown", "Button4Down", "Button5Down" );
					   this.index = 'none';
					</OnLoad>
					<OnClick>
						CH_UnitClicked( this.index, arg1, arg2, arg3, arg4 );
					</OnClick>
					<OnEnter>
						CH_TooltipFrameIndex = this.index;
						CH_TooltipShow( this.index, this.index, 'GLOBAL' );
						CH_TooltipActionsShow( this.index, this.index );
					</OnEnter>
					<OnLeave>
						CH_TooltipFrameIndex = nil;
						CH_TooltipHide();
						CH_TooltipActionsHide();
					</OnLeave>
				</Scripts>
			</Button>
			<StatusBar name="$parentBar" inherits="CH_NumberBarTemplate" virtual="true">
       			 	<Anchors>
       			 		<Anchor point="TOPLEFT" relativePoint="TOPLEFT" />
       			 		<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" />
	     		   	</Anchors>
			</StatusBar>
		</Frames>
	</Frame>

  <Frame name="CH_HealFrameTemplate" enableMouse="true" movable="true" parent="UIParent" hidden="true" virtual="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="100" y="34"/>
    </Size>

  </Frame>

  <Frame name="CH_TargetFrameTemplate" enableMouse="true" movable="true" parent="UIParent" hidden="true" virtual="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>

    <Frames>
	<Button name="$parentDebuff1" inherits="CH_DebuffTemplate"/>
	<Button name="$parentDebuff2" inherits="CH_DebuffTemplate"/>
	<Button name="$parentDebuff3" inherits="CH_DebuffTemplate"/>
	<Button name="$parentDebuff4" inherits="CH_DebuffTemplate"/>
	<Button name="$parentDebuff5" inherits="CH_DebuffTemplate"/>
	<Button name="$parentDebuff6" inherits="CH_DebuffTemplate"/>
	<Button name="$parentDebuff7" inherits="CH_DebuffTemplate"/>
	<Button name="$parentDebuff8" inherits="CH_DebuffTemplate"/>
	<Button name="$parentDebuff9" inherits="CH_DebuffTemplate"/>
	<Button name="$parentDebuff10" inherits="CH_DebuffTemplate"/>
	<Button name="$parentDebuff11" inherits="CH_DebuffTemplate"/>
	<Button name="$parentDebuff12" inherits="CH_DebuffTemplate"/>
	<Button name="$parentDebuff13" inherits="CH_DebuffTemplate"/>
	<Button name="$parentDebuff14" inherits="CH_DebuffTemplate"/>
	<Button name="$parentDebuff15" inherits="CH_DebuffTemplate"/>
	<Button name="$parentDebuff16" inherits="CH_DebuffTemplate"/>
    </Frames>

    <Size>
      <AbsDimension x="90" y="34"/>
    </Size>

  </Frame>

  <Frame name="CH_MenuFrameTemplate" enableMouse="true" movable="true" parent="UIParent" hidden="false" virtual="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="50" y="24"/>
    </Size>

  </Frame>

<!-- ======================================================= BUFF EXPIRE ======================================================= -->

	<MessageFrame name="CH_BuffExpireMsg" parent="UIParent" hidden="false">
		<Size>
			<AbsDimension x="400" y="40"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER" relativePoint="CENTER">
				<Offset>
					<RelDimension x="0" y="0.05"/>
				</Offset>
			</Anchor>
		</Anchors>
		<FontString name="CH_FontBuff" inherits="GameFontNormalLarge">
			<FontHeight>
				<AbsValue val="36"/>
			</FontHeight>
		</FontString>
	</MessageFrame>
	
<!-- ======================================================= MENUS ======================================================= -->

  <!-- ===== TITEL (main anchor) ================================================================================== -->

  <Frame name="CH_MainAnchor" inherits="CH_AnchorTemplate">
    <Anchors>
      <Anchor point="LEFT" relativeTo="UIParent" relativePoint="LEFT">
        <Offset>
          <AbsDimension x="0" y="100"/>
        </Offset>
      </Anchor>
    </Anchors>
  </Frame>
 
  <!-- ===== party anchor ================================================================================== -->

  <Frame name="CH_PartyAnchor" inherits="CH_AnchorTemplate">
    <Anchors>
      <Anchor point="LEFT" relativeTo="CH_MainAnchor" relativePoint="RIGHT">
        <Offset>
          <AbsDimension x="10" y="0"/>
        </Offset>
      </Anchor>
    </Anchors>
  </Frame>

  <!-- ===== EXTRA1 ============================================================================== -->
  <Frame name="CH_Extra1Frame" inherits="CH_MenuFrameTemplate">
    <Anchors>
      <Anchor point="TOPLEFT" relativeTo="CH_MainAnchor" relativePoint="BOTTOMLEFT"/>
    </Anchors>
    <Frames>
      <Button name="CH_Extra1Name" inherits="CH_ButtonTemplate" />
      <StatusBar name="CH_Extra1Bar" inherits="CH_NumberBarTemplate">
        <Anchors>
          <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
            <Offset>
              <AbsDimension x="5" y="-5"/>
            </Offset>
          </Anchor>
          <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
            <Offset>
              <AbsDimension x="-5" y="5"/>
            </Offset>
          </Anchor>
        </Anchors>
        <BarColor r="1" g="0" b="0"/>
      </StatusBar>
    </Frames>
    <Scripts>
      <OnLoad>
        CH_OnUnitFrameLoad( 'extra1', 'Extra1', nil );
      </OnLoad>
      <OnUpdate>
        CH_OnExtraUpdate( 1 );
      </OnUpdate>
    </Scripts>
  </Frame>

  <!-- ===== EXTRA2 =================================================================================== -->
  <Frame name="CH_Extra2Frame" inherits="CH_MenuFrameTemplate">
    <Anchors>
      <Anchor point="LEFT" relativeTo="CH_Extra1Frame" relativePoint="RIGHT"/>
    </Anchors>
    <Frames>
      <Button name="CH_Extra2Name" inherits="CH_ButtonTemplate" />
      <StatusBar name="CH_Extra2Bar" inherits="CH_NumberBarTemplate">
        <Size />
        <Anchors>
          <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
            <Offset>
              <AbsDimension x="5" y="-5"/>
            </Offset>
          </Anchor>
          <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
            <Offset>
              <AbsDimension x="-5" y="5"/>
            </Offset>
          </Anchor>
        </Anchors>
        <BarColor r="1" g="0" b="0"/>
      </StatusBar>
    </Frames>
    <Scripts>
      <OnLoad>
        CH_OnUnitFrameLoad( 'extra2', 'Extra2', nil );
      </OnLoad>
      <OnUpdate>
        CH_OnExtraUpdate( 2 );
      </OnUpdate>
    </Scripts>
  </Frame>

  <!-- ===== EXTRA3 =================================================================================== -->
  <Frame name="CH_Extra3Frame" inherits="CH_MenuFrameTemplate">
    <Anchors>
      <Anchor point="TOP" relativeTo="CH_Extra1Frame" relativePoint="BOTTOM"/>
    </Anchors>
    <Frames>
      <Button name="CH_Extra3Name" inherits="CH_ButtonTemplate" />
      <StatusBar name="CH_Extra3Bar" inherits="CH_NumberBarTemplate">
        <Size />
        <Anchors>
          <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
            <Offset>
              <AbsDimension x="5" y="-5"/>
            </Offset>
          </Anchor>
          <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
            <Offset>
              <AbsDimension x="-5" y="5"/>
            </Offset>
          </Anchor>
        </Anchors>
        <BarColor r="1" g="0" b="0"/>
      </StatusBar>
    </Frames>
    <Scripts>
      <OnLoad>
        CH_OnUnitFrameLoad( 'extra3', 'Extra3', nil );
      </OnLoad>
      <OnUpdate>
        CH_OnExtraUpdate( 3 );
      </OnUpdate>
    </Scripts>
  </Frame>

  <!-- ===== EXTRA4 =================================================================================== -->
  <Frame name="CH_Extra4Frame" inherits="CH_MenuFrameTemplate">
    <Anchors>
      <Anchor point="TOP" relativeTo="CH_Extra2Frame" relativePoint="BOTTOM"/>
    </Anchors>
    <Frames>
      <Button name="CH_Extra4Name" inherits="CH_ButtonTemplate" />
      <StatusBar name="CH_Extra4Bar" inherits="CH_NumberBarTemplate">
        <Size />
        <Anchors>
          <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
            <Offset>
              <AbsDimension x="5" y="-5"/>
            </Offset>
          </Anchor>
          <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
            <Offset>
              <AbsDimension x="-5" y="5"/>
            </Offset>
          </Anchor>
        </Anchors>
        <BarColor r="1" g="0" b="0"/>
      </StatusBar>
      <Button name="CH_Mesmerize1" inherits="CH_CooldownTemplate"/>
      <Button name="CH_Mesmerize2" inherits="CH_CooldownTemplate"/>
      <Button name="CH_Mesmerize3" inherits="CH_CooldownTemplate"/>
      <Button name="CH_Mesmerize4" inherits="CH_CooldownTemplate"/>
      <Button name="CH_Mesmerize5" inherits="CH_CooldownTemplate"/>
    </Frames>
    <Scripts>
      <OnLoad>
        CH_OnUnitFrameLoad( 'extra4', 'Extra4', nil );
      </OnLoad>
      <OnUpdate>
        CH_OnExtraUpdate( 4 );
      </OnUpdate>
    </Scripts>
  </Frame>

  <!-- ===== PANIC =================================================================================== -->
  <Frame name="CH_PanicFrame" inherits="CH_HealFrameTemplate">
    <Anchors>
      <Anchor point="TOPLEFT" relativeTo="CH_Extra3Frame" relativePoint="BOTTOMLEFT" />
    </Anchors>
    <Frames>
      <Button name="CH_PanicName" inherits="CH_ButtonTemplate" />
      <StatusBar name="CH_PlayerManaBar" inherits="CH_NumberBarTemplate">
        <Anchors>
          <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
            <Offset>
              <AbsDimension x="5" y="-5"/>
            </Offset>
          </Anchor>
          <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
            <Offset>
              <AbsDimension x="-5" y="5"/>
            </Offset>
          </Anchor>
        </Anchors>
        <BarColor r="0" g="0" b="1"/>
      </StatusBar>
      <Frame name="CH_CastBarFrame">
        <Anchors>
          <Anchor point="TOPLEFT" relativePoint="LEFT">
            <Offset>
              <AbsDimension x="35" y="0"/>
            </Offset>
          </Anchor>
          <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
            <Offset>
              <AbsDimension x="-5" y="5"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Frames>
          <Button name="CH_CastBarButton" virtual="true" hidden="false">
            <Anchors>
              <Anchor point="TOPLEFT" />
	      <Anchor point="BOTTOMRIGHT" />
            </Anchors>
            <Scripts>
              <OnLoad>
                this:RegisterForClicks( "LeftButtonDown", "MiddleButtonDown", "RightButtonDown", "Button4Down", "Button5Down" );
                this.index = 'Panic';
              </OnLoad>
              <OnClick>
                CH_UnitClicked( this.index, arg1, arg2, arg3, arg4 );
              </OnClick>
              <OnEnter>
		CH_TooltipFrameIndex = 'Panic';
                CH_TooltipActionsShow( nil, 'Panic' );
              </OnEnter>
              <OnLeave>
		CH_TooltipFrameIndex = nil;
                CH_TooltipActionsHide();
              </OnLeave>
            </Scripts>
          </Button>
          <StatusBar name="CH_CastBar" inherits="CH_CastBarTemplate">
            <Anchors>
              <Anchor point="TOPLEFT" relativePoint="TOPLEFT" />
              <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" />
            </Anchors>
            <BarColor r="1" g="1" b="0"/>
          </StatusBar>
        </Frames>
        <Scripts>
          <OnUpdate>
            CH_OnSpellCastUpdate();
          </OnUpdate>
        </Scripts>
      </Frame>
      <Frame name="CH_FiveSecRuleFrame">
        <Anchors>
          <Anchor point="TOPLEFT" relativePoint="LEFT">
            <Offset>
              <AbsDimension x="5" y="0"/>
            </Offset>
          </Anchor>
          <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT">
            <Offset>
              <AbsDimension x="35" y="5"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Frames>
          <Button name="CH_FiveSecRuleButton" virtual="true" hidden="false">
            <Anchors>
              <Anchor point="TOPLEFT" />
	      <Anchor point="BOTTOMRIGHT" />
            </Anchors>
            <Scripts>
              <OnLoad>
                this:RegisterForClicks( "LeftButtonDown", "MiddleButtonDown", "RightButtonDown", "Button4Down", "Button5Down" );
                this.index = 'Panic';
              </OnLoad>
              <OnClick>
                CH_UnitClicked( this.index, arg1, arg2, arg3, arg4 );
              </OnClick>
              <OnEnter>
		CH_TooltipFrameIndex = 'Panic';
                CH_TooltipActionsShow( nil, 'Panic' );
              </OnEnter>
              <OnLeave>
		CH_TooltipFrameIndex = nil;
                CH_TooltipActionsHide();
              </OnLeave>
            </Scripts>
          </Button>
	  <StatusBar name="CH_FiveSecRuleBar" inherits="CH_FiveSecRuleBarTemplate" />
        </Frames>
        <Scripts>
          <OnUpdate>
            CH_OnFiveSecRuleUpdate();
          </OnUpdate>
        </Scripts>
      </Frame>
      <Button name="CH_PanicCooldown1" inherits="CH_CooldownTemplate"/>
      <Button name="CH_PanicCooldown2" inherits="CH_CooldownTemplate"/>
      <Button name="CH_PanicCooldown3" inherits="CH_CooldownTemplate"/>
      <Button name="CH_PanicCooldown4" inherits="CH_CooldownTemplate"/>
      <Button name="CH_PanicCooldown5" inherits="CH_CooldownTemplate"/>
      <Button name="CH_PanicCooldown6" inherits="CH_CooldownTemplate"/>
      <Button name="CH_PanicCooldown7" inherits="CH_CooldownTemplate"/>
      <Button name="CH_PanicCooldown8" inherits="CH_CooldownTemplate"/>
      <Button name="CH_PanicCooldown9" inherits="CH_CooldownTemplate"/>
      <Button name="CH_PanicCooldown10" inherits="CH_CooldownTemplate"/>
    </Frames>
    <Scripts>
      <OnLoad>
        CH_OnUnitFrameLoad('panic','Panic',nil);
      </OnLoad>
      <OnUpdate>
        CH_OnPlayerManaUpdate();
      </OnUpdate>
    </Scripts>
  </Frame>

<!-- ======================================================= GROUP ======================================================= -->
  <Frame name="CH_PlayerFrame" inherits="CH_HealFrameTemplate">
    <Anchors>
      <Anchor point="TOP" relativeTo="CH_PanicFrame" relativePoint="BOTTOM" />
    </Anchors>
    <Frames>
	<Button name="CH_PlayerName" inherits="CH_NameTemplate"/>
	<StatusBar name="CH_PlayerHPBar" inherits="CH_HPBarTemplate" />
	<Frame name="CH_PlayerSP" inherits="CH_PlayerSPBarTemplate" />
    </Frames>
    <Scripts>
      <OnLoad>
        CH_OnUnitFrameLoad('player','Player',0);
      </OnLoad>
      <OnUpdate>
        CH_OnUnitFrameUpdate('player','Player',this.frameData,false,false,false,false);
      </OnUpdate>
    </Scripts>
  </Frame>

  <Frame name="CH_Party1Frame" inherits="CH_HealFrameTemplate">
    <Anchors>
      <Anchor point="TOP" relativeTo="CH_PlayerFrame" relativePoint="BOTTOM" />
    </Anchors>
    <Frames>
	<Button name="CH_Party1Name" inherits="CH_NameTemplate"/>
	<StatusBar name="CH_Party1HPBar" inherits="CH_HPBarTemplate"/>
	<Frame name="CH_Party1SP" inherits="CH_PlayerSPBarTemplate" />
    </Frames>
    <Scripts>
      <OnLoad>
        CH_OnUnitFrameLoad('party1','Party1',1);
      </OnLoad>
      <OnUpdate>
        CH_OnUnitFrameUpdate('party1','Party1',this.frameData,false,false,false,false);
      </OnUpdate>
    </Scripts>
  </Frame>

  <Frame name="CH_Party2Frame" inherits="CH_HealFrameTemplate">
    <Anchors>
      <Anchor point="TOP" relativeTo="CH_Party1Frame" relativePoint="BOTTOM" />
    </Anchors>
    <Frames>
	<Button name="CH_Party2Name" inherits="CH_NameTemplate"/>
	<StatusBar name="CH_Party2HPBar" inherits="CH_HPBarTemplate"/>
	<Frame name="CH_Party2SP" inherits="CH_PlayerSPBarTemplate" />
    </Frames>
    <Scripts>
      <OnLoad>
        CH_OnUnitFrameLoad('party2','Party2',2);
      </OnLoad>
      <OnUpdate>
        CH_OnUnitFrameUpdate('party2','Party2',this.frameData,false,false,false,false);
      </OnUpdate>
    </Scripts>
  </Frame>

  <Frame name="CH_Party3Frame" inherits="CH_HealFrameTemplate">
    <Anchors>
      <Anchor point="TOP" relativeTo="CH_Party2Frame" relativePoint="BOTTOM" />
    </Anchors>
    <Frames>
	<Button name="CH_Party3Name" inherits="CH_NameTemplate"/>
	<StatusBar name="CH_Party3HPBar" inherits="CH_HPBarTemplate"/>
	<Frame name="CH_Party3SP" inherits="CH_PlayerSPBarTemplate" />
    </Frames>
    <Scripts>
      <OnLoad>
        CH_OnUnitFrameLoad('party3','Party3',3);
      </OnLoad>
      <OnUpdate>
        CH_OnUnitFrameUpdate('party3','Party3',this.frameData,false,false,false,false);
      </OnUpdate>
    </Scripts>
  </Frame>

  <Frame name="CH_Party4Frame" inherits="CH_HealFrameTemplate">
    <Anchors>
      <Anchor point="TOP" relativeTo="CH_Party3Frame" relativePoint="BOTTOM" />
    </Anchors>
    <Frames>
	<Button name="CH_Party4Name" inherits="CH_NameTemplate"/>
	<StatusBar name="CH_Party4HPBar" inherits="CH_HPBarTemplate"/>
	<Frame name="CH_Party4SP" inherits="CH_PlayerSPBarTemplate" />
    </Frames>
    <Scripts>
      <OnLoad>
        CH_OnUnitFrameLoad('party4','Party4',4);
      </OnLoad>
      <OnUpdate>
        CH_OnUnitFrameUpdate('party4','Party4',this.frameData,false,false,false,false);
      </OnUpdate>
    </Scripts>
  </Frame>

<!-- ======================================================= PETS ======================================================== -->

  <Frame name="CH_PetFrame" inherits="CH_HealFrameTemplate">
    <Anchors>
      <Anchor point="TOP" relativeTo="CH_PetFrame" relativePoint="BOTTOM" />
    </Anchors>
    <Frames>
	<Button name="CH_PetName" inherits="CH_NameTemplate"/>
	<StatusBar name="CH_PetHPBar" inherits="CH_HPBarTemplate"/>
	<Frame name="CH_PetSP" inherits="CH_PlayerSPBarTemplate" />
    </Frames>
    <Scripts>
      <OnLoad>
        CH_OnUnitFrameLoad('pet','Pet',0);
      </OnLoad>
      <OnUpdate>
        CH_OnUnitFrameUpdate('pet','Pet',this.frameData,false,true,false,false);
      </OnUpdate>
    </Scripts>
  </Frame>

  <Frame name="CH_Partypet1Frame" inherits="CH_HealFrameTemplate">
    <Anchors>
      <Anchor point="TOP" relativeTo="CH_Party4Frame" relativePoint="BOTTOM" />
    </Anchors>
    <Frames>
	<Button name="CH_Partypet1Name" inherits="CH_NameTemplate"/>
	<StatusBar name="CH_Partypet1HPBar" inherits="CH_HPBarTemplate"/>
	<Frame name="CH_Partypet1SP" inherits="CH_PlayerSPBarTemplate" />
    </Frames>
    <Scripts>
      <OnLoad>
        CH_OnUnitFrameLoad('partypet1','Partypet1',1);
      </OnLoad>
      <OnUpdate>
        CH_OnUnitFrameUpdate('partypet1','Partypet1',this.frameData,false,true,false,false);
      </OnUpdate>
    </Scripts>
  </Frame>

  <Frame name="CH_Partypet2Frame" inherits="CH_HealFrameTemplate">
    <Anchors>
      <Anchor point="TOP" relativeTo="CH_Party4Frame" relativePoint="BOTTOM" />
    </Anchors>
    <Frames>
	<Button name="CH_Partypet2Name" inherits="CH_NameTemplate"/>
	<StatusBar name="CH_Partypet2HPBar" inherits="CH_HPBarTemplate"/>
	<Frame name="CH_Partypet2SP" inherits="CH_PlayerSPBarTemplate" />
    </Frames>
    <Scripts>
      <OnLoad>
        CH_OnUnitFrameLoad('partypet2','Partypet2',2);
      </OnLoad>
      <OnUpdate>
        CH_OnUnitFrameUpdate('partypet2','Partypet2',this.frameData,false,true,false,false);
      </OnUpdate>
    </Scripts>
  </Frame>

  <Frame name="CH_Partypet3Frame" inherits="CH_HealFrameTemplate">
    <Anchors>
      <Anchor point="TOP" relativeTo="CH_Party4Frame" relativePoint="BOTTOM" />
    </Anchors>
    <Frames>
	<Button name="CH_Partypet3Name" inherits="CH_NameTemplate"/>
	<StatusBar name="CH_Partypet3HPBar" inherits="CH_HPBarTemplate"/>
	<Frame name="CH_Partypet3SP" inherits="CH_PlayerSPBarTemplate" />
    </Frames>
    <Scripts>
      <OnLoad>
        CH_OnUnitFrameLoad('partypet3','Partypet3',3);
      </OnLoad>
      <OnUpdate>
        CH_OnUnitFrameUpdate('partypet3','Partypet3',this.frameData,false,true,false,false);
      </OnUpdate>
    </Scripts>
  </Frame>

  <Frame name="CH_Partypet4Frame" inherits="CH_HealFrameTemplate">
    <Anchors>
      <Anchor point="TOP" relativeTo="CH_Party4Frame" relativePoint="BOTTOM" />
    </Anchors>
    <Frames>
	<Button name="CH_Partypet4Name" inherits="CH_NameTemplate"/>
	<StatusBar name="CH_Partypet4HPBar" inherits="CH_HPBarTemplate"/>
	<Frame name="CH_Partypet4SP" inherits="CH_PlayerSPBarTemplate" />
    </Frames>
    <Scripts>
      <OnLoad>
        CH_OnUnitFrameLoad('partypet4','Partypet4',4);
      </OnLoad>
      <OnUpdate>
        CH_OnUnitFrameUpdate('partypet4','Partypet4',this.frameData,false,true,false,false);
      </OnUpdate>
    </Scripts>
  </Frame>

  <!-- ===== TARGETS =================================================================================== -->

  <Frame name="CH_PlayertargetFrame" inherits="CH_TargetFrameTemplate">
    <Anchors>
      <Anchor point="LEFT" relativeTo="CH_PlayerFrame" relativePoint="RIGHT" />
    </Anchors>
    <Frames>
	<Button name="CH_PlayertargetName" inherits="CH_TargetNameTemplate"/>
	<StatusBar name="CH_PlayertargetHPBar" inherits="CH_HPBarTemplate" />
	<Frame name="CH_PlayertargetSP" inherits="CH_PlayerSPBarTemplate" />
    </Frames>
    <Scripts>
      <OnLoad>
        CH_OnUnitFrameLoad('target','Playertarget',0);
      </OnLoad>
      <OnUpdate>
        CH_OnUnitFrameUpdate('target','Playertarget',this.frameData,false,false,true,false);
      </OnUpdate>
    </Scripts>
  </Frame>

  <Frame name="CH_Party1targetFrame" inherits="CH_TargetFrameTemplate">
    <Anchors>
      <Anchor point="LEFT" relativeTo="CH_Party1Frame" relativePoint="RIGHT" />
    </Anchors>
    <Frames>
	<Button name="CH_Party1targetName" inherits="CH_TargetNameTemplate"/>
	<StatusBar name="CH_Party1targetHPBar" inherits="CH_HPBarTemplate" />
	<Frame name="CH_Party1targetSP" inherits="CH_PlayerSPBarTemplate" />
    </Frames>
    <Scripts>
      <OnLoad>
        CH_OnUnitFrameLoad('party1target','Party1target',1);
      </OnLoad>
      <OnUpdate>
        CH_OnUnitFrameUpdate('party1target','Party1target',this.frameData,false,false,true,false);
      </OnUpdate>
    </Scripts>
  </Frame>

  <Frame name="CH_Party2targetFrame" inherits="CH_TargetFrameTemplate">
    <Anchors>
      <Anchor point="LEFT" relativeTo="CH_Party2Frame" relativePoint="RIGHT" />
    </Anchors>
    <Frames>
	<Button name="CH_Party2targetName" inherits="CH_TargetNameTemplate"/>
	<StatusBar name="CH_Party2targetHPBar" inherits="CH_HPBarTemplate" />
	<Frame name="CH_Party2targetSP" inherits="CH_PlayerSPBarTemplate" />
    </Frames>
    <Scripts>
      <OnLoad>
        CH_OnUnitFrameLoad('party2target','Party2target',2);
      </OnLoad>
      <OnUpdate>
        CH_OnUnitFrameUpdate('party2target','Party2target',this.frameData,false,false,true,false);
      </OnUpdate>
    </Scripts>
  </Frame>

  <Frame name="CH_Party3targetFrame" inherits="CH_TargetFrameTemplate">
    <Anchors>
      <Anchor point="LEFT" relativeTo="CH_Party3Frame" relativePoint="RIGHT" />
    </Anchors>
    <Frames>
	<Button name="CH_Party3targetName" inherits="CH_TargetNameTemplate"/>
	<StatusBar name="CH_Party3targetHPBar" inherits="CH_HPBarTemplate" />
	<Frame name="CH_Party3targetSP" inherits="CH_PlayerSPBarTemplate" />
    </Frames>
    <Scripts>
      <OnLoad>
        CH_OnUnitFrameLoad('party3target','Party3target',3);
      </OnLoad>
      <OnUpdate>
        CH_OnUnitFrameUpdate('party3target','Party3target',this.frameData,false,false,true,false);
      </OnUpdate>
    </Scripts>
  </Frame>

  <Frame name="CH_Party4targetFrame" inherits="CH_TargetFrameTemplate">
    <Anchors>
      <Anchor point="LEFT" relativeTo="CH_Party4Frame" relativePoint="RIGHT" />
    </Anchors>
    <Frames>
	<Button name="CH_Party4targetName" inherits="CH_TargetNameTemplate"/>
	<StatusBar name="CH_Party4targetHPBar" inherits="CH_HPBarTemplate" />
	<Frame name="CH_Party4targetSP" inherits="CH_PlayerSPBarTemplate" />
    </Frames>
    <Scripts>
      <OnLoad>
        CH_OnUnitFrameLoad('party4target','Party4target',4);
      </OnLoad>
      <OnUpdate>
        CH_OnUnitFrameUpdate('party4target','Party4target',this.frameData,false,false,true,false);
      </OnUpdate>
    </Scripts>
  </Frame>

  <Frame name="CH_PettargetFrame" inherits="CH_TargetFrameTemplate">
    <Anchors>
      <Anchor point="LEFT" relativeTo="CH_PetFrame" relativePoint="RIGHT" />
    </Anchors>
    <Frames>
	<Button name="CH_PettargetName" inherits="CH_TargetNameTemplate"/>
	<StatusBar name="CH_PettargetHPBar" inherits="CH_HPBarTemplate" />
	<Frame name="CH_PettargetSP" inherits="CH_PlayerSPBarTemplate" />
    </Frames>
    <Scripts>
      <OnLoad>
        CH_OnUnitFrameLoad('pettarget','Pettarget',0);
      </OnLoad>
      <OnUpdate>
        CH_OnUnitFrameUpdate('pettarget','Pettarget',this.frameData,false,true,true,false);
      </OnUpdate>
    </Scripts>
  </Frame>

  <Frame name="CH_Partypet1targetFrame" inherits="CH_TargetFrameTemplate">
    <Anchors>
      <Anchor point="LEFT" relativeTo="CH_PetFrame" relativePoint="RIGHT" />
    </Anchors>
    <Frames>
	<Button name="CH_Partypet1targetName" inherits="CH_TargetNameTemplate"/>
	<StatusBar name="CH_Partypet1targetHPBar" inherits="CH_HPBarTemplate" />
	<Frame name="CH_Partypet1targetSP" inherits="CH_PlayerSPBarTemplate" />
    </Frames>
    <Scripts>
      <OnLoad>
        CH_OnUnitFrameLoad('partypet1target','Partypet1target',1);
      </OnLoad>
      <OnUpdate>
        CH_OnUnitFrameUpdate('partypet1target','Partypet1target',this.frameData,false,true,true,false);
      </OnUpdate>
    </Scripts>
  </Frame>

  <Frame name="CH_Partypet2targetFrame" inherits="CH_TargetFrameTemplate">
    <Anchors>
      <Anchor point="LEFT" relativeTo="CH_PetFrame" relativePoint="RIGHT" />
    </Anchors>
    <Frames>
	<Button name="CH_Partypet2targetName" inherits="CH_TargetNameTemplate"/>
	<StatusBar name="CH_Partypet2targetHPBar" inherits="CH_HPBarTemplate" />
	<Frame name="CH_Partypet2targetSP" inherits="CH_PlayerSPBarTemplate" />
    </Frames>
    <Scripts>
      <OnLoad>
        CH_OnUnitFrameLoad('partypet2target','Partypet2target',2);
      </OnLoad>
      <OnUpdate>
        CH_OnUnitFrameUpdate('partypet2target','Partypet2target',this.frameData,false,true,true,false);
      </OnUpdate>
    </Scripts>
  </Frame>

  <Frame name="CH_Partypet3targetFrame" inherits="CH_TargetFrameTemplate">
    <Anchors>
      <Anchor point="LEFT" relativeTo="CH_PetFrame" relativePoint="RIGHT" />
    </Anchors>
    <Frames>
	<Button name="CH_Partypet3targetName" inherits="CH_TargetNameTemplate"/>
	<StatusBar name="CH_Partypet3targetHPBar" inherits="CH_HPBarTemplate" />
	<Frame name="CH_Partypet3targetSP" inherits="CH_PlayerSPBarTemplate" />
    </Frames>
    <Scripts>
      <OnLoad>
        CH_OnUnitFrameLoad('partypet3target','Partypet3target',3);
      </OnLoad>
      <OnUpdate>
        CH_OnUnitFrameUpdate('partypet3target','Partypet3target',this.frameData,false,true,true,false);
      </OnUpdate>
    </Scripts>
  </Frame>

  <Frame name="CH_Partypet4targetFrame" inherits="CH_TargetFrameTemplate">
    <Anchors>
      <Anchor point="LEFT" relativeTo="CH_PetFrame" relativePoint="RIGHT" />
    </Anchors>
    <Frames>
	<Button name="CH_Partypet4targetName" inherits="CH_TargetNameTemplate"/>
	<StatusBar name="CH_Partypet4targetHPBar" inherits="CH_HPBarTemplate" />
	<Frame name="CH_Partypet4targetSP" inherits="CH_PlayerSPBarTemplate" />
    </Frames>
    <Scripts>
      <OnLoad>
        CH_OnUnitFrameLoad('partypet4target','Partypet4target',4);
      </OnLoad>
      <OnUpdate>
        CH_OnUnitFrameUpdate('partypet4target','Partypet4target',this.frameData,false,true,true,false);
      </OnUpdate>
    </Scripts>
  </Frame>

  <!-- ===== GLOBALS =================================================================================== -->

	<Frame name="CH_ClickHeal" hidden="true">
		<Scripts>
			<OnLoad>
				CH_OnLoad();
			</OnLoad>
			<OnEvent>
				CH_OnEvent(event,arg1,arg2,arg3,arg4,arg5);
			</OnEvent> 
		</Scripts>
	</Frame>

	<Frame name="CH_InvisUpdate" hidden="false">
		<Anchors>
			<Anchor point="TOPRIGHT" relativePoint="BOTTOMLEFT">
				<Offset>
					<AbsDimension x="-1" y="-1"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Scripts>
			<OnUpdate>
				CH_MainUpdateLoop( );
			</OnUpdate> 
		</Scripts>
	</Frame>

	<GameTooltip name="CH_Tooltip" hidden="true" inherits="GameTooltipTemplate">
		<Scripts>
			<OnLoad>
				this:SetOwner( CH_ClickHeal, "ANCHOR_NONE" );
			</OnLoad>
		</Scripts>
	</GameTooltip>

</Ui>
