<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>
				if(arg1 == "LeftButton") then
					-- Left-Click selects tab
					WIM_TabSetSelected(this.theUser);
					if(WIM_EditBoxInFocus) then
						WIM_PostMessage(this.theUser, "", 5, nil,"");
					else
						WIM_PostMessage(this.theUser, "*NONE*", 5, nil,"*NOFOCUS*");
					end
				else
					-- Right-Click closes conversation
					WIM_CloseConvo(this.theUser);
				end
				PlaySound("UChatScrollButton");
			</OnClick>
			<OnMouseWheel>
				if(arg1 > 0) then
					WIM_SetTabOffset(-1);
				else
					WIM_SetTabOffset(1);
				end
			</OnMouseWheel>
			<OnEnter>
				if(WIM_Tabs.selectedUser ~= "") then
					local theWin = getglobal(WIM_Windows[WIM_Tabs.selectedUser].frame);
					if(WIM_Data.windowFade) then
						WIM_FadeIn(theWin.theUser);
					end
					theWin.isMouseOver = true;
					theWin.QueuedToHide = false;
				end
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
				if(WIM_Tabs.selectedUser ~= "") then
					local theWin = getglobal(WIM_Windows[WIM_Tabs.selectedUser].frame);
					if(WIM_Data.windowFade) then
						if(getglobal(theWin:GetName().."MsgBox") ~= WIM_EditBoxInFocus) then
							WIM_FadeOut(theWin.theUser);
						else
							theWin.QueuedToHide = true;
						end
					end
					theWin.isMouseOver = false;
				end
			</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
				if(WIM_Data.windowFade) then
					WIM_FadeIn(this:GetParent():GetParent().theUser);
				end
				this:GetParent():GetParent().isMouseOver = true;
				this:GetParent():GetParent().QueuedToHide = false;
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
				if(WIM_Data.windowFade) then
					if(getglobal(this:GetParent():GetParent():GetName().."MsgBox") ~= WIM_EditBoxInFocus) then
						WIM_FadeOut(this:GetParent():GetParent().theUser);
					else
						this:GetParent():GetParent().QueuedToHide = true;
					end
				end
				this:GetParent():GetParent().isMouseOver = false;
			</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="340" y="16"/>
		</Size>
		<Layers>
			<Layer level="BORDER">
				<FontString name="$parentName" inherits="GameFontNormalSmall" justifyH="LEFT">
					<Size>
						<AbsDimension x="160" 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="160" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentName" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="15" 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="338" 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="340" y="16"/>
		</Size>
		<Layers>
			<Layer level="BORDER">
				<FontString name="$parentName" inherits="GameFontNormalSmall" justifyH="LEFT">
					<Size>
						<AbsDimension x="270" 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="338" 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="340" y="16"/>
		</Size>
		<Layers>
			<Layer level="BORDER">
				<FontString name="$parentName" inherits="GameFontNormalSmall" justifyH="LEFT">
					<Size>
						<AbsDimension x="240" 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="338" y="16"/>
			</Size>
			<Anchors>
				<Anchor point="TOP">
					<Offset>
						<AbsDimension x="5" y="-2"/>
					</Offset>
				</Anchor>
			</Anchors>
		</HighlightTexture>
	</Button>
	
	
	
	<Button name="WIM_PluginButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="340" y="16"/>
		</Size>
		<Layers>
			<Layer level="BORDER">
				<FontString name="$parentName" inherits="GameFontNormalSmall" justifyH="LEFT">
					<Size>
						<AbsDimension x="240" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="23" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentVersion" 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_Plugin_Selected = this.theName;
				WIM_PluginScrollBar_Update();
				PlaySound("igMainMenuOptionCheckBoxOn");
			</OnClick>
		</Scripts>
		<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD">
			<Size>
				<AbsDimension x="338" y="16"/>
			</Size>
			<Anchors>
				<Anchor point="TOP">
					<Offset>
						<AbsDimension x="5" y="-2"/>
					</Offset>
				</Anchor>
			</Anchors>
		</HighlightTexture>
		<Frames>
			<Button name="$parentNote" inherits="WIM_PluginNote">
				<Anchors>
					<Anchor point="LEFT">
						<Offset>
							<AbsDimension x="3" y="-2" />
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
		</Frames>
	</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>
		<Frames>
			<Frame name="$parentBackdrop" toplevel="false">
				<Anchors>
					<Anchor point="TOPLEFT" />
					<Anchor point="BOTTOMRIGHT" />
				</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>
			</Frame>
			<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
						if(WIM_Data.windowFade) then
							WIM_FadeIn(this:GetParent().theUser);
						end
						this:GetParent().isMouseOver = true
						this:GetParent().QueuedToHide = false;
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
						if(WIM_Data.windowFade) then
							if(getglobal(this:GetParent():GetName().."MsgBox") ~= WIM_EditBoxInFocus) then
								WIM_FadeOut(this:GetParent().theUser);
							else
								this:GetParent().QueuedToHide = true;
							end
						end
						this:GetParent().isMouseOver = false;
					</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
						if(WIM_Data.windowFade) then
							WIM_FadeIn(this:GetParent().theUser);
						end
						this:GetParent().isMouseOver = true;
						this:GetParent().QueuedToHide = false;
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
						if(WIM_Data.windowFade) then
							if(getglobal(this:GetParent():GetName().."MsgBox") ~= WIM_EditBoxInFocus) then
								WIM_FadeOut(this:GetParent().theUser);
							else
								this:GetParent().QueuedToHide = true;
							end
						end
						this:GetParent().isMouseOver = false;
					</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( IsControlKeyDown() ) then
							getglobal(this:GetParent():GetName().."ScrollingMessageFrame"):ScrollToTop();
						else
							if( IsShiftKeyDown() ) then
								getglobal(this:GetParent():GetName().."ScrollingMessageFrame"):PageUp();
							else
								getglobal(this:GetParent():GetName().."ScrollingMessageFrame"):ScrollUp();
							end
						end
						WIM_UpdateScrollBars(getglobal(this:GetParent():GetName().."ScrollingMessageFrame"));
					</OnClick>
					<OnEnter>
						if(WIM_Data.windowFade) then
							WIM_FadeIn(this:GetParent().theUser);
						end
						this:GetParent().isMouseOver = true;
						this:GetParent().QueuedToHide = false;
					</OnEnter>
					<OnLeave>
						if(WIM_Data.windowFade) then
							if(getglobal(this:GetParent():GetName().."MsgBox") ~= WIM_EditBoxInFocus) then
								WIM_FadeOut(this:GetParent().theUser);
							else
								this:GetParent().QueuedToHide = true;
							end
						end
						this:GetParent().isMouseOver = false;
					</OnLeave>
				</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( IsControlKeyDown() ) then
							getglobal(this:GetParent():GetName().."ScrollingMessageFrame"):ScrollToBottom();
						else
							if( IsShiftKeyDown() ) then
								getglobal(this:GetParent():GetName().."ScrollingMessageFrame"):PageDown();
							else
								getglobal(this:GetParent():GetName().."ScrollingMessageFrame"):ScrollDown();
							end
						end
						WIM_UpdateScrollBars(getglobal(this:GetParent():GetName().."ScrollingMessageFrame"));
					</OnClick>
					<OnEnter>
						if(WIM_Data.windowFade) then
							WIM_FadeIn(this:GetParent().theUser);
						end
						this:GetParent().isMouseOver = true;
						this:GetParent().QueuedToHide = false;
					</OnEnter>
					<OnLeave>
						if(WIM_Data.windowFade) then
							if(getglobal(this:GetParent():GetName().."MsgBox") ~= WIM_EditBoxInFocus) then
								WIM_FadeOut(this:GetParent().theUser);
							else
								this:GetParent().QueuedToHide = true;
							end
						end
						this:GetParent().isMouseOver = false;
					</OnLeave>
				</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( IsControlKeyDown() ) then
								this:ScrollToTop();
							else
								if( IsShiftKeyDown() ) then
									this:PageUp();
								else
									this:ScrollUp();
								end
							end
						else
							if( IsControlKeyDown() ) then
								this:ScrollToBottom();
							else
								if( IsShiftKeyDown() ) then
									this:PageDown();
								else
									this:ScrollDown();
								end
							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>
					<OnEnter>
						if(WIM_Data.windowFade) then
							WIM_FadeIn(this:GetParent().theUser);
						end
						this:GetParent().isMouseOver = true;
						this:GetParent().QueuedToHide = false;
					</OnEnter>
					<OnLeave>
						if(WIM_Data.windowFade) then
							if(getglobal(this:GetParent():GetName().."MsgBox") ~= WIM_EditBoxInFocus) then
								WIM_FadeOut(this:GetParent().theUser);
							else
								this:GetParent().QueuedToHide = true;
							end
						end
						this:GetParent().isMouseOver = false;
					</OnLeave>
					<OnHyperlinkEnter>
						if(WIM_Data.windowFade) then
							WIM_FadeIn(this:GetParent().theUser);
						end
						this:GetParent().isMouseOver = true;
						this:GetParent().QueuedToHide = false;
					</OnHyperlinkEnter>
					<OnHyperlinkLeave>
						if(WIM_Data.windowFade) then
							if(getglobal(this:GetParent():GetName().."MsgBox") ~= WIM_EditBoxInFocus) then
								WIM_FadeOut(this:GetParent().theUser);
							else
								this:GetParent().QueuedToHide = true;
							end
						end
						this:GetParent().isMouseOver = false;
					</OnHyperlinkLeave>
				</Scripts>
			</ScrollingMessageFrame>
			<EditBox name="$parentMsgBox" enableMouse="true" ignoreArrows="true" frameStrata="DIALOG" 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
							if(WIM_Data.windowFade and this:GetParent().QueuedToHide) then
								WIM_FadeOut(this:GetParent().theUser);
							end
							this:Hide();
							this:Show();
							return;
						else
							if(WIM_Data.windowFade) then
								WIM_FadeOutDelayed(this:GetParent().theUser);
							end
						end
						
						if(strsub(this:GetText(), 1, 1) == "/") then
							ChatFrameEditBox:SetText(this:GetText());
							ChatEdit_SendText(ChatFrameEditBox, 1);
						else
							SendChatMessage(this:GetText(), "WHISPER", nil, WIM_ParseNameTag(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();
						if(WIM_Data.windowFade) then
							WIM_FadeOut(this:GetParent().theUser);
						end
					</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>
					<OnUpdate>
						if(this.setText == 1) then
							this.setText = 0;
							this:SetText("");
						end
					</OnUpdate>
					<OnHide>

					</OnHide>
					<OnEnter>
						if(WIM_Data.windowFade) then
							WIM_FadeIn(this:GetParent().theUser);
						end
						this:GetParent().isMouseOver = true;
						this:GetParent().QueuedToHide = false;
					</OnEnter>
					<OnLeave>
						if(WIM_Data.windowFade) then
							if(getglobal(this:GetParent():GetName().."MsgBox") ~= WIM_EditBoxInFocus) then
								WIM_FadeOut(this:GetParent().theUser);
							else
								this:GetParent().QueuedToHide = true;
							end
						end
						this:GetParent().isMouseOver = false;
					</OnLeave>
					<OnLoad>
						this.setText = 0;
					</OnLoad>
					<OnTextChanged>
						WIM_EditBox_OnChanged();
					</OnTextChanged>
				</Scripts>
			</EditBox>
			
			<Frame name="$parentShortcutFrame" toplevel="true">
				<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);
				this.QueuedToHide = false;
			</OnShow>
			<OnHide>
				WIM_Tabs.lastParent = nil;
				WIM_TabStrip:Hide();
				getglobal(this:GetName().."IgnoreConfirm"):Hide();
				local user = this.theUser;
				this.isMouseOver = false;
				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>
			<OnEnter>
				if(WIM_Data.windowFade) then
					WIM_FadeIn(this.theUser);
				end
				this.isMouseOver = true;
				this.QueuedToHide = true;
			</OnEnter>
			<OnLeave>
				if(WIM_Data.windowFade) then
					if(getglobal(this:GetName().."MsgBox") ~= WIM_EditBoxInFocus) then
						WIM_FadeOut(this.theUser);
					else
						this.QueuedToHide = true;
					end
				end
				this.isMouseOver = false;
			</OnLeave>
		</Scripts>
	</Frame>
	
	<Frame name="WIM_PluginOptionFrame" enableMouse="true" frameStrata="DIALOG" toplevel="true" hidden="false" virtual="true">
		<Size>
			<AbsDimension x="10" y="10" />
		</Size>
	</Frame>

	<Button name="WIM_PluginNote" virtual="true">
		<Size>
			<AbsDimension x="16" y="16" />
		</Size>
		<NormalTexture file="Interface\Buttons\UI-GuildButton-PublicNote-Up"/>
		<DisabledTexture file="Interface\Buttons\UI-GuildButton-PublicNote-Disabled"/>
		<HighlightTexture alphaMode="ADD" file="Interface\Buttons\UI-GuildButton-PublicNote-Up"/>
		<Scripts>
			<OnLoad>
				this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
			</OnLoad>
			<OnClick>
				WIM_Options_PluginShowNote(getglobal(this:GetParent():GetName().."Name"):GetText());
			</OnClick>
		</Scripts>
	</Button>


</Ui>