/***************************************************************************
* 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('3920180,3920176,3920175,3920171,3814133,3702283,3702276,3702275,3702271,3702267,3702257,3702256,3702240,3702239,3702232,3702197,3702195,3702161,3702150,3702098,3702097,3670899');
	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('3920180,3920176,3920175,3920171,3814133,3702283,3702276,3702275,3702271,3702267,3702257,3702256,3702240,3702239,3702232,3702197,3702195,3702161,3702150,3702098,3702097,3670899');
	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) || (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 + '">';
						field.value = photos[nextImg].id;
			document.getElementById('imageTitle').innerHTML = photos[nextImg].caption;
									document.title = 'Ken Stinnett 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].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(3702092,'232362','','gallery','http://www3.clikpic.com/kenstin/images/_81CB0703.jpg',502,750,'Red chilies','http://www3.clikpic.com/kenstin/images/_81CB0703_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[1] = new photo(3814128,'232361','','gallery','http://www3.clikpic.com/kenstin/images/080917_0008.jpg',589,750,'Golden Orb-weaver','http://www3.clikpic.com/kenstin/images/080917_0008_thumb.jpg',102, 130,0, 0,'Australian Golden Orb-weaver, genus Nephila (Tetragnathidae)','','','Kakadu, NT','','');
photos[2] = new photo(3814133,'232361','','gallery','http://www3.clikpic.com/kenstin/images/080925_06581.jpg',800,1000,'Flying Fox','http://www3.clikpic.com/kenstin/images/080925_06581_thumb.jpg',104, 130,1, 1,'Black Flying-fox (Pteropus alecto) AU','','','Kakadu, NT','','');
photos[3] = new photo(3814136,'232361','','gallery','http://www3.clikpic.com/kenstin/images/081001_28311.jpg',800,640,'Bespeckled Gecko','http://www3.clikpic.com/kenstin/images/081001_28311_thumb.jpg',130, 104,0, 0,'Bespeckled Gecko, Jim Jim Falls, Kakadu, NT, AU','','','','','');
photos[4] = new photo(3670899,'219483','','gallery','http://www3.clikpic.com/kenstin/images/52830003_3.jpg',750,500,'','http://www3.clikpic.com/kenstin/images/52830003_3_thumb.jpg',130, 87,1, 1,'','','','','','');
photos[5] = new photo(3702264,'219483','','gallery','http://www3.clikpic.com/kenstin/images/021108_0001.jpg',750,502,'','http://www3.clikpic.com/kenstin/images/021108_0001_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[6] = new photo(3702265,'219483','','gallery','http://www3.clikpic.com/kenstin/images/030209_0156.jpg',750,502,'','http://www3.clikpic.com/kenstin/images/030209_0156_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[7] = new photo(3702267,'219483','','gallery','http://www3.clikpic.com/kenstin/images/030213_0003.jpg',750,502,'','http://www3.clikpic.com/kenstin/images/030213_0003_thumb.jpg',130, 87,1, 1,'','','','','','');
photos[8] = new photo(3702268,'219483','','gallery','http://www3.clikpic.com/kenstin/images/030318_0885.jpg',750,502,'','http://www3.clikpic.com/kenstin/images/030318_0885_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[9] = new photo(3702269,'219483','','gallery','http://www3.clikpic.com/kenstin/images/040101_4032.jpg',750,502,'','http://www3.clikpic.com/kenstin/images/040101_4032_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[10] = new photo(3702271,'219483','','gallery','http://www3.clikpic.com/kenstin/images/040101_4037.jpg',750,502,'','http://www3.clikpic.com/kenstin/images/040101_4037_thumb.jpg',130, 87,1, 1,'','','','','','');
photos[11] = new photo(3702273,'219483','','gallery','http://www3.clikpic.com/kenstin/images/040305_0007.jpg',750,502,'','http://www3.clikpic.com/kenstin/images/040305_0007_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[12] = new photo(3702275,'219483','','gallery','http://www3.clikpic.com/kenstin/images/040305_0008.jpg',750,502,'','http://www3.clikpic.com/kenstin/images/040305_0008_thumb.jpg',130, 87,1, 1,'','','','','','');
photos[13] = new photo(3702276,'219483','','gallery','http://www3.clikpic.com/kenstin/images/040710_0010.jpg',750,502,'','http://www3.clikpic.com/kenstin/images/040710_0010_thumb.jpg',130, 87,1, 1,'','','','','','');
photos[14] = new photo(3702278,'219483','','gallery','http://www3.clikpic.com/kenstin/images/040404_68451.jpg',750,502,'','http://www3.clikpic.com/kenstin/images/040404_68451_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[15] = new photo(3702283,'219483','','gallery','http://www3.clikpic.com/kenstin/images/040819_1247.jpg',750,502,'','http://www3.clikpic.com/kenstin/images/040819_1247_thumb.jpg',130, 87,1, 1,'','','','','','');
photos[16] = new photo(3702284,'219483','','gallery','http://www3.clikpic.com/kenstin/images/040819_1250.jpg',750,502,'','http://www3.clikpic.com/kenstin/images/040819_1250_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[17] = new photo(3702285,'219483','','gallery','http://www3.clikpic.com/kenstin/images/041011_4234.jpg',750,502,'','http://www3.clikpic.com/kenstin/images/041011_4234_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[18] = new photo(3702287,'219483','','gallery','http://www3.clikpic.com/kenstin/images/041011_4248.jpg',750,502,'','http://www3.clikpic.com/kenstin/images/041011_4248_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[19] = new photo(3702291,'219483','','gallery','http://www3.clikpic.com/kenstin/images/081215_0036.jpg',750,489,'','http://www3.clikpic.com/kenstin/images/081215_0036_thumb.jpg',130, 85,0, 0,'','','','','','');
photos[20] = new photo(3702293,'219483','','gallery','http://www3.clikpic.com/kenstin/images/070723_0035.jpg',750,489,'','http://www3.clikpic.com/kenstin/images/070723_0035_thumb.jpg',130, 85,0, 0,'','','','','','');
photos[21] = new photo(3702097,'230486','','gallery','http://www3.clikpic.com/kenstin/images/040118_119.jpg',750,502,'','http://www3.clikpic.com/kenstin/images/040118_119_thumb.jpg',130, 87,1, 1,'','','','','','');
photos[22] = new photo(3702098,'230486','','gallery','http://www3.clikpic.com/kenstin/images/050310_195.jpg',750,502,'','http://www3.clikpic.com/kenstin/images/050310_195_thumb.jpg',130, 87,1, 1,'','','','','','');
photos[23] = new photo(3702103,'230486','','gallery','http://www3.clikpic.com/kenstin/images/070113_3255.jpg',500,750,'','http://www3.clikpic.com/kenstin/images/070113_3255_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[24] = new photo(3702108,'230486','','gallery','http://www3.clikpic.com/kenstin/images/Balloons_37.jpg',502,750,'','http://www3.clikpic.com/kenstin/images/Balloons_37_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[25] = new photo(3702110,'230486','','gallery','http://www3.clikpic.com/kenstin/images/MesillaBalloons.jpg',502,750,'','http://www3.clikpic.com/kenstin/images/MesillaBalloons_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[26] = new photo(3702112,'230486','','gallery','http://www3.clikpic.com/kenstin/images/RSP_202.jpg',502,750,'desert poppies','http://www3.clikpic.com/kenstin/images/RSP_202_thumb.jpg',87, 130,0, 0,'desert poppies in the Floridas, south of Deming','','','','','');
photos[27] = new photo(3702115,'230486','','gallery','http://www3.clikpic.com/kenstin/images/WSBalloons_31.jpg',502,750,'balloons at White Sands','http://www3.clikpic.com/kenstin/images/WSBalloons_31_thumb.jpg',87, 130,0, 0,'White Sands Balloon Fiesta','','','','','');
photos[28] = new photo(3702119,'230486','','gallery','http://www3.clikpic.com/kenstin/images/040424_0001.jpg',502,750,'','http://www3.clikpic.com/kenstin/images/040424_0001_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[29] = new photo(3702123,'230486','','gallery','http://www3.clikpic.com/kenstin/images/041024_0003.jpg',502,750,'','http://www3.clikpic.com/kenstin/images/041024_0003_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[30] = new photo(3702124,'230486','','gallery','http://www3.clikpic.com/kenstin/images/041030_6328.jpg',502,750,'','http://www3.clikpic.com/kenstin/images/041030_6328_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[31] = new photo(3702135,'230486','','gallery','http://www3.clikpic.com/kenstin/images/060326_3545.jpg',750,500,'backcountry horseback','http://www3.clikpic.com/kenstin/images/060326_3545_thumb.jpg',130, 87,0, 0,'backcountry horseback near Mt. Riley and the East Potrillos','','','','','');
photos[32] = new photo(3702219,'230486','Cloudcroft Aspens','gallery','http://www3.clikpic.com/kenstin/images/031012_0001.jpg',502,750,'','http://www3.clikpic.com/kenstin/images/031012_0001_thumb.jpg',87, 130,0, 0,'Cloudcroft Aspens in fall colors on Sunspot Road','','','','','');
photos[33] = new photo(3702223,'230486','','gallery','http://www3.clikpic.com/kenstin/images/040422_0003.jpg',750,502,'Sunglow','http://www3.clikpic.com/kenstin/images/040422_0003_thumb.jpg',130, 87,0, 0,'Sunset over the Robledos near Las Cruces','','','','','');
photos[34] = new photo(3702225,'230486','','gallery','http://www3.clikpic.com/kenstin/images/040424_0004.jpg',750,502,'San Albino reflection','http://www3.clikpic.com/kenstin/images/040424_0004_thumb.jpg',130, 87,0, 0,'San Albino reflected in the hood of a vintage auto at the British Car Club Rally in Mesilla','','','','','');
photos[35] = new photo(3702226,'230486','','gallery','http://www3.clikpic.com/kenstin/images/040621_0449.jpg',750,502,'Otero Mesa','http://www3.clikpic.com/kenstin/images/040621_0449_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[36] = new photo(3702227,'230486','','gallery','http://www3.clikpic.com/kenstin/images/040622_9175.jpg',750,502,'Otero Mesa petroglyphs','http://www3.clikpic.com/kenstin/images/040622_9175_thumb.jpg',130, 87,0, 0,'Otero Mesa petroglyphs','','','','','');
photos[37] = new photo(3702228,'230486','','gallery','http://www3.clikpic.com/kenstin/images/040622_9188.jpg',502,750,'Otero Mesa petroglyphs','http://www3.clikpic.com/kenstin/images/040622_9188_thumb.jpg',87, 130,0, 0,'Otero Mesa petroglyphs','','','','','');
photos[38] = new photo(3702230,'230486','','gallery','http://www3.clikpic.com/kenstin/images/040622_9192.jpg',750,502,'Otero Mesa petroglyphs','http://www3.clikpic.com/kenstin/images/040622_9192_thumb.jpg',130, 87,0, 0,'Otero Mesa petroglyphs','','','','','');
photos[39] = new photo(3702231,'230486','','gallery','http://www3.clikpic.com/kenstin/images/050324_0009.jpg',502,750,'','http://www3.clikpic.com/kenstin/images/050324_0009_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[40] = new photo(3702232,'230486','','gallery','http://www3.clikpic.com/kenstin/images/050324_0010.jpg',589,750,'','http://www3.clikpic.com/kenstin/images/050324_0010_thumb.jpg',102, 130,1, 1,'','','','','','');
photos[41] = new photo(3702233,'230486','','gallery','http://www3.clikpic.com/kenstin/images/050325_0011.jpg',502,750,'','http://www3.clikpic.com/kenstin/images/050325_0011_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[42] = new photo(3702235,'230486','','gallery','http://www3.clikpic.com/kenstin/images/050325_0012.jpg',502,750,'','http://www3.clikpic.com/kenstin/images/050325_0012_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[43] = new photo(3702236,'230486','','gallery','http://www3.clikpic.com/kenstin/images/050325_0013.jpg',502,750,'','http://www3.clikpic.com/kenstin/images/050325_0013_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[44] = new photo(3702237,'230486','','gallery','http://www3.clikpic.com/kenstin/images/061028_6590.jpg',500,750,'','http://www3.clikpic.com/kenstin/images/061028_6590_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[45] = new photo(3702238,'230486','','gallery','http://www3.clikpic.com/kenstin/images/061028_6637.jpg',500,750,'','http://www3.clikpic.com/kenstin/images/061028_6637_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[46] = new photo(3702239,'230486','','gallery','http://www3.clikpic.com/kenstin/images/070606_0659.jpg',750,500,'','http://www3.clikpic.com/kenstin/images/070606_0659_thumb.jpg',130, 87,1, 1,'','','','','','');
photos[47] = new photo(3702240,'230486','','gallery','http://www3.clikpic.com/kenstin/images/070708_0017.jpg',750,489,'','http://www3.clikpic.com/kenstin/images/070708_0017_thumb.jpg',130, 85,1, 1,'','','','','','');
photos[48] = new photo(3702241,'230486','','gallery','http://www3.clikpic.com/kenstin/images/070709_0018.jpg',500,750,'','http://www3.clikpic.com/kenstin/images/070709_0018_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[49] = new photo(3702084,'219484','','gallery','http://www3.clikpic.com/kenstin/images/_GreyFox_1.jpg',590,750,'Gray Fox','http://www3.clikpic.com/kenstin/images/_GreyFox_1_thumb.jpg',102, 130,0, 0,'Grey Fox, Urocyon cinereoargenteus, on the Ladder Ranch in central New Mexico','','','','','');
photos[50] = new photo(3702088,'219484','','gallery','http://www3.clikpic.com/kenstin/images/070215_GRRO_01.jpg',750,500,'','http://www3.clikpic.com/kenstin/images/070215_GRRO_01_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[51] = new photo(3702093,'219484','','gallery','http://www3.clikpic.com/kenstin/images/_030414_102.jpg',502,750,'','http://www3.clikpic.com/kenstin/images/_030414_102_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[52] = new photo(3702094,'219484','','gallery','http://www3.clikpic.com/kenstin/images/_030414_111.jpg',502,750,'','http://www3.clikpic.com/kenstin/images/_030414_111_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[53] = new photo(3920171,'237893','','gallery','http://admin.clikpic.com/kenstin/images/81CB0016.jpg',504,750,'Chihuahuan Ravens','http://admin.clikpic.com/kenstin/images/81CB0016_thumb.jpg',87, 130,1, 1,'','','','','','');
photos[54] = new photo(3920349,'237893','','gallery','http://admin.clikpic.com/kenstin/images/030623_SNEG_1.jpg',536,750,'Snowy Egret','http://admin.clikpic.com/kenstin/images/030623_SNEG_1_thumb.jpg',93, 130,0, 0,'','','','','','');
photos[55] = new photo(3920172,'237893','','gallery','http://admin.clikpic.com/kenstin/images/81CB0674.jpg',750,502,'Canvasback','http://admin.clikpic.com/kenstin/images/81CB0674_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[56] = new photo(3920350,'237893','','gallery','http://admin.clikpic.com/kenstin/images/030921_04.jpg',502,750,'Cactus Wren','http://admin.clikpic.com/kenstin/images/030921_04_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[57] = new photo(3920173,'237893','','gallery','http://admin.clikpic.com/kenstin/images/81CB0764.jpg',502,750,'Canvasbacks','http://admin.clikpic.com/kenstin/images/81CB0764_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[58] = new photo(3920351,'237893','','gallery','http://admin.clikpic.com/kenstin/images/031014_013.jpg',800,534,'Western Grebe','http://admin.clikpic.com/kenstin/images/031014_013_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[59] = new photo(3920174,'237893','','gallery','http://admin.clikpic.com/kenstin/images/81CB1723.jpg',750,501,'Lesser Prairie Chicken','http://admin.clikpic.com/kenstin/images/81CB1723_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[60] = new photo(3920352,'237893','','gallery','http://admin.clikpic.com/kenstin/images/040221_001.jpg',750,500,'Western Grebe','http://admin.clikpic.com/kenstin/images/040221_001_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[61] = new photo(3920175,'237893','','gallery','http://admin.clikpic.com/kenstin/images/81CB1910.jpg',501,750,'Lesser Prairie Chicken','http://admin.clikpic.com/kenstin/images/81CB1910_thumb.jpg',87, 130,1, 1,'','','','','','');
photos[62] = new photo(3920353,'237893','','gallery','http://admin.clikpic.com/kenstin/images/040221_003.jpg',750,500,'Clark\'s Grebe','http://admin.clikpic.com/kenstin/images/040221_003_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[63] = new photo(3920176,'237893','','gallery','http://admin.clikpic.com/kenstin/images/81CB2144_1.jpg',750,582,'White-faced Ibis','http://admin.clikpic.com/kenstin/images/81CB2144_1_thumb.jpg',130, 101,1, 1,'','','','','','');
photos[64] = new photo(3920354,'237893','','gallery','http://admin.clikpic.com/kenstin/images/040222_062.jpg',584,750,'Bald Eagles','http://admin.clikpic.com/kenstin/images/040222_062_thumb.jpg',101, 130,0, 0,'','','','','','');
photos[65] = new photo(3920177,'237893','','gallery','http://admin.clikpic.com/kenstin/images/81CB2162_2.jpg',500,750,'Bald Eagle','http://admin.clikpic.com/kenstin/images/81CB2162_2_thumb.jpg',87, 130,0, 0,'Bald Eagle, Juneau, AK','','','','','');
photos[66] = new photo(3920355,'237893','','gallery','http://admin.clikpic.com/kenstin/images/040222_097.jpg',750,502,'Great Blue Heron','http://admin.clikpic.com/kenstin/images/040222_097_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[67] = new photo(3920178,'237893','','gallery','http://admin.clikpic.com/kenstin/images/81CB2834.jpg',750,502,'Sandhill Cranes','http://admin.clikpic.com/kenstin/images/81CB2834_thumb.jpg',130, 87,0, 0,'Sandhill Cranes, Bosque del Apache','','','','','');
photos[68] = new photo(3920356,'237893','','gallery','http://admin.clikpic.com/kenstin/images/040222_101.jpg',750,502,'Ring-necked Duck','http://admin.clikpic.com/kenstin/images/040222_101_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[69] = new photo(3920179,'237893','','gallery','http://admin.clikpic.com/kenstin/images/81CB2896.jpg',501,750,'Thick-billed Parrot','http://admin.clikpic.com/kenstin/images/81CB2896_thumb.jpg',87, 130,0, 1,'Thick-billed Parrot at the Armendariz Ranch in Central NM','','','','','');
photos[70] = new photo(3920357,'237893','','gallery','http://admin.clikpic.com/kenstin/images/040222_103.jpg',750,502,'Ring-necked Duck','http://admin.clikpic.com/kenstin/images/040222_103_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[71] = new photo(3920180,'237893','','gallery','http://admin.clikpic.com/kenstin/images/81CB3030.jpg',750,500,'Arctic Tern','http://admin.clikpic.com/kenstin/images/81CB3030_thumb.jpg',130, 87,1, 1,'','','','','','');
photos[72] = new photo(3920358,'237893','','gallery','http://admin.clikpic.com/kenstin/images/040222_121.jpg',502,750,'Western Meadowlark','http://admin.clikpic.com/kenstin/images/040222_121_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[73] = new photo(3920359,'237893','','gallery','http://admin.clikpic.com/kenstin/images/040222_135-1.jpg',750,502,'Wilson\'s Snipe','http://admin.clikpic.com/kenstin/images/040222_135-1_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[74] = new photo(3920360,'237893','','gallery','http://admin.clikpic.com/kenstin/images/040228_016.jpg',750,502,'Horned Lark','http://admin.clikpic.com/kenstin/images/040228_016_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[75] = new photo(3920361,'237893','','gallery','http://admin.clikpic.com/kenstin/images/040328_050.jpg',501,750,'Black-throated Sparrow','http://admin.clikpic.com/kenstin/images/040328_050_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[76] = new photo(3920362,'237893','','gallery','http://admin.clikpic.com/kenstin/images/040505_01.jpg',750,502,'Swainson\'s Hawk','http://admin.clikpic.com/kenstin/images/040505_01_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[77] = new photo(3920363,'237893','','gallery','http://admin.clikpic.com/kenstin/images/040713_28_46.jpg',500,750,'Black-chinned Hummingbird','http://admin.clikpic.com/kenstin/images/040713_28_46_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[78] = new photo(3920364,'237893','','gallery','http://admin.clikpic.com/kenstin/images/041218_001.jpg',750,500,'Loggerhead Shrike','http://admin.clikpic.com/kenstin/images/041218_001_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[79] = new photo(3920365,'237893','','gallery','http://admin.clikpic.com/kenstin/images/050307_3471.jpg',502,750,'Red-winged Blackbird','http://admin.clikpic.com/kenstin/images/050307_3471_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[80] = new photo(3920366,'237893','','gallery','http://admin.clikpic.com/kenstin/images/050307_3498.jpg',502,750,'Red-winged Blackbird','http://admin.clikpic.com/kenstin/images/050307_3498_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[81] = new photo(3920367,'237893','','gallery','http://admin.clikpic.com/kenstin/images/050310_172.jpg',500,750,'Curve-billed Thrasher','http://admin.clikpic.com/kenstin/images/050310_172_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[82] = new photo(3920368,'237893','','gallery','http://admin.clikpic.com/kenstin/images/050406_6016.jpg',750,500,'Northern Harrier','http://admin.clikpic.com/kenstin/images/050406_6016_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[83] = new photo(3920369,'237893','','gallery','http://admin.clikpic.com/kenstin/images/051105_3904.jpg',500,750,'Blad Eagle','http://admin.clikpic.com/kenstin/images/051105_3904_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[84] = new photo(3920370,'237893','','gallery','http://admin.clikpic.com/kenstin/images/051106_4057.jpg',500,750,'Swainson\'s Hawk','http://admin.clikpic.com/kenstin/images/051106_4057_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[85] = new photo(3920371,'237893','','gallery','http://admin.clikpic.com/kenstin/images/060426_5099.jpg',750,500,'Long-billed Curlew','http://admin.clikpic.com/kenstin/images/060426_5099_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[86] = new photo(3920372,'237893','','gallery','http://admin.clikpic.com/kenstin/images/061118_0865.jpg',750,500,'Sandhill Crane','http://admin.clikpic.com/kenstin/images/061118_0865_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[87] = new photo(3920373,'237893','','gallery','http://admin.clikpic.com/kenstin/images/061210_2185.jpg',750,500,'White-crowned Sparrow','http://admin.clikpic.com/kenstin/images/061210_2185_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[88] = new photo(3920374,'237893','','gallery','http://admin.clikpic.com/kenstin/images/061216_2357.jpg',750,500,'Greater Roadrunner','http://admin.clikpic.com/kenstin/images/061216_2357_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[89] = new photo(3920375,'237893','','gallery','http://admin.clikpic.com/kenstin/images/070215_01.jpg',750,500,'Greater Roadrunner','http://admin.clikpic.com/kenstin/images/070215_01_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[90] = new photo(3920376,'237893','','gallery','http://admin.clikpic.com/kenstin/images/070305_4615.jpg',500,750,'Turkey Vulture','http://admin.clikpic.com/kenstin/images/070305_4615_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[91] = new photo(3920377,'237893','','gallery','http://admin.clikpic.com/kenstin/images/080419_7205.jpg',500,750,'Scissor-tailed Flycatcher','http://admin.clikpic.com/kenstin/images/080419_7205_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[92] = new photo(3920378,'237893','','gallery','http://admin.clikpic.com/kenstin/images/080419_7243.jpg',750,500,'Scissor-tailed Flycatcher','http://admin.clikpic.com/kenstin/images/080419_7243_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[93] = new photo(3920379,'237893','','gallery','http://admin.clikpic.com/kenstin/images/092203_02_2.jpg',536,750,'Marsh Wren','http://admin.clikpic.com/kenstin/images/092203_02_2_thumb.jpg',93, 130,0, 0,'','','','','','');
photos[94] = new photo(3920380,'237893','','gallery','http://admin.clikpic.com/kenstin/images/12300002.jpg',489,750,'Great Blue Heron','http://admin.clikpic.com/kenstin/images/12300002_thumb.jpg',85, 130,0, 0,'','','','','','');
photos[95] = new photo(3920381,'237893','','gallery','http://admin.clikpic.com/kenstin/images/12300010.jpg',750,489,'Red-tailed Hawk','http://admin.clikpic.com/kenstin/images/12300010_thumb.jpg',130, 85,0, 0,'','','','','','');
photos[96] = new photo(3920382,'237893','','gallery','http://admin.clikpic.com/kenstin/images/59190029.jpg',750,528,'Redhead','http://admin.clikpic.com/kenstin/images/59190029_thumb.jpg',130, 92,0, 0,'','','','','','');
photos[97] = new photo(3920383,'237893','','gallery','http://admin.clikpic.com/kenstin/images/81CB3238.jpg',502,750,'Gambel\'s Quail','http://admin.clikpic.com/kenstin/images/81CB3238_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[98] = new photo(3920384,'237893','','gallery','http://admin.clikpic.com/kenstin/images/81CB3417.jpg',502,750,'Whiskered Screech Owl','http://admin.clikpic.com/kenstin/images/81CB3417_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[99] = new photo(3920385,'237893','','gallery','http://admin.clikpic.com/kenstin/images/81CB8205.jpg',750,502,'Osprey','http://admin.clikpic.com/kenstin/images/81CB8205_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[100] = new photo(3920386,'237893','','gallery','http://admin.clikpic.com/kenstin/images/81CB9238.jpg',750,500,'Red-winged Blackbird','http://admin.clikpic.com/kenstin/images/81CB9238_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[101] = new photo(3920387,'237893','','gallery','http://admin.clikpic.com/kenstin/images/81CB9615_1.jpg',500,750,'Vermilion Flycatcher','http://admin.clikpic.com/kenstin/images/81CB9615_1_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[102] = new photo(3920388,'237893','','gallery','http://admin.clikpic.com/kenstin/images/BUOW_2_1.jpg',750,524,'Burrowing Owl','http://admin.clikpic.com/kenstin/images/BUOW_2_1_thumb.jpg',130, 91,0, 0,'','','','','','');
photos[103] = new photo(3920389,'237893','','gallery','http://admin.clikpic.com/kenstin/images/ELTR_2.jpg',500,750,'Elegant Trogon','http://admin.clikpic.com/kenstin/images/ELTR_2_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[104] = new photo(3920390,'237893','','gallery','http://admin.clikpic.com/kenstin/images/Ken_Stinnett_14.jpg',536,750,'Black-necked Stilt','http://admin.clikpic.com/kenstin/images/Ken_Stinnett_14_thumb.jpg',93, 130,0, 0,'','','','','','');
photos[105] = new photo(3702127,'220345','','gallery','http://www3.clikpic.com/kenstin/images/050417_0006.jpg',500,750,'Eric Hisaw','http://www3.clikpic.com/kenstin/images/050417_0006_thumb.jpg',87, 130,0, 0,'Eric Hisaw','','','','','');
photos[106] = new photo(3702157,'220345','','gallery','http://www3.clikpic.com/kenstin/images/070701_2647.jpg',500,750,'','http://www3.clikpic.com/kenstin/images/070701_2647_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[107] = new photo(3702087,'230485','','gallery','http://www3.clikpic.com/kenstin/images/031025_717.jpg',502,750,'','http://www3.clikpic.com/kenstin/images/031025_717_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[108] = new photo(3702137,'230485','','gallery','http://www3.clikpic.com/kenstin/images/061028_6660.jpg',500,750,'','http://www3.clikpic.com/kenstin/images/061028_6660_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[109] = new photo(3702140,'230485','','gallery','http://www3.clikpic.com/kenstin/images/061104_6932.jpg',500,750,'','http://www3.clikpic.com/kenstin/images/061104_6932_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[110] = new photo(3702144,'230485','','gallery','http://www3.clikpic.com/kenstin/images/070429_8498.jpg',750,500,'','http://www3.clikpic.com/kenstin/images/070429_8498_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[111] = new photo(3702147,'230485','','gallery','http://www3.clikpic.com/kenstin/images/070526_0037.jpg',750,500,'Silver City, NM Annual Blues Festival','http://www3.clikpic.com/kenstin/images/070526_0037_thumb.jpg',130, 87,0, 0,'','','','Silver City, NM','','');
photos[112] = new photo(3702150,'230485','','gallery','http://www3.clikpic.com/kenstin/images/070630_2298.jpg',750,500,'','http://www3.clikpic.com/kenstin/images/070630_2298_thumb.jpg',130, 87,1, 1,'','','','','','');
photos[113] = new photo(3702151,'230485','','gallery','http://www3.clikpic.com/kenstin/images/070701_2577.jpg',750,500,'','http://www3.clikpic.com/kenstin/images/070701_2577_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[114] = new photo(3702153,'230485','','gallery','http://www3.clikpic.com/kenstin/images/070701_2621.jpg',500,750,'','http://www3.clikpic.com/kenstin/images/070701_2621_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[115] = new photo(3702121,'230490','','gallery','http://www3.clikpic.com/kenstin/images/041017_0002.jpg',536,750,'','http://www3.clikpic.com/kenstin/images/041017_0002_thumb.jpg',93, 130,0, 0,'','','','','','');
photos[116] = new photo(3702205,'230490','','gallery','http://www3.clikpic.com/kenstin/images/031109_0024.jpg',502,750,'','http://www3.clikpic.com/kenstin/images/031109_0024_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[117] = new photo(3702208,'230490','','gallery','http://www3.clikpic.com/kenstin/images/041031_0003.jpg',502,750,'','http://www3.clikpic.com/kenstin/images/041031_0003_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[118] = new photo(3702209,'230490','','gallery','http://www3.clikpic.com/kenstin/images/041113_0004.jpg',502,750,'','http://www3.clikpic.com/kenstin/images/041113_0004_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[119] = new photo(3702211,'230490','','gallery','http://www3.clikpic.com/kenstin/images/061110_0005.jpg',750,496,'','http://www3.clikpic.com/kenstin/images/061110_0005_thumb.jpg',130, 86,0, 0,'','','','','','');
photos[120] = new photo(3702213,'230490','','gallery','http://www3.clikpic.com/kenstin/images/061110_0006.jpg',496,750,'','http://www3.clikpic.com/kenstin/images/061110_0006_thumb.jpg',86, 130,0, 0,'','','','','','');
photos[121] = new photo(3702149,'230487','','gallery','http://www3.clikpic.com/kenstin/images/070616_1231.jpg',750,500,'SWEC\'s Raft the Rio','http://www3.clikpic.com/kenstin/images/070616_1231_thumb.jpg',130, 87,0, 0,'','','','Las Cruces, NM','','');
photos[122] = new photo(3702161,'230487','','gallery','http://www3.clikpic.com/kenstin/images/041225_1253.jpg',750,600,'','http://www3.clikpic.com/kenstin/images/041225_1253_thumb.jpg',130, 104,1, 1,'','','','','','');
photos[123] = new photo(3702163,'230487','','gallery','http://www3.clikpic.com/kenstin/images/041225_1255.jpg',502,750,'Oil pumpjack and full moon','http://www3.clikpic.com/kenstin/images/041225_1255_thumb.jpg',87, 130,0, 0,'','','','McCamey, TX','','');
photos[124] = new photo(3702174,'230487','','gallery','http://www3.clikpic.com/kenstin/images/041225_1240.jpg',750,501,'drilling rig','http://www3.clikpic.com/kenstin/images/041225_1240_thumb.jpg',130, 87,0, 0,'drilling rig in West Texas','','','','','');
photos[125] = new photo(3702176,'230487','','gallery','http://www3.clikpic.com/kenstin/images/041227_1353.jpg',750,502,'wind turbines','http://www3.clikpic.com/kenstin/images/041227_1353_thumb.jpg',130, 87,0, 0,'wind turbines on a mesa in West Texas','','','','','');
photos[126] = new photo(3702180,'230487','','gallery','http://www3.clikpic.com/kenstin/images/041225_1256.jpg',750,501,'','http://www3.clikpic.com/kenstin/images/041225_1256_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[127] = new photo(3702182,'230487','','gallery','http://www3.clikpic.com/kenstin/images/041227_1382.jpg',750,502,'wind turbines','http://www3.clikpic.com/kenstin/images/041227_1382_thumb.jpg',130, 87,0, 0,'wind turbines on a mesa in West Texas','','','','','');
photos[128] = new photo(3702190,'230487','','gallery','http://www3.clikpic.com/kenstin/images/061126_1352.jpg',750,500,'','http://www3.clikpic.com/kenstin/images/061126_1352_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[129] = new photo(3702191,'230487','','gallery','http://www3.clikpic.com/kenstin/images/061126_1364.jpg',750,500,'','http://www3.clikpic.com/kenstin/images/061126_1364_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[130] = new photo(3702200,'230489','','gallery','http://www3.clikpic.com/kenstin/images/041108_0005.jpg',501,750,'','http://www3.clikpic.com/kenstin/images/041108_0005_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[131] = new photo(3702201,'230489','','gallery','http://www3.clikpic.com/kenstin/images/041109_0007.jpg',502,750,'','http://www3.clikpic.com/kenstin/images/041109_0007_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[132] = new photo(3702202,'230489','','gallery','http://www3.clikpic.com/kenstin/images/041109_7901.jpg',502,750,'','http://www3.clikpic.com/kenstin/images/041109_7901_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[133] = new photo(3702256,'230489','','gallery','http://www3.clikpic.com/kenstin/images/081005_31021.jpg',800,533,'','http://www3.clikpic.com/kenstin/images/081005_31021_thumb.jpg',130, 87,1, 0,'','','','','','');
photos[134] = new photo(3702257,'230489','','gallery','http://www3.clikpic.com/kenstin/images/081005_3117.jpg',800,533,'','http://www3.clikpic.com/kenstin/images/081005_3117_thumb.jpg',130, 87,1, 1,'','','','','','');
photos[135] = new photo(3702260,'230489','','gallery','http://www3.clikpic.com/kenstin/images/081005_3155.jpg',800,1200,'','http://www3.clikpic.com/kenstin/images/081005_3155_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[136] = new photo(3702261,'230489','','gallery','http://www3.clikpic.com/kenstin/images/081005_3173.jpg',800,1200,'','http://www3.clikpic.com/kenstin/images/081005_3173_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[137] = new photo(3702079,'230488','','gallery','http://www3.clikpic.com/kenstin/images/FHYC_8.jpg',510,750,'French Harbor Yacht Club','http://www3.clikpic.com/kenstin/images/FHYC_8_thumb.jpg',88, 130,0, 0,'French Harbor Yacht Club on Roatan, Bay Islands, Honduras','','','','','');
photos[138] = new photo(3702083,'230488','','gallery','http://www3.clikpic.com/kenstin/images/LC_Toyota.jpg',750,450,'','http://www3.clikpic.com/kenstin/images/LC_Toyota_thumb.jpg',130, 78,0, 0,'Las Cruces Toyota','','','','','');
photos[139] = new photo(3702193,'230488','','gallery','http://www3.clikpic.com/kenstin/images/020501_0001.jpg',750,502,'','http://www3.clikpic.com/kenstin/images/020501_0001_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[140] = new photo(3702195,'230488','','gallery','http://www3.clikpic.com/kenstin/images/020501_0002.jpg',750,502,'','http://www3.clikpic.com/kenstin/images/020501_0002_thumb.jpg',130, 87,1, 1,'','','','','','');
photos[141] = new photo(3702196,'230488','','gallery','http://www3.clikpic.com/kenstin/images/020501_0003.jpg',502,750,'','http://www3.clikpic.com/kenstin/images/020501_0003_thumb.jpg',87, 130,0, 0,'','','','','','');
photos[142] = new photo(3702197,'230488','','gallery','http://www3.clikpic.com/kenstin/images/020506_0004.jpg',750,502,'','http://www3.clikpic.com/kenstin/images/020506_0004_thumb.jpg',130, 87,1, 1,'','','','','','');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
galleries = new Array();
galleries[0] = new gallery(232344,'3702257,3702197,3702195,3702161,3702150','assignment','gallery');
galleries[1] = new gallery(232360,'3814133','Flora and Fauna','gallery');
galleries[2] = new gallery(232361,'3814133','Kakadu, NT ','gallery');
galleries[3] = new gallery(232342,'3702213,3702211,3702209,3702208,3702205,3702157,3702127,3702121','people','gallery');
galleries[4] = new gallery(232343,'3702283,3702276,3702275,3702271,3702267,3702240,3702239,3702232,3702098,3702097,3670899','places','gallery');
galleries[5] = new gallery(232362,'3702092','Plants and flowers','gallery');
galleries[6] = new gallery(219483,'3702283,3702276,3702275,3702271,3702267,3670899','Organ Mountains','gallery');
galleries[7] = new gallery(230486,'3702240,3702239,3702232,3702098,3702097','New Mexico','gallery');
galleries[8] = new gallery(219484,'3702094,3702093,3702088,3702084','Wildlife','gallery');
galleries[9] = new gallery(237893,'3920180,3920179,3920176,3920175,3920171','Birds','gallery');
galleries[10] = new gallery(220345,'3702157,3702127','Portraits','gallery');
galleries[11] = new gallery(230485,'3702150','Editorial','gallery');
galleries[12] = new gallery(230490,'3702213,3702211,3702209,3702208,3702205,3702121','Mariachi / Folklorico','gallery');
galleries[13] = new gallery(230487,'3702161','Environmental','gallery');
galleries[14] = new gallery(230489,'3702257','Jewelry','gallery');
galleries[15] = new gallery(230488,'3702197,3702195','Advertising/Interiors','gallery');


