Gallery implemented

Gallery function implemented in new site.
Update to template files

Forgot to copy changes back into template.php.  Now done.  Looks like I
also forgot to take a copy of viewer.php back into the templates
directory, too; that's there now.