/***************************************************************************
* 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('1550166,1550047');
	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('1550166,1550047');
	for (j = 0; j < photos.length; j++) {
		if (photos[j].id == imageID) {
			if ('gallery' != '') {
						if (photos[j].galleries_id != '') {
						document.write('<a href="' + photos[j].section_code + '_' + photos[j].galleries_id + '.html">');
						}
						else {
						document.write('<a href="gallery.html">');
						}
			}
			document.write('<img src="' + photos[j].src + '" width="' + photos[j].width + '" height="' + photos[j].height + '" class="mainhomepageimage" id="mainSample" name="mainSample" alt="' + photos[j].caption  + '" border="0">');
			if ('gallery' != '') {
				document.write('</a>');
			}
			break;
		}
	}
	
}

/***************************************************************************
* Show the next image in a gallery.  field = hidden field containing       *
* image_id                                                                 *
*  img = reference to image object in which to show image                  *
***************************************************************************/
function next(field,img) {

	debug('IN next');
	imageID = field.value;
	
	for (j = 0; j < photos.length; j++) {
		if (photos[j].id == imageID) {
			break;
		}
	}
	debug('image is ' + j);
	nextImg = -1;
	k= j + 1;
	while (nextImg < 0) {
		for (; k < photos.length; k++) {
			debug('testing image ' + k + ': gallery = ' + photos[k].galleries_id + '(existing: ' + photos[j].galleries_id + ')');
			if (photos[k].galleries_id == photos[j].galleries_id) {
				nextImg = k;
				debug('setting  nextImg = ' + k);
				break;
			}
		}
		if (nextImg == -1) {
			k = 0;
		}
	}
	if (nextImg != -1) {
		updateImage(nextImg, field,img);
	}


}


/***************************************************************************
* Set a new image on the gallery detail page given its array position      *
***************************************************************************/
function updateImage (nextImg, field,img) {
	debug('Updating image');
	if (!basic && !(0)) {
		debug('In updateImage');
		debug('setting  img src = ' + photos[nextImg].src);
		
					
			document.getElementById('imagePhoto').innerHTML = '<img class="mainphoto" src="' + photos[nextImg].src + ' " id="mainPic" name="mainPic" width="' + photos[nextImg].width + '" height="' + photos[nextImg].height + '" alt="' + photos[nextImg].caption + '" border="0">';
						field.value = photos[nextImg].id;
			document.getElementById('imageTitle').innerHTML = photos[nextImg].caption;
			document.title = photos[nextImg].caption;
			/* apply 'blank' classname to element where */			if ( photos[nextImg].caption == '') {
				document.getElementById('imageTitle').style.className = 'blank';
			}
			else {
				document.getElementById('imageTitle').style.className = 'normal';
			}
						temp = '';
			if (photos[nextImg].description != '') {
				temp = temp +  '<p id="imageDescription">' + photos[nextImg].description + '</p>';
			}
			if (photos[nextImg].photo_ref != '') {
				temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + photos[nextImg].photo_ref + '</p>';
			}
			if (photos[nextImg].takendate != '') {
				debug('Resetting taken date');
				temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + photos[nextImg].takendate + '</p>';
			}
			
			if (photos[nextImg].location != '') {
				debug('Resetting location');
				temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  photos[nextImg].location + '</p>';
			}
			
			if (photos[nextImg].photographer != '') {
				debug('Resetting photographer');
				temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + photos[nextImg].photographer + '</p>';
			}
			if (temp != '') {				temp = temp + '<div class="spacer"></div>';			}					if (temp == '') {
			document.getElementById('imageDetails').style.display = 'none';
		}
		else {
			document.getElementById('imageDetails').style.display = 'block';
		}
		document.getElementById('imageDetails').innerHTML =temp;	
		
	}
	else {
		debug('Redirecting to id ' + photos[nextImg].id);
		window.location = 'photo_' + photos[nextImg].id + '.html';
	}
}

