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

	<Button name="WIM_HistoryUsersButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="120" y="16"/>
		</Size>
		<Layers>
			<Layer level="BORDER">
				<FontString name="$parentName" inherits="GameFontNormalSmall" justifyH="LEFT">
					<Size>
						<AbsDimension x="120" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="10" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
			</OnLoad>
			<OnClick>
				WIM_HistoryView_NameClick();
				WIM_HistoryViewNameScrollBar_Update();
				PlaySound("igMainMenuOptionCheckBoxOn");
			</OnClick>
		</Scripts>
		<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD">
			<Size>
				<AbsDimension x="118" y="16"/>
			</Size>
			<Anchors>
				<Anchor point="TOP">
					<Offset>
						<AbsDimension x="5" y="-2"/>
					</Offset>
				</Anchor>
			</Anchors>
		</HighlightTexture>
	</Button>
	
	<Button name="WIM_HistoryFiltersButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="120" y="16"/>
		</Size>
		<Layers>
			<Layer level="BORDER">
				<FontString name="$parentName" inherits="GameFontNormalSmall" justifyH="LEFT">
					<Size>
						<AbsDimension x="120" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="10" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
			</OnLoad>
			<OnClick>
				WIM_HistoryView_FilterClick();
				WIM_HistoryViewFiltersScrollBar_Update();
				PlaySound("igMainMenuOptionCheckBoxOn");
			</OnClick>
		</Scripts>
		<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD">
			<Size>
				<AbsDimension x="118" y="16"/>
			</Size>
			<Anchors>
				<Anchor point="TOP">
					<Offset>
						<AbsDimension x="5" y="-2"/>
					</Offset>
				</Anchor>
			</Anchors>
		</HighlightTexture>
	</Button>


	<Button name="WIM_TabTemplate" frameStrata="DIALOG" virtual="true">
		<Size>
			<AbsDimension x="64" y="32"/>
		</Size>
		<Anchors>
			<Anchor point="BOTTOMLEFT">
				<Offset>
					<AbsDimension x="0" y="2"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentLeft" file="Interface\AddOns\WIM\Images\WIMTab">
					<Size>
						<AbsDimension x="16" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT"/>
					</Anchors>
					<TexCoords left="0.0" right="0.25" top="0.0" bottom="1.0"/>
				</Texture>
				<Texture name="$parentMiddle" file="Interface\AddOns\WIM\Images\WIMTab">
					<Size>
						<AbsDimension x="44" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
					</Anchors>
					<TexCoords left="0.25" right="0.75" top="0.0" bottom="1.0"/>
				</Texture>
				<Texture name="$parentRight" file="Interface\AddOns\WIM\Images\WIMTab">
					<Size>
						<AbsDimension x="16" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
					</Anchors>
					<TexCoords left="0.75" right="1.0" top="0.0" bottom="1.0"/>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="$parentFlash" hidden="true">
				<Size>
					<AbsDimension x="5" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentLeft">
						<Offset>
							<AbsDimension x="0" y="-7"/>
						</Offset>
					</Anchor>
					<Anchor point="RIGHT" relativeTo="$parentRight">
						<Offset>
							<AbsDimension x="0" y="-7"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD" setAllPoints="true"/>
					</Layer>
				</Layers>
			</Frame>
		</Frames>
		<ButtonText name="$parentText">
			<Size>
				<AbsDimension x="50" y="8"/>
			</Size>
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT">
					<Offset>
						<AbsDimension x="0" y="-5"/>
					</Offset>
				</Anchor>
			</Anchors>
		</ButtonText>
		<NormalFont inherits="GameFontNormalSmall"/>
		<HighlightTexture file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD">
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parentLeft">
					<Offset>
						<AbsDimension x="0" y="-7"/>
					</Offset>
				</Anchor>
				<Anchor point="RIGHT" relativeTo="$parentRight">
					<Offset>
						<AbsDimension x="0" y="-7"/>
					</Offset>
				</Anchor>
			</Anchors>
		</HighlightTexture>
		<Scripts>
			<OnLoad>
				this:RegisterForClicks("LeftButtonDown", "LeftButtonUp", "RightButtonUp");
				--getglobal(this:GetName().."DockRegionHighlight"):SetPoint("LEFT", this:GetName().."Right", "RIGHT", -16 , -3);
			</OnLoad>
			<OnClick>
				WIM_TabSetSelected(this.theUser);
				WIM_PostMessage(this.theUser, "*NONE*", 5, nil,"*NOFOCUS*");
				PlaySound("UChatScrollButton");
			</OnClick>
			<OnEnter>
				--tooltip
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
	</Button>

	<CheckButton name="WIM_ShortcutButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="28" y="28"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentIcon"/>
			</Layer>
		</Layers>
		<NormalTexture name="$parentNormalTexture" file="Interface\Buttons\UI-Quickslot2">
			<Size>
				<AbsDimension x="48" y="48"/>
			</Size>
			<Anchors>
				<Anchor point="CENTER">
					<Offset>
						<AbsDimension x="0" y="-1"/>
					</Offset>
				</Anchor>
			</Anchors>
		</NormalTexture>
		<PushedTexture file="Interface\Buttons\UI-Quickslot-Depress"/>
		<HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
		<CheckedTexture alphaMode="ADD" file="Interface\Buttons\CheckButtonHilight"/>
		<Scripts>
			<OnLoad>
				this:RegisterForClicks("LeftButtonUp");
			</OnLoad>
			<OnClick>
				this:SetChecked("0");
				WIM_ShorcutButton_Clicked();
			</OnClick>
			<OnEnter>
				if(WIM_Data.showToolTips == true or this.cmd == "update") then
					GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
					GameTooltip:SetText(this.tooltip);
				end
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
	</CheckButton>
	
	<Frame name="WIM_Options_PanelTemplate" virtual="true">
        <Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true">
			<BackgroundInsets>
				<AbsInset left="3" right="3" top="6" bottom="6" />
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="8" />
			</TileSize>
			<EdgeSize>
				<AbsValue val="8" />
			</EdgeSize>
		</Backdrop>
	</Frame>
	
	<Frame name="WIM_Options_TitlePanelTemplate" virtual="true">
		<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>
			<Color r="0.7529412" g="0.7529412" b="1" />
			<BorderColor r="0.7529412" g="0.7529412" b="1" />
		</Backdrop>
	</Frame>
	
	
	<Slider name="WIM_Options_SliderTemplate" orientation="HORIZONTAL" virtual="true" enableMouse="true">
		<Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true">
			<EdgeSize>
				<AbsValue val="8"/>
			</EdgeSize>
			<TileSize>
				<AbsValue val="8"/>
			</TileSize>
			<BackgroundInsets>
				<AbsInset left="3" right="3" top="6" bottom="6"/>
			</BackgroundInsets>
		</Backdrop>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentTitle"  inherits="GameFontNormal" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="0" y="14"/>
							</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="$parentEditBox" inherits="GameFontNormalSmall" text="Test">
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="7" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<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="$parentText" inherits="GameFontNormalSmall">
					<Anchors>
						<Anchor point="BOTTOM" relativePoint="TOP"/>
					</Anchors>
				</FontString>
				<FontString name="$parentLow" inherits="GameFontHighlightSmall" text="LOW">
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="2" y="3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentHigh" inherits="GameFontHighlightSmall" text="HIGH">
					<Anchors>
						<Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="-2" y="3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<ThumbTexture name="$parentThumb" file="Interface\Buttons\UI-SliderBar-Button-Horizontal">
			<Size>
				<AbsDimension x="32" y="32"/>
			</Size>
		</ThumbTexture>
		<Scripts>
			<OnShow>
				local sliderMin, sliderMax = this:GetMinMaxValues();
				getglobal(this:GetName().."Low"):SetText(sliderMin);
				getglobal(this:GetName().."High"):SetText(sliderMax);
			</OnShow>
		</Scripts>
	</Slider>


	<Frame name="WIM_Options_PickColorTemplate" virtual="true">
		<Size>
			<AbsDimension x="20" y="20"/>
		</Size>
		<Frames>
			<Button name="$parent_ColorSwatch">
				<Size>
					<AbsDimension x="18" y="18"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parent_SwatchBg">
							<Size>
								<AbsDimension x="16" y="16"/>
							</Size>
							<Anchors>
								<Anchor point="CENTER">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<Color r="1.0" g="1.0" b="1.0"/>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnClick>
						WIM_Options_OpenColorPicker(this:GetParent());
					</OnClick>
					<OnEnter>
						getglobal(this:GetName().."_SwatchBg"):SetVertexColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b);
					</OnEnter>
					<OnLeave>
						getglobal(this:GetName().."_SwatchBg"):SetVertexColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
					</OnLeave>
				</Scripts>
				<NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch"/>
			</Button>
		</Frames>
	</Frame>

	<Button name="WIM_AliasButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="300" y="16"/>
		</Size>
		<Layers>
			<Layer level="BORDER">
				<FontString name="$parentName" inherits="GameFontNormalSmall" justifyH="LEFT">
					<Size>
						<AbsDimension x="150" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="10" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentAlias" inherits="GameFontHighlightSmall" justifyH="LEFT">
					<Size>
						<AbsDimension x="150" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentName" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="5" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
			</OnLoad>
			<OnClick>
				WIM_Alias_Selected = this.theAliasName;
				WIM_AliasScrollBar_Update();
				PlaySound("igMainMenuOptionCheckBoxOn");
			</OnClick>
		</Scripts>
		<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD">
			<Size>
				<AbsDimension x="298" y="16"/>
			</Size>
			<Anchors>
				<Anchor point="TOP">
					<Offset>
						<AbsDimension x="5" y="-2"/>
					</Offset>
				</Anchor>
			</Anchors>
		</HighlightTexture>
	</Button>

	<Button name="WIM_FilterButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="300" y="16"/>
		</Size>
		<Layers>
			<Layer level="BORDER">
				<FontString name="$parentName" inherits="GameFontNormalSmall" justifyH="LEFT">
					<Size>
						<AbsDimension x="230" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="10" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentAction" inherits="GameFontHighlightSmall" justifyH="LEFT">
					<Size>
						<AbsDimension x="80" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentName" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="5" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
			</OnLoad>
			<OnClick>
				WIM_Filter_Selected = this.theFilterName;
				WIM_FilteringScrollBar_Update();
				PlaySound("igMainMenuOptionCheckBoxOn");
			</OnClick>
		</Scripts>
		<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD">
			<Size>
				<AbsDimension x="298" y="16"/>
			</Size>
			<Anchors>
				<Anchor point="TOP">
					<Offset>
						<AbsDimension x="5" y="-2"/>
					</Offset>
				</Anchor>
			</Anchors>
		</HighlightTexture>
	</Button>

	<Button name="WIM_HistoryButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="300" y="16"/>
		</Size>
		<Layers>
			<Layer level="BORDER">
				<FontString name="$parentName" inherits="GameFontNormalSmall" justifyH="LEFT">
					<Size>
						<AbsDimension x="200" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="10" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentMessageCount" inherits="GameFontHighlightSmall" justifyH="RIGHT">
					<Size>
						<AbsDimension x="80" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentName" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="5" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
			</OnLoad>
			<OnClick>
				WIM_History_Selected = this.theName;
				WIM_HistoryScrollBar_Update();
				PlaySound("igMainMenuOptionCheckBoxOn");
			</OnClick>
		</Scripts>
		<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD">
			<Size>
				<AbsDimension x="298" y="16"/>
			</Size>
			<Anchors>
				<Anchor point="TOP">
					<Offset>
						<AbsDimension x="5" y="-2"/>
					</Offset>
				</Anchor>
			</Anchors>
		</HighlightTexture>
	</Button>
	
	
	
	
	
	
		<Frame name="WIM_msgFrameTemplate" virtual="true" movable="true" enableMouse="true" toplevel="true" frameStrata="DIALOG" parent="UIParent" hidden="true"  clampedToScreen="true">
		<Size>
			<AbsDimension x="384" y="256"/> 
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT">
				<Offset>
					<AbsDimension x="25" y="-125"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Backdrop bgFile="Interface\AddOns\WIM\Images\WIM_UI_BG" edgeFile="Interface\AddOns\WIM\Images\WIM_UI" tile="true">
			<BackgroundInsets>
				<AbsInset left="64" right="64" top="64" bottom="64" />
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="8" />
			</TileSize>
			<EdgeSize>
				<AbsValue val="64" />
			</EdgeSize>
		</Backdrop>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentClassIcon" file="Interface\AddOns\WIM\Images\classBLANK">
					<Size>
						<AbsDimension x="64" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="-10" y="12"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<FontString name="$parentFrom" inherits="GameFontNormalLarge" text="">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="50" y="-6"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentCharacterDetails" inherits="GameFontNormal" text="">
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="-30"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button name="$parentExitButton">
				<Size>
					<AbsDimension x="32" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="4" y="1"/>
						</Offset>
					</Anchor>
				</Anchors>
				<NormalTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Up"/>
				<PushedTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Down"/>
				<HighlightTexture alphaMode="ADD" file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight"/>
				<Scripts>
					<OnLoad>
						this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
					</OnLoad>
					<OnClick>
						if(IsShiftKeyDown()) then
							WIM_CloseConvo(this:GetParent().theUser);
							-- do some check if tabs are loaded and show next available.
						else
							this:GetParent():Hide();
						end
					</OnClick>
					<OnEnter>
						if(WIM_Data.showToolTips == true) then
							GameTooltip:SetOwner(this, "ANCHOR_LEFT");
							GameTooltip:SetText(WIM_LOCALIZED_TOOLTIP_SHIFT_CLICK_TO_CLOSE);
							GameTooltip:SetPoint("BOTTOMRIGHT", this, "TOPRIGHT", 0, 0);
						end
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Button>
			<Button name="$parentHistoryButton" hidden="true">
				<Size>
					<AbsDimension x="19" y="19"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="$parentExitButton" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="2" y="-6"/>
						</Offset>
					</Anchor>
				</Anchors>
				<NormalTexture file="Interface\Buttons\UI-GuildButton-PublicNote-Up"/>
				<Scripts>
					<OnLoad>
						this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
					</OnLoad>
					<OnClick>
						WIM_HistoryView_Name_Selected = this:GetParent().theUser;
						WIM_HistoryView_Filter_Selected = "";
						if(WIM_HistoryFrame:IsVisible()) then
							WIM_HistoryViewNameScrollBar_Update();
							WIM_HistoryViewFiltersScrollBar_Update();
						else
							WIM_HistoryFrame:Show();
						end
					</OnClick>
					<OnEnter>
						if(WIM_Data.showToolTips == true) then
							GameTooltip:SetOwner(this, "ANCHOR_LEFT");
							GameTooltip:SetText(WIM_LOCALIZED_TOOLTIP_VIEW_HISTORY);
							GameTooltip:SetPoint("BOTTOMRIGHT", this, "TOPRIGHT", 0, 0);
						end
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Button>
			
			
			<Button name="$parentScrollUp">
				<Size>
					<AbsDimension x="32" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="-4" y="-39"/>
						</Offset>
					</Anchor>
				</Anchors>
				<NormalTexture file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Up"/>
				<PushedTexture file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Down"/>
				<DisabledTexture file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Disabled"/>
				<HighlightTexture alphaMode="ADD" file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Highlight"/>
				<Scripts>
					<OnLoad>
						this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
					</OnLoad>
					<OnClick>
						if( IsShiftKeyDown() ) then
							getglobal(this:GetParent():GetName().."ScrollingMessageFrame"):PageUp();
						else
							getglobal(this:GetParent():GetName().."ScrollingMessageFrame"):ScrollUp();
						end
						WIM_UpdateScrollBars(getglobal(this:GetParent():GetName().."ScrollingMessageFrame"));
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentScrollDown">
				<Size>
					<AbsDimension x="32" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-4" y="24"/>
						</Offset>
					</Anchor>
				</Anchors>
				<NormalTexture file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Up"/>
				<PushedTexture file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Down"/>
				<DisabledTexture file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Disabled"/>
				<HighlightTexture alphaMode="ADD" file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Highlight"/>
				<Scripts>
					<OnLoad>
						this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
					</OnLoad>
					<OnClick>
						if( IsShiftKeyDown() ) then
							getglobal(this:GetParent():GetName().."ScrollingMessageFrame"):PageDown();
						else
							getglobal(this:GetParent():GetName().."ScrollingMessageFrame"):ScrollDown();
						end
						WIM_UpdateScrollBars(getglobal(this:GetParent():GetName().."ScrollingMessageFrame"));
					</OnClick>
				</Scripts>
			</Button>
			
			<ScrollingMessageFrame name="$parentScrollingMessageFrame" fade="false" maxLines="128" movable="true">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="24" y="-46" />
						</Offset>
					</Anchor>
					<Anchor point="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-32" y="39" />
						</Offset>
					</Anchor>
				</Anchors>
				<FontString inherits="ChatFontNormal" justifyH="LEFT">
					<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>
				<TextInsets>
					<AbsInset left="0" right="10" top="0" bottom="0" />
				</TextInsets>
				<Scripts>
					<OnLoad>
						this:RegisterForDrag("LeftButton");
					</OnLoad>
					<OnDragStart>
						this:GetParent():StartMoving();
						this:GetParent().isMoving = true;
					</OnDragStart>
					<OnDragStop>
						this:GetParent():StopMovingOrSizing();
						this:GetParent().isMoving = false;
					</OnDragStop>
					<OnMouseWheel>
						if(arg1 > 0) then
							if( IsShiftKeyDown() ) then
								this:PageUp();
							else
								this:ScrollUp();
							end
						else
							if( IsShiftKeyDown() ) then
								this:PageDown();
							else
								this:ScrollDown();
							end
						end
					</OnMouseWheel>
					<OnHyperlinkClick>
						ChatFrame_OnHyperlinkShow(arg1, arg2, arg3);
					</OnHyperlinkClick>
					<OnMessageScrollChanged>
						WIM_UpdateScrollBars(this);
					</OnMessageScrollChanged>
					<OnMouseDown>
						this:GetParent().prevLeft = this:GetParent():GetLeft();
						this:GetParent().prevTop = this:GetParent():GetTop();
					</OnMouseDown>
					<OnMouseUp>
						if(this:GetParent().prevLeft == this:GetParent():GetLeft() and this:GetParent().prevTop == this:GetParent():GetTop()) then
							--[ Frame was clicked not dragged
							if(WIM_EditBoxInFocus == nil) then
								getglobal(this:GetParent():GetName().."MsgBox"):SetFocus();
							else
								if(WIM_EditBoxInFocus:GetName() == this:GetParent():GetName().."MsgBox") then
									getglobal(this:GetParent():GetName().."MsgBox"):Hide();
									getglobal(this:GetParent():GetName().."MsgBox"):Show();
								else
									getglobal(this:GetParent():GetName().."MsgBox"):SetFocus();
								end
							end
						end
					</OnMouseUp>
				</Scripts>
			</ScrollingMessageFrame>
			<EditBox name="$parentMsgBox" enableMouse="true" ignoreArrows="true" frameStrata="DIALOG" toplevel="true" historyLines="32" letters="255" autoFocus="false">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentScrollingMessageFrame" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="-2" y="-4" />
						</Offset>
					</Anchor>
					<Anchor point="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-10" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
				<FontString inherits="ChatFontNormal">
					<FontHeight>
						<AbsValue val="14" />
					</FontHeight>
					<Color r="1" g="1" b="1" />
					<Shadow>
						<Color r="0" g="0" b="0" />
						<Offset>
							<AbsDimension x="1" y="-1" />
						</Offset>
					</Shadow>
				</FontString>
				<Scripts>
					<OnEnterPressed>
						local _, tParent = this:GetParent();
						
						if(this:GetText() == "") then
							this:Hide();
							this:Show();
							return;
						end
						
						if(strsub(this:GetText(), 1, 1) == "/") then
							ChatFrameEditBox:SetText(this:GetText());
							ChatEdit_SendText(ChatFrameEditBox, 1);
						else
							SendChatMessage(this:GetText(), "WHISPER", nil, this:GetParent().theUser);
							this:AddHistoryLine(this:GetText());
						end
						this:SetText("");
						if(not WIM_Data.keepFocus) then
							this:Hide();
							this:Show();
						elseif(not IsResting() and WIM_Data.keepFocusRested) then
							this:Hide();
							this:Show();
						end
					</OnEnterPressed>
					<OnEscapePressed>
						this:SetText("");
						this:Hide();
						this:Show();
					</OnEscapePressed>
					<OnTabPressed>
						--cycle through windows
						if(WIM_Tabs.enabled == true) then
							if(IsShiftKeyDown()) then
								WIM_TabStep(-1);
							else
								WIM_TabStep(1);
							end
						else
							WIM_ToggleWindow_Toggle();
						end
					</OnTabPressed>
					<OnEditFocusGained>
						WIM_EditBoxInFocus = this;
					</OnEditFocusGained>
					<OnEditFocusLost>
						WIM_EditBoxInFocus = nil;
					</OnEditFocusLost>
				</Scripts>
			</EditBox>
			
			<Frame name="$parentShortcutFrame">
				<Size>
					<AbsDimension x="100" y="100" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentScrollUp" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="8" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
				<Frames>
					<CheckButton name="$parentButton1" inherits="WIM_ShortcutButtonTemplate">
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="$parentButton2" inherits="WIM_ShortcutButtonTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentButton1" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="$parentButton3" inherits="WIM_ShortcutButtonTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentButton2" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="$parentButton4" inherits="WIM_ShortcutButtonTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentButton3" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="$parentButton5" inherits="WIM_ShortcutButtonTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentButton4" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
				</Frames>
			</Frame>
			<Frame name="$parentIgnoreConfirm" hidden="true" frameStrata="DIALOG">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentScrollingMessageFrame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="-8" y="2" />
						</Offset>
					</Anchor>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parentScrollingMessageFrame" relativePoint="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-2" y="-10" />
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="$parentText" inherits="GameFontNormalLarge" text="WIM_LOCALIZED_IGNORE_CONFIRM">
							<Anchors>
								<Anchor point="CENTER">
									<Offset>
										<AbsDimension x="0" y="30"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true">
					<BackgroundInsets>
						<AbsInset left="3" right="3" top="6" bottom="6" />
					</BackgroundInsets>
					<TileSize>
						<AbsValue val="8" />
					</TileSize>
					<EdgeSize>
						<AbsValue val="8" />
					</EdgeSize>
				</Backdrop>
				<Frames>
					<Button name="$parentYes" inherits="UIPanelButtonTemplate" text="WIM_LOCALIZED_YES">
						<Size>
							<AbsDimension x="50" y="25"/>
						</Size>
						<Anchors>
							<Anchor point="CENTER">
								<Offset>
									<AbsDimension x="-30" y="-10"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								PlaySound("igMainMenuClose");
								AddIgnore(this:GetParent():GetParent().theUser);
								this:GetParent():Hide();
							</OnClick>
						</Scripts>
					</Button>
					<Button name="$parentNo" inherits="UIPanelButtonTemplate" text="WIM_LOCALIZED_NO">
						<Size>
							<AbsDimension x="50" y="25"/>
						</Size>
						<Anchors>
							<Anchor point="CENTER">
								<Offset>
									<AbsDimension x="30" y="-10"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								PlaySound("igMainMenuClose");
								this:GetParent():Hide();
							</OnClick>
						</Scripts>
					</Button>
				</Frames>
				<Scripts>
					<OnShow>
						PlaySound("igMainMenuOpen");
						getglobal(this:GetName().."Text"):SetText(WIM_LOCALIZED_IGNORE_CONFIRM);
						getglobal(this:GetParent():GetName().."ScrollingMessageFrame"):SetFrameStrata("LOW");
					</OnShow>
					<OnHide>
						getglobal(this:GetParent():GetName().."ScrollingMessageFrame"):SetFrameStrata("DIALOG");
					</OnHide>
				</Scripts>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad>
				this:RegisterForDrag("LeftButton");
			</OnLoad>
			<OnDragStart>
				this:StartMoving();
				this.isMoving = true;
			</OnDragStart>
			<OnDragStop>
				this:StopMovingOrSizing();
				this.isMoving = false;
			</OnDragStop>
			<OnShow>
				local user = this.theUser;
				WIM_Windows[user].newMSG = false;
				WIM_Windows[user].is_visible = true;
				if(WIM_Data.autoFocus == true) then
					getglobal(this:GetName().."MsgBox"):SetFocus();
				end
				WIM_WindowOnShow(this);
			</OnShow>
			<OnHide>
				WIM_Tabs.lastParent = nil;
				WIM_TabStrip:Hide();
				getglobal(this:GetName().."IgnoreConfirm"):Hide();
				local user = this.theUser;
				WIM_Windows[user].is_visible = false;
				 if ( this.isMoving ) then
					this:StopMovingOrSizing();
					this.isMoving = false;
				end
			</OnHide>
			<OnUpdate>
				if(WIM_Tabs.enabled == true) then
					WIM_Tabs.x = this:GetLeft();
					WIM_Tabs.y = this:GetTop();
				end
			</OnUpdate>
		</Scripts>
	</Frame>
	



</Ui>