/***************************************************************************
* 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('1339120,1269846,1267800,960250,960244,619917,612532,612529,612528,590133,584200,560384,520400,503652,503637,425467,394239,332156,288942,288937,288935,288932,288930,288929,288905,288902,288882,288881,288879,288878,288766,288764,288763,288761,288754,288751,288747,288739,287588,276685,276674,276655,275834');
	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('1339120,1269846,1267800,960250,960244,619917,612532,612529,612528,590133,584200,560384,520400,503652,503637,425467,394239,332156,288942,288937,288935,288932,288930,288929,288905,288902,288882,288881,288879,288878,288766,288764,288763,288761,288754,288751,288747,288739,287588,276685,276674,276655,275834');
	for (j = 0; j < photos.length; j++) {
		if (photos[j].id == imageID) {
			if ('gallery' != '') {
						if (photos[j].galleries_id != '') {
						document.write('<a href="' + photos[j].section_code + '_' + photos[j].galleries_id + '.html">');
						}
						else {
						document.write('<a href="gallery.html">');
						}
			}
			document.write('<img src="' + photos[j].src + '" width="' + photos[j].width + '" height="' + photos[j].height + '" class="mainhomepageimage" id="mainSample" name="mainSample" alt="' + photos[j].caption  + '" border="0">');
			if ('gallery' != '') {
				document.write('</a>');
			}
			break;
		}
	}
	
}

/***************************************************************************
* Show the next image in a gallery.  field = hidden field containing       *
* image_id                                                                 *
*  img = reference to image object in which to show image                  *
***************************************************************************/
function next(field,img) {

	debug('IN next');
	imageID = field.value;
	
	for (j = 0; j < photos.length; j++) {
		if (photos[j].id == imageID) {
			break;
		}
	}
	debug('image is ' + j);
	nextImg = -1;
	k= j + 1;
	while (nextImg < 0) {
		for (; k < photos.length; k++) {
			debug('testing image ' + k + ': gallery = ' + photos[k].galleries_id + '(existing: ' + photos[j].galleries_id + ')');
			if (photos[k].galleries_id == photos[j].galleries_id) {
				nextImg = k;
				debug('setting  nextImg = ' + k);
				break;
			}
		}
		if (nextImg == -1) {
			k = 0;
		}
	}
	if (nextImg != -1) {
		updateImage(nextImg, field,img);
	}


}


