local w,k=calculateShowTimes()local u=true for w,X in ipairs(SHOW_SCENES)do local a=X:GetAttribute("\084\105\109\101\076\101\110\103\116\104")if k then if k<a then EventSequencer.loadScene(X.Name,k)u=false break else k=k-a end end end if u then loadPreShowVenue()end


local timeUntilNextShow, timeIntoShow = calculateShowTimes()
local shouldLoadPSV = true

for _,scene in ipairs(SHOW_SCENES) do
	local sceneLength = scene:GetAttribute("TimeLength")
	if timeIntoShow then
		if timeIntoShow < sceneLength then
			-- Jump into mid scene of show
			EventSequencer.loadScene(scene.Name, timeIntoShow)
			shouldLoadPSV = false
			break
		else
			timeIntoShow = timeIntoShow - sceneLength
		end
	end
end

if shouldLoadPSV then
	loadPreShowVenue()
end


