/***************************************************************************
* 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('2737698,2737429,2530576,2525309,2525299,2525271,2522634,2515287,2510398,2510374,2510366,2510305,2510302');
	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('2737698,2737429,2530576,2525309,2525299,2525271,2522634,2515287,2510398,2510374,2510366,2510305,2510302');
	for (j = 0; j < photos.length; j++) {
		if (photos[j].id == imageID) {
			if ('gallery' != '') {
						if (photos[j].galleries_id != '') {
						document.write('<a href="' + photos[j].section_code + '_' + photos[j].galleries_id + '.html">');
						}
						else {
						document.write('<a href="gallery.html">');
						}
			}
			document.write('<img src="' + photos[j].src + '" width="' + photos[j].width + '" height="' + photos[j].height + '" class="mainhomepageimage" id="mainSample" name="mainSample" alt="' + photos[j].caption  + '" border="0">');
			if ('gallery' != '') {
				document.write('</a>');
			}
			break;
		}
	}
	
}

/***************************************************************************
* Show the next image in a gallery.  field = hidden field containing       *
* image_id                                                                 *
*  img = reference to image object in which to show image                  *
***************************************************************************/
function next(field,img) {

	debug('IN next');
	imageID = field.value;
	
	for (j = 0; j < photos.length; j++) {
		if (photos[j].id == imageID) {
			break;
		}
	}
	debug('image is ' + j);
	nextImg = -1;
	k= j + 1;
	while (nextImg < 0) {
		for (; k < photos.length; k++) {
			debug('testing image ' + k + ': gallery = ' + photos[k].galleries_id + '(existing: ' + photos[j].galleries_id + ')');
			if (photos[k].galleries_id == photos[j].galleries_id) {
				nextImg = k;
				debug('setting  nextImg = ' + k);
				break;
			}
		}
		if (nextImg == -1) {
			k = 0;
		}
	}
	if (nextImg != -1) {
		updateImage(nextImg, field,img);
	}


}


