/***************************************************************************
* 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) {
	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;
}
/***************************************************************************
* 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('1577245,1577227,1148152,1105548,1100721,1099989,1099951,1099943,1099930,1099772,1099237,1099186');
	for (j = 0; j < photos.length; j++) {
		if (photos[j].id == imageID) {
			if (!basic) {
			img.src = 'images/' + 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 = 'images/' + 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('1577245,1577227,1148152,1105548,1100721,1099989,1099951,1099943,1099930,1099772,1099237,1099186');
	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="images/' + 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 && !(1)) {
		debug('In updateImage');
		debug('setting  img src = ' + photos[nextImg].src);
		
					
			document.getElementById('imagePhoto').innerHTML = '<img class="mainphoto" src="images/' + photos[nextImg].src + ' " id="mainPic" name="mainPic" width="' + photos[nextImg].width + '" height="' + photos[nextImg].height + '" alt="' + photos[nextImg].caption + '" border="0">';
						field.value = photos[nextImg].id;
			document.getElementById('imageTitle').innerHTML = photos[nextImg].caption;
			/* 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 = 'images/' + 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(1099186,'80879','V004','gallery','gondolas1.jpg',500,334,'Gondolas at rest, St.Marks Square','gondolas1_thumb.jpg',130, 87,1, 0,'A famous row of Gondolas by ST.Marks Square..... I like the symetry of it. A touch of motion blur and noise was given to add some atmsophere.','','','');
photos[1] = new photo(1109880,'80884','D008','gallery','D008_two_trees1.jpg',500,291,'Two Trees 1','D008_two_trees1_thumb.jpg',130, 76,0, 0,'','','','');
photos[2] = new photo(1148165,'80880','E010','gallery','Weisbaden_ cafe.jpg',500,363,'Weisbaden Cafe, Germany','Weisbaden_ cafe_thumb.jpg',130, 94,0, 0,'','','','');
photos[3] = new photo(1148172,'80880','E009','gallery','heidleb3.jpg',420,600,'Heidleberg cafe, Germany','heidleb3_thumb.jpg',130, 186,0, 0,'','','','');
photos[4] = new photo(1176647,'80879','V011','gallery','IMG_1140 gondola1.jpg',500,333,'Quiet Canal','IMG_1140 gondola1_thumb.jpg',130, 87,0, 1,'A quiet moment as the gondola slips by. I\'ve added a little atmosphere with blur, noise and some burning in.','','','');
photos[5] = new photo(1577227,'80878','F016','gallery','F016  rowing boat.jpg',369,228,'Rowing Boat','F016  rowing boat_thumb.jpg',130, 80,1, 0,'Evening light on the Vilaine Estuary','','','');
photos[6] = new photo(1577236,'80878','F017','gallery','F017  metal sculpture.jpg',429,768,'Metal Structures','F017  metal sculpture_thumb.jpg',130, 233,0, 0,'Strange metal structures found outside the church at Guerand.','','','');
photos[7] = new photo(1577241,'80878','F018','gallery','F018  metal sculpture 2.jpg',500,1107,'Metal Structures 2','F018  metal sculpture 2_thumb.jpg',130, 288,0, 0,'','','','');
photos[8] = new photo(1577245,'80876','W005','gallery','W005 _tulips close up 2.jpg',500,499,'Tulips close -up 2','W005 _tulips close up 2_thumb.jpg',130, 130,1, 1,'','','','');
photos[9] = new photo(1099774,'80882','L002','gallery','canal_france.jpg',500,197,'Canal, Dinan','canal_france_thumb.jpg',130, 51,0, 0,'','','','');
photos[10] = new photo(1099930,'80884','D004','gallery','D004_spichwick_boy_with_net1.jpg',500,334,'Boy with net at Spichwick','D004_spichwick_boy_with_net1_thumb.jpg',130, 87,1, 0,'A lucky encounter .....I was trying to photograph the trees and refections when this boy arrived ...!','','','');
photos[11] = new photo(1099937,'80885','UK001','gallery','UK001_bath.jpg',500,333,'Bath','UK001_bath_thumb.jpg',130, 87,0, 0,'I liked the lead into the picture with the fence and the birds adding interest.','','','');
photos[12] = new photo(1099943,'80875','F001','gallery','pressed_flower1.jpg',500,640,'Pressed flower - 1','pressed_flower1_thumb.jpg',130, 166,1, 0,'AFter pressing the flowers I scanned them into the computer using a slide scanner....they are very small flowers !','','','');
photos[13] = new photo(1099989,'80876','W004','gallery','W004 _tulips close up1JPG.jpg',500,700,'Tulips','W004 _tulips close up1JPG_thumb.jpg',130, 182,1, 0,'Just a small part of a larger photo of a bunch of tulips in my lounge window.','','','');
photos[14] = new photo(1100309,'80878','F001','gallery','F001_annecy1.jpg',500,326,'Annecy','F001_annecy1_thumb.jpg',130, 85,0, 1,'The beautiful city of Annecy is a must for any trip to the west of France.','','','');
photos[15] = new photo(1105558,'80881','S001','gallery','S001_beach_france_IR.jpg',500,360,'French Beach - IR','S001_beach_france_IR_thumb.jpg',130, 94,0, 0,'','','','');
photos[16] = new photo(1105566,'80883','U001','gallery','U001_bath.jpg',500,333,'Bath','U001_bath_thumb.jpg',130, 87,0, 0,'','','','');
photos[17] = new photo(1110998,'80880','E001','gallery','E001_algarve_roof1.jpg',500,327,'Algarve Roof','E001_algarve_roof1_thumb.jpg',130, 85,0, 0,'','','','');
photos[18] = new photo(1099237,'80879','V005','gallery','gondolas_rialto.jpg',500,271,'Gondolas by the Rialto Bridge','gondolas_rialto_thumb.jpg',130, 70,1, 0,'This shot was taken from the water bus when it stopped at the rialto....I then did some work in Photoshop Elements.','','','');
photos[19] = new photo(1099950,'80875','F002','gallery','pressed_flower2.jpg',500,338,'Pressed flower 2','pressed_flower2_thumb.jpg',130, 88,0, 0,'','','','');
photos[20] = new photo(1100338,'80878','F002','gallery','F002_blacksmiths.jpg',500,421,'Blacksmiths','F002_blacksmiths_thumb.jpg',130, 109,0, 0,'These two were at a country fair. The original was a colour slide.','','','');
photos[21] = new photo(1105551,'80882','L008','gallery','L007_dartmoor_trees2.jpg',500,222,'Dartmoor Trees - 2','L007_dartmoor_trees2_thumb.jpg',130, 58,0, 0,'','','','');
photos[22] = new photo(1105559,'80881','S002','gallery','S002_eel_nets_stnazaire.jpg',500,286,'Eel Nets at St.Nazaire','S002_eel_nets_stnazaire_thumb.jpg',130, 74,0, 0,'','','','');
photos[23] = new photo(1105571,'80883','U006','gallery','U006_strasburg_ train.jpg',500,324,'Strasburg','U006_strasburg_ train_thumb.jpg',130, 84,0, 0,'','','','');
photos[24] = new photo(1109865,'80884','D001','gallery','D001_dartmoor_pony.jpg',500,244,'Dartmoor Pony','D001_dartmoor_pony_thumb.jpg',130, 63,0, 0,'','','','');
photos[25] = new photo(1109888,'80885','UK002','gallery','UK002_bluebell_wood.jpg',500,496,'Bluebell Wood','UK002_bluebell_wood_thumb.jpg',130, 129,0, 0,'','','','');
photos[26] = new photo(1111000,'80880','E002','gallery','E002_andratx_majorca1.jpg',500,416,'Andratx, Majorca - 1','E002_andratx_majorca1_thumb.jpg',130, 108,0, 0,'','','','');
photos[27] = new photo(1099285,'80879','V006','gallery','v006_gondolas_rialto_abstract.jpg',500,677,'Rialto Abstract','v006_gondolas_rialto_abstract_thumb.jpg',130, 176,0, 0,'A more abstract view of the gondolas infront of the Rialto.','','','');
photos[28] = new photo(1099951,'80875','F003','gallery','pressed_flower3.jpg',500,777,'Pressed flower-3','pressed_flower3_thumb.jpg',130, 202,1, 0,'','','','');
photos[29] = new photo(1099982,'80876','W002','gallery','W002_sycamore_seeds.jpg',500,321,'Sycamore seeds','W002_sycamore_seeds_thumb.jpg',130, 83,0, 0,'','','','');
photos[30] = new photo(1099985,'80876','W003','gallery','W003_toads.jpg',500,397,'Toads','W003_toads_thumb.jpg',130, 103,0, 0,'I made a suptle change here....a little smile on the male\'s face !','','','');
photos[31] = new photo(1100384,'80878','F003','gallery','F003_bluevan1.jpg',500,767,'Bluevan','F003_bluevan1_thumb.jpg',130, 199,0, 0,'','','','');
photos[32] = new photo(1105554,'80882','L008','gallery','L008_dartmoor_trees3.jpg',500,291,'Dartmoor Trees - 3','L008_dartmoor_trees3_thumb.jpg',130, 76,0, 0,'','','','');
photos[33] = new photo(1105561,'80881','S003','gallery','S003_people_on_beach.jpg',500,252,'Beach Scene - Algarve','S003_people_on_beach_thumb.jpg',130, 66,0, 0,'','','','');
photos[34] = new photo(1105575,'80883','U008','gallery','U008_water_pump-germany.jpg',500,359,'Water Pump Housing, Germany','U008_water_pump-germany_thumb.jpg',130, 93,0, 0,'','','','');
photos[35] = new photo(1109868,'80884','D002','gallery','D002_river_dart.jpg',500,316,'River Dart','D002_river_dart_thumb.jpg',130, 82,0, 0,'','','','');
photos[36] = new photo(1109892,'80885','UK003','gallery','UK003_Crediton_churchyard.jpg',500,375,'Crediton Church','UK003_Crediton_churchyard_thumb.jpg',130, 98,0, 0,'','','','');
photos[37] = new photo(1111005,'80880','E003','gallery','E003_andratx_majorca2.jpg',500,375,'Andratx, Majorca - 2','E003_andratx_majorca2_thumb.jpg',130, 98,0, 0,'','','','');
photos[38] = new photo(1099326,'80879','V001','gallery','v001_burano_1.jpg',500,500,'Burano Cottage','v001_burano_1_thumb.jpg',130, 130,0, 0,'The Island of Burano has the most magnificently coloured cottages.','','','');
photos[39] = new photo(1099952,'80875','F004','gallery','pressed_flower4.jpg',500,332,'Pressed Flower - 4','pressed_flower4_thumb.jpg',130, 86,0, 0,'','','','');
photos[40] = new photo(1099980,'80876','W001','gallery','W001_seeds.jpg',500,342,'Seeds','W001_seeds_thumb.jpg',130, 89,0, 0,'','','','');
photos[41] = new photo(1100394,'80878','F004','gallery','F004_colmar.jpg',500,487,'Colmar','F004_colmar_thumb.jpg',130, 127,0, 0,'','','','');
photos[42] = new photo(1105563,'80881','S004','gallery','S004_sandersfoot_beach.jpg',500,388,'Sandersfoot Beach - Wales','S004_sandersfoot_beach_thumb.jpg',130, 101,0, 0,'','','','');
photos[43] = new photo(1105568,'80883','U004','gallery','U004_old_man_roman_ruin.jpg',500,538,'Old MAn in Roman Ruin','U004_old_man_roman_ruin_thumb.jpg',130, 140,0, 0,'','','','');
photos[44] = new photo(1109871,'80884','D003','gallery','D003_silver_birch2.jpg',500,393,'Silver Birch','D003_silver_birch2_thumb.jpg',130, 102,0, 0,'','','','');
photos[45] = new photo(1109894,'80885','D004','gallery','UK004_dawlish_warren.jpg',500,327,'Dawlish Warren','UK004_dawlish_warren_thumb.jpg',130, 85,0, 0,'The only photo on my site that hasn\'t been alteredt in any way !!','','','');
photos[46] = new photo(1111007,'80880','E004','gallery','E004_german_window.jpg',500,665,'Window in Germany','E004_german_window_thumb.jpg',130, 173,0, 0,'','','','');
photos[47] = new photo(1099338,'80879','V002','gallery','v002_burano_2.jpg',500,508,'Another colourful cottage on Burano.','v002_burano_2_thumb.jpg',130, 132,0, 0,'','','','');
photos[48] = new photo(1099953,'80875','F005','gallery','Pressed_flower5.jpg',500,340,'Pressed Flower 5','Pressed_flower5_thumb.jpg',130, 88,0, 0,'','','','');
photos[49] = new photo(1100397,'80878','F005','gallery','F005_memorial.jpg',500,686,'Memorial','F005_memorial_thumb.jpg',130, 178,0, 0,'This was actually taken in Belgium , near Ypres.','','','');
photos[50] = new photo(1105545,'80882','L005','gallery','L005dartmoor_pony.jpg',500,244,'Dartmoor Pony ','L005dartmoor_pony_thumb.jpg',130, 63,0, 0,'','','','');
photos[51] = new photo(1105569,'80883','U005','gallery','U005_paris.jpg',500,750,'Paris','U005_paris_thumb.jpg',130, 195,0, 0,'','','','');
photos[52] = new photo(1105573,'80883','U007','gallery','U007_venice.jpg',500,671,'Venice','U007_venice_thumb.jpg',130, 174,0, 0,'','','','');
photos[53] = new photo(1109873,'80884','D005','gallery','D005_tree and rocks at CoombestoneJPG.jpg',500,398,'Coombestone Tor','D005_tree and rocks at CoombestoneJPG_thumb.jpg',130, 103,0, 0,'','','','');
photos[54] = new photo(1109895,'80885','D005','gallery','UK005_ghost_in_the_woods.jpg',500,786,'Ghost in the Woods','UK005_ghost_in_the_woods_thumb.jpg',130, 204,0, 0,'The woods from UK but the ghost from Malta !','','','');
photos[55] = new photo(1111011,'80880','E005','gallery','E005_opatia_croatia.jpg',500,742,'Opatia, Croatia','E005_opatia_croatia_thumb.jpg',130, 193,0, 0,'I waited ages to have a picture with no people....then a judge says it\'s a pity there weren\'t any people in it !!  Actually, I think he\'s right.','','','');
photos[56] = new photo(1099344,'80879','V007','gallery','v007_grand_canal.jpg',500,184,'The Grand Canal','v007_grand_canal_thumb.jpg',130, 48,0, 0,'A broad view fo the Grand Canal from the Rialto Bridge. I used a filter to create a painterly effect.','','','');
photos[57] = new photo(1099954,'80875','F006','gallery','pressed_flower6.jpg',500,341,'Pressed Flower 6','pressed_flower6_thumb.jpg',130, 89,0, 0,'','','','');
photos[58] = new photo(1100404,'80878','F006','gallery','F006_onions.jpg',500,757,'Onions','F006_onions_thumb.jpg',130, 197,0, 0,'There is a cafe in Roscoff that always has this old bicycle with oninos hanging from it.','','','');
photos[59] = new photo(1105542,'80882','L004','gallery','L004_coombestone_tor_devon2.jpg',500,398,'Coombestone Tor, Devon','L004_coombestone_tor_devon2_thumb.jpg',130, 103,0, 0,'','','','');
photos[60] = new photo(1105548,'80882','L006','gallery','L006_dartmoor_trees1.jpg',500,314,'Dartmoor Trees 1','L006_dartmoor_trees1_thumb.jpg',130, 82,1, 0,'','','','');
photos[61] = new photo(1109875,'80884','D006','gallery','D006_trees_and_bracken.jpg',500,460,'Trees and Bracken','D006_trees_and_bracken_thumb.jpg',130, 120,0, 0,'','','','');
photos[62] = new photo(1109897,'80885','D006','gallery','UK006_Sandersfoot.jpg',500,388,'Sandersfoot, Wales','UK006_Sandersfoot_thumb.jpg',130, 101,0, 0,'','','','');
photos[63] = new photo(1111017,'80880','E006','gallery','E006_pollensa_majorca.jpg',500,691,'Pollensa, Majorca','E006_pollensa_majorca_thumb.jpg',130, 180,0, 0,'I\'m looking for a photo of a little old lady dressed in black going up some stairs that I can put into this photo.','','','');
photos[64] = new photo(1099350,'80879','V008','gallery','v008_grand_canal_mono.jpg',500,671,'The Grand Canal','v008_grand_canal_mono_thumb.jpg',130, 174,0, 0,'A simple picture made even simpler by being only mono. A touch of blur and noise was added.','','','');
photos[65] = new photo(1099957,'80875','F007','gallery','pressed_flower7.jpg',500,335,'Pressed Flower 7','pressed_flower7_thumb.jpg',130, 87,0, 0,'','','','');
photos[66] = new photo(1100418,'80878','F007','gallery','F007_sails1.jpg',500,450,'Sails','F007_sails1_thumb.jpg',130, 117,0, 0,'','','','');
photos[67] = new photo(1105556,'80882','L009','gallery','L009_dartmoor_wall.jpg',500,470,'Dartmoor Stone Wall','L009_dartmoor_wall_thumb.jpg',130, 122,0, 0,'','','','');
photos[68] = new photo(1109877,'80884','D007','gallery','D007_trees_at_coombestone_tor.jpg',500,314,'Trees at Coombestone Tor','D007_trees_at_coombestone_tor_thumb.jpg',130, 82,0, 0,'Perhaps my most best selling photo.','','','');
photos[69] = new photo(1109899,'80885','D007','gallery','UK007_steam_at_buchfastleigh.jpg',500,375,'Steam up at Buckfastleigh','UK007_steam_at_buchfastleigh_thumb.jpg',130, 98,0, 0,'','','','');
photos[70] = new photo(1111020,'80880','E007','gallery','E007_valetta_malta.jpg',500,389,'Valetta, Malta','E007_valetta_malta_thumb.jpg',130, 101,0, 0,'I thought the shapes of the houses suited this interpretation, though it went down like a lead balloon at my photo club !','','','');
photos[71] = new photo(1099361,'80879','V003','gallery','v003_burano_3.jpg',500,496,'Burano','v003_burano_3_thumb.jpg',130, 129,0, 0,'','','','');
photos[72] = new photo(1099772,'80882','L001','gallery','windmills_germany.jpg',500,666,'Wind Farm, Germany','windmills_germany_thumb.jpg',130, 173,1, 0,'Christmas time and a walk in the German snow. The wind farm was a few miles away so I moved them over, added some blur and noise.','','','');
photos[73] = new photo(1099959,'80875','F008','gallery','pressed_flower8.jpg',500,363,'Pressed Flower 8','pressed_flower8_thumb.jpg',130, 94,0, 0,'','','','');
photos[74] = new photo(1100425,'80878','F008','gallery','F008_rowing_ boat.jpg',500,309,'Rowing Boat','F008_rowing_ boat_thumb.jpg',130, 80,0, 0,'','','','');
photos[75] = new photo(1109902,'80885','D008','gallery','UK008_stover_lake.jpg',500,486,'Stover Lake, Devon','UK008_stover_lake_thumb.jpg',130, 126,0, 0,'','','','');
photos[76] = new photo(1111022,'80880','E008','gallery','E008_vineyard_germany.jpg',500,278,'Vinyard on the Rhine','E008_vineyard_germany_thumb.jpg',130, 72,0, 0,'','','','');
photos[77] = new photo(1099962,'80875','F009','gallery','pressed_flower9.jpg',500,739,'Pressed Flower 9','pressed_flower9_thumb.jpg',130, 192,0, 0,'','','','');
photos[78] = new photo(1100433,'80878','F009','gallery','F009_three_boats.jpg',500,461,'Three Boats','F009_three_boats_thumb.jpg',130, 120,0, 0,'','','','');
photos[79] = new photo(1105539,'80882','L003','gallery','L003_cockington_devon.jpg',500,718,'Cockington, Devon IR','L003_cockington_devon_thumb.jpg',130, 187,0, 0,'','','','');
photos[80] = new photo(1109882,'80884','D009','gallery','D009_two_trees2.jpg',500,222,'Two Trees 2','D009_two_trees2_thumb.jpg',130, 58,0, 0,'','','','');
photos[81] = new photo(1109909,'80885','D009','gallery','UK009_stover_woods.jpg',500,614,'Stover Woods, Devon','UK009_stover_woods_thumb.jpg',130, 160,0, 0,'','','','');
photos[82] = new photo(1148153,'80879','V010','gallery','canal montage4.jpg',500,368,'canal montage 2','canal montage4_thumb.jpg',130, 96,0, 0,'Just a part of the montage 1 image.','','','');
photos[83] = new photo(1099966,'80875','F010','gallery','pressed_flower10.jpg',500,771,'Pressed Fern','pressed_flower10_thumb.jpg',130, 200,0, 0,'','','','');
photos[84] = new photo(1100438,'80878','F010','gallery','F010_vannes.jpg',500,196,'Vannes','F010_vannes_thumb.jpg',130, 51,0, 0,'','','','');
photos[85] = new photo(1100721,'80878','F011','gallery','F011_artichokes.jpg',423,500,'Artichokes','F011_artichokes_thumb.jpg',130, 154,1, 0,'French markets are great places for photography.','','','');
photos[86] = new photo(1109885,'80884','D010','gallery','D010_wallJPG.jpg',500,470,'Dartmoor wall','D010_wallJPG_thumb.jpg',130, 122,0, 0,'','','','');
photos[87] = new photo(1148152,'80879','V09','gallery','canal montage3.jpg',400,600,'Canal montage 1','canal montage3_thumb.jpg',130, 195,1, 1,'I found this lovely canal with perfect light...but no gondola !  So I took the photo and I\'ve used a gondola from another scene. Blur and noise hide any deficiencies !!','','','');
photos[88] = new photo(1099970,'80875','F011','gallery','pressed_flower11.jpg',500,418,'Pressed Flower 11','pressed_flower11_thumb.jpg',130, 109,0, 0,'','','','');
photos[89] = new photo(1099972,'80875','F012','gallery','pressed_flower12.jpg',500,335,'Pressed Flower 12','pressed_flower12_thumb.jpg',130, 87,0, 0,'','','','');
photos[90] = new photo(1100732,'80878','F012','gallery','F012_vilaine_estuary.jpg',500,303,'River Vilaine Estuary','F012_vilaine_estuary_thumb.jpg',130, 79,0, 0,'','','','');
photos[91] = new photo(1177065,'80879','V012','gallery','venetian window.jpg',453,600,'Venetian Window','venetian window_thumb.jpg',130, 172,0, 0,'A typical window overlooking a square. I was lucky to spot the reflection of a statue in the window. ','','','');
photos[92] = new photo(1100734,'80878','F013','gallery','F013_melons.jpg',500,337,'Melons','F013_melons_thumb.jpg',130, 88,0, 0,'','','','');
photos[93] = new photo(1100740,'80878','F014','gallery','F014_LaBaule.jpg',500,365,'La Baule','F014_LaBaule_thumb.jpg',130, 95,0, 0,'At the back of La Baule are the most wonderful houses and villas.','','','');
photos[94] = new photo(1100742,'80878','F015','gallery','F015_nectarines.jpg',405,500,'Nectarines','F015_nectarines_thumb.jpg',130, 160,0, 0,'','','','');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
galleries = new Array();
galleries[0] = new gallery(80884,'1109885,1109882,1109880,1109877,1109875,1109873,1109871,1109868,1109865,1099930','Dartmoor','gallery');
galleries[1] = new gallery(80878,'1100309','France','gallery');
galleries[2] = new gallery(80882,'1105556,1105554,1105551,1105548,1105545,1105542,1105539,1099774,1099772','Landscape','gallery');
galleries[3] = new gallery(80880,'1148172,1148165,1111022,1111020,1111017,1111011,1111007,1111005,1111000,1110998','Misc. Europe','gallery');
galleries[4] = new gallery(80885,'1109909,1109902,1109899,1109897,1109895,1109894,1109892,1109888,1099937','Misc. UK','gallery');
galleries[5] = new gallery(80876,'1577245','Misc. Wildlife','gallery');
galleries[6] = new gallery(80875,'1099972,1099970,1099966,1099962,1099959,1099957,1099954,1099953,1099952,1099951','Pressed Flowers','gallery');
galleries[7] = new gallery(80881,'1105563,1105561,1105559,1105558','Seascape','gallery');
galleries[8] = new gallery(80883,'1105575,1105573,1105571,1105569,1105568,1105566','Urban','gallery');
galleries[9] = new gallery(80879,'1176647,1148152','Venice','gallery');
galleries[10] = new gallery(80739,'1105575,1105573,1105571,1105569,1105568,1105566,1105563,1105561,1105559,1105558','Mono','gallery');
galleries[11] = new gallery(80720,'1109909,1109902,1109899,1109897,1109895,1109894,1109892,1109888,1109885,1109882','UK ','gallery');
galleries[12] = new gallery(80742,'1176647,1148152,1100309','Europe ','gallery');
galleries[13] = new gallery(80744,'1577245','Wildlife','gallery');

