A complete rewrite to support multiple instances and a new lightbox.