/***************************************************************************
* Show the previous image for a gallery. field = hidden field containing   *
* image_id                                                                 *
*  img = reference to image object in which to show image                  *
***************************************************************************/
function previous(field,img) {


	imageID = field.value;
	for (j = 0; j < photos.length; j++) {
		if (photos[j].id == imageID) {
			break;
		}
	}
	debug('image is ' + j);
	nextImg = -1;
	k = j -1;
	while (nextImg < 0) {
		for (; k >= 0; k--) {
			if (photos[k].galleries_id == photos[j].galleries_id) {
				nextImg = k;
				break;
			}
		}
		if (nextImg == -1) {
			k = photos.length -1;
		}
	}
	if (nextImg != -1) {
		updateImage(nextImg, field,img);	
	}
}

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.
        *
* Gallery_id = id of gallery to choose                                     *
* 
 img = reference to html image                                       *
* in which to show image                                                   *
***************************************************************************/
function showGalleryImage(gallery_id, img) {
	debug('Gallery = ' + gallery_id);
	for (i = 0; i < galleries.length; i++) {
		if (galleries[i].id == gallery_id) {
			imageID = randomListVal(galleries[i].featured_images);
				for (j = 0; j < photos.length; j++) {
					if (photos[j].id == imageID) {
						
						img.src = photos[j].thumbnail;
						img.width = photos[j].thumbnail_width;
						img.height = photos[j].thumbnail_height;
						
						break;
					}
				}
			break;
		}
	} 
	}

