/***************************************************************************
* Create a photo object                                                    *
***************************************************************************/
function photo(id, galleries_id, photo_ref, section_code, src, width, height, caption, thumbnail, thumbnail_width, thumbnail_height, home, gallery, description, takendate, photographer, location, item_price, purchase_instruction) {
	this.id = id;
	this.galleries_id = galleries_id;
	this.photo_ref = photo_ref;
	this.section_code = section_code;
	this.src = src;
	this.width = width;
	this.height = height;
	this.caption = caption;
	this.thumbnail = thumbnail;
	this.thumbnail_width = thumbnail_width;
	this.thumbnail_height = thumbnail_height;
	this.home = home;
	this.gallery = gallery;
	this.description = description;
	this.takendate = takendate;
	this.photographer = photographer;
	this.location = location;
	this.item_price = item_price;
	this.purchase_instruction = purchase_instruction;
}
/***************************************************************************
* Create a gallery object                                                  *
***************************************************************************/

function gallery(id,featured_images,title,section_code) {
	this.id = id;
	this.featured_images = featured_images;
	this.title = title;
	this.section_code = section_code;}

/***************************************************************************
* Select a random value from a comma separated list                        *
***************************************************************************/
function randomListVal(list) {
	arrayVals = list.split(',');
	pos = Math.round(Math.random() * (arrayVals.length - 1));
	debug('Returning ' + arrayVals[pos] + ' as random image');
	return arrayVals[pos];
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {

	imageID = randomListVal('3406617,3406611,3406111,3406110,3406090,3405181,3405067,3319526,3319511,3319502,3319500,3319495,3319491,3310251,3310246,3310244,3310242,3310239,3310233,3269851,3269841,3269836,3269833,3268767,3197498,3197466,3197459,3197456,3197455,3196875,3196836,3196830,3168939,3168935,3168934,3156679,3156531,3156288,3151014,3151008,3151006,3151004,3151003,3113940,3113933,3113928,3113579,3110974,3110944,3101522');
	for (j = 0; j < photos.length; j++) {
		if (photos[j].id == imageID) {
			if (!basic) {
			img.src = photos[j].src;
			img.width = photos[j].width;
			img.height = photos[j].height;
			}
			else {
				newImage = new Image(photos[j].width,photos[j].height);
				newImage.src = photos[j].src;
				document.images[img.name] = newImage;
				debug(newImage.src);
			}
			break;
		}
	}
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline() {
	
	imageID = randomListVal('3406617,3406611,3406111,3406110,3406090,3405181,3405067,3319526,3319511,3319502,3319500,3319495,3319491,3310251,3310246,3310244,3310242,3310239,3310233,3269851,3269841,3269836,3269833,3268767,3197498,3197466,3197459,3197456,3197455,3196875,3196836,3196830,3168939,3168935,3168934,3156679,3156531,3156288,3151014,3151008,3151006,3151004,3151003,3113940,3113933,3113928,3113579,3110974,3110944,3101522');
	for (j = 0; j < photos.length; j++) {
		if (photos[j].id == imageID) {
			if ('gallery' != '') {
						if (photos[j].galleries_id != '') {
						document.write('<a href="' + photos[j].section_code + '_' + photos[j].galleries_id + '.html">');
						}
						else {
						document.write('<a href="gallery.html">');
						}
			}
			document.write('<img src="' + photos[j].src + '" width="' + photos[j].width + '" height="' + photos[j].height + '" class="mainhomepageimage" id="mainSample" name="mainSample" alt="' + photos[j].caption  + '" border="0">');
			if ('gallery' != '') {
				document.write('</a>');
			}
			break;
		}
	}
	
}

/***************************************************************************
* Show the next image in a gallery.  field = hidden field containing       *
* image_id                                                                 *
*  img = reference to image object in which to show image                  *
***************************************************************************/
function next(field,img) {

	debug('IN next');
	imageID = field.value;
	
	for (j = 0; j < photos.length; j++) {
		if (photos[j].id == imageID) {
			break;
		}
	}
	debug('image is ' + j);
	nextImg = -1;
	k= j + 1;
	while (nextImg < 0) {
		for (; k < photos.length; k++) {
			debug('testing image ' + k + ': gallery = ' + photos[k].galleries_id + '(existing: ' + photos[j].galleries_id + ')');
			if (photos[k].galleries_id == photos[j].galleries_id) {
				nextImg = k;
				debug('setting  nextImg = ' + k);
				break;
			}
		}
		if (nextImg == -1) {
			k = 0;
		}
	}
	if (nextImg != -1) {
		updateImage(nextImg, field,img);
	}


}


/***************************************************************************
* Set a new image on the gallery detail page given its array position      *
***************************************************************************/
function updateImage (nextImg, field,img) {
	debug('Updating image');
	if (!basic && !((0) || (0))) {
		debug('In updateImage');
		debug('setting  img src = ' + photos[nextImg].src);
		
					
			document.getElementById('imagePhoto').innerHTML = '<img class="mainphoto" src="' + photos[nextImg].src + ' " id="mainPic" name="mainPic" width="' + photos[nextImg].width + '" height="' + photos[nextImg].height + '" alt="' + photos[nextImg].caption + '">';
						field.value = photos[nextImg].id;
			document.getElementById('imageTitle').innerHTML = photos[nextImg].caption;
									document.title = 'hall photography: ' + photos[nextImg].caption;
										/* apply 'blank' classname to element where */			if ( photos[nextImg].caption == '') {
				document.getElementById('imageTitle').style.className = 'blank';
			}
			else {
				document.getElementById('imageTitle').style.className = 'normal';
			}
						temp = '';
			if (photos[nextImg].description != '') {
				temp = temp +  '<p id="imageDescription">' + photos[nextImg].description + '</p>';
			}
						if (photos[nextImg].photo_ref != '') {
				temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + photos[nextImg].photo_ref + '</p>';
			}
						if (photos[nextImg].takendate != '') {
				debug('Resetting taken date');
				temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + photos[nextImg].takendate + '</p>';
			}
			
			if (photos[nextImg].location != '') {
				debug('Resetting location');
				temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  photos[nextImg].location + '</p>';
			}
			
			if (photos[nextImg].photographer != '') {
				debug('Resetting photographer');
				temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + photos[nextImg].photographer + '</p>';
			}
			if (temp != '') {				temp = temp + '<div class="spacer"></div>';			}					if (temp == '') {
			document.getElementById('imageDetails').style.display = 'none';
		}
		else {
			document.getElementById('imageDetails').style.display = 'block';
		}
		document.getElementById('imageDetails').innerHTML =temp;	
		
	}
	else {
		debug('Redirecting to id ' + photos[nextImg].id);
		window.location = 'photo_' + photos[nextImg].id + '.html';
	}
}

/***************************************************************************
* Show the previous image for a gallery. field = hidden field containing   *
* image_id                                                                 *
*  img = reference to image object in which to show image                  *
***************************************************************************/
function previous(field,img) {


	imageID = field.value;
	for (j = 0; j < photos.length; j++) {
		if (photos[j].id == imageID) {
			break;
		}
	}
	debug('image is ' + j);
	nextImg = -1;
	k = j -1;
	while (nextImg < 0) {
		for (; k >= 0; k--) {
			if (photos[k].galleries_id == photos[j].galleries_id) {
				nextImg = k;
				break;
			}
		}
		if (nextImg == -1) {
			k = photos.length -1;
		}
	}
	if (nextImg != -1) {
		updateImage(nextImg, field,img);	
	}
}

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.
        *
* Gallery_id = id of gallery to choose                                     *
* 
 img = reference to html image                                       *
* in which to show image                                                   *
***************************************************************************/
function showGalleryImage(gallery_id, img) {
	debug('Gallery = ' + gallery_id);
	for (i = 0; i < galleries.length; i++) {
		if (galleries[i].id == gallery_id) {
			imageID = randomListVal(galleries[i].featured_images);
				for (j = 0; j < photos.length; j++) {
					if (photos[j].id == imageID) {
						
						img.src = photos[j].thumbnail;
						img.width = photos[j].thumbnail_width;
						img.height = photos[j].thumbnail_height;
						
						break;
					}
				}
			break;
		}
	} 
	}

/***************************************************************************
* If we have dynamic HTML                                                  *
*  replace the galleries link with a list that                             *
* doesn't include the current gallery                                      *
***************************************************************************/
function showGalleries(gallery_id) {
	debug('Showing links for gallery ' + gallery_id);
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
			debug('Testing gallery ' + galleries[i].id);
			
			if (galleries[i].id != gallery_id) {
				debug('Adding link');
				if (temp != '') {
					temp = temp + ' | ';
				}
				temp = temp + '<a href="gallery_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}
/***************************************************************************
* Create the array of Photo objects                                        *
***************************************************************************/
photos = new Array();
photos[0] = new photo(3080179,'186595','','gallery','http://www2.clikpic.com/hallphoto/images/towerS.jpg',432,576,'Steel tower.','http://www2.clikpic.com/hallphoto/images/towerS_thumb.jpg',130, 173,0, 0,'This picture was taken in Providence.','','Jonathan Hall','Providence, RI','','');
photos[1] = new photo(3101518,'186595','','gallery','http://www2.clikpic.com/hallphoto/images/egypt.jpg',500,375,'Rochambeau','http://www2.clikpic.com/hallphoto/images/egypt_thumb.jpg',130, 98,0, 0,'The early morning light highlights a monument.','','Jonathan Hall','Newport, RI','','');
photos[2] = new photo(3101520,'186595','','gallery','http://www2.clikpic.com/hallphoto/images/mussel.jpg',500,375,'What shell i do?','http://www2.clikpic.com/hallphoto/images/mussel_thumb.jpg',130, 98,0, 0,'This was taken on Jamestown\'s Dutch Island.','','Jonathan Hall','Dutch Isl. Jamestown, RI','','');
photos[3] = new photo(3101522,'186595','','gallery','http://www2.clikpic.com/hallphoto/images/lobbie.jpg',500,666,'Gonna get me some lobstas!','http://www2.clikpic.com/hallphoto/images/lobbie_thumb.jpg',130, 173,0, 0,'A project boat, needs a little TLC, but worth it.','','Jonathan Hall','Portsmouth, RI','','');
photos[4] = new photo(3151003,'186595','','gallery','http://www2.clikpic.com/hallphoto/images/suntree.jpg',500,666,'Warmth','http://www2.clikpic.com/hallphoto/images/suntree_thumb.jpg',130, 173,0, 0,'A plastic trinket clinging to a tree.','','Jonathan Hall','Newport, RI','','');
photos[5] = new photo(3151006,'186595','','gallery','http://www2.clikpic.com/hallphoto/images/thescare.jpg',500,378,'Frazzled!','http://www2.clikpic.com/hallphoto/images/thescare_thumb.jpg',130, 98,0, 0,'The rocks showing some emotion','','Jonathan Hall','Newport, Ri','','');
photos[6] = new photo(3156531,'186595','','gallery','http://www2.clikpic.com/hallphoto/images/egret1.jpg',500,638,'Gone Fishin, again.','http://www2.clikpic.com/hallphoto/images/egret1_thumb.jpg',130, 166,0, 0,'Fishing, egret style, in Newport Harbor.','','Jonathan Hall','Newport, RI','','');
photos[7] = new photo(3156679,'186595','','gallery','http://www2.clikpic.com/hallphoto/images/look.jpg',500,666,'Lookie here.','http://www2.clikpic.com/hallphoto/images/look_thumb.jpg',130, 173,0, 0,'Getting a closer look.','','Jonathan Hall','Newport, RI','','');
photos[8] = new photo(3168939,'186595','','gallery','http://www2.clikpic.com/hallphoto/images/fisherman1.jpg',500,375,'What\'s for dinner?','http://www2.clikpic.com/hallphoto/images/fisherman1_thumb.jpg',130, 98,0, 0,'A fisherman enjoys a beautiful night at the ocean drive.','','Jonathan Hall','Newport, RI','','');
photos[9] = new photo(3196836,'186595','','gallery','http://www2.clikpic.com/hallphoto/images/crabby.jpg',500,375,'Happy as a crab?','http://www2.clikpic.com/hallphoto/images/crabby_thumb.jpg',130, 98,0, 0,'Toy crab searching for a good home.','','Jonathan Hall','Newport, RI','','');
photos[10] = new photo(3196875,'186595','','gallery','http://www2.clikpic.com/hallphoto/images/sand waves.jpg',500,666,'Sand waves.','http://www2.clikpic.com/hallphoto/images/sand waves_thumb.jpg',130, 173,0, 0,'Wind whipped sand takes on the appearance of ocean waves.','','Jonathan Hall','Eastons Beach Newport, RI','','');
photos[11] = new photo(3197455,'186595','','gallery','http://www2.clikpic.com/hallphoto/images/acorn-stantinople.jpg',500,666,'A-corn-stantinople','http://www2.clikpic.com/hallphoto/images/acorn-stantinople_thumb.jpg',130, 173,0, 0,'Acorn down!','','Jonathan Hall','Newport, RI','','');
photos[12] = new photo(3197459,'186595','','gallery','http://www2.clikpic.com/hallphoto/images/leaf-ing.jpg',500,375,'Leafing for a few months.','http://www2.clikpic.com/hallphoto/images/leaf-ing_thumb.jpg',130, 98,0, 0,'A lonley leaf prepares for life on the ground.','','Jonathan Hall','Newport, RI','','');
photos[13] = new photo(3197466,'186595','','gallery','http://www2.clikpic.com/hallphoto/images/thor\'s hammers.jpg',500,375,'Thor\'s hammers.','http://www2.clikpic.com/hallphoto/images/thor\'s hammers_thumb.jpg',130, 98,0, 0,'A hammer for every occasion.','','Jonathan Hall','Newport, RI','','');
photos[14] = new photo(3268767,'186595','','gallery','http://www2.clikpic.com/hallphoto/images/color w6593.jpg',500,375,'Whoops!','http://www2.clikpic.com/hallphoto/images/color w6593_thumb.jpg',130, 98,0, 0,'That boat is really flying!','','Jonathan Hall','Boston, Mass','','');
photos[15] = new photo(3269841,'186595','','gallery','http://www2.clikpic.com/hallphoto/images/f frenzy5823.jpg',500,666,'Duck!  No, seagull.','http://www2.clikpic.com/hallphoto/images/f frenzy5823_thumb.jpg',130, 173,0, 0,'Them\'s is good eatin!','','Jonathan Hall',' Newport, RI','','');
photos[16] = new photo(3269851,'186595','','gallery','http://www2.clikpic.com/hallphoto/images/stumpy 7092.jpg',500,375,'Nice Stump.','http://www2.clikpic.com/hallphoto/images/stumpy 7092_thumb.jpg',130, 98,0, 0,'That stump is washed up!','','Jonathan Hall','Newport, RI','','');
photos[17] = new photo(3310233,'186595','','gallery','http://www2.clikpic.com/hallphoto/images/dancin 0064 wr.jpg',500,375,'Dancin fool.','http://www2.clikpic.com/hallphoto/images/dancin 0064 wr_thumb.jpg',130, 98,0, 0,'The crab hully gully.','','Jonathan Hall','Newport, RI','','');
photos[18] = new photo(3310242,'186595','','gallery','http://www2.clikpic.com/hallphoto/images/escape 0164 wr.jpg',500,375,'Can\'t escape.','http://www2.clikpic.com/hallphoto/images/escape 0164 wr_thumb.jpg',130, 98,0, 0,'No escape from the elements.','','Jonathan Hall','Newport, RI','','');
photos[19] = new photo(3310246,'186595','','gallery','http://www2.clikpic.com/hallphoto/images/steps 0147 wr.jpg',500,666,'Upward mobility.','http://www2.clikpic.com/hallphoto/images/steps 0147 wr_thumb.jpg',130, 173,0, 0,'St. Michael\'s school brings kids to new heights, literally.','','Jonathan Hall','Newport, RI','','');
photos[20] = new photo(3405067,'186595','','gallery','http://www2.clikpic.com/hallphoto/images/img1935 j maguire fback wr.jpg',500,281,'Wanna drive?','http://www2.clikpic.com/hallphoto/images/img1935 j maguire fback wr_thumb.jpg',130, 73,0, 0,'Driving a Mustang Fastback,  who\'d say no?','','Jonathan Hall','Newport, RI','','');
photos[21] = new photo(3406110,'186595','','gallery','http://www2.clikpic.com/hallphoto/images/IMG_1099 auto color wr.jpg',500,375,'Hey!  Downhere!','http://www2.clikpic.com/hallphoto/images/IMG_1099 auto color wr_thumb.jpg',130, 98,0, 0,'\"Just give me another shot coach.  I know I can catch some good eatin.\"','','Jonathan Hall','Newport, RI','','');
photos[22] = new photo(3406111,'186595','','gallery','http://www2.clikpic.com/hallphoto/images/IMG_1659 hue sat wr.jpg',500,375,'Beachin rocks man.','http://www2.clikpic.com/hallphoto/images/IMG_1659 hue sat wr_thumb.jpg',130, 98,0, 0,'Beautiful Little Compton.','','Jonathan Hall','Little Compton, RI','','');
photos[23] = new photo(3406617,'186595','','gallery','http://www2.clikpic.com/hallphoto/images/IMG_0233 salve wr.jpg',500,375,'A handy wall calendar.','http://www2.clikpic.com/hallphoto/images/IMG_0233 salve wr_thumb.jpg',130, 98,0, 0,'Morning light brings this calendar to life.','','Jonathan Hall','Newport, RI','','');
photos[24] = new photo(3110944,'186596','','gallery','http://www2.clikpic.com/hallphoto/images/baileys.jpg',386,511,'Reflecting at Bailey\'s.','http://www2.clikpic.com/hallphoto/images/baileys_thumb.jpg',130, 172,0, 0,'Sunset at Baileys Beach.','','Jonathan Hall','Newport, RI','','');
photos[25] = new photo(3110974,'186596','','gallery','http://www2.clikpic.com/hallphoto/images/sailing.jpg',500,378,'Fall cruise.','http://www2.clikpic.com/hallphoto/images/sailing_thumb.jpg',130, 98,0, 0,'A tour of Narragansett Bay, the old fashioned way.','','Jonathan Hall','Newport, RI','','');
photos[26] = new photo(3113928,'186596','','gallery','http://www2.clikpic.com/hallphoto/images/pellbridge.jpg',500,378,'Newport Bridge.','http://www2.clikpic.com/hallphoto/images/pellbridge_thumb.jpg',130, 98,0, 0,'This photo was taken on the north side of the bridge.','','Jonathan Hall','Newport, RI','','');
photos[27] = new photo(3113940,'186596','','gallery','http://www2.clikpic.com/hallphoto/images/goatlite.jpg',500,375,'Goat Island Light.','http://www2.clikpic.com/hallphoto/images/goatlite_thumb.jpg',130, 98,0, 0,'Goat Island Light and bridge taken from the Point.','','Jonathan Hall','Newport, RI','','');
photos[28] = new photo(3151004,'186596','','gallery','http://www2.clikpic.com/hallphoto/images/dutchlight1.jpg',256,192,'Calm seas.','http://www2.clikpic.com/hallphoto/images/dutchlight1_thumb.jpg',130, 98,0, 0,'The Dutch Island lighthouse.','','Jonathan Hall','Jamestown, RI','','');
photos[29] = new photo(3151008,'186596','','gallery','http://www2.clikpic.com/hallphoto/images/st joes1.jpg',500,666,'Sunset on Broadway.','http://www2.clikpic.com/hallphoto/images/st joes1_thumb.jpg',130, 173,0, 0,'Late afternoon and Broadway sees the sun and moon.','','Jonathan Hall','Newport, RI','','');
photos[30] = new photo(3151014,'186596','','gallery','http://www2.clikpic.com/hallphoto/images/boat ropes.jpg',256,192,'Boating...so simple.','http://www2.clikpic.com/hallphoto/images/boat ropes_thumb.jpg',130, 98,0, 0,'...pull on which line?','','Jonathan Hall','Newport, RI','','');
photos[31] = new photo(3156288,'186596','','gallery','http://www2.clikpic.com/hallphoto/images/eastons1.jpg',500,375,'Easton\'s Beach.','http://www2.clikpic.com/hallphoto/images/eastons1_thumb.jpg',130, 98,0, 0,'A view of the autumn sky from the bathhouses at Easton\'s Beach.','','Jonathan Hall','Newport, RI','','');
photos[32] = new photo(3168934,'186596','','gallery','http://www2.clikpic.com/hallphoto/images/castlehill 1.jpg',500,375,'Nice Light.','http://www2.clikpic.com/hallphoto/images/castlehill 1_thumb.jpg',130, 98,0, 0,'The Castle Hill Light at sunset.','','Jonathan Hall','Newport, RI','','');
photos[33] = new photo(3168935,'186596','','gallery','http://www2.clikpic.com/hallphoto/images/q mary11.jpg',500,375,'Leaving Port.','http://www2.clikpic.com/hallphoto/images/q mary11_thumb.jpg',130, 98,0, 0,'The Queen Mary, I believe, leaving Newport.','','Jonathan Hall','Newport, RI','','');
photos[34] = new photo(3196830,'186596','','gallery','http://www2.clikpic.com/hallphoto/images/beavertail 1.jpg',500,375,'Beavertail Light.','http://www2.clikpic.com/hallphoto/images/beavertail 1_thumb.jpg',130, 98,0, 0,'Another gaurdian of the shipping lanes.','','Jonathan Hall','Jamestown, RI','','');
photos[35] = new photo(3269833,'186596','','gallery','http://www2.clikpic.com/hallphoto/images/dock life.jpg',500,375,'Dock life.','http://www2.clikpic.com/hallphoto/images/dock life_thumb.jpg',130, 98,0, 0,'Lobster boats taking a well deserved rest.','','Jonathan Hall','Newport, RI','','');
photos[36] = new photo(3269836,'186596','','gallery','http://www2.clikpic.com/hallphoto/images/npt bridge5931w.jpg',500,375,'All lit up.','http://www2.clikpic.com/hallphoto/images/npt bridge5931w_thumb.jpg',130, 98,0, 0,'The sun highlights the bridge beautifully.','','Jonathan Hall','Newport, RI','','');
photos[37] = new photo(3310239,'186596','','gallery','http://www2.clikpic.com/hallphoto/images/darkened 0530 wr.jpg',500,281,'Winter barges in.','http://www2.clikpic.com/hallphoto/images/darkened 0530 wr_thumb.jpg',130, 73,0, 0,'A quiet day on the bay.','','Jonathan Hall','Newport, RI','','');
photos[38] = new photo(3310244,'186596','','gallery','http://www2.clikpic.com/hallphoto/images/IMG_0452 wr.jpg',500,375,'A night at the beach.','http://www2.clikpic.com/hallphoto/images/IMG_0452 wr_thumb.jpg',130, 98,0, 0,'Bailey\'s Beach lit up for Santa.','','Jonathan Hall','Newport, RI','','');
photos[39] = new photo(3310251,'186596','','gallery','http://www2.clikpic.com/hallphoto/images/logans run 0311 wr.jpg',500,375,'Logan\'s run.','http://www2.clikpic.com/hallphoto/images/logans run 0311 wr_thumb.jpg',130, 98,0, 0,'A crisp day by the sea.','','Jonathan Hall','Newport, RI','','');
photos[40] = new photo(3406090,'186596','','gallery','http://www2.clikpic.com/hallphoto/images/IMG 1401 contrast wr.jpg',500,375,'Kangaroo clams.','http://www2.clikpic.com/hallphoto/images/IMG 1401 contrast wr_thumb.jpg',130, 98,0, 0,'The seagull family must have just cleared the dinner table.','','Jonathan Hall','Newport, RI','','');
photos[41] = new photo(3080212,'195449','','section239146','http://www2.clikpic.com/hallphoto/images/chevelleS.jpg',500,375,'Hot rod.','http://www2.clikpic.com/hallphoto/images/chevelleS_thumb.jpg',130, 98,0, 0,'Chevy Chevelle SS','','Jonathan Hall','Newport, RI','','');
photos[42] = new photo(3113579,'195449','','section239146','http://www2.clikpic.com/hallphoto/images/stgeorges.jpg',288,382,'Person\'s eye view.','http://www2.clikpic.com/hallphoto/images/stgeorges_thumb.jpg',130, 172,0, 0,'St. Georges on a crisp, late fall day.','','Jonathan Hall','Middletown, RI','','');
photos[43] = new photo(3113933,'195449','','section239146','http://www2.clikpic.com/hallphoto/images/roselite.jpg',500,332,'Rose Island Lighthouse.','http://www2.clikpic.com/hallphoto/images/roselite_thumb.jpg',130, 86,0, 0,'A world away from the world.','','Jonathan Hall','Rose Island, RI','','');
photos[44] = new photo(3197456,'195449','','section239146','http://www2.clikpic.com/hallphoto/images/benched.jpg',382,288,'Benched again.','http://www2.clikpic.com/hallphoto/images/benched_thumb.jpg',130, 98,0, 0,'A view of Easton\'s Beach from the Esplanade in Middletown.','','Jonathan Hall','Middletown, RI','','');
photos[45] = new photo(3197498,'195449','','section239146','http://www2.clikpic.com/hallphoto/images/jamestown bench.jpg',500,666,'Cool bench man.','http://www2.clikpic.com/hallphoto/images/jamestown bench_thumb.jpg',130, 173,0, 0,'A nice seat at the beach.','','Jonathan Hall','Jamestown, RI','','');
photos[46] = new photo(3319491,'195449','','section239146','http://www2.clikpic.com/hallphoto/images/bw_2941 wr.jpg',500,375,'Great MPG.','http://www2.clikpic.com/hallphoto/images/bw_2941 wr_thumb.jpg',130, 98,0, 0,'A motorbike sans its rider.','','Jonathan Hall','Newport, RI','','');
photos[47] = new photo(3319495,'195449','','section239146','http://www2.clikpic.com/hallphoto/images/bw_8984 wr.jpg',256,192,'Row, row...','http://www2.clikpic.com/hallphoto/images/bw_8984 wr_thumb.jpg',130, 98,0, 0,'You know the song.  Sing it.','','Jonathan Hall','Newport, RI','','');
photos[48] = new photo(3319500,'195449','','section239146','http://www2.clikpic.com/hallphoto/images/bw_prov 3-29-08 042 wr.jpg',500,666,'Circle in the sky.','http://www2.clikpic.com/hallphoto/images/bw_prov 3-29-08 042 wr_thumb.jpg',130, 173,0, 0,'Amongst the straight lines lurks a circle.','','Jonathan Hall','Providence, RI','','');
photos[49] = new photo(3319502,'195449','','section239146','http://www2.clikpic.com/hallphoto/images/bw_8616 wr.jpg',192,256,'Not a bag of bones.','http://www2.clikpic.com/hallphoto/images/bw_8616 wr_thumb.jpg',130, 173,0, 0,'The sea gives up one of it\'s own.','','Jonathan Hall','Newport, RI','','');
photos[50] = new photo(3319511,'195449','','section239146','http://www2.clikpic.com/hallphoto/images/bw prov 3-29-08 288 wr.jpg',500,375,'New paint.','http://www2.clikpic.com/hallphoto/images/bw prov 3-29-08 288 wr_thumb.jpg',130, 98,0, 0,'I\'ll get to that boat someday soon.','','Jonathan Hall','Portsmouth, RI','','');
photos[51] = new photo(3319526,'195449','','section239146','http://www2.clikpic.com/hallphoto/images/bw_0695 wr.jpg',500,375,'Wave bye bye.','http://www2.clikpic.com/hallphoto/images/bw_0695 wr_thumb.jpg',130, 98,0, 0,'Someday I\'ll be on the inside looking out.','','Jonathan Hall','Newport, RI','','');
photos[52] = new photo(3405181,'195449','','section239146','http://www2.clikpic.com/hallphoto/images/IMG_2335 b&w wr.jpg',500,666,'Welcome!','http://www2.clikpic.com/hallphoto/images/IMG_2335 b&w wr_thumb.jpg',130, 173,0, 0,'What says \"c\'mon in\"  better than barbedwire, graffitti and impaled trash?','','Jonathan Hall','Providence, RI','','');
photos[53] = new photo(3406611,'195449','','section239146','http://www2.clikpic.com/hallphoto/images/drift surfer wr.jpg',500,267,'Drift surfer.','http://www2.clikpic.com/hallphoto/images/drift surfer wr_thumb.jpg',130, 69,0, 0,'The shadow drops into a drift barrel.','','Jonathan Hall','Newport, RI','','');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
galleries = new Array();
galleries[0] = new gallery(186595,'3406617,3406111,3406110,3405067,3310246,3310242,3310233,3269851,3269841,3268767','Gallery 1','gallery');
galleries[1] = new gallery(186596,'3406090,3310251,3310244,3310239,3269836,3269833,3196830,3168935,3168934,3156288','Gallery 2','gallery');
galleries[2] = new gallery(195449,'3406611,3405181,3319526,3319511,3319502,3319500,3319495,3319491,3197498,3197456','Black and White Gallery','section239146');


