/***************************************************************************
* 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('2558707,2558685,2558570,1580128,1580075,1101038,1090333,699134');
	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('2558707,2558685,2558570,1580128,1580075,1101038,1090333,699134');
	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 = 'Carolyn  Ainsworth Artwork: ' + 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(1090333,'80449','','gallery','http://www3.clikpic.com/girasolilake/images/liz castle.jpg',500,377,'Elizabeth Castle: Early Morning','http://www3.clikpic.com/girasolilake/images/liz castle_thumb.jpg',130, 98,1, 1,'Acrylic on Canvas. SOLD<br>\r\n Capturing early morning light at the St. Helier end of St. Aubin\'s Bay, Jersey.','','','Elizabeth Castle, Jersey',145.00,'Canvas Print');
photos[1] = new photo(1100936,'80449','','gallery','http://www3.clikpic.com/girasolilake/images/printwork - 07.jpg',500,197,'St. Aubin\'s Fort, Early Evening<br>\r\n(Acrylic on canvas)','http://www3.clikpic.com/girasolilake/images/printwork - 07_thumb.jpg',130, 51,0, 0,'Acrylic on canvas. SOLD.<br>\r\nThe opposite end of the bay to Elizabeth Castle, and the opposite end of the day.','','','St Aubin, Jersey','','');
photos[2] = new photo(1101038,'80449','','gallery','http://www3.clikpic.com/girasolilake/images/printwork - 08.jpg',237,314,'Stepping Stones, St. Catherine\'s Woods.','http://www3.clikpic.com/girasolilake/images/printwork - 08_thumb.jpg',130, 172,1, 0,'Acrylic on Canvas SOLD<br>\r\nStrong light filters through the trees, flickering on water and lighting up the pathway across the stream...','','','St Catherine\'s Wood, Jersey',145.00,'Print on canvas; also available as an A3 giclee print ');
photos[3] = new photo(1101172,'80449','','gallery','http://www3.clikpic.com/girasolilake/images/printwork - 28.jpg',281,237,'Mont Orgueil at Night','http://www3.clikpic.com/girasolilake/images/printwork - 28_thumb.jpg',130, 110,0, 0,'Acrylic on canvas, framed. SOLD<br>\r\nThe end of daylight, the glow of fluorescent light floods the houses reflects on the water and highlights the castle.','','','Gorey, Jersey',65.00,'Limited edition giclee print');
photos[4] = new photo(1101143,'80449','','gallery','http://www3.clikpic.com/girasolilake/images/printwork - 09.jpg',236,282,'Through the Woods','http://www3.clikpic.com/girasolilake/images/printwork - 09_thumb.jpg',130, 155,0, 0,'Acrylic on canvas, framed.<br>\r\nLight illuminates the pathway through St Catherine\'s woods.','','','St. Catherine\'s woods, Jersey',605.00,'Acrylic on canvas, framed.');
photos[5] = new photo(1101154,'80449','','gallery','http://www3.clikpic.com/girasolilake/images/printwork - 10.jpg',297,236,'Through the Trees','http://www3.clikpic.com/girasolilake/images/printwork - 10_thumb.jpg',130, 103,0, 0,'Acrylic on canvas, framed.<br>\r\nAVibrant light, silhouetting trees and dancing on the daffodils in a field in St. Lawrence, Jersey','','','St. Lawrence, Jersey',535.00,'Acrylic on canvas, framed.');
photos[6] = new photo(1101196,'80449','','gallery','http://www3.clikpic.com/girasolilake/images/printwork - 12.jpg',334,237,'Bright, White Light','http://www3.clikpic.com/girasolilake/images/printwork - 12_thumb.jpg',130, 92,0, 0,'Acrylic on canvas, framed. SOLD<br>\r\nThe strong light of a spring day bounces off boats and sea, leeching colour and creating dark. dark shadows.','','','St Brelade\'s Bay, Jersey',65.00,'Limited edition giclee print');
photos[7] = new photo(1101255,'80449','','gallery','http://www3.clikpic.com/girasolilake/images/printwork - 131.jpg',236,299,'Through the Archway','http://www3.clikpic.com/girasolilake/images/printwork - 131_thumb.jpg',130, 165,0, 0,'Acrylic on canvas, framed. SOLD<br>\r\nThe silhouetted archway makes a frame for the light-filled churchyard at St. Brelade.','','','St, brelade\'s Church, Jersey','','');
photos[8] = new photo(1101265,'80449','','gallery','http://www3.clikpic.com/girasolilake/images/printwork - 14.jpg',237,282,'In the Pink','http://www3.clikpic.com/girasolilake/images/printwork - 14_thumb.jpg',130, 155,0, 0,'Oil on board<br>\r\nLight bathes the model from behind, strong light that bounces off satin and filters through chiffon','','','',535.00,'oil on board, framed');
photos[9] = new photo(1101279,'80449','','gallery','http://www3.clikpic.com/girasolilake/images/printwork - 18.jpg',237,313,'Yellow Moon','http://www3.clikpic.com/girasolilake/images/printwork - 18_thumb.jpg',130, 172,0, 0,'Watercolour, framed. SOLD<br>\r\nFantasylight, real setting.','','','Gorey, Jersey','','');
photos[10] = new photo(1101283,'80449','','gallery','http://www3.clikpic.com/girasolilake/images/printwork - 20.jpg',237,312,'White Moon','http://www3.clikpic.com/girasolilake/images/printwork - 20_thumb.jpg',130, 171,0, 0,'Watercolour, framed.<br>\r\nFaldouet Dolmen before the fairy lights appear!','','','Faldouet Dolmen, St. Martin, Jersey',275.00,'Watercolour, framed.');
photos[11] = new photo(1101501,'80449','','gallery','http://www3.clikpic.com/girasolilake/images/printwork - 24.jpg',237,516,'Aedh wishes for the cloths of Heaven','http://www3.clikpic.com/girasolilake/images/printwork - 24_thumb.jpg',130, 283,0, 0,'Gouache, framed<br>\r\nInspired by the W.B.Yeats poem, the golden and silver cloths of heaven are hung as tapestries behind his love, while his dreams are spread under his feet.','','','',380.00,'Gouache, framed');
photos[12] = new photo(1101436,'80449','','gallery','http://www3.clikpic.com/girasolilake/images/printwork - 23.jpg',151,600,'The Crowning of La Rocco','http://www3.clikpic.com/girasolilake/images/printwork - 23_thumb.jpg',130, 517,0, 0,'Acrylic on canvas, framed.<br>\r\nThe sun casts it\'s evening light over the silhouetted La Rocco tower, creating a golden pathway on the sea.','','','La Rocco Tower, St. Ouen, Jersey',140.00,'Canvas Print');
photos[13] = new photo(1101371,'80449','','gallery','http://www3.clikpic.com/girasolilake/images/printwork - 22.jpg',152,600,'Reflections at Night: Gorey II','http://www3.clikpic.com/girasolilake/images/printwork - 22_thumb.jpg',130, 513,0, 0,'Acrylic on canvas, framed. SOLD.<br>\r\nGlowing light, caught like light through a stained glass window, creating patterns where it reflects on puddles left by the incoming tide.','','','Gorey, Jersey',140.00,'Canvas Print');
photos[14] = new photo(701474,'53189','','gallery','http://www3.clikpic.com/girasolilake/images/Grosnez_Jersey.jpg',450,635,'Grosnez','http://www3.clikpic.com/girasolilake/images/Grosnez_Jersey_thumb.jpg',130, 183,0, 0,'Mixed media, pastel and gouache. SOLD','','','Grosnez, Jersey','','');
photos[15] = new photo(698226,'53189','','gallery','http://www3.clikpic.com/girasolilake/images/St_Aubin.jpg',500,333,'St Aubin\'s Harbour','http://www3.clikpic.com/girasolilake/images/St_Aubin_thumb.jpg',130, 87,0, 1,'Acrylic on canvas. Giclee print available on-line, mounted size approx 22\"x24\".','','','St Aubin, Jersey',95.00,'Mounted Limited Edition Print');
photos[16] = new photo(699072,'53189','','gallery','http://www3.clikpic.com/girasolilake/images/Gorey_Jersey_acrylic.jpg',500,378,'Gorey Harbour','http://www3.clikpic.com/girasolilake/images/Gorey_Jersey_acrylic_thumb.jpg',130, 98,0, 0,'Acrylic. Giclee print approx 22\"x24\" mounted, available on-line.','','','Gorey, Jersey',95.00,'Mounted Limited Edition Print');
photos[17] = new photo(699034,'53189','','gallery','http://www3.clikpic.com/girasolilake/images/Bonne_Nuit_Jersey.jpg',450,645,'Bonne Nuit Harbour.','http://www3.clikpic.com/girasolilake/images/Bonne_Nuit_Jersey_thumb.jpg',130, 186,0, 0,'Mixed media (pastel and watercolour). Size approx 16\"x20\" excluding mount and frame. Original available at Victoria Art Gallery, Jersey. <br>\r\nGiclee print available, A3 size, mounted.','','','Bonne Nuit, Jersey',65.00,'Mounted Limited Edition Print');
photos[18] = new photo(699006,'53189','','gallery','http://www3.clikpic.com/girasolilake/images/Archirondel_Jersey.jpg',450,612,'Archirondel','http://www3.clikpic.com/girasolilake/images/Archirondel_Jersey_thumb.jpg',130, 177,0, 0,'Mixed media (gouache and pastel). Original available at Victoria Art Gallery. Painting approx 20\"x16\" excluding mount and frame. <br>\r\nMounted A3 giclee print available on line.','','','Archirondel, Jersey',65.00,'Mounted Limited Edition Print');
photos[19] = new photo(699022,'53189','','gallery','http://www3.clikpic.com/girasolilake/images/Corbiere_Jersey.jpg',450,638,'Corbiere Lighthouse','http://www3.clikpic.com/girasolilake/images/Corbiere_Jersey_thumb.jpg',130, 184,0, 0,'Watercolour. Size approx 16\"x20\" excluding mount and frame. Original still available at Victoria Art Gallery. <br>\r\nGiclee print available on-line, A3 size, mounted.','','','Corbiere, Jersey',65.00,'Mounted Limited Edition Print');
photos[20] = new photo(699018,'53189','','gallery','http://www3.clikpic.com/girasolilake/images/Rozel_Bay_Jersey.jpg',450,615,'Rozel Harbour','http://www3.clikpic.com/girasolilake/images/Rozel_Bay_Jersey_thumb.jpg',130, 178,0, 0,'Mixed media (watercolour and pastel). Size 16\"x20\" excluding mount and frame. Original available from Victoria Art Gallery, Jersey. <br>\r\nGiclee print available on-line, A3 size, mounted.','','','Rozel Harbour,  Jersey',65.00,'Mounted Limited Edition Print');
photos[21] = new photo(699011,'53189','','gallery','http://www3.clikpic.com/girasolilake/images/Gorey_Jerey.jpg',500,328,'Mont Orgueil','http://www3.clikpic.com/girasolilake/images/Gorey_Jerey_thumb.jpg',130, 85,0, 0,'Watercolour, approx 16\"x20\" excluding mount and frame. Original available from Victoria Art Gallery, Jersey. <br>\r\nGiclee print available on-line, A3 size, mounted.','','','Gorey, Jersey',65.00,'Mounted Limited Edition Print');
photos[22] = new photo(699082,'53205','','gallery','http://www3.clikpic.com/girasolilake/images/Ponte_Vecchio_Florence.jpg',500,329,'Ponte Vecchio','http://www3.clikpic.com/girasolilake/images/Ponte_Vecchio_Florence_thumb.jpg',130, 86,0, 1,'Acrylic on board,framed. SOLD<br>\r\nLimited Edition giclee A3 print, mounted, available on-line.','','','Florence, Italy',65.00,' Limited Edition mounted print available on-line.');
photos[23] = new photo(699106,'53205','','gallery','http://www3.clikpic.com/girasolilake/images/Siena_Doorway .jpg',450,654,'Washing day, Siena','http://www3.clikpic.com/girasolilake/images/Siena_Doorway _thumb.jpg',130, 189,0, 0,'Gouache. SOLD','','','Siena, Tuscany','','');
photos[24] = new photo(699096,'53205','','gallery','http://www3.clikpic.com/girasolilake/images/Tuscan_Archway .jpg',450,674,'Tuscan Archway','http://www3.clikpic.com/girasolilake/images/Tuscan_Archway _thumb.jpg',130, 195,0, 0,'Pastel drawing. Original available, mounted.','','','Tuscany, Italy',130.00,'Original, mounted.');
photos[25] = new photo(699084,'53205','','gallery','http://www3.clikpic.com/girasolilake/images/Tuscan_Doorway.jpg',450,619,'Tuscan Doorway','http://www3.clikpic.com/girasolilake/images/Tuscan_Doorway_thumb.jpg',130, 179,0, 0,'Gouache. SOLD','','','','','');
photos[26] = new photo(699134,'53206','','gallery','http://www3.clikpic.com/girasolilake/images/Bohemia.jpg',500,372,'Bohemia','http://www3.clikpic.com/girasolilake/images/Bohemia_thumb.jpg',130, 97,1, 1,'Acrylic on canvas. Original still available, approx size 48\" x 36\"','','','Jersey',950.00,'Original acrylic, framed.');
photos[27] = new photo(699173,'53206','','gallery','http://www3.clikpic.com/girasolilake/images/Hatchlings.jpg',450,600,'Hatchlings','http://www3.clikpic.com/girasolilake/images/Hatchlings_thumb.jpg',130, 173,0, 0,'Gouache.','','','','','');
photos[28] = new photo(699170,'53206','','gallery','http://www3.clikpic.com/girasolilake/images/Dragontwatch.jpg',450,569,'Dragonwatch','http://www3.clikpic.com/girasolilake/images/Dragontwatch_thumb.jpg',130, 164,0, 0,'Gouache.','','','','','');
photos[29] = new photo(699161,'53206','','gallery','http://www3.clikpic.com/girasolilake/images/Alex.jpg',450,600,'Alex','http://www3.clikpic.com/girasolilake/images/Alex_thumb.jpg',130, 173,0, 0,'Portrait in sepia crayon','','','','','');
photos[30] = new photo(699164,'53206','','gallery','http://www3.clikpic.com/girasolilake/images/Ashley.jpg',450,600,'Ashley','http://www3.clikpic.com/girasolilake/images/Ashley_thumb.jpg',130, 173,0, 0,'Portrait in sepia crayon.','','','','','');
photos[31] = new photo(1580075,'107964','','section142811','http://www3.clikpic.com/girasolilake/images/Morning Shadows.jpg',500,600,'Morning Shadows: Elizabeth Castle','http://www3.clikpic.com/girasolilake/images/Morning Shadows_thumb.jpg',130, 156,1, 0,'Acrylic on Canvas.<br>\r\nSOLD','','','',65.00,'A3 mounted limited edition giclee print');
photos[32] = new photo(1580071,'107964','','section142811','http://www3.clikpic.com/girasolilake/images/La Rocco Sunset.JPG',500,311,'La Rocco at Sunset','http://www3.clikpic.com/girasolilake/images/La Rocco Sunset_thumb.JPG',130, 81,0, 0,'Acrylic on Canvas. SOLD.','','','','','');
photos[33] = new photo(1580085,'107964','','section142811','http://www3.clikpic.com/girasolilake/images/Red Sun White House.JPG',124,500,'Red Sun, White House','http://www3.clikpic.com/girasolilake/images/Red Sun White House_thumb.JPG',130, 524,0, 0,'Acrylic on Canvas.<br>\r\nSOLD.','','','','','');
photos[34] = new photo(1580093,'107964','','section142811','http://www3.clikpic.com/girasolilake/images/La Rocco2.jpg',500,629,'La Rocco Tower Sunset','http://www3.clikpic.com/girasolilake/images/La Rocco2_thumb.jpg',130, 164,0, 0,'Framed Watercolour<br>\r\nAvailable to buy at Victoria Art Gallery','','','',295.00,'La Rocco Watercolour');
photos[35] = new photo(1580106,'107964','','section142811','http://www3.clikpic.com/girasolilake/images/White House 2.jpg',500,366,'White House','http://www3.clikpic.com/girasolilake/images/White House 2_thumb.jpg',130, 95,0, 0,'Framed Watercolour<br>\r\nOn sale at Victoria Art Gallery','','','',295.00,'White House Watercolour');
photos[36] = new photo(1580128,'107964','','section142811','http://www3.clikpic.com/girasolilake/images/St Aubin Nightscene.JPG',500,2030,'St. Aubin\'s Harbour, Nightfall.','http://www3.clikpic.com/girasolilake/images/St Aubin Nightscene_thumb.JPG',130, 528,1, 1,'Acrylic on Canvas.<br>\r\nSOLD.<br>\r\nCanvas prints available soon.','','','',140.00,'St Aubin\'s:Nightfall - Canvas Print');
photos[37] = new photo(1764980,'107964','','section142811','http://www3.clikpic.com/girasolilake/images/Gorey Flowers - web size.jpg',500,671,'Gorey Flowers','http://www3.clikpic.com/girasolilake/images/Gorey Flowers - web size_thumb.jpg',130, 174,0, 0,'Acrylic on Canvas.<br>\r\nSold','','','',65.00,'A3 limited edition giclee print, mounted');
photos[38] = new photo(2558685,'163410','','section205750','http://www3.clikpic.com/girasolilake/images/0.jpg',500,645,'St. Aubin\'s Methodist Church, Nightfall.','http://www3.clikpic.com/girasolilake/images/0_thumb.jpg',130, 168,1, 1,'Just as dusk falls and the street lighting takes over, reflections abound...<br>\r\nAvailable at Studio 18, price on application.','','','','','Acrylic on canvas');
photos[39] = new photo(2558707,'163410','','section205750','http://www3.clikpic.com/girasolilake/images/1.jpg',500,656,'Gorey Harbour, NIghtfall','http://www3.clikpic.com/girasolilake/images/1_thumb.jpg',130, 171,1, 1,'This is really to be paired with St Aubin\'s Methodist Church, Nightfall. Again dusk falls, but the awesome Mont Orgueil is captured in floodlight...<br>\r\nAvailable from Studio 18, price on application','','','','','Acrylic on Canvas');
photos[40] = new photo(2558715,'163410','','section205750','http://www3.clikpic.com/girasolilake/images/3.jpg',500,353,'Reflections of St Brelade\'s Church','http://www3.clikpic.com/girasolilake/images/3_thumb.jpg',130, 92,0, 0,'Dusk again, the floodlights capture the church and reflect onto the wet sand beneath...<br>\r\nAvailable from Studio 18, price on application','','','','','Acrylic on Canvas');
photos[41] = new photo(2558718,'163410','','section205750','http://www3.clikpic.com/girasolilake/images/2.jpg',500,609,'Nightfall through the Archway','http://www3.clikpic.com/girasolilake/images/2_thumb.jpg',130, 158,0, 0,'St Brelade\'s Church at dusk, through the archway...<br>\r\nAvailable from Studio 18, price on application.','','','','','Acrylic on Canvas');
photos[42] = new photo(2558721,'163410','','section205750','http://www3.clikpic.com/girasolilake/images/4.jpg',264,827,'Elizabeth Castle Panel','http://www3.clikpic.com/girasolilake/images/4_thumb.jpg',130, 407,0, 0,'One of two panels depicting the brilliance of Jersey...<br>\r\nAvailable from Studio 18, price on application.','','','','','Acrylic on Canvas');
photos[43] = new photo(2558723,'163410','','section205750','http://www3.clikpic.com/girasolilake/images/5.jpg',274,827,'Reflections of Corbiere','http://www3.clikpic.com/girasolilake/images/5_thumb.jpg',130, 392,0, 0,'One of two panels depicting the brilliance of Jersey...<br>\r\nAvailable from Studio 18, price on application.','','','','','Acrylic on Canvas');
photos[44] = new photo(2558551,'163410','','section205750','http://www3.clikpic.com/girasolilake/images/La Rocco.jpg',500,329,'La Rocco Sunset','http://www3.clikpic.com/girasolilake/images/La Rocco_thumb.jpg',130, 86,0, 0,'Capturing one of the amazing sunsets over St Ouen\'s Bay, in the west of Jersey. Available from The Harbour Gallery','','','',645.00,'Acrylic on Canvas');
photos[45] = new photo(2558570,'163410','','section205750','http://www3.clikpic.com/girasolilake/images/7.jpg',500,353,'Royal Square, Early Morning Shadows','http://www3.clikpic.com/girasolilake/images/7_thumb.jpg',130, 92,1, 1,'Royal Square in the heart of St Helier, before the hubub of the day...<br>\r\nAvailable from the Harbour Gallery','','','',695.00,'Acrylic on Canvas');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
galleries = new Array();
galleries[0] = new gallery(80449,'1090333','Capturing Light','gallery');
galleries[1] = new gallery(53189,'698226','Jersey Landscapes','gallery');
galleries[2] = new gallery(53205,'699082','Tuscan Landscapes','gallery');
galleries[3] = new gallery(53206,'699134','Figures and Fantasy','gallery');
galleries[4] = new gallery(107964,'1580128','Recent Works','section142811');
galleries[5] = new gallery(163410,'2558707,2558685,2558570','Summer Exhibitions','section205750');

