moved call to animate to after the curtain div is created