/***************************************************************************
* 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('3106672,550641,550619,550594,550592,550536,441296,441287,441286,434883,434877,434865,434864,434854,434833,434747,434739,433887,433798,433739,433738,433734,433732,433728,433268,433264,433260,433257,433256,433255,433254,433249,433247,433244');
	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('3106672,550641,550619,550594,550592,550536,441296,441287,441286,434883,434877,434865,434864,434854,434833,434747,434739,433887,433798,433739,433738,433734,433732,433728,433268,433264,433260,433257,433256,433255,433254,433249,433247,433244');
	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 = 'Location Photography - 0151 353 8951: ' + 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(534720,'','','','http://www1.clikpic.com/location/images/Scan6.jpg',515,169,'','http://www1.clikpic.com/location/images/Scan6_thumb.jpg',130, 43,0, 1,'','','','','','');
photos[1] = new photo(706478,'','','','http://www1.clikpic.com/location/images/What-Is-It a.jpg',504,337,'What Is It ?','http://www1.clikpic.com/location/images/What-Is-It a_thumb.jpg',130, 87,0, 0,'Clue - This will cause quite a stir !!<br>\r\n<br>\r\nWhen you know what it is, simply e mail us<br>\r\nor click on \'Contact Us\' above.<br>\r\n<br>\r\nA bottle of Champagne awaits for the first name drawn \'out of the hat\'.<br>\r\n<br>\r\nGood Luck !!','','','','','');
photos[2] = new photo(894372,'45468','','section68591','http://www1.clikpic.com/location/images/Z.jpg',600,402,'What Is It ?<br>\r\n<br>\r\nI think this is our toughest so far !!','http://www1.clikpic.com/location/images/Z_thumb.jpg',130, 87,0, 0,'If you need a clue give us a call or drop us a line.<br>\r\n<br>\r\nWhen you know what it is, simply e mail us<br>\r\nor click on \'Contact Us\' above.<br>\r\n<br>\r\nA bottle of Champagne awaits for the first name drawn \'out of the hat\'.<br>\r\n<br>\r\nGood Luck !!','','','','','');
photos[3] = new photo(737591,'56918','','section83230','http://www1.clikpic.com/location/images/Outdoor-Ad-7.jpg',600,559,'','http://www1.clikpic.com/location/images/Outdoor-Ad-7_thumb.jpg',130, 121,0, 0,'','','','','','');
photos[4] = new photo(737615,'56918','','section83230','http://www1.clikpic.com/location/images/Brochure.jpg',600,538,'','http://www1.clikpic.com/location/images/Brochure_thumb.jpg',130, 117,0, 0,'','','','','','');
photos[5] = new photo(737620,'56918','','section83230','http://www1.clikpic.com/location/images/Brochurte-02a.jpg',600,569,'','http://www1.clikpic.com/location/images/Brochurte-02a_thumb.jpg',130, 123,0, 0,'','','','','','');
photos[6] = new photo(737625,'56918','','section83230','http://www1.clikpic.com/location/images/P-&-G-Lenor---Birmingham.jpg',515,335,'','http://www1.clikpic.com/location/images/P-&-G-Lenor---Birmingham_thumb.jpg',130, 85,0, 0,'','','','','','');
photos[7] = new photo(737603,'56918','','section83230','http://www1.clikpic.com/location/images/Outdoor-Ad-03---s.jpg',600,336,'','http://www1.clikpic.com/location/images/Outdoor-Ad-03---s_thumb.jpg',130, 73,0, 0,'','','','','','');
photos[8] = new photo(737611,'56918','','section83230','http://www1.clikpic.com/location/images/Outdoor-Ad-01.jpg',600,178,'','http://www1.clikpic.com/location/images/Outdoor-Ad-01_thumb.jpg',130, 39,0, 0,'','','','','','');
photos[9] = new photo(550658,'','','','http://www1.clikpic.com/location/images/DSCF6362aaa2.jpg',500,600,'','http://www1.clikpic.com/location/images/DSCF6362aaa2_thumb.jpg',130, 156,0, 0,'','','','','','');
photos[10] = new photo(433256,'34587','','gallery','http://www1.clikpic.com/location/images/07.jpg',600,500,'','http://www1.clikpic.com/location/images/07_thumb.jpg',130, 108,1, 1,'Client - Yorkshire Bank<br>\r\n<br>\r\nLocation - Leeds','','','','','');
photos[11] = new photo(433257,'34587','','gallery','http://www1.clikpic.com/location/images/Folio.jpg',600,500,'','http://www1.clikpic.com/location/images/Folio_thumb.jpg',130, 108,1, 1,'Client - HM Government<br>\r\n<br>\r\nLocation - London','','','','','');
photos[12] = new photo(433267,'34587','','gallery','http://www1.clikpic.com/location/images/aaPWC-021.jpg',600,500,'','http://www1.clikpic.com/location/images/aaPWC-021_thumb.jpg',130, 108,0, 1,'Client - Priice Waterhouse Cooper<br>\r\n<br>\r\nLocation - London','','','','','');
photos[13] = new photo(433244,'34587','','gallery','http://www1.clikpic.com/location/images/Brenig-Mailer7.jpg',600,500,'','http://www1.clikpic.com/location/images/Brenig-Mailer7_thumb.jpg',130, 108,1, 1,'Client - United Utilities<br>\r\n<br>\r\nLocation - Llyn Brenig','','','','','');
photos[14] = new photo(433249,'34587','','gallery','http://www1.clikpic.com/location/images/11.jpg',600,500,'','http://www1.clikpic.com/location/images/11_thumb.jpg',130, 108,1, 1,'Client - Stock Exchange<br>\r\n<br>\r\nLocation - London','','','','','');
photos[15] = new photo(433254,'34587','','gallery','http://www1.clikpic.com/location/images/HSBC-01.jpg',600,500,'','http://www1.clikpic.com/location/images/HSBC-01_thumb.jpg',130, 108,1, 1,'Client - HSBC<br>\r\n<br>\r\nLocation - London','','','','','');
photos[16] = new photo(433255,'34587','','gallery','http://www1.clikpic.com/location/images/National-Bank-03.jpg',600,500,'','http://www1.clikpic.com/location/images/National-Bank-03_thumb.jpg',130, 108,1, 1,'Client - National Bank of Australia<br>\r\n<br>\r\nLocation - Leeds','','','','','');
photos[17] = new photo(433247,'34587','','gallery','http://www1.clikpic.com/location/images/bombardier.jpg',600,500,'','http://www1.clikpic.com/location/images/bombardier_thumb.jpg',130, 108,1, 1,'Client - Bombardier<br>\r\n<br>\r\nLocation - Derby','','','','','');
photos[18] = new photo(433724,'34587','','gallery','http://www1.clikpic.com/location/images/National-Bank-01.jpg',600,500,'','http://www1.clikpic.com/location/images/National-Bank-01_thumb.jpg',130, 108,0, 0,'Client - National Bank of Australia<br>\r\n<br>\r\nLocation - London','','','','','');
photos[19] = new photo(434747,'34587','','gallery','http://www1.clikpic.com/location/images/DSCF2208a.jpg',500,600,'','http://www1.clikpic.com/location/images/DSCF2208a_thumb.jpg',130, 156,1, 0,'Client - Mc Guffie Brunton<br>\r\n<br>\r\nLocation - Bristol','','','','','');
photos[20] = new photo(433728,'34587','','gallery','http://www1.clikpic.com/location/images/DSCF57461.jpg',500,600,'','http://www1.clikpic.com/location/images/DSCF57461_thumb.jpg',130, 156,1, 0,'Client - Northern Gas<br>\r\n<br>\r\nLocation - Leeds','','','','','');
photos[21] = new photo(434739,'34587','','gallery','http://www1.clikpic.com/location/images/Chef1.jpg',500,600,'','http://www1.clikpic.com/location/images/Chef1_thumb.jpg',130, 156,1, 0,'Client - Belfry Hotel<br>\r\n<br>\r\nLocation - Kitchen','','','','','');
photos[22] = new photo(433260,'34588','','gallery','http://www1.clikpic.com/location/images/UU-01.jpg',600,500,'','http://www1.clikpic.com/location/images/UU-01_thumb.jpg',130, 108,1, 1,'Client - United Utilities<br>\r\n<br>\r\nLocation - Manchester','','','','','');
photos[23] = new photo(433738,'34588','','gallery','http://www1.clikpic.com/location/images/aDSCF1214.jpg',600,500,'','http://www1.clikpic.com/location/images/aDSCF1214_thumb.jpg',130, 108,1, 1,'Client - Tate & Lyle<br>\r\n<br>\r\nLocation - Liverpool','','','','','');
photos[24] = new photo(433264,'34588','','gallery','http://www1.clikpic.com/location/images/TMP-30.jpg',600,500,'','http://www1.clikpic.com/location/images/TMP-30_thumb.jpg',130, 108,1, 1,'Client - Vauxhall Motors<br>\r\n<br>\r\nLocation - Ellesmere Port','','','','','');
photos[25] = new photo(433734,'34588','','gallery','http://www1.clikpic.com/location/images/DSCF0863.jpg',600,500,'','http://www1.clikpic.com/location/images/DSCF0863_thumb.jpg',130, 108,1, 1,'Client - Hutchinson Ports<br>\r\n<br>\r\nLocation - Felixstowe','','','','','');
photos[26] = new photo(433798,'34588','','gallery','http://www1.clikpic.com/location/images/Eurostar3.jpg',600,500,'','http://www1.clikpic.com/location/images/Eurostar3_thumb.jpg',130, 108,1, 0,'Client - Eurostar<br>\r\n<br>\r\nLocation - Waterloo','','','','','');
photos[27] = new photo(433887,'34588','','gallery','http://www1.clikpic.com/location/images/aDSCF2391a.jpg',600,500,'','http://www1.clikpic.com/location/images/aDSCF2391a_thumb.jpg',130, 108,1, 1,'Client - United Utilities<br>\r\n<br>\r\nLocation - Manchester','','','','','');
photos[28] = new photo(433268,'34588','','gallery','http://www1.clikpic.com/location/images/Maritime-02.jpg',500,600,'','http://www1.clikpic.com/location/images/Maritime-02_thumb.jpg',130, 156,1, 0,'Client - Maritime Transport<br>\r\n<br>\r\nLocation - Felixstowe','','','','','');
photos[29] = new photo(433732,'34588','','gallery','http://www1.clikpic.com/location/images/DSCF3635.jpg',500,600,'','http://www1.clikpic.com/location/images/DSCF3635_thumb.jpg',130, 156,1, 0,'Client - Health & Safety Executive<br>\r\n<br>\r\nLocation - Liverpool','','','','','');
photos[30] = new photo(433739,'34588','','gallery','http://www1.clikpic.com/location/images/DSCF2835.jpg',500,600,'','http://www1.clikpic.com/location/images/DSCF2835_thumb.jpg',130, 156,1, 0,'Client - Tate & Lyle<br>\r\n<br>\r\nLocation - Liverpool','','','','','');
photos[31] = new photo(434865,'34636','','gallery','http://www1.clikpic.com/location/images/Scan133.jpg',276,600,'','http://www1.clikpic.com/location/images/Scan133_thumb.jpg',130, 283,1, 0,'Client - British Airways<br>\r\n<br>\r\nLocation - New York City','','','','','');
photos[32] = new photo(434864,'34636','','gallery','http://www1.clikpic.com/location/images/Scan123.jpg',276,600,'','http://www1.clikpic.com/location/images/Scan123_thumb.jpg',130, 283,1, 0,'Client - British Airways<br>\r\n<br>\r\nLocation - New York City','','','','','');
photos[33] = new photo(434877,'34636','','gallery','http://www1.clikpic.com/location/images/009.jpg',276,600,'','http://www1.clikpic.com/location/images/009_thumb.jpg',130, 283,1, 0,'Client - Bombardier<br>\r\n<br>\r\nLocation - Brussels','','','','','');
photos[34] = new photo(434833,'34636','','gallery','http://www1.clikpic.com/location/images/DSCF0469a.jpg',600,500,'','http://www1.clikpic.com/location/images/DSCF0469a_thumb.jpg',130, 108,1, 1,'Client - Bombardier<br>\r\n<br>\r\nLocation - Milan','','','','','');
photos[35] = new photo(434841,'34636','','gallery','http://www1.clikpic.com/location/images/DSCF1197a.jpg',600,500,'','http://www1.clikpic.com/location/images/DSCF1197a_thumb.jpg',130, 108,0, 0,'Client - Bombardier<br>\r\n<br>\r\nLocation - Milan','','','','','');
photos[36] = new photo(434854,'34636','','gallery','http://www1.clikpic.com/location/images/DSCF0419.jpg',600,500,'','http://www1.clikpic.com/location/images/DSCF0419_thumb.jpg',130, 108,1, 0,'Client - Bombardier<br>\r\n<br>\r\nLocation - Milan','','','','','');
photos[37] = new photo(434883,'34636','','gallery','http://www1.clikpic.com/location/images/Scan19.jpg',600,218,'','http://www1.clikpic.com/location/images/Scan19_thumb.jpg',130, 47,1, 0,'Client - British Airways<br>\r\n<br>\r\nLocation - New York City','','','','','');
photos[38] = new photo(434887,'34636','','gallery','http://www1.clikpic.com/location/images/Scan18.jpg',600,220,'','http://www1.clikpic.com/location/images/Scan18_thumb.jpg',130, 48,0, 0,'Client - British Airways<br>\r\n<br>\r\nLocation - New York City','','','','','');
photos[39] = new photo(434816,'34636','','gallery','http://www1.clikpic.com/location/images/Scan112.jpg',600,219,'','http://www1.clikpic.com/location/images/Scan112_thumb.jpg',130, 47,0, 0,'Client - British Airways<br>\r\n<br>\r\nLocation - New York City','','','','','');
photos[40] = new photo(3106672,'42536','','gallery','http://admin.clikpic.com/location/images/New Brighton Beach.jpg',500,325,'','http://admin.clikpic.com/location/images/New Brighton Beach_thumb.jpg',130, 85,1, 0,'','','','','','');
photos[41] = new photo(550515,'42536','','gallery','http://www1.clikpic.com/location/images/Beach---48s-golf-council-x-.jpg',600,299,'','http://www1.clikpic.com/location/images/Beach---48s-golf-council-x-_thumb.jpg',130, 65,0, 0,'Client - Wirral Borough Council<br>\r\n<br>\r\nLocation - Wirral','','','','','');
photos[42] = new photo(550521,'42536','','gallery','http://www1.clikpic.com/location/images/countryside---48s---golf-co.jpg',600,296,'','http://www1.clikpic.com/location/images/countryside---48s---golf-co_thumb.jpg',130, 64,0, 0,'Client - Wirral Borough Council<br>\r\n<br>\r\nLocation - Wirral','','','','','');
photos[43] = new photo(550524,'42536','','gallery','http://www1.clikpic.com/location/images/business-48s-golf-council-x.jpg',600,300,'','http://www1.clikpic.com/location/images/business-48s-golf-council-x_thumb.jpg',130, 65,0, 0,'Client - Wirral Borough Council<br>\r\n<br>\r\nLocation - Wirral','','','','','');
photos[44] = new photo(550513,'42536','','gallery','http://www1.clikpic.com/location/images/Scan61.jpg',600,197,'','http://www1.clikpic.com/location/images/Scan61_thumb.jpg',130, 43,0, 0,'Client - Eire Tourist Board<br>\r\n<br>\r\nLocation - Kilkenny','','','','','');
photos[45] = new photo(550537,'42536','','gallery','http://www1.clikpic.com/location/images/Scan7.jpg',600,196,'','http://www1.clikpic.com/location/images/Scan7_thumb.jpg',130, 42,0, 0,'Client - Wales Tourist Board<br>\r\n<br>\r\nLocation - Conwy Valley','','','','','');
photos[46] = new photo(550536,'42536','','gallery','http://www1.clikpic.com/location/images/Scan3.jpg',600,196,'','http://www1.clikpic.com/location/images/Scan3_thumb.jpg',130, 42,1, 0,'Client - Wales Tourist Board<br>\r\n<br>\r\nLocation - Snowdonia','','','','','');
photos[47] = new photo(550592,'42536','','gallery','http://www1.clikpic.com/location/images/DSCF0232a.jpg',515,342,'','http://www1.clikpic.com/location/images/DSCF0232a_thumb.jpg',130, 86,1, 0,'Client - Non Commissioned<br>\r\n<br>\r\nLocation - Angel of the North','','','','','');
photos[48] = new photo(550594,'42536','','gallery','http://www1.clikpic.com/location/images/DSCF0764a1.jpg',515,429,'','http://www1.clikpic.com/location/images/DSCF0764a1_thumb.jpg',130, 108,1, 1,'Client - North West Development Agency<br>\r\n<br>\r\nLocation - Hoylake, Cheshire','','','','','');
photos[49] = new photo(550619,'42536','','gallery','http://www1.clikpic.com/location/images/Beach-&-Horses.jpg',515,704,'','http://www1.clikpic.com/location/images/Beach-&-Horses_thumb.jpg',130, 178,1, 0,'Client - North West Development Agency<br>\r\n<br>\r\nLocation - Hoylake, Wirral','','','','','');
photos[50] = new photo(441290,'35155','','gallery','http://www1.clikpic.com/location/images/DSCF9611.jpg',600,500,'','http://www1.clikpic.com/location/images/DSCF9611_thumb.jpg',130, 108,0, 1,'','','','','','');
photos[51] = new photo(441284,'35155','','gallery','http://www1.clikpic.com/location/images/DSCF6511a.jpg',600,500,'','http://www1.clikpic.com/location/images/DSCF6511a_thumb.jpg',130, 108,0, 0,'','','','','','');
photos[52] = new photo(550641,'35155','','gallery','http://www1.clikpic.com/location/images/DSCF0158.jpg',515,342,'','http://www1.clikpic.com/location/images/DSCF0158_thumb.jpg',130, 86,1, 0,'','','','','','');
photos[53] = new photo(441296,'35155','','gallery','http://www1.clikpic.com/location/images/DSCF9665.jpg',500,600,'','http://www1.clikpic.com/location/images/DSCF9665_thumb.jpg',130, 156,1, 0,'','','','','','');
photos[54] = new photo(441287,'35155','','gallery','http://www1.clikpic.com/location/images/DSCF7143.jpg',500,600,'','http://www1.clikpic.com/location/images/DSCF7143_thumb.jpg',130, 156,1, 0,'','','','','','');
photos[55] = new photo(441286,'35155','','gallery','http://www1.clikpic.com/location/images/DSCF6963.jpg',500,676,'','http://www1.clikpic.com/location/images/DSCF6963_thumb.jpg',130, 176,1, 0,'','','','','','');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
galleries = new Array();
galleries[0] = new gallery(34780,'','Clients','section55144');
galleries[1] = new gallery(56918,'737625,737620,737615,737611,737603,737591','Outside Advertising','section83230');
galleries[2] = new gallery(45468,'894372','What Is It ???','section68591');
galleries[3] = new gallery(34587,'433267,433257,433256,433255,433254,433249,433247,433244','Corporate Reportage','gallery');
galleries[4] = new gallery(34588,'433887,433738,433734,433264,433260','Industrial Reportage','gallery');
galleries[5] = new gallery(34636,'434833','Cityscapes','gallery');
galleries[6] = new gallery(42536,'550594','Landscapes','gallery');
galleries[7] = new gallery(35155,'441290','Library','gallery');

