/***************************************************************************
* 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('2018877,2018843,2018839,1947390,1945678,1945655,1945645,1945635,1945620,1945614,1945399,1945385,1945362,1945348,1944983,1942700,1942683,1942679,1942677,1942673,1942593');
	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('2018877,2018843,2018839,1947390,1945678,1945655,1945645,1945635,1945620,1945614,1945399,1945385,1945362,1945348,1944983,1942700,1942683,1942679,1942677,1942673,1942593');
	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)) {
		debug('In updateImage');
		debug('setting  img src = ' + photos[nextImg].src);
		
					
			document.getElementById('imagePhoto').innerHTML = '<img class="mainphoto" src="' + photos[nextImg].src + ' " id="mainPic" name="mainPic" width="' + photos[nextImg].width + '" height="' + photos[nextImg].height + '" alt="' + photos[nextImg].caption + '" border="0">';
						field.value = photos[nextImg].id;
			document.getElementById('imageTitle').innerHTML = photos[nextImg].caption;
			document.title = photos[nextImg].caption;
			/* apply 'blank' classname to element where */			if ( photos[nextImg].caption == '') {
				document.getElementById('imageTitle').style.className = 'blank';
			}
			else {
				document.getElementById('imageTitle').style.className = 'normal';
			}
						temp = '';
			if (photos[nextImg].description != '') {
				temp = temp +  '<p id="imageDescription">' + photos[nextImg].description + '</p>';
			}
			if (photos[nextImg].photo_ref != '') {
				temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + photos[nextImg].photo_ref + '</p>';
			}
			if (photos[nextImg].takendate != '') {
				debug('Resetting taken date');
				temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + photos[nextImg].takendate + '</p>';
			}
			
			if (photos[nextImg].location != '') {
				debug('Resetting location');
				temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  photos[nextImg].location + '</p>';
			}
			
			if (photos[nextImg].photographer != '') {
				debug('Resetting photographer');
				temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + photos[nextImg].photographer + '</p>';
			}
			if (temp != '') {				temp = temp + '<div class="spacer"></div>';			}					if (temp == '') {
			document.getElementById('imageDetails').style.display = 'none';
		}
		else {
			document.getElementById('imageDetails').style.display = 'block';
		}
		document.getElementById('imageDetails').innerHTML =temp;	
		
	}
	else {
		debug('Redirecting to id ' + photos[nextImg].id);
		window.location = 'photo_' + photos[nextImg].id + '.html';
	}
}

/***************************************************************************
* Show the previous image for a gallery. field = hidden field containing   *
* image_id                                                                 *
*  img = reference to image object in which to show image                  *
***************************************************************************/
function previous(field,img) {


	imageID = field.value;
	for (j = 0; j < photos.length; j++) {
		if (photos[j].id == imageID) {
			break;
		}
	}
	debug('image is ' + j);
	nextImg = -1;
	k = j -1;
	while (nextImg < 0) {
		for (; k >= 0; k--) {
			if (photos[k].galleries_id == photos[j].galleries_id) {
				nextImg = k;
				break;
			}
		}
		if (nextImg == -1) {
			k = photos.length -1;
		}
	}
	if (nextImg != -1) {
		updateImage(nextImg, field,img);	
	}
}

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.
        *
* Gallery_id = id of gallery to choose                                     *
* 
 img = reference to html image                                       *
* in which to show image                                                   *
***************************************************************************/
function showGalleryImage(gallery_id, img) {
	debug('Gallery = ' + gallery_id);
	for (i = 0; i < galleries.length; i++) {
		if (galleries[i].id == gallery_id) {
			imageID = randomListVal(galleries[i].featured_images);
				for (j = 0; j < photos.length; j++) {
					if (photos[j].id == imageID) {
						
						img.src = photos[j].thumbnail;
						img.width = photos[j].thumbnail_width;
						img.height = photos[j].thumbnail_height;
						
						break;
					}
				}
			break;
		}
	} 
	}

