/***************************************************************************
* 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('1399108,1399091,1399079,1371961,1371955,1356365,1329315,1329311,1329308,1329304,1329301,1329291,1329284,1329246,1329242,1329224,1329210,1329195,1329183,1329178,1329175,1329166');
	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('1399108,1399091,1399079,1371961,1371955,1356365,1329315,1329311,1329308,1329304,1329301,1329291,1329284,1329246,1329242,1329224,1329210,1329195,1329183,1329178,1329175,1329166');
	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)) {
		debug('In updateImage');
		debug('setting  img src = ' + photos[nextImg].src);
		
					
			document.getElementById('imagePhoto').innerHTML = '<img class="mainphoto" src="' + photos[nextImg].src + ' " id="mainPic" name="mainPic" width="' + photos[nextImg].width + '" height="' + photos[nextImg].height + '" alt="' + photos[nextImg].caption + '" border="0">';
						field.value = photos[nextImg].id;
			document.getElementById('imageTitle').innerHTML = photos[nextImg].caption;
			/* 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(1329166,'93551','','gallery','http://www1.clikpic.com/tashiyamirando/images/IMG_0186_ED2b.jpg',500,333,'A MORNING\'S WORK','http://www1.clikpic.com/tashiyamirando/images/IMG_0186_ED2b_thumb.jpg',130, 87,1, 0,'A worker bee does his thing early one morning','12/09/06','© Tashiya Mirando Photography','Edinburgh, Scotland','','');
photos[1] = new photo(1329175,'93551','','gallery','http://www1.clikpic.com/tashiyamirando/images/Autumn.jpg',500,350,'AUTUMN','http://www1.clikpic.com/tashiyamirando/images/Autumn_thumb.jpg',130, 91,1, 0,'As autumn approaches in London, everything begins to change','05/09/06','© Tashiya Mirando Photography','London','','');
photos[2] = new photo(1329178,'93551','','gallery','http://www1.clikpic.com/tashiyamirando/images/1st Feb 05 051.jpg',500,333,'BEIRA LAKE','http://www1.clikpic.com/tashiyamirando/images/1st Feb 05 051_thumb.jpg',130, 87,1, 0,'','20/01/05','© Tashiya Mirando Photography','Colombo, Sri Lanka','','');
photos[3] = new photo(1329183,'93551','','gallery','http://www1.clikpic.com/tashiyamirando/images/IMG_0290_ED1.jpg',500,333,'EVENING FIRE','http://www1.clikpic.com/tashiyamirando/images/IMG_0290_ED1_thumb.jpg',130, 87,1, 0,'As the sun sets in Edinburgh, the sight is beautiful off Carlton Hill','07/09/06','© Tashiya Mirando Photography','Edinburgh, Scotland','','');
photos[4] = new photo(1399079,'93551','','gallery','http://www1.clikpic.com/tashiyamirando/images/IMG_0061 for TMP.jpg',500,333,'WATCH THAT SUN... SET!','http://www1.clikpic.com/tashiyamirando/images/IMG_0061 for TMP_thumb.jpg',130, 87,1, 1,'As the sun sets on the West Coast of Sri Lanka, us local folk gather at the beach after a hard days work, to have a drink and relax with friends.','15/01/05','Tashiya Mirando Photography','Colombo, Sri Lanka','','');
photos[5] = new photo(1329246,'93580','','gallery','http://www1.clikpic.com/tashiyamirando/images/Mum & Daughter.jpg',500,350,'LIKE MOTHER LIKE DAUGHTER','http://www1.clikpic.com/tashiyamirando/images/Mum & Daughter_thumb.jpg',130, 91,1, 0,'A mother elephant protects her baby as she has her breakfast','07/08/07','© Tashiya Mirando Photography','Udawalawe, Sri Lanka','','');
photos[6] = new photo(1329261,'93580','','gallery','http://www1.clikpic.com/tashiyamirando/images/Sloth Bear.jpg',500,350,'BEAR WITH ME','http://www1.clikpic.com/tashiyamirando/images/Sloth Bear_thumb.jpg',130, 91,0, 0,'A very rare sight indeed.  There are only 20 Sloth Bears remaining in an area of 37,000 acres in Yala National Park, Sri Lanka','08/08/07','© Tashiya Mirando Photography','Yala National Park, Sri Lanka','','');
photos[7] = new photo(1329279,'93580','','gallery','http://www1.clikpic.com/tashiyamirando/images/Cooldown for Clikpic.jpg',500,353,'COOL DOWN','http://www1.clikpic.com/tashiyamirando/images/Cooldown for Clikpic_thumb.jpg',130, 92,0, 0,'A rather large crocodile cools down on the bank of a water pool one hot, sunny afternoon','08/08/07','© Tashiya Mirando Photography','Yala National Park, Sri Lanka','','');
photos[8] = new photo(1329284,'93580','','gallery','http://www1.clikpic.com/tashiyamirando/images/Charge.jpg',500,714,'CHARGE','http://www1.clikpic.com/tashiyamirando/images/Charge_thumb.jpg',130, 186,1, 0,'A young elephant charges down the road towards our waiting vehicle ','07/08/07','© Tashiya Mirando Photography','Udawalawe, Sri Lanka','','');
photos[9] = new photo(1329291,'93580','','gallery','http://www1.clikpic.com/tashiyamirando/images/Grey Heron & Pied Kingfishers.jpg',483,341,'GREY HERON AND PIED KINGFISHERS','http://www1.clikpic.com/tashiyamirando/images/Grey Heron & Pied Kingfishers_thumb.jpg',130, 92,1, 0,'It isn\'t often that you see this many Pied Kingfishers gathered together','07/08/07','© Tashiya Mirando Photography','Udawalawe, Sri Lanka','','');
photos[10] = new photo(1329301,'93580','','gallery','http://www1.clikpic.com/tashiyamirando/images/Prowling.jpg',500,350,'PROWLING','http://www1.clikpic.com/tashiyamirando/images/Prowling_thumb.jpg',130, 91,1, 1,'\"Baba Kotiya\" (Baba Leopard) makes a move towards the watering hole.  This two-year-old Leopard was in the depths of Yala National Park, Sri Lanka.  To see Leopard is one thing, but to see them prowling in the open is a completely different story.  A very rare sight indeed.  We tracked \"Baba\" for over an hour and caught him just in the nick of time.  He was on the way for a drink of water... before or after a kill?  We did not get a chance to find out.','08/08/07','© Tashiya Mirando Photography','Yala National Park, Sri Lanka','','');
photos[11] = new photo(1329302,'93580','','gallery','http://www1.clikpic.com/tashiyamirando/images/Baby Tusker for Clikpic copy.jpg',500,350,'BABY TUSKER','http://www1.clikpic.com/tashiyamirando/images/Baby Tusker for Clikpic copy_thumb.jpg',130, 91,0, 0,'A baby tusker crosses out path to get to the pond on the other side.  He doesn\'t forget to take his time','07/08/07','© Tashiya Mirando Photography','Udawalawe, Sri Lanka','','');
photos[12] = new photo(1329304,'93580','','gallery','http://www1.clikpic.com/tashiyamirando/images/Soaring for Clikpic.jpg',463,331,'SOARING','http://www1.clikpic.com/tashiyamirando/images/Soaring for Clikpic_thumb.jpg',130, 93,1, 0,'A Sea Eagle take flight','07/08/07','© Tashiya Mirando Photography','Udawalawe, Sri Lanka','','');
photos[13] = new photo(1329306,'93580','','gallery','http://www1.clikpic.com/tashiyamirando/images/Attack for Clikpic.jpg',500,350,'UNDER ATTACK','http://www1.clikpic.com/tashiyamirando/images/Attack for Clikpic_thumb.jpg',130, 91,0, 0,'Our vehicle came under attack by this mother elephant who was protecting her baby tusker','07/08/07','© Tashiya Mirando Photography','Udawalawe, Sri Lanka','','');
photos[14] = new photo(1329308,'93580','','gallery','http://www1.clikpic.com/tashiyamirando/images/Thrist Quencher for Clikpic.jpg',500,300,'THIRST QUENCHER','http://www1.clikpic.com/tashiyamirando/images/Thrist Quencher for Clikpic_thumb.jpg',130, 78,1, 0,'\"Baba Kotiya\" (Baba Leopard) has his fair share of water','08/08/07','© Tashiya Mirando Photography','Yala National Park, Sri Lanka','','');
photos[15] = new photo(1329311,'93580','','gallery','http://www1.clikpic.com/tashiyamirando/images/Toucan.jpg',500,714,'HORN-BILLED TOUCAN','http://www1.clikpic.com/tashiyamirando/images/Toucan_thumb.jpg',130, 186,1, 0,'This horn-Billed Toucan was a pleasant surprise indeed, especially in August when migration has not even begun','08/08/07','© Tashiya Mirando Photography','Yala National Park, Sri Lanka','','');
photos[16] = new photo(1329315,'93580','','gallery','http://www1.clikpic.com/tashiyamirando/images/Majestic for Clikpic.jpg',500,350,'MAJESTIC','http://www1.clikpic.com/tashiyamirando/images/Majestic for Clikpic_thumb.jpg',130, 91,1, 0,'Another leopard comes down from a tree and makes his way back in to the jungle','08/08/07','© Tashiya Mirando Photography','Yala National Park, Sri Lanka','','');
photos[17] = new photo(1329319,'93580','','gallery','http://www1.clikpic.com/tashiyamirando/images/Congregation for Clikpic.jpg',500,350,'CONGREGATION','http://www1.clikpic.com/tashiyamirando/images/Congregation for Clikpic_thumb.jpg',130, 91,0, 0,'A herd of Water Buffalo take an evening dip to cool themselves down','08/08/07','© Tashiya Mirando Photography','Yala National Park, Sri Lanka','','');
photos[18] = new photo(1356363,'93580','','gallery','http://www1.clikpic.com/tashiyamirando/images/Baba.jpg',500,350,'WATCHING & WAITING','http://www1.clikpic.com/tashiyamirando/images/Baba_thumb.jpg',130, 91,0, 0,'This leopard literally \"posed\" for us on the middle of the road for 5 minutes, before calmly walking back in to the jungle.  Amazing!','08/08/07','© Tashiya Mirando Photography','Yala National Park, Sri Lanka','','');
photos[19] = new photo(1329195,'93581','','gallery','http://www1.clikpic.com/tashiyamirando/images/Boy.jpg',500,750,'THE WEIGHT OF THE WORLD ON SMALL SHOULDERS','http://www1.clikpic.com/tashiyamirando/images/Boy_thumb.jpg',130, 195,1, 1,'A small Sri Lankan boy carries his boutique sarong\'s around hoping to sell them to foreigner\'s on the beach.  It is a very tough life indeed','07/08/06','© Tashiya Mirando Photography','Sri Lanka','','');
photos[20] = new photo(1328557,'93581','','gallery','http://www1.clikpic.com/tashiyamirando/images/Plunge  for Clikpic.jpg',428,308,'PLUNGE','http://www1.clikpic.com/tashiyamirando/images/Plunge  for Clikpic_thumb.jpg',130, 94,0, 0,'A boy plunges 30 feet in to the sea for a mere sum of LKR 300.00','13/07/07','© Tashiya Mirando Photography','Galle, Sri Lanka','','');
photos[21] = new photo(1328542,'93583','','gallery','http://www1.clikpic.com/tashiyamirando/images/IMG_0136_ED2.jpg',500,750,'ETERNAL RESTROOM','http://www1.clikpic.com/tashiyamirando/images/IMG_0136_ED2_thumb.jpg',130, 195,0, 0,'Portable loo\'s looking rather mystical at Notting-Hill Carnival 2006. ','27/08/06','© Tashiya Mirando Photography','Notting Hill Carnival, London','','');
photos[22] = new photo(1328545,'93583','','gallery','http://www1.clikpic.com/tashiyamirando/images/Goat Attack  for Clikpic.jpg',500,353,'GOAT ATTACK','http://www1.clikpic.com/tashiyamirando/images/Goat Attack  for Clikpic_thumb.jpg',130, 92,0, 0,'A herd of goats come running down the steps from the distant mosque.  ','12/07/07','© Tashiya Mirando Photography','Bentota, Sri Lanka','','');
photos[23] = new photo(1371961,'93583','','gallery','http://www1.clikpic.com/tashiyamirando/images/Sydney Opera House for TMP.jpg',500,333,'SYDNEY OPERA HOUSE','http://www1.clikpic.com/tashiyamirando/images/Sydney Opera House for TMP_thumb.jpg',130, 87,1, 0,'Designed by Jørn Utzon, a Danish architect, the Sydney Opera House is one of the most distinctive and famous 20th century buildings, and one of the most famous performing arts venues in the world.  Situated on Bennelong Point in Sydney Harbour, with parkland to its south and close to the equally famous Sydney Harbour Bridge, the building and its surroundings form an iconic Australian image.  It is also a UNESCO World Heritage Site.','30/03/07','Tashiya Mirando Photography','Sydney','','');
photos[24] = new photo(1328553,'93583','','gallery','http://www1.clikpic.com/tashiyamirando/images/Hyundai  for Clikpic.jpg',428,302,'POSTER PERFECT','http://www1.clikpic.com/tashiyamirando/images/Hyundai  for Clikpic_thumb.jpg',130, 92,0, 0,'A parked Hyundai played model to my odd-angled capture','12/07/07','© Tashiya Mirando Photography','Sri Lanka','','');
photos[25] = new photo(1328563,'93583','','gallery','http://www1.clikpic.com/tashiyamirando/images/Small Fry for Clikpic.jpg',472,334,'SMALL FRY','http://www1.clikpic.com/tashiyamirando/images/Small Fry for Clikpic_thumb.jpg',130, 92,0, 0,'A key moment at Kollupitiya Market when these small fry were laid on the counter ready to be sold to the highest bidder.','28/06/07','© Tashiya Mirando Photography','Kollupitiya, Sri Lanka','','');
photos[26] = new photo(1371955,'93583','','gallery','http://www1.clikpic.com/tashiyamirando/images/Sydney Harbour Bridge for TMP.jpg',500,333,'SYDNEY HARBOUR BRIDGE','http://www1.clikpic.com/tashiyamirando/images/Sydney Harbour Bridge for TMP_thumb.jpg',130, 87,1, 0,'This is the main crossing over Sydney Harbour carrying rail, vehicular, and pedestrian traffic between the Sydney central business district and the North Shore. ','30/03/07','Tashiya Mirando Photography','Sydney','','');
photos[27] = new photo(1399108,'93583','','gallery','http://www1.clikpic.com/tashiyamirando/images/IMG_0087 ED3 C&C for TMP.jpg',500,333,'HIGH DEFINITION','http://www1.clikpic.com/tashiyamirando/images/IMG_0087 ED3 C&C for TMP_thumb.jpg',130, 87,1, 1,'An abstract image focusing on highlighting a variety of shadows and contrasts.  Not for the faint hearted.','05/02/05','Tashiya Mirando Photography','Surrey, England','','');
photos[28] = new photo(1329202,'93584','','gallery','http://www1.clikpic.com/tashiyamirando/images/IMG_0171_2_ED1b.jpg',500,333,'CANON BLAST','http://www1.clikpic.com/tashiyamirando/images/IMG_0171_2_ED1b_thumb.jpg',130, 87,0, 0,'A canon stands alone in the outskirts of Prince Street in Edinburgh, ready to fire ','10/09/06','© Tashiya Mirando Photography','Edingburgh, Scotland','','');
photos[29] = new photo(1329210,'93584','','gallery','http://www1.clikpic.com/tashiyamirando/images/Set in Stone for Clikpic.jpg',500,350,'SET IN STONE','http://www1.clikpic.com/tashiyamirando/images/Set in Stone for Clikpic_thumb.jpg',130, 91,1, 0,'These statues are carved into pure black rock where a 50 foot statue of Lord Buddha stands in Buduruwagala, Sri Lanka','07/08/07','© Tashiya Mirando Photography','Buduruwagala, Sri Lanka','','');
photos[30] = new photo(1329219,'93584','','gallery','http://www1.clikpic.com/tashiyamirando/images/Feet for Clikpic.jpg',500,350,'FEET','http://www1.clikpic.com/tashiyamirando/images/Feet for Clikpic_thumb.jpg',130, 91,0, 0,'The feet of Lord Buddha in Buduruwagala, Sri Lanka','07/08/07','© Tashiya Mirando Photography','Buduruwagala, Sri Lanka','','');
photos[31] = new photo(1329224,'93584','','gallery','http://www1.clikpic.com/tashiyamirando/images/Let there be Light for Clikpic.jpg',476,337,'LET THERE BE LIGHT','http://www1.clikpic.com/tashiyamirando/images/Let there be Light for Clikpic_thumb.jpg',130, 92,1, 0,'A macro image of a small \"pahana\" filled with oil keeping the flame afloat','09/06/07','© Tashiya Mirando Photography','Kandy, Sri Lanka','','');
photos[32] = new photo(1329242,'93584','','gallery','http://www1.clikpic.com/tashiyamirando/images/The Usual Suspect for Clikpic.jpg',455,644,'THE USUAL SUSPECTS','http://www1.clikpic.com/tashiyamirando/images/The Usual Suspect for Clikpic_thumb.jpg',130, 184,1, 0,'Perfect for that odd corner in your home to give it a sense of curiosity','28/06/07','© Tashiya Mirando Photography','Kollupitiya, Sri Lanka','','');
photos[33] = new photo(1356365,'93584','','gallery','http://www1.clikpic.com/tashiyamirando/images/Clock.jpg',500,750,'UP INTO THE SKY','http://www1.clikpic.com/tashiyamirando/images/Clock_thumb.jpg',130, 195,1, 0,'This clock tower at one end of Princes Street in Edinburgh always looked beautiful against the setting sun.  It also gave the time; handy!','10/09/06','© Tashiya Mirando Photography','Princes Street, Edinburgh','','');
photos[34] = new photo(1399091,'93584','','gallery','http://www1.clikpic.com/tashiyamirando/images/IMG_0127 for TMP.jpg',500,333,'LIGHT THROUGH SHELLS','http://www1.clikpic.com/tashiyamirando/images/IMG_0127 for TMP_thumb.jpg',130, 87,1, 1,'A beautiful work of art using local sea shells; handy!','15/01/05','Tashiya Mirando Photography','Colombo, Sri Lanka','','');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
galleries = new Array();
galleries[0] = new gallery(93551,'1399079','NATURE','gallery');
galleries[1] = new gallery(93580,'1329301','WILDLIFE','gallery');
galleries[2] = new gallery(93581,'1329195','PEOPLE','gallery');
galleries[3] = new gallery(93583,'1399108','BLACK & WHITE','gallery');
galleries[4] = new gallery(93584,'1399091','MISCELLANEOUS','gallery');

