/***************************************************************************
* 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('1682122,1682019,1682006,1681989,1681968,1681959,1681958,1681957,1681955,1681954,1664919,1664915,1664913,1664899,1664889,1664886,1664875');
	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('1682122,1682019,1682006,1681989,1681968,1681959,1681958,1681957,1681955,1681954,1664919,1664915,1664913,1664899,1664889,1664886,1664875');
	for (j = 0; j < photos.length; j++) {
		if (photos[j].id == imageID) {
			if ('gallery' != '') {
						if (photos[j].galleries_id != '') {
						document.write('<a href="' + photos[j].section_code + '_' + photos[j].galleries_id + '.html">');
						}
						else {
						document.write('<a href="gallery.html">');
						}
			}
			document.write('<img src="' + photos[j].src + '" width="' + photos[j].width + '" height="' + photos[j].height + '" class="mainhomepageimage" id="mainSample" name="mainSample" alt="' + photos[j].caption  + '" border="0">');
			if ('gallery' != '') {
				document.write('</a>');
			}
			break;
		}
	}
	
}

/***************************************************************************
* Show the next image in a gallery.  field = hidden field containing       *
* image_id                                                                 *
*  img = reference to image object in which to show image                  *
***************************************************************************/
function next(field,img) {

	debug('IN next');
	imageID = field.value;
	
	for (j = 0; j < photos.length; j++) {
		if (photos[j].id == imageID) {
			break;
		}
	}
	debug('image is ' + j);
	nextImg = -1;
	k= j + 1;
	while (nextImg < 0) {
		for (; k < photos.length; k++) {
			debug('testing image ' + k + ': gallery = ' + photos[k].galleries_id + '(existing: ' + photos[j].galleries_id + ')');
			if (photos[k].galleries_id == photos[j].galleries_id) {
				nextImg = k;
				debug('setting  nextImg = ' + k);
				break;
			}
		}
		if (nextImg == -1) {
			k = 0;
		}
	}
	if (nextImg != -1) {
		updateImage(nextImg, field,img);
	}


}