/***************************************************************************
* If we have dynamic HTML                                                  *
*  replace the galleries link with a list that                             *
* doesn't include the current gallery                                      *
***************************************************************************/
function showGalleries(gallery_id) {
	debug('Showing links for gallery ' + gallery_id);
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
			debug('Testing gallery ' + galleries[i].id);
			
			if (galleries[i].id != gallery_id) {
				debug('Adding link');
				if (temp != '') {
					temp = temp + ' | ';
				}
				temp = temp + '<a href="gallery_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}
/***************************************************************************
* Create the array of Photo objects                                        *
***************************************************************************/
photos = new Array();
photos[0] = new photo(1950802,'','GRman-Rindomo-Pan-2','','http://www1.clikpic.com/peastland/images/GRman-Rindomo-Pan-2.jpg',598,219,'Looking across Profitas Ilias Monastery towards the snow capped peaks of the Taygetos mountains and, on the left, the Koskaraka and Rindomo gorges; above Vorio, outer Mani..<BR><BR><BR>','http://www1.clikpic.com/peastland/images/GRman-Rindomo-Pan-2_thumb.jpg',130, 48,0, 0,'','','','','','');
photos[1] = new photo(1942679,'127595','GRman-Tayg-14<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-Tayg-14.jpg',600,399,'Autumn in the Viros Gorge near Exochori in the Taygetos mountains, Outer Mani.<BR><BR><BR><br><br><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-Tayg-14_thumb.jpg',130, 86,1, 0,'','','','','','');
photos[2] = new photo(1942673,'127595','GRman-boulari-1<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-boulari-1.jpg',600,390,'Dry stone walls and barren hills, looking towards Boulari from near Gerolimenas in the Deep Mani.<BR><BR><BR><br><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-boulari-1_thumb.jpg',130, 85,1, 0,'','','','','','');
photos[3] = new photo(1945620,'127595','GRman-ch-agitria-5<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-ch-agitria-5.jpg',600,399,'The 13th century Byzantine church of Odigitria, known locally as Agitria, near the village of Stavri in the Deep Mani. <BR><BR><BR><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-ch-agitria-5_thumb.jpg',130, 86,1, 0,'','','','','','');
photos[4] = new photo(2018843,'127595','GRman-flower-30<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-flower-30.jpg',600,387,'Spring brings a riot of wild flowers in the olive groves near Kardamyli in the Outer Mani.<BR><BR><BR><br><br><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-flower-30_thumb.jpg',130, 84,1, 0,'','','','','','');
photos[5] = new photo(1942677,'127595','GRman-flower-27<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-flower-27.jpg',600,399,'Spring euphorbia, near Trahila, on The Outer Mani coast.<BR><BR><BR><br><br><br><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-flower-27_thumb.jpg',130, 86,1, 1,'','','','','','');
photos[6] = new photo(2018839,'127595','GRman-vathia-1<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-Vathia-1.jpg',600,386,'Looking down on the old Maniot village of Vathia and its tower houses, in the Deep Mani.<BR><BR><BR><br><br><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-Vathia-1_thumb.jpg',130, 84,1, 0,'','','','','','');
photos[7] = new photo(1942683,'127595','GRman-Tayg-15-2<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-Tayg-15-2.jpg',600,399,'Sunset over the snowcapped peak of Halasmenou behind Exohori and the Viros Gorge in the Taygetos Mountains.<BR><BR><BR><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-Tayg-15-2_thumb.jpg',130, 86,1, 0,'','','','','','');
photos[8] = new photo(1945614,'127595','GRman-Stoupa-2<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-Stoupa-2.jpg',600,392,'Looking south down the Messinian coast of the Outer Mani on a misty morning with the prominent mound of Stoupa\'s ancient acropolis in the middle distance.<BR><BR><BR><br><br>','http://www1.clikpic.com/peastland/images/GRman-Stoupa-2_thumb.jpg',130, 85,1, 0,'','','','','','');
photos[9] = new photo(1945645,'127595','GRman-Gaitses-3<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-Gaitses-3.jpg',600,396,'Moonrise above Profitas Ilias church and the snow covers peaks of the Taygetos  mountains, near Voiro,  Outer Mani.<BR><BR><BR><br><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-Gaitses-3_thumb.jpg',130, 86,1, 0,'','','','','','');
photos[10] = new photo(1945399,'127595','GRman-Tigani-1<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-Tigani-1.jpg',600,399,'The Tigani peninsula, in the Deep Mani, with the Taygetos mountains in the background.<BR><BR><BR><br><br><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-Tigani-1_thumb.jpg',130, 86,1, 0,'','','','','','');
photos[11] = new photo(1945385,'127595','GRman-Tayg-1<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-Tayg-1.jpg',600,399,'Looking south from above Milea in the Outer Mani, along the central backbone of the Taygetos Mountains.<BR><BR><BR><br><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-Tayg-1_thumb.jpg',130, 86,1, 0,'','','','','','');
photos[12] = new photo(1945348,'127595','GRman-flower-18-2<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-flower-18-2.jpg',456,600,'Spring wild flowers, near Trahila, on The Outer Mani coast.<BR><BR><BR><br><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-flower-18-2_thumb.jpg',130, 171,1, 0,'','','','','','');
photos[13] = new photo(1944983,'127595','GRman-itilo-2C<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-itilo-2C2.jpg',417,600,'Sunset across Itylo bay and the Messinian Gulf from Limeni.<BR><BR><BR><br><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-itilo-2C2_thumb.jpg',130, 187,1, 0,'','','','','','');
photos[14] = new photo(1945704,'127595','GRman-flower-28<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-flower-28.jpg',398,600,'Spring wild flowers, Anemone (Ranunculacea) in the Deep Mani, between Gerolimenas and Boulari.<BR><BR><BR><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-flower-28_thumb.jpg',130, 196,0, 0,'','','','','','');
photos[15] = new photo(2018877,'127595','GRman-Kardamyli-1<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-Kardamyli-1.jpg',384,600,'A fishing boat heads down the Messinian Gulf, at sunset, past Kardamyli.<BR><BR><BR><br><br><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-Kardamyli-1_thumb.jpg',130, 203,1, 0,'','','','','','');
photos[16] = new photo(1947390,'130218','GRman-proastio-2<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-proastio-2.jpg',600,399,'Easter religious procession, priest and villagers tour the the village of Proastio, in the Outer Mani, blessing local chapels.<BR><BR><BR><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-proastio-2_thumb.jpg',130, 86,1, 1,'','','','','','');
photos[17] = new photo(1945655,'130218','GR-mani-owl-1<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GR-mani-owl-1.jpg',600,453,'A Little Owl (Athene Noctua), in Proastio, Outer Mani.<BR><BR><BR><br><br><br><br>','http://www1.clikpic.com/peastland/images/GR-mani-owl-1_thumb.jpg',130, 98,1, 0,'','','','','','');
photos[18] = new photo(1945326,'130218','GRman-Kastania-1<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-Kastania-1.jpg',600,399,'Knitting purses in the shade of a whitewashed house in the Outer Mani Village of Kastania.<BR><BR><BR><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-Kastania-1_thumb.jpg',130, 86,0, 0,'','','','','','');
photos[19] = new photo(1945576,'130218','GRman-Saidona-3<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-Saidona-3.jpg',600,396,'A goatherd and goats in the village of Saidona, in the foothills of the Taygetos mountains, Outer Mani.<BR><BR><BR><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-Saidona-3_thumb.jpg',130, 86,0, 0,'','','','','','');
photos[20] = new photo(1945337,'130218','GRman-proastio-9<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-proastio-9.jpg',579,400,'A priest and villager dancing at a Paniyiri, a local festival celebrating the patron saint of the village church, Proastio in the Outer Mani.<BR><BR><BR><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-proastio-9_thumb.jpg',130, 90,0, 0,'','','','','','');
photos[21] = new photo(1945635,'130218','GRman-proastio-10<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-proastio-10.jpg',523,400,'Village scene in Proastio in the Outer Mani.<BR><BR><BR><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-proastio-10_thumb.jpg',130, 99,1, 0,'','','','','','');
photos[22] = new photo(1947393,'130218','GRman-proastio-1<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-proastio-1.jpg',600,399,'Easter religious procession around the village of Proastio, in the Outer Mani.<BR><BR><BR><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-proastio-1_thumb.jpg',130, 86,0, 0,'','','','','','');
photos[23] = new photo(1945669,'130218','GRman-seal-1<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-seal-1.jpg',557,400,'Mediterranean monk seal (Monachus monachus) on the Messinian, Outer Mani coast between Stoupa and Kardamyli.<BR><BR><BR><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-seal-1_thumb.jpg',130, 93,0, 0,'','','','','','');
photos[24] = new photo(1947395,'130218','GRman-proastio-6<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-proastio-6.jpg',600,395,'Villagers dancing at a Paniyiri, a local festival celebrating the patron saint of the village church, Proastio, in the Outer Mani.<BR><BR><BR><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-proastio-6_thumb.jpg',130, 86,0, 0,'','','','','','');
photos[25] = new photo(1945678,'130218','GRman-Kastania-5<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-Kastania-5.jpg',384,600,'A country lane in the Outer Mani near Kastania in the foothills of the Taygetos Mountains.<BR><BR><BR><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-Kastania-5_thumb.jpg',130, 203,1, 0,'','','','','','');
photos[26] = new photo(1945362,'130226','GRman-ch-vlacherna-3<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-ch-vlacherna-3.jpg',600,399,'Icons in the interior of the Byzantine church of Vlacherna, near Mezapos in the Deep Mani.<BR><BR><BR><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-ch-vlacherna-3_thumb.jpg',130, 86,1, 0,'','','','','','');
photos[27] = new photo(1942593,'130226','GRman-ch-vlacherna-6<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-ch-vlacherna-6.jpg',600,399,'Faded icons in the church of Vlacherna, near Mezapos in the Deep Mani.<BR><BR><BR><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-ch-vlacherna-6_thumb.jpg',130, 86,1, 1,'','','','','','');
photos[28] = new photo(1942700,'130226','GRman-mats-1<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-mats-1.jpg',600,407,'Old olive press mats and pine cones, Vasiliki forest, Outer Mani.<BR><BR><BR><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-mats-1_thumb.jpg',130, 88,1, 0,'','','','','','');
photos[29] = new photo(1947446,'130226','GRman-pithari-1<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-pithari-1.jpg',399,600,'Pithari and whitewashed stones, Proastio, Outer Mani.<BR><BR><BR><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-pithari-1_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[30] = new photo(1947354,'130219','GRman-Stoupa-2bw<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-Stoupa-2bw.jpg',600,392,'Looking south down the Messinian coast of the Outer Mani on a misty morning with the prominent mound of Stoupa\'s ancient acropolis in the middle distance.<BR><BR><BR><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-Stoupa-2bw_thumb.jpg',130, 85,0, 1,'','','','','','');
photos[31] = new photo(2019016,'130219','GRman-gaitses-3BW<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-Gaitses-3BW.jpg',600,396,'Profitas Ilias monastery above Voiro, one of the Gaitses villages, with the snow-covered peak of Halasmeno in the background.<BR><BR><BR><br><br><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-Gaitses-3BW_thumb.jpg',130, 86,0, 0,'','','','','','');
photos[32] = new photo(2019005,'130219','GRman-tayg-1BW<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-tayg-1BW1.jpg',600,400,'Looking South from above Milia in the outer Mani, down the central backbone of the Taygetos Mountains towards  the Deep Mani.<BR><BR><BR><br><br><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-tayg-1BW1_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[33] = new photo(2305224,'130219','GRman-tayg-16-BW<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-Tayg-16-BW.jpg',600,399,'In the Taygetos above Kendro and the Gaitses  villages .<BR><BR><BR><br><br><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-Tayg-16-BW_thumb.jpg',130, 86,0, 0,'','','','','','');
photos[34] = new photo(2019010,'130219','GRman-pithari-1BW<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRman-pithari-1BW.jpg',399,600,'Old storage jar, pithari, and stone wall, Proastio in the Outer mani<BR><BR><BR><br><br><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRman-pithari-1BW_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[35] = new photo(2160288,'130219','GR-nafplion-13-BW<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GR-nafplion-13-BW.jpg',400,600,'Inside the Palmidhi fortress, built by the Venetians, above Nafplio in the Argolid, Peloponnese, Greece.<BR><BR><BR><br><br><br><br><br><br>','http://www1.clikpic.com/peastland/images/GR-nafplion-13-BW_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[36] = new photo(1947353,'130254','GRepi-ioan-ferry-3<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRepi-yan-ferry-3.jpg',600,446,'On a ferry across Lake Pamvotidha in Ioannina, Epirus, Northern Greece.<BR><BR><BR><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRepi-yan-ferry-3_thumb.jpg',130, 97,0, 0,'','','','','','');
photos[37] = new photo(1947019,'130254','GR-pelion-1<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GR-pelion-1.jpg',600,414,'A family relaxes in the shade and collects herbs whilst watching their assorted animals graze in the heart of the Pelion Peninsula, near Volos, Greece<BR><BR><BR><br><br><br><br>','http://www1.clikpic.com/peastland/images/GR-pelion-1_thumb.jpg',130, 90,0, 1,'','','','','','');
photos[38] = new photo(1947000,'130254','GR-Gythio-4<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GR-Gythio-4.jpg',600,402,'Reflections in the harbour at Gythio, Southern Peloponnese, Greece.<BR><BR><BR><br><br><br><br>','http://www1.clikpic.com/peastland/images/GR-Gythio-4_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[39] = new photo(2018878,'130254','GRmeteora-6<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRmeteora-6.jpg',600,398,'Looking down on the monastery of Roussanou and the strange rock formations of the Meteora, Kalambaka, Thessaly, central Greece.<BR><BR><BR><br><br><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRmeteora-6_thumb.jpg',130, 86,0, 0,'','','','','','');
photos[40] = new photo(2289087,'130254','GR-athens br-1<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GR-ATH-bar-1.jpg',600,430,'A cafeneo in the old centre of Athens near Omonia Square.<BR><BR><BR><br><br><br><br><br><br>','http://www1.clikpic.com/peastland/images/GR-ATH-bar-1_thumb.jpg',130, 93,0, 0,'','','','','','');
photos[41] = new photo(1947015,'130254','GR-Koroni-1<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GR-Koroni-1.jpg',440,600,'Street scene in Koroni, Southern Peloponnese, Greece.<BR><BR><BR><br><br><br><br>','http://www1.clikpic.com/peastland/images/GR-Koroni-1_thumb.jpg',130, 177,0, 0,'','','','','','');
photos[42] = new photo(1947029,'130254','GRepi-parga-1<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/GRepi-parga-1.jpg',414,600,'Woman sweeping steps, Parga, Epirus, Northern Greece.<BR><BR><BR><br><br><br><br>','http://www1.clikpic.com/peastland/images/GRepi-parga-1_thumb.jpg',130, 188,0, 0,'','','','','','');
photos[43] = new photo(1967065,'130641','PO-stoupa-2BW<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/PO-GRman-stou-2BW2.jpg',600,410,'Printed on high quality photo paper using pigment inks, for long display life, these posters are ideal for framing.<br><br><font size=-1>Paper size: 33 by 48.3 cms.<br>(13 by 19ins)</font size><br><br><br><br><br><br>','http://www1.clikpic.com/peastland/images/PO-GRman-stou-2BW2_thumb.jpg',130, 89,0, 1,'','','','','','');
photos[44] = new photo(1967047,'130641','PO-gaitses-3BW<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/PO-GRman-gaitses-3BW2.jpg',600,410,'Printed on high quality photo paper using pigment inks, for long display life, these posters are ideal for framing.<br><br><font size=-1>Paper size: 33 by 48.3 cms.<br>(13 by 19ins)</font size><br><br><br><br><br><br>','http://www1.clikpic.com/peastland/images/PO-GRman-gaitses-3BW2_thumb.jpg',130, 89,0, 0,'','','','','','');
photos[45] = new photo(1967074,'130641','PO-tayg-1BW<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/PO-GRman-tayg-1BW6.jpg',600,410,'Printed on high quality photo paper using pigment inks, for long display life, these posters are ideal for framing.<br><br><font size=-1>Paper size: 33 by 48.3 cms.<br>(13 by 19ins)</font size><br><br><br><br><br><br>','http://www1.clikpic.com/peastland/images/PO-GRman-tayg-1BW6_thumb.jpg',130, 89,0, 0,'','','','','','');
photos[46] = new photo(1966981,'130641','PO-pithari-1BW<br><br><br><br>','gallery','http://www1.clikpic.com/peastland/images/Pithari-1BW.jpg',410,600,'Printed on high quality photo paper using pigment inks, for long display life, these posters are ideal for framing.<br><br><font size=-1>Paper size: 33 by 48.3 cms.<br>(13 by 19ins)</font size><br><br><br><br><br><br>','http://www1.clikpic.com/peastland/images/Pithari-1BW_thumb.jpg',130, 190,0, 0,'','','','','','');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
galleries = new Array();
galleries[0] = new gallery(127595,'1942677','<FONT SIZE=-1> LAND & SEASCAPES</FONT>','gallery');
galleries[1] = new gallery(130218,'1947390','<FONT SIZE=-1>MANI LIFE</FONT>','gallery');
galleries[2] = new gallery(130226,'1942593','<FONT SIZE=-1>STILL LIFE</FONT>','gallery');
galleries[3] = new gallery(130219,'1947354','<FONT SIZE=-1>BLACK & WHITE</FONT>','gallery');
galleries[4] = new gallery(130254,'1947019',' <FONT SIZE=-1>MORE GREECE </FONT>','gallery');
galleries[5] = new gallery(130641,'1967065','<FONT SIZE=-1>POSTERS</FONT> ','gallery');