/***************************************************************************
* Set a new image on the gallery detail page given its array position      *
***************************************************************************/
function updateImage (nextImg, field,img) {
	debug('Updating image');
	if (!basic && !((1) || (0))) {
		debug('In updateImage');
		debug('setting  img src = ' + photos[nextImg].src);
		
					
			document.getElementById('imagePhoto').innerHTML = '<img class="mainphoto" src="' + photos[nextImg].src + ' " id="mainPic" name="mainPic" width="' + photos[nextImg].width + '" height="' + photos[nextImg].height + '" alt="' + photos[nextImg].caption + '">';
						field.value = photos[nextImg].id;
			document.getElementById('imageTitle').innerHTML = photos[nextImg].caption;
									document.title = 'bills 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(2525146,'161751','','gallery','http://www2.clikpic.com/jockey/images/barry greggs dog copyweb.jpg',320,400,'Bill the dog','http://www2.clikpic.com/jockey/images/barry greggs dog copyweb_thumb.jpg',56, 70,0, 0,'A friends dog named Bill,named after Wild Bill Hickock, not me','','bill oneil','','','');
photos[1] = new photo(2525159,'161751','','gallery','http://www2.clikpic.com/jockey/images/bird.2-1 copyweb.jpg',533,400,'Percy','http://www2.clikpic.com/jockey/images/bird_thumb.2-1 copyweb.jpg',93, 70,0, 0,'A pelican lazing around on West Lakes.','','bill oneil','west lakes','','Available as a card or framed print from');
photos[2] = new photo(2525220,'161751','','gallery','http://www2.clikpic.com/jockey/images/shag-1 copy.jpg',533,400,'Oh for a shag','http://www2.clikpic.com/jockey/images/shag-1 copy_thumb.jpg',93, 70,0, 0,'A shag hunting for a feed','','bill oneil','west lakes ','','');
photos[3] = new photo(2525260,'161751','','gallery','http://www2.clikpic.com/jockey/images/eee 003 copyweb.jpg',600,347,'Hungry Crock','http://www2.clikpic.com/jockey/images/eee 003 copyweb_thumb.jpg',121, 70,0, 0,'One of the crockodiles at the Adelaide Zoo.','','bill oneil','Adelaide Zoo','','Available as a card or framed print from');
photos[4] = new photo(2737431,'161751','','gallery','http://www2.clikpic.com/jockey/images/new lot 089 copy.jpg',266,400,'Oh yeh, I can sing','http://www2.clikpic.com/jockey/images/new lot 089 copy_thumb.jpg',47, 70,0, 0,'','','','','','');
photos[5] = new photo(2515287,'161253','','gallery','http://www2.clikpic.com/jockey/images/IMG_5651 copy2 copyweb.jpg',600,399,'The old truck','http://www2.clikpic.com/jockey/images/IMG_5651 copy2 copyweb_thumb.jpg',105, 70,1, 0,'an old truck found near an abandoned house near Terowie Gorge near Port Pirie.','','bill oneil','Port Pirie','','Available as a framed print from');
photos[6] = new photo(2515315,'161253','','gallery','http://www2.clikpic.com/jockey/images/bills photography1 copyweb.jpg',462,400,'chatanooga choo choo','http://www2.clikpic.com/jockey/images/bills photography1 copyweb_thumb.jpg',81, 70,0, 0,'the old steam train on display at Murray Bridge in South Australia','','bill oneil','murray bridge','','Available as a framed print from');
photos[7] = new photo(2515323,'161253','','gallery','http://www2.clikpic.com/jockey/images/21 06 08_2426_fhdr copyweb.jpg',600,399,'windmill','http://www2.clikpic.com/jockey/images/21 06 08_2426_fhdr copyweb_thumb.jpg',105, 70,0, 0,'windmills in the skyline','','bill oneil','murray bridge','','');
photos[8] = new photo(2530457,'161253','','gallery','http://www2.clikpic.com/jockey/images/21 06 08_2364.CR2 copyweb.jpg',600,399,'Murray River','http://www2.clikpic.com/jockey/images/21 06 08_2364_thumb.CR2 copyweb.jpg',105, 70,0, 0,'Murray gums','','bill oneil','Murray Bridge','','');
photos[9] = new photo(2530468,'161253','','gallery','http://www2.clikpic.com/jockey/images/21 06 08_2423 (2) copyweb.jpg',600,400,'Murray lagoon','http://www2.clikpic.com/jockey/images/21 06 08_2423 (2) copyweb_thumb.jpg',105, 70,0, 0,'Murray lagoon view','','bill oneil','Waikerie','','');
photos[10] = new photo(2510366,'159670','','gallery','http://www2.clikpic.com/jockey/images/IMG_5704 copyweb.jpg',600,400,'Sunflower on a log','http://www2.clikpic.com/jockey/images/IMG_5704 copyweb_thumb.jpg',90, 60,1, 1,'A sunflower','','Bill Oneil','Port Pirie','','');
photos[11] = new photo(2510383,'159670','','gallery','http://www2.clikpic.com/jockey/images/victoria amazon lily_edited-1 copyweb.jpg',234,400,'The victoria amazonia water lily','http://www2.clikpic.com/jockey/images/victoria amazon lily_edited-1 copyweb_thumb.jpg',35, 60,0, 0,'The victria amazonia water lily shown in the three phases it has from flowering to death','','bill oneil','Adelaide Botanical Gardens','','');
photos[12] = new photo(2523186,'159670','','gallery','http://www2.clikpic.com/jockey/images/botanical gardens-12-03-2007 010 copyweb.jpg',511,400,'Pinky','http://www2.clikpic.com/jockey/images/botanical gardens-12-03-2007 010 copyweb_thumb.jpg',89, 70,0, 0,'A flower from the Adelaide Botanical Gardens','','bill oneil','adelaide botanical gardens','','');
photos[13] = new photo(2523191,'159670','','gallery','http://www2.clikpic.com/jockey/images/botanical gardens-12-03-2007 033 copyweb.jpg',500,400,'','http://www2.clikpic.com/jockey/images/botanical gardens-12-03-2007 033 copyweb_thumb.jpg',88, 70,0, 0,'more flowers from the Adelaide Botanical Gardens','','bill oneil','Adelaide','','');
photos[14] = new photo(2510398,'160980','','gallery','http://www2.clikpic.com/jockey/images/beautiful river murray backwater..100_0348 copyweb.jpg',400,294,'River Murray backwater','http://www2.clikpic.com/jockey/images/beautiful river murray backwater_thumb..100_0348 copyweb.jpg',82, 60,1, 0,'A view of a Murray backwater near Waikerie in South Australia','','bill oneil','Waikerie','','');
photos[15] = new photo(2510437,'160980','','gallery','http://www2.clikpic.com/jockey/images/flinders 29th feb 2008 020.CR2 copyweb.jpg',600,400,'Flinders View','http://www2.clikpic.com/jockey/images/flinders 29th feb 2008 020_thumb.CR2 copyweb.jpg',90, 60,0, 0,'A view of the Flinders Ranges from Gordons lookout.','','bill oneil','Port Augusta','','');
photos[16] = new photo(2522681,'160980','','gallery','http://www2.clikpic.com/jockey/images/IMG_5722 copyweb.jpg',266,400,'Terowie Gorge','http://www2.clikpic.com/jockey/images/IMG_5722 copyweb_thumb.jpg',47, 70,0, 0,'The steep slopes of Yerowie Gorge','','bill oneil','terowie gorge','','');
photos[17] = new photo(2527038,'160980','','gallery','http://www2.clikpic.com/jockey/images/IMG_5269 copyweb.jpg',600,400,'hilltop','http://www2.clikpic.com/jockey/images/IMG_5269 copyweb_thumb.jpg',105, 70,0, 0,'a scene from Mannum Falls','','bill oneil','Mannum Falls','','');
photos[18] = new photo(2530481,'160980','','gallery','http://www2.clikpic.com/jockey/images/21 06 08_2350 copysp copyweb.jpg',267,400,'Broken Windmill','http://www2.clikpic.com/jockey/images/21 06 08_2350 copysp copyweb_thumb.jpg',47, 70,0, 0,'an old windmill near Mannum in South Australia','','bill oneil','Mannum','','');
photos[19] = new photo(2525271,'161753','','gallery','http://www2.clikpic.com/jockey/images/IMG_4174_0930 copy.jpg',267,400,'Getting Closer','http://www2.clikpic.com/jockey/images/IMG_4174_0930 copy_thumb.jpg',47, 70,1, 1,'a close up of a flower at the Botanical Gardens in Adelaide','','bill oneil','Adelaide Botanical Gardens','','');
photos[20] = new photo(2525346,'161753','','gallery','http://www2.clikpic.com/jockey/images/IMG_4593_1815_edited-1 copyweb.jpg',600,400,'Little toadstal smaller mozzie','http://www2.clikpic.com/jockey/images/IMG_4593_1815_edited-1 copyweb_thumb.jpg',105, 70,0, 0,'A little mosquito hiding under a tiny fungi','','bill onei','Adelaide Botanical Gardens','','');
photos[21] = new photo(2527013,'161753','','gallery','http://www2.clikpic.com/jockey/images/IMG_5782 copyweb.jpg',515,400,'lady bug lady bug..fly away','http://www2.clikpic.com/jockey/images/IMG_5782 copyweb_thumb.jpg',90, 70,0, 0,'a lady bug at work','','bill oneil','Melrose','','');
photos[22] = new photo(2737698,'161753','','gallery','http://www2.clikpic.com/jockey/images/07 08 08_2672hdr copyweb.jpg',381,400,'hebe bee','http://www2.clikpic.com/jockey/images/07 08 08_2672hdr copyweb_thumb.jpg',67, 70,1, 1,'','','bill oneil','Adelaide','','');
photos[23] = new photo(2525299,'161783','','gallery','http://www2.clikpic.com/jockey/images/Alans sunset  copyweb.jpg',533,400,'Twilight fishing','http://www2.clikpic.com/jockey/images/Alans sunset  copyweb_thumb.jpg',93, 70,1, 1,'Fishing at tennyson beach','','bill oneil','Tennyson Beach','','');
photos[24] = new photo(2525303,'161783','','gallery','http://www2.clikpic.com/jockey/images/elliston-sept 2006 013 copyweb.jpg',300,400,'Salmon Slayer','http://www2.clikpic.com/jockey/images/elliston-sept 2006 013 copyweb_thumb.jpg',53, 70,0, 0,'A few salmon caught on a Locks Well trip','','bill oneil','Locks Well','','');
photos[25] = new photo(2525309,'161783','','gallery','http://www2.clikpic.com/jockey/images/IMG_0298 copyweb.jpg',600,400,'At rest in the night','http://www2.clikpic.com/jockey/images/IMG_0298 copyweb_thumb.jpg',105, 70,1, 1,'Boats at rest at the Outer Harbour yacht squadron base.','','bill oneil','Outer Harbour','','');
photos[26] = new photo(2737435,'161783','','gallery','http://www2.clikpic.com/jockey/images/23 08 08_2756hg copyweb.jpg',600,399,'The old Willunga jetty','http://www2.clikpic.com/jockey/images/23 08 08_2756hg copyweb_thumb.jpg',105, 70,0, 0,'','','Bill Oneil','','','');
photos[27] = new photo(2510302,'159669','','gallery','http://www2.clikpic.com/jockey/images/IMG_5770 copyweb.jpg',450,299,'the old farm house','http://www2.clikpic.com/jockey/images/IMG_5770 copyweb_thumb.jpg',90, 60,1, 0,'an old farm house lying in ruins on the Port germain gorge road near Port Pirie in South Australia','','Bill Oneil','Port Pirie','','');
photos[28] = new photo(2510305,'159669','','gallery','http://www2.clikpic.com/jockey/images/IMG_5803 copyweb.jpg',600,399,'The Hammond general store','http://www2.clikpic.com/jockey/images/IMG_5803 copyweb_thumb.jpg',90, 60,1, 0,'','','bill oneil','Hammond','','');
photos[29] = new photo(2510374,'159669','','gallery','http://www2.clikpic.com/jockey/images/IMG_5766abc copyweb.jpg',600,304,'Life on the farm','http://www2.clikpic.com/jockey/images/IMG_5766abc copyweb_thumb.jpg',118, 60,1, 0,'another shot of an old farm house on the Port germain gorge road.','','bill oneil','Port Pirie area','','');
photos[30] = new photo(2510544,'159669','','gallery','http://www2.clikpic.com/jockey/images/IMG_5801 copyweb.jpg',600,399,'The old Hammond pub','http://www2.clikpic.com/jockey/images/IMG_5801 copyweb_thumb.jpg',90, 60,0, 0,'the old pub in Hammond. this town is nearly a ghost town , with the pub being occupied and a couple of other families living in the town','','bill oneil','Hammond','','');
photos[31] = new photo(2522634,'159669','','gallery','http://www2.clikpic.com/jockey/images/IMG_5634_fhdr copyweb.jpg',266,400,'storm brewing','http://www2.clikpic.com/jockey/images/IMG_5634_fhdr copyweb_thumb.jpg',47, 70,1, 0,'An old shepards hut near Lake View in South Australia.','','bill oneil','lake view','','');
photos[32] = new photo(2522694,'159669','','gallery','http://www2.clikpic.com/jockey/images/IMG_0525_edited-1 copyweb.jpg',600,400,'The Australian Museum','http://www2.clikpic.com/jockey/images/IMG_0525_edited-1 copyweb_thumb.jpg',105, 70,0, 0,'The entrance to the Australian National Museum in Canberra.','','bill oneil','Canberra','','');
photos[33] = new photo(2530762,'159669','','gallery','http://www2.clikpic.com/jockey/images/21 06 08_2477_8_9_fhdr copyweb.jpg',600,283,'Morgan Railway Station','http://www2.clikpic.com/jockey/images/21 06 08_2477_8_9_fhdr copyweb_thumb.jpg',130, 61,0, 0,'The old Morgan railway station','','bill oneil','Morgan','','');
photos[34] = new photo(2515118,'161247','','gallery','http://www2.clikpic.com/jockey/images/-megans grin copyweb.jpg',449,400,'our daughter megan','http://www2.clikpic.com/jockey/images/-megans grin copyweb_thumb.jpg',79, 70,0, 0,'','','','','','');
photos[35] = new photo(2515120,'161247','','gallery','http://www2.clikpic.com/jockey/images/n1047088596_39513_6778.jpg',320,400,'megan','http://www2.clikpic.com/jockey/images/n1047088596_39513_6778_thumb.jpg',56, 70,0, 0,'','','cathy stringer','','','');
photos[36] = new photo(2515186,'161247','','gallery','http://www2.clikpic.com/jockey/images/new 024 copyweb.jpg',300,400,'little rabbit','http://www2.clikpic.com/jockey/images/new 024 copyweb_thumb.jpg',53, 70,0, 0,'Getting ready for the Alice in Wonderland concert','','bill oneil','','','');
photos[37] = new photo(2522696,'161247','','gallery','http://www2.clikpic.com/jockey/images/Cameron~s bluey.jpg',267,400,'cameron','http://www2.clikpic.com/jockey/images/Cameron~s bluey_thumb.jpg',47, 70,0, 0,'','','bill oneil','','','');
photos[38] = new photo(2523152,'161247','','gallery','http://www2.clikpic.com/jockey/images/erin 5 - Copy_1112_edited-1 copyweb.jpg',300,400,'Young lady','http://www2.clikpic.com/jockey/images/erin 5 - Copy_1112_edited-1 copyweb_thumb.jpg',53, 70,0, 0,'Erin','','bill oneil','','','');
photos[39] = new photo(2523162,'161247','','gallery','http://www2.clikpic.com/jockey/images/the kids copyweb.jpg',559,400,'The family','http://www2.clikpic.com/jockey/images/the kids copyweb_thumb.jpg',98, 70,0, 0,'','','bill oneil','','','');
photos[40] = new photo(2525268,'161247','','gallery','http://www2.clikpic.com/jockey/images/IMG_0600 copyweb.jpg',307,400,'The kids','http://www2.clikpic.com/jockey/images/IMG_0600 copyweb_thumb.jpg',54, 70,0, 0,'','','bill oneil','Sydney','','');
photos[41] = new photo(2527001,'161247','','gallery','http://www2.clikpic.com/jockey/images/IMG_5661 copyweb.jpg',600,399,'sunday drive anyone','http://www2.clikpic.com/jockey/images/IMG_5661 copyweb_thumb.jpg',105, 70,0, 0,'','','bill oneil','Port Pirie','','');
photos[42] = new photo(2527008,'161247','','gallery','http://www2.clikpic.com/jockey/images/026_edited-2 copyweb.jpg',600,400,'country boy','http://www2.clikpic.com/jockey/images/026_edited-2 copyweb_thumb.jpg',105, 70,0, 0,'','','bill oneil','Moonta','','');
photos[43] = new photo(2737429,'161247','','gallery','http://www2.clikpic.com/jockey/images/IMG_6166.CR2 copy.jpg',276,400,'Nathan','http://www2.clikpic.com/jockey/images/IMG_6166_thumb.CR2 copy.jpg',48, 70,1, 1,'','','bill oneil','','','');
photos[44] = new photo(2523173,'161649','','gallery','http://www2.clikpic.com/jockey/images/IMG_5234_edited-1 copyweb.jpg',267,400,'all aboard','http://www2.clikpic.com/jockey/images/IMG_5234_edited-1 copyweb_thumb.jpg',47, 70,0, 1,'','','bill oneil','','','');
photos[45] = new photo(2530576,'161649','','gallery','http://www2.clikpic.com/jockey/images/21 06 08_2517 copyweb.jpg',600,399,'Rusty Ruin','http://www2.clikpic.com/jockey/images/21 06 08_2517 copyweb_thumb.jpg',105, 70,1, 1,'Another shot in a hdr series of old cars and trucks','','bill oneil','Mannum','','');
photos[46] = new photo(2530634,'161649','','gallery','http://www2.clikpic.com/jockey/images/21 06 08_2522_fhdrllk copyweb.jpg',600,399,'long forgotten','http://www2.clikpic.com/jockey/images/21 06 08_2522_fhdrllk copyweb_thumb.jpg',105, 70,0, 0,'an old truck in hdr','','bill oneil','Mannum','','');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
galleries = new Array();
galleries[0] = new gallery(161751,'2737431,2525260,2525220,2525159,2525146','Animals and Birds','gallery');
galleries[1] = new gallery(161253,'2530468,2530457,2515323,2515315,2515287','black and whites','gallery');
galleries[2] = new gallery(159670,'2510366','Flowers','gallery');
galleries[3] = new gallery(160980,'2530481,2527038,2522681,2510437,2510398','landscapes','gallery');
galleries[4] = new gallery(161753,'2737698,2525271','Macro','gallery');
galleries[5] = new gallery(161783,'2525309,2525299','Nautical Themes','gallery');
galleries[6] = new gallery(159669,'2530762,2522694,2522634,2510544,2510374,2510305,2510302','Old Buildings','gallery');
galleries[7] = new gallery(161247,'2737429','portraits','gallery');
galleries[8] = new gallery(161649,'2530576,2523173','transportation modes','gallery');

