var Gallery = "Gallery";
var Portfolio = "Portfolio";

var curUse = Gallery;

var allImages = [
'images/brewster field l.jpg',
'images/chairs.jpg',
'images/chatham bandstand c.jpg',
'images/chatham light c.jpg',
'images/chatham light.jpg',
'images/fence.jpg',
'images/highland light c.jpg',
'images/highland light.jpg',
'images/nauset light c.jpg',
'images/nauset light.jpg',
'images/nobska light.jpg',
'images/rock harbor c.jpg',
'images/skiffs l.jpg',
'images/stage harbor light c.jpg',
'images/truro cottages c.jpg',
'images/truro storm c.jpg',
'images/PTown Tree.jpg',
'images/PTown Library.jpg',
'images/Windmill.jpg',
'images/Train Station.jpg',
'images/Barn Door.jpg',
'images/walking home.jpg',
'images/Musee Dorsay.jpg',
'images/La Seine.jpg',
'images/Beached - vdb.jpg',
'images/Marblehead - vdb.jpg',
'images/Walking Home - vdb.jpg',
'images/Snowy Bench - vdb.jpg',
'images/ChathamTrain-gum.jpg',
'images/CT-Barn-gum.jpg',
'images/Birches-gum.jpg',
'images/WellfleetMarsh3.jpg',
'images/ChathamSunrise.jpg',
'images/Harvard Bridge.jpg',
'images/ByTheRiverside2.jpg',
'images/CranberryBog5.jpg',
'images/MtMonadnock.jpg',
'images/PonteVeccio.jpg',
'images/Ponte Veccio 1.jpg',
'images/Florence Door Knocker.jpg',
'images/Duomo.jpg',
'images/Doorway.jpg',
'images/Assisi Stairs.jpg',
''];

var silvergelatinText = '<h3><b>Silver Gelatin ' + curUse + '</b></h3> \
<p>Silver Gelatin prints are the current name for \
"traditional" Black &amp; White photography, to distinguish them from \
digital prints printed on an ink jet printer. The photographic paper \
is coated with gelatin with light sensitive silver compounds. After \
the paper is exposed to light via an enlarger, the image on the paper \
is developed using a variety of chemical solutions to make the image \
appear and to then make the image permanent.</p>';

var silvergelatin = [
['images/chairs', 'Be Back Soon'],
['images/chatham light', 'Chatham Light, Chatham, MA'],
['images/fence', 'Beach Fence'],
['images/highland light', 'Highland Light, Truro, MA'],
['images/nauset light', 'Nauset Light, Eastham, MA'],
['images/nobska light', 'Nobska Light, Falmouth, MA'],
['images/Musee Dorsay', 'Musee D\'Orsay'],
['images/Barn Door', 'Barn Door'],
['images/Windmill', 'Windmill, Chatham, MA'],
['images/PTown Tree', 'A Tree Grows in P\'Town'],
''];

var tonedText = '<h3><b>Toned Print ' + curUse + '</b></h3> \
<p>\
Toned prints are Silver Gelatin prints which have been modified by a variety of \
different chemical solutions to achieve different colors and atmosphere. The most common toner is \
Sepia. Depending on the chemical composition of the toner and the duration of the toning process \
different colors and amount of toning can be varied. \
</p>';

var toned = [
['images/walking home', 'Walking Home'],
['images/La Seine', 'The Seine At Night'],
''];

var cyanotypeText = '<h3><b>Cyanotype ' + curUse + '</b></h3> \
<p>\
Cyanotypes are printed on watercolor or printmaking paper by coating the paper with a light sensitive \
iron based compound, and the contact printed under ultraviolet light, using a negative the same size \
as the desired print. When developed by rinsing in slightly acidified water, the image appears \
in a deep shade of blue called \'Prussian Blue\'. \
</p>';

var cyanotype = [
['images/chatham bandstand c', 'Chatham Bandstand'],
['images/chatham light c', 'Chatham Light'],
['images/highland light c', 'Highland Light'],
['images/nauset light c', 'Nauset Light'],
['images/rock harbor c', 'Rock Harbor'],
['images/truro cottages c', 'Truro Cottages'],
['images/truro storm c', 'Storm Over Truro'],
['images/stage harbor light c', 'Stage Harbor Light, Chatham, MA'],
['images/Train Station', 'Train Station, Chatham, MA'],

''];

