-- Get references to the DockShelf and its children

local fldr = script.Parent.Parent.Parent.LyricsFrame
local Pop = script.Parent.Parent.Parent.Popular
local Trcks = script.Parent.Parent.Parent.Tracks
local Serch = script.Parent.Parent.Parent.SearchTracks
local btn = script.Parent

local function toggleWindow()
		-- Set the initial position of the window to be relative to the button
		local startPos = UDim2.new(0.0,0,0.978,0)
		fldr.Position = startPos

		-- Set the initial size of the window to be zero
		fldr.Size = UDim2.new(1, 0, 0.022, 0)

		-- Show the window and tween its position and size from the button position and size to its original position and size
		fldr.Visible = true
		Pop.Visible = false
		Trcks.Visible = false
		Serch.Visible = false
		fldr:TweenSizeAndPosition(
			UDim2.new(1, 0, 0.808, 0),
			UDim2.new(0,0, 0.195, 0),
			'Out',
			'Quad',
			0.4
		)
end
