/***************************************************************************
* 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('1090055,504284,504158,466207,464023,439317,437743,437703,437696,437689');
	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('1090055,504284,504158,466207,464023,439317,437743,437703,437696,437689');
	for (j = 0; j < photos.length; j++) {
		if (photos[j].id == imageID) {
			if ('section55474' != '') {
						if (photos[j].galleries_id != '') {
						document.write('<a href="' + photos[j].section_code + '_' + photos[j].galleries_id + '.html">');
						}
						else {
						document.write('<a href="section55474.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 ('section55474' != '') {
				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 = 'GENTLE VISIONS 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(504284,'36730','','section55474','http://www1.clikpic.com/gentlevisions/images/Elegant Cars.jpg',450,300,'','http://www1.clikpic.com/gentlevisions/images/Elegant Cars_thumb.jpg',130, 87,1, 0,'','','','','','');
photos[1] = new photo(504158,'36730','','section55474','http://www1.clikpic.com/gentlevisions/images/200406190062.jpg',533,400,'','http://www1.clikpic.com/gentlevisions/images/200406190062_thumb.jpg',130, 98,1, 0,'','','','','','');
photos[2] = new photo(504276,'36730','','section55474','http://www1.clikpic.com/gentlevisions/images/200505280145.jpg',600,400,'','http://www1.clikpic.com/gentlevisions/images/200505280145_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[3] = new photo(504271,'36730','','section55474','http://www1.clikpic.com/gentlevisions/images/200505280061.jpg',267,400,'','http://www1.clikpic.com/gentlevisions/images/200505280061_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[4] = new photo(437697,'36730','200508200054','section55474','http://www1.clikpic.com/gentlevisions/images/200508200054.jpg',267,400,'','http://www1.clikpic.com/gentlevisions/images/200508200054_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[5] = new photo(464273,'36730','20050800056','section55474','http://www1.clikpic.com/gentlevisions/images/200508200056.jpg',267,400,'','http://www1.clikpic.com/gentlevisions/images/200508200056_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[6] = new photo(464282,'36730','200505280104','section55474','http://www1.clikpic.com/gentlevisions/images/200505280104.jpg',267,400,'','http://www1.clikpic.com/gentlevisions/images/200505280104_thumb.jpg',130, 195,0, 1,'','','','','','');
photos[7] = new photo(464285,'36730','200505280200','section55474','http://www1.clikpic.com/gentlevisions/images/200505280200.jpg',267,400,'','http://www1.clikpic.com/gentlevisions/images/200505280200_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[8] = new photo(504367,'36730','','section55474','http://www1.clikpic.com/gentlevisions/images/200505280202.jpg',267,400,'','http://www1.clikpic.com/gentlevisions/images/200505280202_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[9] = new photo(1090055,'39228','200609030088','gallery','http://www1.clikpic.com/gentlevisions/images/200609030088L.jpg',600,401,'','http://www1.clikpic.com/gentlevisions/images/200609030088L_thumb.jpg',130, 87,1, 1,'','','','','','');
photos[10] = new photo(465804,'39228','200509240147','gallery','http://www1.clikpic.com/gentlevisions/images/200509240147.jpg',290,400,'Orchid','http://www1.clikpic.com/gentlevisions/images/200509240147_thumb.jpg',130, 179,0, 1,'','','','','','');
photos[11] = new photo(465805,'39228','200509240102','gallery','http://www1.clikpic.com/gentlevisions/images/200509240102.jpg',566,400,'Orchid','http://www1.clikpic.com/gentlevisions/images/200509240102_thumb.jpg',130, 92,0, 0,'','','','','','');
photos[12] = new photo(465807,'39228','200509240050','gallery','http://www1.clikpic.com/gentlevisions/images/200509240050.jpg',341,400,'Orchid','http://www1.clikpic.com/gentlevisions/images/200509240050_thumb.jpg',130, 152,0, 0,'','','','','','');
photos[13] = new photo(466224,'36873','','section55475','http://www1.clikpic.com/gentlevisions/images/Ain\'t Misbehavin\'.jpg',402,400,'','http://www1.clikpic.com/gentlevisions/images/Ain\'t Misbehavin\'_thumb.jpg',130, 129,0, 0,'Ain\'t Misbehavin\'','','','','','');
photos[14] = new photo(466207,'36873','200609070058','section55475','http://www1.clikpic.com/gentlevisions/images/200609070058.jpg',600,400,'Paul Booth\'s New Album - no looking back.<br>\r\nPhotography by James Gentle.<br>\r\nShot live at the SPICE OF LIFE, Cambridge Circus - September 2006.<br>\r\n<a href= \" http://www.photoboxgallery.com/GENTLE/3965182 \"><br>\r\nClick Here </a> to view further pictures taken at this gig.','http://www1.clikpic.com/gentlevisions/images/200609070058_thumb.jpg',130, 87,1, 1,'Paul Booth','','','','','');
photos[15] = new photo(466210,'36873','200609070293','section55475','http://www1.clikpic.com/gentlevisions/images/200609070293.jpg',600,400,'Paul Booth\'s New Album - no looking back.<br>\r\nPhotography by James Gentle.<br>\r\nShot live at the SPICE OF LIFE, Cambridge Circus - September 2006.<br>\r\n<a href= \" http://www.photoboxgallery.com/GENTLE/3965182 \"><br>\r\nClick Here </a> to view further pictures taken at this gig.','http://www1.clikpic.com/gentlevisions/images/200609070293_thumb.jpg',130, 87,0, 0,'Paul Booth','','','','','');
photos[16] = new photo(466215,'36873','','section55475','http://www1.clikpic.com/gentlevisions/images/003.jpg',600,400,'','http://www1.clikpic.com/gentlevisions/images/003_thumb.jpg',130, 87,0, 0,'Loose Change','','','','','');
photos[17] = new photo(437743,'34862','','section55475','http://www1.clikpic.com/gentlevisions/images/MSND poster (0122e2).jpg',596,400,'Angel','http://www1.clikpic.com/gentlevisions/images/MSND poster (0122e2)_thumb.jpg',130, 87,1, 1,'A Midsummer Nights Dream<br>\r\n<br>\r\nTheatre Arts Performance<br>\r\nArts Educational School, Tring','','James Gentle','','','');
photos[18] = new photo(1090006,'46716','200706120031','gallery','http://www1.clikpic.com/gentlevisions/images/200706120031.jpg',600,400,'Adélia','http://www1.clikpic.com/gentlevisions/images/200706120031_thumb.jpg',130, 87,0, 0,'','12/06/07','James Gentle','','','');
photos[19] = new photo(608800,'46716','','gallery','http://www1.clikpic.com/gentlevisions/images/1Gentle-S.jpg',185,288,'Lady of Jaipur','http://www1.clikpic.com/gentlevisions/images/1Gentle-S_thumb.jpg',130, 202,0, 0,'<strong>TransIndus Photography Competition Winner 2006<strong><br>\r\n<br>\r\nwww.transindus.co.uk','','James Gentle','India','','');
photos[20] = new photo(464281,'36729','200603190159','section55474','http://www1.clikpic.com/gentlevisions/images/200603190159.jpg',600,400,'','http://www1.clikpic.com/gentlevisions/images/200603190159_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[21] = new photo(494386,'36729','','section55474','http://www1.clikpic.com/gentlevisions/images/A&M Wed Mont (2).jpg',505,400,'','http://www1.clikpic.com/gentlevisions/images/A&M Wed Mont (2)_thumb.jpg',130, 103,0, 0,'','','','','','');
photos[22] = new photo(504281,'36729','','section55474','http://www1.clikpic.com/gentlevisions/images/200609300028.jpg',600,400,'','http://www1.clikpic.com/gentlevisions/images/200609300028_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[23] = new photo(504196,'36729','','section55474','http://www1.clikpic.com/gentlevisions/images/200505280019.jpg',267,400,'','http://www1.clikpic.com/gentlevisions/images/200505280019_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[24] = new photo(504318,'36729','','section55474','http://www1.clikpic.com/gentlevisions/images/200608260091.jpg',267,400,'','http://www1.clikpic.com/gentlevisions/images/200608260091_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[25] = new photo(464228,'36729','','section55474','http://www1.clikpic.com/gentlevisions/images/Confetti 05 (0091).jpg',285,400,'','http://www1.clikpic.com/gentlevisions/images/Confetti 05 (0091)_thumb.jpg',130, 182,0, 0,'','','','','','');
photos[26] = new photo(464234,'36729','','section55474','http://www1.clikpic.com/gentlevisions/images/ConfiDance03.jpg',283,400,'','http://www1.clikpic.com/gentlevisions/images/ConfiDance03_thumb.jpg',130, 184,0, 0,'','','','','','');
photos[27] = new photo(464276,'36729','2000508200158','section55474','http://www1.clikpic.com/gentlevisions/images/200508200158.jpg',267,400,'','http://www1.clikpic.com/gentlevisions/images/200508200158_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[28] = new photo(564158,'36729','','section55474','http://www1.clikpic.com/gentlevisions/images/2006061000271.jpg',267,400,'','http://www1.clikpic.com/gentlevisions/images/2006061000271_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[29] = new photo(504309,'39229','','gallery','http://www1.clikpic.com/gentlevisions/images/IMG_1237 Edit 2.jpg',274,400,'','http://www1.clikpic.com/gentlevisions/images/IMG_1237 Edit 2_thumb.jpg',130, 190,0, 1,'','','','','','');
photos[30] = new photo(504303,'39229','','gallery','http://www1.clikpic.com/gentlevisions/images/200609230048.jpg',267,400,'','http://www1.clikpic.com/gentlevisions/images/200609230048_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[31] = new photo(504319,'35084','','section55474','http://www1.clikpic.com/gentlevisions/images/200608260138.jpg',450,300,'','http://www1.clikpic.com/gentlevisions/images/200608260138_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[32] = new photo(482769,'35084','','section55474','http://www1.clikpic.com/gentlevisions/images/200508200075.jpg',600,400,'','http://www1.clikpic.com/gentlevisions/images/200508200075_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[33] = new photo(504286,'35084','','section55474','http://www1.clikpic.com/gentlevisions/images/Brian Saunders 2a.jpg',487,400,'','http://www1.clikpic.com/gentlevisions/images/Brian Saunders 2a_thumb.jpg',130, 107,0, 0,'','','','','','');
photos[34] = new photo(504320,'35084','','section55474','http://www1.clikpic.com/gentlevisions/images/200608260125.jpg',267,400,'','http://www1.clikpic.com/gentlevisions/images/200608260125_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[35] = new photo(464226,'35084','','section55474','http://www1.clikpic.com/gentlevisions/images/Confetti0096.jpg',267,400,'','http://www1.clikpic.com/gentlevisions/images/Confetti0096_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[36] = new photo(464231,'35084','','section55474','http://www1.clikpic.com/gentlevisions/images/ConfiDance07.jpg',283,400,'First Dance','http://www1.clikpic.com/gentlevisions/images/ConfiDance07_thumb.jpg',130, 184,0, 0,'','','','','','');
photos[37] = new photo(464233,'35084','','section55474','http://www1.clikpic.com/gentlevisions/images/Confetti0128.jpg',267,400,'','http://www1.clikpic.com/gentlevisions/images/Confetti0128_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[38] = new photo(464286,'35084','200505280214','section55474','http://www1.clikpic.com/gentlevisions/images/200505280214.jpg',267,400,'','http://www1.clikpic.com/gentlevisions/images/200505280214_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[39] = new photo(504222,'35084','','section55474','http://www1.clikpic.com/gentlevisions/images/200406190097.jpg',300,400,'','http://www1.clikpic.com/gentlevisions/images/200406190097_thumb.jpg',130, 173,0, 0,'','','','','','');
photos[40] = new photo(504270,'35084','','section55474','http://www1.clikpic.com/gentlevisions/images/200406190077.jpg',300,400,'','http://www1.clikpic.com/gentlevisions/images/200406190077_thumb.jpg',130, 173,0, 0,'','','','','','');
photos[41] = new photo(504332,'35084','','section55474','http://www1.clikpic.com/gentlevisions/images/200406060069.jpg',300,400,'','http://www1.clikpic.com/gentlevisions/images/200406060069_thumb.jpg',130, 173,0, 0,'','','','','','');
photos[42] = new photo(439316,'34863','200607110054','section55475','http://www1.clikpic.com/gentlevisions/images/200607110054.jpg',600,400,'','http://www1.clikpic.com/gentlevisions/images/200607110054_thumb.jpg',130, 87,0, 0,'Great British Circus','','James Gentle','Watford','','');
photos[43] = new photo(439317,'34863','200607110135','section55475','http://www1.clikpic.com/gentlevisions/images/200607110135.jpg',600,400,'','http://www1.clikpic.com/gentlevisions/images/200607110135_thumb.jpg',130, 87,1, 0,'Great British Circus','','','','','');
photos[44] = new photo(439319,'34863','200607110413','section55475','http://www1.clikpic.com/gentlevisions/images/200607110413.jpg',600,400,'','http://www1.clikpic.com/gentlevisions/images/200607110413_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[45] = new photo(466169,'34863','200607110166','section55475','http://www1.clikpic.com/gentlevisions/images/200607110166.jpg',600,400,'','http://www1.clikpic.com/gentlevisions/images/200607110166_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[46] = new photo(437779,'34863','200607110099','section55475','http://www1.clikpic.com/gentlevisions/images/200607110099.jpg',600,400,'','http://www1.clikpic.com/gentlevisions/images/200607110099_thumb.jpg',130, 87,0, 1,'Great British Circus<br>\r\n<br>\r\nPicture ref. 200607110099','11/07/06','James Gentle','Watford','','');
photos[47] = new photo(439312,'34863','200607110071','section55475','http://www1.clikpic.com/gentlevisions/images/200607110071.jpg',600,400,'','http://www1.clikpic.com/gentlevisions/images/200607110071_thumb.jpg',130, 87,0, 0,'Great British Circus<br>\r\n<br>\r\nGVP ref. 200607110071','11/07/06','James Gentle','Watford','','');
photos[48] = new photo(439321,'34863','200607110350','section55475','http://www1.clikpic.com/gentlevisions/images/200607110350.jpg',400,600,'','http://www1.clikpic.com/gentlevisions/images/200607110350_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[49] = new photo(466167,'34863','200607110237','section55475','http://www1.clikpic.com/gentlevisions/images/200607110237.jpg',400,600,'','http://www1.clikpic.com/gentlevisions/images/200607110237_thumb.jpg',130, 195,0, 0,'Fire,','','','','','');
photos[50] = new photo(437696,'36728','200603190008','section55474','http://www1.clikpic.com/gentlevisions/images/200603190008.jpg',600,400,'','http://www1.clikpic.com/gentlevisions/images/200603190008_thumb.jpg',130, 87,1, 0,'Description - Wedding Cars by','','James Gentle','','','');
photos[51] = new photo(464080,'36728','200508200130','section55474','http://www1.clikpic.com/gentlevisions/images/200508200130.jpg',600,400,'','http://www1.clikpic.com/gentlevisions/images/200508200130_thumb.jpg',130, 87,0, 1,'So much thought and time goes into planning every little detail, to make your day perfect.<br>\r\n<br>\r\nWe capture these special little details ...','','','','','');
photos[52] = new photo(464278,'36728','200603190011','section55474','http://www1.clikpic.com/gentlevisions/images/200603190011.jpg',600,400,'','http://www1.clikpic.com/gentlevisions/images/200603190011_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[53] = new photo(504179,'36728','','section55474','http://www1.clikpic.com/gentlevisions/images/200406190109.jpg',533,400,'','http://www1.clikpic.com/gentlevisions/images/200406190109_thumb.jpg',130, 98,0, 0,'','','','','','');
photos[54] = new photo(504371,'36728','','section55474','http://www1.clikpic.com/gentlevisions/images/200406190010.jpg',302,400,'','http://www1.clikpic.com/gentlevisions/images/200406190010_thumb.jpg',130, 172,0, 0,'','','','','','');
photos[55] = new photo(504343,'36728','','section55474','http://www1.clikpic.com/gentlevisions/images/200406190007.jpg',273,400,'','http://www1.clikpic.com/gentlevisions/images/200406190007_thumb.jpg',130, 190,0, 0,'','','','','','');
photos[56] = new photo(437689,'36727','','section55474','http://www1.clikpic.com/gentlevisions/images/01 GV Wed logo.jpg',566,400,'Gentle Visions Weddings','http://www1.clikpic.com/gentlevisions/images/01 GV Wed logo_thumb.jpg',130, 92,1, 1,'Gentle Visions specialise in reportage style photography with the emphasis being placed on capturing your special day in the most natural way possible, with minimal intrusion.  Thus letting you enjoy your wedding day.<br>\r\n<br>\r\nOur goal is to capture bride & groom, family, friends, relatives and guests at leisure throughout the day.','','','','','');
photos[57] = new photo(437703,'36727','','section55474','http://www1.clikpic.com/gentlevisions/images/GVP Mate1.jpg',600,368,'Gentle Visions Weddings','http://www1.clikpic.com/gentlevisions/images/GVP Mate1_thumb.jpg',130, 80,1, 0,'Specialist in reportage photography','','','','','');
photos[58] = new photo(464023,'36727','','section55474','http://www1.clikpic.com/gentlevisions/images/GVP Relax web.jpg',600,400,'Gentle Visions Weddings','http://www1.clikpic.com/gentlevisions/images/GVP Relax web_thumb.jpg',130, 87,1, 0,'Specialist in Reportage','','','','','');
photos[59] = new photo(464013,'36727','','section55474','http://www1.clikpic.com/gentlevisions/images/GV Wedding Flyer v1 web.jpg',400,600,'Gentle Visions Weddings','http://www1.clikpic.com/gentlevisions/images/GV Wedding Flyer v1 web_thumb.jpg',130, 195,0, 0,'','','','','','');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
galleries = new Array();
galleries[0] = new gallery(36730,'464282','gallery 1','section55474');
galleries[1] = new gallery(39228,'1090055,465804','Orchids','gallery');
galleries[2] = new gallery(36873,'466207','GIGS','section55475');
galleries[3] = new gallery(34862,'437743','THEATRE','section55475');
galleries[4] = new gallery(36729,'564158,504318,504281,504196,494386,464281,464276,464234,464228','gallery 2','section55474');
galleries[5] = new gallery(46716,'1090006,608800','Portrait','gallery');
galleries[6] = new gallery(39229,'504309','Nature','gallery');
galleries[7] = new gallery(35084,'504332,504320,504319,504286,504270,504222,482769,464286,464233,464231','gallery 3','section55474');
galleries[8] = new gallery(34863,'437779','CIRCUS','section55475');
galleries[9] = new gallery(36728,'464080','gallery 4','section55474');
galleries[10] = new gallery(36727,'437689','Your Wedding','section55474');