var lithText = '<h3><b>Lith Print ' + curUse + '</b></h3> \
<p>\
Lith prints use conventional warm toned photographic paper, but the \
exposure time under the enlarger is increased by 4 to 8 \
times. Ordinarily this would cause the paper to become totally black, \
but the development is carried out in extremely diluted film \
developer, and the paper is then "snatched" from the developer early, \
when it has reached the desired density. Due to the nature of the \
development, which increases exponentially as time goes on, the timing \
of the development is very critical. This process results in prints \
with grainless highlights very deep shadows, and midtones with \
different shades of pink, orange, brown, mauve, etc. The final results \
are very dependent upon the type of paper used. \
<\p>';

var lith = [
['images/brewster field l', 'Field and Stones'],
['images/skiffs l', 'Skiffs'],
['images/PTown Library', 'PTown Library (Infrared)'],
['images/Ponte Veccio 1', 'Ponte Veccio (Florence)'],
['images/Florence Door Knocker', 'Door Knocker (Florence)'],
['images/Duomo', 'Duomo (Florence)'],
['images/Doorway', 'Roman Doorway'],
['images/Assisi Stairs', 'Stairway to Heaven (Assisi))'],
''];

var vdbText = '<h3><b>Van Dyke Brown ' + curUse + '</b></h3> \
<p>\
Van Dyke Brown prints, like Cyanotypes, are printed on watercolor paper by coating the paper with a light sensitive \
compound, but VDB prints are silver, rather than iron, based. The paper is contact printed under ultraviolet light \
and developed in slightly acidified water. It is then processed the same as conventional Silver Gelatin prints \
and "fixed" in a solution which removes the unexposed siver, and finally washed for an extended period \
to remove the remaining fixer.\
</p>';

var vdb = [
['images/Snowy Bench - vdb', 'Snowy Bench'],
['images/Walking Home - vdb', 'Walking Home'],
['images/Marblehead - vdb', 'Marblehead Stairs'],
['images/Beached - vdb', 'Beached'],
''];

var gumText = '<h3><b>Gum Dichromate ' + curUse + '</b></h3> \
<p>\
Gum Dichromate prints are so named because of their use of Gum Arabic, which is normally soluble in water. \
It can be made insoluble (see technical information) such that a permanent image using watercolor paints \
is formed. This is a very involved, time consuming process that results in photographic images with a very different \
look to them than almost any other process. \
</p>';

var gum = [
['images/ChathamTrain-gum', 'Chatham Train Station'],
['images/Birches-gum', 'Birches'],
['images/CT-Barn-gum', 'Barn and Clouds'],
''];

var pinholeText = '<h3><b>Pinhole Photography ' + curUse + '</b></h3> \
<p>\
Pinhole cameras use a tiny hole in a thin piece of metal, rather than \
a lens, to focus the image onto film. Due to the tiny size of the \
hole, the image has nearly infinite depth of field, making the \
foreground and the background always in focus. The smaller the hole, \
the sharper the image will be, but also the exposure time will \
increase, because less light enters the camera. A compromise needs to \
be made between sharpness and length of exposure. My panoramic camera \
uses a pinhole that result in somewhat softer focus for a more \
"painterly" or impressionistic look. The curved film back in the \
camera creates even illumination, so all parts of the negative are \
evenly exposed, and reduces the distortion typically seen with wide \
angle lenses. These images were taken with a single exposure, not \
multiple exposures that are stitched together to make a wide panoramic \
print. I scan the negatives \
and print the images on a gicleé printer using \
archival paper and inks for a print lifetime in excess of 100 years. \
</p>\
<center><table border=\'0\'>\
<tr>\
<td><img src=\"images/BillWithPinhole1.jpg\"></td>\
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>\
<td><img src=\"images/BillWithPinhole2.jpg\"></td>\
</tr></table>\
</center>\
<p><h6><center>Photos of Bill Leigh with his pinhole camera courtesy of Liz Mackney \
of <a href=\"http://www.lizmackneyphotography.com\">\
Liz Mackney Photography.</a></center></h6></p>\
';

var pinhole = [
['images/ByTheRiverside2', 'By The Riverside'],
['images/HarvardBridge', 'Boston Skyline/Harvard Bridge'],
['images/ChathamSunrise', 'Chatham Sunrise'],
['images/WellfleetMarsh3', 'Wellfleet Marsh'],
['images/CranberryBog5', 'Cape Cod Cranberry Bog'],
['images/MtMonadnock', 'Mount Monadnock'],

''];

