Using constructor functions for modal and slideshow objects.