addEventHandler("onClientRender", root, function()
local x,y,z = getElementPosition(localPlayer)
for k,v in pairs(tvBrowsers) do
if not isBrowserLoading(v) then
local bx,by,bz = getElementPosition(tvParents[v])
local dist = getDistanceBetweenPoints3D(x,y,z,bx,by,bz)
setBrowserVolume(v, 1-dist/10)
end
end
end)