/***************************************************************************
* 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('3416108,3416044,3415957,3415940,3364078,3352542,3352529,3352500,3351615,2246187,2246186,2246183,2188803,1076721,1056819,1056816,1056273,1056199,1056076,1056067');
	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('3416108,3416044,3415957,3415940,3364078,3352542,3352529,3352500,3351615,2246187,2246186,2246183,2188803,1076721,1056819,1056816,1056273,1056199,1056076,1056067');
	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 && !((1) || (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 = 'Argus Images: ' + 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(1059950,'78456','','gallery','http://www3.clikpic.com/Argonaut/images/Devon116.jpg',500,333,'Woolacombe bay after the evening rain.','http://www3.clikpic.com/Argonaut/images/Devon116_thumb.jpg',130, 87,0, 0,'Taken from the Northern end of Woolacombe Bay, as the sky clears following a (brief) downpour.','','','','','');
photos[1] = new photo(1056819,'78456','','gallery','http://www3.clikpic.com/Argonaut/images/Devon122.jpg',500,365,'Into the blue','http://www3.clikpic.com/Argonaut/images/Devon122_thumb.jpg',130, 95,1, 1,'','','','','','');
photos[2] = new photo(2246183,'78456','','gallery','http://www3.clikpic.com/Argonaut/images/tranquility.jpg',500,333,'Tranquility','http://www3.clikpic.com/Argonaut/images/tranquility_thumb.jpg',130, 87,1, 0,'A peaceful moment caught on the turn of the tide. The Great Orme is perfectly reflected on an unusually calm sea.','','John Hibbs','Conwy Estuary, North Wales','','');
photos[3] = new photo(1056273,'78456','','gallery','http://www3.clikpic.com/Argonaut/images/Devon106.jpg',500,333,'Evening light.','http://www3.clikpic.com/Argonaut/images/Devon106_thumb.jpg',130, 87,1, 0,'Making the most of the day.','','','Woolacombe Beach North Devon','','');
photos[4] = new photo(1056816,'78456','','gallery','http://www3.clikpic.com/Argonaut/images/Devon011.jpg',500,333,'Woolacombe bay at sunset','http://www3.clikpic.com/Argonaut/images/Devon011_thumb.jpg',130, 87,1, 0,'','','','','','');
photos[5] = new photo(2082859,'78456','','gallery','http://www3.clikpic.com/Argonaut/images/Wales Easter 2008 0251.jpg',500,505,'Life on the beach.','http://www3.clikpic.com/Argonaut/images/Wales Easter 2008 0251_thumb.jpg',130, 131,0, 0,'This image summons childhood memories of walks on the beach, endless summer days, the joy of discovery.......','','','','','');
photos[6] = new photo(1056067,'78419','','gallery','http://www3.clikpic.com/Argonaut/images/duckling2.jpg',465,519,'','http://www3.clikpic.com/Argonaut/images/duckling2_thumb.jpg',130, 145,1, 0,'','','','','','');
photos[7] = new photo(1056071,'78419','','gallery','http://www3.clikpic.com/Argonaut/images/Heron1.jpg',465,523,'','http://www3.clikpic.com/Argonaut/images/Heron1_thumb.jpg',130, 146,0, 0,'','','','','','');
photos[8] = new photo(1068806,'78419','','gallery','http://www3.clikpic.com/Argonaut/images/shy_red.jpg',465,457,'Red Squirrel','http://www3.clikpic.com/Argonaut/images/shy_red_thumb.jpg',130, 128,0, 0,'A rare glimpse of a shy red squirrel','','','','','Red Squirrel');
photos[9] = new photo(1056076,'78419','','gallery','http://www3.clikpic.com/Argonaut/images/IMG_0080.jpg',465,310,'','http://www3.clikpic.com/Argonaut/images/IMG_0080_thumb.jpg',130, 87,1, 0,'','','','','','');
photos[10] = new photo(2188803,'78419','','gallery','http://www3.clikpic.com/Argonaut/images/buttefly resting.jpg',500,403,'Butterfly at rest','http://www3.clikpic.com/Argonaut/images/buttefly resting_thumb.jpg',130, 105,1, 0,'','','','','','');
photos[11] = new photo(2188807,'78419','','gallery','http://www3.clikpic.com/Argonaut/images/Starling 2.jpg',500,667,'Starling with iridescent feathers','http://www3.clikpic.com/Argonaut/images/Starling 2_thumb.jpg',130, 173,0, 0,'Another view of a feeding starling, highlighting the iridescence on their feathers.','','John Hibbs','','','');
photos[12] = new photo(3364078,'78419','','gallery','http://www3.clikpic.com/Argonaut/images/2008-06-07 katy\'s flowers_0019.jpg',600,400,'Carnation Heart','http://www3.clikpic.com/Argonaut/images/2008-06-07 katy\'s flowers_0019_thumb.jpg',130, 87,1, 0,'An unusual view of the stamens of a carnation. I love the warm colours, and the way the petals reveal the heart of the flower.','','','','','');
photos[13] = new photo(2188805,'78419','','gallery','http://www3.clikpic.com/Argonaut/images/Starling_1.jpg',500,750,'Leader of the gang.','http://www3.clikpic.com/Argonaut/images/Starling_1_thumb.jpg',130, 195,0, 0,'One of the gang of starlings who run the feeder racket in my garden!<br>\r\nStarlings are in decline in the UK, but are worth encouraging for their antics, often spending as much time arguing as feeding. Their plumage is also worth a second look.','','John hibbs','','','');
photos[14] = new photo(2246185,'78419','','gallery','http://www3.clikpic.com/Argonaut/images/Tiger1.jpg',500,633,'','http://www3.clikpic.com/Argonaut/images/Tiger1_thumb.jpg',130, 165,0, 0,'','','','','','');
photos[15] = new photo(2246186,'78419','','gallery','http://www3.clikpic.com/Argonaut/images/Parrot.jpg',500,496,'He really IS a pretty boy!','http://www3.clikpic.com/Argonaut/images/Parrot_thumb.jpg',130, 129,1, 0,'A handsome red Macaw on show in the welsh Mountain zoo.','','John Hibbs','','','');
photos[16] = new photo(2246187,'78419','','gallery','http://www3.clikpic.com/Argonaut/images/Sad seal.jpg',500,333,'A sad seal?','http://www3.clikpic.com/Argonaut/images/Sad seal_thumb.jpg',130, 87,1, 0,'Don\'t be fooled by the sad brown eyes! This seal was chasing around her pool having great fun within seconds of posing for this photograph.','','','','','');
photos[17] = new photo(2298930,'78419','','gallery','http://www3.clikpic.com/Argonaut/images/2008-06-07 Katy\'s flowers_0036.jpg',500,750,'Light Carnation','http://www3.clikpic.com/Argonaut/images/2008-06-07 Katy\'s flowers_0036_thumb.jpg',130, 195,0, 0,'I love the way the light seems to come from the centre of the flower. This looks especially good as a matt print.','','','','','');
photos[18] = new photo(3415640,'208738','','gallery','http://admin.clikpic.com/Argonaut/images/2008-09-26_29 Lakes 003.jpg',600,900,'Evening on Ullswater','http://admin.clikpic.com/Argonaut/images/2008-09-26_29 Lakes 003_thumb.jpg',130, 195,0, 0,'A dusky evening on Ullswater, looking towards Watermillock from Pooley Bridge','','','','','');
photos[19] = new photo(3415719,'208738','','gallery','http://admin.clikpic.com/Argonaut/images/2008-09-26_29 Lakes 104.jpg',600,900,'Late summer at Buttermere','http://admin.clikpic.com/Argonaut/images/2008-09-26_29 Lakes 104_thumb.jpg',130, 195,0, 0,'A classic lakes view of Buttermere Moss.','','','','','');
photos[20] = new photo(3415940,'208738','','gallery','http://admin.clikpic.com/Argonaut/images/2008-09-26_29 Lakes 127.jpg',600,400,'Buttermere','http://admin.clikpic.com/Argonaut/images/2008-09-26_29 Lakes 127_thumb.jpg',130, 87,1, 0,'A view along Buttermere with Goat Crag and Fleetwith Pike in the distance.','','','','','');
photos[21] = new photo(3416044,'208738','','gallery','http://admin.clikpic.com/Argonaut/images/2009-02-07 Lakes_0039.jpg',600,400,'Winter ice on Derwent Water','http://admin.clikpic.com/Argonaut/images/2009-02-07 Lakes_0039_thumb.jpg',130, 87,1, 0,'Winter 2009 saw ice on Derwent Water, with the higher Derwent Fells covered in snow and ice.','','','','','');
photos[22] = new photo(3415975,'208738','','gallery','http://admin.clikpic.com/Argonaut/images/2009-02-07 Lakes_0017.jpg',600,900,'Winter Flight','http://admin.clikpic.com/Argonaut/images/2009-02-07 Lakes_0017_thumb.jpg',130, 195,0, 0,'A lone Canada goose crosses frozen Derwent Water, with snow covered fells in the backgound','','','','','');
photos[23] = new photo(3416049,'208738','','gallery','http://admin.clikpic.com/Argonaut/images/2009-02-07 Lakes_0054.jpg',600,900,'Winter Freeze','http://admin.clikpic.com/Argonaut/images/2009-02-07 Lakes_0054_thumb.jpg',130, 195,0, 0,'The frozen shores of Derwent Water, with snow covered fells.','','','','','');
photos[24] = new photo(3416108,'208738','','gallery','http://admin.clikpic.com/Argonaut/images/2009-02-07 Lakes_0078_2.jpg',600,900,'Derwent Ice','http://admin.clikpic.com/Argonaut/images/2009-02-07 Lakes_0078_2_thumb.jpg',130, 195,1, 0,'The frozen shallows of Derwent Water, with (snow free!) Cat Bells and the snower higher fells.','','','','','');
photos[25] = new photo(3415957,'208738','','gallery','http://admin.clikpic.com/Argonaut/images/2009-02-07 Lakes_0003.jpg',600,400,'Winter on Derwent Water','http://admin.clikpic.com/Argonaut/images/2009-02-07 Lakes_0003_thumb.jpg',130, 87,1, 0,'A frozen Derwent Water with Cat Bells and snow covered Maiden Moor','','','','','');
photos[26] = new photo(1056126,'78440','','gallery','http://www3.clikpic.com/Argonaut/images/Chatsworth014.jpg',500,750,'Revelation.','http://www3.clikpic.com/Argonaut/images/Chatsworth014_thumb.jpg',130, 195,0, 0,'Revelation is a dynamic sculpture, by Angela Conner. Powered by water, the flower like outer petals slowly reveal the golden globe within...','','','','','Chatsworth - Motion Sculpture');
photos[27] = new photo(1056199,'78440','','gallery','http://www3.clikpic.com/Argonaut/images/Chatsworth015.jpg',500,333,'The House and great cascade','http://www3.clikpic.com/Argonaut/images/Chatsworth015_thumb.jpg',130, 87,1, 0,'','','','','','');
photos[28] = new photo(1056195,'78440','','gallery','http://www3.clikpic.com/Argonaut/images/IMG_0763.jpg',500,750,'The walking Madonna','http://www3.clikpic.com/Argonaut/images/IMG_0763_thumb.jpg',130, 195,0, 0,'The enigmatic Walking Madonna, by Dame Elizabeth Frink.','','','','','');
photos[29] = new photo(1076720,'79595','','gallery','http://www3.clikpic.com/Argonaut/images/2002-02-07Hallpoolorangery.jpg',500,258,'Lyme Hall','http://www3.clikpic.com/Argonaut/images/2002-02-07Hallpoolorangery_thumb.jpg',130, 67,0, 0,'','','','','','');
photos[30] = new photo(1076721,'79595','','gallery','http://www3.clikpic.com/Argonaut/images/2002-02-16.jpg',500,350,'Lyme Hall','http://www3.clikpic.com/Argonaut/images/2002-02-16_thumb.jpg',130, 91,1, 1,'','','','','','');
photos[31] = new photo(1076724,'79595','','gallery','http://www3.clikpic.com/Argonaut/images/2002-02-18hallreflection.jpg',500,749,'The Facade of Lyme Hall reflected in the lake','http://www3.clikpic.com/Argonaut/images/2002-02-18hallreflection_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[32] = new photo(1076728,'79595','','gallery','http://www3.clikpic.com/Argonaut/images/2002-02-25Cagetree.jpg',500,756,'Lyme Moorland','http://www3.clikpic.com/Argonaut/images/2002-02-25Cagetree_thumb.jpg',130, 197,0, 0,'The Moorland of Lyme Park, with the Cage in the distance.','','','','','');
photos[33] = new photo(1076729,'79595','','gallery','http://www3.clikpic.com/Argonaut/images/2002-02-29cage.jpg',500,327,'Lyme Cage','http://www3.clikpic.com/Argonaut/images/2002-02-29cage_thumb.jpg',130, 85,0, 0,'Lyme Cage and the view over Cheshire','','','','','');
photos[34] = new photo(3351463,'204551','','gallery','http://www3.clikpic.com/Argonaut/images/2008-08 Wales 008.jpg',500,333,'Conwy Castle and Harbour','http://www3.clikpic.com/Argonaut/images/2008-08 Wales 008_thumb.jpg',130, 87,0, 0,'A favourite view of the walled town of Conwy. Taken from the marine walk, this shows the Castle, harbour and the Bridges across the Conwy River.','','','','','');
photos[35] = new photo(3351469,'204551','','gallery','http://www3.clikpic.com/Argonaut/images/2008-08 Wales 056.jpg',500,339,'Sailing in the Conwy estuary.','http://www3.clikpic.com/Argonaut/images/2008-08 Wales 056_thumb.jpg',130, 88,0, 0,'Taken during the 2008 Conwy river festival, this group of vintage boats battle the tide in front of the Great Orme','','','','','');
photos[36] = new photo(3351769,'204551','','gallery','http://www3.clikpic.com/Argonaut/images/2008-08 Wales 635 grad.jpg',500,750,'Mountain Stream','http://www3.clikpic.com/Argonaut/images/2008-08 Wales 635 grad_thumb.jpg',130, 195,0, 0,'The lanscape of Wales is made by mountains and water. Taken off the A5 near Capel Curig.','','','','','');
photos[37] = new photo(3352556,'204551','','gallery','http://www3.clikpic.com/Argonaut/images/Wales Easter 2008 301.jpg',600,900,'Caernarfon Castle','http://www3.clikpic.com/Argonaut/images/Wales Easter 2008 301_thumb.jpg',130, 195,0, 0,'This imposing 11th Century castle dominates the waterfront of Caernarfon.','','','','','');
photos[38] = new photo(3352529,'204551','','gallery','http://www3.clikpic.com/Argonaut/images/Wales Easter 2008 237.jpg',600,400,'Tranquility','http://www3.clikpic.com/Argonaut/images/Wales Easter 2008 237_thumb.jpg',130, 87,1, 0,'A personal favourite! This taken across the Conwy estuary on a beautiful still day, the Great Orme is reflected on the quiet water.','','','','','');
photos[39] = new photo(3351615,'204551','','gallery','http://www3.clikpic.com/Argonaut/images/2008-08 Wales 343-3_2_1.jpg',500,333,'The walled town of Conwy','http://www3.clikpic.com/Argonaut/images/2008-08 Wales 343-3_2_1_thumb.jpg',130, 87,1, 0,'The medieval walled town of conwy nestles between the mountains and the sea. An important military location in the past, and a fascinating place to visit today.','','','','','');
photos[40] = new photo(3351584,'204551','','gallery','http://www3.clikpic.com/Argonaut/images/2008-08 Wales 166.jpg',500,750,'Castle Street, Conwy','http://www3.clikpic.com/Argonaut/images/2008-08 Wales 166_thumb.jpg',130, 195,0, 0,'A view of Caste Street Conwy. The arch through the town wall frames the narrow main street which leads up to the imposing castle towers.','','','','','');
photos[41] = new photo(3352500,'204551','','gallery','http://www3.clikpic.com/Argonaut/images/Wales Easter 2008 0891.jpg',600,400,'The Menai Suspension Bridge & snow capped Snowdonia','http://www3.clikpic.com/Argonaut/images/Wales Easter 2008 0891_thumb.jpg',130, 87,1, 0,'This stunning view from Anglesey shows the Menai suspension bridge, designed by Thomas Telford, with the last traces of the winter snows lingering on the peaks of Snowdonia.','','','','','');
photos[42] = new photo(3351635,'204551','','gallery','http://www3.clikpic.com/Argonaut/images/2008-08 Wales 631.jpg',500,750,'Welsh Mountain Valley','http://www3.clikpic.com/Argonaut/images/2008-08 Wales 631_thumb.jpg',130, 195,0, 0,'A beautiful scene typical of  the welsh valleys. This was taken just before a downpour near Capel Curig.','','','','','');
photos[43] = new photo(3352542,'204551','','gallery','http://www3.clikpic.com/Argonaut/images/Lighthouse.jpg',600,849,'Penmon Lighthouse, Anglesey','http://www3.clikpic.com/Argonaut/images/Lighthouse_thumb.jpg',130, 184,1, 0,'This lighhouse stands between Penmon head and Puffin Island. Many travellers have welcomed its light in these difficult and dangerous waters.<br>\r\n<br>\r\n(Note this image can be printed without the border, on request - contact sales@argus-images.net)','','','','','');
photos[44] = new photo(3363986,'204551','','gallery','http://www3.clikpic.com/Argonaut/images/2008-08 Wales 064.jpg',600,900,'Vinatage sail.','http://www3.clikpic.com/Argonaut/images/2008-08 Wales 064_thumb.jpg',130, 195,0, 0,'Taken during the 2008 river festival, this classic sails up the Conwy estuary in front of the Great Orme','','','','','');
photos[45] = new photo(1549991,'106245','','gallery','http://www3.clikpic.com/Argonaut/images/Werneth Low Nov 06-43.jpg',500,749,'The war memorial, werneth Low','http://www3.clikpic.com/Argonaut/images/Werneth Low Nov 06-43_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[46] = new photo(1550027,'106245','','gallery','http://www3.clikpic.com/Argonaut/images/Werneth Low Nov 06-32.jpg',500,466,'Werneth Low','http://www3.clikpic.com/Argonaut/images/Werneth Low Nov 06-32_thumb.jpg',130, 121,0, 0,'','','','','','');
photos[47] = new photo(3244436,'106245','','gallery','http://www3.clikpic.com/Argonaut/images/Werneth Low Nov 06-28.jpg',500,333,'Winter Colour, Werneth Low','http://www3.clikpic.com/Argonaut/images/Werneth Low Nov 06-28_thumb.jpg',130, 87,0, 0,'A blaze of winter colour  on a sunny November day.','','','','','');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
galleries = new Array();
galleries[0] = new gallery(78456,'1056819','Beach Life','gallery');
galleries[1] = new gallery(78419,'3364078,2298930,2246187,2246186,2246185,2188807,2188805,2188803,1068806,1056076','Birds, Bees & Flowers','gallery');
galleries[2] = new gallery(208738,'3416108,3416049,3416044,3415975,3415957,3415940,3415719,3415640','The Lake District','gallery');
galleries[3] = new gallery(78440,'1056199,1056195,1056126','Chatsworth','gallery');
galleries[4] = new gallery(79595,'1076721','Lyme Park','gallery');
galleries[5] = new gallery(204551,'3363986,3352556,3352542,3352529,3352500,3351769,3351635,3351615,3351584,3351469','North Wales','gallery');
galleries[6] = new gallery(106245,'3244436,1550027,1549991','Werneth Low','gallery');