/***************************************************************************
* Set a new image on the gallery detail page given its array position      *
***************************************************************************/
function updateImage (nextImg, field,img) {
	debug('Updating image');
	if (!basic && !((1) || (0))) {
		debug('In updateImage');
		debug('setting  img src = ' + photos[nextImg].src);
		
					
			document.getElementById('imagePhoto').innerHTML = '<img class="mainphoto" src="' + photos[nextImg].src + ' " id="mainPic" name="mainPic" width="' + photos[nextImg].width + '" height="' + photos[nextImg].height + '" alt="' + photos[nextImg].caption + '">';
						field.value = photos[nextImg].id;
			document.getElementById('imageTitle').innerHTML = photos[nextImg].caption;
									document.title = 'Linda Cox 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(960244,'24327','McFly0725','gallery','http://www3.clikpic.com/lincphoto/images/McFly0725WEB.jpg',176,250,'McFly','http://www3.clikpic.com/lincphoto/images/McFly0725WEB_thumb.jpg',92, 130,1, 1,'Tom of McFly performing at Margate Winter Gardens','06/05/07','Linda Cox','Margate, Kent','','');
photos[1] = new photo(960250,'24327','McFly0729','gallery','http://www3.clikpic.com/lincphoto/images/McFly0729web.jpg',250,167,'McFly','http://www3.clikpic.com/lincphoto/images/McFly0729web_thumb.jpg',130, 87,1, 1,'Harry and Danny of McFly at HMV Canterbury','07/02/07','Linda Cox','Canterbury, Kent','','');
photos[2] = new photo(619917,'24327','HumanLeague0623','gallery','http://www3.clikpic.com/lincphoto/images/HumanLeague0623web.jpg',289,400,'Human League','http://www3.clikpic.com/lincphoto/images/HumanLeague0623web_thumb.jpg',94, 130,1, 1,'Joanne Catherall of the Human League performing at the Winter Gardens','27/11/06','','Margate, Kent','','');
photos[3] = new photo(612528,'24327','ABC0616','gallery','http://www3.clikpic.com/lincphoto/images/ABC0616web.jpg',400,253,'ABC','http://www3.clikpic.com/lincphoto/images/ABC0616web_thumb.jpg',130, 82,1, 1,'Martyn Fry of ABC','23/11/06','','Folkestone, Kent','','');
photos[4] = new photo(612529,'24327','HowJones0606','gallery','http://www3.clikpic.com/lincphoto/images/HowJones0606web.jpg',400,262,'Howard Jones','http://www3.clikpic.com/lincphoto/images/HowJones0606web_thumb.jpg',130, 85,1, 1,'Howard Jones','23/11/06','','Folkestone, Kent','','');
photos[5] = new photo(612532,'24327','Toyah0602','gallery','http://www3.clikpic.com/lincphoto/images/Toyah0602web.jpg',400,267,'Toyah Willcox','http://www3.clikpic.com/lincphoto/images/Toyah0602web_thumb.jpg',130, 87,1, 1,'Toyah','23/11/06','','Folkestone, Kent','','');
photos[6] = new photo(590133,'24327','BevKnight0611','gallery','http://www3.clikpic.com/lincphoto/images/BevKnight0611web.jpg',400,267,'Beverley Knight','http://www3.clikpic.com/lincphoto/images/BevKnight0611web_thumb.jpg',130, 87,1, 1,'Beverley Knight performing at Margate Winter Gardens','13/11/06','','Margate, Kent','','');
photos[7] = new photo(560384,'24327','Orson0617','gallery','http://www3.clikpic.com/lincphoto/images/Orson0617web.jpg',400,267,'Orson','http://www3.clikpic.com/lincphoto/images/Orson0617web_thumb.jpg',130, 87,1, 1,'Orson performing at Leas Cliff Hall','30/10/06','Linda Cox','Folkestone, Kent','','');
photos[8] = new photo(533189,'24327','Journey0636','gallery','http://www3.clikpic.com/lincphoto/images/Journey0636web.jpg',400,259,'Journey South','http://www3.clikpic.com/lincphoto/images/Journey0636web_thumb.jpg',130, 84,0, 0,'Journey South performing in Margate','18/10/06','','Margate, Kent','','');
photos[9] = new photo(530703,'24327','Level0608','gallery','http://www3.clikpic.com/lincphoto/images/Level0608web1.jpg',267,400,'Level 42','http://www3.clikpic.com/lincphoto/images/Level0608web1_thumb.jpg',87, 130,0, 0,'Mark King of Level 42 performing at Folkestone','16/10/06','','Folkestone, Kent','','');
photos[10] = new photo(520400,'24327','Jet0601','gallery','http://www3.clikpic.com/lincphoto/images/Jet0601web.jpg',267,400,'Jet','http://www3.clikpic.com/lincphoto/images/Jet0601web_thumb.jpg',87, 130,1, 1,'Nic Cester of Jet','11/10/06','','London','','');
photos[11] = new photo(503643,'24327','Delays0613','gallery','http://www3.clikpic.com/lincphoto/images/Delays0613web2.jpg',288,400,'Delays','http://www3.clikpic.com/lincphoto/images/Delays0613web2_thumb.jpg',94, 130,0, 0,'Delays performing as support for Embrace tour','02/10/06','','Folkestone, Kent','','');
photos[12] = new photo(503637,'24327','Lily0603','gallery','http://www3.clikpic.com/lincphoto/images/Lily0603web.jpg',400,252,'Lily Allen','http://www3.clikpic.com/lincphoto/images/Lily0603web_thumb.jpg',130, 82,1, 1,'Lily Allen performing at Virgin Oxford Street','26/09/06','','London','','');
photos[13] = new photo(503652,'24327','Kasabian0605','gallery','http://www3.clikpic.com/lincphoto/images/Kasabian0605journal.jpg',300,400,'Kasabian','http://www3.clikpic.com/lincphoto/images/Kasabian0605journal_thumb.jpg',98, 130,1, 1,'Kasabian performing','30/08/06','','London','','');
photos[14] = new photo(425467,'24327','Knives0609','gallery','http://www3.clikpic.com/lincphoto/images/Knives0609site.jpg',400,267,'The Young Knives','http://www3.clikpic.com/lincphoto/images/Knives0609site_thumb.jpg',130, 87,1, 1,'','25/08/06','','London','','');
photos[15] = new photo(394239,'24327','Seth0625','gallery','http://www3.clikpic.com/lincphoto/images/Seth0625website.jpg',400,267,'Seth Lakeman','http://www3.clikpic.com/lincphoto/images/Seth0625website_thumb.jpg',130, 87,1, 1,'Seth Lakeman performing','07/08/06','','London','','');
photos[16] = new photo(332156,'24327','Razor0610','gallery','http://www3.clikpic.com/lincphoto/images/Razor0610.jpg',267,400,'Razorlight','http://www3.clikpic.com/lincphoto/images/Razor0610_thumb.jpg',87, 130,1, 1,'Razorlight frontman Johnny Burrell performing at midnight in-store, Virgin Oxford Street','03/07/06','','London','','');
photos[17] = new photo(323667,'24327','Lost0601','gallery','http://www3.clikpic.com/lincphoto/images/Lost0601.jpg',400,267,'Lostprophets','http://www3.clikpic.com/lincphoto/images/Lost0601_thumb.jpg',130, 87,0, 0,'Lost Prophets appear at HMV Oxford Street','26/06/06','','London','','');
photos[18] = new photo(1339120,'24325','','gallery','http://www3.clikpic.com/lincphoto/images/SimpleMinds8401a.jpg',292,400,'Simple Minds, Los Angeles, 1984','http://www3.clikpic.com/lincphoto/images/SimpleMinds8401a_thumb.jpg',95, 130,1, 1,'Jim Kerr of Simple Minds performing','19/06/84','','Los Angeles','','');
photos[19] = new photo(274480,'24325','U28301','gallery','http://www3.clikpic.com/lincphoto/images/U28301.jpg',348,500,'U2','http://www3.clikpic.com/lincphoto/images/U28301_thumb.jpg',130, 187,0, 0,'U2 at US Festival','22/05/83','Linda Cox','Devore California','','');
photos[20] = new photo(275834,'24325','Spandau8307','gallery','http://www3.clikpic.com/lincphoto/images/SpandauBallet8307.jpg',500,302,'Spandau Ballet','http://www3.clikpic.com/lincphoto/images/SpandauBallet8307_thumb.jpg',130, 79,1, 1,'Spandau Ballet TV taping','','Linda Cox','Los Angeles California','','');
photos[21] = new photo(276655,'24325','AdamAnt8401','gallery','http://www3.clikpic.com/lincphoto/images/Adam-Ant8401.jpg',500,317,'Adam Ant','http://www3.clikpic.com/lincphoto/images/Adam-Ant8401_thumb.jpg',130, 82,1, 1,'Adam Ant at TV taping','','Linda Cox','Hollywood California','','');
photos[22] = new photo(276674,'24325','Duran8402','gallery','http://www3.clikpic.com/lincphoto/images/Duran-Duran8402.jpg',297,500,'Duran Duran','http://www3.clikpic.com/lincphoto/images/Duran-Duran8402_thumb.jpg',130, 219,1, 1,'Simon Le Bon at EMI','','Linda Cox','London','','');
photos[23] = new photo(276685,'24325','SimpleMinds8401','gallery','http://www3.clikpic.com/lincphoto/images/Simple-Minds8401.jpg',274,450,'Simple Minds','http://www3.clikpic.com/lincphoto/images/Simple-Minds8401_thumb.jpg',130, 214,1, 1,'Jim Kerr at KROQ','','Linda Cox','Pasadena California','','');
photos[24] = new photo(288739,'24327','','gallery','http://www3.clikpic.com/lincphoto/images/Ashcroft0606.jpeg',400,361,'Richard Ashcroft','http://www3.clikpic.com/lincphoto/images/Ashcroft0606_thumb.jpeg',130, 117,1, 1,'','','','London','','');
photos[25] = new photo(288747,'24327','','gallery','http://www3.clikpic.com/lincphoto/images/Bravery0505.jpg',400,268,'Bravery','http://www3.clikpic.com/lincphoto/images/Bravery0505_thumb.jpg',130, 87,1, 1,'','','','','','');
photos[26] = new photo(288754,'24327','','gallery','http://www3.clikpic.com/lincphoto/images/Bullet0501.jpg',400,268,'Bullet For My Valentine','http://www3.clikpic.com/lincphoto/images/Bullet0501_thumb.jpg',130, 87,1, 1,'','','','','','');
photos[27] = new photo(288763,'24327','','gallery','http://www3.clikpic.com/lincphoto/images/Echo0510.jpg',400,268,'Echo and the Bunnymen','http://www3.clikpic.com/lincphoto/images/Echo0510_thumb.jpg',130, 87,1, 1,'','','','','','');
photos[28] = new photo(288764,'24327','','gallery','http://www3.clikpic.com/lincphoto/images/ElPresidente0512.jpeg',400,380,'El Presidente','http://www3.clikpic.com/lincphoto/images/ElPresidente0512_thumb.jpeg',130, 124,1, 1,'','','','','','');
photos[29] = new photo(288766,'24327','','gallery','http://www3.clikpic.com/lincphoto/images/Embrace0606.jpg',400,235,'Embrace','http://www3.clikpic.com/lincphoto/images/Embrace0606_thumb.jpg',130, 76,1, 1,'','','','','','');
photos[30] = new photo(288878,'24327','','gallery','http://www3.clikpic.com/lincphoto/images/Feeder0602.jpg',400,267,'Feeder','http://www3.clikpic.com/lincphoto/images/Feeder0602_thumb.jpg',130, 87,1, 1,'','','','','','');
photos[31] = new photo(288879,'24327','','gallery','http://www3.clikpic.com/lincphoto/images/Fightstar0607.jpg',267,400,'Fightstar','http://www3.clikpic.com/lincphoto/images/Fightstar0607_thumb.jpg',87, 130,1, 1,'','','','','','');
photos[32] = new photo(288881,'24327','','gallery','http://www3.clikpic.com/lincphoto/images/GLC0522.jpg',400,268,'Goldie Lookin\' Chain','http://www3.clikpic.com/lincphoto/images/GLC0522_thumb.jpg',130, 87,1, 1,'','','','','','');
photos[33] = new photo(288902,'24327','','gallery','http://www3.clikpic.com/lincphoto/images/LeeRyan0516.jpg',277,400,'Lee Ryan','http://www3.clikpic.com/lincphoto/images/LeeRyan0516_thumb.jpg',90, 130,1, 1,'','','','','','');
photos[34] = new photo(288905,'24327','','gallery','http://www3.clikpic.com/lincphoto/images/Willis0614.jpg',294,400,'Matt Willis','http://www3.clikpic.com/lincphoto/images/Willis0614_thumb.jpg',96, 130,1, 1,'','','','','','');
photos[35] = new photo(288929,'24327','','gallery','http://www3.clikpic.com/lincphoto/images/Rakes0604.jpg',400,257,'Rakes','http://www3.clikpic.com/lincphoto/images/Rakes0604_thumb.jpg',130, 84,1, 1,'','','','','','');
photos[36] = new photo(288932,'24327','','gallery','http://www3.clikpic.com/lincphoto/images/SOD0568.jpeg',267,400,'Son of Dork','http://www3.clikpic.com/lincphoto/images/SOD0568_thumb.jpeg',87, 130,1, 1,'','','','','','');
photos[37] = new photo(288935,'24327','','gallery','http://www3.clikpic.com/lincphoto/images/Starsailor0503.jpg',400,268,'Starsailor','http://www3.clikpic.com/lincphoto/images/Starsailor0503_thumb.jpg',130, 87,1, 1,'','','','','','');
photos[38] = new photo(288937,'24327','','gallery','http://www3.clikpic.com/lincphoto/images/Sugababes0602.jpeg',400,318,'Sugababes','http://www3.clikpic.com/lincphoto/images/Sugababes0602_thumb.jpeg',130, 103,1, 1,'','','','','','');
photos[39] = new photo(288942,'24327','','gallery','http://www3.clikpic.com/lincphoto/images/Texas0504.jpeg',227,400,'Sharleen Spiteri of Texas','http://www3.clikpic.com/lincphoto/images/Texas0504_thumb.jpeg',74, 130,1, 1,'','','','','','');
photos[40] = new photo(987323,'74114','','gallery','http://www3.clikpic.com/lincphoto/images/ThanetTimesJourneySouth.jpg',400,390,'Journey South photos<br>\r\nCopyright 2006 Linda Cox<br>\r\nThanet Times','http://www3.clikpic.com/lincphoto/images/ThanetTimesJourneySouth_thumb.jpg',130, 127,0, 0,'','','','','','');
photos[41] = new photo(987324,'74114','','gallery','http://www3.clikpic.com/lincphoto/images/ThanetTimesHumanLeague.jpg',400,327,'Human League photos <br>\r\nCopyright 2006 Linda Cox<br>\r\nThanet Times','http://www3.clikpic.com/lincphoto/images/ThanetTimesHumanLeague_thumb.jpg',130, 106,0, 0,'','','','','','');
photos[42] = new photo(994884,'74114','Lee Ryan, Blue','gallery','http://www3.clikpic.com/lincphoto/images/SaturdayObserverLeeRyan06.08.05.jpg',230,400,'Lee Ryan Photos <br>\r\nCopyright 2005 Linda Cox<br>\r\nSaturday Observer','http://www3.clikpic.com/lincphoto/images/SaturdayObserverLeeRyan06_thumb.08.05.jpg',75, 130,0, 0,'','','','','','');
photos[43] = new photo(994939,'74114','','gallery','http://www3.clikpic.com/lincphoto/images/SaturdayObserverBCR.jpg',306,400,'Photo and Written Review of Bay City Rollers <br>\r\nCopyright 2006 Linda Cox<br>\r\nSaturday Observer','http://www3.clikpic.com/lincphoto/images/SaturdayObserverBCR_thumb.jpg',99, 130,0, 0,'','','','','','');
photos[44] = new photo(994986,'74114','','gallery','http://www3.clikpic.com/lincphoto/images/Riffathonweb.jpg',348,400,'Riffathon Written Review at www.riffathon.co.uk<br>\r\nCopyright 2005 Linda Cox','http://www3.clikpic.com/lincphoto/images/Riffathonweb_thumb.jpg',113, 130,0, 0,'','','','','','');
photos[45] = new photo(1267800,'74114','','gallery','http://www3.clikpic.com/lincphoto/images/OCSThanetGazette11.05.2007.jpg',400,327,'Ocean Colour Scene<br>\r\nIsle of Thanet Gazette 11 May 2007','http://www3.clikpic.com/lincphoto/images/OCSThanetGazette11_thumb.05.2007.jpg',130, 106,1, 1,'','','','','','');
photos[46] = new photo(1267824,'74114','','gallery','http://www3.clikpic.com/lincphoto/images/DohertySun13.08.2007.jpg',400,156,'Pete Doherty<br>\r\nPhoto Copyright 2007 Linda Cox<br>\r\nThe Sun 13 August 2007','http://www3.clikpic.com/lincphoto/images/DohertySun13_thumb.08.2007.jpg',130, 51,0, 0,'','','','','','');
photos[47] = new photo(1269846,'74114','','gallery','http://www3.clikpic.com/lincphoto/images/DohertySunOnline13.08.2007.JPG',400,327,'Pete Doherty <br>\r\nPhoto Copyright 2007 Linda Cox<br>\r\nThe Sun Online 13 August 2007','http://www3.clikpic.com/lincphoto/images/DohertySunOnline13_thumb.08.2007.JPG',130, 106,1, 1,'','','','','','');
photos[48] = new photo(287588,'24520','Oscars8201','gallery','http://www3.clikpic.com/lincphoto/images/Oscars8301.jpg',400,284,'Vincent Price','http://www3.clikpic.com/lincphoto/images/Oscars8301_thumb.jpg',130, 92,1, 1,'','28/03/82','Linda Cox','Los Angeles California','','');
photos[49] = new photo(274679,'24520','Cure8303','gallery','http://www3.clikpic.com/lincphoto/images/Cure8303.jpg',500,321,'Robert Smith of the Cure','http://www3.clikpic.com/lincphoto/images/Cure8303_thumb.jpg',130, 83,0, 0,'Robert Smith of the Cure','','Linda Cox','San Francisco Airport','','');
photos[50] = new photo(847217,'25405','Cassidy0714','gallery','http://www3.clikpic.com/lincphoto/images/Cassidy0714web2.jpg',267,400,'David Cassidy','http://www3.clikpic.com/lincphoto/images/Cassidy0714web2_thumb.jpg',87, 130,0, 0,'David Cassidy signing copies of his book \"Could It Be Forever\"','08/03/07','','Thurrock, Essex','','');
photos[51] = new photo(584200,'25405','BigBrother0611','gallery','http://www3.clikpic.com/lincphoto/images/BigBrother0611web.jpg',400,267,'Big Brother 2006 Winner Pete Bennett','http://www3.clikpic.com/lincphoto/images/BigBrother0611web_thumb.jpg',130, 87,1, 1,'Pete Bennett with fans at in-store signing of his autobiography','11/11/06','Linda Cox','Bluewater, Kent','','');
photos[52] = new photo(288751,'25405','','gallery','http://www3.clikpic.com/lincphoto/images/Hart0605.jpeg',267,400,'Bret \"The Hitman\" Hart','http://www3.clikpic.com/lincphoto/images/Hart0605_thumb.jpeg',87, 130,1, 1,'','','','London, England','','');
photos[53] = new photo(288761,'25405','','gallery','http://www3.clikpic.com/lincphoto/images/Donny0508.jpg',313,400,'Donny Osmond','http://www3.clikpic.com/lincphoto/images/Donny0508_thumb.jpg',102, 130,1, 1,'','','','Kent','','');
photos[54] = new photo(288882,'25405','','gallery','http://www3.clikpic.com/lincphoto/images/Lara0620.jpg',310,400,'Karima Adebibe as Lara Croft','http://www3.clikpic.com/lincphoto/images/Lara0620_thumb.jpg',101, 130,1, 1,'','','','','','');
photos[55] = new photo(288930,'25405','','gallery','http://www3.clikpic.com/lincphoto/images/Serenity07.jpg',400,268,'Cast of Serenity','http://www3.clikpic.com/lincphoto/images/Serenity07_thumb.jpg',130, 87,1, 1,'','','','','','');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
galleries = new Array();
galleries[0] = new gallery(24325,'1339120,276685,276674,276655,275834','1980\'s','gallery');
galleries[1] = new gallery(24326,'','1990\'s','gallery');
galleries[2] = new gallery(24327,'960250,960244,619917,612532,612529,612528,590133,560384,520400,503652,503637,425467,394239,332156,288942,288937,288935,288932,288929,288905,288902,288881,288879,288878,288766,288764,288763,288754,288747,288739','2000\'s','gallery');
galleries[3] = new gallery(74114,'1269846,1267800','Publications and Webpages','gallery');
galleries[4] = new gallery(24520,'287588','Humble Beginnings','gallery');
galleries[5] = new gallery(24324,'1339120,960250,960244,619917,612532,612529,612528,590133,560384,520400,503652,503637,425467,394239,332156,288942,288937,288935,288932,288929,288905,288902,288881,288879,288878,288766,288764,288763,288754,288747,288739,276685,276674,276655,275834','Music','gallery');
galleries[6] = new gallery(25405,'584200,288930,288882,288761,288751','Entertainment','gallery');

