<Ui xmlns="http://www.blizzard.com/wow/ui/">

	<!-- Templates -->

	<CheckButton name="ItemRackCheckTemplate" inherits="UICheckButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="20" y="20"/>
		</Size>
		<Scripts>
			<OnEnter>
				ItemRack_Opt_OnEnter()
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide()
			</OnLeave>
			<OnClick>
				ItemRack_Opt_OnClick()
			</OnClick>
		</Scripts>
	</CheckButton>

	<Button name="ItemRackControlButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="16" y="16"/>
		</Size>
		<HighlightTexture file="Interface\AddOns\ItemRack\ItemRack-Buttons" alphaMode="ADD">
			<TexCoords left=".25" right=".5" top=".5" bottom=".75"/>
		</HighlightTexture>
		<Scripts>
			<OnEnter>
				ItemRack_Opt_OnEnter()
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide()
			</OnLeave>
			<OnClick>
				ItemRack_Control_OnClick()
			</OnClick>
		</Scripts>
	</Button>

	<CheckButton name="ItemRackInvTemplate" inherits="ActionButtonTemplate" hidden="true" virtual="true">
		<Scripts>
			<OnLoad>
				this:RegisterForClicks("LeftButtonUp","RightButtonUp")
			</OnLoad>
			<OnClick>
				ItemRack_Inv_OnClick(arg1)
			</OnClick>
			<OnEnter>
				ItemRack_Inv_OnEnter()
			</OnEnter>
			<OnLeave>
				ItemRack_ClearTooltip()
			</OnLeave>
		</Scripts>
	</CheckButton>

	<CheckButton name="ItemRackMenuTemplate" inherits="ActionButtonTemplate" hidden="true" virtual="true">
		<Scripts>
			<OnLoad>
				this:RegisterForClicks("LeftButtonUp","RightButtonUp")
			</OnLoad>
			<OnClick>
				ItemRack_Menu_OnClick(arg1)
			</OnClick>
			<OnEnter>
				ItemRack_Menu_Tooltip()
			</OnEnter>
			<OnLeave>
				ItemRack_ClearTooltip()
			</OnLeave>
		</Scripts>
	</CheckButton>

	<Frame name="ItemRackTimeTemplate" enableMouse="false" virtual="true">
		<Size>
			<AbsDimension x="36" y="12"/>
		</Size>
		<Anchors>
			<Anchor point="BOTTOMRIGHT"/>
		</Anchors>
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="$parentTime" inherits="NumberFontNormal" justifyH="CENTER"/>
			</Layer>
		</Layers>
	</Frame>

	<Frame name="ItemRackQueueTemplate" enableMouse="false" virtual="true">
		<Size>
			<AbsDimension x="20" y="20"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT">
				<Offset>
					<AbsDimension x="-2" y="2"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="OVERLAY">
				<Texture name="$parentQueue"/>
			</Layer>
		</Layers>
	</Frame>

	<Frame name="ItemRackFrame">
		<Scripts>
			<OnLoad>
				ItemRack_OnLoad()
			</OnLoad>
			<OnEvent>
				ItemRack_OnEvent(event)
			</OnEvent>
		</Scripts>
	</Frame>

	<Frame name="ItemRack_InvFrame" toplevel="true" parent="UIParent" enableMouse="true" movable="true" hidden="true">
		<Size>
			<AbsDimension x="16" y="16"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT" relativeTo="UIParent" relativePoint="BOTTOMLEFT">
				<Offset>
					<AbsDimension x="400" y="350"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<BackgroundInsets>
				<AbsInset left="4" right="4" top="4" bottom="4" />
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="16" />
			</TileSize>
			<EdgeSize>
				<AbsValue val="16" />
			</EdgeSize>
		</Backdrop>
		<Frames>
			<CheckButton name="ItemRackInv0" inherits="ItemRackInvTemplate" id="0"/>
			<CheckButton name="ItemRackInv1" inherits="ItemRackInvTemplate" id="1"/>
			<CheckButton name="ItemRackInv2" inherits="ItemRackInvTemplate" id="2"/>
			<CheckButton name="ItemRackInv3" inherits="ItemRackInvTemplate" id="3"/>
			<CheckButton name="ItemRackInv4" inherits="ItemRackInvTemplate" id="4"/>
			<CheckButton name="ItemRackInv5" inherits="ItemRackInvTemplate" id="5"/>
			<CheckButton name="ItemRackInv6" inherits="ItemRackInvTemplate" id="6"/>
			<CheckButton name="ItemRackInv7" inherits="ItemRackInvTemplate" id="7"/>
			<CheckButton name="ItemRackInv8" inherits="ItemRackInvTemplate" id="8"/>
			<CheckButton name="ItemRackInv9" inherits="ItemRackInvTemplate" id="9"/>
			<CheckButton name="ItemRackInv10" inherits="ItemRackInvTemplate" id="10"/>
			<CheckButton name="ItemRackInv11" inherits="ItemRackInvTemplate" id="11"/>
			<CheckButton name="ItemRackInv12" inherits="ItemRackInvTemplate" id="12"/>
			<CheckButton name="ItemRackInv13" inherits="ItemRackInvTemplate" id="13"/>
			<CheckButton name="ItemRackInv14" inherits="ItemRackInvTemplate" id="14"/>
			<CheckButton name="ItemRackInv15" inherits="ItemRackInvTemplate" id="15"/>
			<CheckButton name="ItemRackInv16" inherits="ItemRackInvTemplate" id="16"/>
			<CheckButton name="ItemRackInv17" inherits="ItemRackInvTemplate" id="17"/>
			<CheckButton name="ItemRackInv18" inherits="ItemRackInvTemplate" id="18"/>
			<CheckButton name="ItemRackInv19" inherits="ItemRackInvTemplate" id="19"/>
			<CheckButton name="ItemRackInv20" inherits="ItemRackInvTemplate" id="20"/>

			<Frame parent="ItemRackInv0" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackInv1" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackInv2" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackInv3" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackInv4" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackInv5" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackInv6" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackInv7" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackInv8" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackInv9" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackInv10" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackInv11" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackInv12" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackInv13" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackInv14" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackInv15" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackInv16" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackInv17" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackInv18" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackInv19" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackInv20" inherits="ItemRackTimeTemplate"/>

			<Frame parent="ItemRackInv0" inherits="ItemRackQueueTemplate"/>
			<Frame parent="ItemRackInv1" inherits="ItemRackQueueTemplate"/>
			<Frame parent="ItemRackInv2" inherits="ItemRackQueueTemplate"/>
			<Frame parent="ItemRackInv3" inherits="ItemRackQueueTemplate"/>
			<Frame parent="ItemRackInv4" inherits="ItemRackQueueTemplate"/>
			<Frame parent="ItemRackInv5" inherits="ItemRackQueueTemplate"/>
			<Frame parent="ItemRackInv6" inherits="ItemRackQueueTemplate"/>
			<Frame parent="ItemRackInv7" inherits="ItemRackQueueTemplate"/>
			<Frame parent="ItemRackInv8" inherits="ItemRackQueueTemplate"/>
			<Frame parent="ItemRackInv9" inherits="ItemRackQueueTemplate"/>
			<Frame parent="ItemRackInv10" inherits="ItemRackQueueTemplate"/>
			<Frame parent="ItemRackInv11" inherits="ItemRackQueueTemplate"/>
			<Frame parent="ItemRackInv12" inherits="ItemRackQueueTemplate"/>
			<Frame parent="ItemRackInv13" inherits="ItemRackQueueTemplate"/>
			<Frame parent="ItemRackInv14" inherits="ItemRackQueueTemplate"/>
			<Frame parent="ItemRackInv15" inherits="ItemRackQueueTemplate"/>
			<Frame parent="ItemRackInv16" inherits="ItemRackQueueTemplate"/>
			<Frame parent="ItemRackInv17" inherits="ItemRackQueueTemplate"/>
			<Frame parent="ItemRackInv18" inherits="ItemRackQueueTemplate"/>
			<Frame parent="ItemRackInv19" inherits="ItemRackQueueTemplate"/>
			<Frame parent="ItemRackInv20" inherits="ItemRackQueueTemplate"/>

			<Frame parent="CharacterAmmoSlot" inherits="ItemRackQueueTemplate"/>
			<Frame parent="CharacterHeadSlot" inherits="ItemRackQueueTemplate"/>
			<Frame parent="CharacterNeckSlot" inherits="ItemRackQueueTemplate"/>
			<Frame parent="CharacterShoulderSlot" inherits="ItemRackQueueTemplate"/>
			<Frame parent="CharacterShirtSlot" inherits="ItemRackQueueTemplate"/>
			<Frame parent="CharacterChestSlot" inherits="ItemRackQueueTemplate"/>
			<Frame parent="CharacterWaistSlot" inherits="ItemRackQueueTemplate"/>
			<Frame parent="CharacterLegsSlot" inherits="ItemRackQueueTemplate"/>
			<Frame parent="CharacterFeetSlot" inherits="ItemRackQueueTemplate"/>
			<Frame parent="CharacterWristSlot" inherits="ItemRackQueueTemplate"/>
			<Frame parent="CharacterHandsSlot" inherits="ItemRackQueueTemplate"/>
			<Frame parent="CharacterFinger0Slot" inherits="ItemRackQueueTemplate"/>
			<Frame parent="CharacterFinger1Slot" inherits="ItemRackQueueTemplate"/>
			<Frame parent="CharacterTrinket0Slot" inherits="ItemRackQueueTemplate"/>
			<Frame parent="CharacterTrinket1Slot" inherits="ItemRackQueueTemplate"/>
			<Frame parent="CharacterBackSlot" inherits="ItemRackQueueTemplate"/>
			<Frame parent="CharacterMainHandSlot" inherits="ItemRackQueueTemplate"/>
			<Frame parent="CharacterSecondaryHandSlot" inherits="ItemRackQueueTemplate"/>
			<Frame parent="CharacterRangedSlot" inherits="ItemRackQueueTemplate"/>
			<Frame parent="CharacterTabardSlot" inherits="ItemRackQueueTemplate"/>

			<Button name="ItemRack_InvFrame_Resize">
				<Size>
					<AbsDimension x="14" y="14"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-1" y="1"/>
						</Offset>
					</Anchor>
				</Anchors>
				<NormalTexture file="Interface\AddOns\ItemRack\ItemRack-Buttons">
					<TexCoords left="0" right=".25" top=".5" bottom=".75"/>
				</NormalTexture>
				<HighlightTexture file="Interface\AddOns\ItemRack\ItemRack-Buttons" alphaMode="ADD">
					<TexCoords left="0" right=".25" top=".5" bottom=".75"/>
				</HighlightTexture>
				<Scripts>
					<OnEnter>
						ItemRack_Opt_OnEnter()
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide()
					</OnLeave>
					<OnMouseDown>
						ItemRack_StartScaling(arg1)
					</OnMouseDown>
					<OnMouseUp>
						ItemRack_StopScaling(arg1)
					</OnMouseUp>
				</Scripts>
			</Button>

		</Frames>
		<Scripts>
			<OnMouseDown>
				ItemRack_InvFrame_OnMouseDown(arg1)
			</OnMouseDown>
			<OnMouseUp>
				ItemRack_InvFrame_OnMouseUp(arg1)
			</OnMouseUp>
		</Scripts>
	
	</Frame>

	<Frame name="ItemRack_MenuFrame" frameStrata="HIGH" toplevel="true" parent="UIParent" enableMouse="true" movable="true" hidden="true">
		<Size>
			<AbsDimension x="32" y="32"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Frames>
			<CheckButton name="ItemRackMenu1" inherits="ItemRackMenuTemplate" id="1"/>
			<CheckButton name="ItemRackMenu2" inherits="ItemRackMenuTemplate" id="2"/>
			<CheckButton name="ItemRackMenu3" inherits="ItemRackMenuTemplate" id="3"/>
			<CheckButton name="ItemRackMenu4" inherits="ItemRackMenuTemplate" id="4"/>
			<CheckButton name="ItemRackMenu5" inherits="ItemRackMenuTemplate" id="5"/>
			<CheckButton name="ItemRackMenu6" inherits="ItemRackMenuTemplate" id="6"/>
			<CheckButton name="ItemRackMenu7" inherits="ItemRackMenuTemplate" id="7"/>
			<CheckButton name="ItemRackMenu8" inherits="ItemRackMenuTemplate" id="8"/>
			<CheckButton name="ItemRackMenu9" inherits="ItemRackMenuTemplate" id="9"/>
			<CheckButton name="ItemRackMenu10" inherits="ItemRackMenuTemplate" id="10"/>
			<CheckButton name="ItemRackMenu11" inherits="ItemRackMenuTemplate" id="11"/>
			<CheckButton name="ItemRackMenu12" inherits="ItemRackMenuTemplate" id="12"/>
			<CheckButton name="ItemRackMenu13" inherits="ItemRackMenuTemplate" id="13"/>
			<CheckButton name="ItemRackMenu14" inherits="ItemRackMenuTemplate" id="14"/>
			<CheckButton name="ItemRackMenu15" inherits="ItemRackMenuTemplate" id="15"/>
			<CheckButton name="ItemRackMenu16" inherits="ItemRackMenuTemplate" id="16"/>
			<CheckButton name="ItemRackMenu17" inherits="ItemRackMenuTemplate" id="17"/>
			<CheckButton name="ItemRackMenu18" inherits="ItemRackMenuTemplate" id="18"/>
			<CheckButton name="ItemRackMenu19" inherits="ItemRackMenuTemplate" id="19"/>
			<CheckButton name="ItemRackMenu20" inherits="ItemRackMenuTemplate" id="20"/>
			<CheckButton name="ItemRackMenu21" inherits="ItemRackMenuTemplate" id="21"/>
			<CheckButton name="ItemRackMenu22" inherits="ItemRackMenuTemplate" id="22"/>
			<CheckButton name="ItemRackMenu23" inherits="ItemRackMenuTemplate" id="23"/>
			<CheckButton name="ItemRackMenu24" inherits="ItemRackMenuTemplate" id="24"/>
			<CheckButton name="ItemRackMenu25" inherits="ItemRackMenuTemplate" id="25"/>
			<CheckButton name="ItemRackMenu26" inherits="ItemRackMenuTemplate" id="26"/>
			<CheckButton name="ItemRackMenu27" inherits="ItemRackMenuTemplate" id="27"/>
			<CheckButton name="ItemRackMenu28" inherits="ItemRackMenuTemplate" id="28"/>
			<CheckButton name="ItemRackMenu29" inherits="ItemRackMenuTemplate" id="29"/>
			<CheckButton name="ItemRackMenu30" inherits="ItemRackMenuTemplate" id="30"/>

			<Frame parent="ItemRackMenu1" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu2" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu3" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu4" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu5" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu6" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu7" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu8" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu9" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu10" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu11" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu12" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu13" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu14" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu15" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu16" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu17" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu18" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu19" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu20" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu21" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu22" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu23" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu24" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu25" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu26" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu27" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu28" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu29" inherits="ItemRackTimeTemplate"/>
			<Frame parent="ItemRackMenu30" inherits="ItemRackTimeTemplate"/>

		</Frames>
		<Scripts>
			<OnShow>
				ItemRack_MenuFrame_OnShow()
			</OnShow>
			<OnHide>
				ItemRack_MenuFrame_OnHide()
			</OnHide>
		</Scripts>
	</Frame>

	<Frame name="ItemRack_ControlFrame" parent="ItemRack_InvFrame" toplevel="true" enableMouse="true" movable="true" hidden="true">
		<Size>
			<AbsDimension x="64" y="24"/>
		</Size>
		<Anchors>
			<Anchor point="BOTTOMLEFT" relativeTo="ItemRack_InvFrame" relativePoint="TOPLEFT"/>
		</Anchors>
		<Frames>
			<Button name="ItemRack_Control_Rotate" inherits="ItemRackControlButtonTemplate">
				<Anchors>
					<Anchor point="BOTTOMLEFT" relativeTo="ItemRack_InvFrame" relativePoint="TOPLEFT"/>
				</Anchors>
				<NormalTexture file="Interface\AddOns\ItemRack\ItemRack-Buttons">
					<TexCoords left="0" right=".25" top="0" bottom=".25"/>
				</NormalTexture>
				<PushedTexture file="Interface\AddOns\ItemRack\ItemRack-Buttons">
					<TexCoords left=".25" right=".5" top="0" bottom=".25"/>
				</PushedTexture>
			</Button>
			<Button name="ItemRack_Control_Lock" inherits="ItemRackControlButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ItemRack_Control_Rotate" relativePoint="TOPRIGHT"/>
				</Anchors>
				<NormalTexture file="Interface\AddOns\ItemRack\ItemRack-Buttons">
					<TexCoords left=".5" right=".75" top="0" bottom=".25"/>
				</NormalTexture>
				<PushedTexture file="Interface\AddOns\ItemRack\ItemRack-Buttons">
					<TexCoords left=".75" right="1" top="0" bottom=".25"/>
				</PushedTexture>
			</Button>
			<Button name="ItemRack_Control_Options" inherits="ItemRackControlButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ItemRack_Control_Lock" relativePoint="TOPRIGHT"/>
				</Anchors>
				<NormalTexture file="Interface\AddOns\ItemRack\ItemRack-Buttons">
					<TexCoords left="0" right=".25" top=".25" bottom=".5"/>
				</NormalTexture>
				<PushedTexture file="Interface\AddOns\ItemRack\ItemRack-Buttons">
					<TexCoords left=".25" right=".5" top=".25" bottom=".5"/>
				</PushedTexture>
			</Button>
		</Frames>
	</Frame>

	<!-- new and improved minimap button, can ItemRack_IconFrame_Icon:SetTexture any item texture to change the "inset" image -->
	<Button name="ItemRack_IconFrame" toplevel="true" frameStrata="LOW" parent="Minimap" enableMouse="true" movable="true" hidden="true">
		<Size>
			<AbsDimension x="33" y="33"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT">
				<Offset>
					<AbsDimension x="-15" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="ItemRack_IconFrame_Icon" file="Interface\AddOns\ItemRack\ItemRack-Icon">
					<Size>
						<AbsDimension x="21" y="21"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="7" y="-6"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.075" right="0.925" top="0.075" bottom="0.925"/>
				</Texture>
			</Layer>
		<Layer level="OVERLAY">
			<Texture file="Interface\Minimap\MiniMap-TrackingBorder">
				<Size>
					<AbsDimension x="56" y="56"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT"/>
				</Anchors>
			</Texture>
		</Layer>
		</Layers>
		<HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
		<Scripts>
			<OnLoad>
				this:RegisterForClicks("LeftButtonUp","RightButtonUp")
				this:RegisterForDrag("LeftButton")
			</OnLoad>
			<OnEnter>
				ItemRack_OnTooltip("ItemRack",ItemRackText.DisableToggleText[ItemRack_Settings.DisableToggle])
			</OnEnter>
			<OnMouseDown>
				ItemRack_IconFrame_Icon:SetTexCoord(0,1,0,1)
			</OnMouseDown>
			<OnMouseUp>
				ItemRack_IconFrame_Icon:SetTexCoord(.075,.925,.075,.925)
			</OnMouseUp>
			<OnLeave>
				GameTooltip:Hide()
			</OnLeave>
			<OnDragStart>
				this:LockHighlight()
				Rack.StartTimer("IconDragging")
				-- ItemRack_IconDraggingFrame:Show()
			</OnDragStart>
			<OnDragStop>
				Rack.StopTimer("IconDragging")
				-- ItemRack_IconDraggingFrame:Hide()
				this:UnlockHighlight()
				ItemRack_IconFrame_Icon:SetTexCoord(.075,.925,.075,.925)
			</OnDragStop>
			<OnClick>
				ItemRack_IconFrame_OnClick(arg1)
				ItemRack_IconFrame_Icon:SetTexCoord(.075,.925,.075,.925)
			</OnClick>
		</Scripts>
	</Button>

	<!-- Rack stub used for new code -->
	<Frame name="RackFrame" hidden="true">
		<Scripts>
			<OnEvent>
				Rack.OnEvent()
			</OnEvent>
			<OnUpdate>
				Rack.OnUpdate()
			</OnUpdate>
		</Scripts>
	</Frame>
	<GameTooltip name="Rack_TooltipScan" inherits="GameTooltipTemplate" hidden="true">
		<Scripts>
			<OnLoad>
				this:SetOwner(WorldFrame,"ANCHOR_NONE")
			</OnLoad>
		</Scripts>
	</GameTooltip>

</Ui>
