/***************************************************************************
* 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('2360186,2360184,2360181,2360180,2359790,2359786,2359757,2359685,2359413,2359402,1982071,1982055,1981960,1852388,1851862,1519965,1519956,1519870,1519868,1519861,1519853,1519317,972771,972758,945266,945265,921374,921372,921371,921359,921316,921313,921293,921290,921288,921270,921235,921232,921225,920126,920121,920108,920100,920017,920009,919993,919983,919976,919974,919971');
	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('2360186,2360184,2360181,2360180,2359790,2359786,2359757,2359685,2359413,2359402,1982071,1982055,1981960,1852388,1851862,1519965,1519956,1519870,1519868,1519861,1519853,1519317,972771,972758,945266,945265,921374,921372,921371,921359,921316,921313,921293,921290,921288,921270,921235,921232,921225,920126,920121,920108,920100,920017,920009,919993,919983,919976,919974,919971');
	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)) {
		debug('In updateImage');
		debug('setting  img src = ' + photos[nextImg].src);
		
					
			document.getElementById('imagePhoto').innerHTML = '<img class="mainphoto" src="' + photos[nextImg].src + ' " id="mainPic" name="mainPic" width="' + photos[nextImg].width + '" height="' + photos[nextImg].height + '" alt="' + photos[nextImg].caption + '" border="0">';
						field.value = photos[nextImg].id;
			document.getElementById('imageTitle').innerHTML = photos[nextImg].caption;
			document.title = photos[nextImg].caption;
			/* apply 'blank' classname to element where */			if ( photos[nextImg].caption == '') {
				document.getElementById('imageTitle').style.className = 'blank';
			}
			else {
				document.getElementById('imageTitle').style.className = 'normal';
			}
						temp = '';
			if (photos[nextImg].description != '') {
				temp = temp +  '<p id="imageDescription">' + photos[nextImg].description + '</p>';
			}
			if (photos[nextImg].photo_ref != '') {
				temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + photos[nextImg].photo_ref + '</p>';
			}
			if (photos[nextImg].takendate != '') {
				debug('Resetting taken date');
				temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + photos[nextImg].takendate + '</p>';
			}
			
			if (photos[nextImg].location != '') {
				debug('Resetting location');
				temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  photos[nextImg].location + '</p>';
			}
			
			if (photos[nextImg].photographer != '') {
				debug('Resetting photographer');
				temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + photos[nextImg].photographer + '</p>';
			}
			if (temp != '') {				temp = temp + '<div class="spacer"></div>';			}					if (temp == '') {
			document.getElementById('imageDetails').style.display = 'none';
		}
		else {
			document.getElementById('imageDetails').style.display = 'block';
		}
		document.getElementById('imageDetails').innerHTML =temp;	
		
	}
	else {
		debug('Redirecting to id ' + photos[nextImg].id);
		window.location = 'photo_' + photos[nextImg].id + '.html';
	}
}

/***************************************************************************
* Show the previous image for a gallery. field = hidden field containing   *
* image_id                                                                 *
*  img = reference to image object in which to show image                  *
***************************************************************************/
function previous(field,img) {


	imageID = field.value;
	for (j = 0; j < photos.length; j++) {
		if (photos[j].id == imageID) {
			break;
		}
	}
	debug('image is ' + j);
	nextImg = -1;
	k = j -1;
	while (nextImg < 0) {
		for (; k >= 0; k--) {
			if (photos[k].galleries_id == photos[j].galleries_id) {
				nextImg = k;
				break;
			}
		}
		if (nextImg == -1) {
			k = photos.length -1;
		}
	}
	if (nextImg != -1) {
		updateImage(nextImg, field,img);	
	}
}

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.
        *
* Gallery_id = id of gallery to choose                                     *
* 
 img = reference to html image                                       *
* in which to show image                                                   *
***************************************************************************/
function showGalleryImage(gallery_id, img) {
	debug('Gallery = ' + gallery_id);
	for (i = 0; i < galleries.length; i++) {
		if (galleries[i].id == gallery_id) {
			imageID = randomListVal(galleries[i].featured_images);
				for (j = 0; j < photos.length; j++) {
					if (photos[j].id == imageID) {
						
						img.src = photos[j].thumbnail;
						img.width = photos[j].thumbnail_width;
						img.height = photos[j].thumbnail_height;
						
						break;
					}
				}
			break;
		}
	} 
	}