/***************************************************************************
* If we have dynamic HTML                                                  *
*  replace the galleries link with a list that                             *
* doesn't include the current gallery                                      *
***************************************************************************/
function showGalleries(gallery_id) {
	debug('Showing links for gallery ' + gallery_id);
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
			debug('Testing gallery ' + galleries[i].id);
			
			if (galleries[i].id != gallery_id) {
				debug('Adding link');
				if (temp != '') {
					temp = temp + ' | ';
				}
				temp = temp + '<a href="gallery_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}
/***************************************************************************
* Create the array of Photo objects                                        *
***************************************************************************/
photos = new Array();
photos[0] = new photo(1550166,'','','','http://www1.clikpic.com/Jebson99/images/wine-cheese2.gif',500,371,'','http://www1.clikpic.com/Jebson99/images/wine-cheese2_thumb.gif',130, 96,1, 0,'','','','','','');
photos[1] = new photo(1870567,'106259','','gallery','http://www1.clikpic.com/Jebson99/images/Shirts_Stack_Shirts01_.gif',500,500,'','http://www1.clikpic.com/Jebson99/images/Shirts_Stack_Shirts01__thumb.gif',130, 130,0, 0,'','','','','','');
photos[2] = new photo(1870570,'106259','','gallery','http://www1.clikpic.com/Jebson99/images/Shirts03_.gif',450,450,'','http://www1.clikpic.com/Jebson99/images/Shirts03__thumb.gif',130, 130,0, 0,'','','','','','');
photos[3] = new photo(1870571,'106259','','gallery','http://www1.clikpic.com/Jebson99/images/Dunhill_01_.gif',404,500,'','http://www1.clikpic.com/Jebson99/images/Dunhill_01__thumb.gif',130, 161,0, 0,'','','','','','');
photos[4] = new photo(1870583,'106259','','gallery','http://www1.clikpic.com/Jebson99/images/ArtShop_03_.gif',395,400,'','http://www1.clikpic.com/Jebson99/images/ArtShop_03__thumb.gif',130, 132,0, 0,'','','','','','');
photos[5] = new photo(1870584,'106259','','gallery','http://www1.clikpic.com/Jebson99/images/Bathroom_01_.gif',400,348,'','http://www1.clikpic.com/Jebson99/images/Bathroom_01__thumb.gif',130, 113,0, 0,'','','','','','');
photos[6] = new photo(1875055,'106259','','gallery','http://www1.clikpic.com/Jebson99/images/Office_01_.gif',500,331,'','http://www1.clikpic.com/Jebson99/images/Office_01__thumb.gif',130, 86,0, 0,'','','','','','');
photos[7] = new photo(1875804,'106259','','gallery','http://www1.clikpic.com/Jebson99/images/Spinal_columb_01A_.gif',450,450,'','http://www1.clikpic.com/Jebson99/images/Spinal_columb_01A__thumb.gif',130, 130,0, 0,'','','','','','');
photos[8] = new photo(1875806,'106259','','gallery','http://www1.clikpic.com/Jebson99/images/Foot_02_.gif',500,500,'','http://www1.clikpic.com/Jebson99/images/Foot_02__thumb.gif',130, 130,0, 0,'','','','','','');
photos[9] = new photo(1895304,'106259','','gallery','http://www1.clikpic.com/Jebson99/images/Dentist_01_2.gif',297,450,'','http://www1.clikpic.com/Jebson99/images/Dentist_01_2_thumb.gif',130, 197,0, 0,'','','','','','');
photos[10] = new photo(1340319,'94217','','gallery','http://www1.clikpic.com/Jebson99/images/PJ_Popart_01A_.gif',400,500,'','http://www1.clikpic.com/Jebson99/images/PJ_Popart_01A__thumb.gif',130, 163,0, 0,'','','','','','');
photos[11] = new photo(1870161,'94217','','gallery','http://www1.clikpic.com/Jebson99/images/Emma02AB.gif',300,450,'','http://www1.clikpic.com/Jebson99/images/Emma02AB_thumb.gif',130, 195,0, 0,'','','','','','');
photos[12] = new photo(1550052,'94217','','gallery','http://www1.clikpic.com/Jebson99/images/Lucy01A.gif',333,500,'','http://www1.clikpic.com/Jebson99/images/Lucy01A_thumb.gif',130, 195,0, 0,'','','','','','');
photos[13] = new photo(1895291,'94217','','gallery','http://www1.clikpic.com/Jebson99/images/Brighton_24A_.gif',307,450,'','http://www1.clikpic.com/Jebson99/images/Brighton_24A__thumb.gif',130, 191,0, 0,'','','','','','');
photos[14] = new photo(1875041,'94217','','gallery','http://www1.clikpic.com/Jebson99/images/Portrait_02_.gif',458,500,'','http://www1.clikpic.com/Jebson99/images/Portrait_02__thumb.gif',130, 142,0, 0,'','','','','','');
photos[15] = new photo(1895285,'94217','','gallery','http://www1.clikpic.com/Jebson99/images/Ozzie_01_.gif',333,500,'','http://www1.clikpic.com/Jebson99/images/Ozzie_01__thumb.gif',130, 195,0, 0,'','','','','','');
photos[16] = new photo(1895302,'94217','','gallery','http://www1.clikpic.com/Jebson99/images/Sushma_19A_.gif',344,500,'','http://www1.clikpic.com/Jebson99/images/Sushma_19A__thumb.gif',130, 189,0, 0,'','','','','','');
photos[17] = new photo(1870573,'94217','','gallery','http://www1.clikpic.com/Jebson99/images/Punk01A_.gif',500,427,'','http://www1.clikpic.com/Jebson99/images/Punk01A__thumb.gif',130, 111,0, 0,'','','','','','');
photos[18] = new photo(1895290,'94217','','gallery','http://www1.clikpic.com/Jebson99/images/Merrisa01_.gif',316,500,'','http://www1.clikpic.com/Jebson99/images/Merrisa01__thumb.gif',130, 206,0, 0,'','','','','','');
photos[19] = new photo(1875813,'94217','','gallery','http://www1.clikpic.com/Jebson99/images/Silver_Sky_01_.gif',460,367,'','http://www1.clikpic.com/Jebson99/images/Silver_Sky_01__thumb.gif',130, 104,0, 0,'','','','','','');
photos[20] = new photo(1340317,'94218','','gallery','http://www1.clikpic.com/Jebson99/images/Cathederal_Road_02.gif',375,500,'','http://www1.clikpic.com/Jebson99/images/Cathederal_Road_02_thumb.gif',130, 173,0, 0,'','','','Durham City','','');
photos[21] = new photo(1550178,'94218','','gallery','http://www1.clikpic.com/Jebson99/images/Durham-Punts1.gif',335,500,'','http://www1.clikpic.com/Jebson99/images/Durham-Punts1_thumb.gif',130, 194,0, 0,'','','','','','');
photos[22] = new photo(1875794,'94218','','gallery','http://www1.clikpic.com/Jebson99/images/Garden_Roller_.gif',304,450,'','http://www1.clikpic.com/Jebson99/images/Garden_Roller__thumb.gif',130, 192,0, 0,'','','','','','');
photos[23] = new photo(1875797,'94218','','gallery','http://www1.clikpic.com/Jebson99/images/Trees_01_.gif',500,431,'','http://www1.clikpic.com/Jebson99/images/Trees_01__thumb.gif',130, 112,0, 0,'','','','','','');
photos[24] = new photo(1981522,'94212','','gallery','http://www1.clikpic.com/Jebson99/images/Becky_FordA_.gif',392,500,'','http://www1.clikpic.com/Jebson99/images/Becky_FordA__thumb.gif',130, 166,0, 0,'','','','','','');
photos[25] = new photo(1981564,'94218','','gallery','http://www1.clikpic.com/Jebson99/images/St_Ives_01_FINAL_.gif',500,249,'','http://www1.clikpic.com/Jebson99/images/St_Ives_01_FINAL__thumb.gif',130, 65,0, 0,'','','','','','');
photos[26] = new photo(1982099,'94218','','gallery','http://www1.clikpic.com/Jebson99/images/Pink_Door01_.gif',500,401,'','http://www1.clikpic.com/Jebson99/images/Pink_Door01__thumb.gif',130, 104,0, 0,'','','','','','');
photos[27] = new photo(1340273,'94107','','gallery','http://www1.clikpic.com/Jebson99/images/Shotgun_500_2.gif',453,350,'','http://www1.clikpic.com/Jebson99/images/Shotgun_500_2_thumb.gif',130, 100,0, 0,'','','','','','');
photos[28] = new photo(1865321,'94211','','gallery','http://www1.clikpic.com/Jebson99/images/Giraffe_01A_.gif',180,153,'','http://www1.clikpic.com/Jebson99/images/Giraffe_01A__thumb.gif',130, 111,0, 0,'','','','','','');
photos[29] = new photo(1875622,'94211','','gallery','http://www1.clikpic.com/Jebson99/images/Lynne_Warren_03AA_.gif',389,500,'','http://www1.clikpic.com/Jebson99/images/Lynne_Warren_03AA__thumb.gif',130, 167,0, 0,'','','','','','');
photos[30] = new photo(1895274,'94107','','gallery','http://www1.clikpic.com/Jebson99/images/Frozen_Food_02_.gif',500,416,'','http://www1.clikpic.com/Jebson99/images/Frozen_Food_02__thumb.gif',130, 108,0, 0,'','','','','','');
photos[31] = new photo(1895293,'94212','','gallery','http://www1.clikpic.com/Jebson99/images/Becky_F15_.gif',279,400,'','http://www1.clikpic.com/Jebson99/images/Becky_F15__thumb.gif',130, 186,0, 0,'','','','','','');
photos[32] = new photo(1340334,'94107','','gallery','http://www1.clikpic.com/Jebson99/images/Pumpkins_02_.gif',500,314,'','http://www1.clikpic.com/Jebson99/images/Pumpkins_02__thumb.gif',130, 82,0, 0,'','','','','','');
photos[33] = new photo(1895451,'94211','','gallery','http://www1.clikpic.com/Jebson99/images/Untitled_1_.gif',367,500,'','http://www1.clikpic.com/Jebson99/images/Untitled_1__thumb.gif',130, 177,0, 0,'','','','','','');
photos[34] = new photo(1981554,'94212','','gallery','http://www1.clikpic.com/Jebson99/images/Bride_With_Flowers_-1_.gif',400,500,'','http://www1.clikpic.com/Jebson99/images/Bride_With_Flowers_-1__thumb.gif',130, 163,0, 0,'','','','','','');
photos[35] = new photo(1550044,'94107','','gallery','http://www1.clikpic.com/Jebson99/images/colinder.gif',500,498,'','http://www1.clikpic.com/Jebson99/images/colinder_thumb.gif',130, 129,0, 0,'','','','','','');
photos[36] = new photo(1875620,'94211','','gallery','http://www1.clikpic.com/Jebson99/images/Lynne-Warren04AA.gif',500,373,'','http://www1.clikpic.com/Jebson99/images/Lynne-Warren04AA_thumb.gif',130, 97,0, 0,'','','','','','');
photos[37] = new photo(1981811,'94212','','gallery','http://www1.clikpic.com/Jebson99/images/Pink_Bride_-2A_.gif',400,500,'','http://www1.clikpic.com/Jebson99/images/Pink_Bride_-2A__thumb.gif',130, 163,0, 0,'','','','','','');
photos[38] = new photo(1550047,'94107','','gallery','http://www1.clikpic.com/Jebson99/images/wine-cheese.gif',500,371,'','http://www1.clikpic.com/Jebson99/images/wine-cheese_thumb.gif',130, 96,1, 0,'','','','','','');
photos[39] = new photo(1870574,'94212','','gallery','http://www1.clikpic.com/Jebson99/images/Wedding_03_.gif',340,450,'','http://www1.clikpic.com/Jebson99/images/Wedding_03__thumb.gif',130, 172,0, 0,'','','','','','');
photos[40] = new photo(1895283,'94211','','gallery','http://www1.clikpic.com/Jebson99/images/Froud_01_.gif',500,359,'','http://www1.clikpic.com/Jebson99/images/Froud_01__thumb.gif',130, 93,0, 0,'','','','','','');
photos[41] = new photo(1870576,'94212','','gallery','http://www1.clikpic.com/Jebson99/images/Wedding_02_2.gif',429,450,'','http://www1.clikpic.com/Jebson99/images/Wedding_02_2_thumb.gif',130, 136,0, 0,'','','','','','');
photos[42] = new photo(1875083,'94107','','gallery','http://www1.clikpic.com/Jebson99/images/Food_StillLife_04_.gif',500,333,'','http://www1.clikpic.com/Jebson99/images/Food_StillLife_04__thumb.gif',130, 87,0, 0,'','','','','','');
photos[43] = new photo(1895276,'94211','','gallery','http://www1.clikpic.com/Jebson99/images/Juggler_02A_.gif',500,353,'','http://www1.clikpic.com/Jebson99/images/Juggler_02A__thumb.gif',130, 92,0, 0,'','','','','','');
photos[44] = new photo(1865419,'94107','','gallery','http://www1.clikpic.com/Jebson99/images/Marbles_02AA_copy_.gif',331,500,'','http://www1.clikpic.com/Jebson99/images/Marbles_02AA_copy__thumb.gif',130, 196,0, 0,'','','','','','');
photos[45] = new photo(1875085,'94212','','gallery','http://www1.clikpic.com/Jebson99/images/Brides_Maides_01_2.gif',350,450,'','http://www1.clikpic.com/Jebson99/images/Brides_Maides_01_2_thumb.gif',130, 167,0, 0,'','','','','','');
photos[46] = new photo(1875090,'94212','','gallery','http://www1.clikpic.com/Jebson99/images/Bride_3A_1.gif',374,500,'','http://www1.clikpic.com/Jebson99/images/Bride_3A_1_thumb.gif',130, 174,0, 0,'','','','','','');
photos[47] = new photo(1982095,'94107','','gallery','http://www1.clikpic.com/Jebson99/images/Cornwall_Food_01_.gif',375,500,'','http://www1.clikpic.com/Jebson99/images/Cornwall_Food_01__thumb.gif',130, 173,0, 0,'','','','','','');
photos[48] = new photo(1550105,'94107','','gallery','http://www1.clikpic.com/Jebson99/images/Splash-Shot.gif',352,500,'','http://www1.clikpic.com/Jebson99/images/Splash-Shot_thumb.gif',130, 185,0, 0,'','','','','','');
photos[49] = new photo(1982092,'94212','','gallery','http://www1.clikpic.com/Jebson99/images/Brothers_Wedding_04_.gif',400,500,'','http://www1.clikpic.com/Jebson99/images/Brothers_Wedding_04__thumb.gif',130, 163,0, 0,'','','','','','');
photos[50] = new photo(1550137,'94107','','gallery','http://www1.clikpic.com/Jebson99/images/watches.gif',400,400,'','http://www1.clikpic.com/Jebson99/images/watches_thumb.gif',130, 130,0, 0,'','','','','','');
photos[51] = new photo(1875043,'94212','','gallery','http://www1.clikpic.com/Jebson99/images/Les&Sam_01_.gif',500,363,'','http://www1.clikpic.com/Jebson99/images/Les&Sam_01__thumb.gif',130, 94,0, 0,'','','','','','');
photos[52] = new photo(1340303,'94212','','gallery','http://www1.clikpic.com/Jebson99/images/Weddin_01_.gif',460,339,'','http://www1.clikpic.com/Jebson99/images/Weddin_01__thumb.gif',130, 96,0, 0,'','','','','','');
photos[53] = new photo(1865483,'94107','','gallery','http://www1.clikpic.com/Jebson99/images/Peppers_01_1.gif',500,333,'','http://www1.clikpic.com/Jebson99/images/Peppers_01_1_thumb.gif',130, 87,0, 0,'','','','','','');
photos[54] = new photo(1982085,'94212','','gallery','http://www1.clikpic.com/Jebson99/images/Becky_Group_02A.gif',472,378,'','http://www1.clikpic.com/Jebson99/images/Becky_Group_02A_thumb.gif',130, 104,0, 0,'','','','','','');
photos[55] = new photo(1875038,'94212','','gallery','http://www1.clikpic.com/Jebson99/images/Bride_4A_.gif',500,385,'','http://www1.clikpic.com/Jebson99/images/Bride_4A__thumb.gif',130, 100,0, 0,'','','','','','');
photos[56] = new photo(1982088,'94212','','gallery','http://www1.clikpic.com/Jebson99/images/Jane_&_Laurent_01A.gif',500,373,'','http://www1.clikpic.com/Jebson99/images/Jane_&_Laurent_01A_thumb.gif',130, 97,0, 0,'','','','','','');
photos[57] = new photo(1875790,'94212','','gallery','http://www1.clikpic.com/Jebson99/images/Big_Group_01_.gif',500,172,'','http://www1.clikpic.com/Jebson99/images/Big_Group_01__thumb.gif',130, 45,0, 0,'','','','','','');
photos[58] = new photo(1982197,'94107','','gallery','http://www1.clikpic.com/Jebson99/images/Food_0A_.gif',500,443,'','http://www1.clikpic.com/Jebson99/images/Food_0A__thumb.gif',130, 115,0, 0,'','','','','','');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
galleries = new Array();
galleries[0] = new gallery(106259,'1895304,1875806,1875804,1875055,1870584,1870583,1870571,1870570,1870567','Advertising','gallery');
galleries[1] = new gallery(94217,'1895302,1895291,1895290,1895285,1875813,1875041,1870573,1870161,1550052,1340319','Portraits','gallery');
galleries[2] = new gallery(94218,'1982099,1981564,1875797,1875794,1550178,1340317','Location','gallery');
galleries[3] = new gallery(94211,'1895451,1895283,1895276,1875622,1875620,1865321','Retouching','gallery');
galleries[4] = new gallery(94107,'1982197,1982095,1895274,1875083,1865483,1865419,1550137,1550105,1550047,1550044','Still Life','gallery');
galleries[5] = new gallery(94212,'1982092,1982088,1982085,1981811,1981554,1981522,1895293,1875790,1875090,1875085','Weddings','gallery');

