/***************************************************************************
* 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('418460');
	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('418460');
	for (j = 0; j < photos.length; j++) {
		if (photos[j].id == imageID) {
			if ('section53925' != '') {
						if (photos[j].galleries_id != '') {
						document.write('<a href="' + photos[j].section_code + '_' + photos[j].galleries_id + '.html">');
						}
						else {
						document.write('<a href="section53925.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 ('section53925' != '') {
				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 = 'Penny Gentle Art Glass: ' + 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(418460,'','','','http://www3.clikpic.com/pennyg/images/morocco2.jpg',399,533,'My daughter in the Sahara Desert','http://www3.clikpic.com/pennyg/images/morocco2_thumb.jpg',97, 130,1, 0,'','','','Toward Morocco','','My daughter in the Sahara Desert');
photos[1] = new photo(2140849,'142188','','section53941','http://www3.clikpic.com/pennyg/images/IMG_3181_2.jpg',238,320,'Jellyfish in its Garden','http://www3.clikpic.com/pennyg/images/IMG_3181_2_thumb.jpg',97, 130,0, 0,'A blue, sparkly jellyfish swims among sea-plants in shades of orange and white; there are beautiful strands of green seaweed inside the bead as well as on the surface, giving the bead some unexpected texture.  The bead is 4cm x 3cm, and was made with BullsEye glass.  Please contact me for purchasing information.','','','','','');
photos[2] = new photo(2140851,'142188','','section53941','http://www3.clikpic.com/pennyg/images/IMG_3182.jpg',319,320,'Detail of Jellyfish in its Garden','http://www3.clikpic.com/pennyg/images/IMG_3182_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[3] = new photo(2140854,'142188','','section53941','http://www3.clikpic.com/pennyg/images/IMG_3181.jpg',271,320,'Detail of Jellyfish in its Garden','http://www3.clikpic.com/pennyg/images/IMG_3181_thumb.jpg',110, 130,0, 0,'','','','','','');
photos[4] = new photo(2140891,'142188','','section53941','http://www3.clikpic.com/pennyg/images/IMG_3189.jpg',263,320,'Jellyfish Beauty','http://www3.clikpic.com/pennyg/images/IMG_3189_thumb.jpg',107, 130,0, 0,'I love this little bead.  It is olive shaped, about 2.75cm in length.  The two jellies in it are the most beautiful turquoise and aqua colors, with electric blue tentacles against a background of bubbles and silver leaf.  I think it is my favorite jelly bead so far!','','','','','');
photos[5] = new photo(2140900,'142188','','section53941','http://www3.clikpic.com/pennyg/images/IMG_3187.jpg',319,320,'Diving Jelly','http://www3.clikpic.com/pennyg/images/IMG_3187_thumb.jpg',130, 130,0, 0,'The jellyfish doesn\'t have to be diving, if you invert the bead, but here it is, aquas in its mantle, deep blue tentacles, lots of bubbles, and silvered glass fronds of seaweed in the background.  The bead is 2cm x 2cm.  Please contact me for more information.','','','','','');
photos[6] = new photo(2140915,'142188','','section53941','http://www3.clikpic.com/pennyg/images/IMG_3185_2.jpg',310,320,'Another blue jelly','http://www3.clikpic.com/pennyg/images/IMG_3185_2_thumb.jpg',126, 130,0, 0,'This one swims alone in a bead that is olive shaped and 3cm long.  It has white as well as electric blue tentacles and some sparkle in its mantle.  BullsEye glass is so beautiful, and it lends its wonderful qualities nicely to this bead. Please contact me if you are interested in this jellyfish.','','','','','');
photos[7] = new photo(2140929,'142188','','section53941','http://www3.clikpic.com/pennyg/images/IMG_3168.jpg',307,320,'Jelly in a garden of pink','http://www3.clikpic.com/pennyg/images/IMG_3168_thumb.jpg',125, 130,0, 0,'This is a smaller bead, in BullsEye glass, with pink sea-flower murinni, a silvered ivory murinne, and the delicate jelly swimming around the circumference of the bead.','','','','','');
photos[8] = new photo(2140950,'142188','','section53941','http://www3.clikpic.com/pennyg/images/IMG_3167.jpg',252,320,'Jelly Deep Down','http://www3.clikpic.com/pennyg/images/IMG_3167_thumb.jpg',102, 130,0, 0,'This bead shows jellies in a darker, deeper sea environment, with green seaweed swaying with them in their element.  Contact me for more information about this bead.','','','','','');
photos[9] = new photo(2140954,'142188','','section53941','http://www3.clikpic.com/pennyg/images/IMG_3149.jpg',270,320,'Sea Plants','http://www3.clikpic.com/pennyg/images/IMG_3149_thumb.jpg',110, 130,0, 0,'This bead has such depth.  The multi-layered \"plants\" evoke many living oceanic plants and creatures.  The BullsEye glass offers sparkle and beautiful color for this scene.','','','','','');
photos[10] = new photo(3331937,'58264','','section53941','http://www3.clikpic.com/pennyg/images/IMG_3563_2.jpg',307,320,'Bouquet','http://www3.clikpic.com/pennyg/images/IMG_3563_2_thumb.jpg',125, 130,0, 0,'There is a touch of dichroic glass on the base of this bead, with four white and pink roses and delicate green leaves...also a light spray of gold stone stringer.  On the surface there are sprigs of metallic greenery.  The bead is made with Bullseye Glass from Oregon; it measures 3cm x 2.5cm, with a 2mm hole.','','','',55.00,'');
photos[11] = new photo(3331994,'58264','','section53941','http://www3.clikpic.com/pennyg/images/IMG_3569.jpg',314,320,'Roses with tiny bluettes','http://www3.clikpic.com/pennyg/images/IMG_3569_thumb.jpg',128, 130,0, 0,'The three delicate pink roses lie over tiny bluettes, with green leaves.  The base is a light creamy color, and the surface of the bead has gold stone at the top and bottom. It is made with Bullseye glass; 25mm x 20mm, with a 2mm hole.','','','',55.00,'');
photos[12] = new photo(3332006,'58264','','section53941','http://www3.clikpic.com/pennyg/images/IMG_3574_2.jpg',288,320,'Roses and white flowers','http://www3.clikpic.com/pennyg/images/IMG_3574_2_thumb.jpg',117, 130,0, 0,'This is a truly beautiful bead with three luscious pink roses over white three-petal flowers.  There is gold stone bordering the top and bottom of the bead as well as metallic lustre garlands of leaves on the surface.  The bead is 3cm x 2.5 cm, with a 2mm hole.','','','',55.00,'');
photos[13] = new photo(3332011,'58264','','section53941','http://www3.clikpic.com/pennyg/images/IMG_3574_2_2.jpg',320,262,'Close-up of roses with white flowers','http://www3.clikpic.com/pennyg/images/IMG_3574_2_2_thumb.jpg',130, 106,0, 0,'','','','','','');
photos[14] = new photo(3332047,'58264','','section53941','http://www3.clikpic.com/pennyg/images/IMG_3596_2.jpg',236,320,'Roses and Violets','http://www3.clikpic.com/pennyg/images/IMG_3596_2_thumb.jpg',96, 130,0, 0,'Violets and pink roses float over a base of black, line with gold stone stringer on each side of the bead.  There are two types of leaves in this bead, something Bullseye Glass provides so beautifully by blending several of their magnificent greens!  The bead is 35mm x 20mm, with a 2mm hole.','','','',60.00,'');
photos[15] = new photo(3332067,'58264','','section53941','http://www3.clikpic.com/pennyg/images/IMG_3570.jpg',264,320,'White','http://www3.clikpic.com/pennyg/images/IMG_3570_thumb.jpg',107, 130,0, 0,'These are not quite roses, but the bead is stunning!  It looks painted, with  two creamy, rose- tinted flowers lying over several peach and rose colored little flowers.  The base is a beautiful copper green from the laying of silver and copper leaf over a color called Irish Cream (like a latte!).  Be sure to look at the closeup of this bead!  33mm x 22mm, with a 2mm hole.','','','',65.00,'');
photos[16] = new photo(3332072,'58264','','section53941','http://www3.clikpic.com/pennyg/images/IMG_3603_2_2.jpg',320,270,'A close-up of White','http://www3.clikpic.com/pennyg/images/IMG_3603_2_2_thumb.jpg',130, 110,0, 0,'','','','','','');
photos[17] = new photo(3332110,'58264','','section53941','http://www3.clikpic.com/pennyg/images/IMG_3607_3.jpg',319,320,'Roses with Lily of the Valley','http://www3.clikpic.com/pennyg/images/IMG_3607_3_thumb.jpg',130, 130,0, 0,'I love this bead, with its sprays of lily of the valley looming large among four roses in a spiral around the bead.  A fine line of gold stone accentuates the spiral.  The bead is smaller,  25mm x 20mm, with a 2mm hole.  This is a detail of the bead.  SOLD','','','','','');
photos[18] = new photo(3332115,'58264','','section53941','http://www3.clikpic.com/pennyg/images/IMG_3607_2.jpg',320,312,'Roses and Lily of the Valley','http://www3.clikpic.com/pennyg/images/IMG_3607_2_thumb.jpg',130, 127,0, 0,'...the whole bead!  SOLD.','','','','','');
photos[19] = new photo(3332143,'58264','','section53941','http://www3.clikpic.com/pennyg/images/IMG_3624_2.jpg',311,320,'Four White Flowers','http://www3.clikpic.com/pennyg/images/IMG_3624_2_thumb.jpg',126, 130,0, 0,'While not intended to portray roses, this bead is one of my favorites from this series.  It is really small by comparison, only 20mm x 20mm, and has the pretty lustre green sprays of leaves on its surface, as well as delicate lines of gold stone stringer weaving among the blooms.','','','',55.00,'');
photos[20] = new photo(3332154,'58264','','section53941','http://www3.clikpic.com/pennyg/images/IMG_3625_2.jpg',320,311,'detail of Four White Flowers','http://www3.clikpic.com/pennyg/images/IMG_3625_2_thumb.jpg',130, 126,0, 0,'The blooms have delicate touches of rose and spring green sparkle in their centers.','','','','','');
photos[21] = new photo(3332188,'58264','','section53941','http://www3.clikpic.com/pennyg/images/IMG_3615.jpg',262,320,'Yellow Roses and Pink Cascading Flowers','http://www3.clikpic.com/pennyg/images/IMG_3615_thumb.jpg',106, 130,0, 0,'There are two yellow roses among sprays of pink flowers which could be foxgloves or delphinium, or even lily of the valley.  The bead is 25mm x 20mm with a 2mm hole, and there is a touch of dichroic on the base to catch the light in an intriguing way.','','','',55.00,'');
photos[22] = new photo(418501,'33803','','section53941','http://www3.clikpic.com/pennyg/images/shell1.jpg',399,457,'Gold fumed shell','http://www3.clikpic.com/pennyg/images/shell1_thumb.jpg',114, 130,0, 0,'This is a hollow bead, opened to form  the mouth of the shell, which is fumed in gold.  This shell has been made into a pendant and would look very nice on a chain or ribbon.','','','',45.00,'');
photos[23] = new photo(444472,'33803','','section53941','http://www3.clikpic.com/pennyg/images/Shellgoldfumed.jpg',400,451,'Shell, another view','http://www3.clikpic.com/pennyg/images/Shellgoldfumed_thumb.jpg',115, 130,0, 0,'This photo shows the delicate pink from gold fuming.','','','','','');
photos[24] = new photo(1235255,'33797','','section53925','http://www3.clikpic.com/pennyg/images/IMG_2381.jpg',400,300,'Sweet Peas Necklace!','http://www3.clikpic.com/pennyg/images/IMG_2381_thumb.jpg',130, 98,0, 0,'White sweet peas of glass grace this silk cord necklace, with pearls, beads and Swarovski crystals for sparkle.  The necklace is finished with silk Chinese knots and a hand-made sterling silver clasp.  SOLD','','','','','');
photos[25] = new photo(1235323,'33797','','section53925','http://www3.clikpic.com/pennyg/images/IMG_2385.jpg',400,300,'A close-up of the sweet peas','http://www3.clikpic.com/pennyg/images/IMG_2385_thumb.jpg',130, 98,0, 0,'','','','','','');
photos[26] = new photo(1235334,'33797','','section53925','http://www3.clikpic.com/pennyg/images/IMG_2426.jpg',400,300,'Elegant in Pink!','http://www3.clikpic.com/pennyg/images/IMG_2426_thumb.jpg',130, 98,0, 0,'The bead is fantastically beautiful, with a black base, silvered murinni, then pink as well as white complex cane murinni flowers all around.  They are encased in a deep coat of clear glass to magnify them.  The egg-shaped bead is bound with deep purple Chinese knots and topped with a cold-worked hollow pink bead.  The pink silk cord necklace has a lovely design of white pearls, and is finished with purple Chinese knots and a hand-made sterling silver clasp.  The necklace is in a gallery at this time...please let me know if you would be interested in having it.','','','','','');
photos[27] = new photo(1235337,'33797','','section53925','http://www3.clikpic.com/pennyg/images/IMG_2427.jpg',600,450,'The entire necklace','http://www3.clikpic.com/pennyg/images/IMG_2427_thumb.jpg',130, 98,0, 0,'This necklace allows the bead to hang at a comfortable length on the body.','','','','','');
photos[28] = new photo(2124653,'33797','','section53925','http://www3.clikpic.com/pennyg/images/IMG_3134.jpg',320,262,'Pink Floral Necklace','http://www3.clikpic.com/pennyg/images/IMG_3134_thumb.jpg',130, 106,0, 0,'This necklace is like a confection, delightful pink and white flowers of complex floral cane murinni against various shades of green leaves, with a wispy pink background.  To compliment the 4cm long tabular bead the findings are very contemporary hammered copper tubing, polished and waxed to maintain the rosy color.  The necklace part is black silk Embead material, with Chinese knots at all the attachments.','','','',225.00,'');
photos[29] = new photo(2124654,'33797','','section53925','http://www3.clikpic.com/pennyg/images/IMG_3140_2.jpg',320,208,'Another view of the bead and findings','http://www3.clikpic.com/pennyg/images/IMG_3140_2_thumb.jpg',130, 85,0, 0,'','','','','','');
photos[30] = new photo(2124655,'33797','','section53925','http://www3.clikpic.com/pennyg/images/IMG_3140.jpg',320,316,'A close-up photo of the bead','http://www3.clikpic.com/pennyg/images/IMG_3140_thumb.jpg',130, 128,0, 0,'','','','','','');
photos[31] = new photo(3331906,'33797','','section53925','http://www3.clikpic.com/pennyg/images/IMG_3537.jpg',320,240,'Another view','http://www3.clikpic.com/pennyg/images/IMG_3537_thumb.jpg',130, 98,0, 0,'','','','','','');
photos[32] = new photo(3331913,'33797','','section53925','http://www3.clikpic.com/pennyg/images/IMG_3511_2.jpg',320,295,'Sweet Peas','http://www3.clikpic.com/pennyg/images/IMG_3511_2_thumb.jpg',130, 120,0, 0,'This is a new necklace with blossoms made with hand-mixed colors from Bullseye glass.  It is currently in the Flower Power Show in Rockport, Maine.','','','','','');
photos[33] = new photo(423038,'33813','','section53943','http://www3.clikpic.com/pennyg/images/coral-bells.jpg',350,262,'Coral bells','http://www3.clikpic.com/pennyg/images/coral-bells_thumb.jpg',130, 97,0, 0,'This is a delightful and exotic necklace with bells of various coral colors and transparent accents.  There is lots of silver and a sterling silver hand-made clasp.  Length is about 18\".  SOLD','','','','','');
photos[34] = new photo(423058,'33813','','section53943','http://www3.clikpic.com/pennyg/images/William-studio-dog1.jpg',345,400,'William the Studio Dog','http://www3.clikpic.com/pennyg/images/William-studio-dog1_thumb.jpg',112, 130,0, 0,'William is not my creation, and he is my great friend.  He spends hours supervising the art of flameworking.  He is not for sale....not ever!','','','','','');
photos[35] = new photo(423064,'33813','','section53943','http://www3.clikpic.com/pennyg/images/IMG_1514.JPG',400,300,'Lovely shapes...olives','http://www3.clikpic.com/pennyg/images/IMG_1514_thumb.JPG',130, 98,0, 0,'I used Reichenbach deeply colored glass to make these sensuous olive-shaped beads.','','','','','');
photos[36] = new photo(444473,'33797','','section53925','http://www3.clikpic.com/pennyg/images/IMG_3530.jpg',320,240,'Foxgloves, a new version','http://www3.clikpic.com/pennyg/images/IMG_3530_thumb.jpg',130, 98,0, 0,'I was asked to make this necklace again, for a show called Flower Power, at CMCA in Rockport, Maine.  It is more lush than the first one...not for sale just yet.','','','','','');
photos[37] = new photo(444474,'33797','','section53925','http://www3.clikpic.com/pennyg/images/foxgloves2.jpg',400,300,'Foxgloves detail','http://www3.clikpic.com/pennyg/images/foxgloves2_thumb.jpg',130, 98,0, 0,'The light coming through these glass flowers make them glow with delicate softness.','','','','','');
photos[38] = new photo(423066,'33813','','section53943','http://www3.clikpic.com/pennyg/images/IMG_1570.JPG',350,315,'Stones','http://www3.clikpic.com/pennyg/images/IMG_1570_thumb.JPG',130, 117,0, 0,'I love the stony quality of these beads, using aventurine and enamels to get subtle shades and mottling.','','','','','');
photos[39] = new photo(817031,'33813','','section53943','http://www3.clikpic.com/pennyg/images/IMG_2136.jpg',310,400,'Flowers on the Vine','http://www3.clikpic.com/pennyg/images/IMG_2136_thumb.jpg',101, 130,0, 0,'This is a departure from the disc shape, with white morning glories over deep green leaves made of murinni and shaped.  The base is a lovely Bullseye color, peony; bead is 32mmx18mm with a 4mm hole.','','','','','');
photos[40] = new photo(817062,'33813','','section53943','http://www3.clikpic.com/pennyg/images/56435-IMG_2145.jpg',329,400,'Tuscan Spring','http://www3.clikpic.com/pennyg/images/56435-IMG_2145_thumb.jpg',107, 130,0, 0,'Pink and white flowers, made of Bullseye floral cane murrini, float over rich vines and leaves.  The bead base is Nougat, with a reactive frit for color, reminiscent of Tuscan tones. The bead is  22m x 37mm with a 4mm hole. SOLD','','','','','');
photos[41] = new photo(915072,'33813','','section53943','http://www3.clikpic.com/pennyg/images/IMG_2167.JPG',328,400,'Delicate Flowers','http://www3.clikpic.com/pennyg/images/IMG_2167_thumb.JPG',107, 130,0, 0,'Another view of the flowers','','','','','');
photos[42] = new photo(619923,'33799','','section53925','http://www3.clikpic.com/pennyg/images/silvered-florals-bracelet.jpg',400,300,'Silvered flowers','http://www3.clikpic.com/pennyg/images/silvered-florals-bracelet_thumb.jpg',130, 98,0, 0,'The Reichenbach base glass was heavily silvered before these flowers were put on, giving the beads a rich European look.  The spacers are veiled glass, in shades of pink and the clasp is hand forged sterling silver.  The bracelet is 7 1/2\" long. SOLD','','','','','');
photos[43] = new photo(423031,'33801','','section53941','http://www3.clikpic.com/pennyg/images/peonies.jpg',300,391,'Peonies','http://www3.clikpic.com/pennyg/images/peonies_thumb.jpg',100, 130,0, 1,'This lovely bead is made with numerous canes developed to give the illusion of vines and petals. This bead is not for sale at this time.','','','','','');
photos[44] = new photo(753809,'33801','','section53941','http://www3.clikpic.com/pennyg/images/IMG_1905.jpg',400,395,'Voila..Pink flowers!','http://www3.clikpic.com/pennyg/images/IMG_1905_thumb.jpg',130, 128,0, 0,'The Reichenbach pinks of these flowers explode with vibrance when this heart bead is set on its side.  They are deeply encased in clear glass for this effect.  SOLD.','','','','','');
photos[45] = new photo(816969,'33801','','section53941','http://www3.clikpic.com/pennyg/images/IMG_2047.jpg',394,400,'paperweight floral','http://www3.clikpic.com/pennyg/images/IMG_2047_thumb.jpg',128, 130,0, 0,'Delicate pale orange floral murinni set in paperweight technique over silvered ivory murinni with a transparent core...this is a delightful little bead. It measures 18mm x 23mm, with a 4mm hole. Moretti soft glass.','','','',75.00,'');
photos[46] = new photo(816975,'33801','','section53941','http://www3.clikpic.com/pennyg/images/IMG_2067.jpg',367,400,'White floral cane murinni','http://www3.clikpic.com/pennyg/images/IMG_2067_thumb.jpg',119, 130,0, 0,'These tiny white murinni open into multi-petal flowers with a touch of green and blue; they are placed over silvered cobalt and a reactive frit, with vine cane swirling behind them.  17mm x 25mm with a 4mm hole.','','','',75.00,'');
photos[47] = new photo(1796522,'33801','','section53941','http://www3.clikpic.com/pennyg/images/IMG_2746.jpg',208,320,'NEW FLORALS','http://www3.clikpic.com/pennyg/images/IMG_2746_thumb.jpg',85, 130,0, 0,'I learned this complex style from another, very talented bead maker and love the effect of the Japanese pleated interior combined with varied stringers and floral canes.  This bead will be in a show for a while but will be available, maybe, in a month!  It is 40mm by c. 20mm.  It is currently made into a necklace with PMC beadcaps.','','','','','');
photos[48] = new photo(1796523,'33801','','section53941','http://www3.clikpic.com/pennyg/images/IMG_2747_2.jpg',187,320,'DETAIL OF NEW FLORAL','http://www3.clikpic.com/pennyg/images/IMG_2747_2_thumb.jpg',76, 130,0, 0,'','','','','','');
photos[49] = new photo(1796525,'33801','','section53941','http://www3.clikpic.com/pennyg/images/IMG_2786.jpg',205,320,'NEW FLORAL','http://www3.clikpic.com/pennyg/images/IMG_2786_thumb.jpg',83, 130,0, 0,'This bead is so beautiful!  It is made with Bulls Eye glass, black with pink flowers and little white blooms that will remind you of Victorian motifs. It measures c. 35mm by c. 13mm and is in a gallery for the month of February.  It has been made into a necklace with PMC beadcaps.','','','','','');
photos[50] = new photo(1796539,'33801','','section53941','http://www3.clikpic.com/pennyg/images/IMG_2787.jpg',212,320,'NEW FLORAL DETAIL','http://www3.clikpic.com/pennyg/images/IMG_2787_thumb.jpg',86, 130,0, 0,'Another view of my favorite floral bead!','','','','','');
photos[51] = new photo(1796552,'33801','','section53941','http://www3.clikpic.com/pennyg/images/IMG_2789.jpg',226,320,'EVENING FLORAL','http://www3.clikpic.com/pennyg/images/IMG_2789_thumb.jpg',92, 130,0, 0,'The base of this beautiful bead is Bulls Eye marine blues with a delicate sparkle in them. There are blue and pink multi-petal flowers under the surface. Then goldstone stringers and delicate flowers made with floral cane on the surface of the bead.  It is exquisite, and measures 45mm by 20mm.  It is not for sale just yet.','','','','','');
photos[52] = new photo(1796565,'33801','','section53941','http://www3.clikpic.com/pennyg/images/IMG_2788.jpg',210,320,'SOFT MAY BLOOMS','http://www3.clikpic.com/pennyg/images/IMG_2788_thumb.jpg',85, 130,0, 0,'Again with Bulls Eye glass, delicate pale flowers on a jade green base, simple and soft in its effect.  The bead is 40mm by 15mm.  It will be available soon.','','','','','');
photos[53] = new photo(1796584,'33801','','section53941','http://www3.clikpic.com/pennyg/images/IMG_2797.jpg',178,320,'DEEP PINK','http://www3.clikpic.com/pennyg/images/IMG_2797_thumb.jpg',72, 130,0, 0,'The lovely rich pink of this bead is two Bulls Eye glass colors layered.  There are soft pale flowers under the surface, with goldstone stringer vines and floral cane blossoms in bas-relief on the surface. There are also metallic murrini lying on the surface that have coppery colors in them. The bead is 44mm by 17mm. Not available just yet!','','','','','');
photos[54] = new photo(1235435,'33812','','section53941','http://www3.clikpic.com/pennyg/images/IMG_2482a.jpg',541,600,'Metallics','http://www3.clikpic.com/pennyg/images/IMG_2482a_thumb.jpg',117, 130,0, 0,'I love this exciting bead!  It is blown from Gaffer purple lustre glass, with reactive frits, copper leaf and silver leaf.  It is 24mm from end to end.','','','',35.00,'');
photos[55] = new photo(1235439,'33812','','section53941','http://www3.clikpic.com/pennyg/images/IMG_2481a.jpg',541,600,'Another view of Metallics','http://www3.clikpic.com/pennyg/images/IMG_2481a_thumb.jpg',117, 130,0, 0,'This photo shows the bead in a slightly different light, another side.','','','','','');
photos[56] = new photo(753808,'33812','','section53941','http://www3.clikpic.com/pennyg/images/IMG_1889.jpg',324,399,'Heart!','http://www3.clikpic.com/pennyg/images/IMG_1889_thumb.jpg',106, 130,0, 0,'Ivory, red, reactive frits and a beautiful Gaffer special cane make this cold-worked heart very organic.  From the side the core of the bead looks almost like stone from the frits laid over silver leaf.  The heart is 35mm x 20mm x 10mm with a 3mm hole.','','','',60.00,'');
photos[57] = new photo(1796602,'33814','','section53946','http://www3.clikpic.com/pennyg/images/IMG_2721.jpg',226,320,'PROTOTYPES','http://www3.clikpic.com/pennyg/images/IMG_2721_thumb.jpg',92, 130,0, 0,'It is good to take on a huge challenge with glass...it is humbling, in fact!  This bead has the mandrel running through the top bead, which waited in the kiln while I made the floral section completely off-mandrel.  The glass is Bulls Eye, a tolerant glass for the task of building a bead on nothing, and the flowers are cane murrini set in paperweight fashion.  I hope to have more of these, maybe even with a straight axis, in the not-too-distant future!','','','','','');
photos[58] = new photo(1796609,'33814','','section53946','http://www3.clikpic.com/pennyg/images/IMG_2723.jpg',209,320,'ANOTHER OF THE PROTOTYPES','http://www3.clikpic.com/pennyg/images/IMG_2723_thumb.jpg',85, 130,0, 0,'This one was made in the same fashion, but with Moretti glass, which is a little softer, hence the wavy blue base.  I etched and randomly faceted this bead just to see how such a bead could look.  It is what we call \"wonky\" but it has its charm!','','','','','');
photos[59] = new photo(424492,'33814','','section53946','http://www3.clikpic.com/pennyg/images/111NewSRAlogo.jpg',150,80,'Member G35','http://www3.clikpic.com/pennyg/images/111NewSRAlogo_thumb.jpg',130, 69,0, 0,'','','','','','');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
galleries = new Array();
galleries[0] = new gallery(33800,'','Earrings','section53925');
galleries[1] = new gallery(58264,'3332188,3332154,3332143,3332115,3332110,3332072,3332067,3332047,3332011,3332006','ROSES ROSES ROSES','section53941');
galleries[2] = new gallery(142188,'2140954,2140950,2140929,2140915,2140900,2140891,2140854,2140851,2140849','Sea Life','section53941');
galleries[3] = new gallery(33803,'444472,418501','Shells','section53941');
galleries[4] = new gallery(33813,'915072,817062,817031,423066,423064,423058,423038','Gallery','section53943');
galleries[5] = new gallery(33797,'3331913,3331906,2124655,2124654,2124653,1235337,1235334,1235323,1235255,444474','Necklaces','section53925');
galleries[6] = new gallery(33799,'619923','Bracelets','section53925');
galleries[7] = new gallery(33801,'423031','Florals','section53941');
galleries[8] = new gallery(33812,'1235439,1235435,753808','Organics','section53941');
galleries[9] = new gallery(33814,'1796609,1796602,424492','Bead sets','section53946');

