/***************************************************************************
* 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('2818069');
	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('2818069');
	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)) {
		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 + '" border="0">';
						field.value = photos[nextImg].id;
			document.getElementById('imageTitle').innerHTML = photos[nextImg].caption;
			document.title = 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(2818069,'175009','','gallery','http://admin.clikpic.com/jakesgm/images/Cardiff_Docks_at_Dawn.jpg',500,333,'Cardiff Docks at Dawn','http://admin.clikpic.com/jakesgm/images/Cardiff_Docks_at_Dawn_thumb.jpg',130, 87,1, 0,'','','','','','');
photos[1] = new photo(2818730,'175009','','gallery','http://admin.clikpic.com/jakesgm/images/Elan_valley_2.jpg',500,333,'Elan Valley','http://admin.clikpic.com/jakesgm/images/Elan_valley_2_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[2] = new photo(2818737,'175009','','gallery','http://admin.clikpic.com/jakesgm/images/Brecon-Canal-Basin.jpg',500,333,'Brecon Canal Basin','http://admin.clikpic.com/jakesgm/images/Brecon-Canal-Basin_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[3] = new photo(2818804,'175009','','gallery','http://admin.clikpic.com/jakesgm/images/Duffryn_Gardens.jpg',500,334,'Duffryn Gardens','http://admin.clikpic.com/jakesgm/images/Duffryn_Gardens_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[4] = new photo(2819270,'175009','','gallery','http://admin.clikpic.com/jakesgm/images/Horse_Boxes.jpg',500,333,'Horse Boxes','http://admin.clikpic.com/jakesgm/images/Horse_Boxes_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[5] = new photo(2819329,'175009','','gallery','http://admin.clikpic.com/jakesgm/images/Llantwit_Major_beach_at_dusk.jpg',500,277,'Dusk at Llantwit Major Beach','http://admin.clikpic.com/jakesgm/images/Llantwit_Major_beach_at_dusk_thumb.jpg',130, 72,0, 0,'','','','','','');
photos[6] = new photo(2819364,'175009','','gallery','http://admin.clikpic.com/jakesgm/images/Morning_Mist.jpg',500,273,'Morning Mist','http://admin.clikpic.com/jakesgm/images/Morning_Mist_thumb.jpg',130, 71,0, 0,'','','','','','');
photos[7] = new photo(2819373,'175009','','gallery','http://admin.clikpic.com/jakesgm/images/Mwnt_Church_2.jpg',500,333,'Mwnt Church','http://admin.clikpic.com/jakesgm/images/Mwnt_Church_2_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[8] = new photo(2819381,'175009','','gallery','http://admin.clikpic.com/jakesgm/images/Potland_Bill.jpg',500,333,'Portland Bill','http://admin.clikpic.com/jakesgm/images/Potland_Bill_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[9] = new photo(2819388,'175009','','gallery','http://admin.clikpic.com/jakesgm/images/Snow_on_Moel_Feudwy.jpg',500,333,'Snow on Moel Feudwy','http://admin.clikpic.com/jakesgm/images/Snow_on_Moel_Feudwy_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[10] = new photo(2819400,'175009','','gallery','http://admin.clikpic.com/jakesgm/images/Snow_on_Pen_Y_Fan.jpg',500,333,'Snow on Pen y Fan','http://admin.clikpic.com/jakesgm/images/Snow_on_Pen_Y_Fan_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[11] = new photo(2819405,'175009','','gallery','http://admin.clikpic.com/jakesgm/images/Vale_dawn.jpg',500,226,'Vale Dawn','http://admin.clikpic.com/jakesgm/images/Vale_dawn_thumb.jpg',130, 59,0, 0,'','','','','','');
photos[12] = new photo(2819411,'175009','','gallery','http://admin.clikpic.com/jakesgm/images/Wiltshire_Downs.jpg',500,333,'Wiltshire Downs','http://admin.clikpic.com/jakesgm/images/Wiltshire_Downs_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[13] = new photo(2819420,'175009','','gallery','http://admin.clikpic.com/jakesgm/images/beach_at_sunset_Llantwit.jpg',500,333,'Llantwit Major Beach  at dawn','http://admin.clikpic.com/jakesgm/images/beach_at_sunset_Llantwit_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[14] = new photo(2819574,'175110','','gallery','http://admin.clikpic.com/jakesgm/images/The-Colosseum.jpg',267,400,'The Colosseum','http://admin.clikpic.com/jakesgm/images/The-Colosseum_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[15] = new photo(2819585,'175110','','gallery','http://admin.clikpic.com/jakesgm/images/Alter boys in St Peter\'s.jpg',500,328,'Alter boys St. Peters','http://admin.clikpic.com/jakesgm/images/Alter boys in St Peter\'s_thumb.jpg',130, 85,0, 0,'','','','','','');
photos[16] = new photo(2819593,'175110','','gallery','http://admin.clikpic.com/jakesgm/images/Amember of The Swiss Guard.jpg',267,400,'The Swiss Guard','http://admin.clikpic.com/jakesgm/images/Amember of The Swiss Guard_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[17] = new photo(2819598,'175110','','gallery','http://admin.clikpic.com/jakesgm/images/basilica vatican city.jpg',267,400,'The Basillica','http://admin.clikpic.com/jakesgm/images/basilica vatican city_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[18] = new photo(2819600,'175110','','gallery','http://admin.clikpic.com/jakesgm/images/Ceiling in the Vatican.jpg',267,400,'The Ceiling in the Vatican','http://admin.clikpic.com/jakesgm/images/Ceiling in the Vatican_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[19] = new photo(2819612,'175110','','gallery','http://admin.clikpic.com/jakesgm/images/The Pantheon.jpg',267,400,'The Pantheon','http://admin.clikpic.com/jakesgm/images/The Pantheon_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[20] = new photo(2819621,'175110','','gallery','http://admin.clikpic.com/jakesgm/images/The Vatican Facade.jpg',500,334,'Vatican Facade','http://admin.clikpic.com/jakesgm/images/The Vatican Facade_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[21] = new photo(2819635,'175110','','gallery','http://admin.clikpic.com/jakesgm/images/Stone pillars in the Temple of Antoninus and faustina.jpg',267,400,'Stone Pillars','http://admin.clikpic.com/jakesgm/images/Stone pillars in the Temple of Antoninus and faustina_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[22] = new photo(2819692,'175110','','gallery','http://admin.clikpic.com/jakesgm/images/The Domus Augustiana in the Palatine.jpg',267,400,'Palatine Gardens','http://admin.clikpic.com/jakesgm/images/The Domus Augustiana in the Palatine_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[23] = new photo(2819765,'175110','','gallery','http://admin.clikpic.com/jakesgm/images/Colosseum Reflection..jpg',500,333,'Colosseum Reflection','http://admin.clikpic.com/jakesgm/images/Colosseum Reflection_thumb..jpg',130, 87,0, 0,'','','','','','');
photos[24] = new photo(2819778,'175110','','gallery','http://admin.clikpic.com/jakesgm/images/The farnese Pavilions in the Palatine .jpg',500,334,'The Farnase Pavilions in the Palatine','http://admin.clikpic.com/jakesgm/images/The farnese Pavilions in the Palatine _thumb.jpg',130, 87,0, 0,'','','','','','');
photos[25] = new photo(2819783,'175110','','gallery','http://admin.clikpic.com/jakesgm/images/ramp stairway Vatican.jpg',500,333,'Vatican Spiral Exit','http://admin.clikpic.com/jakesgm/images/ramp stairway Vatican_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[26] = new photo(2819790,'175370','','gallery','http://admin.clikpic.com/jakesgm/images/Anger at Night.jpg',500,333,'Anger at Night','http://admin.clikpic.com/jakesgm/images/Anger at Night_thumb.jpg',130, 87,0, 0,'Anger at Night','','','','','');
photos[27] = new photo(2819796,'175370','','gallery','http://admin.clikpic.com/jakesgm/images/Water Tap Chartres.jpg',267,400,'Water fountain in Chartres','http://admin.clikpic.com/jakesgm/images/Water Tap Chartres_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[28] = new photo(2819852,'175370','','gallery','http://admin.clikpic.com/jakesgm/images/Caen Cathedral.jpg',267,400,'Caen Cathedral','http://admin.clikpic.com/jakesgm/images/Caen Cathedral_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[29] = new photo(2819867,'175370','','gallery','http://admin.clikpic.com/jakesgm/images/St Christopher.jpg',267,400,'St Christopher Orleans Cathedral','http://admin.clikpic.com/jakesgm/images/St Christopher_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[30] = new photo(2819874,'175370','','gallery','http://admin.clikpic.com/jakesgm/images/Joan of Arc.jpg',267,400,'Joan of Arc Orleans','http://admin.clikpic.com/jakesgm/images/Joan of Arc_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[31] = new photo(2819885,'175370','','gallery','http://admin.clikpic.com/jakesgm/images/Tabac.jpg',500,340,'Tabac Chartres','http://admin.clikpic.com/jakesgm/images/Tabac_thumb.jpg',130, 88,0, 0,'','','','','','');
photos[32] = new photo(2819890,'175370','','gallery','http://admin.clikpic.com/jakesgm/images/Marching band Chinon Festival.jpg',500,333,'Marching Band Chinon Farm Festval','http://admin.clikpic.com/jakesgm/images/Marching band Chinon Festival_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[33] = new photo(2819895,'175370','','gallery','http://admin.clikpic.com/jakesgm/images/The East Window Chartres Cathedral.jpg',297,400,'East Window Chartres Cathedral','http://admin.clikpic.com/jakesgm/images/The East Window Chartres Cathedral_thumb.jpg',130, 175,0, 0,'','','','','','');
photos[34] = new photo(2819901,'175370','','gallery','http://admin.clikpic.com/jakesgm/images/department store Orleans.jpg',500,333,'Department Store Orleans','http://admin.clikpic.com/jakesgm/images/department store Orleans_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[35] = new photo(2819911,'175370','','gallery','http://admin.clikpic.com/jakesgm/images/Early morning mist on the road to Caen.jpg',500,333,'Morning Mist on the road to Caen','http://admin.clikpic.com/jakesgm/images/Early morning mist on the road to Caen_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[36] = new photo(2819920,'175370','','gallery','http://admin.clikpic.com/jakesgm/images/The End to a Perfect Holiday.jpg',500,333,'The End to a Perfect Holiday','http://admin.clikpic.com/jakesgm/images/The End to a Perfect Holiday_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[37] = new photo(2820399,'175366','','gallery','http://admin.clikpic.com/jakesgm/images/Motor cycle.jpg',500,334,'Mini Motor Cycle racer','http://admin.clikpic.com/jakesgm/images/Motor cycle_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[38] = new photo(2820405,'175366','','gallery','http://admin.clikpic.com/jakesgm/images/paraglider italy_1.jpg',500,333,'Paraglider','http://admin.clikpic.com/jakesgm/images/paraglider italy_1_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[39] = new photo(2820410,'175366','','gallery','http://admin.clikpic.com/jakesgm/images/flat out.jpg',267,400,'Flatout in the Velodrome','http://admin.clikpic.com/jakesgm/images/flat out_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[40] = new photo(2820414,'175366','','gallery','http://admin.clikpic.com/jakesgm/images/muscles.jpg',500,334,'Out of the Blocks','http://admin.clikpic.com/jakesgm/images/muscles_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[41] = new photo(2820420,'175366','','gallery','http://admin.clikpic.com/jakesgm/images/finnish.jpg',500,334,'The Finish','http://admin.clikpic.com/jakesgm/images/finnish_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[42] = new photo(2820423,'175366','','gallery','http://admin.clikpic.com/jakesgm/images/scrum_1.jpg',500,356,'The Scrum','http://admin.clikpic.com/jakesgm/images/scrum_1_thumb.jpg',130, 93,0, 0,'','','','','','');
photos[43] = new photo(2823810,'176242','','gallery','http://admin.clikpic.com/jakesgm/images/Coppersmith1.jpg',267,400,'Coppersmith','http://admin.clikpic.com/jakesgm/images/Coppersmith1_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[44] = new photo(2823812,'176242','','gallery','http://admin.clikpic.com/jakesgm/images/Sienese Violinist..jpg',267,400,'Violinist in Sienna','http://admin.clikpic.com/jakesgm/images/Sienese Violinist_thumb..jpg',130, 195,0, 0,'','','','','','');
photos[45] = new photo(2823864,'176242','','gallery','http://admin.clikpic.com/jakesgm/images/menna 3.jpg',420,581,'Menna','http://admin.clikpic.com/jakesgm/images/menna 3_thumb.jpg',130, 180,0, 0,'','','','','','');
photos[46] = new photo(2823965,'176242','','gallery','http://admin.clikpic.com/jakesgm/images/Pavement Artist .jpg',500,338,'Pavement Artist','http://admin.clikpic.com/jakesgm/images/Pavement Artist _thumb.jpg',130, 88,0, 0,'','','','','','');
photos[47] = new photo(2824794,'176242','','gallery','http://admin.clikpic.com/jakesgm/images/New Orleans - Mark Bruad Leader.jpg',500,333,'The Spirit Of New Orleans Jazz Band Mark Braud','http://admin.clikpic.com/jakesgm/images/New Orleans - Mark Bruad Leader_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[48] = new photo(2824802,'176242','','gallery','http://admin.clikpic.com/jakesgm/images/New Orleans Jazz Lucian Barbarin.jpg',266,400,'New Orleans Jazz Lucian Barbarin','http://admin.clikpic.com/jakesgm/images/New Orleans Jazz Lucian Barbarin_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[49] = new photo(2824819,'176242','','gallery','http://admin.clikpic.com/jakesgm/images/Laura studio 20024.jpg',500,333,'Laura','http://admin.clikpic.com/jakesgm/images/Laura studio 20024_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[50] = new photo(2824879,'176242','','gallery','http://admin.clikpic.com/jakesgm/images/Laura studio 20048.jpg',266,400,'laura 2','http://admin.clikpic.com/jakesgm/images/Laura studio 20048_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[51] = new photo(2824891,'176242','','gallery','http://admin.clikpic.com/jakesgm/images/New Orleans jazz Orange kellin @ Walter Payton.jpg',495,400,'New Orleans Jazz Orange Kellin & Walter Payton','http://admin.clikpic.com/jakesgm/images/New Orleans jazz Orange kellin @ Walter Payton_thumb.jpg',130, 105,0, 0,'','','','','','');
photos[52] = new photo(2824998,'176242','','gallery','http://admin.clikpic.com/jakesgm/images/New Orleans Jazz - Steve Pistorious.jpg',266,400,'New Orleans Jazz Steve Pistorious','http://admin.clikpic.com/jakesgm/images/New Orleans Jazz - Steve Pistorious_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[53] = new photo(2825004,'176242','','gallery','http://admin.clikpic.com/jakesgm/images/Spirit of New Orleans Jazz Band Gerald French.jpg',500,333,'New Orleans Jazz Gerald French','http://admin.clikpic.com/jakesgm/images/Spirit of New Orleans Jazz Band Gerald French_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[54] = new photo(2825057,'176251','','gallery','http://admin.clikpic.com/jakesgm/images/IMG_3348.jpg',267,400,'Tower Mural','http://admin.clikpic.com/jakesgm/images/IMG_3348_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[55] = new photo(2825097,'176251','','gallery','http://admin.clikpic.com/jakesgm/images/IMG_3349.jpg',267,400,'The Lamp Room','http://admin.clikpic.com/jakesgm/images/IMG_3349_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[56] = new photo(2825105,'176251','','gallery','http://admin.clikpic.com/jakesgm/images/IMG_3358.jpg',500,334,'Safety Tags','http://admin.clikpic.com/jakesgm/images/IMG_3358_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[57] = new photo(2825135,'176251','','gallery','http://admin.clikpic.com/jakesgm/images/IMG_3134.jpg',267,400,'Locker','http://admin.clikpic.com/jakesgm/images/IMG_3134_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[58] = new photo(2825141,'176251','','gallery','http://admin.clikpic.com/jakesgm/images/IMG_3133.jpg',500,317,'A feeling of despair','http://admin.clikpic.com/jakesgm/images/IMG_3133_thumb.jpg',130, 82,0, 0,'','','','','','');
photos[59] = new photo(2825153,'176251','','gallery','http://admin.clikpic.com/jakesgm/images/IMG_34161.jpg',500,334,'The Chairman of the Board','http://admin.clikpic.com/jakesgm/images/IMG_34161_thumb.jpg',130, 87,0, 0,'','','','','','');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
galleries = new Array();
galleries[0] = new gallery(175009,'2819420,2819411,2819405,2819400,2819388,2819381,2819373,2819364,2819329,2819270','Landscape','gallery');
galleries[1] = new gallery(175370,'2819920,2819911,2819901,2819895,2819890,2819885,2819874,2819867,2819852,2819796','Loire Valley','gallery');
galleries[2] = new gallery(176242,'2825004,2824998,2824891,2824879,2824819,2824802,2824794,2823965,2823864,2823812','Portraits','gallery');
galleries[3] = new gallery(176251,'2825153,2825141,2825135,2825105,2825097,2825057','Project','gallery');
galleries[4] = new gallery(175110,'2819783,2819778,2819765,2819692,2819635,2819621,2819612,2819600,2819598,2819593','Rome','gallery');
galleries[5] = new gallery(175366,'2820423,2820420,2820414,2820410,2820405,2820399','Sport','gallery');
galleries[6] = new gallery(175367,'2819920,2819911,2819901,2819895,2819890,2819885,2819874,2819867,2819852,2819796','Travel','gallery');

