/***************************************************************************
* 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('2004435');
	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('2004435');
	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 = 'John Bradley 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(1476688,'','','','http://www3.clikpic.com/JohnBradleyPhotography/images/IMG_28121.jpg',348,500,'Thandie','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-116.jpg',130, 130,0, 0,'','26/08/07','John Bradley','','','');
photos[1] = new photo(1476308,'','','','http://www3.clikpic.com/JohnBradleyPhotography/images/weddings 06.JPG',305,500,'Helen and Darren','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-12.jpg',130, 130,0, 1,'','07/07/07','John Bradley','Darley Dale','','');
photos[2] = new photo(1476312,'','','','http://www3.clikpic.com/JohnBradleyPhotography/images/weddings 04.JPG',299,500,'Helen and Darren','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-41.jpg',130, 130,0, 0,'','07/07/07','John Bradley','Darley Dale','','');
photos[3] = new photo(1476314,'','','','http://www3.clikpic.com/JohnBradleyPhotography/images/weddings 05.JPG',360,500,'Helen and Darren','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-5.jpg',130, 130,0, 0,'','07/07/07','John Bradley','Darley Dale','','');
photos[4] = new photo(1476315,'','','','http://www3.clikpic.com/JohnBradleyPhotography/images/weddings 10.JPG',500,346,'Helen and Darren','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-9.jpg',130, 130,0, 0,'','07/07/07','John Bradley','Darley Dale','','');
photos[5] = new photo(1476316,'','','','http://www3.clikpic.com/JohnBradleyPhotography/images/weddings 03.JPG',321,500,'Helen and Darren','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-36.jpg',130, 130,0, 0,'','07/07/07','John Bradley','Darley Dale','','');
photos[6] = new photo(1476317,'','','','http://www3.clikpic.com/JohnBradleyPhotography/images/weddings 023.JPG',334,500,'Helen and Darren','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-21.jpg',130, 130,0, 0,'','07/07/07','John Bradley','Darley Dale','','');
photos[7] = new photo(1476318,'','','','http://www3.clikpic.com/JohnBradleyPhotography/images/weddings 09.JPG',500,353,'Helen and Darren','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-61.jpg',130, 130,0, 0,'','07/07/07','John Bradley','Darley Dale','','');
photos[8] = new photo(1476794,'','','','http://www3.clikpic.com/JohnBradleyPhotography/images/chimp2.jpg',335,500,'Abigail and John','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-103.jpg',130, 130,0, 0,'','','John Bradley','Chesterfield','','');
photos[9] = new photo(1476813,'','','','http://www3.clikpic.com/JohnBradleyPhotography/images/16.jpg',328,500,'Andrew and Gemma','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-114.jpg',130, 130,0, 0,'','','John Bradley','Chesterfield','','');
photos[10] = new photo(1476814,'','','','http://www3.clikpic.com/JohnBradleyPhotography/images/15.jpg',500,333,'Andrew and Gemma','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-123.jpg',130, 130,0, 0,'','','John Bradley','Chesterfield','','');
photos[11] = new photo(1476819,'','','','http://www3.clikpic.com/JohnBradleyPhotography/images/10.jpg',500,333,'Andrew and Gemma','http://www3.clikpic.com/JohnBradleyPhotography/images/222.jpg',130, 130,0, 0,'','','John Bradley','Chesterfield','','');
photos[12] = new photo(1476847,'','','','http://www3.clikpic.com/JohnBradleyPhotography/images/IMG_2341ww.jpg',500,393,'Abigail and John','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-2223.jpg',130, 130,0, 0,'','','John Bradley','Chesterfield','','');
photos[13] = new photo(1486230,'','','','http://www3.clikpic.com/JohnBradleyPhotography/images/arbor low.jpg',500,252,'','http://www3.clikpic.com/JohnBradleyPhotography/images/low thumb.jpg',130, 130,0, 0,'','','','','','');
photos[14] = new photo(1551571,'101752','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/Garden of Light  251.jpg',366,500,'Garden of Light event','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-48.jpg',130, 130,0, 0,'Acrobats, Chesterfield Market Festival','28/10/07','john Bradley','Chesterfield','','');
photos[15] = new photo(1475425,'101752','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/events 01.JPEG',333,500,'Brass band contest','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-1.jpg',130, 130,0, 0,'Briefed to provide a range of images suitable for publication of bands and individual musicians during an annual brass band contest held in Dronfield.','22/09/07','John Bradley','Dronfield','','');
photos[16] = new photo(1475427,'101752','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/events 02.JPEG',500,333,'Brass band competition','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-2.jpg',130, 130,0, 0,'Briefed to provide a range of images suitable for publication of bands and individual musicians during an annual brass band contest held in Dronfield.','22/09/07','John Bradley','Dronfield','','');
photos[17] = new photo(1475429,'101752','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/events 03.JPEG',500,368,'Brass band competition','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-3.jpg',130, 130,0, 0,'Briefed to provide a range of images suitable for publication of bands and individual musicians during an annual brass band contest held in Dronfield.','22/09/07','John Bradley','Dronfield','','');
photos[18] = new photo(1475431,'101752','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/events 06.JPEG',333,500,'Brass band competition','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-6.jpg',130, 130,0, 0,'Briefed to provide a range of images suitable for publication of bands and individual musicians during an annual brass band contest held in Dronfield.','22/09/07','John Bradley','Dronfield','','');
photos[19] = new photo(1475434,'101752','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/events 04.JPEG',333,500,'Brass band competition','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-4.jpg',130, 130,0, 0,'Briefed to provide a range of images suitable for publication of bands and individual musicians during an annual brass band contest held in Dronfield.','22/09/07','John Bradley','Dronfield','','');
photos[20] = new photo(1475465,'101752','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/events 14.JPG',333,500,'Roman Army','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-13.jpg',130, 130,0, 0,'Historical re-enactors at living history event in Sheffield\'s Norfolk Heritage Park. Brief - to provide a range of candid images of groups and individuals for use in future publicity.','26/08/07','John Bradley','Sheffield','','');
photos[21] = new photo(1475466,'101752','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/events 15.JPG',333,500,'Greek Hoplites','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-14.jpg',130, 130,0, 0,'Historical re-enactors at living history event in Sheffield\'s Norfolk Heritage Park. Brief - to provide a range of candid images of groups and individuals for use in future publicity.','26/08/07','John Bradley','Sheffield','','');
photos[22] = new photo(1475469,'101752','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/events 23.JPG',500,333,'American Civil War','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-17.jpg',130, 130,0, 0,'Historical re-enactors at living history event in Sheffield\'s Norfolk Heritage Park. Brief - to provide a range of candid images of groups and individuals for use in future publicity.','26/08/07','John Bradley','Sheffield','','');
photos[23] = new photo(1475471,'101752','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/events 22.JPG',500,369,'American Civil War','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-15.jpg',130, 130,0, 0,'Historical re-enactors at living history event in Sheffield\'s Norfolk Heritage park. Breifed to provide a range of candid images of groups and individuals.','26/08/07','John Bradley','Sheffield','','');
photos[24] = new photo(1487854,'101752','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/events 191.JPG',500,348,'Drill','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-361.jpg',130, 130,0, 0,'Historical re-enactors at living history event in Sheffield\'s Norfolk Heritage Park. Brief - to provide a range of candid images of groups and individuals for use in future publicity.','26/08/07','John Bradley','Sheffield','','');
photos[25] = new photo(1475444,'101752','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/events 09.JPG',333,500,'Medevial Market fun','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-16.jpg',130, 130,0, 0,'Brief - to cover Medieval Market day in Chesterfield, getting a range of candid shots of people enjoying the event and individual characters \'at large\' for use in image library for future publicity.','24/07/07','John Bradley','Chesterfield','','');
photos[26] = new photo(1475447,'101752','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/events 08.JPG',333,500,'Medieval market fun','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-8.jpg',130, 130,0, 0,'Brief - to cover Medieval Market day in Chesterfield, getting a range of candid shots of people enjoying the event and individual characters \'at large\' for use in image library for future publicity.','24/07/07','John Bradley','Chesterfield','','');
photos[27] = new photo(1475451,'101752','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/events 10.JPG',347,500,'Medieval Market fun','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-10.jpg',130, 130,0, 0,'Brief - to cover Medieval Market day in Chesterfield, getting a range of candid shots of people enjoying the event and individual characters \'at large\' for use in image library for future publicity.','24/07/07','John Bradley','Chesterfield','','');
photos[28] = new photo(1475453,'101752','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/events 12.JPG',333,500,'Medieval market fun','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-11.jpg',130, 130,0, 1,'Brief - to cover Medieval Market day in Chesterfield, getting a range of candid shots of people enjoying the event and individual characters \'at large\' for use in image library for future publicity.','24/07/07','John Bradley','Chesterfield','','');
photos[29] = new photo(1475457,'101752','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/events 28.JPG',381,500,'Entertainer in the Garden of Light','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-20.jpg',130, 130,0, 1,'Brief - to capture action and events during Chesterfield\'s Market Festival.','29/10/06','John Bradley','Chesterfield','','');
photos[30] = new photo(2007769,'101752','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/Bollywood Brass Band   03.jpg',333,500,'','http://www3.clikpic.com/JohnBradleyPhotography/images/Bollywood Brass Band   03_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[31] = new photo(1551520,'101752','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/Garden of Light  32.jpg',329,500,'Garden of Light event','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-47.jpg',130, 130,0, 0,'Chesterfield Market Festival','','John Bradley','Chesterfield','','');
photos[32] = new photo(1551515,'101752','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/Bollywood Brass Band   25.jpg',333,500,'Bollywood Brass Band','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-39.jpg',130, 130,0, 0,'Chesterfield Market Festival','28/10/07','John Bradley','Chesterfield','','');
photos[33] = new photo(1551596,'101752','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/Garden of Light  06.jpg',333,500,'Storyteller','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-44.jpg',130, 130,0, 0,'Storyteller in the Garden of Light','28/10/07','John Bradley','chesterfield','','');
photos[34] = new photo(2007787,'101737','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/1a.jpg',500,314,'Storms in Whitby','http://www3.clikpic.com/JohnBradleyPhotography/images/1a_thumb.jpg',130, 130,0, 0,'Unusually high tide and gale force winds cause havoc in Whitby','23/03/08','John Bradley','Sandsend','','');
photos[35] = new photo(2004375,'101737','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/group pic 1.jpg',500,198,'The Mercian Regiment','http://www3.clikpic.com/JohnBradleyPhotography/images/group pic 1_thumb.jpg',130, 130,0, 0,'The Mercian Regiment receives the Freedom of the Borough of Chesterfield','11/03/08','John Bradley','Chesterfield','','');
photos[36] = new photo(2004380,'101737','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/a.jpg',500,409,'The Mercian Regiment','http://www3.clikpic.com/JohnBradleyPhotography/images/a_thumb.jpg',130, 130,0, 0,'The Mercian Regiment receives the Freedom of the Borough of Chesterfield and parades through the Town Centre','11/03/08','John Bradley','Chesterfield','','');
photos[37] = new photo(2004390,'101737','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/b.jpg',500,414,'The Mercian Regiment','http://www3.clikpic.com/JohnBradleyPhotography/images/b_thumb.jpg',130, 130,0, 0,'The Mercian Regiment receives the Freedom of the Borough of Chesterfield','11/03/08','John Bradley','Chesterfield','','');
photos[38] = new photo(2004417,'101737','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/d.jpg',352,500,'The Mercian Regiment','http://www3.clikpic.com/JohnBradleyPhotography/images/d_thumb.jpg',118, 130,0, 0,'The Mercian Regiment receives the Freedom of the Borough of Chesterfield','11/03/08','John Bradley','Chesterfield','','');
photos[39] = new photo(1475406,'101737','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/editorial042.JPG',500,344,'Educational event','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-31.jpg',130, 130,0, 0,'Briefed to provide a range of images suitable for publication (and also to be sent with press releases) of an educational event held for staff.','02/10/07','John Bradley','Killamarsh','','');
photos[40] = new photo(1475416,'101737','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/editorial07.JPG',333,500,'Educational event','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-34.jpg',130, 130,0, 0,'Briefed to provide a range of images suitable for publication (and also to be sent with press releases) of an educational event held for staff.','02/10/07','John Bradley','Killamarsh','','');
photos[41] = new photo(1475418,'101737','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/editorial082.jpg',500,367,'Educational event','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-35.jpg',130, 130,0, 0,'Briefed to provide a range of images suitable for publication (and also to be sent with press releases) of an educational event held for staff.','02/10/07','John Bradley','killamarsh','','');
photos[42] = new photo(1475421,'101737','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/editorial06.JPG',359,500,'Five a side championship','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-33.jpg',130, 130,0, 0,'Action during annual five a side football tournament, briefed to supply action images suitable for publication and press releases.','28/07/07','John Bradley','Dronfield','','');
photos[43] = new photo(1475420,'101737','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/editorial05.JPG',500,357,'History comes alive','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-32.jpg',130, 130,0, 0,'Briefed to supply a range of images of events held during Chesterfield\'s \'Medieval Market\'  - a weaving demonstration for children.','24/07/07','John Bradley','Chesterfield','','');
photos[44] = new photo(1855271,'101737','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/IMG_1311.jpg',395,500,'Stunt rider','http://www3.clikpic.com/JohnBradleyPhotography/images/IMG_1311_thumb.jpg',130, 130,0, 0,'Opening of new skate and bike equipment, Brierley Park.','','John Bradley','Chesterfield','','');
photos[45] = new photo(1475397,'101737','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/editorial02.JPG',500,333,'Fire in Chesterfield','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-29.jpg',130, 130,0, 1,'Submitted photo of local news event -  a fire which destroyed Somerfields store in Chesterfield.','27/06/07','John Bradley','Chesterfield','','');
photos[46] = new photo(1475393,'101737','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/editorial01.JPG',303,500,'press call 1','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-28.jpg',130, 130,0, 0,'Briefed to provide \'cover type\' image for press release to local publications.','10/07/07','John Bradley','Killamarsh','','');
photos[47] = new photo(1475400,'101737','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/editorial03.JPG',333,500,'Standing guard','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-30.jpg',130, 130,0, 0,'Submitted news photo - a policeman stands on the sealed-off Beetwell Street in Chesterfield after a fire in Somerfields store.','27/06/07','John Bradley','Chesterfield','','');
photos[48] = new photo(3435588,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/hope valley snow 1.jpg',500,266,'Hope Valley in winter','http://www3.clikpic.com/JohnBradleyPhotography/images/hope valley snow 1_thumb.jpg',130, 130,0, 0,'','11/02/09','John Bradley','Surprise View, Peak District','','');
photos[49] = new photo(3435591,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/hope valley snow 2.jpg',500,285,'Hope Valley in winter','http://www3.clikpic.com/JohnBradleyPhotography/images/hope valley snow 2_thumb.jpg',130, 130,0, 0,'','11/02/09','John Bradley','Surprise View, Peak District','','');
photos[50] = new photo(3435594,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/surprise snow 1.jpg',500,304,'Peak District winter','http://www3.clikpic.com/JohnBradleyPhotography/images/surprise snow 1_thumb.jpg',130, 130,0, 0,'','11/02/09','John Bradley','Abover Hathersage, Peak District National Park','','');
photos[51] = new photo(1476615,'101751','','gallery','http://admin.clikpic.com/JohnBradleyPhotography/images/higger tor 3 .jpg',333,500,'Winter on Higger Tor','http://admin.clikpic.com/JohnBradleyPhotography/images/higger tor 3 _thumb.jpg',130, 130,0, 0,'','10/01/09','John Bradley','Higger Tor, Peak District National Park','','');
photos[52] = new photo(3365472,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/higger tor .jpg',333,500,'Higger Tor','http://www3.clikpic.com/JohnBradleyPhotography/images/higger tor _thumb.jpg',130, 130,0, 0,'Stream at Higger Tor','10/01/09','John Bradley','','','');
photos[53] = new photo(3365474,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/higger tor 2 .jpg',500,300,'Barbrook','http://www3.clikpic.com/JohnBradleyPhotography/images/higger tor 2 _thumb.jpg',130, 130,0, 0,'Barbrook Moor','10/01/09','John Bradley','','','');
photos[54] = new photo(3365362,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/linacre 2.jpg',500,255,'Linacre','http://www3.clikpic.com/JohnBradleyPhotography/images/linacre 2_thumb.jpg',123, 130,0, 0,'Misty sunset at Linacre.','12/11/08','John Bradley','Linacre','','');
photos[55] = new photo(3365372,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/linacre 1.jpg',349,500,'Linacre','http://www3.clikpic.com/JohnBradleyPhotography/images/linacre 1_thumb.jpg',130, 130,0, 0,'Fog at Linacre','12/11/08','John Bradley','','','');
photos[56] = new photo(3365407,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/surpeise .jpg',500,301,'Hope Valley','http://www3.clikpic.com/JohnBradleyPhotography/images/surpeise _thumb.jpg',130, 130,0, 0,'Looking towards Castleton from Surprise View','24/07/08','John Bradley','','','');
photos[57] = new photo(1476623,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/mam tor .jpg',500,290,'Mam Tor','http://www3.clikpic.com/JohnBradleyPhotography/images/mam tor _thumb.jpg',130, 130,0, 0,'','20/06/08','John Bradley','Mam Tor, Peak District','','');
photos[58] = new photo(2007792,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/IMG_2247.jpg',500,316,'Whitby','http://www3.clikpic.com/JohnBradleyPhotography/images/IMG_2247_thumb.jpg',130, 130,0, 0,'','24/03/08','John Bradley','Sandsend','','');
photos[59] = new photo(2004435,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/IMG_1979.jpg',500,314,'Longnor','http://www3.clikpic.com/JohnBradleyPhotography/images/IMG_1979_thumb.jpg',130, 130,1, 1,'Derbyshire - Staffordshire border','21/03/08','John Bradley','Peak District','','');
photos[60] = new photo(3365422,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/danby .jpg',500,260,'Snowstorm near Danby','http://www3.clikpic.com/JohnBradleyPhotography/images/danby _thumb.jpg',130, 130,0, 0,'Snowstorm rolls across the moors near Danby, North Yorkshire','17/03/08','John Bradley','','','');
photos[61] = new photo(3365431,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/sand .jpg',333,500,'Sandsend','http://www3.clikpic.com/JohnBradleyPhotography/images/sand _thumb.jpg',130, 130,0, 0,'Beach at Sandsend, North Yorkshire','17/03/08','John Bradley','','','');
photos[62] = new photo(2004420,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/IMG_1433a.jpg',500,294,'Grasscroft Wood','http://www3.clikpic.com/JohnBradleyPhotography/images/IMG_1433a_thumb.jpg',130, 130,0, 0,'Fog in Grasscroft','19/02/08','John Bradley','Chesterfield','','');
photos[63] = new photo(1476570,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/landscape 16.JPG',500,209,'Padley Gorge','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-51.jpg',130, 130,0, 0,'','29/09/07','John Bradley','Padley Gorge, Peak District','','');
photos[64] = new photo(1476401,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/landscape 01.JPG',500,308,'Stanton Moor','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-18.jpg',130, 130,0, 0,'','15/09/07','John Bradley','Stanton Moor','','');
photos[65] = new photo(1476577,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/landscape 19.JPG',500,226,'\'Princess Elizabeth\'','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-111.jpg',130, 130,0, 0,'Preserved Steam loco on a special train, passing near Eckington, Derbyshire.','21/07/07','John Bradley','Eckington','','');
photos[66] = new photo(1476611,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/landscape 14.JPG',500,303,'Runswick Bay','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-101.jpg',130, 130,0, 0,'','08/04/07','John Bradley','Runswick Bay, North Yorkshire','','');
photos[67] = new photo(1476617,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/landscape 15.JPG',500,320,'Port Mulgrave','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-131.jpg',130, 130,0, 0,'','08/04/07','John Bradley','Port Mulgrave, North Yorkshire','','');
photos[68] = new photo(1476405,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/landscape 13.JPG',500,333,'Magpie Mine','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-37.jpg',130, 130,0, 1,'','24/02/07','John Bradley','Magpie Mine, Peak District','','');
photos[69] = new photo(1476408,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/landscape 05.JPG',500,243,'Froggatt Edge','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-73.jpg',130, 130,0, 0,'','14/02/07','John Bradley','Froggatt Edge','','');
photos[70] = new photo(1476411,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/landscape 06.JPG',500,302,'Froggatt Edge','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-151.jpg',130, 130,0, 0,'','14/02/07','John Bradley','Froggatt Edge','','');
photos[71] = new photo(1476565,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/landscape 11.JPG',328,500,'Horses at Froggatt Edge','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-82.jpg',130, 130,0, 0,'','14/02/07','John Bradley','Froggatt Edge','','');
photos[72] = new photo(1476571,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/landscape 17.JPG',336,500,'Froggatt Edge','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-121.jpg',130, 130,0, 0,'','16/12/06','John Bradley','Froggatt Edge','','');
photos[73] = new photo(1486231,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/arbor low1.jpg',500,252,'Arbor Low','http://www3.clikpic.com/JohnBradleyPhotography/images/low thumb1.jpg',130, 130,0, 1,'','04/06/05','John Bradley','Arbor Low prehistoric henge','','');
photos[74] = new photo(1476610,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/landscape 20.JPG',500,333,'Snow at Curbar','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-62.jpg',130, 130,0, 0,'','26/12/04','John Bradley','Curbar Edge','','');
photos[75] = new photo(1476402,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/landscape 03.JPG',500,333,'Grasscroft Wood, nr Chesterfield','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-22.jpg',130, 130,0, 0,'','14/11/04','John Bradley','Chesterfield','','');
photos[76] = new photo(3435604,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/above hathersage 1.jpg',500,232,'Above Hathersage','http://www3.clikpic.com/JohnBradleyPhotography/images/above hathersage 1_thumb.jpg',130, 130,0, 0,'','26/12/08','John Bradley','Above Hathersage, Peak District National Park','','');
photos[77] = new photo(3435598,'101751','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/hope valley snow 3.jpg',333,500,'Hope Valley in winter','http://www3.clikpic.com/JohnBradleyPhotography/images/hope valley snow 3_thumb.jpg',130, 130,0, 0,'','11/02/09','John Bradley','Abover Hathersage, Peak District National Park','','');
photos[78] = new photo(1476693,'101753','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/travel 13.JPG',309,500,'Rasta man poses','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-43.jpg',130, 130,0, 1,'','','John Bradley','Jamaica','','');
photos[79] = new photo(1476698,'101753','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/travel 02.JPG',500,333,'Jamaican fauna','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-23.jpg',130, 130,0, 0,'','','John Bradley','Jamaica','','');
photos[80] = new photo(1476702,'101753','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/travel 06.JPG',500,333,'\'Higgler\'','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-52.jpg',130, 130,0, 0,'\'Higgler\' market woman','','John Bradley','Linstead market, Jamaica','','');
photos[81] = new photo(1476731,'101753','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/travel 05.JPG',500,415,'Down the local','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-63.jpg',130, 130,0, 0,'Down the pub - Jamaican style!','','John Bradley','Linstead, Jamaica','','');
photos[82] = new photo(1476733,'101753','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/travel 12.JPG',333,500,'\'Cutter\' Mr. Wilson','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-74.jpg',130, 130,0, 0,'74 yrs old Mr. Wilson, still hard at work.','','John Bradley','Linstead, Jamaica','','');
photos[83] = new photo(1476736,'101753','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/travel 08.JPG',333,500,'Breadfruit','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-83.jpg',130, 130,0, 0,'Ripe breadfruit','','John Bradley','Linstead, Jamaica','','');
photos[84] = new photo(1476737,'101753','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/travel 10.jpg',337,500,'Humid morning','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-92.jpg',130, 130,0, 0,'Sunrise over St Catherine','','John Bradley','Linstead, Jamaica','','');
photos[85] = new photo(1476738,'101753','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/travel 03.jpg',500,224,'Misty morning in St Catherine','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-38.jpg',130, 130,0, 0,'Misty morning in St Catherine','','John Bradley','Linstead, Jamaica','','');
photos[86] = new photo(1476740,'101753','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/travel 04.jpg',500,333,'Jamaican fauna','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-102.jpg',130, 130,0, 0,'Very large butterfly......!','','John Bradley','Linstead, Jamaica','','');
photos[87] = new photo(1476741,'101753','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/travel 07.jpg',500,393,'Jamaican fauna','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-112.jpg',130, 130,0, 0,'','','John Bradley','Linstead, Jamaica','','');
photos[88] = new photo(1476742,'101753','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/travel 01.JPG',500,375,'Roadside market stall','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-113.jpg',130, 130,0, 0,'Fresh fruit stall','','John Bradley','Manchester, Jamaica','','');
photos[89] = new photo(1476744,'101753','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/IMG_2019.jpg',500,333,'Busy day in Linstead market','http://www3.clikpic.com/JohnBradleyPhotography/images/Untitled-122.jpg',130, 130,0, 0,'','','John Bradley','Linstead market, Jamaica','','');
photos[90] = new photo(3365479,'116179','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/butterly 1.jpg',500,299,'Midland Railway Centre','http://www3.clikpic.com/JohnBradleyPhotography/images/butterly 1_thumb.jpg',130, 130,0, 0,'','04/01/09','John Bradley','','','');
photos[91] = new photo(3365448,'116179','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/Beattie 5.jpg',340,500,'Beattie well tank','http://www3.clikpic.com/JohnBradleyPhotography/images/Beattie 5_thumb.jpg',130, 130,0, 0,'Beattie well tank at Barrow Hill','24/08/08','John Bradley','','','');
photos[92] = new photo(3365454,'116179','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/Blue Peter .jpg',500,333,'Blue Peter','http://www3.clikpic.com/JohnBradleyPhotography/images/Blue Peter _thumb.jpg',130, 130,0, 0,'Blue Peter at Barrow Hill','24/08/08','John Bradley','','','');
photos[93] = new photo(2007150,'116179','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/61264  01.jpg',362,500,'B1 61264','http://www3.clikpic.com/JohnBradleyPhotography/images/61264  01_thumb.jpg',130, 130,0, 0,'B1 on the Pickering Whitby service approaches Whitby','23/03/08','John Bradley','Whitby','','');
photos[94] = new photo(2007737,'116179','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/600074.jpg',500,322,'A4 Sir Nigel Gresley','http://www3.clikpic.com/JohnBradleyPhotography/images/600074_thumb.jpg',130, 130,0, 0,'On the Grosmont - Pickering service, NYMR','23/03/08','John Bradley','Moorgate','','');
photos[95] = new photo(2007758,'116179','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/61264  02.jpg',500,291,'B1 on the NYMR','http://www3.clikpic.com/JohnBradleyPhotography/images/61264  02_thumb.jpg',130, 130,0, 0,'B1 61264 with the Pickering - Whitby service, NYMR','23/03/08','John Bradley','Moorgate','','');
photos[96] = new photo(2007138,'116179','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/6233  01.jpg',500,396,'Duchess of Sutherland','http://www3.clikpic.com/JohnBradleyPhotography/images/6233  01_thumb.jpg',130, 130,0, 0,'6233 with the \'Yorkshireman\'','22/03/08','John Bradley','Tapton Junction','','');
photos[97] = new photo(2007744,'116179','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/MRC 2.jpg',500,362,'Saddle Tank','http://www3.clikpic.com/JohnBradleyPhotography/images/MRC 2_thumb.jpg',130, 130,0, 0,'Castle Donning no1 at the Midland Railway Centre','17/02/08','John Bradley','Butterley','','');
photos[98] = new photo(1475439,'116179','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/J W Bradley   04.JPG',500,347,'Barrow Hill Roundhouse open day','http://www3.clikpic.com/JohnBradleyPhotography/images/J W Bradley   04_thumb.JPG',130, 130,0, 0,'Steam event at Barrow Hill Roundhouse - part of submission to railway publications','11/11/07','John Bradley','Barrow Hill','','');
photos[99] = new photo(1730285,'116179','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/J W Bradley   02.JPG',500,372,'Barrow Hill','http://www3.clikpic.com/JohnBradleyPhotography/images/J W Bradley   02_thumb.JPG',130, 130,0, 1,'Steam Railway Magazine','','John Bradley','','','');
photos[100] = new photo(1730299,'116179','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/JW Bradley 4936 5.jpg',334,500,'Tapton Junction','http://www3.clikpic.com/JohnBradleyPhotography/images/JW Bradley 4936 5_thumb.jpg',130, 130,0, 0,'Steam Railway Magazine','','John Bradley','Tapton Junction','','');
photos[101] = new photo(1730310,'116179','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/78019 02.jpg',500,333,'BR 2-6-0 78019','http://www3.clikpic.com/JohnBradleyPhotography/images/78019 02_thumb.jpg',130, 130,0, 0,'','','John Bradley','Barrow Hill','','');
photos[102] = new photo(1730322,'116179','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/The Yorkshireman 07.jpg',500,271,'45407 and 76079 with the \'Yorkshireman\'','http://www3.clikpic.com/JohnBradleyPhotography/images/The Yorkshireman 07_thumb.jpg',130, 130,0, 0,'Steam Railway Magazine','','John Bradley','Unstone','','');
photos[103] = new photo(1730326,'116179','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/J W Bradley   10.JPG',500,332,'Barrow Hill','http://www3.clikpic.com/JohnBradleyPhotography/images/J W Bradley   10_thumb.JPG',130, 130,0, 0,'Steam Railway Magazine','','John Bradley','Barrow Hill','','');
photos[104] = new photo(1730329,'116179','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/IMG_3440.jpg',333,500,'NYMR','http://www3.clikpic.com/JohnBradleyPhotography/images/IMG_3440_thumb.jpg',130, 130,0, 0,'','','John Bradley','Levisham','','');
photos[105] = new photo(1730339,'116179','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/MRC Santa Special  02.jpg',333,500,'Midland Railway Centre','http://www3.clikpic.com/JohnBradleyPhotography/images/MRC Santa Special  02_thumb.jpg',130, 130,0, 0,'','','John Bradley','','','');
photos[106] = new photo(1730347,'116179','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/2.jpg',500,358,'Princess Elizabeth','http://www3.clikpic.com/JohnBradleyPhotography/images/2_thumb.jpg',130, 130,0, 0,'Steam Railway Magazine','','John Bradley','Barrow Hill','','');
photos[107] = new photo(1730353,'116179','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/IMG_4002b.jpg',500,306,'60009 and 6233 pass through Chesterfield','http://www3.clikpic.com/JohnBradleyPhotography/images/IMG_4002b_thumb.jpg',130, 130,0, 0,'','','John Bradley','Chesterfield','','');
photos[108] = new photo(3365478,'116179','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/royal 1.jpg',360,500,'Peak Rail','http://www3.clikpic.com/JohnBradleyPhotography/images/royal 1_thumb.jpg',130, 130,0, 0,'\'Royal Pioneer\' starts a train from Rowsley','','John Bradley','Peak rail, Rowsley','','');
photos[109] = new photo(3365481,'116179','','gallery','http://www3.clikpic.com/JohnBradleyPhotography/images/61994   1.jpg',500,353,'','http://www3.clikpic.com/JohnBradleyPhotography/images/61994   1_thumb.jpg',130, 130,0, 0,'K1 at Barrow Hill','','John Bradley','','','');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
galleries = new Array();
galleries[0] = new gallery(101752,'1475457,1475453','Events','gallery');
galleries[1] = new gallery(101737,'1475397','Editorial and Public Relations','gallery');
galleries[2] = new gallery(101751,'2004435,1486231,1476405','Landscapes','gallery');
galleries[3] = new gallery(101753,'1476693','Travel','gallery');
galleries[4] = new gallery(116179,'1730285','Railways','gallery');

