/***************************************************************************
* 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('162643');
	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('162643');
	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) || (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 = 'billthompsoncreative: ' + 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(162197,'15157','','gallery','http://www1.clikpic.com/bill/images/Birds Eye.jpg',300,400,'Birds Eye. \"In 2003 the EU might BAN cod fishing in the North Sea. BIRDS EYE banned it three years ago.\"','http://www1.clikpic.com/bill/images/Birds Eye_thumb.jpg',130, 173,0, 0,'','','','','','');
photos[1] = new photo(162210,'15157','','gallery','http://www1.clikpic.com/bill/images/MSF.jpg',317,400,'Medecins Sans Frontieres.','http://www1.clikpic.com/bill/images/MSF_thumb.jpg',130, 164,0, 0,'','','','','','');
photos[2] = new photo(162216,'15157','','gallery','http://www1.clikpic.com/bill/images/Nespresso.jpg',400,284,'Nespresso. \"Nearly perfect is not enough.\"','http://www1.clikpic.com/bill/images/Nespresso_thumb.jpg',130, 92,0, 0,'','','','','','');
photos[3] = new photo(162227,'15157','','gallery','http://www1.clikpic.com/bill/images/HPD.jpg',309,400,'High Protein Diet.','http://www1.clikpic.com/bill/images/HPD_thumb.jpg',130, 168,0, 0,'','','','','','');
photos[4] = new photo(162231,'15157','','gallery','http://www1.clikpic.com/bill/images/Seat belts.jpg',285,400,'COI - Child restraints.','http://www1.clikpic.com/bill/images/Seat belts_thumb.jpg',130, 182,0, 0,'','','','','','');
photos[5] = new photo(162232,'15157','','gallery','http://www1.clikpic.com/bill/images/Rib Eye.jpg',400,284,'Rib Eye. \"Jeremy Clarkson, have we got one for you.\"','http://www1.clikpic.com/bill/images/Rib Eye_thumb.jpg',130, 92,0, 0,'','','','','','');
photos[6] = new photo(162242,'15157','','gallery','http://www1.clikpic.com/bill/images/BEM1.jpg',266,400,'BEM Customer service evaluation. \"Was everything to your liking, sir?\"','http://www1.clikpic.com/bill/images/BEM1_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[7] = new photo(162245,'15157','','gallery','http://www1.clikpic.com/bill/images/Stag.jpg',292,400,'Stag Furniture. \"Every piece of Stag furniture is created using these precision tools.\"','http://www1.clikpic.com/bill/images/Stag_thumb.jpg',130, 178,0, 0,'','','','','','');
photos[8] = new photo(162257,'15157','','gallery','http://www1.clikpic.com/bill/images/Chrysler.jpg',400,274,'Chrysler. \"Why is Chrysler so concerned with always going faster?\"','http://www1.clikpic.com/bill/images/Chrysler_thumb.jpg',130, 89,0, 0,'','','','','','');
photos[9] = new photo(162260,'15157','','gallery','http://www1.clikpic.com/bill/images/Mulberry.jpg',315,400,'Mulberry. \"There is a part of Bond Street that will be FOREVER England. (Well Mulberry always has been made to last.)\"','http://www1.clikpic.com/bill/images/Mulberry_thumb.jpg',130, 165,0, 0,'','','','','','');
photos[10] = new photo(162264,'15157','','gallery','http://www1.clikpic.com/bill/images/Rest Assured.jpg',301,400,'Rest Assured beds. \"No human can get this comfortable outside the Comfort Zzone.\"','http://www1.clikpic.com/bill/images/Rest Assured_thumb.jpg',130, 173,0, 0,'','','','','','');
photos[11] = new photo(162272,'15157','','gallery','http://www1.clikpic.com/bill/images/CU.jpg',289,400,'Commercial Union Assurance. \"We won\'t make a drama out of a crisis.\"','http://www1.clikpic.com/bill/images/CU_thumb.jpg',130, 180,0, 0,'','','','','','');
photos[12] = new photo(162273,'15157','','gallery','http://www1.clikpic.com/bill/images/3i.jpg',280,400,'3i Investors in Industry. \"When you\'ve kissed as many frogs as we have, you get good at spotting princes.\"','http://www1.clikpic.com/bill/images/3i_thumb.jpg',130, 186,0, 0,'','','','','','');
photos[13] = new photo(162275,'15157','','gallery','http://www1.clikpic.com/bill/images/Syringe.jpg',400,283,'Zyban. \"Quitting smoking needs willpower. Quitting nicotine needs a doctor.\"','http://www1.clikpic.com/bill/images/Syringe_thumb.jpg',130, 92,0, 0,'','','','','','');
photos[14] = new photo(162277,'15157','','gallery','http://www1.clikpic.com/bill/images/MC Baby.jpg',400,278,'MasterCard. \"New man.\"','http://www1.clikpic.com/bill/images/MC Baby_thumb.jpg',130, 90,0, 0,'','','','','','');
photos[15] = new photo(162280,'15157','','gallery','http://www1.clikpic.com/bill/images/MC Sunlounger.jpg',400,281,'MasterCard. \"Eng 13 Ger 0.\"','http://www1.clikpic.com/bill/images/MC Sunlounger_thumb.jpg',130, 91,0, 0,'','','','','','');
photos[16] = new photo(162281,'15157','','gallery','http://www1.clikpic.com/bill/images/Para revisited1.jpg',400,280,'Viagra.','http://www1.clikpic.com/bill/images/Para revisited1_thumb.jpg',130, 91,0, 0,'','','','','','');
photos[17] = new photo(162282,'15157','','gallery','http://www1.clikpic.com/bill/images/Clever dick1.jpg',400,277,'Viagra.','http://www1.clikpic.com/bill/images/Clever dick1_thumb.jpg',130, 90,0, 0,'','','','','','');
photos[18] = new photo(1079190,'15157','','gallery','http://www1.clikpic.com/bill/images/Sonyalphaweb.jpg',400,566,'Sony Digital SLR camera. \"Real photographers only use one eye.\"','http://www1.clikpic.com/bill/images/Sonyalphaweb_thumb.jpg',130, 184,0, 0,'','','','','','');
photos[19] = new photo(1079218,'15157','','gallery','http://www1.clikpic.com/bill/images/Sonybassweb.jpg',400,267,'Sony car radio. \"Now that\'s what I call bass!\"','http://www1.clikpic.com/bill/images/Sonybassweb_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[20] = new photo(162290,'15150','','gallery','http://www1.clikpic.com/bill/images/NBA.jpg',309,400,'Permanent site at Newcastle railway station.','http://www1.clikpic.com/bill/images/NBA_thumb.jpg',130, 168,0, 0,'','','','','','');
photos[21] = new photo(162292,'15150','','gallery','http://www1.clikpic.com/bill/images/Kit Kat 48s.tree.jpg',400,201,'Kit Kat. \"Have a break.\"','http://www1.clikpic.com/bill/images/Kit Kat 48s_thumb.tree.jpg',130, 65,0, 0,'','','','','','');
photos[22] = new photo(162293,'15150','','gallery','http://www1.clikpic.com/bill/images/Kit Kat 48s.clouds.jpg',400,204,'Kit Kat. \"Please have a break.\"','http://www1.clikpic.com/bill/images/Kit Kat 48s_thumb.clouds.jpg',130, 66,0, 0,'','','','','','');
photos[23] = new photo(162295,'15150','','gallery','http://www1.clikpic.com/bill/images/Ruddles1.jpg',400,204,'Ruddles County.','http://www1.clikpic.com/bill/images/Ruddles1_thumb.jpg',130, 66,0, 0,'','','','','','');
photos[24] = new photo(162299,'15150','','gallery','http://www1.clikpic.com/bill/images/Ruddles2.jpg',400,201,'Ruddles County.','http://www1.clikpic.com/bill/images/Ruddles2_thumb.jpg',130, 65,0, 0,'','','','','','');
photos[25] = new photo(162305,'15150','','gallery','http://www1.clikpic.com/bill/images/Moto.a. 48s.jpg',400,204,'Motorola V. \"XXXS.\"','http://www1.clikpic.com/bill/images/Moto_thumb.a. 48s.jpg',130, 66,0, 0,'','','','','','');
photos[26] = new photo(162307,'15150','','gallery','http://www1.clikpic.com/bill/images/Moto.b.48s.jpg',400,204,'Motorola V. \"Make an understatement.\"','http://www1.clikpic.com/bill/images/Moto_thumb.b.48s.jpg',130, 66,0, 0,'','','','','','');
photos[27] = new photo(195415,'15150','','gallery','http://www1.clikpic.com/bill/images/Viagra 96 Casanova.jpg',400,93,'Viagra Supersite','http://www1.clikpic.com/bill/images/Viagra 96 Casanova_thumb.jpg',130, 30,0, 0,'','','','','','');
photos[28] = new photo(195421,'15150','','gallery','http://www1.clikpic.com/bill/images/Viagra 96 Vid Vici Veni.jpg',400,94,'Viagra Supersite','http://www1.clikpic.com/bill/images/Viagra 96 Vid Vici Veni_thumb.jpg',130, 31,0, 0,'','','','','','');
photos[29] = new photo(162643,'15195','','gallery','http://www1.clikpic.com/bill/images/Esther\'s Bill for web7.jpg',340,136,'The showreel contains commercials for:<br>\r\n1 Elf Ultra Low Sulphur Diesel for the UK.<br>\r\n2 Mitsubishi Carisma for France.<br>\r\n3 Elf ULSD for the UK.<br>\r\n4 Mitsubishi Corporate for Europe.<br>\r\n5 Elf ULSD for the UK.<br>\r\n6 Mitsubishi Corporate for Europe.<br>\r\n7 Bacardi Breezer for the UK.<br>\r\nAt the end is a Historic Reel showing:<br>\r\n1 Commercial Union,<br>\r\n2 Newcastle Brown Ale,<br>\r\n3 The Welsh Development Agency and<br>\r\n4 Bob Martin,<br>\r\nall for the UK.<br>\r\nIf you\'d like to view a showreel see the Contact section.','http://www1.clikpic.com/bill/images/Esther\'s Bill for web7_thumb.jpg',130, 52,1, 0,'','','','','','');
photos[30] = new photo(3066110,'188493','','gallery','http://www1.clikpic.com/bill/images/1a Villa Rufolo wall for web.jpg',400,308,'Villa Rufolo, Ravello, Italy.','http://www1.clikpic.com/bill/images/1a Villa Rufolo wall for web_thumb.jpg',130, 100,0, 0,'','','','','','');
photos[31] = new photo(3066112,'188493','','gallery','http://www1.clikpic.com/bill/images/1b Silves street for web.jpg',400,250,'Silves, Portugal.','http://www1.clikpic.com/bill/images/1b Silves street for web_thumb.jpg',130, 81,0, 0,'','','','','','');
photos[32] = new photo(3066116,'188493','','gallery','http://www1.clikpic.com/bill/images/1e Gate for web.jpg',400,546,'Gate of Villa Cimbrone, Italy.','http://www1.clikpic.com/bill/images/1e Gate for web_thumb.jpg',130, 177,0, 0,'','','','','','');
photos[33] = new photo(3066118,'188493','','gallery','http://www1.clikpic.com/bill/images/1f Villa Cimbrone statues for web.jpg',400,454,'Villa Cimbrone, Italy.','http://www1.clikpic.com/bill/images/1f Villa Cimbrone statues for web_thumb.jpg',130, 148,0, 0,'','','','','','');
photos[34] = new photo(3066120,'188493','','gallery','http://www1.clikpic.com/bill/images/1h Flaky wall for web.jpg',400,279,'Flakey window in Ravello, Italy.','http://www1.clikpic.com/bill/images/1h Flaky wall for web_thumb.jpg',130, 91,0, 0,'','','','','','');
photos[35] = new photo(3066121,'188493','','gallery','http://www1.clikpic.com/bill/images/1i Charisma stern for web.jpg',400,169,'The fishing vessel Charisma.','http://www1.clikpic.com/bill/images/1i Charisma stern for web_thumb.jpg',130, 55,0, 0,'','','','','','');
photos[36] = new photo(3066122,'188493','','gallery','http://www1.clikpic.com/bill/images/1j Blue buoys for web.jpg',400,533,'The River Dart.','http://www1.clikpic.com/bill/images/1j Blue buoys for web_thumb.jpg',130, 173,0, 0,'','','','','','');
photos[37] = new photo(3066123,'188493','','gallery','http://www1.clikpic.com/bill/images/1k Cuppola for web.jpg',400,506,'Cuppola in Portugal.','http://www1.clikpic.com/bill/images/1k Cuppola for web_thumb.jpg',130, 164,0, 0,'','','','','','');
photos[38] = new photo(3066127,'188493','','gallery','http://www1.clikpic.com/bill/images/1m Arnos Vale Cemetary for web.jpg',400,273,'Arnos Vale cemetary, Bristol.','http://www1.clikpic.com/bill/images/1m Arnos Vale Cemetary for web_thumb.jpg',130, 89,0, 0,'','','','','','');
photos[39] = new photo(3066128,'188493','','gallery','http://www1.clikpic.com/bill/images/1o Nice bush for web.jpg',400,216,'Nice bush in Portugal.','http://www1.clikpic.com/bill/images/1o Nice bush for web_thumb.jpg',130, 70,0, 0,'','','','','','');
photos[40] = new photo(3066130,'188493','','gallery','http://www1.clikpic.com/bill/images/1r Roman ruins for web.jpg',400,219,'Roman ruins in The Algarve.','http://www1.clikpic.com/bill/images/1r Roman ruins for web_thumb.jpg',130, 71,0, 0,'','','','','','');
photos[41] = new photo(3066133,'188493','','gallery','http://www1.clikpic.com/bill/images/1s SW lighthouse for web.jpg',400,252,'Most South Westerly point in Europe.','http://www1.clikpic.com/bill/images/1s SW lighthouse for web_thumb.jpg',130, 82,0, 0,'','','','','','');
photos[42] = new photo(3066136,'188493','','gallery','http://www1.clikpic.com/bill/images/1t Monchique passage for web.jpg',400,284,'Lane in Monchique.','http://www1.clikpic.com/bill/images/1t Monchique passage for web_thumb.jpg',130, 92,0, 0,'','','','','','');
photos[43] = new photo(3066137,'188493','','gallery','http://www1.clikpic.com/bill/images/1y Girl spying on boyfriend for web.jpg',400,295,'Girl spying on boyfriend, Portugal.','http://www1.clikpic.com/bill/images/1y Girl spying on boyfriend for web_thumb.jpg',130, 96,0, 0,'','','','','','');
photos[44] = new photo(3066139,'188493','','gallery','http://www1.clikpic.com/bill/images/1z Stonedhenged for web.jpg',400,253,'Stonehenged.','http://www1.clikpic.com/bill/images/1z Stonedhenged for web_thumb.jpg',130, 82,0, 0,'','','','','','');
photos[45] = new photo(3066140,'188493','','gallery','http://www1.clikpic.com/bill/images/2a Carl and Jasmin for web.jpg',400,237,'Carl and Jasmine papped.','http://www1.clikpic.com/bill/images/2a Carl and Jasmin for web_thumb.jpg',130, 77,0, 0,'','','','','','');
photos[46] = new photo(3066142,'188493','','gallery','http://www1.clikpic.com/bill/images/2b Barry for web.jpg',400,269,'A tired Barry.','http://www1.clikpic.com/bill/images/2b Barry for web_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[47] = new photo(3066149,'188493','','gallery','http://www1.clikpic.com/bill/images/2c Patricia at night for web.jpg',400,271,'Patricia.','http://www1.clikpic.com/bill/images/2c Patricia at night for web_thumb.jpg',130, 88,0, 0,'','','','','','');
photos[48] = new photo(3066150,'188493','','gallery','http://www1.clikpic.com/bill/images/2d Snapper snapped for web.jpg',400,268,'Pete the snapper.','http://www1.clikpic.com/bill/images/2d Snapper snapped for web_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[49] = new photo(3066157,'188493','','gallery','http://www1.clikpic.com/bill/images/2i Sue for web.jpg',400,554,'A happy Sue.','http://www1.clikpic.com/bill/images/2i Sue for web_thumb.jpg',130, 180,0, 0,'','','','','','');
photos[50] = new photo(3066158,'188493','','gallery','http://www1.clikpic.com/bill/images/2g Antonia bw for web.jpg',400,559,'Antonia.','http://www1.clikpic.com/bill/images/2g Antonia bw for web_thumb.jpg',130, 182,0, 0,'','','','','','');
photos[51] = new photo(3066160,'188493','','gallery','http://www1.clikpic.com/bill/images/2j Dan the mad man for web.jpg',400,516,'Dan the man.','http://www1.clikpic.com/bill/images/2j Dan the mad man for web_thumb.jpg',130, 168,0, 0,'','','','','','');
photos[52] = new photo(3066161,'188493','','gallery','http://www1.clikpic.com/bill/images/2k One eyed Jasmin for web.jpg',400,567,'Jasmine\'s eye.','http://www1.clikpic.com/bill/images/2k One eyed Jasmin for web_thumb.jpg',130, 184,0, 0,'','','','','','');
photos[53] = new photo(3066163,'188493','','gallery','http://www1.clikpic.com/bill/images/2l Scary Vince for web.jpg',400,298,'Scary Vince.','http://www1.clikpic.com/bill/images/2l Scary Vince for web_thumb.jpg',130, 97,0, 0,'','','','','','');
photos[54] = new photo(3066164,'188493','','gallery','http://www1.clikpic.com/bill/images/2n Graham bw for web.jpg',400,529,'Graham.','http://www1.clikpic.com/bill/images/2n Graham bw for web_thumb.jpg',130, 172,0, 0,'','','','','','');
photos[55] = new photo(3066166,'188493','','gallery','http://www1.clikpic.com/bill/images/2o Ian for web.jpg',400,519,'Ian.','http://www1.clikpic.com/bill/images/2o Ian for web_thumb.jpg',130, 169,0, 0,'','','','','','');
photos[56] = new photo(3066167,'188493','','gallery','http://www1.clikpic.com/bill/images/2s Keith for web.jpg',400,563,'Keith.','http://www1.clikpic.com/bill/images/2s Keith for web_thumb.jpg',130, 183,0, 0,'','','','','','');
photos[57] = new photo(3066168,'188493','','gallery','http://www1.clikpic.com/bill/images/2t Sue and hat for web.jpg',400,486,'Sue\'s wedding hat.','http://www1.clikpic.com/bill/images/2t Sue and hat for web_thumb.jpg',130, 158,0, 0,'','','','','','');
photos[58] = new photo(3066169,'188493','','gallery','http://www1.clikpic.com/bill/images/2u Laughin Joe for web.jpg',400,553,'Laughing Joe.','http://www1.clikpic.com/bill/images/2u Laughin Joe for web_thumb.jpg',130, 180,0, 0,'','','','','','');
photos[59] = new photo(3066170,'188493','','gallery','http://www1.clikpic.com/bill/images/2v That nice Jonathan for web.jpg',400,535,'That nice Jonathan.','http://www1.clikpic.com/bill/images/2v That nice Jonathan for web_thumb.jpg',130, 174,0, 0,'','','','','','');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
galleries = new Array();
galleries[0] = new gallery(15157,'1079218,1079190,162282,162281,162280,162277,162275,162273,162272,162264','Press ads.','gallery');
galleries[1] = new gallery(15150,'195421,195415,162307,162305,162299,162295,162293,162292,162290','Posters.','gallery');
galleries[2] = new gallery(15195,'162643','Contents of Showreel.','gallery');
galleries[3] = new gallery(188493,'3066170,3066169,3066168,3066167,3066166,3066164,3066163,3066161,3066160,3066158','billthompsonphotographic','gallery');

