local function t(t)local f=true t=t.Parent while t and f do f=f and t.Expanded t=t.Parent end return f end

local function nodeIsVisible(node)
	local visible = true
	node = node.Parent
	while node and visible do
		visible = visible and node.Expanded
		node = node.Parent
	end
	return visible
end