var capecodText = '<h3><b>Cape Cod ' + curUse + '</b></h3>\
<p>\
For many of us, Cape Cod has an allure that cannot be \
described. Whether it is the beaches, weathered homes, salt air, art \
festivals, or even the quiet seclusion during the "off season", the \
Cape casts a magic over those of us fortunate enough to spend time \
here. I have attempted to show my love of the area through my \
photographs, using different techniques to allow me to discover \
alternate views and see the Cape through different eyes. \
</p>';

var capecod = [
['images/brewster field l', 'Field and Stones - Lith Print'],
['images/chairs', '\"We\'ll Be Back\" - Silver Gelatin'],
['images/chatham bandstand c', 'Chatham Bandstand - Cyanotype'],
['images/fence', 'Beach Fence - Silver Gelatin'],
['images/rock harbor c', 'Rock Harbor - Cyanotype'],
['images/skiffs l', 'Skiffs - Lith Print'],
['images/truro cottages c', 'Truro Cottages - Cyanotype'],
['images/truro storm c', 'Storm Over Truro - Cyanotype'],
['images/Barn Door', 'Barn Door - Silver Gelatin'],
['images/Train Station', 'Train Station, Chatham, MA - Cyanotype'],
['images/Windmill', 'Windmill, Chatham, MA - Infrared Silver Gelatin'],
['images/PTown Library', 'Provincetown Library - Infrared Lith Print'],
['images/PTown Tree', 'A Tree Grows in P\'Town - Infrared Silver Gelatin'],
['images/Beached - vdb', 'Beached - Van Dyke Brown'],
['images/ChathamSunrise', 'Chatham Sunrise'],
['images/WellfleetMarsh3', 'Wellfleet Marsh'],
['images/ChathamTrain-gum', 'Chatham Train Station'],
''];

var italyText = '<h3><b>Italy ' + curUse + '</b></h3>\
<p>\
In 2007 I visited italy, travelling to Rome, Assisi, Perugia, \
Luca, Florence, and Bagni Di Luca. These are just a few of the \
many photographs that I took during my visit. \
</p>';

var italy = [
['images/Ponte Veccio 1', 'Ponte Veccio (Florence)'],
['images/Florence Door Knocker', 'Door Knocker (Florence)'],
['images/Duomo', 'Duomo (Florence)'],
['images/Doorway', 'Roman Doorway'],
['images/Assisi Stairs', 'Stairway to Heaven (Assisi))'],
''];

var parisText = '<h3><b>Paris ' + curUse + '</b></h3>\
<p>\
Paris, the "City of Light", is a unique city that can be constantly \
rediscovered. I have only visted there a few times, but I am always \
drawn back because of its beauty, culture, history, and vitality. I \
present here just a few of the images I have of Paris. \
</p>';

var paris = [
['images/walking home', 'Walking Home - Toned Silver Gelatin'],
['images/La Seine', 'The Seine At Night - Toned Silver Gelatin'],
['images/Musee Dorsay', 'Musee D\'Orsay - Silver Gelatin'],
['images/Walking Home - vdb', 'Walking Home - Van Dyke Brown'],
''];

var lighthousesText = '<h3><b>Lighthouse ' + curUse + '</b></h3>\
<p>\
Lighthouses have been used from ancient times when the Lighthouse of \
Alexandria was used to mark the entrance to the harbor at Alexandria \
in Egypt. With the requirement of height, they have always been very \
noticeable, and with their placement on high points near the edge of \
the sea, they are typically very picturesque, and have inspired \
artists and photographers alike for many years. \
</p><p>\
Each lighthouse is different, owing its uniqueness to the topography \
of the area, the residence requirements for the keepers, and local \
architectural styles. Even the lighthouses of Cape Cod, with their \
proximity to one another, are all very different in look and history. \
</p>';

var lighthouses = [
['images/chatham light c', 'Chatham Light - Cyanotype'],
['images/chatham light', 'Chatham Light - Silver Gelatin'],
['images/highland light c', 'Highland Light - Cyanotype'],
['images/highland light', 'Highland Light - Silver Gelatin'],
['images/nauset light c', 'Nauset Light - Cyanotype'],
['images/nauset light', 'Nauset Light - Silver Gelatin'],
['images/nobska light', 'Nobska Light - Silver Gelatin'],
['images/stage harbor light c', 'Stage Harbor Light - Cyanotype'],
''];

