Dialog in jQuery: Show, hide, repaint and destroy DOM content in an interactive overlay