/***************************************************************************
* 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('2609465,2591298,2591254,2591249,2591171,2588311,2588222,2580889,2136387,2010989,2010972,2010965,2010960,2010958,2010954,2010952,2010934,2010932,2007663,2007553,2007545,2001367,2001270,2001269,2001256,2001213,2001182,2001178,2001162,1997588,1997576,1997554,1997552,1997549,1993860,1993842,1993818,1993808,1993787,1993734,1993702,1993664,1993649,1990205,1990195,1990186,1990178,1958143,1956732,1956728,1956725,1956720,1952691,1952682,1950745,1950744,1950738,1950731,1950713,1950707,1950613,1950609,1950603,1950591,1950583,1950576,1950567,1950560,1950556,1950553,1950547,1950382,1950371,1950368,1950363,1950358,1950357,1950350,1950343,1949785,1949633,1949622,1949618,1949611,1949604,1949598,1949585,1949583,1949581,1949575,1947679,1947476,1947467,1947454,1947430,1947424,1947403,1947350,1947344,1947337,1947334,1947082,1946991,1946987,1946985,1946980');
	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('2609465,2591298,2591254,2591249,2591171,2588311,2588222,2580889,2136387,2010989,2010972,2010965,2010960,2010958,2010954,2010952,2010934,2010932,2007663,2007553,2007545,2001367,2001270,2001269,2001256,2001213,2001182,2001178,2001162,1997588,1997576,1997554,1997552,1997549,1993860,1993842,1993818,1993808,1993787,1993734,1993702,1993664,1993649,1990205,1990195,1990186,1990178,1958143,1956732,1956728,1956725,1956720,1952691,1952682,1950745,1950744,1950738,1950731,1950713,1950707,1950613,1950609,1950603,1950591,1950583,1950576,1950567,1950560,1950556,1950553,1950547,1950382,1950371,1950368,1950363,1950358,1950357,1950350,1950343,1949785,1949633,1949622,1949618,1949611,1949604,1949598,1949585,1949583,1949581,1949575,1947679,1947476,1947467,1947454,1947430,1947424,1947403,1947350,1947344,1947337,1947334,1947082,1946991,1946987,1946985,1946980');
	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 Coates 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(1950609,'130245','','gallery','http://www3.clikpic.com/johnboy/images/Sweeper,-Parque-del-Amor,-Lima.gif',500,359,'Sweeper','http://www3.clikpic.com/johnboy/images/Sweeper,-Parque-del-Amor,-Lima_thumb.gif',130, 93,1, 1,'I photographed this street cleaner in the \"Parque del Amore\" (Park of Love) in Lima, Peru. I thought his red suit against the colourful mosiac wall made an interesting picture','13/11/06','John Coates LRPS','Lima, Peru','','');
photos[1] = new photo(2010989,'130245','','gallery','http://www3.clikpic.com/johnboy/images/x_balloon-seller.gif',341,476,'Balloon Seller','http://www3.clikpic.com/johnboy/images/x_balloon-seller_thumb.gif',130, 181,1, 1,'This old boy was selling his balloons in the park, I didn\'t actually see anyone buy from him and he had gone to alot of work inflating them!','13/11/06','John Coates LRPS','Lima, Peru','','');
photos[2] = new photo(1950556,'130245','','gallery','http://www3.clikpic.com/johnboy/images/Child-from-Puno.gif',411,500,'Child from Puno','http://www3.clikpic.com/johnboy/images/Child-from-Puno_thumb.gif',130, 158,1, 1,'This little girl was quite happy eating her bread untill I asked her mother if I could take her photo, she must have dressed herself this morning because her shoe\'s are on the wrong feet!','09/11/06','John Coates LRPS','Puno, Peru','','');
photos[3] = new photo(1950591,'130245','','gallery','http://www3.clikpic.com/johnboy/images/Los-Uros-man-rowing.gif',500,354,'Lake Titicaca','http://www3.clikpic.com/johnboy/images/Los-Uros-man-rowing_thumb.gif',130, 92,1, 1,'This man from the Los Uros tribe rowed me to a floating Island on Lake Titicaca in his boat made of reeds','08/11/06','John Coates LRPS','Lake Titicaca, Peru','','');
photos[4] = new photo(1950603,'130245','','gallery','http://www3.clikpic.com/johnboy/images/Los-uros-woman-blue.gif',333,500,'Los Uros Woman blue','http://www3.clikpic.com/johnboy/images/Los-uros-woman-blue_thumb.gif',130, 195,1, 1,'A woman from the Los Uros Community on Lake Titicaca, they chew coca leaf to help with the altitude and it makes their cheeks go purple','08/11/06','John Coates LRPS','Lake Titicaca, Peru','','');
photos[5] = new photo(2010960,'130245','','gallery','http://www3.clikpic.com/johnboy/images/x_Los-Uros-woman-in-red1.gif',500,352,'Los Uros woman in red','http://www3.clikpic.com/johnboy/images/x_Los-Uros-woman-in-red1_thumb.gif',130, 92,1, 1,'This lady was busy making fine needlework wall hangings to sell to the tourists, visiting her floating island of reeds, I bought one from her','08/11/06','John Coates LRPS','Lake Titicaca, Puno, Peru','','');
photos[6] = new photo(2010965,'130245','','gallery','http://www3.clikpic.com/johnboy/images/x_Los-uros-man-smiling.gif',500,333,'Los Uros man','http://www3.clikpic.com/johnboy/images/x_Los-uros-man-smiling_thumb.gif',130, 87,1, 1,'Smiling and happy this man from the Los Uros community was very proud to show me his black and white TV running from a solar pannel outside his hut','08/11/06','John Coates LRPS','Floating Islands of Los Uros, Lake Titicaca, Peru','','');
photos[7] = new photo(1950576,'130245','','gallery','http://www3.clikpic.com/johnboy/images/girl-on-the-train.gif',351,500,'Girl on the Train','http://www3.clikpic.com/johnboy/images/girl-on-the-train_thumb.gif',130, 185,1, 1,'An attractive girl on the train, but she was actually the ticket collector on the journey from Cusco to Machu Picchu, she gave an impromtu fashion show on the way back','03/11/06','John Coates LRPS','Cusco, Peru','','');
photos[8] = new photo(2010952,'130245','','gallery','http://www3.clikpic.com/johnboy/images/x_Woman-near-blue-door.gif',355,500,'Woman near blue door','http://www3.clikpic.com/johnboy/images/x_Woman-near-blue-door_thumb.gif',130, 183,1, 1,'Look carefully at this lady sitting in front of the blue door, she\'s hand weaving beautiful braided straps','02/11/06','Juhn Coates LRPS','Cusco, Peru','','');
photos[9] = new photo(2010958,'130245','','gallery','http://www3.clikpic.com/johnboy/images/x_Girl-from-Cusco.gif',333,500,'Girl from Cusco','http://www3.clikpic.com/johnboy/images/x_Girl-from-Cusco_thumb.gif',130, 195,1, 1,'The indigenous Indians of peru are unique in this modern world, they seem to express themselves in shy smiles and rarely complain','02/11/06','John Coates LRPS','Cusco, Peru','','');
photos[10] = new photo(1950583,'130245','','gallery','http://www3.clikpic.com/johnboy/images/Lady-with-llama,-Cusco.gif',500,333,'Lady with the Llama','http://www3.clikpic.com/johnboy/images/Lady-with-llama,-Cusco_thumb.gif',130, 87,1, 1,'Standing in front of a 1000 year old Inca wall, which I wanted to photograph, this lady with her Llama insisted I took her photo first!','01/11/06','','Cusco, Peru','','');
photos[11] = new photo(1950560,'130245','','gallery','http://www3.clikpic.com/johnboy/images/do-I-look-pretty.gif',500,411,'Do I Look Pretty','http://www3.clikpic.com/johnboy/images/do-I-look-pretty_thumb.gif',130, 107,1, 1,'These people are getting ready for the annual Boxing Day Swim in the sea for charity, in freezing cold water of Cornwall in the winter.','26/12/05','John Coates LRPS','Charlestown, Cornwall, UK','','');
photos[12] = new photo(2591171,'130245','','gallery','http://www3.clikpic.com/johnboy/images/girl-&-horse-on-beach-2_fil.gif',500,375,'Girl with horse on the beach','http://www3.clikpic.com/johnboy/images/girl-&-horse-on-beach-2_fil_thumb.gif',130, 98,1, 1,'I photographed the girl and horse  on a the sand bar which links the islands of Gugh and St Agnes on the Isle of Scilly. As the tide come in it covers the sand bar and they become two separate islands again.','06/09/05','John Coates, LRPS','Isle of Scilly, UK','','');
photos[13] = new photo(2010954,'130245','','gallery','http://www3.clikpic.com/johnboy/images/x_street-entertainer-1.gif',500,396,'Street entertainer','http://www3.clikpic.com/johnboy/images/x_street-entertainer-1_thumb.gif',130, 103,1, 1,'A street entertainer who has everyone in his audience in fits of laughter, just look at their faces, everyone is laughing.','03/02/05','John Coates LRPS','Cuba Street, Wellington, New Zealand','','');
photos[14] = new photo(1950547,'130245','','gallery','http://www3.clikpic.com/johnboy/images/anybody-listening-1.gif',293,500,'Any body listening','http://www3.clikpic.com/johnboy/images/anybody-listening-1_thumb.gif',130, 222,1, 1,'The perception is a \"blind man\" busking with his barrel organ. It wasn\'t the monkey that caught my attention or even his very expensive Pell Busking Organ but the reading glasses around his neck, which made me think!','31/07/04','John Coates LRPS','Truro, Cornwall, UK','','');
photos[15] = new photo(1950553,'130245','','gallery','http://www3.clikpic.com/johnboy/images/buskers-2.gif',500,422,'Buskers','http://www3.clikpic.com/johnboy/images/buskers-2_thumb.gif',130, 110,1, 1,'These guys were working really hard and sounding good \"singing for their supper\" but they  seemed not to earn much for all their trouble!','03/09/03','John Coates LRPS','Pydar Street, Truro, Cornwall','','');
photos[16] = new photo(2010934,'130245','','gallery','http://www3.clikpic.com/johnboy/images/x_throwing-the-sponge--2iC.gif',378,500,'Throwing the wet sponge','http://www3.clikpic.com/johnboy/images/x_throwing-the-sponge--2iC_thumb.gif',130, 172,1, 1,'I liked the look on the gentlemans face as the dripping wet sponge hurtles towards him, dead on target','21/08/03','John Coates LRPS','St Ewe Country Fair, Cornwall, UK','','');
photos[17] = new photo(1990195,'130245','','gallery','http://www3.clikpic.com/johnboy/images/x_straw-man-iC.gif',500,360,'Straw Man','http://www3.clikpic.com/johnboy/images/x_straw-man-iC_thumb.gif',130, 94,1, 1,'This ingenious man made of Straw bales is advertising the local country fair','12/08/03','John Coates LRPS','St Ewe, Cornwall, UK','','');
photos[18] = new photo(1950613,'130245','','gallery','http://www3.clikpic.com/johnboy/images/Washing-Done.gif',500,383,'Washing Done','http://www3.clikpic.com/johnboy/images/Washing-Done_thumb.gif',130, 100,1, 1,'Some body said they thought this photo was taken in the back streets of Naples, but in fact it was taken in Mevagissey, Cornwall','07/08/03','John Coates LRPS','Mevagissey, Cornwall, UK','','');
photos[19] = new photo(1990186,'130245','','gallery','http://www3.clikpic.com/johnboy/images/x_nude-walker.gif',309,421,'Nude Walker','http://www3.clikpic.com/johnboy/images/x_nude-walker_thumb.gif',130, 177,1, 1,'It\'s amazing what sights you see when walking the South West Coastal Path!','12/07/03','John Coates LRPS','Coastal footpath,Fowey, Cornwall, UK','','');
photos[20] = new photo(1950567,'130245','','gallery','http://www3.clikpic.com/johnboy/images/Fred-Dibnah-1_filtered.gif',397,500,'Fred Dibnah','http://www3.clikpic.com/johnboy/images/Fred-Dibnah-1_filtered_thumb.gif',130, 164,1, 1,'The late Fred Dibnah<br>\r\npolishing the brass of his favourite steam engine \"Betsy\"','20/04/02','John Coates LRPS','Netley Marsh Steam Rally, UK','','');
photos[21] = new photo(2010932,'130245','','gallery','http://www3.clikpic.com/johnboy/images/x_soul-sisters-selective-co.gif',448,379,'Soul Sisters','http://www3.clikpic.com/johnboy/images/x_soul-sisters-selective-co_thumb.gif',130, 110,1, 1,'I spotted these two girls at a folk festival and thought they were sisters, but they told me they were just Soul Sisters','03/08/01','John Coates, LRPS','Sidmouth, Devon, UK','','');
photos[22] = new photo(1990178,'130245','','gallery','http://www3.clikpic.com/johnboy/images/x_Netley-Marsh-drinking-men.gif',500,382,'Steam Men','http://www3.clikpic.com/johnboy/images/x_Netley-Marsh-drinking-men_thumb.gif',130, 99,1, 1,'Two men with their steam engine take a well earned break from the show','20/07/01','John Coates LRPS','Netley Marsh, Hampshire, UK','','');
photos[23] = new photo(1958143,'130245','','gallery','http://www3.clikpic.com/johnboy/images/the-jokers_filtered.gif',407,500,'Travelling Minstrels','http://www3.clikpic.com/johnboy/images/the-jokers_filtered_thumb.gif',130, 160,1, 1,'I photographed these \"Travelling Minstrels\" at the Sidmouth Folk festival, they were having such good fun simply making people happy!','03/08/00','John Coates LRPS','Sidmouth, Devon, UK','','');
photos[24] = new photo(2591249,'130245','','gallery','http://www3.clikpic.com/johnboy/images/bus-stop.gif',452,325,'Bus Stop','http://www3.clikpic.com/johnboy/images/bus-stop_thumb.gif',130, 93,1, 1,'A retro picture of children waiting for a bus and getting a little bored, except the bigger girl who seems to be enjoying her liquorise stick','19/08/61','John Coates LRPS','Nottingham','','');
photos[25] = new photo(2580889,'130245','','gallery','http://www3.clikpic.com/johnboy/images/john-1960,-tower-bridge.gif',316,494,'John at Tower Bridge c.1960','http://www3.clikpic.com/johnboy/images/john-1960,-tower-bridge_thumb.gif',130, 203,1, 1,'\"Sartorial Elegance\" as it was in 1960','19/04/60','John Coates, LRPS','London, UK','','');
photos[26] = new photo(2010969,'130245','','gallery','http://www3.clikpic.com/johnboy/images/x_CND-protest.gif',500,429,'CND protest','http://www3.clikpic.com/johnboy/images/x_CND-protest_thumb.gif',130, 112,0, 0,'A lonely vigil of protest outside a bank','','John Coates LRPS','Wells, Somerset','','');
photos[27] = new photo(2010972,'130245','','gallery','http://www3.clikpic.com/johnboy/images/x_holiday-makers-west-quay.gif',500,379,'Sitting in the sun','http://www3.clikpic.com/johnboy/images/x_holiday-makers-west-quay_thumb.gif',130, 99,1, 1,'These holiday makers are doing what we all do from time to time, sitting in the sun and watching the world go by','','John Coates LRPS','Mevagissey, Cornwall, UK','','');
photos[28] = new photo(1950357,'130244','','gallery','http://www3.clikpic.com/johnboy/images/gas-street-canal_filtered.gif',500,352,'Gas Street Canal','http://www3.clikpic.com/johnboy/images/gas-street-canal_filtered_thumb.gif',130, 92,1, 1,'The Gas Street Canal Basin, once a hive of industrial activity, has been turned into a leisure, housing and amenity area, I thought it was rather nice.','05/06/07','John Coates LRPS','Gas Street Canal, Birmingham, UK','','');
photos[29] = new photo(2001270,'130244','','gallery','http://www3.clikpic.com/johnboy/images/x-vote-for-me.gif',500,363,'Vote for me!','http://www3.clikpic.com/johnboy/images/x-vote-for-me_thumb.gif',130, 94,1, 1,'','13/11/06','John Coates LRPS','Chivay, Peru','','');
photos[30] = new photo(1950343,'130244','','gallery','http://www3.clikpic.com/johnboy/images/Convent--Cloisters.gif',410,500,'Convent Cloisters','http://www3.clikpic.com/johnboy/images/Convent--Cloisters_thumb.gif',130, 159,1, 1,'The blue cloisters are for the novice nuns at the Santa Catalina Convent, Arequipa, Peru','09/11/06','John Coates LRPS','Arequipa, Peru','','');
photos[31] = new photo(2001162,'130244','','gallery','http://www3.clikpic.com/johnboy/images/x-Convent-door.gif',500,355,'Convent Door','http://www3.clikpic.com/johnboy/images/x-Convent-door_thumb.gif',130, 92,1, 1,'A lovely old door at the convent of Santa Catalina','09/11/06','John Coates LRPS','Arequipa, Peru','','');
photos[32] = new photo(1956728,'130244','','gallery','http://www3.clikpic.com/johnboy/images/Wells_filtered.gif',500,356,'Dusk at Wells','http://www3.clikpic.com/johnboy/images/Wells_filtered_thumb.gif',130, 93,1, 1,'Photographed at dusk in Vickers Close, Wells is Englands smallest Cathedral City','21/07/06','John Coates LRPS','Wells, Somerset, England','','');
photos[33] = new photo(2001213,'130244','','gallery','http://www3.clikpic.com/johnboy/images/x-riley-car.gif',500,389,'Old Riley Car','http://www3.clikpic.com/johnboy/images/x-riley-car_thumb.gif',130, 101,1, 1,'A well preserved Riley motor car parked outside a cottage at Old Town.','05/09/05','John Coates LRPS','St Mary\'s, Isles of Scilly, UK','','');
photos[34] = new photo(1950363,'130244','','gallery','http://www3.clikpic.com/johnboy/images/mauri-symbols-Wellington.gif',500,375,'Mauri Symbols','http://www3.clikpic.com/johnboy/images/mauri-symbols-Wellington_thumb.gif',130, 98,1, 1,'These Mauri Symbols make a symbolic feature of the Wellington street scene','01/02/05','John Coates LRPS','Wellington, New Zealand','','');
photos[35] = new photo(1950350,'130244','','gallery','http://www3.clikpic.com/johnboy/images/eden----dome-thro-hole.gif',500,354,'Eden Project','http://www3.clikpic.com/johnboy/images/eden----dome-thro-hole_thumb.gif',130, 92,1, 1,'Unusual view of the domes at the Eden Project, Cornwall, UK','13/01/05','John Coates LRPS','Boldeva, Near St Austell, Cornwall, UK','','');
photos[36] = new photo(1949785,'130244','','gallery','http://www3.clikpic.com/johnboy/images/coloured-houses.gif',405,500,'Coloured Houses','http://www3.clikpic.com/johnboy/images/coloured-houses_thumb.gif',130, 160,1, 1,'Coloured houses make a pretty picture on the harbour side at Mevagissey, Cornwall','17/07/04','John Coates LRPS','Mevagissey, Cornwall, UK','','');
photos[37] = new photo(2001178,'130244','','gallery','http://www3.clikpic.com/johnboy/images/x-harbour-lights,-boscastle.gif',500,345,'Harbour Lights','http://www3.clikpic.com/johnboy/images/x-harbour-lights,-boscastle_thumb.gif',130, 90,1, 1,'The Harbour Lights Gallery which a few weeks after I photographed it was washed away into the sea by flash floods on 16/08/2004','20/06/04','John Coates LRPS','Boscastle, North Cornwall, UK','','');
photos[38] = new photo(1950368,'130244','','gallery','http://www3.clikpic.com/johnboy/images/spires.gif',375,500,'Spires','http://www3.clikpic.com/johnboy/images/spires_thumb.gif',130, 173,1, 1,'The spires of Truro Cathederal make interesting shapes with the Cornish copper cladding of one of them turning green with age','03/09/03','John Coates LRPS','Truro, Cornwall, UK','','');
photos[39] = new photo(1950382,'130244','','gallery','http://www3.clikpic.com/johnboy/images/waste-man.gif',375,500,'Waste Man','http://www3.clikpic.com/johnboy/images/waste-man_thumb.gif',130, 173,1, 1,'Look carefully at this \"work of art\" he is made entirely of throw away waste products such as; vacuum cleaners, radiators, computer parts tv\'s and various electrical items.','13/07/03','John Coates LRPS','Eden Project, Cornwall, UK','','');
photos[40] = new photo(2591254,'130244','','gallery','http://www3.clikpic.com/johnboy/images/roadworks.gif',419,314,'Road Works','http://www3.clikpic.com/johnboy/images/roadworks_thumb.gif',130, 97,1, 1,'These men are getting on with the job, looks like drains, I liked the cursory glance of the passer by. Notice there\'s no \"Health and Safety\" stuff around, I don\'t think it had been invented in 1959!','24/02/59','John Coates, LRPS','Nottingham','','');
photos[41] = new photo(2591298,'130244','','gallery','http://www3.clikpic.com/johnboy/images/galloping-horses.gif',427,315,'Galloping Horses','http://www3.clikpic.com/johnboy/images/galloping-horses_thumb.gif',130, 96,1, 1,'Galloping Horses on a fairground ride at Nottingham\'s \"Goose Fair\" said to be the biggest travelling fair in the UK. Back in 1958 when I took this picture the ride was powered by steam, I expect it\'s all electric nowdays','04/09/58','John Coates, LRPS','Nottigham, UK','','');
photos[42] = new photo(2588311,'130244','','gallery','http://www3.clikpic.com/johnboy/images/Colwick-5.gif',479,341,'Guiness Poster','http://www3.clikpic.com/johnboy/images/Colwick-5_thumb.gif',130, 93,1, 1,'The Guiness Poster is cleverly positioned at a level crossing where people would have to wait as the trains came by, who said advertising pays!','14/07/58','John Coates, LRPS','Colwick Level Crossing, Nottingham','','');
photos[43] = new photo(1950358,'130244','','gallery','http://www3.clikpic.com/johnboy/images/highway-1.gif',375,500,'Highway 1','http://www3.clikpic.com/johnboy/images/highway-1_thumb.gif',130, 173,1, 1,'An iconic sign indicating the start of Highway 1 at Cape Reinga, New Zealand','','','North Island, New Zealand','','');
photos[44] = new photo(1950371,'130244','','gallery','http://www3.clikpic.com/johnboy/images/subway-iC.gif',500,414,'Subway','http://www3.clikpic.com/johnboy/images/subway-iC_thumb.gif',130, 108,1, 1,'Subways can sometimes be menacing places, but this one at Truro, Cornwall is OK, It\'s nice and bright and has  street buskers providing light entertainment for busy shoppers.','','','Truro, Cornwall, UK','','');
photos[45] = new photo(2001182,'130244','','gallery','http://www3.clikpic.com/johnboy/images/x-Rattle-Street.gif',343,500,'Rattle Street','http://www3.clikpic.com/johnboy/images/x-Rattle-Street_thumb.gif',130, 190,1, 1,'So named after the rattle of the fishermens carts when wheeled along the cobbled street','','John Coates LRPS','Gorran Haven, Cornwall, UK','','');
photos[46] = new photo(2001256,'130244','','gallery','http://www3.clikpic.com/johnboy/images/x-rooftops-mazaron-2.gif',478,306,'Rooftops','http://www3.clikpic.com/johnboy/images/x-rooftops-mazaron-2_thumb.gif',130, 83,1, 1,'Terracotta Roof tiles make an attractive pattern in the hot Spanish sun','','John Coates LRPS','Mazarron, Mercia, Spain','','');
photos[47] = new photo(2001269,'130244','','gallery','http://www3.clikpic.com/johnboy/images/x-st-winnow-church.gif',500,380,'St Winnow Church','http://www3.clikpic.com/johnboy/images/x-st-winnow-church_thumb.gif',130, 99,1, 1,'The church of St Winnow is located on an ancient holy site on th banks of the Fowey River, Cornwall.','','John Coates LRPS','Near Lostwithiel,Cornwall, UK','','');
photos[48] = new photo(2588222,'130244','','gallery','http://www3.clikpic.com/johnboy/images/921-lagerfield-poster1.gif',500,375,'Giant Advertising Poster','http://www3.clikpic.com/johnboy/images/921-lagerfield-poster1_thumb.gif',130, 98,1, 1,'I liked this giant advertising poster featuring Karl Lagerfeld for H&M Stores, if you are going to do it, then do it big!','','','','','');
photos[49] = new photo(2136387,'3999','','gallery','http://www3.clikpic.com/johnboy/images/St-Just-1a.gif',500,354,'St Just in Roseland','http://www3.clikpic.com/johnboy/images/St-Just-1a_thumb.gif',130, 92,1, 0,'The little church and its lovely gardens nestle at side of the creek at St Just in Roseland, Cornwall. It has to be one of the finest setttings for a church in the UK','02/04/08','John Coates ','Cornwall UK','','');
photos[50] = new photo(1947334,'3999','','gallery','http://www3.clikpic.com/johnboy/images/Abandoned-church,-Mallkini.gif',500,350,'Abadoned church','http://www3.clikpic.com/johnboy/images/Abandoned-church,-Mallkini_thumb.gif',130, 91,1, 1,'Abandoned church in the grounds of the Mallkini Ranch, Peru','08/11/07','John Coates LRPS','Mallkini Ranch, Peru','','');
photos[51] = new photo(1947350,'3999','','gallery','http://www3.clikpic.com/johnboy/images/Boat-landings.gif',500,344,'Boat Landings','http://www3.clikpic.com/johnboy/images/Boat-landings_thumb.gif',130, 89,1, 1,'The boat landings on the lakeside at Derwent Water, Keswick, Cumbria, England','20/05/07','John Coates LRPS','Derwent Water, Cumbria, UK','','');
photos[52] = new photo(1947430,'3999','','gallery','http://www3.clikpic.com/johnboy/images/Derwent-water.gif',500,326,'Derwent Water','http://www3.clikpic.com/johnboy/images/Derwent-water_thumb.gif',130, 85,1, 1,'Derwent Water near Keswick, England','18/05/07','John Coates LRPS','Cumbria, England','','');
photos[53] = new photo(1947424,'3999','','gallery','http://www3.clikpic.com/johnboy/images/crummock-water.gif',500,352,'Crummock Water','http://www3.clikpic.com/johnboy/images/crummock-water_thumb.gif',130, 92,1, 1,'View across Crummock Water in the English Lake District.','15/05/07','John Coates LRPS','Cumbria, England','','');
photos[54] = new photo(1947403,'3999','','gallery','http://www3.clikpic.com/johnboy/images/Caerhays-Castle.gif',500,345,'Caerhays Castle','http://www3.clikpic.com/johnboy/images/Caerhays-Castle_thumb.gif',130, 90,1, 1,'Caerhays Castle is a proper little castle near Mevagissey, Cornwall, it\'s still lived in by a private family and is open to the public at certain times','12/04/07','John Coates LRPS','Cornwall. UK','','');
photos[55] = new photo(1947467,'3999','','gallery','http://www3.clikpic.com/johnboy/images/Shepherds-huts,-Mallkini.gif',500,347,'Shepherds Huts','http://www3.clikpic.com/johnboy/images/Shepherds-huts,-Mallkini_thumb.gif',130, 90,1, 1,'These Shepherds Huts are situated high in the Andes Mountains in Peru. They are used by shepherds looking after the vast herds of Alpacas','06/11/06','John Coates LRPS','Mallkini Ranch, Peru','','');
photos[56] = new photo(1947337,'3999','','gallery','http://www3.clikpic.com/johnboy/images/Altiplano.gif',500,349,'Altiplano','http://www3.clikpic.com/johnboy/images/Altiplano_thumb.gif',130, 91,1, 1,'The High Plato or Altiplano, Andes Mountains, Peru','02/11/06','John Coates LRPS','Andes Mountais, Peru','','');
photos[57] = new photo(1947454,'3999','','gallery','http://www3.clikpic.com/johnboy/images/Sacred-Valley.gif',500,348,'Sacred Valley','http://www3.clikpic.com/johnboy/images/Sacred-Valley_thumb.gif',130, 90,1, 1,'The Peruvians call this the Sacred Valley because it is so rich and fertile','01/11/06','John Coates LRPS','Cusco, Peru','','');
photos[58] = new photo(1947476,'3999','','gallery','http://www3.clikpic.com/johnboy/images/leafy-lane,whimple,devon.gif',472,324,'Leafy Lane','http://www3.clikpic.com/johnboy/images/leafy-lane,whimple,devon_thumb.gif',130, 89,1, 1,'This leafy lane is an architypal English green leafy lane situated near the village of Whimple in Devon England','21/08/06','John Coates LRPS','Devon, UK','','');
photos[59] = new photo(1947679,'3999','','gallery','http://www3.clikpic.com/johnboy/images/Rhonda.gif',500,392,'Rhonda','http://www3.clikpic.com/johnboy/images/Rhonda_thumb.gif',130, 102,1, 0,'Rhonda is built on an isolated ridge by the gaping river gorge El Tajo with the river Gudadalevin 130 metres below','24/03/06','John Coates LRPS','Andalucia, Spain','','');
photos[60] = new photo(1947344,'3999','','gallery','http://www3.clikpic.com/johnboy/images/bishops-mitre.gif',500,375,'Bishops Mitre','http://www3.clikpic.com/johnboy/images/bishops-mitre_thumb.gif',130, 98,1, 1,'In the South Island of New Zealand this mountain is named the Bishops Mitre from the resemblance to the clerics hat.','23/02/05','John Coates LRPS','New Zealand','','');
photos[61] = new photo(1993818,'3999','','gallery','http://www3.clikpic.com/johnboy/images/x-old-boat_filtered.gif',500,365,'The Vaktika','http://www3.clikpic.com/johnboy/images/x-old-boat_filtered_thumb.gif',130, 95,1, 1,'This boat is landlocked on Lake Dunstan, New Zealand','14/02/05','John Coates LRPS','Lake Dunstan, Cromwell, Newzealand','','');
photos[62] = new photo(1949622,'130243','','gallery','http://www3.clikpic.com/johnboy/images/tenerife.gif',500,352,'Tenerife','http://www3.clikpic.com/johnboy/images/tenerife_thumb.gif',130, 92,1, 1,'The rocky volcanic Island of Tenerife in the Spanish canaries','21/02/08','John Coates LRPS','Tenerife South, Canaries','','');
photos[63] = new photo(1949598,'130243','','gallery','http://www3.clikpic.com/johnboy/images/look--out.gif',500,370,'Look out post','http://www3.clikpic.com/johnboy/images/look--out_thumb.gif',130, 96,1, 1,'The look out post on the beach at El Medano, Tenerife, Canary Islands','01/02/08','John Coates LRPS','El Medano, Tenerife','','');
photos[64] = new photo(1949583,'130243','','gallery','http://www3.clikpic.com/johnboy/images/Earl-of-pembroke.gif',500,335,'Earl of Pembroke','http://www3.clikpic.com/johnboy/images/Earl-of-pembroke_thumb.gif',130, 87,1, 1,'The tall ship Earl of Pembroke entering her historic home port of Charlestown, Cornwall, UK','01/08/07','John Coates LRPS','Charlestown, Cornwall, UK','','');
photos[65] = new photo(1993734,'130243','','gallery','http://www3.clikpic.com/johnboy/images/x_room-with-a-view.gif',500,373,'Room with a view','http://www3.clikpic.com/johnboy/images/x_room-with-a-view_thumb.gif',130, 97,1, 1,'West Beach Sidmouth, photographed through the Tea Room window at Connaught Gardens','21/01/07','John Coates LRPS','Sidmouth, Devon UK','','');
photos[66] = new photo(1949581,'130243','','gallery','http://www3.clikpic.com/johnboy/images/Bonare.gif',500,385,'Relax','http://www3.clikpic.com/johnboy/images/Bonare_thumb.gif',130, 100,1, 1,'The Caribean Island of Bonaire in the Dutch Antilles, a nice place to Relax','14/11/06','John Coates LRPS','Bonaire, Dutch Antilles, Carabean','','');
photos[67] = new photo(1993808,'130243','','gallery','http://www3.clikpic.com/johnboy/images/x-stepper-point_filtered.gif',500,344,'Stepper Point','http://www3.clikpic.com/johnboy/images/x-stepper-point_filtered_thumb.gif',130, 89,1, 1,'The shipping day mark stands tall and proud at Stepper point, near Padstow','14/09/06','John Coates LRPS','Padstow, Cornwall, UK','','');
photos[68] = new photo(1949575,'130243','','gallery','http://www3.clikpic.com/johnboy/images/auckland-skyline_filtered.gif',500,351,'Auckland','http://www3.clikpic.com/johnboy/images/auckland-skyline_filtered_thumb.gif',130, 91,1, 1,'The dramatic skyline of Auckland in the North Island of New Zealand','18/02/06','John Coates LRPS','Auckland, new Zealand','','');
photos[69] = new photo(1949633,'130243','','gallery','http://www3.clikpic.com/johnboy/images/wreck-3.gif',500,354,'Wreck','http://www3.clikpic.com/johnboy/images/wreck-3_thumb.gif',130, 92,1, 1,'The boat ashore is on the Island of Gugh and in the background you can see the adjoing Island of  St Agnes, The boats at anchor are in Porth Conger.','06/09/05','John Coates LRPS','Gugh, Isle of Scilly, UK','','');
photos[70] = new photo(1949611,'130243','','gallery','http://www3.clikpic.com/johnboy/images/old-town-view-2_filtered.gif',500,375,'Old Town, St Mary\'s','http://www3.clikpic.com/johnboy/images/old-town-view-2_filtered_thumb.gif',130, 98,1, 1,'Dark clouds rolling in over Old Town harbour on St Mary\'s, Isle of Scilly, lying just 28 miles into the Atlantic from the UK mainland','05/09/05','John Coates LRPS','Old Town, St Mary\'s,  Isles of Scilly','','');
photos[71] = new photo(1993702,'130243','','gallery','http://www3.clikpic.com/johnboy/images/x_mist-on-milford-sound-iC.gif',500,375,'Seamist','http://www3.clikpic.com/johnboy/images/x_mist-on-milford-sound-iC_thumb.gif',130, 98,1, 1,'Seamist rolling in at Milford Sound','06/02/05','John Coates LRPS','Milford Sound, South Island, New Zealand','','');
photos[72] = new photo(1993664,'130243','','gallery','http://www3.clikpic.com/johnboy/images/x_minnack-Theatre.gif',500,375,'Minnack Theatre','http://www3.clikpic.com/johnboy/images/x_minnack-Theatre_thumb.gif',130, 98,1, 1,'The Minnack Theatre is sculptured out of the cliffe edge and was created by Rowena Cade 1893 - 1983','10/05/04','','Porthcurno, Cornwall, UK','','');
photos[73] = new photo(1949604,'130243','','gallery','http://www3.clikpic.com/johnboy/images/meva-island-quay-iC.gif',500,357,'Mevagissey Outer Harbour','http://www3.clikpic.com/johnboy/images/meva-island-quay-iC_thumb.gif',130, 93,1, 1,'Typical summer day down at the harbour in Mevagissey, Cornwall','14/06/03','John Coates LRPS','Mevagissey, Cornwall, UK','','');
photos[74] = new photo(1949618,'130243','','gallery','http://www3.clikpic.com/johnboy/images/quay-&-blockhouse.gif',500,368,'Polruan','http://www3.clikpic.com/johnboy/images/quay-&-blockhouse_thumb.gif',130, 96,1, 1,'The pretty village of Polruan on the estuary to the river Fowey, Cornwall, UK','01/06/03','John Coates LRPS','Polruan, Cornwall, UK','','');
photos[75] = new photo(1993649,'130243','','gallery','http://www3.clikpic.com/johnboy/images/x_mevagissey-harbour-01-iC.gif',500,352,'Mevagissey Inner Harbour','http://www3.clikpic.com/johnboy/images/x_mevagissey-harbour-01-iC_thumb.gif',130, 92,1, 1,'Mevagissey is still a working fishing harbour on the South Coast of Corwall, that\'s<br>\r\nas long as the powers that be let them fish!','02/08/02','John Coates LRPS','Mevagissey, Cornwall, UK','','');
photos[76] = new photo(1949585,'130243','','gallery','http://www3.clikpic.com/johnboy/images/lifeguards-original_2-filtered.gif',500,346,'Lifeguards','http://www3.clikpic.com/johnboy/images/lifeguards-original_2-filtered_thumb.gif',130, 90,1, 1,'A couple of Lifeguards on duty at the seaside town of Sidmouth, on the south coast of Devon','27/07/01','John Coates LRPS','Sidmouth, Devon, UK','','');
photos[77] = new photo(1956720,'130243','','gallery','http://www3.clikpic.com/johnboy/images/deckchairs-iC_filtered.gif',500,333,'Empty Deckchairs','http://www3.clikpic.com/johnboy/images/deckchairs-iC_filtered_thumb.gif',130, 87,1, 1,'Empty deckchairs on the promenade at Sidmouth Devon, is because the people are sunbathing on the rocks beyond?','27/07/01','John Coates LRPS','Sidmouth, Devon, UK','','');
photos[78] = new photo(1993787,'130243','','gallery','http://www3.clikpic.com/johnboy/images/x_sidmouth-boats-iC_filtere.gif',500,322,'Sidmouth Fishing Boats','http://www3.clikpic.com/johnboy/images/x_sidmouth-boats-iC_filtere_thumb.gif',130, 84,1, 1,'These are two of the last working fishing boats operating out of Sidmouth, Devon','27/07/01','John Coates LRPS','Sidmouth, Devon, UK','','');
photos[79] = new photo(2340352,'130246','','gallery','http://www3.clikpic.com/johnboy/images/peacock 1b1.jpg',376,500,'Eye Eye','http://www3.clikpic.com/johnboy/images/peacock 1b1_thumb.jpg',130, 173,0, 0,'This lovely peacock was photographed in the grounds of Trevano House, Cornwall','26/04/08','John Coates LRPS','Trevano House, Cornwall','','');
photos[80] = new photo(1950713,'130246','','gallery','http://www3.clikpic.com/johnboy/images/Buzzard-1b_filtered.gif',348,500,'Buzzard','http://www3.clikpic.com/johnboy/images/Buzzard-1b_filtered_thumb.gif',130, 187,1, 1,'This Buzzard had been feeding on a pidgeon when I took its photo then it flew away','14/02/08','John Coates LRPS','Kerthua Park, Mevagissey, Cornwall,UK','','');
photos[81] = new photo(1997552,'130246','','gallery','http://www3.clikpic.com/johnboy/images/x-Bird-of-paradise.gif',500,350,'Bird of Paradise','http://www3.clikpic.com/johnboy/images/x-Bird-of-paradise_thumb.gif',130, 91,1, 1,'The Bird of Paradise is a heavenly flower, a bold diva of a plant which resembles the plumage of a bird, also called a Crane Flower','25/01/08','John Coates LRPS','La Gomera, Canary Islands','','');
photos[82] = new photo(1950738,'130246','','gallery','http://www3.clikpic.com/johnboy/images/gorilla.gif',352,500,'You looking at me !','http://www3.clikpic.com/johnboy/images/gorilla_thumb.gif',130, 185,1, 1,'This big silverback gorilla was not photographed in the wild but at Lorro Park on the Island of Tenerife','18/01/08','John Coates LRPS','Lorro Park, Tenerife, Canary Islands','','');
photos[83] = new photo(1956732,'130246','','gallery','http://www3.clikpic.com/johnboy/images/red-admiral.gif',500,360,'Red Admiral','http://www3.clikpic.com/johnboy/images/red-admiral_thumb.gif',130, 94,1, 1,'Red Admiral butterfly feasting on Golden Grounsel<br>\r\nat the RHS gardens Rosemoor','18/07/07','John Coates LRPS','Rosemoor, Great Torrington, North devon, UK','','');
photos[84] = new photo(1997588,'130246','','gallery','http://www3.clikpic.com/johnboy/images/x-herdwick-sheep.gif',431,335,'Herdwick Sheep','http://www3.clikpic.com/johnboy/images/x-herdwick-sheep_thumb.gif',130, 101,1, 1,'Herdwick Sheepare found in the Lake District of Northwest England on the fells of Westmorland and Cumberland. They are known as the carpet wool and meat breed!','07/05/07','John Coates LRPS','Lower Manesty, Keswick, Cumbria, UK','','');
photos[85] = new photo(1950731,'130246','','gallery','http://www3.clikpic.com/johnboy/images/f-orange-scale-head.gif',500,354,'Orage Scale Head','http://www3.clikpic.com/johnboy/images/f-orange-scale-head_thumb.gif',130, 92,1, 1,'These mushrooms can cause hallucinations and fits of uncontrolled laughter if taken, but their bitter taste should deter most people','19/10/06','John Coates LRPS','Kerthua Park, Mevagissey, Cornwall, UK','','');
photos[86] = new photo(1950744,'130246','','gallery','http://www3.clikpic.com/johnboy/images/hawkmoth-larva-2.gif',500,308,'Hawkmoth Lava','http://www3.clikpic.com/johnboy/images/hawkmoth-larva-2_thumb.gif',130, 80,1, 1,'I photgraphed this Hawkmoth Lava in my garden at Kerthua Park','09/09/06','John Coates LRPS','Kerthua Park, Mevagissey, Cornwall, UK','','');
photos[87] = new photo(1997549,'130246','','gallery','http://www3.clikpic.com/johnboy/images/x-aeonium.gif',500,375,'Aeonium','http://www3.clikpic.com/johnboy/images/x-aeonium_thumb.gif',130, 98,1, 1,'Aeoniums are succulents and are native to the Canary Islands, North Africa and madeira','07/09/05','John Coates LRPS','Island of Tresco, Isles of Scilly, UK','','');
photos[88] = new photo(1997554,'130246','','gallery','http://www3.clikpic.com/johnboy/images/x-cormorant.gif',500,347,'Cormorant','http://www3.clikpic.com/johnboy/images/x-cormorant_thumb.gif',130, 90,1, 1,'There is little distinction between Cormorants and Shags and they are found in many parts of the world','17/02/05','John Coates LRPS','Lake Wakatipu, New Zealand','','');
photos[89] = new photo(1997576,'130246','','gallery','http://www3.clikpic.com/johnboy/images/x-fairy-ring-champignon-iC.gif',470,346,'Fairy Ring','http://www3.clikpic.com/johnboy/images/x-fairy-ring-champignon-iC_thumb.gif',130, 96,1, 1,'Fairy Rings or Champignons are found in lawns and graveyards in the autumn and winter. The caps can be dried then eaten, and taste like mushroom flavoured crisps','09/11/04','John Coates LRPS','Escot churchyard, East Devon,UK','','');
photos[90] = new photo(1950707,'130246','','gallery','http://www3.clikpic.com/johnboy/images/barn-owl-chick-2.gif',411,335,'Barn Owl Chick','http://www3.clikpic.com/johnboy/images/barn-owl-chick-2_thumb.gif',130, 106,1, 1,'This baby barn owl had fallen out of it\'s nesting box onto some bales of hay, I managed to take some photo\'s before I put it back','12/07/04','John Coates LRPS','Galowras, Mevagissey, Cornwall','','');
photos[91] = new photo(1950745,'130246','','gallery','http://www3.clikpic.com/johnboy/images/songthrush-bathing_filtered.gif',363,500,'Songthrush','http://www3.clikpic.com/johnboy/images/songthrush-bathing_filtered_thumb.gif',130, 179,1, 1,'This Songthrush was quite happy bathing in a puddle before I came along to take it\'s photo!','15/10/02','John Coates LRPS','Isles of Scilly, UK','','');
photos[92] = new photo(2609465,'130247','','gallery','http://www3.clikpic.com/johnboy/images/giovanni.gif',415,500,'Kerthua Park GIOVANNI','http://www3.clikpic.com/johnboy/images/giovanni_thumb.gif',130, 157,1, 1,'Young male alpaca who is looking really good, as alpacas go, could be a future stud if things go well for him','02/07/08','John Coates, LRPS','Kerthua Park, Mevagissey, Cornwall','','');
photos[93] = new photo(2340366,'130247','','gallery','http://www3.clikpic.com/johnboy/images/That\'s my boy-Giovanni.jpg',500,356,'That\'s my boy','http://www3.clikpic.com/johnboy/images/That\'s my boy-Giovanni_thumb.jpg',130, 93,0, 0,'A young male alpaca called Giovanni having a quick snooze while his mum Katie stands guard','20/05/08','John Coates LRPS','Kerthua Park, Cornwall','','');
photos[94] = new photo(1990205,'130247','','gallery','http://www3.clikpic.com/johnboy/images/z-fern-5-hours-old.gif',398,416,'Kerthua Park Fern','http://www3.clikpic.com/johnboy/images/z-fern-5-hours-old_thumb.gif',130, 136,1, 1,'This little baby alpaca (called a cria) was only 5 hour old when I took this photo','05/07/07','John Coates LRPS','Kerthua Park, Cornwall, UK','','');
photos[95] = new photo(1952691,'130247','','gallery','http://www3.clikpic.com/johnboy/images/Fifi.gif',354,460,'Fifi','http://www3.clikpic.com/johnboy/images/Fifi_thumb.gif',130, 169,1, 1,'A new 2007 black babe we called Fifi, photographed at just a few days old','01/07/07','John Coates LRPS','Kerthua Park, Mevagissey, Cornwall, UK','','');
photos[96] = new photo(1952682,'130247','','gallery','http://www3.clikpic.com/johnboy/images/Chloe-&-Faye.gif',500,436,'Chloe and Faye','http://www3.clikpic.com/johnboy/images/Chloe-&-Faye_thumb.gif',130, 113,1, 1,'Chloe and her new babe we called Faye, who was about a day old when this photograph was taken','06/06/07','John Coates LRPS','Kerthua Park, Mevagissey, Cornwall','','');
photos[97] = new photo(2007545,'130247','','gallery','http://www3.clikpic.com/johnboy/images/y-vicunas.gif',500,373,'Vicunas','http://www3.clikpic.com/johnboy/images/y-vicunas_thumb.gif',130, 97,1, 1,'Vicunas, a protected species and cousin of the alpaca and llama, grazing at the National Vicuna Reserve','09/11/06','John Coates LRPS','Ayacucho, Peru','','');
photos[98] = new photo(2007553,'130247','','gallery','http://www3.clikpic.com/johnboy/images/y-alpacas1.gif',500,336,'Alpacas','http://www3.clikpic.com/johnboy/images/y-alpacas1_thumb.gif',130, 87,1, 1,'Alpacas on the range in the Andes Mountains at an altitude of over 4000 metres','09/11/06','John Coates LRPS','Andes Mountains, Peru','','');
photos[99] = new photo(2001367,'130247','','gallery','http://www3.clikpic.com/johnboy/images/x_selcting-alpacas.gif',500,355,'Selecting Alpacas','http://www3.clikpic.com/johnboy/images/x_selcting-alpacas_thumb.gif',130, 92,1, 1,'The farm supervisor and his men selecting their best alpacas for a show','06/11/06','John Coates LRPS','Mallkini Ranch, Peru','','');
photos[100] = new photo(1946980,'130247','','gallery','http://www3.clikpic.com/johnboy/images/3 babes.gif',500,366,'3 Alpaca Babes','http://www3.clikpic.com/johnboy/images/3 babes_thumb.gif',130, 95,1, 1,'Eddy, Emily and Ella','03/11/06','John Coates LRPS','Kerthua Park, Mevagissey, Cornwall, UK','','');
photos[101] = new photo(2007663,'130247','','gallery','http://www3.clikpic.com/johnboy/images/y-Llameras.gif',500,334,'Llameras','http://www3.clikpic.com/johnboy/images/y-Llameras_thumb.gif',130, 87,1, 1,'Llemera is a quechuan girl or boy who takes care of Llamas and Alpacas','02/11/06','John Coates Lrps','Cusco region, Peru','','');
photos[102] = new photo(1946985,'130247','','gallery','http://www3.clikpic.com/johnboy/images/Alpaca sunrise.gif',500,372,'Alpaca sunrise','http://www3.clikpic.com/johnboy/images/Alpaca sunrise_thumb.gif',130, 97,1, 1,'Proud Alpaca Elite Aldorado standing before the sun rise','17/04/06','John Coates LRPS','Kerthua Park, Mevagissey, Cornwall, UK','','');
photos[103] = new photo(1946987,'130247','','gallery','http://www3.clikpic.com/johnboy/images/Daisy.gif',389,500,'Daisy','http://www3.clikpic.com/johnboy/images/Daisy_thumb.gif',130, 167,1, 1,'Young alpaca Daisy photographed at about a week old','24/09/05','John Coates LRPS','Kerthua Park, Mevagissey, Cornwall, UK','','');
photos[104] = new photo(1946991,'130247','','gallery','http://www3.clikpic.com/johnboy/images/Rita and Clarissa.gif',391,500,'Rita and Clarissa','http://www3.clikpic.com/johnboy/images/Rita and Clarissa_thumb.gif',130, 166,1, 1,'Rita and her young cria Clarissa photographed after shearing','17/07/05','John Coates LRPS','Kerthua Park, Mevagissey, Cornwall,UK','','');
photos[105] = new photo(1993860,'130247','','gallery','http://www3.clikpic.com/johnboy/images/x-orpheus.gif',500,375,'Classical Orpheus','http://www3.clikpic.com/johnboy/images/x-orpheus_thumb.gif',130, 98,1, 1,'It\'s no wonder this macho boy is looking pleased, he\'s the farm stud male alpaca','10/05/05','John Coates LRPS','Kerthua Park, Near Mevagissey, Cornwall, UK','','');
photos[106] = new photo(1993842,'130247','','gallery','http://www3.clikpic.com/johnboy/images/x-alpacas-in-clover.gif',500,364,'Alpacas in clover','http://www3.clikpic.com/johnboy/images/x-alpacas-in-clover_thumb.gif',130, 95,1, 1,'A group of \"coloured alpacas\" enjoynig sweet clover at Kerthua Park Alpaca Farm','30/06/04','John Coates LRPS','Kerthua Park, Near Mevagissey, Cornwall, UK','','');
photos[107] = new photo(1956725,'130247','','gallery','http://www3.clikpic.com/johnboy/images/Snow-babe-Diana.gif',361,312,'Snow babe Diana','http://www3.clikpic.com/johnboy/images/Snow-babe-Diana_thumb.gif',130, 112,1, 1,'This alpaca in the snow was not photographed in the mountains of Peru, but in Cornwall, UK','25/02/04','John Coates LRPS','Kerthua Park, Near mevagissey, Cornwall, UK','','');
photos[108] = new photo(1947008,'130247','','gallery','http://www3.clikpic.com/johnboy/images/Snowy-alpacas.gif',500,421,'Alpacas in the snow','http://www3.clikpic.com/johnboy/images/Snowy-alpacas_thumb.gif',130, 109,0, 0,'Alpacas, mother and daughter weathering the snow storm','11/02/04','John Coates LRPS','Kerthua Park, Mevagissey, Cornwall, UK','','');
photos[109] = new photo(1947082,'130247','','gallery','http://www3.clikpic.com/johnboy/images/Guard-dog.gif',385,460,'Guard Dog','http://www3.clikpic.com/johnboy/images/Guard-dog_thumb.gif',130, 155,1, 1,'Farm dog Forrest Gump keeping a watchfull eye on Katie and her youngster Belinda','28/01/04','John Coates LRPS','Kerthua Park, Mevagissey, Cornwall, UK','','');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
galleries = new Array();
galleries[0] = new gallery(130245,'2591249,2591171,2580889,2010989,2010972,2010965,2010960,2010958,2010954,2010952,2010934,2010932,1990195,1990186,1990178,1958143,1950613,1950609,1950603,1950591,1950583,1950576,1950567,1950560,1950556,1950553,1950547','People','gallery');
galleries[1] = new gallery(130244,'2591298,2591254,2588311,2588222,2001270,2001269,2001256,2001213,2001182,2001178,2001162,1956728,1950382,1950371,1950368,1950363,1950358,1950357,1950350,1950343,1949785','Street','gallery');
galleries[2] = new gallery(3999,'1993818,1947476,1947467,1947454,1947430,1947424,1947403,1947350,1947344,1947337,1947334','Landscapes','gallery');
galleries[3] = new gallery(130243,'1993808,1993787,1993734,1993702,1993664,1993649,1956720,1949633,1949622,1949618,1949611,1949604,1949598,1949585,1949583,1949581,1949575','Seascapes','gallery');
galleries[4] = new gallery(130246,'1997588,1997576,1997554,1997552,1997549,1956732,1950745,1950744,1950738,1950731,1950713,1950707','Nature','gallery');
galleries[5] = new gallery(130247,'2609465,2007663,2007553,2007545,2001367,1993860,1993842,1990205,1956725,1952691,1952682,1947082,1946991,1946987,1946985,1946980','Alpacas','gallery');