/***************************************************************************
* Set a new image on the gallery detail page given its array position      *
***************************************************************************/
function updateImage (nextImg, field,img) {
	debug('Updating image');
	if (!basic && !(0)) {
		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(1664875,'112335','','gallery','http://www1.clikpic.com/andreeholden/images/3vases.jpg',500,414,'3 vases','http://www1.clikpic.com/andreeholden/images/3vases_thumb.jpg',130, 108,1, 0,'','','','','','');
photos[1] = new photo(1664893,'113581','','gallery','http://www1.clikpic.com/andreeholden/images/jugandbowl.jpg',500,500,'Stone ware Jug and Bowl','http://www1.clikpic.com/andreeholden/images/jugandbowl_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[2] = new photo(1664899,'112336','','gallery','http://www1.clikpic.com/andreeholden/images/lunch in orchard.jpg',500,500,'lunch In The Orchard - Earthenware bowls','http://www1.clikpic.com/andreeholden/images/lunch in orchard_thumb.jpg',130, 130,1, 0,'','','','','','');
photos[3] = new photo(1664913,'112335','','gallery','http://www1.clikpic.com/andreeholden/images/raku vase by fire.jpg',500,563,'Raku vase','http://www1.clikpic.com/andreeholden/images/raku vase by fire_thumb.jpg',130, 146,1, 0,'','','','','','');
photos[4] = new photo(1664915,'112335','','gallery','http://www1.clikpic.com/andreeholden/images/raku vase on log.jpg',500,500,'Raku Rope vessels','http://www1.clikpic.com/andreeholden/images/raku vase on log_thumb.jpg',130, 130,1, 0,'','','','','','');
photos[5] = new photo(1681948,'112336','','gallery','http://www1.clikpic.com/andreeholden/images/dinner.jpg',500,500,'Large stoneware serving platter','http://www1.clikpic.com/andreeholden/images/dinner_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[6] = new photo(1681958,'112335','','gallery','http://www1.clikpic.com/andreeholden/images/vase with alium.jpg',500,837,'Terracotta vase 90cm high. Sawdust pit fired.','http://www1.clikpic.com/andreeholden/images/vase with alium_thumb.jpg',130, 218,1, 0,'','','','','','');
photos[7] = new photo(1681959,'112335','','gallery','http://www1.clikpic.com/andreeholden/images/whitevase.jpg',500,500,'Stoneware vase edged in copper oxide 85cm high','http://www1.clikpic.com/andreeholden/images/whitevase_thumb.jpg',130, 130,1, 0,'','','','','','');
photos[8] = new photo(1681961,'112335','','gallery','http://www1.clikpic.com/andreeholden/images/whitevase 2.jpg',500,508,'Stoneware vase with copper oxide edging detail','http://www1.clikpic.com/andreeholden/images/whitevase 2_thumb.jpg',130, 132,0, 0,'','','','','','');
photos[9] = new photo(1681967,'113373','','gallery','http://www1.clikpic.com/andreeholden/images/Conkers.jpg',500,884,'Burnished terracotta and Suede conkers<br />\r\nSize 6cm - 11cm','http://www1.clikpic.com/andreeholden/images/Conkers_thumb.jpg',130, 230,0, 0,'','','','','','');
photos[10] = new photo(1681972,'112337','','gallery','http://www1.clikpic.com/andreeholden/images/Girls_Toys_150DPI.jpg',500,1106,'Greetings card \"Girls Toys\"','http://www1.clikpic.com/andreeholden/images/Girls_Toys_150DPI_thumb.jpg',130, 288,0, 0,'','','','','','');
photos[11] = new photo(1681973,'112337','','gallery','http://www1.clikpic.com/andreeholden/images/Boys_Toys_150DPI.jpg',500,1203,'Greetins card \"Boys Toys\"','http://www1.clikpic.com/andreeholden/images/Boys_Toys_150DPI_thumb.jpg',130, 313,0, 0,'','','','','','');
photos[12] = new photo(1681975,'112337','','gallery','http://www1.clikpic.com/andreeholden/images/3 BEACH HUTS by Andree Holden.JPG',500,1166,'\"Beach Huts\" Aero Denmark','http://www1.clikpic.com/andreeholden/images/3 BEACH HUTS by Andree Holden_thumb.JPG',130, 303,0, 0,'','','','','','');
photos[13] = new photo(1681976,'112337','','gallery','http://www1.clikpic.com/andreeholden/images/CHASE by Andree Holden.JPG',500,707,'\"The Chase\" watercolour Greetings card','http://www1.clikpic.com/andreeholden/images/CHASE by Andree Holden_thumb.JPG',130, 184,0, 0,'','','','','','');
photos[14] = new photo(1681977,'112337','','gallery','http://www1.clikpic.com/andreeholden/images/LOOP THE LOOP by Andree Holden.JPG',500,355,'\"Biggles\" Wrapping Paper','http://www1.clikpic.com/andreeholden/images/LOOP THE LOOP by Andree Holden_thumb.JPG',130, 92,0, 0,'','','','','','');
photos[15] = new photo(1681978,'112337','','gallery','http://www1.clikpic.com/andreeholden/images/STRONGMAN AND FRIENDS by Andree Holden.JPG',500,253,'\"Circus Toys\" Greetings card','http://www1.clikpic.com/andreeholden/images/STRONGMAN AND FRIENDS by Andree Holden_thumb.JPG',130, 66,0, 0,'','','','','','');
photos[16] = new photo(1681979,'112337','','gallery','http://www1.clikpic.com/andreeholden/images/Sea Holly by Andree Holden.jpg',500,514,'Watercolour for Greetings card','http://www1.clikpic.com/andreeholden/images/Sea Holly by Andree Holden_thumb.jpg',130, 134,0, 0,'','','','','','');
photos[17] = new photo(1681980,'112337','','gallery','http://www1.clikpic.com/andreeholden/images/POP UP DOLLS by Andree Holden.JPG',500,267,'\"Popups\" images for ceramic Mugs and Greetings card','http://www1.clikpic.com/andreeholden/images/POP UP DOLLS by Andree Holden_thumb.JPG',130, 69,0, 0,'','','','','','');
photos[18] = new photo(1681983,'112337','','gallery','http://www1.clikpic.com/andreeholden/images/ZEBRA ON ORANGE (2).JPG',500,937,'\"Zebra\" card','http://www1.clikpic.com/andreeholden/images/ZEBRA ON ORANGE (2)_thumb.JPG',130, 244,0, 0,'','','','','','');
photos[19] = new photo(1681984,'112337','','gallery','http://www1.clikpic.com/andreeholden/images/MIMI AND BEAR by Andree Holden.JPG',500,519,'\"Mimi and Bear\" card design','http://www1.clikpic.com/andreeholden/images/MIMI AND BEAR by Andree Holden_thumb.JPG',130, 135,0, 0,'','','','','','');
photos[20] = new photo(1681989,'112335','','gallery','http://www1.clikpic.com/andreeholden/images/3vases detail a.jpg',500,500,'Flower Detail','http://www1.clikpic.com/andreeholden/images/3vases detail a_thumb.jpg',130, 130,1, 0,'','','','','','');
photos[21] = new photo(1681997,'112336','','gallery','http://www1.clikpic.com/andreeholden/images/PC090006.JPG',500,501,'\"Crumbs\" small creamware Jug','http://www1.clikpic.com/andreeholden/images/PC090006_thumb.JPG',130, 130,0, 0,'','','','','','');
photos[22] = new photo(1682002,'113577','','gallery','http://www1.clikpic.com/andreeholden/images/PC090009.JPG',500,460,'\"Crumbs\" small Tankard Mug','http://www1.clikpic.com/andreeholden/images/PC090009_thumb.JPG',130, 120,0, 0,'','','','','','');
photos[23] = new photo(1682006,'112335','','gallery','http://www1.clikpic.com/andreeholden/images/P6280056.JPG',500,405,'Ribbon Bowl Stoneware 40cm diameter','http://www1.clikpic.com/andreeholden/images/P6280056_thumb.JPG',130, 105,1, 0,'','','','','','');
photos[24] = new photo(1682019,'112335','','gallery','http://www1.clikpic.com/andreeholden/images/Copy of P6280053.JPG',350,336,'Stoneware and copper Oxide Ribbon bowl 48cm','http://www1.clikpic.com/andreeholden/images/Copy of P6280053_thumb.JPG',130, 125,1, 0,'','','','','','');
photos[25] = new photo(1682090,'113577','','gallery','http://www1.clikpic.com/andreeholden/images/PC090002.JPG',336,387,'\"Crumbs\" creamware range','http://www1.clikpic.com/andreeholden/images/PC090002_thumb.JPG',130, 150,0, 1,'','','','','','');
photos[26] = new photo(1682092,'112336','','gallery','http://www1.clikpic.com/andreeholden/images/P1310020.JPG',500,466,'Christmas Robin','http://www1.clikpic.com/andreeholden/images/P1310020_thumb.JPG',130, 121,0, 0,'','','','','','');
photos[27] = new photo(1682094,'112336','','gallery','http://www1.clikpic.com/andreeholden/images/P1310021.JPG',500,482,'\"Toys\" Christening Mug','http://www1.clikpic.com/andreeholden/images/P1310021_thumb.JPG',130, 125,0, 0,'','','','','','');
photos[28] = new photo(1682107,'112336','','gallery','http://www1.clikpic.com/andreeholden/images/P1310024.JPG',500,425,'\"Popups\" bonechina mug','http://www1.clikpic.com/andreeholden/images/P1310024_thumb.JPG',130, 111,0, 0,'','','','','','');
photos[29] = new photo(1682113,'112336','','gallery','http://www1.clikpic.com/andreeholden/images/webcompressed.JPG',336,341,'\"Daisy\" Large Creamware Jug','http://www1.clikpic.com/andreeholden/images/webcompressed_thumb.JPG',130, 132,0, 0,'','','','','','');
photos[30] = new photo(1682119,'112336','','gallery','http://www1.clikpic.com/andreeholden/images/compressed for web.JPG',354,336,'\"Strawberry\" Mug','http://www1.clikpic.com/andreeholden/images/compressed for web_thumb.JPG',130, 123,0, 0,'','','','','','');
photos[31] = new photo(1682122,'112336','','gallery','http://www1.clikpic.com/andreeholden/images/comp for web.JPG',362,336,'\"2 Hearts\" Mug','http://www1.clikpic.com/andreeholden/images/comp for web_thumb.JPG',130, 121,1, 0,'','','','','','');
photos[32] = new photo(1682123,'112336','','gallery','http://www1.clikpic.com/andreeholden/images/compressed.JPG',425,336,'Inside \"2 Hearts\" Mug','http://www1.clikpic.com/andreeholden/images/compressed_thumb.JPG',130, 103,0, 0,'','','','','','');
photos[33] = new photo(1683064,'113578','','gallery','http://www1.clikpic.com/andreeholden/images/PC070004.JPG',500,480,'Spotty porcelain Tea for One. Part of a range of teatime pieces','http://www1.clikpic.com/andreeholden/images/PC070004_thumb.JPG',130, 125,0, 1,'','','','','','');
photos[34] = new photo(1683065,'113578','','gallery','http://www1.clikpic.com/andreeholden/images/PC070010.JPG',500,476,'Spotty porcelain jug','http://www1.clikpic.com/andreeholden/images/PC070010_thumb.JPG',130, 124,0, 0,'','','','','','');
photos[35] = new photo(1683138,'112336','','gallery','http://www1.clikpic.com/andreeholden/images/PC0900091.JPG',500,460,'Creamware \"Crumbs\" mug.','http://www1.clikpic.com/andreeholden/images/PC0900091_thumb.JPG',130, 120,0, 0,'','','','','','');
photos[36] = new photo(1683145,'112336','','gallery','http://www1.clikpic.com/andreeholden/images/PA180028.JPG',500,474,'Creamware Gingham Heart Range','http://www1.clikpic.com/andreeholden/images/PA180028_thumb.JPG',130, 123,0, 0,'','','','','','');
photos[37] = new photo(1683151,'112337','','gallery','http://www1.clikpic.com/andreeholden/images/fields.jpg',500,430,'Art work for \"Fields\" Range','http://www1.clikpic.com/andreeholden/images/fields_thumb.jpg',130, 112,0, 0,'','','','','','');
photos[38] = new photo(1683153,'112337','','gallery','http://www1.clikpic.com/andreeholden/images/Cottage Garden.jpg',500,466,'Artwork for cottage Garden','http://www1.clikpic.com/andreeholden/images/Cottage Garden_thumb.jpg',130, 121,0, 0,'','','','','','');
photos[39] = new photo(1683163,'112337','','gallery','http://www1.clikpic.com/andreeholden/images/roses red.jpg',500,373,'\"Roses\" Range','http://www1.clikpic.com/andreeholden/images/roses red_thumb.jpg',130, 97,0, 0,'','','','','','');
photos[40] = new photo(1664886,'83307','','gallery','http://www1.clikpic.com/andreeholden/images/fish mural.jpg',500,219,'Fish mural on White Sycamore','http://www1.clikpic.com/andreeholden/images/fish mural_thumb.jpg',130, 57,1, 0,'','','','','','');
photos[41] = new photo(1664889,'83307','','gallery','http://www1.clikpic.com/andreeholden/images/fish detail.jpg',500,500,'Fish Mural Detail','http://www1.clikpic.com/andreeholden/images/fish detail_thumb.jpg',130, 130,1, 0,'','','','','','');
photos[42] = new photo(1664919,'83307','','gallery','http://www1.clikpic.com/andreeholden/images/shells011.jpg',448,1008,'Seashore','http://www1.clikpic.com/andreeholden/images/shells011_thumb.jpg',130, 293,1, 0,'','','','','','');
photos[43] = new photo(1681954,'83307','','gallery','http://www1.clikpic.com/andreeholden/images/waves01.jpg',500,668,'Large Wall piece for Treglos Hotel Constantine Bay Cornwall. 130cm x 96cm','http://www1.clikpic.com/andreeholden/images/waves01_thumb.jpg',130, 174,1, 0,'','','','','','');
photos[44] = new photo(1681955,'83307','','gallery','http://www1.clikpic.com/andreeholden/images/SHELLDETAIL06.JPG',500,455,'Starfish detail from \"Seashore\"','http://www1.clikpic.com/andreeholden/images/SHELLDETAIL06_thumb.JPG',130, 118,1, 0,'','','','','','');
photos[45] = new photo(1681957,'83307','','gallery','http://www1.clikpic.com/andreeholden/images/shelldetail05.jpg',500,503,'Stones detail from \"Seashore\"','http://www1.clikpic.com/andreeholden/images/shelldetail05_thumb.jpg',130, 131,1, 0,'','','','','','');
photos[46] = new photo(1681968,'83307','','gallery','http://www1.clikpic.com/andreeholden/images/Birches.JPG',500,214,'\"Silver Birches\" Raku fired and mounted in White Sycamore','http://www1.clikpic.com/andreeholden/images/Birches_thumb.JPG',130, 56,1, 0,'','','','','','');
photos[47] = new photo(2134219,'83307','','gallery','http://www1.clikpic.com/andreeholden/images/Quern Stones.JPG',500,594,'\"Quern Stones\"','http://www1.clikpic.com/andreeholden/images/Quern Stones_thumb.JPG',130, 154,0, 0,'Quern Stones in various clays with added oxides and glazes to achieve earthy stone colours. Mounted on reclaimed English oak. size 37cm x 44cm','','','','','');
photos[48] = new photo(2134288,'83307','','gallery','http://www1.clikpic.com/andreeholden/images/Thieves.JPG',500,290,'\"Thieves\"','http://www1.clikpic.com/andreeholden/images/Thieves_thumb.JPG',130, 75,0, 0,'Part of a series telling the tale of the grain to the loaf. Ceramic birds on English silvered oak - a reclaimed church pew. Two crows pinching the newly sown grain. Inspiration from the luttrell psalter illuminated manuscript of the 14th century. Wall mounted Size 47cm x 28','','','','','');
photos[49] = new photo(2134308,'83307','','gallery','http://www1.clikpic.com/andreeholden/images/P4080008.JPG',500,266,'\"The Feast\"<br />\r\n48 x 26cm','http://www1.clikpic.com/andreeholden/images/P4080008_thumb.JPG',130, 69,0, 0,'Inspired by a page in the Lutrell Psalter  showing the family feast. Hand painted ceramic. Fired to 1130C and mounted without glass.','','','','','');
photos[50] = new photo(2134323,'83307','','gallery','http://www1.clikpic.com/andreeholden/images/Copy of Loaves to the Table.JPG',384,336,'\"Loaves To The table\"','http://www1.clikpic.com/andreeholden/images/Copy of Loaves to the Table_thumb.JPG',130, 114,0, 0,'Ceramic loaves attached to a continental 19th century bread board. Hangs from top handle. Size 51cm diameter','','','','','');
photos[51] = new photo(2134341,'83307','','gallery','http://www1.clikpic.com/andreeholden/images/Copy of Loaves detail.JPG',448,336,'\"Loaves\" detail','http://www1.clikpic.com/andreeholden/images/Copy of Loaves detail_thumb.JPG',130, 98,0, 0,'','','','','','');
photos[52] = new photo(2134345,'83307','','gallery','http://www1.clikpic.com/andreeholden/images/Copy of P4070070.JPG',346,336,'Scything Monk','http://www1.clikpic.com/andreeholden/images/Copy of P4070070_thumb.JPG',130, 126,0, 0,'Wall mounted carved Stoneware disc measuring 31cm diameter','','','','','');
photos[53] = new photo(2134351,'83307','','gallery','http://www1.clikpic.com/andreeholden/images/Copy of Scything monk detail.JPG',448,336,'Detail of Scything Monk','http://www1.clikpic.com/andreeholden/images/Copy of Scything monk detail_thumb.JPG',130, 98,0, 0,'','','','','','');
photos[54] = new photo(2134389,'83307','','gallery','http://www1.clikpic.com/andreeholden/images/Copy of After The Plough + background copy.jpg',500,725,'\"After The Plough\"','http://www1.clikpic.com/andreeholden/images/Copy of After The Plough + background copy_thumb.jpg',130, 189,0, 0,'Terracotta clay mounted on reclaimed Oak measuring 46cm x 27cm','','','','','');
photos[55] = new photo(2134403,'83307','','gallery','http://www1.clikpic.com/andreeholden/images/After The Plough - detail copy.jpg',500,311,'','http://www1.clikpic.com/andreeholden/images/After The Plough - detail copy_thumb.jpg',130, 81,0, 0,'Detail of After the Plough','','','','','');
photos[56] = new photo(2134417,'83307','','gallery','http://www1.clikpic.com/andreeholden/images/web pic.jpg',500,964,'\"Hessian Sacks\"','http://www1.clikpic.com/andreeholden/images/web pic_thumb.jpg',130, 251,0, 0,'Clay impressions of hessian sacking mounted in a deep frame measuring 72 x 29 x 5cm','','','','','');
photos[57] = new photo(2134423,'83307','','gallery','http://www1.clikpic.com/andreeholden/images/web version.JPG',500,692,'\"Harvest\" <br />\r\nA Page from the Luttrell Psalter','http://www1.clikpic.com/andreeholden/images/web version_thumb.JPG',130, 180,0, 0,'A page from the Luttrell Psalter copied onto heavy hand made paper and quilded. measuring 38 x 58cm before framing.','','','','','');
photos[58] = new photo(2134444,'83307','','gallery','http://www1.clikpic.com/andreeholden/images/P3040019.JPG',500,1143,'Detail from the Luttrell psalter','http://www1.clikpic.com/andreeholden/images/P3040019_thumb.JPG',130, 297,0, 0,'Page copied onto hand made paper','','','','','');
photos[59] = new photo(2134450,'83307','','gallery','http://www1.clikpic.com/andreeholden/images/Copy of P3040018.JPG',500,799,'Detail from Luttrell Psalter page','http://www1.clikpic.com/andreeholden/images/Copy of P3040018_thumb.JPG',130, 208,0, 0,'','','','','','');
photos[60] = new photo(2134475,'83307','','gallery','http://www1.clikpic.com/andreeholden/images/web pic1.JPG',500,645,'\"Seeds To Sow\"','http://www1.clikpic.com/andreeholden/images/web pic1_thumb.JPG',130, 168,0, 0,'Part of the grain to loaf story.<br />\r\nOats, Wheatb Barley and Rye set into Acrylic with brushed steel mountings. Measuring 46 x 86 x 2cm','','','','','');
photos[61] = new photo(2134483,'83307','','gallery','http://www1.clikpic.com/andreeholden/images/Copy of P4070080.JPG',500,564,'Hessian Sack','http://www1.clikpic.com/andreeholden/images/Copy of P4070080_thumb.JPG',130, 147,0, 0,'Detail from \"Hessian Sacks\" showing one piece of cloth glazed with poplar ash.','','','','','');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
galleries = new Array();
galleries[0] = new gallery(112337,'1683163,1683153,1683151,1681984,1681983,1681980,1681979,1681978,1681977,1681976','2D Artwork,  Illustration and Photo Images','gallery');
galleries[1] = new gallery(113577,'1682090','crumbs','gallery');
galleries[2] = new gallery(113578,'1683064','Donuts','gallery');
galleries[3] = new gallery(113581,'1664893','Individual pieces','gallery');
galleries[4] = new gallery(113373,'1681967','Little Treasures and oddities!','gallery');
galleries[5] = new gallery(112336,'1683145,1683138,1682123,1682122,1682119,1682113,1682107,1682094,1682092,1681997','Tableware','gallery');
galleries[6] = new gallery(113576,'1683064,1682090','Tableware 2','gallery');
galleries[7] = new gallery(112335,'1682019,1682006,1681989,1681961,1681959,1681958,1664915,1664913,1664875','Vessels','gallery');
galleries[8] = new gallery(83307,'2134483,2134475,2134450,2134444,2134423,2134417,2134403,2134389,2134351,2134345','Wall Art','gallery');

