/***************************************************************************
* 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) {
	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;
}
/***************************************************************************
* 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('927723,490337,490336,486071,485542,485541,485511,483541,483538');
	for (j = 0; j < photos.length; j++) {
		if (photos[j].id == imageID) {
			if (!basic) {
			img.src = 'images/' + 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 = 'images/' + 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('927723,490337,490336,486071,485542,485541,485511,483541,483538');
	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="images/' + 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)) {
		debug('In updateImage');
		debug('setting  img src = ' + photos[nextImg].src);
		
					
			document.getElementById('imagePhoto').innerHTML = '<img class="mainphoto" src="images/' + 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 = 'images/' + 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(485510,'37816','image 0006','gallery','antarctic_reflections.jpg',500,326,'Antarctic Reflections','antarctic_reflections_thumb.jpg',130, 85,0, 0,'We arrived at Davis Base, Antarctica early in the morning; there was not a breath of wind...  Calm waters acted like a mirror, reflecting images back at us.','30/11/04','Mike Hicks','Heideman Bay, Antarctica');
photos[1] = new photo(483493,'37816','image 0002','gallery','adelies_on_ sea_ice.jpg',500,327,'Pridz Bay Adelies','adelies_on_ sea_ice_thumb.jpg',130, 85,0, 0,'Standing on the seaice, 5km from shore the wind is howling and it\'s -15c.  I doubt that I have ever been to a more isolated and yet more beautiful location.','19/11/04','Mike Hicks','Prydz Bay - Davis Base, Antarctica');
photos[2] = new photo(483367,'37816','image 0001','gallery','admiring_the_view.jpg',500,266,'The Veiw','admiring_the_view_thumb.jpg',130, 69,0, 0,'This lone Adelie Penguin scans the horizon near its Rookery on Gardner Island','17/11/04','Mike Hicks ','Gardner Island,  Davis Base, Antarctica ');
photos[3] = new photo(927723,'37816','Image 4','gallery','Sustrugi Sunset.jpg',340,500,'Sustrugi Sunset','Sustrugi Sunset_thumb.jpg',130, 191,1, 1,'','22/11/04','Mike Hicks','Antarctica');
photos[4] = new photo(485511,'37816','Image 0007','gallery','Ice crystals_1.JPG',375,500,'Ice Crystals in blue','Ice crystals_1_thumb.JPG',130, 173,1, 0,'Ice crystals grow on the edge of Ellis Fjord,  sometimes growing up to 3 inches long.  They form intricate patterns of interfingered ice, absorbing blues from the summer sky .  This is one of my favourite images from Antarctica.','02/02/05','Mike Hicks','Ellis Fjord, Antarctica');
photos[5] = new photo(483538,'37816','image 0003','gallery','blue_Iceberg.jpg',266,400,'Blue Berg in Sea Ice','blue_Iceberg_thumb.jpg',130, 195,1, 1,'Sailing past at 3am in the morning with the sun low on the horizon accentuates the colours of the Antarctic landscape.  The pristine southern ocean waters offer clarity and depth to the floating ice, capturing the beauty both above and below its surface.  ','10/11/04','Mike Hicks','Southern Ocean - Antarctica 04');
photos[6] = new photo(485512,'37816','image 0008','gallery','glacial_lake.jpg',420,276,'Glacial Lake','glacial_lake_thumb.jpg',130, 85,0, 0,'Viewed from above, this lake on Sorsdal Glacier transforms the scene into a blaze of colour.','07/02/05','Mike Hicks','Sorsdal Glacier,  Antarctica');
photos[7] = new photo(485514,'37816','Image 0010','gallery','sea_ice_breaking.jpg',500,375,'Pack Ice Jigsaw','sea_ice_breaking_thumb.jpg',130, 98,0, 0,'Standing on the deck of the Aurora Australis while ice breaking offered some awesome photo opportunities.  Jigsaw patterns in the breaking ice created this striking scene as we arrived at Davis Base.   ','30/11/04','Mike Hicks','Prydz Bay - Antarctica');
photos[8] = new photo(485517,'37816','image 0011','gallery','shadow_on_berg.jpg',500,375,'Ghost Ship','shadow_on_berg_thumb.jpg',130, 98,0, 0,'Occasionally photography is about being in the right place at the right time… in this image, the sun setting behind us threw a shadow of our ship onto a passing iceberg','10/11/04','Mike Hicks','Southern Ocean - Antarctica');
photos[9] = new photo(485513,'37816','image 0009','gallery','memorial.jpg',375,500,'Memorials on Anchorage Island','memorial_thumb.jpg',130, 173,0, 0,'Anchorage Island near Davis Base bears crosses in remembrance of those souls lost in tragic accidents while working at the base.  It is a stark reminder of the beauty and isolation of we all experienced.  ','23/12/04','Mike Hicks','Davis Base - Antarctica');
photos[10] = new photo(485518,'37816','0012','gallery','Prydz_Bay.jpg',315,420,'Prydz Bay','Prydz_Bay_thumb.jpg',130, 173,0, 0,'After weeks spent traveling through a sea covered in ice, unusual shapes and patterns become more apparent.  Penguin tracks on the ice, and intriguing shapes add to this vivid landscape','11/11/04','Mike Hicks','Prydz bay');
photos[11] = new photo(485519,'37816','image 0013','gallery','red_and_blue_ ice.jpg',315,420,'Red and Blue Ice','red_and_blue_ ice_thumb.jpg',130, 173,0, 0,'We often think of Antarctica as a colourless place, a landscape of pure white… for how can snow and ice hold colour!  This is far from the truth, in fact the colours of Antarctica are vibrant and dramatic… The reflection of our ship paints a red hue on the ice, while in the distance, an iceberg reflects intense blue.  ','13/11/04','Mike Hicks','Prydz bay');
photos[12] = new photo(485520,'37816','0014','gallery','sunset.jpg',375,500,'Antarctic Sunset','sunset_thumb.jpg',130, 173,0, 0,'Our last night in Antarctica, and the first true sunset… since we left Hobart 5 months earlier the sun had stayed above the horizon, but tonight is it’s brilliant farewell performance… it’s an emotional night for many as the realisation that our adventure is nearly at a close.','23/02/05','Mike Hicks','Davis Base - Antarctica');
photos[13] = new photo(485522,'37816','image 0015','gallery','burton_sunset.jpg',375,500,'Burton Lake Sunset','burton_sunset_thumb.jpg',130, 173,0, 0,'Silhouetted against rocks of the Vestfold Hills, Burton Lake glistens with luminous colour painted by the setting sun.','13/12/04','Mike Hicks','Burton Lake, Marine Plain, Antarctica');
photos[14] = new photo(485523,'37816','image 0016','gallery','ellis_ fjord_morning_ice.jpg',324,500,'Ellis Fjord','ellis_ fjord_morning_ice_thumb.jpg',130, 201,0, 0,'On the edge of Ellis Fjord, water melts and freezes daily… ice crystals grow and icy sheets of ‘glass’ form over the rocks.  This was my home away from home for 4 months.','20/12/04','Mike Hicks','Ellis Fjord, Antarctica');
photos[15] = new photo(485521,'37816','image 0017','gallery','storm_ night.jpg',500,375,'Stormy Night - Southern Ocean','storm_ night_thumb.jpg',130, 98,0, 0,'On our journey home the weather often matched our mood… we had left our friends to winter at Davis Base and had to prepare ourselves to the prospect of returning to the ‘mundane’… for anyone who has had the chance to work in Antarctica, life will never the same.  ','25/02/05','Mike Hicks','Southern Ocean - Antarctica');
photos[16] = new photo(1193149,'37865','image 28','gallery','darling reflections 1.jpg',312,500,'Darling River Reflection 1','darling reflections 1_thumb.jpg',130, 208,0, 0,'','07/07/07','Michael Hicks','Menindee, NSW');
photos[17] = new photo(1193137,'37865','image 27','gallery','snug falls.jpg',313,501,'Snug Falls, SE Tasmania','snug falls_thumb.jpg',130, 208,0, 0,'','15/10/06','Michael Hicks','Tasmania');
photos[18] = new photo(483541,'37865','Image 0004','gallery','McKenzies_Falls_1.jpg',369,500,'Mackenzies Falls, Vic','McKenzies_Falls_1_thumb.jpg',130, 176,1, 0,'MacKenzie\'s Falls, Grampians, Vic','10/07/05','Mike Hicks','Grampians, Vic, Australia');
photos[19] = new photo(585432,'37865','Image 38','gallery','pelican sunset 11.jpg',370,500,'Pelicans at Sunset','pelican sunset 11_thumb.jpg',130, 176,0, 0,'','02/03/05','Mike Hicks','The Entrance, NSW Central Coast');
photos[20] = new photo(485541,'37865','image 21','gallery','Hopetoun_Falls_1.jpg',265,400,'Hopetoun Falls 1','Hopetoun_Falls_1_thumb.jpg',130, 196,1, 1,'Whenever I shoot waterfalls, I like to arrive on site at least an hour before sunrise… just sit there and enjoy the solitude.  The sound of water cascading over falls in one of life’s great pleasures… all to often we rush around, never fully aware of what we are missing.  Next time you visit a waterfall, try sitting down, closing your eyes and really experiencing it… leave the rushing to tourist.','15/07/05','Mike Hicks','Otway Ranges, Victoria, Australia');
photos[21] = new photo(485542,'37865','Image 0022','gallery','hopetoun_falls_2.jpg',265,400,'Hopetoun Falls 2','hopetoun_falls_2_thumb.jpg',130, 196,1, 0,'This shot was taken at around 8am. I\'ve been here since before sunrise, enjoying the calm before the tourist storm… it’s so peaceful and… well, here they come, So with the best part of the day over, I guess it’s time for breakfast…    ','13/07/05','Mike Hicks','Otway Ranges, Victoria, Australia');
photos[22] = new photo(485543,'37865','image 23','gallery','hopetoun_falls_3.jpg',298,400,'Hopetoun Falls 3','hopetoun_falls_3_thumb.jpg',130, 174,0, 0,'what a morning, up at 4:30am... set up at Hopetoun Falls around 6am... time to relax and soak up the sites and sounds while I wait for the light to gather... best part of an hour to shoot before the place is over run... it doesn\'t get any better','13/07/05','Mike Hicks','Otway Ranges, Victoria');
photos[23] = new photo(485544,'37865','image 24','gallery','Sheoak_Falls 1.jpg',286,400,'Sheoak Falls','Sheoak_Falls 1_thumb.jpg',130, 182,0, 0,'just out of Apollo Bay on the Great Ocean Road, this is a gem for anyone wanting easy access to a special place.. ','14/07/05','Mike Hicks','Apolla Bay, Victoria, Australia');
photos[24] = new photo(485545,'37865','image 25','gallery','12apostles.jpg',334,500,'The Twelve Apostles','12apostles_thumb.jpg',130, 195,0, 0,'Created by 1000\'s of years of erosion along the coast line, the Twelve Apostles stand valient against the ever pressing tide.','09/07/05','Mike Hicks','Victoria,Australia');
photos[25] = new photo(485546,'37865','image 26','gallery','triptich.jpg',500,258,'Tryptich 1','triptich_thumb.jpg',130, 67,0, 0,'my first triptich... this series of images was shot at Maitland Bay on the NSW Central Coast.   ','16/04/04','MIke Hicks','Maitland Bay, NSW Central Coast, Australia');
photos[26] = new photo(560724,'37867','image 0066','gallery','image 0066.jpg',500,375,'sleepy weddell seal','image 0066_thumb.jpg',130, 98,0, 0,'the most amazing experience of my 5 months in Antarctica (well, every day was amazing)... this young weddell seal crawled over the ice and went to sleep metres from where I was sitting... I had been shooting a landscape, but this little guy stole the show<br>\n','23/02/05','Mike Hicks','Antarctica');
photos[27] = new photo(560722,'37867','image 0067','gallery','image 00671.jpg',369,277,'Young Weddell Seal','image 00671_thumb.jpg',130, 98,0, 0,'One of the many images taken up close and personal with Antarctic Wildlife... this young weddell seal was only metres from my lens.  The locals have no fear of us... its a shame it isn\'t the case back home.','30/12/04','Mike Hicks','Antarctica');
photos[28] = new photo(560761,'37867','Image 0069','gallery','image 0069.jpg',369,200,'Snails Highway','image 0069_thumb.jpg',130, 70,0, 0,'shot on a rock platform at Apollo Bay, this snail made a curious image','12/10/03','Mike Hicks','Apollo Bay, Victoria, Australia');
photos[29] = new photo(486071,'37867','Image 31','gallery','EAGLE1.jpg',271,420,'Wedge Tailed Eagle','EAGLE1_thumb.jpg',130, 201,1, 1,'I took this image in 2000, just out of Broken Hill… this young adult Wedge-Tailed Eagle was happy to stand watch while I sat quietly 10 metres away… they are in my mind, the most majestic of birds.','12/12/00','Mike Hicks','Broken Hill, Outback NSW, Australia');
photos[30] = new photo(486072,'37867','Image 32','gallery','EAGLE2.jpg',297,420,'Wedge Tailed Eagle 2','EAGLE2_thumb.jpg',130, 184,0, 0,'I took this image in 2000, just out of Broken Hill… this young adult Wedge-Tailed Eagle was happy to stand watch while I sat quietly 10 metres away… they are in my mind, the most majestic of birds.','12/12/00','Mike Hicks','Broken Hill, Outback NSW, Australia');
photos[31] = new photo(1193133,'37868','','gallery','Sue and Simon 7.jpg',332,499,'Sue and Simon 7','Sue and Simon 7_thumb.jpg',130, 195,0, 0,'','02/12/07','Michael Hicks','Manly, Sydney, Australia');
photos[32] = new photo(1193134,'37868','','gallery','Sue and Simon 8.JPG',333,501,'Sue and Simon 8','Sue and Simon 8_thumb.JPG',130, 196,0, 0,'','02/12/07','Michael Hicks','Manly, Sydney, Australia');
photos[33] = new photo(1193119,'37868','','gallery','sue and simon 21.jpg',332,499,'Sue and Simon 2','sue and simon 21_thumb.jpg',130, 195,0, 0,'','02/12/06','Michael Hicks','Manly Sydney Australia');
photos[34] = new photo(1193120,'37868','','gallery','sue and simon 3.jpg',332,499,'Sue and Simon 3','sue and simon 3_thumb.jpg',130, 195,0, 0,'','02/12/06','Michael Hicks','Manly, Sydney, Australia');
photos[35] = new photo(1193121,'37868','','gallery','sue and simon 4.jpg',332,499,'Sue and Simon 4','sue and simon 4_thumb.jpg',130, 195,0, 0,'','02/12/06','Michael Hicks','Manly, Sydney, Australia');
photos[36] = new photo(1193123,'37868','','gallery','sue and simon 5.jpg',332,499,'Sue and Simon 5','sue and simon 5_thumb.jpg',130, 195,0, 0,'','02/12/06','Michael Hicks','Manly, Sydney, Australia');
photos[37] = new photo(1193126,'37868','','gallery','sue and simon 6.jpg',332,499,'Sue and Simon 6','sue and simon 6_thumb.jpg',130, 195,0, 0,'','02/12/06','Michael Hicks','Manly, Sydney, Australia');
photos[38] = new photo(490336,'37868','','gallery','adele_friend.jpg',333,500,'adele and Josh\'s wedding 06','adele_friend_thumb.jpg',130, 195,1, 0,'adele and bridesmaid joyous moment','25/05/06','Mike Hicks','');
photos[39] = new photo(490337,'37868','','gallery','adele_josh1.jpg',274,400,'Adele and Josh 1','adele_josh1_thumb.jpg',130, 190,1, 1,'The wedding veil','25/05/06','michael Hicks','');
photos[40] = new photo(490338,'37868','','gallery','adele_josh2.jpg',406,500,'Adele and Josh - Black and White','adele_josh2_thumb.jpg',130, 160,0, 0,'Adele and Josh (b&w)','25/05/06','Michael Hicks','');
photos[41] = new photo(490339,'37868','','gallery','flower_ girls.jpg',500,332,'Flower Girls','flower_ girls_thumb.jpg',130, 86,0, 0,'flowers for the flower girls, Adele and Josh\'s wedding','25/05/06','Michael Hicks','');
photos[42] = new photo(490340,'37868','','gallery','group1.jpg',266,400,'groomsmen and bride 1','group1_thumb.jpg',130, 195,0, 0,'Adele and Josh\'s wedding','25/05/06','Michael Hicks','');
photos[43] = new photo(490341,'37868','','gallery','group2.jpg',400,302,'Groomsmen and Bride 2','group2_thumb.jpg',130, 98,0, 0,'Adele and Josh\'s wedding','25/05/06','Michael Hicks','');
photos[44] = new photo(776298,'37868','','gallery','Sue and Simon 1.jpg',393,591,'Sue and Simon 1','Sue and Simon 1_thumb.jpg',130, 195,0, 0,'','02/12/06','Mike Hicks','Manly ');
photos[45] = new photo(560790,'37872','image 0108','gallery','image 0108.jpg',332,500,'Liz 1','image 0108_thumb.jpg',130, 196,0, 0,'studio shot','15/08/05','Mike Hicks','Sydney');
photos[46] = new photo(560791,'37872','image 0109','gallery','image 0109.JPG',332,500,'Liz 2','image 0109_thumb.JPG',130, 196,0, 0,'studio shoot','15/08/05','Mike Hicks','Sydney');
photos[47] = new photo(560792,'37872','image 0110','gallery','image 0110.jpg',332,500,'Amy 1','image 0110_thumb.jpg',130, 196,0, 0,'studio shoot','15/08/05','Mike Hicks','Sydney');
photos[48] = new photo(560794,'37872','image 0111','gallery','image 0111.jpg',333,500,'Amy 2','image 0111_thumb.jpg',130, 195,0, 0,'studio shoot ','15/08/05','Mike Hicks','Sydney');
photos[49] = new photo(560789,'37872','image 0107','gallery','image 0107.JPG',294,397,'cookies','image 0107_thumb.JPG',130, 176,0, 0,'studio shot','07/07/05','Mike Hicks','sydney');
photos[50] = new photo(486083,'37872','Image 53','gallery','slice_1.JPG',332,500,'Slice 1','slice_1_thumb.JPG',130, 196,0, 1,'','27/06/05','Mike Hicks','Studio shoot');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
galleries = new Array();
galleries[0] = new gallery(37816,'927723,483538','Antarctic Landscapes','gallery');
galleries[1] = new gallery(37865,'485541','Australian Landscapes','gallery');
galleries[2] = new gallery(37867,'486071','Wildlife','gallery');
galleries[3] = new gallery(37868,'490337','Weddings','gallery');
galleries[4] = new gallery(37872,'486083','Portraites, Corporate, and Advertising','gallery');

