/***************************************************************************
* 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('716911');
	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('716911');
	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 = 'Ciaran Conneely 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(716911,'','','','http://www3.clikpic.com/ciaran/images/SEA-3-RGB-2.jpg',600,454,'Tramore Bay Sunset','http://www3.clikpic.com/ciaran/images/SEA-3-RGB-2_thumb.jpg',130, 98,1, 0,'Sunset on Tramore Bay','','Ciaran Conneely','Tramore','','');
photos[1] = new photo(2477040,'55105','','gallery','http://www3.clikpic.com/ciaran/images/Altocirrus.jpg',400,593,'\"Altocirrus or My Car\"','http://www3.clikpic.com/ciaran/images/Altocirrus_thumb.jpg',130, 193,0, 0,'Garrarus beach near Tramore is threatened with \"development\". I think it\'s fine the way it is.','10/07/08','Ciaran Conneely','Garrarus, County Waterford','','');
photos[2] = new photo(716964,'55105','','gallery','http://www3.clikpic.com/ciaran/images/MINES-2-duo-jpg.jpg',500,334,'Copper Mines at Tankardstown, Co. Waterford','http://www3.clikpic.com/ciaran/images/MINES-2-duo-jpg_thumb.jpg',130, 87,0, 0,'These copper mines were very active between 1824 and 1878, after which a great many of the miners emigrated to Butte, Montana to work the copper mines there. The area is now part of the Copper Coast Geopark.','','Ciaran Conneely','Tankardstown, Co. Waterford','','');
photos[3] = new photo(716999,'55105','Birds on a Wire','gallery','http://www3.clikpic.com/ciaran/images/BIRDS1---bwCROM.jpg',500,334,'Birds congregating on a pole in Autumn','http://www3.clikpic.com/ciaran/images/BIRDS1---bwCROM_thumb.jpg',130, 87,0, 0,'','','Ciaran Conneely',' Co. Waterford','','');
photos[4] = new photo(717011,'55105','Spray','gallery','http://www3.clikpic.com/ciaran/images/SPRAY.jpg',500,334,'Spray','http://www3.clikpic.com/ciaran/images/SPRAY_thumb.jpg',130, 87,0, 0,'A stormy day at the Guillemene','','Ciaran Conneely','Co, Waterford','','');
photos[5] = new photo(717027,'55105','','gallery','http://www3.clikpic.com/ciaran/images/BIG-WHEEL-2.jpg',500,334,'Big Wheel','http://www3.clikpic.com/ciaran/images/BIG-WHEEL-2_thumb.jpg',130, 87,0, 0,'The Amusements in Tramore, known locally as \"Down Around\".','','Ciaran Conneely','Tramore','','');
photos[6] = new photo(717053,'55105','','gallery','http://www3.clikpic.com/ciaran/images/HOLY-CROSS.jpg',500,334,'Holy Cross church','http://www3.clikpic.com/ciaran/images/HOLY-CROSS_thumb.jpg',130, 87,0, 0,'Holy Cross church, Tramore, with a beautiful Summer sunset','','Ciaran Conneely','Tramore, Co Waterford','','');
photos[7] = new photo(717080,'55105','','gallery','http://www3.clikpic.com/ciaran/images/HUDDLED.jpg',500,320,'Brave Souls','http://www3.clikpic.com/ciaran/images/HUDDLED_thumb.jpg',130, 83,0, 0,'Brave holiday makers on a cool day at Newtown Cove, Tramore','','Ciaran Conneely','Newtown Cove, Tramore, Co Waterford','','');
photos[8] = new photo(723520,'55105','','gallery','http://www3.clikpic.com/ciaran/images/Garrarus-rgb1.jpg',341,450,'Garrarus','http://www3.clikpic.com/ciaran/images/Garrarus-rgb1_thumb.jpg',130, 172,0, 1,'Garrarus strand, a few miles from Tramore.','','Ciaran Conneely','','','');
photos[9] = new photo(733102,'55105','','gallery','http://www3.clikpic.com/ciaran/images/MOONRISE-TRAMORE-RGB.jpg',500,373,'Moonrise, Tramore','http://www3.clikpic.com/ciaran/images/MOONRISE-TRAMORE-RGB_thumb.jpg',130, 97,0, 0,'Moonrise over Holy Cross Church Tramore.','','Ciaran Conneely','','','');
photos[10] = new photo(736411,'55105','','gallery','http://www3.clikpic.com/ciaran/images/GABLE-RGB.jpg',429,510,'Gable, Co. Kerry','http://www3.clikpic.com/ciaran/images/GABLE-RGB_thumb.jpg',130, 155,0, 0,'Gable end of a house in Catherdaniel, Co Kerry.','','Ciaran Conneely','','','');
photos[11] = new photo(736425,'55105','','gallery','http://www3.clikpic.com/ciaran/images/GAULSTOWN-RGB.jpg',500,374,'Gaulstown Dolmen','http://www3.clikpic.com/ciaran/images/GAULSTOWN-RGB_thumb.jpg',130, 97,0, 0,'Gaulstown Dolmen, near Tramore, is an ancient Burial site, 4000 to 4500 years old.','','Ciaran Conneely','','','');
photos[12] = new photo(736433,'55105','','gallery','http://www3.clikpic.com/ciaran/images/WAVES-RGB.jpg',500,376,'Waves','http://www3.clikpic.com/ciaran/images/WAVES-RGB_thumb.jpg',130, 98,0, 0,'A storm was blowing in from the Atlantic, this shot is looking out towards Brownstown head.','','Ciaran Conneely','','','');
photos[13] = new photo(736440,'55105','','gallery','http://www3.clikpic.com/ciaran/images/ROOTS-RGB.jpg',500,381,'Roots','http://www3.clikpic.com/ciaran/images/ROOTS-RGB_thumb.jpg',130, 99,0, 0,'Roots and granite, Catherdaniel, Co. Kerry.','','Ciaran Conneely','','','');
photos[14] = new photo(736549,'55105','','gallery','http://www3.clikpic.com/ciaran/images/DUNGARVAN-RGB.jpg',500,358,'Dungarvan','http://www3.clikpic.com/ciaran/images/DUNGARVAN-RGB_thumb.jpg',130, 93,0, 0,'A view of Dungarvan, Co. Waterford.','','Ciaran Conneely','','','');
photos[15] = new photo(971555,'55105','','gallery','http://www3.clikpic.com/ciaran/images/Mahon-Falls2-rgb.jpg',500,337,'Mahon Falls.','http://www3.clikpic.com/ciaran/images/Mahon-Falls2-rgb_thumb.jpg',130, 88,0, 0,'Mahon Falls in the Comeragh Mountains, Co. Waterford','','Ciaran Conneely','','','');
photos[16] = new photo(971562,'55105','','gallery','http://www3.clikpic.com/ciaran/images/London-Tube-rgb.jpg',500,342,'London Tube','http://www3.clikpic.com/ciaran/images/London-Tube-rgb_thumb.jpg',130, 89,0, 0,'London\'s Harrow Hill tube station at dusk.','','Ciaran Conneely','','','');
photos[17] = new photo(1756400,'55105','','gallery','http://www3.clikpic.com/ciaran/images/Tramore-Bay.jpg',600,388,'Tramore Bay white horses','http://www3.clikpic.com/ciaran/images/Tramore-Bay_thumb.jpg',130, 84,0, 0,'Wind catching the waves in Tramore Bay, Waterford','','Ciaran Conneely','','','');
photos[18] = new photo(718799,'55172','','gallery','http://www3.clikpic.com/ciaran/images/CIRCUS-GOA.jpg',500,377,'Circus Goa','http://www3.clikpic.com/ciaran/images/CIRCUS-GOA_thumb.jpg',130, 98,0, 0,'A mini family circus performing outside a restautant in Goa.','','Ciaran Conneely','Goa','','');
photos[19] = new photo(718871,'55172','','gallery','http://www3.clikpic.com/ciaran/images/Temple-Thailand.jpg',383,500,'Temple in Thailand,','http://www3.clikpic.com/ciaran/images/Temple-Thailand_thumb.jpg',130, 170,0, 1,'A Temple in Thailand, it seems to have a lot in common with a Western garden shed.','','Ciaran Conneely','','','');
photos[20] = new photo(718946,'55172','','gallery','http://www3.clikpic.com/ciaran/images/Pots.jpg',400,302,'Pots','http://www3.clikpic.com/ciaran/images/Pots_thumb.jpg',130, 98,0, 0,'Cooking pots at a \"women cooking\" festival in Kerala, India. Women and children gather in their thousands to cook sweet rice cakes which are blessed by Priests and taken home.','','Ciaran Conneely','','','');
photos[21] = new photo(718953,'55172','','gallery','http://www3.clikpic.com/ciaran/images/Boat.jpg',500,378,'Fishing Boat','http://www3.clikpic.com/ciaran/images/Boat_thumb.jpg',130, 98,0, 0,'Fishing boat in Kerala, India.','','Ciaran Conneely','','','');
photos[22] = new photo(718961,'55172','','gallery','http://www3.clikpic.com/ciaran/images/Nets.jpg',500,378,'Pulling in the Nets','http://www3.clikpic.com/ciaran/images/Nets_thumb.jpg',130, 98,0, 0,'Fishermen in Kerala, India, pulling in their nets.','','Ciaran Conneely','','','');
photos[23] = new photo(718976,'55172','','gallery','http://www3.clikpic.com/ciaran/images/Fisherman-Kerala.jpg',500,378,'Fisherman, Kerala','http://www3.clikpic.com/ciaran/images/Fisherman-Kerala_thumb.jpg',130, 98,0, 0,'A Fisherman in Kerala, India.','','Ciaran Conneely',' ','','');
photos[24] = new photo(719056,'55172','','gallery','http://www3.clikpic.com/ciaran/images/Vendor.jpg',500,378,'Seafood Vendor','http://www3.clikpic.com/ciaran/images/Vendor_thumb.jpg',130, 98,0, 0,'A seafood vendor sells from the back of his bicycle, Goa, India.','','Ciaran Conneely','','','');
photos[25] = new photo(719122,'55172','','gallery','http://www3.clikpic.com/ciaran/images/Ghosttown.jpg',500,378,'Ghost Town','http://www3.clikpic.com/ciaran/images/Ghosttown_thumb.jpg',130, 98,0, 0,'Ghost Town, Apache Junction, Arizona, USA.','','Ciaran Conneely','','','');
photos[26] = new photo(723678,'55172','','gallery','http://www3.clikpic.com/ciaran/images/MEXICO-RGB.jpg',500,392,'Caballeros y Damas.','http://www3.clikpic.com/ciaran/images/MEXICO-RGB_thumb.jpg',130, 102,0, 0,'Caballeros y Damas in Mexico.','','Ciaran Conneely','','','');
photos[27] = new photo(723723,'55172','','gallery','http://www3.clikpic.com/ciaran/images/SHARK-1-rgb.jpg',500,378,'Flying Sharks.','http://www3.clikpic.com/ciaran/images/SHARK-1-rgb_thumb.jpg',130, 98,0, 0,'Sharks swim overhead in the Aquarium at the Mandalay Bay Hotel , Las Vegas.','','Ciaran Conneely','','','');
photos[28] = new photo(724209,'55172','','gallery','http://www3.clikpic.com/ciaran/images/Road-rgb.jpg',500,334,'Road to Sedona.','http://www3.clikpic.com/ciaran/images/Road-rgb_thumb.jpg',130, 87,0, 0,'Sedona, Arizona, is at a higher altitude, so it\'s cooler and has trees. It\'s an artist\'s colony and a popular  place  to go to escape the heat.','','Ciaran Conneely.','','','');
photos[29] = new photo(724215,'55172','','gallery','http://www3.clikpic.com/ciaran/images/TRUX-BW-rgb.jpg',500,390,'Trucks.','http://www3.clikpic.com/ciaran/images/TRUX-BW-rgb_thumb.jpg',130, 101,0, 0,'Truckstop, Arizona.','','Ciaran Conneely','','','');
photos[30] = new photo(733080,'55172','','gallery','http://www3.clikpic.com/ciaran/images/hanks-antiques-rgb.jpg',500,400,'Hank\'s Antiques.','http://www3.clikpic.com/ciaran/images/hanks-antiques-rgb_thumb.jpg',130, 104,0, 0,'Hank\'s Antiques, Wickensburg, Arizona.','','Ciaran Conneely','','','');
photos[31] = new photo(733143,'55172','','gallery','http://www3.clikpic.com/ciaran/images/SYDNEY-HARBOUR-BRIDGE-RGB.jpg',500,335,'Sydney Harbour Bridge.','http://www3.clikpic.com/ciaran/images/SYDNEY-HARBOUR-BRIDGE-RGB_thumb.jpg',130, 87,0, 0,'Sydney Harbour Bridge with the Opera House in the background.','','Ciaran Conneely','','','');
photos[32] = new photo(735179,'55172','','gallery','http://www3.clikpic.com/ciaran/images/CIRCULAR-QUAY-RGB.jpg',500,337,'Sydney Harbour','http://www3.clikpic.com/ciaran/images/CIRCULAR-QUAY-RGB_thumb.jpg',130, 88,0, 0,'One of the many water features dotted around the tourist and recreation areas of Sydney Harbour.','',' Ciaran Conneely','','','');
photos[33] = new photo(735195,'55172','','gallery','http://www3.clikpic.com/ciaran/images/WALL-RGB.jpg',500,418,'Mexican Wall','http://www3.clikpic.com/ciaran/images/WALL-RGB_thumb.jpg',130, 109,0, 0,'I found this wall in Puerto Penasco, Mexico. It\'s not a mural, honest.','','Ciaran Conneely','','','');
photos[34] = new photo(735278,'55172','','gallery','http://www3.clikpic.com/ciaran/images/FAMILY-OUTING-RGB.jpg',500,398,'Family Outing.','http://www3.clikpic.com/ciaran/images/FAMILY-OUTING-RGB_thumb.jpg',130, 103,0, 0,'A fairly usual family outing, Bali.','','Ciaran Conneely','','','');
photos[35] = new photo(735382,'55172','','gallery','http://www3.clikpic.com/ciaran/images/SNORING-RGB.jpg',500,385,'Great Snoring.','http://www3.clikpic.com/ciaran/images/SNORING-RGB_thumb.jpg',130, 100,0, 0,'Signpost to Great Snoring, Norfolk, England.','','Ciaran Conneely','','','');
photos[36] = new photo(736501,'55172','','gallery','http://www3.clikpic.com/ciaran/images/FRANGIPANI-RGB.jpg',500,392,'Frangipani','http://www3.clikpic.com/ciaran/images/FRANGIPANI-RGB_thumb.jpg',130, 102,0, 0,'Frangipani growing at a Temple in Bangkok, Thailand.','','Ciaran Conneely','','','');
photos[37] = new photo(737647,'55172','','gallery','http://www3.clikpic.com/ciaran/images/CHANGE-RGB.jpg',500,379,'Change','http://www3.clikpic.com/ciaran/images/CHANGE-RGB_thumb.jpg',130, 99,0, 0,'This is how your change is returned in a small local restaurant in Old Goa, India. The sweet herbs are to freshen the breath.','','Ciaran Conneely','','','');
photos[38] = new photo(971845,'55172','','gallery','http://www3.clikpic.com/ciaran/images/Meat-Market-rgb.jpg',500,356,'Meat Market','http://www3.clikpic.com/ciaran/images/Meat-Market-rgb_thumb.jpg',130, 93,0, 0,'Meat Market, Crawford Market, Bombay.','','Ciaran Conneely','','','');
photos[39] = new photo(971865,'55172','','gallery','http://www3.clikpic.com/ciaran/images/SYDNEY-BRIDGE-RGB.jpg',495,340,'S. H. B.','http://www3.clikpic.com/ciaran/images/SYDNEY-BRIDGE-RGB_thumb.jpg',130, 89,0, 0,'View of Sydney Harbour Bridge from the Opera House.','','Ciaran conneely','','','');
photos[40] = new photo(992458,'55172','','gallery','http://www3.clikpic.com/ciaran/images/EYE-RGB.jpg',497,334,'The London Eye.','http://www3.clikpic.com/ciaran/images/EYE-RGB_thumb.jpg',130, 87,0, 0,'A view from the London Eye, with the Houses of Parliament, Big Ben and the river Thames.','','Ciaran Conneely','','','');
photos[41] = new photo(1756406,'55172','','gallery','http://www3.clikpic.com/ciaran/images/Badlands-1.jpg',600,405,'Badlands,','http://www3.clikpic.com/ciaran/images/Badlands-1_thumb.jpg',130, 88,0, 0,'The Badlands, South Dakota.','','Ciaran Conneely','','','');
photos[42] = new photo(1756417,'55172','','gallery','http://www3.clikpic.com/ciaran/images/Casteneda-Land.jpg',600,453,'Castaneda Land','http://www3.clikpic.com/ciaran/images/Casteneda-Land_thumb.jpg',130, 98,0, 0,'This is how I imagine Carlos Castaneda would view the Badlands','','Ciaran Conneely','','','');
photos[43] = new photo(1756480,'55172','','gallery','http://www3.clikpic.com/ciaran/images/Prarie-Silo.jpg',600,399,'Prairie Silo','http://www3.clikpic.com/ciaran/images/Prarie-Silo_thumb.jpg',130, 86,0, 0,'I was fascinated by this rusty old silo in the prairie.','','Ciaran Conneely','','','');
photos[44] = new photo(1756497,'55172','','gallery','http://www3.clikpic.com/ciaran/images/Home-of-Wall-Drug.jpg',500,700,'Home of Wall Drug.','http://www3.clikpic.com/ciaran/images/Home-of-Wall-Drug_thumb.jpg',130, 182,0, 0,'Wall Drug, the store that ate a town...or kept it alive. The picture has been worked on a little.','','Ciaran Conneely','','','');
photos[45] = new photo(1756514,'55172','','gallery','http://www3.clikpic.com/ciaran/images/Dairy-Queen.jpg',600,405,'Dairy Queen.','http://www3.clikpic.com/ciaran/images/Dairy-Queen_thumb.jpg',130, 88,0, 0,'Sturgis, the Black Hills of South Dakota','','Ciaran Conneely','','','');
photos[46] = new photo(1756525,'55172','','gallery','http://www3.clikpic.com/ciaran/images/Muddy-Creek.jpg',590,445,'Gas Station.','http://www3.clikpic.com/ciaran/images/Muddy-Creek_thumb.jpg',130, 98,0, 0,'Muddy Creek gas station on a very hot day.','','Ciaran Conneely','','','');
photos[47] = new photo(1756528,'55172','','gallery','http://www3.clikpic.com/ciaran/images/Cimmeron-Mall.jpg',600,453,'Cimarron Mall and Church.','http://www3.clikpic.com/ciaran/images/Cimmeron-Mall_thumb.jpg',130, 98,0, 0,'A rainy morning at the Cimarron Mall.','','Ciaran Conneely.','','','');
photos[48] = new photo(1756534,'55172','','gallery','http://www3.clikpic.com/ciaran/images/Mount-Rushmore.jpg',600,441,'Fireworks.','http://www3.clikpic.com/ciaran/images/Mount-Rushmore_thumb.jpg',130, 96,0, 0,'4th of July fireworks at Mount Rushmore.','','Ciaran Conneely.','','','');
photos[49] = new photo(1760280,'55172','','gallery','http://www3.clikpic.com/ciaran/images/Beware-Rattlesnakes.jpg',600,405,'Don\'t say you weren\'t warned.','http://www3.clikpic.com/ciaran/images/Beware-Rattlesnakes_thumb.jpg',130, 88,0, 0,'This is why folks wear cowboy boots in these parts.','','Ciaran Conneely','','','');
photos[50] = new photo(1760296,'55172','','gallery','http://www3.clikpic.com/ciaran/images/Casino.jpg',600,453,'Casino.','http://www3.clikpic.com/ciaran/images/Casino_thumb.jpg',130, 98,0, 0,'Not exactly Las Vegas.','','Ciaran Conneely','','','');
photos[51] = new photo(719255,'55317','','gallery','http://www3.clikpic.com/ciaran/images/Bali-Wedding.jpg',500,374,'Balinese Wedding','http://www3.clikpic.com/ciaran/images/Bali-Wedding_thumb.jpg',130, 97,0, 0,'We were lucky enough to be invited to a traditional Wedding in Bali.','','Ciaran Conneely','','','');
photos[52] = new photo(721763,'55317','','gallery','http://www3.clikpic.com/ciaran/images/WED-1-RGB.jpg',302,450,'The Bride prepares.','http://www3.clikpic.com/ciaran/images/WED-1-RGB_thumb.jpg',130, 194,0, 0,'The Bride prepares for the wedding.','','Ciaran Conneely','','','');
photos[53] = new photo(721772,'55317','','gallery','http://www3.clikpic.com/ciaran/images/WED-2-RGB.jpg',302,450,'The Bride arrives','http://www3.clikpic.com/ciaran/images/WED-2-RGB_thumb.jpg',130, 194,0, 1,'The Bride arrives','','Ciaran Conneely','','','');
photos[54] = new photo(721778,'55317','','gallery','http://www3.clikpic.com/ciaran/images/WED-3-RGB.jpg',500,335,'The Ceremony','http://www3.clikpic.com/ciaran/images/WED-3-RGB_thumb.jpg',130, 87,0, 0,'The Ceremony','','Ciaran Conneely','','','');
photos[55] = new photo(721786,'55317','','gallery','http://www3.clikpic.com/ciaran/images/WED-4-RGB.jpg',500,337,'Celebration','http://www3.clikpic.com/ciaran/images/WED-4-RGB_thumb.jpg',130, 88,0, 0,'Celebration','','Ciaran Conneely','','','');
photos[56] = new photo(721824,'55317','','gallery','http://www3.clikpic.com/ciaran/images/WED-5-RGB.jpg',500,442,'The Guests tuck in.','http://www3.clikpic.com/ciaran/images/WED-5-RGB_thumb.jpg',130, 115,0, 0,'','','Ciaran Conneely','','','');
photos[57] = new photo(721841,'55317','','gallery','http://www3.clikpic.com/ciaran/images/WED-6-RGB.jpg',500,335,'Dancing','http://www3.clikpic.com/ciaran/images/WED-6-RGB_thumb.jpg',130, 87,0, 0,'The Party goes with swing.','','Ciaran Conneely','','','');
photos[58] = new photo(721869,'55317','','gallery','http://www3.clikpic.com/ciaran/images/WED-7-RGB.jpg',500,335,'Bridesmaid','http://www3.clikpic.com/ciaran/images/WED-7-RGB_thumb.jpg',130, 87,0, 0,'','','Ciaran Conneely','','','');
photos[59] = new photo(723467,'55317','','gallery','http://www3.clikpic.com/ciaran/images/WED-8-RGB.jpg',478,450,'A helping hand','http://www3.clikpic.com/ciaran/images/WED-8-RGB_thumb.jpg',130, 122,0, 0,'It\'s hard work getting ready for a Wedding','','Ciaran Conneely','','','');
photos[60] = new photo(723503,'55317','','gallery','http://www3.clikpic.com/ciaran/images/WED-9-RGB.jpg',500,390,'Last minute notes','http://www3.clikpic.com/ciaran/images/WED-9-RGB_thumb.jpg',130, 101,0, 0,'The Best Man makes some last minute notes.','','Ciaran Conneely','','','');
photos[61] = new photo(723542,'55317','','gallery','http://www3.clikpic.com/ciaran/images/L1.jpg',500,390,'Laughter.','http://www3.clikpic.com/ciaran/images/L1_thumb.jpg',130, 101,0, 0,'The Bride and Groom lose their composure during the formal portrait shoot.','','Ciaran Conneely','','','');
photos[62] = new photo(723552,'55317','','gallery','http://www3.clikpic.com/ciaran/images/KINNITTY-1-RGB.jpg',500,351,'Kinnitty','http://www3.clikpic.com/ciaran/images/KINNITTY-1-RGB_thumb.jpg',130, 91,0, 0,'The Groomsmen arrive at Kinnitty Castle','','Ciaran Conneely','','','');
photos[63] = new photo(723610,'55317','','gallery','http://www3.clikpic.com/ciaran/images/Kinnitty-2.jpg',500,352,'Moonrise over Kinnitty Castle','http://www3.clikpic.com/ciaran/images/Kinnitty-2_thumb.jpg',130, 92,0, 0,'Wedding guests enjoy fresh air and a moonrise at Kinnitty Castle, Co. Offally.','','Ciaran Conneely','','','');
photos[64] = new photo(723617,'55317','','gallery','http://www3.clikpic.com/ciaran/images/WED-10.jpg',317,450,'GauganBarra, West Cork.','http://www3.clikpic.com/ciaran/images/WED-10_thumb.jpg',130, 185,0, 0,'A white wedding in the snow at St. Finbar\'s Church, GauganBarra, West Cork.','','Ciaran Conneely','','','');
photos[65] = new photo(723625,'55317','','gallery','http://www3.clikpic.com/ciaran/images/WED-11-RGB.jpg',500,340,'Co. Kerry','http://www3.clikpic.com/ciaran/images/WED-11-RGB_thumb.jpg',130, 88,0, 0,'','','Ciaran Conneely','','','');
photos[66] = new photo(723640,'55317','','gallery','http://www3.clikpic.com/ciaran/images/WED-12-RGB.jpg',500,355,'Hands.','http://www3.clikpic.com/ciaran/images/WED-12-RGB_thumb.jpg',130, 92,0, 0,'','','Ciaran Conneely','','','');
photos[67] = new photo(723710,'55317','','gallery','http://www3.clikpic.com/ciaran/images/WED-13-RGB.jpg',500,345,'Greeting the guests','http://www3.clikpic.com/ciaran/images/WED-13-RGB_thumb.jpg',130, 90,0, 0,'','','Ciaran Conneely','','','');
photos[68] = new photo(736710,'55317','','gallery','http://www3.clikpic.com/ciaran/images/cANDLE-RGB.jpg',500,448,'Candles','http://www3.clikpic.com/ciaran/images/cANDLE-RGB_thumb.jpg',130, 116,0, 0,'The lighting of the candles','','Ciaran Conneely','','','');
photos[69] = new photo(736721,'55317','','gallery','http://www3.clikpic.com/ciaran/images/MIRROR-RGB.jpg',500,420,'Mirror','http://www3.clikpic.com/ciaran/images/MIRROR-RGB_thumb.jpg',130, 109,0, 0,'Refreshments during the preparations.','','Ciaran Conneely','','','');
photos[70] = new photo(736750,'55317','','gallery','http://www3.clikpic.com/ciaran/images/FATHER-RGB.jpg',500,455,'Proud Father','http://www3.clikpic.com/ciaran/images/FATHER-RGB_thumb.jpg',130, 118,0, 0,'The Father solemnly leads the Bride up the aisle.','','Ciaran Conneely','','','');
photos[71] = new photo(3495368,'55317','','gallery','http://www3.clikpic.com/ciaran/images/_DSC0743.jpg',500,367,'\'Bye','http://www3.clikpic.com/ciaran/images/_DSC0743_thumb.jpg',130, 95,0, 0,'','','Ciaran Conneely','','','');
photos[72] = new photo(3495370,'55317','','gallery','http://www3.clikpic.com/ciaran/images/_DSC2854 bw.jpg',500,377,'In the garden','http://www3.clikpic.com/ciaran/images/_DSC2854 bw_thumb.jpg',130, 98,0, 0,'','','Ciaran Conneely','','','');
photos[73] = new photo(3495371,'55317','','gallery','http://www3.clikpic.com/ciaran/images/_DSC2942.jpg',500,353,'Hands','http://www3.clikpic.com/ciaran/images/_DSC2942_thumb.jpg',130, 92,0, 0,'','','Ciaran Conneely','','','');
photos[74] = new photo(3497054,'55317','','gallery','http://www3.clikpic.com/ciaran/images/_DSC3045.jpg',500,355,'Castle Durrow, Co. Laois','http://www3.clikpic.com/ciaran/images/_DSC3045_thumb.jpg',130, 92,0, 0,'','','Ciaran Conneely','','','');
photos[75] = new photo(3497061,'55317','','gallery','http://www3.clikpic.com/ciaran/images/_DSC0898.jpg',433,500,'Bride and groom','http://www3.clikpic.com/ciaran/images/_DSC0898_thumb.jpg',130, 150,0, 0,'','','','','','');
photos[76] = new photo(3497101,'55317','','gallery','http://www3.clikpic.com/ciaran/images/_DSC2882bw.jpg',500,351,'Arch','http://www3.clikpic.com/ciaran/images/_DSC2882bw_thumb.jpg',130, 91,0, 0,'','','Ciaran Conneely','','','');
photos[77] = new photo(720658,'55432','','gallery','http://www3.clikpic.com/ciaran/images/KATIE.jpg',339,450,'Katie','http://www3.clikpic.com/ciaran/images/KATIE_thumb.jpg',130, 173,0, 1,'Katie','','Ciaran Conneely','','','');
photos[78] = new photo(720662,'55432','','gallery','http://www3.clikpic.com/ciaran/images/Morgan.jpg',500,407,'Morgan','http://www3.clikpic.com/ciaran/images/Morgan_thumb.jpg',130, 106,0, 0,'Morgan sheds a salty tear','','Ciaran Conneely','','','');
photos[79] = new photo(720736,'55432','','gallery','http://www3.clikpic.com/ciaran/images/MASK.jpg',372,450,'Mask','http://www3.clikpic.com/ciaran/images/MASK_thumb.jpg',130, 157,0, 0,'','','Ciaran Conneely','','','');
photos[80] = new photo(724167,'55432','','gallery','http://www3.clikpic.com/ciaran/images/TONY-RGB-2.jpg',500,335,'Tony.','http://www3.clikpic.com/ciaran/images/TONY-RGB-2_thumb.jpg',130, 87,0, 0,'Album art for Tony McLoughlin\'s latest CD, recorded in Nashville.','','Ciaran Conneely','','','');
photos[81] = new photo(733082,'55432','','gallery','http://www3.clikpic.com/ciaran/images/SAGErgb.jpg',500,520,'Curls.','http://www3.clikpic.com/ciaran/images/SAGErgb_thumb.jpg',130, 135,0, 0,'','','Ciaran Conneely','','','');
photos[82] = new photo(733163,'55432','','gallery','http://www3.clikpic.com/ciaran/images/RAYMOND-RGB-2.jpg',363,450,'Raymond Keane','http://www3.clikpic.com/ciaran/images/RAYMOND-RGB-2_thumb.jpg',130, 161,0, 0,'','','Ciaran Conneely','','','');
photos[83] = new photo(735093,'55432','','gallery','http://www3.clikpic.com/ciaran/images/LU+TOMMY-RGB.jpg',350,450,'Deb\'s Ball.','http://www3.clikpic.com/ciaran/images/LU+TOMMY-RGB_thumb.jpg',130, 167,0, 0,'All set to attend the Deb\'s Ball.','','Ciaran Conneely','','','');
photos[84] = new photo(735323,'55432','','gallery','http://www3.clikpic.com/ciaran/images/MOOK-rgb.jpg',321,450,'Mook.','http://www3.clikpic.com/ciaran/images/MOOK-rgb_thumb.jpg',130, 182,0, 0,'DJ Mook does his stuff.','','Ciaran Conneely','','','');
photos[85] = new photo(736457,'55432','','gallery','http://www3.clikpic.com/ciaran/images/RESTING-RGB.jpg',500,375,'Resting','http://www3.clikpic.com/ciaran/images/RESTING-RGB_thumb.jpg',130, 98,0, 0,'Farmers take a break at the Iverk Show, Piltown, Co. Kilkenny. It\'s Ireland\'s oldest agricultural show, begun in 1826.','','Ciaran Conneely','','','');
photos[86] = new photo(736478,'55432','','gallery','http://www3.clikpic.com/ciaran/images/TUG-2-RGB.jpg',500,367,'Tug-of-War','http://www3.clikpic.com/ciaran/images/TUG-2-RGB_thumb.jpg',130, 95,0, 0,'Tug-of-war competition at the Iverk Show, Co. Kilkenny.','','','','','');
photos[87] = new photo(739185,'55432','','gallery','http://www3.clikpic.com/ciaran/images/HANDS-RGB.jpg',500,345,'Hands','http://www3.clikpic.com/ciaran/images/HANDS-RGB_thumb.jpg',130, 90,0, 0,'The thatcher\'s hands.','','Ciaran Conneely','','','');
photos[88] = new photo(739201,'55432','','gallery','http://www3.clikpic.com/ciaran/images/ROOF-RGB.jpg',500,373,'A new thatch Roof','http://www3.clikpic.com/ciaran/images/ROOF-RGB_thumb.jpg',130, 97,0, 0,'','','Ciaran Conneely','','','');
photos[89] = new photo(739239,'55432','','gallery','http://www3.clikpic.com/ciaran/images/FISHFACE-RGB.jpg',385,500,'On the beach, Kerala','http://www3.clikpic.com/ciaran/images/FISHFACE-RGB_thumb.jpg',130, 169,0, 0,'This hardworking man in Kerala, India, was happy to have his picture taken.','','Ciaran Conneely','','','');
photos[90] = new photo(971745,'55432','','gallery','http://www3.clikpic.com/ciaran/images/EYES-RGB.jpg',500,342,'Eyes','http://www3.clikpic.com/ciaran/images/EYES-RGB_thumb.jpg',130, 89,0, 0,'Mysterious Eyes','','Ciaran Conneely','','','');
photos[91] = new photo(992450,'55432','','gallery','http://www3.clikpic.com/ciaran/images/BLUEBELL-RGB.jpg',502,390,'Bluebell Wood','http://www3.clikpic.com/ciaran/images/BLUEBELL-RGB_thumb.jpg',130, 101,0, 0,'At the style down in the Bluebell Wood.','','Ciaran Conneely','','','');
photos[92] = new photo(1760372,'55432','','gallery','http://www3.clikpic.com/ciaran/images/Lynton-Kwesi-Johnson.jpg',600,473,'','http://www3.clikpic.com/ciaran/images/Lynton-Kwesi-Johnson_thumb.jpg',130, 102,0, 0,'Lynton Kwesi Johnson reads his poetry during the Waterford Imagine arts festival.','','Ciaran Conneely','','','');
photos[93] = new photo(1760377,'55432','','gallery','http://www3.clikpic.com/ciaran/images/Jeff-Martin.jpg',600,422,'','http://www3.clikpic.com/ciaran/images/Jeff-Martin_thumb.jpg',130, 91,0, 0,'Jeff Martin playing at the Imagine Arts Festival','','Ciaran Conneely','','','');
photos[94] = new photo(724230,'55433','','gallery','http://www3.clikpic.com/ciaran/images/METAL-MAN-RGB-2.jpg',500,335,'Metal Man.','http://www3.clikpic.com/ciaran/images/METAL-MAN-RGB-2_thumb.jpg',130, 87,0, 0,'The Metal Man, one of the primary landmarks of Tramore, erected 1823 to warn sailing ships away from Tramore bay. \"Hop 3 times around the statue, and marry within the year\".','','Ciaran Conneely','','','');
photos[95] = new photo(724247,'55433','','gallery','http://www3.clikpic.com/ciaran/images/FISHING-RGB.jpg',500,335,'Fishing.','http://www3.clikpic.com/ciaran/images/FISHING-RGB_thumb.jpg',130, 87,0, 0,'Munster finals fishing competition on a foggy day in Tramore bay,','','Ciaran Conneely','','','');
photos[96] = new photo(724249,'55433','','gallery','http://www3.clikpic.com/ciaran/images/TRAMORE-LONG-VIEW-RGB.jpg',500,354,'Tramore from Saleens.','http://www3.clikpic.com/ciaran/images/TRAMORE-LONG-VIEW-RGB_thumb.jpg',130, 92,0, 0,'A view of Tramore taken from across the bay at Saleens, with the Comeragh Mountains in the background.','',', Ciaran Conneely.','','','');
photos[97] = new photo(733066,'55433','','gallery','http://www3.clikpic.com/ciaran/images/PIGGY-ONErgb.jpg',500,360,'Hello, friend.','http://www3.clikpic.com/ciaran/images/PIGGY-ONErgb_thumb.jpg',130, 94,0, 0,'Piggy and girl make friends.','','Ciaran Conneely','','','');
photos[98] = new photo(733078,'55433','','gallery','http://www3.clikpic.com/ciaran/images/ALI-1-rgb.jpg',500,620,'Happy Birthday.','http://www3.clikpic.com/ciaran/images/ALI-1-rgb_thumb.jpg',130, 161,0, 1,'','','Ciaran Conneely','','','');
photos[99] = new photo(735082,'55433','','gallery','http://www3.clikpic.com/ciaran/images/SHANNON-RGB.jpg',500,334,'On the Shannon','http://www3.clikpic.com/ciaran/images/SHANNON-RGB_thumb.jpg',130, 87,0, 0,'Enjoying the river Shannon, Co. Roscommon.','','Ciaran Conneely','','','');
photos[100] = new photo(735102,'55433','','gallery','http://www3.clikpic.com/ciaran/images/SAL+JOSH-RGB.jpg',388,450,'Sports Day','http://www3.clikpic.com/ciaran/images/SAL+JOSH-RGB_thumb.jpg',130, 151,0, 0,'This photo has been adjusted in Photoshop, giving it an \"illustration\" look.','','Ciaran Conneely','','','');
photos[101] = new photo(735235,'55433','','gallery','http://www3.clikpic.com/ciaran/images/MERC-rgb.jpg',500,371,'Thoroughbred','http://www3.clikpic.com/ciaran/images/MERC-rgb_thumb.jpg',130, 96,0, 0,'A stable for a Thoroughbred.','','Ciaran Conneely','','','');
photos[102] = new photo(736514,'55433','','gallery','http://www3.clikpic.com/ciaran/images/CAULI-2-RGB.jpg',502,373,'Cauliflower \"Romanesco\"','http://www3.clikpic.com/ciaran/images/CAULI-2-RGB_thumb.jpg',130, 97,0, 0,'Don\'t know what to say about this strange plant, there has been no photo manipulation involved.','','','','','');
photos[103] = new photo(766876,'55433','','gallery','http://www3.clikpic.com/ciaran/images/CLAI-12.jpg',499,380,'Precision','http://www3.clikpic.com/ciaran/images/CLAI-12_thumb.jpg',130, 99,0, 0,'Geoffrey Healy (Ireland) at the Feile Clai international ceramics workshop at Grennan Mill in Thomastown, Co. Kilkenny.','','Ciaran Conneely','','','');
photos[104] = new photo(766927,'55433','','gallery','http://www3.clikpic.com/ciaran/images/CLAI-22.jpg',510,412,'Intense','http://www3.clikpic.com/ciaran/images/CLAI-22_thumb.jpg',130, 105,0, 0,'Greg Crowe (Australia) deep in concentration at the Feile Clai workshop.','','Ciaran Conneely','','','');
photos[105] = new photo(766930,'55433','','gallery','http://www3.clikpic.com/ciaran/images/CLAI-3-2.jpg',500,348,'Mask','http://www3.clikpic.com/ciaran/images/CLAI-3-2_thumb.jpg',130, 90,0, 0,'A slightly spooky image taken during a slide show by Daphnie Corrigan (France) on African creamics at the Feile Clai workshop.','','Ciaran Conneely','','','');
photos[106] = new photo(766942,'55433','','gallery','http://www3.clikpic.com/ciaran/images/CLAI-42.jpg',500,391,'Millpond','http://www3.clikpic.com/ciaran/images/CLAI-42_thumb.jpg',130, 102,0, 0,'Looking over the millpond at Grennan Mill during the Feile Clai workshop.','','Ciaran Conneely','','','');
photos[107] = new photo(767051,'55433','','gallery','http://www3.clikpic.com/ciaran/images/NETTLES-RGB.jpg',510,411,'Life goes on','http://www3.clikpic.com/ciaran/images/NETTLES-RGB_thumb.jpg',130, 105,0, 0,'Nettles growing down at the scrapyard.','','Ciaran Conneely','','','');
photos[108] = new photo(769224,'55433','','gallery','http://www3.clikpic.com/ciaran/images/_DSC3611.jpg',500,393,'Glasscutter','http://www3.clikpic.com/ciaran/images/_DSC3611_thumb.jpg',130, 102,0, 0,'A Master Craftsman cutting glass at the world famous Waterford Crystal factory.','','Ciaran Conneely','','','');
photos[109] = new photo(770534,'55433','','gallery','http://www3.clikpic.com/ciaran/images/SMOKE-RGB.jpg',363,448,'Abstract','http://www3.clikpic.com/ciaran/images/SMOKE-RGB_thumb.jpg',130, 160,0, 0,'Can you guess?','','Ciaran Conneely','','','');
photos[110] = new photo(779784,'55433','','gallery','http://www3.clikpic.com/ciaran/images/TALL-RGB.jpg',500,369,'Tall Ships','http://www3.clikpic.com/ciaran/images/TALL-RGB_thumb.jpg',130, 96,0, 0,'The International Annual Tall Ships\' Race visited Waterford in July 2005, bringing 100 ships from 21 countries. Here two are seen sailing out past Dunmore East on a misty morning, on the first leg of the race to Cherbourg, France.','','Ciaran Conneely','','','');
photos[111] = new photo(1760357,'55433','','gallery','http://www3.clikpic.com/ciaran/images/Riddley-Walker.jpg',600,408,'Riddley Walker','http://www3.clikpic.com/ciaran/images/Riddley-Walker_thumb.jpg',130, 88,0, 0,'From the \"Riddley Walker\" show by the Red Kettle theatre co. in Waterford.','','Ciaran Conneely','','','');
photos[112] = new photo(3362434,'55433','','gallery','http://www3.clikpic.com/ciaran/images/FRAMED2.jpg',322,450,'Framed','http://www3.clikpic.com/ciaran/images/FRAMED2_thumb.jpg',130, 182,0, 0,'Nick performing in \"Rag and Bone Shop of the Heart\" by Animated State Dance Co. during the Imagine festival.','','Ciaran Conneely','','','');
photos[113] = new photo(3362992,'205323','','gallery','http://www3.clikpic.com/ciaran/images/BACK.jpg',550,399,'Here I Stand','http://www3.clikpic.com/ciaran/images/BACK_thumb.jpg',130, 94,0, 0,'','','Ciaran Conneely','','','');
photos[114] = new photo(3364088,'205323','','gallery','http://www3.clikpic.com/ciaran/images/PEEK.jpg',550,377,'Psalm 1','http://www3.clikpic.com/ciaran/images/PEEK_thumb.jpg',130, 89,0, 0,'','','Ciaran Conneely','','','');
photos[115] = new photo(3390744,'205323','','gallery','http://www3.clikpic.com/ciaran/images/_DSC6978A3+B.jpg',550,426,'Psalm 2','http://www3.clikpic.com/ciaran/images/_DSC6978A3+B_thumb.jpg',130, 101,0, 1,'','','Ciaran Conneely','','','');
photos[116] = new photo(3390837,'205323','','gallery','http://www3.clikpic.com/ciaran/images/HERE I STAND+.jpg',336,450,'Another Kind Of Love','http://www3.clikpic.com/ciaran/images/HERE I STAND+_thumb.jpg',130, 174,0, 1,'','','Ciara Conneely','','','');
photos[117] = new photo(3390874,'205323','','gallery','http://www3.clikpic.com/ciaran/images/BE NOT AFRAID2.jpg',316,450,'Be Not Afraid','http://www3.clikpic.com/ciaran/images/BE NOT AFRAID2_thumb.jpg',130, 185,0, 0,'','','Ciaran Conneely','','','');
photos[118] = new photo(3391125,'205323','','gallery','http://www3.clikpic.com/ciaran/images/WINDS OF CHANGE1.jpg',550,396,'Winds Of Change','http://www3.clikpic.com/ciaran/images/WINDS OF CHANGE1_thumb.jpg',130, 94,0, 0,'','','Ciaran Conneely','','','');
photos[119] = new photo(3391320,'205323','','gallery','http://www3.clikpic.com/ciaran/images/WATERFALLS.jpg',326,450,'Waterfalls','http://www3.clikpic.com/ciaran/images/WATERFALLS_thumb.jpg',130, 179,0, 0,'','','Ciaran Conneely','','','');
photos[120] = new photo(3391324,'205323','','gallery','http://www3.clikpic.com/ciaran/images/my secret life.jpg',324,450,'My Secret Life','http://www3.clikpic.com/ciaran/images/my secret life_thumb.jpg',130, 181,0, 0,'','','Ciaran Conneely','','','');
photos[121] = new photo(3391360,'205323','','gallery','http://www3.clikpic.com/ciaran/images/I Heard Angels.jpg',550,393,'I Heard Angels','http://www3.clikpic.com/ciaran/images/I Heard Angels_thumb.jpg',130, 93,0, 0,'','','Ciaran Conneely','','','');
photos[122] = new photo(3391624,'205323','','gallery','http://www3.clikpic.com/ciaran/images/HOLD ON.jpg',550,395,'Hold On','http://www3.clikpic.com/ciaran/images/HOLD ON_thumb.jpg',130, 93,0, 0,'','','Ciaran Conneely','','','');
photos[123] = new photo(3391628,'205323','','gallery','http://www3.clikpic.com/ciaran/images/CAN\'T PRETEND.jpg',550,396,'Can\'t Pretend','http://www3.clikpic.com/ciaran/images/CAN\'T PRETEND_thumb.jpg',130, 94,0, 0,'','','Ciaran Conneely','','','');
photos[124] = new photo(3391767,'205323','','gallery','http://www3.clikpic.com/ciaran/images/CAN\'T PRETEND2.jpg',550,399,'There\'s a Blaze of Light','http://www3.clikpic.com/ciaran/images/CAN\'T PRETEND2_thumb.jpg',130, 94,0, 0,'','','Ciaran Conneely','','','');
photos[125] = new photo(3391935,'205323','','gallery','http://www3.clikpic.com/ciaran/images/THE MOON\'S TOO BRIGHT.jpg',550,394,'The Moon\'s Too Bright','http://www3.clikpic.com/ciaran/images/THE MOON\'S TOO BRIGHT_thumb.jpg',130, 93,0, 0,'','','Ciaran Conneely','','','');
photos[126] = new photo(3391942,'205323','','gallery','http://www3.clikpic.com/ciaran/images/REALLY YOU.jpg',550,394,'Really You','http://www3.clikpic.com/ciaran/images/REALLY YOU_thumb.jpg',130, 93,0, 0,'','','Ciaran Conneely','','','');
photos[127] = new photo(3391947,'205323','','gallery','http://www3.clikpic.com/ciaran/images/SWEETEST VOICE.jpg',550,398,'Sweetest Voice','http://www3.clikpic.com/ciaran/images/SWEETEST VOICE_thumb.jpg',130, 94,0, 0,'','','Ciaran Conneely','','','');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
galleries = new Array();
galleries[0] = new gallery(55105,'723520','Landscapes','gallery');
galleries[1] = new gallery(55172,'718871','Travel','gallery');
galleries[2] = new gallery(55317,'721772','Weddings','gallery');
galleries[3] = new gallery(55432,'720658','Portraits','gallery');
galleries[4] = new gallery(55433,'733078','Miscellaneous ','gallery');
galleries[5] = new gallery(205323,'3390837,3390744','Exhibition','gallery');

