<Ui xmlns="http://www.blizzard.com/wow/ui" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<Button name="CDBPrimaryButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="122" y="22"/>
		</Size>
        <NormalTexture file="Interface\Buttons\UI-Panel-Button-Up">
          <TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
        </NormalTexture>
        <PushedTexture file="Interface\Buttons\UI-Panel-Button-Down">
          <TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
        </PushedTexture>
        <DisabledTexture file="Interface\Buttons\UI-Panel-Button-Disabled">
          <TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
        </DisabledTexture>
        <HighlightTexture file="Interface\Buttons\UI-Panel-Button-Highlight" alphaMode="ADD">
          <TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
        </HighlightTexture>
        <ButtonText name="$parentText">
          <FontHeight>
            <AbsValue val="10" />
          </FontHeight>
        </ButtonText>
        <NormalFont inherits="GameFontNormal" font="Fonts\FRIZQT__.TTF">
          <FontHeight>
            <AbsValue val="12" />
          </FontHeight>
          <Color r="1" g="0.8196079" b="0" />
          <Shadow>
            <Color r="0" g="0" b="0" />
            <Offset>
              <AbsDimension x="1" y="-1" />
            </Offset>
          </Shadow>
        </NormalFont>
        <HighlightFont inherits="GameFontHighlight" font="Fonts\FRIZQT__.TTF">
          <FontHeight>
            <AbsValue val="12" />
          </FontHeight>
          <Color r="1" g="1" b="1" />
          <Shadow>
            <Color r="0" g="0" b="0" />
            <Offset>
              <AbsDimension x="1" y="-1" />
            </Offset>
          </Shadow>
        </HighlightFont>
        <DisabledFont inherits="GameFontDisable" font="Fonts\FRIZQT__.TTF">
          <FontHeight>
            <AbsValue val="12" />
          </FontHeight>
          <Color r="0.4980392" g="0.4980392" b="0.4980392" />
          <Shadow>
            <Color r="0" g="0" b="0" />
            <Offset>
              <AbsDimension x="1" y="-1" />
            </Offset>
          </Shadow>
        </DisabledFont>
		<Scripts>
			<OnEscapePressed>
				this:GetParent():Hide();
			</OnEscapePressed>
		</Scripts>
	</Button>
	<Button name="CDBGroupButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="300" y="16"/>
		</Size>
		<NormalTexture>
			<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
		</NormalTexture>
		<PushedTexture>
			<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
		</PushedTexture>
		<DisabledTexture file="Interface\Buttons\UI-Panel-Button-Disabled">
			<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
		</DisabledTexture>
		<HighlightTexture file="interface\questframe\ui-questtitlehighlight" alphaMode="ADD">
			<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
		</HighlightTexture>
		<ButtonText name="$parentText">
			<FontHeight>
				<AbsValue val="10"/>
			</FontHeight>
		</ButtonText>
		<NormalFont font="Fonts\FRIZQT__.TTF">
			<FontHeight>
				<AbsValue val="13"/>
			</FontHeight>
			<Color r="0" g="0" b="0"/>
		</NormalFont>
		<HighlightFont font="Fonts\FRIZQT__.TTF">
			<FontHeight>
				<AbsValue val="13"/>
			</FontHeight>
			<Color r="0" g="0" b="0"/>
		</HighlightFont>
		<DisabledFont inherits="GameFontDisable" font="Fonts\FRIZQT__.TTF">
			<FontHeight>
				<AbsValue val="12"/>
			</FontHeight>
			<Color r="0.4901961" g="0.4901961" b="0.4901961"/>
			<Shadow>
				<Color r="0" g="0" b="0"/>
				<Offset>
					<AbsDimension x="1" y="-1"/>
				</Offset>
			</Shadow>
		</DisabledFont>
		<NormalColor r="0" g="0" b="0"/>
		<PushedTextOffset x="0" y="0"/>
		<Scripts>
			<OnClick>
				CDBButton_OnClick();
			</OnClick>
			<OnEscapePressed>
				this:GetParent():Hide();
			</OnEscapePressed>
			<OnUpdate>
				local scrollframe;
				if( string.find( this:GetName(), "Groups" ) ) then
					scrollframe = CDBGroupsScrollBar;
				else
					--ChatFrame1:AddMessage("this is called?");
					scrollframe = CDBMembersScrollBar;
				end
				if (not scrollframe.selected) or ( this:GetID() ~= (scrollframe.selected - FauxScrollFrame_GetOffset(scrollframe))) then
					this:UnlockHighlight();
				else
					this:LockHighlight();
				end
			</OnUpdate>
		</Scripts>
	</Button>
	<Frame name="CooldownBarsGroups" hidden="true" parent="UIParent" movable="true">
		<Size>
			<AbsDimension x="389" y="515"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER" relativeTo="UIParent">
				<Offset>
					<AbsDimension x="0" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
			<BackgroundInsets>
				<AbsInset left="11" right="12" top="12" bottom="11"/>
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<EdgeSize>
				<AbsValue val="32"/>
			</EdgeSize>
		</Backdrop>
		<Layers>
			<Layer>
				<Texture name="$parentTitleBorder" file="Interface\DialogFrame\UI-DialogBox-Header">
					<Size>
						<AbsDimension x="160" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="5"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.2" right="0.8" top="0" bottom="0.6"/>
				</Texture>
				<FontString name="$parentTitleString" font="Fonts\FRIZQT__.TTF" text="CDB Groups">
					<Size>
						<AbsDimension x="140" y="0"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="-4"/>
							</Offset>
						</Anchor>
					</Anchors>
					<FontHeight>
						<AbsValue val="12"/>
					</FontHeight>
					<Color r="1" g="0.8196079" b="0"/>
					<Shadow>
						<Color r="0" g="0" b="0"/>
						<Offset>
							<AbsDimension x="1" y="-1"/>
						</Offset>
					</Shadow>
				</FontString>
		        <FontString name="TrustedFollowTopText1" justifyV="TOP" inherits="GameFontNormalSmall" text="To add a member, Shift+Click an item in your inventory, equipment, or spellbook.">
					<Size>
						<AbsDimension x="170" y="50"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="43" y="-419"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button name="$parentButton6" inherits="CDBPrimaryButtonTemplate" text="Save Changes">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="81" y="-470"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						CDB_SaveGroups();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentButton5" inherits="CDBPrimaryButtonTemplate" text="Cancel">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="206" y="-470"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>this:GetParent():Hide()</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentButton4" inherits="CDBPrimaryButtonTemplate" text="Add Group">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="43" y="-215"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						StaticPopup_Show("CDB_ADDGROUP");
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentButton2" inherits="CDBPrimaryButtonTemplate" text="Delete Member">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="221" y="-419"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>CDB_DeleteMember();</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentButton1" inherits="CDBPrimaryButtonTemplate" text="Delete Group">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="221" y="-215"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>CDB_DeleteGroup();</OnClick>
				</Scripts>
			</Button>
			<Frame name="$parentPanel2">
				<Size>
					<AbsDimension x="300" y="170"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="43" y="-243"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
					<BackgroundInsets>
						<AbsInset left="5" right="5" top="5" bottom="5"/>
					</BackgroundInsets>
					<TileSize>
						<AbsValue val="16"/>
					</TileSize>
					<EdgeSize>
						<AbsValue val="16"/>
					</EdgeSize>
				</Backdrop>
				<Frames>
					<ScrollFrame name="CDBMembersScrollBar" inherits="FauxScrollFrameTemplate">
						<Size>
							<AbsDimension x="30" y="160"/>
						</Size>
						<Anchors>
							<Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
								<Offset>
									<AbsDimension x="-5" y="-5"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnVerticalScroll>
				   FauxScrollFrame_OnVerticalScroll(16, CDBMembersScrollBar_Update);
				 </OnVerticalScroll>
						</Scripts>
					</ScrollFrame>
					<Button name="CDBMembersButton1" inherits="CDBGroupButtonTemplate" id="1">
						<Anchors>
							<Anchor point="TOP">
								<Offset>
									<AbsDimension x="0" y="-5"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="CDBMembersButton2" inherits="CDBGroupButtonTemplate" id="2">
						<Anchors>
							<Anchor point="TOP" relativeTo="CDBMembersButton1" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="CDBMembersButton3" inherits="CDBGroupButtonTemplate" id="3">
						<Anchors>
							<Anchor point="TOP" relativeTo="CDBMembersButton2" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="CDBMembersButton4" inherits="CDBGroupButtonTemplate" id="4">
						<Anchors>
							<Anchor point="TOP" relativeTo="CDBMembersButton3" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="CDBMembersButton5" inherits="CDBGroupButtonTemplate" id="5">
						<Anchors>
							<Anchor point="TOP" relativeTo="CDBMembersButton4" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="CDBMembersButton6" inherits="CDBGroupButtonTemplate" id="6">
						<Anchors>
							<Anchor point="TOP" relativeTo="CDBMembersButton5" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="CDBMembersButton7" inherits="CDBGroupButtonTemplate" id="7">
						<Anchors>
							<Anchor point="TOP" relativeTo="CDBMembersButton6" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="CDBMembersButton8" inherits="CDBGroupButtonTemplate" id="8">
						<Anchors>
							<Anchor point="TOP" relativeTo="CDBMembersButton7" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="CDBMembersButton9" inherits="CDBGroupButtonTemplate" id="9">
						<Anchors>
							<Anchor point="TOP" relativeTo="CDBMembersButton8" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="CDBMembersButton10" inherits="CDBGroupButtonTemplate" id="10">
						<Anchors>
							<Anchor point="TOP" relativeTo="CDBMembersButton9" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
				</Frames>
				<Scripts>
					<OnEscapePressed>
						this:GetParent():Hide();
					</OnEscapePressed>
				</Scripts>
			</Frame>
			<Frame name="$parentPanel1">
				<Size>
					<AbsDimension x="300" y="170"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="43" y="-39"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
					<BackgroundInsets>
						<AbsInset left="5" right="5" top="5" bottom="5"/>
					</BackgroundInsets>
					<TileSize>
						<AbsValue val="16"/>
					</TileSize>
					<EdgeSize>
						<AbsValue val="16"/>
					</EdgeSize>
				</Backdrop>
				<Frames>
					<ScrollFrame name="CDBGroupsScrollBar" inherits="FauxScrollFrameTemplate">
						<Size>
							<AbsDimension x="30" y="160"/>
						</Size>
						<Anchors>
							<Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
								<Offset>
									<AbsDimension x="-5" y="-5"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnVerticalScroll>
				   FauxScrollFrame_OnVerticalScroll(16, CDBGroupsScrollBar_Update);
				 </OnVerticalScroll>
						</Scripts>
					</ScrollFrame>
					<Button name="CDBGroupsButton1" inherits="CDBGroupButtonTemplate" id="1">
						<Anchors>
							<Anchor point="TOP">
								<Offset>
									<AbsDimension x="0" y="-5"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="CDBGroupsButton2" inherits="CDBGroupButtonTemplate" id="2">
						<Anchors>
							<Anchor point="TOP" relativeTo="CDBGroupsButton1" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="CDBGroupsButton3" inherits="CDBGroupButtonTemplate" id="3">
						<Anchors>
							<Anchor point="TOP" relativeTo="CDBGroupsButton2" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="CDBGroupsButton4" inherits="CDBGroupButtonTemplate" id="4">
						<Anchors>
							<Anchor point="TOP" relativeTo="CDBGroupsButton3" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="CDBGroupsButton5" inherits="CDBGroupButtonTemplate" id="5">
						<Anchors>
							<Anchor point="TOP" relativeTo="CDBGroupsButton4" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="CDBGroupsButton6" inherits="CDBGroupButtonTemplate" id="6">
						<Anchors>
							<Anchor point="TOP" relativeTo="CDBGroupsButton5" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="CDBGroupsButton7" inherits="CDBGroupButtonTemplate" id="7">
						<Anchors>
							<Anchor point="TOP" relativeTo="CDBGroupsButton6" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="CDBGroupsButton8" inherits="CDBGroupButtonTemplate" id="8">
						<Anchors>
							<Anchor point="TOP" relativeTo="CDBGroupsButton7" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="CDBGroupsButton9" inherits="CDBGroupButtonTemplate" id="9">
						<Anchors>
							<Anchor point="TOP" relativeTo="CDBGroupsButton8" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="CDBGroupsButton10" inherits="CDBGroupButtonTemplate" id="10">
						<Anchors>
							<Anchor point="TOP" relativeTo="CDBGroupsButton9" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
				</Frames>
				<Scripts>
					<OnEscapePressed>
						this:GetParent():Hide();
					</OnEscapePressed>
				</Scripts>
			</Frame>
		</Frames>
		<Scripts>
			<OnEscapePressed>
				this:Hide();
			</OnEscapePressed>
			<OnLoad>
				this:RegisterForDrag("LeftButton")
			</OnLoad>
			<OnDragStart>
				this:StartMoving();
			</OnDragStart>
			<OnDragStop>
				this:StopMovingOrSizing();
			</OnDragStop>
		</Scripts>
	</Frame>
</Ui>