/***************************************************************************
* If we have dynamic HTML                                                  *
*  replace the galleries link with a list that                             *
* doesn't include the current gallery                                      *
***************************************************************************/
function showGalleries(gallery_id) {
	debug('Showing links for gallery ' + gallery_id);
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
			debug('Testing gallery ' + galleries[i].id);
			
			if (galleries[i].id != gallery_id) {
				debug('Adding link');
				if (temp != '') {
					temp = temp + ' | ';
				}
				temp = temp + '<a href="gallery_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}
/***************************************************************************
* Create the array of Photo objects                                        *
***************************************************************************/
photos = new Array();
photos[0] = new photo(1982071,'103691','','gallery','http://admin.clikpic.com/lesdobbs/images/Picture 561a72dpi.jpg',434,363,'Family outing','http://admin.clikpic.com/lesdobbs/images/Picture 561a72dpi_thumb.jpg',130, 109,0, 0,'','22/09/09','Les Dobbs','Masai Mara','','');
photos[1] = new photo(1519868,'103691','','gallery','http://www1.clikpic.com/lesdobbs/images/Picture 648a72dpi.jpg',500,364,'Dawn','http://www1.clikpic.com/lesdobbs/images/Picture 648a72dpi_thumb.jpg',130, 95,0, 0,'Sunrise over the Savana','23/09/07','Les Dobbs','Masai Mara','','');
photos[2] = new photo(1519870,'103691','','gallery','http://www1.clikpic.com/lesdobbs/images/Picture 628a72dpi.jpg',360,360,'The Dark Continent','http://www1.clikpic.com/lesdobbs/images/Picture 628a72dpi_thumb.jpg',130, 130,0, 0,'Sunset over the Masai Mara','23/09/07','Les Dobbs','Masai Mara','','');
photos[3] = new photo(1519956,'103691','','gallery','http://www1.clikpic.com/lesdobbs/images/Picture 705a 72dpi.jpg',441,480,'Masi Warriors.','http://www1.clikpic.com/lesdobbs/images/Picture 705a 72dpi_thumb.jpg',130, 141,0, 0,'He who jumps the highest, get the girls.','23/09/07','Les Dobbs','Masai Mara','','');
photos[4] = new photo(1519853,'103691','','gallery','http://www1.clikpic.com/lesdobbs/images/Picture 778a 72dpi.jpg',361,360,'Savanna Lioness','http://www1.clikpic.com/lesdobbs/images/Picture 778a 72dpi_thumb.jpg',130, 130,0, 0,'Resting','22/09/07','Les Dobbs','Masai Mara','','');
photos[5] = new photo(1519861,'103691','','gallery','http://www1.clikpic.com/lesdobbs/images/Picture 759a72dpi.jpg',361,505,'Big Boy','http://www1.clikpic.com/lesdobbs/images/Picture 759a72dpi_thumb.jpg',130, 182,0, 0,'Masi Mara Elephant','22/09/07','Les Dobbs','Masai Mara','','');
photos[6] = new photo(1519965,'103691','','gallery','http://www1.clikpic.com/lesdobbs/images/Picture 599a 72dpi.jpg',361,362,'Mum with playful cub','http://www1.clikpic.com/lesdobbs/images/Picture 599a 72dpi_thumb.jpg',130, 130,0, 1,'','22/09/07','Les Dobbs','Masai Mara','','');
photos[7] = new photo(1519317,'103691','','gallery','http://www1.clikpic.com/lesdobbs/images/Picture 328b 72dpi.jpg',500,312,'Samburu Leopard','http://www1.clikpic.com/lesdobbs/images/Picture 328b 72dpi_thumb.jpg',130, 81,0, 0,'Just Passing','19/09/07','Les Dobbs','Samburu National Park ','','');
photos[8] = new photo(1981960,'103691','','gallery','http://admin.clikpic.com/lesdobbs/images/Picture 271a72dpi.jpg',438,360,'','http://admin.clikpic.com/lesdobbs/images/Picture 271a72dpi_thumb.jpg',130, 107,0, 0,'','19/09/07','Les Dobbs','','','');
photos[9] = new photo(1982055,'103691','','gallery','http://admin.clikpic.com/lesdobbs/images/Picture 278a72dpi.jpg',465,364,'','http://admin.clikpic.com/lesdobbs/images/Picture 278a72dpi_thumb.jpg',130, 102,0, 0,'','19/09/07','Les Dobbs','','','');
photos[10] = new photo(2359685,'71358','','gallery','http://admin.clikpic.com/lesdobbs/images/Picture 35ab1.jpg',500,744,'Amy','http://admin.clikpic.com/lesdobbs/images/Picture 35ab1_thumb.jpg',130, 193,0, 0,'','24/05/08','','Swindon','','');
photos[11] = new photo(945266,'71358','Port 02','gallery','http://www1.clikpic.com/lesdobbs/images/PORT 02.jpg',415,432,'','http://www1.clikpic.com/lesdobbs/images/PORT 02_thumb.jpg',130, 135,0, 1,'','22/04/07','Les Dobbs','Swindon','','');
photos[12] = new photo(945265,'71358','Port 01','gallery','http://www1.clikpic.com/lesdobbs/images/PORT 01.jpg',500,235,'','http://www1.clikpic.com/lesdobbs/images/PORT 01_thumb.jpg',130, 61,0, 0,'','','Sharon Edwards','Swindon','','');
photos[13] = new photo(1852388,'69992','','gallery','http://admin.clikpic.com/lesdobbs/images/On the road 72.jpg',446,417,'','http://admin.clikpic.com/lesdobbs/images/On the road 72_thumb.jpg',130, 122,0, 0,'','12/09/01','Les Dobbs','','','');
photos[14] = new photo(919971,'69992','Spot Light','gallery','http://www1.clikpic.com/lesdobbs/images/49.jpg',500,462,'','http://www1.clikpic.com/lesdobbs/images/49_thumb.jpg',130, 120,0, 0,'','','Les Dobbs','Rome','','');
photos[15] = new photo(919976,'69992','BW07','gallery','http://www1.clikpic.com/lesdobbs/images/BW07a copy.jpg',500,483,'','http://www1.clikpic.com/lesdobbs/images/BW07a copy_thumb.jpg',130, 126,0, 0,'In side the Pumpkin','','Les Dobbs','Swindon','','');
photos[16] = new photo(921225,'69992','','gallery','http://www1.clikpic.com/lesdobbs/images/BW06.jpg',500,344,'','http://www1.clikpic.com/lesdobbs/images/BW06_thumb.jpg',130, 89,0, 0,'','','Les Dobbs','','','');
photos[17] = new photo(921290,'69992','BW14','gallery','http://www1.clikpic.com/lesdobbs/images/BW14.jpg',500,338,'','http://www1.clikpic.com/lesdobbs/images/BW14_thumb.jpg',130, 88,0, 0,'','','','','','');
photos[18] = new photo(921293,'69992','BW11','gallery','http://www1.clikpic.com/lesdobbs/images/BW11.jpg',500,328,'','http://www1.clikpic.com/lesdobbs/images/BW11_thumb.jpg',130, 85,0, 0,'','','Les Dobbs','','','');
photos[19] = new photo(921316,'69992','BW07','gallery','http://www1.clikpic.com/lesdobbs/images/BW07.jpg',500,353,'','http://www1.clikpic.com/lesdobbs/images/BW07_thumb.jpg',130, 92,0, 0,'','','Les Dobbs','','','');
photos[20] = new photo(921371,'69992','BW04','gallery','http://www1.clikpic.com/lesdobbs/images/BW04 copy.jpg',500,347,'','http://www1.clikpic.com/lesdobbs/images/BW04 copy_thumb.jpg',130, 90,0, 0,'','','Les Dobbs','','','');
photos[21] = new photo(921372,'69992','BW02','gallery','http://www1.clikpic.com/lesdobbs/images/BW022.jpg',440,600,'','http://www1.clikpic.com/lesdobbs/images/BW022_thumb.jpg',130, 177,0, 0,'','','Les Dobbs','','','');
photos[22] = new photo(921374,'69992','BW15','gallery','http://www1.clikpic.com/lesdobbs/images/BW15.jpg',500,395,'Flying High','http://www1.clikpic.com/lesdobbs/images/BW15_thumb.jpg',130, 103,0, 0,'up,up and away','','Les Dobbs','','','');
photos[23] = new photo(972771,'69992','BWa2','gallery','http://www1.clikpic.com/lesdobbs/images/BW03a2 copy.jpg',419,600,'On it\'s own','http://www1.clikpic.com/lesdobbs/images/BW03a2 copy_thumb.jpg',130, 186,0, 1,'','','Les Dobbs','Wiltshire','','');
photos[24] = new photo(972758,'69992','BW15','gallery','http://www1.clikpic.com/lesdobbs/images/BW15 Its Raining Again.jpg',427,600,'It\'s Raining Again','http://www1.clikpic.com/lesdobbs/images/BW15 Its Raining Again_thumb.jpg',130, 183,0, 0,'','','Les Dobbs','','','');
photos[25] = new photo(919974,'69992','BW01','gallery','http://www1.clikpic.com/lesdobbs/images/BW01.jpg',476,600,'','http://www1.clikpic.com/lesdobbs/images/BW01_thumb.jpg',130, 164,0, 0,'','','','','','');
photos[26] = new photo(921313,'69992','BW05','gallery','http://www1.clikpic.com/lesdobbs/images/BW05.jpg',460,600,'','http://www1.clikpic.com/lesdobbs/images/BW05_thumb.jpg',130, 170,0, 0,'','','Les Dobbs','','','');
photos[27] = new photo(1851862,'70007','','gallery','http://admin.clikpic.com/lesdobbs/images/The Pond copy.jpg',500,317,'Mirror Image','http://admin.clikpic.com/lesdobbs/images/The Pond copy_thumb.jpg',130, 82,0, 0,'','14/05/99','Les Dobbs','Ryidar Vally Wales','','');
photos[28] = new photo(919880,'70007','','gallery','http://www1.clikpic.com/lesdobbs/images/01.jpg',500,363,'','http://www1.clikpic.com/lesdobbs/images/01_thumb.jpg',130, 94,0, 0,'','','','','','');
photos[29] = new photo(920009,'70007','Lan29','gallery','http://www1.clikpic.com/lesdobbs/images/29.jpg',500,353,'','http://www1.clikpic.com/lesdobbs/images/29_thumb.jpg',130, 92,0, 1,'','','Les Dobbs','','','');
photos[30] = new photo(920100,'70007','','gallery','http://www1.clikpic.com/lesdobbs/images/191.jpg',416,600,'','http://www1.clikpic.com/lesdobbs/images/191_thumb.jpg',130, 188,0, 0,'','','Les Dobbs','','','');
photos[31] = new photo(921270,'70007','LAN26','gallery','http://www1.clikpic.com/lesdobbs/images/LAN26.jpg',500,368,'','http://www1.clikpic.com/lesdobbs/images/LAN26_thumb.jpg',130, 96,0, 0,'','','Les Dobbs','','','');
photos[32] = new photo(921288,'70007','LAN46','gallery','http://www1.clikpic.com/lesdobbs/images/LAN46.jpg',479,600,'','http://www1.clikpic.com/lesdobbs/images/LAN46_thumb.jpg',130, 163,0, 0,'','','','','','');
photos[33] = new photo(920126,'70007','LAN 15','gallery','http://www1.clikpic.com/lesdobbs/images/15.jpg',421,600,'','http://www1.clikpic.com/lesdobbs/images/15_thumb.jpg',130, 185,0, 0,'','','Les Dobbs','','','');
photos[34] = new photo(2359786,'62426','','gallery','http://admin.clikpic.com/lesdobbs/images/S&D02a.jpg',361,505,'The Bus','http://admin.clikpic.com/lesdobbs/images/S&D02a_thumb.jpg',130, 182,0, 0,'','25/04/08','','','','');
photos[35] = new photo(2360180,'62426','','gallery','http://admin.clikpic.com/lesdobbs/images/Picture 915a1.jpg',500,356,'','http://admin.clikpic.com/lesdobbs/images/Picture 915a1_thumb.jpg',130, 93,0, 0,'','25/04/08','Les Dobbs','Bristol','','');
photos[36] = new photo(2360181,'62426','','gallery','http://admin.clikpic.com/lesdobbs/images/Picture 920a1.jpg',500,356,'','http://admin.clikpic.com/lesdobbs/images/Picture 920a1_thumb.jpg',130, 93,0, 0,'','25/04/08','Les Dobbs','Bristol','','');
photos[37] = new photo(2360184,'62426','','gallery','http://admin.clikpic.com/lesdobbs/images/Picture 974a.jpg',500,701,'','http://admin.clikpic.com/lesdobbs/images/Picture 974a_thumb.jpg',130, 182,0, 0,'','25/04/08','Les Dobbs','Bristol','','');
photos[38] = new photo(2360186,'62426','','gallery','http://admin.clikpic.com/lesdobbs/images/S&D46a.jpg',360,504,'','http://admin.clikpic.com/lesdobbs/images/S&D46a_thumb.jpg',130, 182,0, 0,'','25/04/08','Les Dobbs','Bristol','','');
photos[39] = new photo(919983,'62426','WED13','gallery','http://www1.clikpic.com/lesdobbs/images/Wed 132.jpg',415,600,'','http://www1.clikpic.com/lesdobbs/images/Wed 132_thumb.jpg',130, 188,0, 1,'Daydream','','Les Dobbs','Swindon','','');
photos[40] = new photo(919993,'62426','WED11','gallery','http://www1.clikpic.com/lesdobbs/images/Wed 11.jpg',428,600,'','http://www1.clikpic.com/lesdobbs/images/Wed 11_thumb.jpg',130, 182,0, 0,'','','','','','');
photos[41] = new photo(920017,'62426','WED07','gallery','http://www1.clikpic.com/lesdobbs/images/Wed 07.jpg',429,600,'','http://www1.clikpic.com/lesdobbs/images/Wed 07_thumb.jpg',130, 182,0, 0,'','','','','','');
photos[42] = new photo(921232,'62426','','gallery','http://www1.clikpic.com/lesdobbs/images/Wed 05.jpg',377,567,'','http://www1.clikpic.com/lesdobbs/images/Wed 05_thumb.jpg',130, 196,0, 0,'','','','','','');
photos[43] = new photo(921235,'62426','WED01','gallery','http://www1.clikpic.com/lesdobbs/images/Wed 01.jpg',500,368,'','http://www1.clikpic.com/lesdobbs/images/Wed 01_thumb.jpg',130, 96,0, 0,'','','','','','');
photos[44] = new photo(2359790,'62426','','gallery','http://admin.clikpic.com/lesdobbs/images/S&D40a.jpg',433,289,'The Cake','http://admin.clikpic.com/lesdobbs/images/S&D40a_thumb.jpg',130, 87,0, 0,'','','Les Dobbs','Bristol','','');
photos[45] = new photo(2359402,'153537','','gallery','http://admin.clikpic.com/lesdobbs/images/4 Dollars Stars & Strips copy.jpg',500,705,'The Dollar','http://admin.clikpic.com/lesdobbs/images/4 Dollars Stars & Strips copy_thumb.jpg',130, 183,0, 0,'','24/06/08','','','','');
photos[46] = new photo(2359413,'153537','','gallery','http://admin.clikpic.com/lesdobbs/images/4 Pounds Sterling1.jpg',500,705,'','http://admin.clikpic.com/lesdobbs/images/4 Pounds Sterling1_thumb.jpg',130, 183,0, 0,'The pound','24/06/08','Les Dobbs','','','');
photos[47] = new photo(2359757,'153537','','gallery','http://admin.clikpic.com/lesdobbs/images/My Rose 72.jpg',500,454,'Englands Rose','http://admin.clikpic.com/lesdobbs/images/My Rose 72_thumb.jpg',130, 118,0, 0,'Rose','24/06/08','','Swindon','','');
photos[48] = new photo(920108,'153537','CA02','gallery','http://www1.clikpic.com/lesdobbs/images/Pop Art 02 72 dpi.jpg',432,600,'','http://www1.clikpic.com/lesdobbs/images/Pop Art 02 72 dpi_thumb.jpg',130, 181,0, 0,'','','','','','');
photos[49] = new photo(920121,'153537','CA01','gallery','http://www1.clikpic.com/lesdobbs/images/CR01.jpg',500,500,'','http://www1.clikpic.com/lesdobbs/images/CR01_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[50] = new photo(921359,'153537','CA43','gallery','http://www1.clikpic.com/lesdobbs/images/CA431.jpg',414,586,'','http://www1.clikpic.com/lesdobbs/images/CA431_thumb.jpg',130, 184,0, 0,'','','Les Dobbs','','','');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
galleries = new Array();
galleries[0] = new gallery(103691,'1519965','African Safari ','gallery');
galleries[1] = new gallery(71358,'945266','Portraits','gallery');
galleries[2] = new gallery(69992,'972771','Black & White','gallery');
galleries[3] = new gallery(70007,'920009','Landscape','gallery');
galleries[4] = new gallery(62426,'919983','Weddings','gallery');
galleries[5] = new gallery(153537,'2359757,2359413,2359402,921359,920121,920108','Creative Art','gallery');
galleries[6] = new gallery(132858,'','Commercial & Events Photography','gallery');

