/***************************************************************************
* 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('3470550,3470500,2028833,2028823,2028822,2028819,2028816,2028812,2028810,2028808,2028805,2028803,1722189,1722186,1722185,1721112,1435405,1435399,1433151,1011317,1011315,1011311,1011307,1011290,1011289,1011287,1011285,1011284,1011278,1011277,1011274,1011270,1011269,1011268,1011077,1011065,1011052');
	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('3470550,3470500,2028833,2028823,2028822,2028819,2028816,2028812,2028810,2028808,2028805,2028803,1722189,1722186,1722185,1721112,1435405,1435399,1433151,1011317,1011315,1011311,1011307,1011290,1011289,1011287,1011285,1011284,1011278,1011277,1011274,1011270,1011269,1011268,1011077,1011065,1011052');
	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 = 'Debbie Potter Photography: ' + 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(3470500,'75674','','gallery','http://admin.clikpic.com/queenbee1506/images/Chaffinch.JPG',500,333,'Chaffinch','http://admin.clikpic.com/queenbee1506/images/Chaffinch_thumb.JPG',130, 87,1, 1,'','18/02/09','','Brecon Beacons, Wales','','');
photos[1] = new photo(3470550,'75673','','gallery','http://admin.clikpic.com/queenbee1506/images/Llandovery Castle Ruins.jpg',500,357,'Llandovery Castle','http://admin.clikpic.com/queenbee1506/images/Llandovery Castle Ruins_thumb.jpg',130, 93,1, 1,'Llandovery Castle Ruins','18/02/09','','Llandovery, Dyfed, Wales','','');
photos[2] = new photo(2028812,'75673','QE Exhibiton Ref. 13','gallery','http://www4.clikpic.com/queenbee1506/images/View from Exton Hill.JPG',500,333,'View From Exton Hill','http://www4.clikpic.com/queenbee1506/images/View from Exton Hill_thumb.JPG',130, 87,1, 1,'','27/01/08','Debbie Potter','Exton Hill, Hampshire','','');
photos[3] = new photo(1721112,'75677','','gallery','http://www4.clikpic.com/queenbee1506/images/2007 Dec 29 002 edited.JPG',324,486,'Knowle Buddha!','http://www4.clikpic.com/queenbee1506/images/2007 Dec 29 002 edited_thumb.JPG',130, 195,1, 1,'','29/12/07','Debbie Potter','Knowle Village, Fareham, Hampshire','','');
photos[4] = new photo(2028829,'75675','QE Exhibition Ref. 30','gallery','http://www4.clikpic.com/queenbee1506/images/Mushrooms.jpg',500,500,'Mushrooms','http://www4.clikpic.com/queenbee1506/images/Mushrooms_thumb.jpg',130, 130,0, 0,'','13/10/07','Debbie Potter','Queen Elizabeth Country Park, Hampshire','','');
photos[5] = new photo(2028833,'75673','QE Exhibition Ref. 22','gallery','http://admin.clikpic.com/queenbee1506/images/Deer’s Eye View.JPG',432,648,'Deers Eye View','http://admin.clikpic.com/queenbee1506/images/Deer’s Eye View_thumb.JPG',130, 195,1, 1,'','13/10/07','Debbie Potter','Queen Elizabeth Country Park, Hampshire','','');
photos[6] = new photo(1722185,'75673','','gallery','http://www4.clikpic.com/queenbee1506/images/2007 Oct 07 117_edited-1.JPG',317,475,'Sunlight through the canopy...','http://www4.clikpic.com/queenbee1506/images/2007 Oct 07 117_edited-1_thumb.JPG',130, 195,1, 1,'','07/10/07','Debbie Potter','Queen Elizabeth Country Park, Hampshire','','');
photos[7] = new photo(1722186,'75673','','gallery','http://www4.clikpic.com/queenbee1506/images/2007 Oct 07 132_edited-1.JPG',356,534,'Butser Hill','http://www4.clikpic.com/queenbee1506/images/2007 Oct 07 132_edited-1_thumb.JPG',130, 195,1, 1,'','07/10/07','Debbie Potter','Butser Hill, Hampshire','','');
photos[8] = new photo(1722189,'75675','','gallery','http://www4.clikpic.com/queenbee1506/images/Mushrooms 035.JPG',356,534,'Mushrooms','http://www4.clikpic.com/queenbee1506/images/Mushrooms 035_thumb.JPG',130, 195,1, 1,'','07/10/07','Debbie Potter','Queen Elizabeth Country Park, Hampshire','','');
photos[9] = new photo(2028803,'75677','QE Exhibition Ref. 6','gallery','http://www4.clikpic.com/queenbee1506/images/Canopy.JPG',426,567,'Canopy','http://www4.clikpic.com/queenbee1506/images/Canopy_thumb.JPG',130, 173,1, 1,'','07/10/07','Debbie Potter','Queen Elizabeth Country Park, Hampshire','','');
photos[10] = new photo(2028808,'75673','QE Exhibition Ref. 25','gallery','http://www4.clikpic.com/queenbee1506/images/Woodland Walk.jpg',288,432,'Woodland Walk','http://www4.clikpic.com/queenbee1506/images/Woodland Walk_thumb.jpg',130, 195,1, 1,'','07/10/07','Debbie Potter','Queen Elizabeth Country Park, Hampshire','','');
photos[11] = new photo(2028819,'75675','QE Exhibition Ref. 28','gallery','http://admin.clikpic.com/queenbee1506/images/Tree Roots – Black & White.jpg',454,454,'Tree Roots','http://admin.clikpic.com/queenbee1506/images/Tree Roots – Black & White_thumb.jpg',130, 130,1, 1,'','07/10/07','Debbie Potter','Queen Elizabeth Country Park, Hampshire','','');
photos[12] = new photo(2028822,'75673','QE Exhibition Ref. 27','gallery','http://admin.clikpic.com/queenbee1506/images/Butser Hill – Black & White.jpg',500,500,'Butser Hill','http://admin.clikpic.com/queenbee1506/images/Butser Hill – Black & White_thumb.jpg',130, 130,1, 1,'','07/10/07','Debbie Potter','Butser Hill, Hampshire','','');
photos[13] = new photo(2028823,'75673','QE Exhibition Ref. 21','gallery','http://www4.clikpic.com/queenbee1506/images/Autumn in the Trees.jpg',288,432,'Autumn in the Trees','http://www4.clikpic.com/queenbee1506/images/Autumn in the Trees_thumb.jpg',130, 195,1, 1,'','07/10/07','Debbie Potter','Queen Elizabeth Country Park, Hampshire','','');
photos[14] = new photo(1435399,'75675','','gallery','http://www4.clikpic.com/queenbee1506/images/2007 Sep 30 011 - webversion.JPG',500,333,'A rose by any other name...','http://www4.clikpic.com/queenbee1506/images/2007 Sep 30 011 - webversion_thumb.JPG',130, 87,1, 0,'','30/09/07','Debbie Potter','','','');
photos[15] = new photo(1435401,'75675','','gallery','http://www4.clikpic.com/queenbee1506/images/TONE & TEXTURE0006.jpg',383,575,'Cactus - B&W','http://www4.clikpic.com/queenbee1506/images/TONE & TEXTURE0006_thumb.jpg',130, 195,0, 0,'','30/09/07','Debbie Potter','','','');
photos[16] = new photo(1433151,'75675','QE Exhibition Ref. 16','gallery','http://www4.clikpic.com/queenbee1506/images/2007 Sep 29 046_webversion.JPG',432,648,'Autumn\'s coming...','http://www4.clikpic.com/queenbee1506/images/2007 Sep 29 046_webversion_thumb.JPG',130, 195,1, 0,'First sign of autumn - red rosehips and yellowing leaves.','29/09/07','Debbie Potter','West End, Southampton','','');
photos[17] = new photo(1435405,'75673','','gallery','http://www4.clikpic.com/queenbee1506/images/2007 Sep 23 012 web version.JPG',500,333,'Lechlade on Thames','http://www4.clikpic.com/queenbee1506/images/2007 Sep 23 012 web version_thumb.JPG',130, 87,1, 0,'','23/09/07','Debbie Potter','The Cotswolds, England','','');
photos[18] = new photo(2028791,'75675','QE Exhibition Ref. 3','gallery','http://www4.clikpic.com/queenbee1506/images/In the Long Grass.JPG',500,375,'In The Long Grass','http://www4.clikpic.com/queenbee1506/images/In the Long Grass_thumb.JPG',130, 98,0, 0,'','22/07/07','Debbie Potter','Butser Hill, Hampshire','','');
photos[19] = new photo(2028805,'75673','QE Exhibition Ref. 7','gallery','http://www4.clikpic.com/queenbee1506/images/Bluebell Carpet.JPG',500,375,'Bluebell Carpet','http://www4.clikpic.com/queenbee1506/images/Bluebell Carpet_thumb.JPG',130, 98,1, 1,'','14/04/07','Debbie Potter','Whitley Wood, Hampshire','','');
photos[20] = new photo(2028816,'75675','QE Exhibition Ref. 15','gallery','http://www4.clikpic.com/queenbee1506/images/Blossoms.jpg',500,750,'Blossoms','http://www4.clikpic.com/queenbee1506/images/Blossoms_thumb.jpg',130, 195,1, 1,'','14/04/07','Debbie Potter','Whitley, Hampshire','','');
photos[21] = new photo(2028810,'75673','QE Exhibition Ref. 11','gallery','http://www4.clikpic.com/queenbee1506/images/Waves Crash.JPG',500,230,'Waves Crash','http://www4.clikpic.com/queenbee1506/images/Waves Crash_thumb.JPG',130, 60,1, 1,'','24/09/06','Debbie Potter','Malta','','');
photos[22] = new photo(1011077,'75675','QE Exhibition Ref. 4','gallery','http://www4.clikpic.com/queenbee1506/images/Grass Stipa Tenuifolia and Lavendula Stoechas.jpg',400,600,'Lavendar and Grass','http://www4.clikpic.com/queenbee1506/images/Grass Stipa Tenuifolia and Lavendula Stoechas_thumb.jpg',130, 195,1, 0,'Grass Stipa Tenuifolia and Lavendula Stoechas','22/06/06','Debbie Potter','RHS Wisley, Surrey','','');
photos[23] = new photo(2028789,'75675','QE Exhibition Ref. 1','gallery','http://www4.clikpic.com/queenbee1506/images/Allium.JPG',500,500,'Allium','http://www4.clikpic.com/queenbee1506/images/Allium_thumb.JPG',130, 130,0, 0,'','22/06/06','Debbie Potter','RHS Wisely, Surrey','','');
photos[24] = new photo(1011052,'75672','','gallery','http://www4.clikpic.com/queenbee1506/images/ag gerassimos 0016.jpg',500,341,'Ag Gerassimos Monastery','http://www4.clikpic.com/queenbee1506/images/ag gerassimos 0016_thumb.jpg',130, 89,1, 0,'','','Debbie Potter','Kefalonia','','');
photos[25] = new photo(1011065,'75677','','gallery','http://www4.clikpic.com/queenbee1506/images/burnt out car0016.jpg',498,400,'Trashed','http://www4.clikpic.com/queenbee1506/images/burnt out car0016_thumb.jpg',130, 104,1, 0,'Burnt Out Cars in Southampton','','Debbie Potter','Southampton','','');
photos[26] = new photo(1011066,'75691','','gallery','http://www4.clikpic.com/queenbee1506/images/Digi Pics 030906 080.jpg',400,600,'','http://www4.clikpic.com/queenbee1506/images/Digi Pics 030906 080_thumb.jpg',130, 195,0, 0,'','','Debbie Potter','Hyde Park, London','','');
photos[27] = new photo(1011068,'75691','','gallery','http://www4.clikpic.com/queenbee1506/images/Empty Deckchairs.jpg',400,600,'Empty Deckchairs','http://www4.clikpic.com/queenbee1506/images/Empty Deckchairs_thumb.jpg',130, 195,0, 0,'','','Debbie Potter','Promanade, Bournemouth','','');
photos[28] = new photo(1011071,'75673','','gallery','http://www4.clikpic.com/queenbee1506/images/Exp 16 -  Aira Force Stream_edited-1.jpg',400,600,'Tumbling White Water','http://www4.clikpic.com/queenbee1506/images/Exp 16 -  Aira Force Stream_edited-1_thumb.jpg',130, 195,0, 0,'','','Debbie Potter','Aira Force, Glenridding, Cumbria','','');
photos[29] = new photo(1011075,'75672','','gallery','http://www4.clikpic.com/queenbee1506/images/fiskado0001.jpg',400,560,'Back Streets of Fiskado','http://www4.clikpic.com/queenbee1506/images/fiskado0001_thumb.jpg',130, 182,0, 0,'','','Debbie Potter','Fiskado, Kefalonia','','');
photos[30] = new photo(1011268,'75675','','gallery','http://www4.clikpic.com/queenbee1506/images/Image0002.jpg',500,334,'Poppies','http://www4.clikpic.com/queenbee1506/images/Image0002_thumb.jpg',130, 87,1, 0,'','','Debbie Potter','Winchester, Hampshire','','');
photos[31] = new photo(1011269,'75675','','gallery','http://www4.clikpic.com/queenbee1506/images/Image0006.jpg',500,334,'Poppy Field','http://www4.clikpic.com/queenbee1506/images/Image0006_thumb.jpg',130, 87,1, 0,'','','Debbie Potter','Winchester, Hampshire','','');
photos[32] = new photo(1011270,'75675','','gallery','http://www4.clikpic.com/queenbee1506/images/IMG_1176.JPG',500,334,'Hazel...','http://www4.clikpic.com/queenbee1506/images/IMG_1176_thumb.JPG',130, 87,1, 0,'','','Debbie Potter','Winchester, Hampshire','','');
photos[33] = new photo(1011272,'75673','','gallery','http://www4.clikpic.com/queenbee1506/images/KIONI - ITHACA0025.jpg',500,345,'Kioni, Ithaca','http://www4.clikpic.com/queenbee1506/images/KIONI - ITHACA0025_thumb.jpg',130, 90,0, 0,'','','Debbie Potter','Kioni, Ithaca','','');
photos[34] = new photo(1011274,'75677','','gallery','http://www4.clikpic.com/queenbee1506/images/m27 lights0015.jpg',500,344,'Light Show','http://www4.clikpic.com/queenbee1506/images/m27 lights0015_thumb.jpg',130, 89,1, 0,'M27 at Night','','Debbie Potter','Southampton, Hampshire','','');
photos[35] = new photo(1011275,'75673','','gallery','http://www4.clikpic.com/queenbee1506/images/myrtos bay 0034.jpg',500,342,'Myrtos Bay, Kefalonia','http://www4.clikpic.com/queenbee1506/images/myrtos bay 0034_thumb.jpg',130, 89,0, 0,'','','Debbie Potter','Myrtos Bay, Kefalonia','','');
photos[36] = new photo(1011276,'75673','','gallery','http://www4.clikpic.com/queenbee1506/images/pylons 01.jpg',500,334,'Pylons at Sunrise','http://www4.clikpic.com/queenbee1506/images/pylons 01_thumb.jpg',130, 87,0, 0,'','','Debbie Potter','Durley, Hampshire','','');
photos[37] = new photo(1011277,'75675','','gallery','http://www4.clikpic.com/queenbee1506/images/roses001.jpg',500,334,'Roses are red... And Pink','http://www4.clikpic.com/queenbee1506/images/roses001_thumb.jpg',130, 87,1, 0,'','','Debbie Potter','','','');
photos[38] = new photo(1011278,'75675','','gallery','http://www4.clikpic.com/queenbee1506/images/roses002.jpg',500,334,'Fallen Rose','http://www4.clikpic.com/queenbee1506/images/roses002_thumb.jpg',130, 87,1, 0,'','','Debbie Potter','','','');
photos[39] = new photo(1011280,'75691','','gallery','http://www4.clikpic.com/queenbee1506/images/sweeties0005.jpg',500,400,'Jelly Beantastic!','http://www4.clikpic.com/queenbee1506/images/sweeties0005_thumb.jpg',130, 104,0, 0,'','','Debbie Potter','','','');
photos[40] = new photo(1011281,'75673','','gallery','http://www4.clikpic.com/queenbee1506/images/VATHY - ITHACA0017.jpg',500,341,'Vathy Harbour, Ithaca','http://www4.clikpic.com/queenbee1506/images/VATHY - ITHACA0017_thumb.jpg',130, 89,0, 0,'','','Debbie Potter','Vathy, Ithaca','','');
photos[41] = new photo(1011283,'75673','','gallery','http://www4.clikpic.com/queenbee1506/images/IMG_1130.JPG',400,600,'River Walk','http://www4.clikpic.com/queenbee1506/images/IMG_1130_thumb.JPG',130, 195,0, 0,'','','Debbie Potter','Winchester, Hampshire','','');
photos[42] = new photo(1011284,'75675','','gallery','http://www4.clikpic.com/queenbee1506/images/IMG_1175.JPG',400,600,'Snowdrops by a Wall','http://www4.clikpic.com/queenbee1506/images/IMG_1175_thumb.JPG',130, 195,1, 0,'','','Debbie Potter','Winchester, Hampshire','','');
photos[43] = new photo(1011285,'75675','','gallery','http://www4.clikpic.com/queenbee1506/images/KIONI - ITHACA0035.jpg',400,550,'Hang on There','http://www4.clikpic.com/queenbee1506/images/KIONI - ITHACA0035_thumb.jpg',130, 179,1, 0,'','','Debbie Potter','Kioni, Ithaca','','');
photos[44] = new photo(1011287,'75672','','gallery','http://www4.clikpic.com/queenbee1506/images/netley abbey001.jpg',400,557,'Netley Chapel','http://www4.clikpic.com/queenbee1506/images/netley abbey001_thumb.jpg',130, 181,1, 0,'','','Debbie Potter','Royal Victoria Country Park, Hampshire','','');
photos[45] = new photo(1011288,'75691','','gallery','http://www4.clikpic.com/queenbee1506/images/Picture 037.jpg',400,600,'Serene Budda','http://www4.clikpic.com/queenbee1506/images/Picture 037_thumb.jpg',130, 195,0, 0,'','','Debbie Potter','','','');
photos[46] = new photo(1011289,'75672','','gallery','http://www4.clikpic.com/queenbee1506/images/spinikar0012.jpg',400,547,'Spinnakar Tower','http://www4.clikpic.com/queenbee1506/images/spinikar0012_thumb.jpg',130, 178,1, 0,'','','Debbie Potter','Portsmouth, Hampshire','','');
photos[47] = new photo(1011290,'75672','','gallery','http://www4.clikpic.com/queenbee1506/images/street 20.jpg',400,560,'Back Streets, Ag. Efimia','http://www4.clikpic.com/queenbee1506/images/street 20_thumb.jpg',130, 182,1, 0,'','','Debbie Potter','Ag. Efimia, Kefalonia','','');
photos[48] = new photo(1011291,'75676','','gallery','http://www4.clikpic.com/queenbee1506/images/the solent001.jpg',400,552,'Sun On The Solent','http://www4.clikpic.com/queenbee1506/images/the solent001_thumb.jpg',130, 179,0, 0,'','','Debbie Potter','Swanwick, Hampshire','','');
photos[49] = new photo(1011301,'75671','','gallery','http://www4.clikpic.com/queenbee1506/images/05 01 07 010_edited-1.jpg',500,500,'Sisters','http://www4.clikpic.com/queenbee1506/images/05 01 07 010_edited-1_thumb.jpg',130, 130,0, 0,'','','Debbie Potter','Jardins du Luxembourg, Paris','','');
photos[50] = new photo(1011307,'75672','','gallery','http://www4.clikpic.com/queenbee1506/images/hoover dam0022.jpg',400,271,'Up and over the dam...','http://www4.clikpic.com/queenbee1506/images/hoover dam0022_thumb.jpg',130, 88,1, 0,'Aerial Photo of the Hoover Dam','','Debbie Potter',' Nevada/Arizona, United States','','');
photos[51] = new photo(1011309,'75673','','gallery','http://www4.clikpic.com/queenbee1506/images/Exp 33 - Ulswater with Blue Hues.jpg',400,267,'Ulswater Blues','http://www4.clikpic.com/queenbee1506/images/Exp 33 - Ulswater with Blue Hues_thumb.jpg',130, 87,0, 0,'','','Debbie Potter','Lake District, Cumbria','','');
photos[52] = new photo(1011311,'75676','','gallery','http://www4.clikpic.com/queenbee1506/images/Exp 37 - Sparkles at Ulswater.jpg',400,267,'Sparkles and Sunshine At Ulswater','http://www4.clikpic.com/queenbee1506/images/Exp 37 - Sparkles at Ulswater_thumb.jpg',130, 87,1, 0,'','','Debbie Potter','Lake District, Cumbria','','');
photos[53] = new photo(1011312,'75691','','gallery','http://www4.clikpic.com/queenbee1506/images/boats0017.jpg',400,486,'No Sailing Today!!','http://www4.clikpic.com/queenbee1506/images/boats0017_thumb.jpg',130, 158,0, 0,'','','Debbie Potter','Lymington, Hampshire','','');
photos[54] = new photo(1011313,'75673','','gallery','http://www4.clikpic.com/queenbee1506/images/Exp 20  - Pooley Bridge.jpg',400,600,'Pooley Bridge','http://www4.clikpic.com/queenbee1506/images/Exp 20  - Pooley Bridge_thumb.jpg',130, 195,0, 0,'','','Debbie Potter','Lake District, Cumbria','','');
photos[55] = new photo(1011315,'75672','','gallery','http://www4.clikpic.com/queenbee1506/images/luxor sunburst0019.jpg',400,490,'Luxor Sunburst','http://www4.clikpic.com/queenbee1506/images/luxor sunburst0019_thumb.jpg',130, 159,1, 0,'Luxor Hotel, Las Vegas','','Debbie Potter','Nevada, United States','','');
photos[56] = new photo(1011317,'75672','','gallery','http://www4.clikpic.com/queenbee1506/images/Stratosphere0003.jpg',400,492,'Stratosphere Tower','http://www4.clikpic.com/queenbee1506/images/Stratosphere0003_thumb.jpg',130, 160,1, 0,'Las Vegas Hotel','','Debbie Potter','Nevada, United States','','');
photos[57] = new photo(2028790,'75675','QE Exhibition Ref. 2','gallery','http://www4.clikpic.com/queenbee1506/images/Rose.JPG',500,500,'Rose','http://www4.clikpic.com/queenbee1506/images/Rose_thumb.JPG',130, 130,0, 0,'','','Debbie Potter','','','');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
galleries = new Array();
galleries[0] = new gallery(75677,'2028803,1721112','Abstract & Creative','gallery');
galleries[1] = new gallery(75672,'1011317,1011315,1011307,1011290,1011289,1011287,1011075,1011052','Buildings & Cities','gallery');
galleries[2] = new gallery(75675,'2028819,2028816,1722189','Flowers & Plants','gallery');
galleries[3] = new gallery(75673,'3470550,2028833,2028823,2028822,2028812,2028810,2028808,2028805,1722186,1722185','Landscapes','gallery');
galleries[4] = new gallery(75691,'1011312,1011288,1011280,1011068,1011066','Miscellaneous','gallery');
galleries[5] = new gallery(75671,'1011301','People & Portraits','gallery');
galleries[6] = new gallery(75676,'1011311,1011291','Weather & Sun','gallery');
galleries[7] = new gallery(75674,'3470500','Wildlife','gallery');

