<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">
	<Script file="Blizzard_ItemSocketingUI.lua"/>
	<Button name="ItemSocketingSocketButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="40" y="40"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentRight" file="Interface\ItemSocketingFrame\UI-ItemSockets">
					<Size x="70" y="55"/>
					<Anchors>
						<Anchor point="LEFT" relativePoint="CENTER" x="5" y="5"/>
					</Anchors>
					<TexCoords left="0.28515625" right="0.565" top="0" bottom="0.21484375"/>
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<Texture file="Interface\ItemSocketingFrame\UI-ItemSockets">
					<Size x="72" y="74"/>
					<Anchors>
						<Anchor point="CENTER" x="0" y="0"/>
					</Anchors>
					<TexCoords left="0.71875" right="1" top="0.7109375" bottom="1"/>
				</Texture>
				<Texture name="$parentBackground" file="Interface\ItemSocketingFrame\UI-ItemSockets">
					<Size x="43" y="44"/>
					<Anchors>
						<Anchor point="CENTER" x="0" y="0"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentIconTexture" parentKey="icon">
					<Size x="38" y="38"/>
					<Anchors>
						<Anchor point="CENTER" x="0" y="0"/>
					</Anchors>
				</Texture>
				<!--<Texture name="$parentBorder" file="Interface\ItemSocketingFrame\UI-ItemSockets">
					<Size>
						<AbsDimension x="53" y="53"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>-->
			</Layer>
			<Layer level="OVERLAY">
				<FontString name="$parentColor" inherits="TextStatusBarText" text="Color" hidden="true">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="$parentShine" inherits="AnimatedShineTemplate">
				<Anchors>
					<Anchor point="CENTER">
						<Offset>
							<AbsDimension x="-1" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentBracketFrame" setAllPoints="true">
				<Layers>
					<Layer level="ARTWORK">
						<Texture name="$parentClosedBracket" file="Interface\ItemSocketingFrame\UI-ItemSockets">
							<Size x="53" y="53"/>
							<Anchors>
								<Anchor point="CENTER" x="0" y="0"/>
							</Anchors>
							<TexCoords left="0.5546875" right="0.7578125" top="0" bottom="0.20703125"/>
						</Texture>
						<Texture name="$parentOpenBracket" file="Interface\ItemSocketingFrame\UI-ItemSockets">
							<Size x="61" y="57"/>
							<Anchors>
								<Anchor point="CENTER" x="0" y="-1"/>
							</Anchors>
							<TexCoords left="0.7578125" right="0.9921875" top="0" bottom="0.22265625"/>
						</Texture>
					</Layer>
				</Layers>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad>
				self:RegisterForDrag("LeftButton");
				self:RegisterEvent("SOCKET_INFO_UPDATE");
			</OnLoad>
			<OnEvent>
				ItemSocketingSocketButton_OnEvent(self, event, ...);
			</OnEvent>
			<OnClick>
				if ( IsModifiedClick() ) then
					local link = GetNewSocketLink(self:GetID()) or
								 GetExistingSocketLink(self:GetID());
					HandleModifiedItemClick(link);
				else
					StaticPopup_Hide("DELETE_ITEM");
					StaticPopup_Hide("DELETE_QUEST_ITEM");
					StaticPopup_Hide("DELETE_GOOD_ITEM");
					StaticPopup_Hide("DELETE_GOOD_QUEST_ITEM");
					ClickSocketButton(self:GetID());
				end
			</OnClick>
			<OnReceiveDrag>
				StaticPopup_Hide("DELETE_ITEM");
				StaticPopup_Hide("DELETE_QUEST_ITEM");
				StaticPopup_Hide("DELETE_GOOD_ITEM");
				StaticPopup_Hide("DELETE_GOOD_QUEST_ITEM");
				ClickSocketButton(self:GetID());
			</OnReceiveDrag>
			<OnDragStart>
				StaticPopup_Hide("DELETE_ITEM");
				StaticPopup_Hide("DELETE_QUEST_ITEM");
				StaticPopup_Hide("DELETE_GOOD_ITEM");
				StaticPopup_Hide("DELETE_GOOD_QUEST_ITEM");
				ClickSocketButton(self:GetID());
			</OnDragStart>
			<OnEnter>
				ItemSocketingSocketButton_OnEnter(self, motion);
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
				ShoppingTooltip1:Hide();
			</OnLeave>
		</Scripts>
		<PushedTexture file="Interface\Buttons\UI-Quickslot-Depress"/>
		<HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/>
	</Button>
	<Texture name="NubTemplate" file="Interface\ItemSocketingFrame\UI-ItemSocketingFrame" virtual="true">
		<Size x="11" y="12"/>
		<TexCoords left="0.62890625" right="0.67187500" top="0.00390625" bottom="0.05078125"/>	
	</Texture>
	
	<Frame name="ItemSocketingFrame" toplevel="true" parent="UIParent" enableMouse="true" hidden="true" inherits="ButtonFrameTemplate">
		<Layers>
			<Layer level="OVERLAY">
				<FontString inherits="GameFontNormal" text="ITEM_SOCKETING">
					<Anchors>
						<Anchor point="TOP" x="15" y="-5"/>
					</Anchors>
				</FontString>
			</Layer>
			<Layer level="ARTWORK">
				<Texture parentKey="ParchmentFrame-Top" file="Interface\ItemSocketingFrame\UI-ItemSocketingFrame-_tile" horizTile="true" >
					<Size x="256" y="42"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="2" y="-21"/>
						<Anchor point="TOPRIGHT" x="-4" y="-21"/>
					</Anchors>
					<TexCoords left="0.00000000" right="1.00000000" top="0.37500000" bottom="0.70312500"/>	
				</Texture>
				<Texture parentKey="ParchmentFrame-Bottom" file="Interface\ItemSocketingFrame\UI-ItemSocketingFrame-_tile" horizTile="true" >
					<Size x="256" y="22"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="2" y="3"/>
						<Anchor point="BOTTOMRIGHT" x="-4" y="3"/>
					</Anchors>
					<TexCoords left="0.00000000" right="1.00000000" top="0.18750000" bottom="0.35937500"/>	
				</Texture>
				<Texture parentKey="ParchmentFrame-Left" file="Interface\ItemSocketingFrame\UI-ItemSocketParchementFrame-Left" vertTile="true">
					<Size x="9" y="128"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="2" y="-62"/>
						<Anchor point="BOTTOMLEFT" x="2" y="25"/>
					</Anchors>
					<TexCoords left="0" right="0.75" top="0" bottom="1"/>
				</Texture>
				<Texture parentKey="ParchmentFrame-Right" file="Interface\ItemSocketingFrame\UI-ItemSocketParchementFrame-Left" vertTile="true">
					<Size x="5" y="128"/>
					<Anchors>
						<Anchor point="TOPRIGHT" x="-4" y="-62"/>
						<Anchor point="BOTTOMRIGHT" x="-4" y="25"/>
					</Anchors>
					<TexCoords left="0" right="0.75" top="0" bottom="1"/>
				</Texture>
				<Texture parentKey="SocketFrame-Left" file="Interface\ItemSocketingFrame\UI-ItemSocketingFrame">
					<Size x="158" y="51"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="11" y="26"/>
					</Anchors>
					<TexCoords left="0.00390625" right="0.62109375" top="0.00390625" bottom="0.20312500"/>	
				</Texture>
				<Texture parentKey="SocketFrame-Right" file="Interface\ItemSocketingFrame\UI-ItemSocketingFrame">
					<Size x="158" y="51"/>
					<Anchors>
						<Anchor point="BOTTOMRIGHT" x="-11" y="26"/>
					</Anchors>
					<TexCoords left="0.00390625" right="0.62109375" top="0.21093750" bottom="0.41015625"/>	
				</Texture>
				<Texture parentKey="ButtonFrame-Left" file="Interface\ItemSocketingFrame\UI-ItemSocketingFrame">
					<Size x="4" y="21"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="-167" y="4"/>
					</Anchors>
					<TexCoords left="0.62890625" right="0.64453125" top="0.05859375" bottom="0.14062500"/>	
				</Texture>
				<Texture parentKey="ButtonFrame-Right" file="Interface\ItemSocketingFrame\UI-ItemSocketingFrame">
					<Size x="4" y="21"/>
					<Anchors>
						<Anchor point="BOTTOMRIGHT" x="-5" y="4"/>
					</Anchors>
					<TexCoords left="0.65234375" right="0.66796875" top="0.05859375" bottom="0.14062500"/>	
				</Texture>
				<Texture parentKey="ButtonBorder-Mid" file="Interface\ItemSocketingFrame\UI-ItemSocketingFrame-_tile" horizTile="true" >
					<Size x="100" y="21"/>	
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.ButtonFrame-Left" relativePoint="TOPRIGHT"/>
						<Ancher point="TOPRIGHT" relativeKey="$parent.ButtonFrame-Right" relativePoint="TOPLEFT"/>
					</Anchors>
					<TexCoords left="0.00000000" right="1.00000000" top="0.00781250" bottom="0.17187500"/>	
				</Texture>
				<Texture parentKey="GoldBorder-BottomRight" file="Interface\Common\UI-Goldborder">
					<Size x="66" y="55"/>
					<Anchors>
						<Anchor point="BOTTOMRIGHT" x="-10" y="79"/>
					</Anchors>
					<TexCoords left="0.26171875" right="0.51953125" top="0.00781250" bottom="0.43750000"/>	
				</Texture>
				<Texture parentKey="GoldBorder-BottomLeft" file="Interface\Common\UI-Goldborder">
					<Size x="66" y="55"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="11" y="79"/>
					</Anchors>
					<TexCoords left="0.26171875" right="0.51953125" top="0.45312500" bottom="0.88281250"/>	
				</Texture>
				<Texture parentKey="GoldBorder-TopRight" file="Interface\Common\UI-Goldborder">
					<Size x="66" y="55"/>
					<Anchors>
						<Anchor point="TOPRIGHT" x="-10" y="-64"/>
					</Anchors>
					<TexCoords left="0.52734375" right="0.78515625" top="0.00781250" bottom="0.43750000"/>	
				</Texture>
				<Texture parentKey="GoldBorder-TopLeft" file="Interface\Common\UI-Goldborder">
					<Size x="66" y="55"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="11" y="-64"/>
					</Anchors>
					<TexCoords left="0.52734375" right="0.78515625" top="0.45312500" bottom="0.88281250"/>	
				</Texture>
				<Texture parentKey="GoldBorder-Left" file="Interface\Common\UI-Goldborder-!tile" vertTile="true" >
					<Size x="9" y="128"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.GoldBorder-TopLeft" relativePoint="BOTTOMLEFT"/>
						<Anchor point="BOTTOMLEFT" relativeKey="$parent.GoldBorder-BottomLeft" relativePoint="TOPLEFT"/>
					</Anchors>
					<TexCoords left="0.00781250" right="0.07812500" top="0.00000000" bottom="1.00000000"/>	
				</Texture>
				<Texture parentKey="GoldBorder-Right" file="Interface\Common\UI-Goldborder-!tile" vertTile="true" >
					<Size x="9" y="128"/>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeKey="$parent.GoldBorder-TopRight" relativePoint="BOTTOMRIGHT"/>
						<Anchor point="BOTTOMRIGHT" relativeKey="$parent.GoldBorder-BottomRight" relativePoint="TOPRIGHT"/>
					</Anchors>
					<TexCoords left="0.00781250" right="0.07812500" top="0.00000000" bottom="1.00000000"/>	
				</Texture>
				<Texture parentKey="GoldBorder-Top" file="Interface\Common\UI-Goldborder-_tile" horizTile="true" >
					<Size x="256" y="9"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.GoldBorder-TopLeft" relativePoint="TOPRIGHT"/>
						<Anchor point="TOPRIGHT" relativeKey="$parent.GoldBorder-TopRight" relativePoint="TOPLEFT"/>
					</Anchors>
					<TexCoords left="0.00000000" right="1.00000000" top="0.01562500" bottom="0.15625000"/>	
				</Texture>
				<Texture parentKey="GoldBorder-Bottom" file="Interface\Common\UI-Goldborder-_tile" horizTile="true" >
					<Size x="256" y="9"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativeKey="$parent.GoldBorder-BottomLeft" relativePoint="BOTTOMRIGHT"/>
						<Anchor point="BOTTOMRIGHT" relativeKey="$parent.GoldBorder-BottomRight" relativePoint="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords left="0.00000000" right="1.00000000" top="0.01562500" bottom="0.15625000"/>	
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<Texture parentKey="BackgroundColor">
					<Anchors>
						<Anchor point="TOPLEFT" x="20" y="-74"/>
						<Anchor point="BOTTOMRIGHT" x="-20" y="80"/>
					</Anchors>
					<Color r="0.078125" g="0.12109375" b="0.21484375" a="0.4"/>
				</Texture>
				<Texture parentKey="BackgroundHighlight" file="Interface\ItemSocketingFrame\UI-ItemSocketingFrame" virtual="true" >
					<Size x="128" y="128"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="20" y="-74"/>
						<Anchor point="BOTTOMRIGHT" x="-20" y="80"/>
					</Anchors>
					<TexCoords left="0.00390625" right="0.50390625" top="0.41796875" bottom="0.91796875"/>
				</Texture>
				<Texture parentKey="BorderShadow-TopLeftCorner" file="Interface\Common\UI-Goldborder">
					<Size x="32" y="32"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="20" y="-74"/>
					</Anchors>
					<TexCoords left="0.12890625" right="0.25390625" top="0.00781250" bottom="0.25781250"/>	
				</Texture>
				<Texture parentKey="BorderShadow-TopRightCorner" file="Interface\Common\UI-Goldborder">
					<Size x="32" y="32"/>
					<Anchors>
						<Anchor point="TOPRIGHT" x="-20" y="-74"/>
					</Anchors>
					<TexCoords left="0.25390625" right="0.12890625" top="0.00781250" bottom="0.25781250"/>	
				</Texture>
				<Texture parentKey="BorderShadow-BottomLeftCorner" file="Interface\Common\UI-Goldborder">
					<Size x="32" y="32"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="20" y="88"/>
					</Anchors>
					<TexCoords left="0.12890625" right="0.25390625" top="0.25781250" bottom="0.00781250"/>	
				</Texture>
				<Texture parentKey="BorderShadow-BottomRightCorner" file="Interface\Common\UI-Goldborder">
					<Size x="32" y="32"/>
					<Anchors>
						<Anchor point="BOTTOMRIGHT" x="-20" y="88"/>
					</Anchors>
					<TexCoords left="0.25390625" right="0.12890625" top="0.25781250" bottom="0.00781250"/>	
				</Texture>
				<Texture parentKey="BorderShadow-Top" file="Interface\Common\UI-Goldborder-_tile" horizTile="true" >
					<Size x="256" y="32"/>	
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.BorderShadow-TopLeftCorner" relativePoint="TOPRIGHT"/>
						<Anchor point="TOPRIGHT" relativeKey="$parent.BorderShadow-TopRightCorner" relativePoint="TOPLEFT"/>
					</Anchors>
					<TexCoords left="0.00000000" right="1.00000000" top="0.18750000" bottom="0.68750000"/>	
				</Texture>
				<Texture parentKey="BorderShadow-Left" file="Interface\Common\UI-Goldborder-!tile" vertTile="true" >
					<Size x="32" y="128"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.BorderShadow-TopLeftCorner" relativePoint="BOTTOMLEFT"/>
						<Anchor point="BOTTOMLEFT" relativeKey="$parent.BorderShadow-BottomLeftCorner" relativePoint="TOPLEFT"/>
					</Anchors>
					<TexCoords left="0.34375000" right="0.59375000" top="0.00000000" bottom="1.00000000"/>	
				</Texture>
				<Texture parentKey="BorderShadow-Bottom" file="Interface\Common\UI-Goldborder-_tile" horizTile="true" >
					<Size x="256" y="32"/>	
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativeKey="$parent.BorderShadow-BottomLeftCorner" relativePoint="BOTTOMRIGHT"/>
						<Anchor point="BOTTOMRIGHT" relativeKey="$parent.BorderShadow-BottomRightCorner" relativePoint="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords left="0.00000000" right="1.00000000" top="0.68750000" bottom="0.18750000"/>	
				</Texture>
				<Texture parentKey="BorderShadow-Right" file="Interface\Common\UI-Goldborder-!tile" vertTile="true" >
					<Size x="32" y="128"/>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeKey="$parent.BorderShadow-TopRightCorner" relativePoint="BOTTOMRIGHT"/>
						<Anchor point="BOTTOMRIGHT" relativeKey="$parent.BorderShadow-BottomRightCorner" relativePoint="TOPRIGHT"/>
					</Anchors>
					<TexCoords left="0.59375000" right="0.34375000" top="0.00000000" bottom="1.00000000"/>	
				</Texture>
				<Texture parentKey="BottomLeftNub" inherits="NubTemplate">
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="6" y="20"/>
					</Anchors>
				</Texture>
				<Texture parentKey="BottomRightNub" inherits="NubTemplate">
					<Anchors>
						<Anchor point="BOTTOMRIGHT" x="-5" y="20"/>
					</Anchors>
				</Texture>
				<Texture parentKey="MiddleLeftNub" inherits="NubTemplate">
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="6" y="72"/>
					</Anchors>
				</Texture>
				<Texture parentKey="MiddleRightNub" inherits="NubTemplate">
					<Anchors>
						<Anchor point="BOTTOMRIGHT" x="-5" y="72"/>
					</Anchors>
				</Texture>
				<Texture parentKey="TopLeftNub" inherits="NubTemplate">
					<Anchors>
						<Anchor point="TOPLEFT" x="6" y="-57"/>
					</Anchors>
				</Texture>
				<Texture parentKey="TopRightNub" inherits="NubTemplate">
					<Anchors>
						<Anchor point="TOPRIGHT" x="-5" y="-57"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<ScrollFrame name="ItemSocketingScrollFrame" inherits="UIPanelScrollFrameTemplate">
				<Size x="269" y="258"/>
				<Anchors>
					<Anchor point="TOPLEFT" x="22" y="-74"/>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture name="$parentBottom" file="Interface\Common\UI-Goldborder" >
							<Size x="30" y="32"/>
							<Anchors>
								<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="-2" y="-4"/>
							</Anchors>
							<TexCoords left="0.00390625" right="0.12109375" top="0.00781250" bottom="0.25781250"/>	
						</Texture>
						<Texture name="$parentTop" file="Interface\Common\UI-Goldborder" >
							<Size x="30" y="32"/>
							<Anchors>
								<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="-2" y="1"/>
							</Anchors>
							<TexCoords left="0.00390625" right="0.12109375" top="0.27343750" bottom="0.52343750"/>	
						</Texture>
						<Texture name="$parentMiddle" file="Interface\Common\UI-Goldborder-!tile" vertTile="true" >
							<Size x="30" y="128"/>
							<Anchors>
								<Anchor point="TOPRIGHT" relativeTo="$parentTop" relativePoint="BOTTOMRIGHT"/>
								<Anchor point="BOTTOMRIGHT" relativeTo="$parentBottom" relativePoint="TOPRIGHT"/>
							</Anchors>
							<TexCoords left="0.09375000" right="0.32812500" top="0.00000000" bottom="1.00000000"/>	
						</Texture>
						
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						self.scrollBarHideable = 1;
						ScrollFrame_OnLoad(self);
						ScrollFrame_OnScrollRangeChanged(self, 0, 0);
					</OnLoad>
					<OnScrollRangeChanged>
						ScrollFrame_OnScrollRangeChanged(self, 0, yrange);
						ItemSocketingSocketButton_OnScrollRangeChanged(self);
					</OnScrollRangeChanged>
				</Scripts>
				<ScrollChild>
					<Frame name="ItemSocketingScrollChild">
						<Size x="259" y="254"/>
						<Frames>
							<GameTooltip name="ItemSocketingDescription" inherits="GameTooltipTemplate" setAllPoints="true" hidden="false">
								<Scripts>
									<OnLoad>
										self:SetBackdrop(nil);
									</OnLoad>
								</Scripts>
							</GameTooltip>							
						</Frames>
					</Frame>
				</ScrollChild>
			</ScrollFrame>
			<Button name="ItemSocketingSocket1" inherits="ItemSocketingSocketButtonTemplate" id="1">
				<Anchors>
					<Anchor point="BOTTOM" relativeTo="ItemSocketingFrame" x="100" y="99"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="ItemSocketingSocket1Left" file="Interface\ItemSocketingFrame\UI-ItemSockets">
							<Size x="73" y="55"/>
							<Anchors>
								<Anchor point="RIGHT" relativePoint="CENTER" x="-5" y="5"/>
							</Anchors>
							<TexCoords left="0" right="0.28515625" top="0" bottom="0.21484375"/>
						</Texture>
					</Layer>
				</Layers>
			</Button>
			<Button name="ItemSocketingSocket2" inherits="ItemSocketingSocketButtonTemplate" id="2">
				<Anchors>
					<Anchor point="LEFT" relativeTo="ItemSocketingSocket1" relativePoint="RIGHT" x="40" y="0"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="ItemSocketingSocket2Left" file="Interface\ItemSocketingFrame\UI-ItemSockets">
							<Size x="73" y="46"/>
							<Anchors>
								<Anchor point="RIGHT" relativePoint="CENTER" x="-5" y="0"/>
							</Anchors>
							<TexCoords left="0" right="0.28515625" top="0.21484375" bottom="0.39453125"/>
						</Texture>
					</Layer>
				</Layers>
			</Button>
			<Button name="ItemSocketingSocket3" inherits="ItemSocketingSocketButtonTemplate" id="3">
				<Anchors>
					<Anchor point="LEFT" relativeTo="ItemSocketingSocket2" relativePoint="RIGHT" x="40" y="0"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="ItemSocketingSocket3Left" file="Interface\ItemSocketingFrame\UI-ItemSockets">
							<Size x="73" y="46"/>
							<Anchors>
								<Anchor point="RIGHT" relativePoint="CENTER" x="-5" y="0"/>
							</Anchors>
							<TexCoords left="0" right="0.28515625" top="0.21484375" bottom="0.39453125"/>
						</Texture>
					</Layer>
				</Layers>
			</Button>
			<Button name="ItemSocketingSocketButton" text="SOCKET_GEMS">
				<Size x="162" y="22"/>
				<Anchors>
					<Anchor point="BOTTOMRIGHT" x="-5" y="3"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture parentKey="Left" file="Interface\Buttons\UI-Panel-Button-Up">
							<Size x="12" y="22"/>
							<Anchors>
								<Anchor point="LEFT"/>
							</Anchors>
							<TexCoords left="0" right="0.09375" top="0" bottom="0.6875"/>
						</Texture>
						<Texture parentKey="Right" file="Interface\Buttons\UI-Panel-Button-Up">
							<Size x="12" y="22"/>
							<Anchors>
								<Anchor point="RIGHT"/>
							</Anchors>
							<TexCoords left="0.53125" right="0.625" top="0" bottom="0.6875"/>
						</Texture>
						<Texture parentKey="Middle" file="Interface\Buttons\UI-Panel-Button-Up">
							<Size x="12" y="22"/>
							<Anchors>
								<Anchor point="LEFT" relativeKey="$parent.Left" relativePoint="RIGHT"/>
								<Anchor point="RIGHT" relativeKey="$parent.Right" relativePoint="LEFT"/>
							</Anchors>
							<TexCoords left="0.09375" right="0.53125" top="0" bottom="0.6875"/>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnClick>
						if ( ItemSocketingFrame.itemIsBoundTradeable ) then
							local dialog = StaticPopup_Show("END_BOUND_TRADEABLE", nil, nil, "gem");
						elseif ( ItemSocketingFrame.destroyingGem ) then
							StaticPopup_Show("CONFIRM_ACCEPT_SOCKETS");
						else
							AcceptSockets();
							PlaySound("JewelcraftingFinalize");
						end
					</OnClick>
					<OnMouseDown>
						if ( not self.disabled ) then
							self.Left:SetTexture("Interface\\Buttons\\UI-Panel-Button-Down");
							self.Middle:SetTexture("Interface\\Buttons\\UI-Panel-Button-Down");
							self.Right:SetTexture("Interface\\Buttons\\UI-Panel-Button-Down");
						end
					</OnMouseDown>
					<OnMouseUp>
						if ( not self.disabled ) then
							self.Left:SetTexture("Interface\\Buttons\\UI-Panel-Button-Up");
							self.Middle:SetTexture("Interface\\Buttons\\UI-Panel-Button-Up");
							self.Right:SetTexture("Interface\\Buttons\\UI-Panel-Button-Up");
						end
					</OnMouseUp>
				</Scripts>
				<NormalFont style="GameFontNormal"/>
				<DisabledFont style="GameFontDisable"/>
				<HighlightFont style="GameFontHighlight"/>
				<HighlightTexture inherits="UIPanelButtonHighlightTexture"/>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad function="ItemSocketingFrame_OnLoad"/>
			<OnShow>
				PlaySound("igCharacterInfoOpen");
			</OnShow>
			<OnEvent function="ItemSocketingFrame_OnEvent"/>
			<OnHide>
				if ( self.isSocketing ) then
					ItemSocketingFrame_EnableSockets();
					self.isSocketing = nil;
				end
				PlaySound("igCharacterInfoClose");
				StaticPopup_Hide("CONFIRM_ACCEPT_SOCKETS");
				CloseSocketInfo();
			</OnHide>
		</Scripts>
	</Frame>
</Ui>