var baseFilePath = "";var imageOffset = 0;			// increments each time an image is found that is from a trip that's too old.// Contains array index numbers that reference images to display from the imageDB array.var images = new Array();function ImageObj (url, caption, date, imageNum, tag)/* Creates an Image object.	 url:				string. The URL to the specific trip journal.	 caption:		string. The caption for the image.	 date:			integer. The year of the trip. Default is 0 which I realize is silly, but useful.	 imageNum:	Integer. The image number - matches the idex of the imageDB array element.	 tag:				string. Default is empty string (""), used to provide extra info about an Image	 						(e.g., to force inclusion of only certain types of trips like michgian dayhikes).*/{	this.url = url;	this.caption = caption;	this.date = (date != null ) ? date : 0;	this.imageNum = (imageNum == null) ? null : imageNum;	this.tag = (tag != null) ? new String( tag ) : new String( "" );		this;}// imageDB is an array of image objects. Each image object contains a caption and a URL.var imageDB = new Array();imageDB[0] = new ImageObj("Amsterdam_UK_7-2000/diaryFrames.html",												"Amsterdam &amp; N. York Moors, UK, 2000", 2000, 0);imageDB[1] = new ImageObj("arches_canyonlands/arches_canyonlands.html",												"Arches &amp; Canyonlands National Parks, 1997.", 1997, 1);imageDB[2] = new ImageObj("austria_czech_republic/telfes_vienna_prague.html",												"Austrian Alps &amp; Prague, Czech Republic 1995", 1995, 2);imageDB[3] = new ImageObj("Irish_Wilderness_MO_2_2001/diaryFrames.html",												"Irish Wilderness, Ozarks, MO., 2001", 2001, 3);imageDB[4] = new ImageObj("NCT_MRP_2_2001/diaryFrames.html",												"Manistee River &amp; NCT, MI., 2001", 2001, 4);imageDB[5] = new ImageObj("New_York_Fall_Hike/NY_Fall_Hike.html",												"AT: Northern New York, 1999.", 1999, 5);imageDB[6] = new ImageObj("N_Georgia_Fall_Hike/diaryFrames.html",												"N. Georgia in Fall on AT, 2000.", 2000, 6);imageDB[7] = new ImageObj("Pen_Mar-Harpers_Ferry,11-2000/diaryFrames.html",												"AT in Maryland, 2000", 2000, 7);imageDB[8] = new ImageObj("PRT_September_2000/diaryFrames.html",												"Pictured Rocks, Lake Superior, 2000.", 2000, 8);imageDB[9] = new ImageObj("sleeping_bear_dunes/sleeping_bear_dunes.html",												"Sleeping Bear Dunes, MI., 1994", 1994, 9);imageDB[10] = new ImageObj("SNP_Fall_Hike/Fall_99_SNP_Hike.html",												"Mary's Rock, Shenandoahs, 1999.", 1999, 10);imageDB[11] = new ImageObj("wales_brussels/wales_brussels.html",												"Wales &amp; Brussels,1998.", 1998, 11);imageDB[12] = new ImageObj("york_glasgow_edinburgh/york_glasgow_edinburgh.html",												"Yorkshire Moors, UK. &amp; Scotland, 1996.", 1996, 12);imageDB[13] = new ImageObj("Amsterdam_UK_7-2000/diaryFrames.html",												"Windmill in the Netherlands, 2000", 2000,13, 13);imageDB[14] = new ImageObj("Amsterdam_UK_7-2000/diaryFrames.html",												"Kite Hill in London, England, 2000", 2000, 14);imageDB[15] = new ImageObj("york_glasgow_edinburgh/york_glasgow_edinburgh.html",												"Castle Rock in Edinburgh, Scotland, 2000", 2000,15);imageDB[16] = new ImageObj("austria_czech_republic/telfes_vienna_prague.html",												"A market street in Prague, Czech Republic, 1995.", 1995,16);imageDB[17] = new ImageObj("austria_czech_republic/telfes_vienna_prague.html",												"A view of Telfes, Austria, 1995.", 1995,17);imageDB[18] = new ImageObj("wales_brussels/wales_brussels.html",												"Flower carpet of Brussles, 1996.", 1996,18);imageDB[19] = new ImageObj("wales_brussels/wales_brussels.html",												"St. John Baptist church in Brussels, 1996.", 1996,19);imageDB[20] = new ImageObj("Isle_Royale_5_2001/diary1.html",												"Joe  at Moskey Basin, Isle Royale. 2001.", 2001,20);imageDB[21] = new ImageObj("Isle_Royale_5_2001/diary1.html",												"Yours truly in the sun on Isle Royale. 2001.", 2001,21);imageDB[22] = new ImageObj("Isle_Royale_5_2001/diary1.html",												"An Isle Royale moose trying to blend in. 2001.", 2001,22);imageDB[23] = new ImageObj("Isle_Royale_5_2001/diary1.html",												"Lovely sunet at Todd Harbor, Isle Royale. 2001.", 2001,23);imageDB[24] = new ImageObj("Isle_Royale_5_2001/diary1.html",												"Isle Royale Moose in McCargo Cove waters. 2001.", 2001,24);imageDB[25] = new ImageObj("Isle_Royale_5_2001/diary1.html",												"Trumpeter swans at Seney Wildlife Refuge. 2001.", 2001,25);imageDB[26] = new ImageObj("Michigan_Dayhikes/glh2001/index.html",												"An odd tree stump on the NCT near Big Star Lake Road. 11/10/2001.", 2001,26);imageDB[27] = new ImageObj("Michigan_Dayhikes/glh2001/index2.html",												"A great lunch spot on the NCT near Sterling Marsh. 11/11/2001.", 2001,27);imageDB[28] = new ImageObj("Grand_Tetons_9_2001/diary1.html",												"Yellowstone National Park near Old Faithful. 2001.", 2001,28);imageDB[29] = new ImageObj("Grand_Tetons_9_2001/diary1.html",												"Staring at Jackass Pass in the Tetons. 2001.", 2001,29);imageDB[30] = new ImageObj("Grand_Tetons_9_2001/diary1.html",												"Camp Lake in Tetons National Park. 2001.", 2001,30);imageDB[31] = new ImageObj("Grand_Tetons_9_2001/diary1.html",												"Wind swept ripples on Phelps Lake. 2001.", 2001,31);imageDB[32] = new ImageObj("Grand_Tetons_9_2001/diary1.html",												"Wind swept ripples on Phelps Lake. 2001.", 2001,32);imageDB[33] = new ImageObj("Grand_Canyon_2_2002/diary1.html",												"On the Rim Trail. Grand Canyon, Feb. 2002.", 2002,33);imageDB[34] = new ImageObj("Grand_Canyon_2_2002/diary1.html",												"O'Neil Butte, South Kaibab Trail, Grand Canyon, Feb. 2002.", 2002,34);imageDB[35] = new ImageObj("Grand_Canyon_2_2002/diary1.html",												"North Kaibab Trail by Cottonwood. Grand Canyon, Feb. 2002.", 2002,35);imageDB[36] = new ImageObj("Grand_Canyon_2_2002/diary1.html",												"Near Phantom Ranch. Grand Canyon, Feb. 2002.", 2002,36);imageDB[37] = new ImageObj("Grand_Canyon_2_2002/diary1.html",												"Colorado River from Clear Creek Trail. Grand Canyon, Feb. 2002.", 2002,37);imageDB[38] = new ImageObj("Grand_Canyon_2_2002/diary1.html",												"Above Indian Garden on Bright Angel Trail. Grand Canyon, Feb. 2002.", 2002,38);imageDB[39] = new ImageObj("Erwin_Damascus_AT_4_2002/diary1.html",												"Sunset at Beauty Spot near Erwin, TN on AT. April 2002.", 2002,39);imageDB[40] = new ImageObj("Erwin_Damascus_AT_4_2002/diary1.html",												"Roan Mountain as seen from the southern AT. April 2002.", 2002,40);imageDB[41] = new ImageObj("Erwin_Damascus_AT_4_2002/diary1.html",												"A view from a Tennsessee bald just past Carter Gap. April 2002.", 2002,41);imageDB[42] = new ImageObj("Erwin_Damascus_AT_4_2002/diary1.html",												"The green tunnel. Well sort of. April 2002.", 2002,42);imageDB[43] = new ImageObj("Alaska_5_2002/diary1.html",												"Looking back towards Anchorage from the Tony Knowles Trail. May 2002.", 2002,43);imageDB[44] = new ImageObj("Alaska_5_2002/diary1.html",												"Me on the Ruth Glacier on the slopes of Mt. McKinley. May 2002.", 2002,44);imageDB[45] = new ImageObj("Alaska_5_2002/diary1.html",												"Me on the Ruth Glacier on the slopes of Mt. McKinley. May 2002.", 2002,44);imageDB[46] = new ImageObj("Alaska_5_2002/diary1.html",												"Moose in Denali National Park. May 2002.", 2002,46);imageDB[47] = new ImageObj("Alaska_5_2002/diary1.html",												"Harlequin duck in Denali National Park. May 2002.", 2002,47);imageDB[48] = new ImageObj("Alaska_5_2002/diary1.html",												"Mount McKinley (Denali) in the distance. May 2002.", 2002,48);imageDB[49] = new ImageObj("Alaska_5_2002/diary1.html",												"Red bill oyster catchers at the Sealife Center in Seward. May 2002.", 2002,49);imageDB[50] = new ImageObj("Alaska_5_2002/diary1.html",												"Whales in the fjords near Seward. May 2002.", 2002,50);imageDB[51] = new ImageObj("Alaska_5_2002/diary1.html",												"Glaciers, mountains, and deep blue waters of Resurrection Bay. May 2002.", 2002,51);imageDB[52] = new ImageObj("Alaska_5_2002/diary1.html",												"An Alaskan ghost forest seen from the train heading to Anchorage. May 2002.", 2002,52);imageDB[53] = new ImageObj("Alaska_5_2002/diary1.html",												"Kittywakes in Prince William Sound. May 2002.", 2002,53);imageDB[54] = new ImageObj("Alaska_5_2002/diary1.html",												"Blue ice glaciers and icebergs in Prince William Sound. May 2002.", 2002,54);imageDB[55] = new ImageObj("Alaska_5_2002/diary1.html",												"Sea ottters resting upon icebergs. May 2002.", 2002,55);imageDB[56] = new ImageObj("Wind_River_Range_9_2003/diary1.html",												"Dad's Lake, Wind River Range, WY, Sep. 2003.", 2003,56);imageDB[57] = new ImageObj("Wind_River_Range_9_2003/diary1.html",												"Looking back towards Hailey Pass, Wind River Range, WY, Sep. 2003.", 2003,57);imageDB[58] = new ImageObj("Wind_River_Range_9_2003/diary1.html",												"Marm's Lake in snow, Wind River Range, WY, Sep. 2003.", 2003,59);imageDB[59] = new ImageObj("Wind_River_Range_9_2003/diary1.html",												"Looking back from near the top of Waskakie Pass, Wind River Range, WY, Sep. 2003.", 2003,58);imageDB[60] = new ImageObj("Nordhouse_Dunes_2_2003/diary1.html",												"In Nordhouse Dunes Wilderness Area, MI.. Feb. 2003.", 2003,60);imageDB[61] = new ImageObj("Nordhouse_Dunes_2_2003/diary1.html",												"Me at an artisian spring near Luddington, MI. Feb. 2003.", 2003,61);imageDB[62] = new ImageObj("zion_paria_7_2002/diary1.html",												"Near the end of the Zion Narrows. Zion and Paria, July 2002", 2002,62);imageDB[63] = new ImageObj("zion_paria_7_2002/diary1.html",												"Court of the Patriarchs in Zion NP. Zion and Paria, July 2002.", 2002,63);imageDB[64] = new ImageObj("zion_paria_7_2002/diary1.html",												"Near Bucksin Gulch and Paria Canyon junction. Zion and Paria, July 2002.", 2002,64);imageDB[65] = new ImageObj("Tucson_AZ_12_2002/diary1.html",												"In the Chiricahua National Monument. Tucson, Dec. 2002.", 2002.95,65);imageDB[66] = new ImageObj("Tucson_AZ_12_2002/diary1.html",												"Barrel Cactus in eastern Saguaro National Park, Tucson, Dec. 2002.", 2002.95,66);imageDB[67] = new ImageObj("Tucson_AZ_12_2002/diary1.html",												"Petraglyphs in western Suguaro National Park. Tucson, Dec. 2002.", 2002.95,67);imageDB[68] = new ImageObj("AT_Hike_NC-TN_4_2003/diary1.html",												"Start of A.T. hike in North Carolina and Tennesee, April 2003.", 2003.25,68);imageDB[69] = new ImageObj("AT_Hike_NC-TN_4_2003/diary1.html",												"Bluets along the Appalachian Trail in NC., April 2003.", 2003.25,69);imageDB[70] = new ImageObj("AT_Hike_NC-TN_4_2003/diary1.html",												"Nantahala River at the NOC in NC., April 2003.", 2003.25,70);imageDB[71] = new ImageObj("AT_Hike_NC-TN_4_2003/diary1.html",												"AT in the forests of Great Smoky Mountain National Park., April 2003.", 2003.25,71);imageDB[72] = new ImageObj("AT_Hike_NC-TN_4_2003/diary1.html",												"Clouds and clear sky in Great Smoky Mountain National Park, April 2003.", 2003.25,72);imageDB[73] = new ImageObj("Waterloo_Pinckney_4_2003/diary1.html",												"Green Lake near the Waterloo-Pinckney Trail in Michigan, April 2003.", 2003.25,73);imageDB[74] = new ImageObj("Waterloo_Pinckney_11_2002/diary1.html",												"Along the wintery Waterloo-Pinckney Trail in Michigan, November 2002.", 2002.9,74);imageDB[75] = new ImageObj("Tucson_AZ_12_2003/diary1.html",												"A rainbow over Tubac, Arizona, December 2003.", 2003.95,75);imageDB[76] = new ImageObj("Tucson_AZ_12_2003/diary1.html",												"Saguaro cactus bend in marvelous ways on a loop hike near the Garwood Dam. Tucson, AZ., December 2003.", 2003.95,76);imageDB[77] = new ImageObj("AT_PA_501_to_Palmerton_7_2003/diary1.html",												"Wildflowers along the Pennsylvania Appalachian Trail, July 2003.", 2003.6,77);imageDB[78] = new ImageObj("AT_PA_501_to_Palmerton_7_2003/diary1.html",												"Rattlesnakes along the Pennsylvanian Appalachian Trail, July 2003.", 2003.6,78);imageDB[79] = new ImageObj("Falcon_Ridge_Folk_Festival_2003/diary1.html",												"A view of a portion of the Falcon Ridge Folk Festival in full swing, July 2003.", 2003.6,79);imageDB[80] = new ImageObj("Vermont_Inn_to_Inn_8_2003/diary1.html",												"Climbing towards Airport Lookout in Vermont, August 2003.", 2003.75,81);imageDB[81] = new ImageObj("Vermont_Inn_to_Inn_8_2003/diary1.html",												"My parent at a lookout on top of Claredon Gorge in Vermont, August 2003.", 2003.75,80);imageDB[82] = new ImageObj("Isle_Royale_6_2003/diary1.html",												"The patriotic moose of St. Ignace, Michigan, June 2003.", 2003.5,82);imageDB[83] = new ImageObj("Isle_Royale_6_2003/diary1.html",												"Lake Michigan shoreline from a barrier dune at Lake Michigan National Forest, June 2003.", 2003.5,83);imageDB[84] = new ImageObj("Isle_Royale_6_2003/diary1.html",												"Loons in Rock Harbor, Isle Royale, Michigan, June 2003.", 2003.5,84);imageDB[85] = new ImageObj("Isle_Royale_6_2003/diary1.html",												"The Rock Harbor lighthouse of Isle Royale, June 2003.", 2003.5,85);imageDB[86] = new ImageObj("Isle_Royale_6_2003/diary1.html",												"A moose hoofprint. Found this print on our climb to Lookout Louise, Isle Royale, June 2003.", 2003.5,86);imageDB[87] = new ImageObj("Isle_Royale_6_2003/diary1.html",												"A kid and a (fox) kit, Rock Harbor, Isle Royale, June 2003.", 2003.5,87);imageDB[88] = new ImageObj("Isle_Royale_6_2003/diary1.html",												"Isle Royale is a haven for moose like this one near Hidden Lake, June 2003.", 2003.5,88);imageDB[89] = new ImageObj("Isle_Royale_6_2003/diary1.html",												"Wildflowers along the Greenstone Trail of Isle Royale, June 2003.", 2003.5,89);imageDB[90] = new ImageObj("Isle_Royale_6_2003/diary1.html",												"Windigo, Isle Royale, June 2003.", 2003.5,90);imageDB[91] = new ImageObj("Isle_Royale_6_2003/diary1.html",												"Looking across Isle Royale from Feldman Ridge, June 2003.", 2003.5,91);imageDB[92] = new ImageObj("Isle_Royale_6_2003/diary1.html",												"The gravel beach at Rainbow Point, Isle Royale, June 2003.", 2003.5,92);imageDB[93] = new ImageObj("Isle_Royale_6_2003/diary1.html",												"The Copper Harbor, Michigan lighthouse, June 2003.", 2003.5,93);imageDB[94] = new ImageObj("Isle_Royale_6_2003/diary1.html",												"July 4<sup>th</sup> perade put on by Copper Harbor, Michigan, June 2003.", 2003.5,94);imageDB[95] = new ImageObj("Tucson_AZ_12_2003/diary1.html",												"My Mom amongst the Cholla cactus on a loop hike near the Garwood Dam. Tucson, AZ., December 2003.", 2003.95,95);imageDB[96] = new ImageObj("Black_Mountain_MI_dogsledding_2_2004/diary1.html",												"I'm ready to go. The dogs aaare set to pull. Black Mountain, Michigan. February 2004", 2004.13,96);imageDB[97] = new ImageObj("Black_Mountain_MI_dogsledding_2_2004/diary1.html",												"A wintery trail in the recreation area. Black Mountain, Michigan. February 2004", 2004.13, 97);imageDB[98] = new ImageObj("Lost_Coast_Trail_N_CA_4_2004/diary1.html",  												"A backpacking adventure along the Lost Coast Trail in N. California. April 2004", 2004.25, 98);imageDB[99] = new ImageObj("Lost_Coast_Trail_N_CA_4_2004/diary1.html",												"A backpacking adventure along the Lost Coast Trail in N. California. April 2004", 2004.25, 99);imageDB[100] = new ImageObj("Lost_Coast_Trail_N_CA_4_2004/diary1.html",												"A backpacking adventure along the Lost Coast Trail in N. California. April 2004", 2004.25, 100);imageDB[101] = new ImageObj("Soo_Locks_Kayak_6_2004/diary1.html",												"A sea kayaking trip along the St. Marys river and thorugh the Sault Ste. Marie Canal, June 10-13, 2004", 2004.5, 101);imageDB[102] = new ImageObj("North_Manitou_Island_MI_7_2004/diary1.html",												"A view from the western shore (looking south) of North Manitou Island, July 2004.", 2004.6, 103);imageDB[103] = new ImageObj("North_Manitou_Island_MI_7_2004/diary1.html",												"The northern beach on North Manitou Island with Lake Michigan on one side and steep bluffs on the other. July 2004", 2004.6, 104);imageDB[104] = new ImageObj("Beartooths_and_Yellowstone_NP_9_2004/diary1.html",												"Mountains from Cooke City, MT. Beartooths &amp; YNP, 9-2004", 2004.75, 105);imageDB[105] = new ImageObj("Beartooths_and_Yellowstone_NP_9_2004/diary1.html",												"Peter corssing Big Moose Lake. Beartooths &amp; YNP, 9-2004", 2004.75, 106);imageDB[106] = new ImageObj("Beartooths_and_Yellowstone_NP_9_2004/diary1.html",												"A snowy Farley Lake. Beartooths &amp; YNP, 9-2004", 2004.75, 107);imageDB[107] = new ImageObj("Beartooths_and_Yellowstone_NP_9_2004/diary1.html",												"Buffalo in Yellowstone National Park. Beartooths &amp; YNP, 9-2004", 2004.75, 108);imageDB[108] = new ImageObj("Agawa_Canyon_Ontario_Canada_8_2004/diary1.html",												"The passenger train that'll carry us into the canyon. Agawa Canyon, Ontario, 8-2004", 2004.65, 109);imageDB[109] = new ImageObj("Agawa_Canyon_Ontario_Canada_8_2004/diary1.html",												"One of the many waterfalls in the canyon. Agawa Canyon, Ontario, 8-2004", 2004.65, 110);imageDB[110] = new ImageObj("Agawa_Canyon_Ontario_Canada_8_2004/diary1.html",												"Near the edge of Black Beaver Lake. Agawa Canyon, Ontario, 8-2004", 2004.65, 111);imageDB[111] = new ImageObj("Agawa_Canyon_Ontario_Canada_8_2004/diary1.html",												"Looking down upon the canyon. Agawa Canyon, Ontario, 8-2004", 2004.65, 112);imageDB[112] = new ImageObj("Soo_Locks_Kayak_6_2004/diary1.html",												"Me on a sea kayaking trip along the St. Marys river and thorugh the Sault Ste. Marie Canal, June 10-13, 2004", 2004.5, 102);imageDB[113] = new ImageObj("Tucson_AZ_2_2005/diary1.html",												"Backpacking in Saguaro National Park&mdash;Juniper Basin, February, 2005", 2005.125, 113);imageDB[114] = new ImageObj("Tucson_AZ_2_2005/diary1.html",												"Backpacking in Saguaro National Park&mdash;Douglas Springs, February, 2005", 2005.125, 114);imageDB[115] = new ImageObj("Tucson_AZ_2_2005/diary1.html",												"Backpacking in Saguaro National Park&mdash;Saguaro Cactus, February, 2005", 2005.125, 115);imageDB[116] = new ImageObj("Tucson_AZ_2_2005/diary1.html",												"Tucson area and Sabino Canyon&mdash;Tohono Chul Park, February, 2005", 2005.125, 116);imageDB[117] = new ImageObj("Tucson_AZ_2_2005/diary1.html",												"Tucson and and Sabino Canyon&mdash;Santa Catalina Mtns., February, 2005", 2005.125, 117);imageDB[118] = new ImageObj("Michgain_Dayhikes/snow2004_2005/index2.html",												"A mapping day in the Waterloo Recreation Area, Michigan, January, 2005", 2005.1, 118);imageDB[119] = new ImageObj("Michgain_Dayhikes/snow2004_2005/index3.html",												"A mapping day in the Waterloo Recreation Area, Michigan, January, 2005", 2005.1, 119);imageDB[120] = new ImageObj("Waterloo_Pinckney_4_2005/diary1.html",												"Overnight trip on the Waterloo-Pinckney Trail, Michigan, April, 2005", 2005.33, 120);imageDB[121] = new ImageObj("Isle_Royale_6_2005/diary1.html",												"Coming in to Land on Isle Royale, Michigan, June, 2005", 2005.5, 121);imageDB[122] = new ImageObj("Isle_Royale_6_2005/diary1.html",												"A view from the Greenstone Trail on Isle Royale, Michigan, June, 2005", 2005.5, 122);imageDB[123] = new ImageObj("Isle_Royale_6_2005/diary1.html",												"Avian Wildlife at McCArgoe Cove, Isle Royale, Michigan, June, 2005", 2005.5, 123);imageDB[124] = new ImageObj("Isle_Royale_6_2005/diary1.html",												"Sunrise at Moskey Basin, Isle Royale, Michigan, June, 2005", 2005.5, 124);imageDB[125] = new ImageObj("Isle_Royale_6_2005/diary1.html",												"A massive beaver dam on the way to Lane Cove, Isle Royale, Michigan, June, 2005", 2005.5, 125);imageDB[126] = new ImageObj("Isle_Royale_6_2005/diary1.html",												"Moose at Rock Harbor, Isle Royale, Michigan, June, 2005", 2005.5, 126);imageDB[127] = new ImageObj("Isle_Royale_6_2005/diary1.html",												"Loons in Tobin Harbor, Isle Royale, Michigan, June, 2005", 2005.5, 127);imageDB[128] = new ImageObj("Isle_Royale_6_2005/diary1.html",												"Leaving Isle Royale, Michigan, June, 2005", 2005.5, 128);imageDB[129] = new ImageObj("AT_Davenport_Gap_Allen_Gap_October_2005/diary1.html",												"Near Davenport Gap on the Appalachian Trail, October, 2005", 2005.8, 129);imageDB[130] = new ImageObj("AT_Davenport_Gap_Allen_Gap_October_2005/diary1.html",												"Looking along the Appalachian Trail from Max patch, October, 2005", 2005.8, 130);imageDB[131] = new ImageObj("AT_Davenport_Gap_Allen_Gap_October_2005/diary1.html",												"The French Broad river, Appalachian Trail, October 2005", 2005.8, 131);imageDB[132] = new ImageObj("Tucson_AZ_12_2004/diary1.html",												"Walking towards Wassen Peak near Man-Oh-Gah, Tucson, December 2004", 2004.95, 132);imageDB[133] = new ImageObj("Tucson_AZ_12_2004/diary1.html",												"On the Garwood Dam in Saguaro National Park, Tucson December 2004", 2004.95, 133);imageDB[134] = new ImageObj("Tucson_AZ_12_2004/diary1.html",												"Teddy Bear Cholla Cactus, cute and painful near Golden Gate Pass, Tucson, December 2004", 2004.95, 134);imageDB[135] = new ImageObj("Tucson_AZ_12_2004/diary1.html",												"An observator on Kitt Peak at sunset with a near full moon, Tucson, December 2004", 2004.95, 135);imageDB[136] = new ImageObj("Tucson_AZ_12_2004/diary1.html",												"Brown Mountain Trail, Tucson, December 2004", 2004.95, 136);imageDB[137] = new ImageObj("Tucson_AZ_12_2004/diary1.html",												"Looking out from South Mountain Park, Phoenix, December 2004", 2004.95, 137);imageDB[138] = new ImageObj("Palm_Desert_CA_12_2005/diary1.html",												"The Bob Hope Estate below, Palm Desert, December 2005", 2005.95, 138);imageDB[139] = new ImageObj("Palm_Desert_CA_12_2005/diary1.html",												"Yuccas in the San Barnadino Wilderness, Palm Desert, December 2005", 2005.95, 139);imageDB[140] = new ImageObj("Palm_Desert_CA_12_2005/diary1.html",												"Pushawalla Oasis in the Indo Hills, Palm Desert, December 2005", 2005.95, 140);imageDB[141] = new ImageObj("Palm_Desert_CA_12_2005/diary1.html",												"The pool behind Bark Dam in Joshua Tree National Park, Palm Desert, December 2005", 2005.95, 141);imageDB[142] = new ImageObj("Palm_Desert_CA_12_2005/diary1.html",												"A Joshua Tree in Joshua Tree, Palm Desert, December 2005", 2005.95, 142);imageDB[143] = new ImageObj("Palm_Desert_CA_12_2005/diary1.html",												"Standing on the shore of the Salton Sea, Palm Desert, December 2005", 2005.95, 143);imageDB[143] = new ImageObj("High_Uintas_Utah_August_2005/diary1.html",												"Jordan Lake in the Uintas Mountains, Utah, August 2005", 2005.7, 144);imageDB[143] = new ImageObj("High_Uintas_Utah_August_2005/diary1.html",												"Me under my Tarptent, Uintas Mountains, Utah, August 2005", 2005.7, 145);imageDB[144] = new ImageObj("Little_Cottonwood_Canyon_Utah_2_2006/diary1.html",												"A short snowshoe trip in Little Cottonwood Canyon, Utah, January 2006", 2006.1, 146);imageDB[145] = new ImageObj("Max_Patch_and_Roan_Mountain_1_2006/diary1.html",												"On Walnut Mtn. along the Appalchian Trail, January 2006", 2006.1, 147);imageDB[146] = new ImageObj("Max_Patch_and_Roan_Mountain_1_2006/diary1.html",												"At Beauty Spot on the Appalachian Trail, January 2006", 2006.1, 148);imageDB[147] = new ImageObj("Saguaro_National_Park_April_2006/diary1.html",												"I'm standing on top of Ranque Verde Peak, Saguaro National park, April 2006", 2006.33, 149);imageDB[148] = new ImageObj("Saguaro_National_Park_April_2006/diary1.html",												"Looking out towards Rincon Peak, Saguaro National park, April 2006", 2006.33, 150);imageDB[149] = new ImageObj("Saguaro_National_Park_April_2006/diary1.html",												"The sun is setting on Mica Mountain, Saguaro National park, April 2006", 2006.33, 151);imageDB[150] = new ImageObj("Exploring_Malta_March_2006/diary1.html",												"Looking out towards St. Pauls island on our first full day in Malta Malta, March 2006", 2006.25, 152);imageDB[151] = new ImageObj("Exploring_Malta_March_2006/diary1.html",												"Standing just within the walls of the Silent City of Mdina, Malta, March 2006", 2006.25, 153);imageDB[152] = new ImageObj("Exploring_Malta_March_2006/diary1.html",												"Looking out across the Mediterranian Sea from Dingli Cliffs, Malta, March 2006", 2006.25, 154);imageDB[153] = new ImageObj("Exploring_Malta_March_2006/diary1.html",												"Here I am at the Azure Arch on the island of Gozo which is part of the Maltese islands. Malta, March 2006", 2006.25, 155);imageDB[154] = new ImageObj("Exploring_Malta_March_2006/diary1.html",												"The Red Tower. Once part of an extensive network of fortified towers built to guard against invastion. Malta, March 2006", 2006.25, 156);imageDB[155] = new ImageObj("Exploring_Malta_March_2006/diary1.html",												"The rugged coast of Malta looking north. Malta, March 2006", 2006.25, 157);imageDB[156] = new ImageObj("Exploring_Malta_March_2006/diary1.html",												"My parents. This would make a ifne lookout for soldier or bird hunters. Malta, March 2006", 2006.25, 158);imageDB[157] = new ImageObj("Exploring_Malta_March_2006/diary1.html",												"The most rugged bit of hiking just after Ghar Lapsi, Malta, March 2006", 2006.25, 159);imageDB[158] = new ImageObj("Exploring_Malta_March_2006/diary1.html",												"A view of the Co-Cathedral of St. John in the capital Valletta. Malta, March 2006", 2006.25, 160);imageDB[159] = new ImageObj("Exploring_Malta_March_2006/diary1.html",												"Barraka Gardens where these canon once served to help set time and now are used in re-enactments, Valletta, Malta, March 2006", 2006.25, 161);imageDB[159] = new ImageObj("Exploring_Malta_March_2006/diary1.html",												"Barraka Gardens where these canon once served to help set time and now are used in re-enactments, Valletta, Malta, March 2006", 2006.25, 161);imageDB[160] = new ImageObj("isle_royale_6_2006/diary1.html",												"A view from Feldtmann Ridge. Isle Royale, June 2006", 2006.5, 162);imageDB[161] = new ImageObj("isle_royale_6_2006/diary1.html",												"Looking along the beach at Siskiwit Bay. Some of the nicest walking I would do this trip. Isle Royale, June 2006", 2006.5, 163);imageDB[162] = new ImageObj("isle_royale_6_2006/diary1.html",												"The sun gleams off Hatchet Lake where I would spend a very lazy afternoon. Isle Royale, June 2006", 2006.5, 164);imageDB[163] = new ImageObj("isle_royale_6_2006/diary1.html",												"Sunset over Tobin Harbor. Isle Royale, June 2006", 2006.5, 165);imageDB[164] = new ImageObj("isle_royale_6_2006/diary1.html",												"Paddling through the channel between islands near Hidden Lake. Isle Royale, June 2006", 2006.5, 166);imageDB[165] = new ImageObj("Seward_Peninsula_Alaska_summer_2005/diary1.html",												"Gordon crossing one of many streams in the Alaskan tundra. Seward Peninsula, Alaska, June 2006", 2005.6, 167);imageDB[166] = new ImageObj("Seward_Peninsula_Alaska_summer_2005/diary1.html",												"A typical campsite for us during this adventure in the Alaskan bush. Seward Peninsula, Alaska, June 2006", 2005.6, 168);imageDB[167] = new ImageObj("Seward_Peninsula_Alaska_summer_2005/diary1.html",												"About as dark as it will ever get during this trek. Seward Peninsula, Alaska, June 2006", 2005.6, 169);imageDB[168] = new ImageObj("Seward_Peninsula_Alaska_summer_2005/diary1.html",												"What I have come to think of as arctic cottonballs. Their is a lot of life up here in the far north. Seward Peninsula, Alaska, June 2006", 2005.6, 170);imageDB[169] = new ImageObj("Seward_Peninsula_Alaska_summer_2005/diary1.html",												"Flowers are not the only things living up here. Caribou make their homes here too. Seward Peninsula, Alaska, June 2006", 2005.6, 171);imageDB[170] = new ImageObj("Seward_Peninsula_Alaska_summer_2005/diary1.html",												"Another example of the variety of wild flowers you can find. Seward Peninsula, Alaska, June 2006", 2005.6, 172);imageDB[171] = new ImageObj("Seward_Peninsula_Alaska_summer_2005/diary1.html",												"Willows grow tall and sometimes thick up here. Fortunately for us we did not have to slog through them too much. Seward Peninsula, Alaska, June 2006", 2005.6, 173);imageDB[172] = new ImageObj("Seward_Peninsula_Alaska_summer_2005/diary1.html",												"Cold and windy weather would descend upon us on our final few days. Seward Peninsula, Alaska, June 2006", 2005.6, 174);imageDB[173] = new ImageObj("North_Manitou_Island_7_2000/diary1.html",												"Sunset on North Manitou Island near it's southern tip. July 2000.", 2000.6, 175);imageDB[174] = new ImageObj("isle_royale_8_2006/diary1.html",												"Leaving the dock at Tobin Harbor, Isle Royale. August 2006", 2006.7, 176);imageDB[175] = new ImageObj("isle_royale_8_2006/diary1.html",												"Another view of me in my Alpacka near Tobin Harbor dock paddling the clear green waters. August 2006", 2006.7, 177);imageDB[176] = new ImageObj("isle_royale_8_2006/diary1.html",												"At the Tobin Harbor-Duncan Bay portage trail. The Alpacka is easy to hold though a bit awkward to protect against brush.  August 2006", 2006.7, 178);imageDB[177] = new ImageObj("isle_royale_8_2006/diary1.html",												"A morning view of my campsite at Duncan Bay - great spot. August 2006", 2006.7, 179);imageDB[178] = new ImageObj("isle_royale_8_2006/diary1.html",												"Gazing down upon Chippewa Harbor from a hill top above group site #1. August 2006", 2006.7, 180);imageDB[179] = new ImageObj("isle_royale_8_2006/diary1.html",												"I would explore this stream off Chippewa Harbor twice trying to find the portage point. I never did. August 2006", 2006.7, 181);imageDB[180] = new ImageObj("isle_royale_8_2006/diary1.html",												"Paddling down Rock Harbor. The onld Rock harbor lighthouse is in view. August 2006", 2006.7, 182);imageDB[181] = new ImageObj("isle_royale_8_2006/diary1.html",												"The lighthouse on Passage Island is still in active use today though now it is fully automated. August 2006", 2006.7, 183);function ResetImages(sizeOfDB) {/* Reset image numbers so ramdomizer can work right. 	 sizeOfDB:		Number of entries to populate in the array of random numbers.	 	 Returns a reset array*/	var tempDB = new Array();	for (i = 0; i < sizeOfDB; i++) {		tempDB[i] = -1;	}	return tempDB;} // ResetImagesfunction myRND (num) {// Return a random number from 0 to "num"	value = Math.round(Math.random() * num);	return value;} // myRNDfunction PickImages(DBLength, theDB) {/* Build an array of unique random numbers	 DBLength:	integer. Length of the array to populate	 theDB:			Array of integers. The random image IDs database to work with.	 	 returns an arry of unique random numbers.*/	var temp, success, j;//	var tempDB = new Array();	for (i = 0; i < DBLength; i++ ) {		// loop until an unused random number has been found.		do {			success = true;			temp = myRND( DBLength - 1 );						// see if the number has been used yet.			for (j = 0; j < theDB.length; j++ ) {				if ( (success == true) && (temp == theDB[j]) ) { 					success = false;				}			} // for		} while ( success == false )		theDB[i] = temp;	// save image number	}		return theDB;} // PickImagesfunction BuildImageDB(fromAtLeastYear) {/* Using the complete image database (imageDB) create and return an array of image objects	 whose .date fields are greater than or equal to FROMATLEASTYEAR.	 	 fromAtLeastYear:	integer. Used to limit which images to include in the database.	 	 Returns and array of iamge objects.*/	var tempDB = new Array();	var j = 0;	for (i = 0; i < imageDB.length; i++ ) {		if ( imageDB[i].date >= fromAtLeastYear ) {			tempDB[j] = new ImageObj(imageDB[i].url, imageDB[i].caption, imageDB[i].date, imageDB[i].imageNum, imageDB[i].tag);			j = j + 1;		}	}		return tempDB;	} // BuildImageDB	 function LoadImage(num, theImageDB, theImageDBRndIDs)	{/* Get the request image as definted by NUM.      Ignore baseFilePath if the URL for the specified image is not a relative URL. --3/31/03	 num: 						i	nteger. Index into the imagesDB database array	 theImageDB:				Array of image objects. Default is the complete database (imageDB).	 theImageDBRndIDs:	Array of integers. The random numbers that ID which image ojbects to use.	 										 Returns HTML code that will load the requested image and image link.*/	var theImageID = ( theImageDBRndIDs == null ) ? images[num] : theImageDBRndIDs[num];	theImageDB = ( theImageDB == null ) ? imageDB : theImageDB;	theImageObject = theImageDB[theImageID];		var HTMLstr, temp, builtURL;	temp = theImageObject.imageNum;	if ( temp < 10) { temp = "0" + temp; }//	if (theImage < 10) { temp = "0" + theImage };	if ( theImageObject.url.indexOf("http://") >= 0 ) {	// if the URL is not a relative URL the use it alone		builtURL = theImageObject.url;	} else {	// the URL is a relative URL so baseFilePath must be pre-pended.		builtURL = baseFilePath + theImageObject.url;	}	HTMLstr = "<p align='center' style='font-family: Times, Serif; font-size: 10px;'><a href=\"" + builtURL + "\" target=\"_top\"><img hspace=0 vspace=0 border=0  src=\"" + baseFilePath + "images/image" + temp + ".jpg\" alt=\"image\"><\/a><br>" + theImageObject.caption + "</p>";	return HTMLstr;} // LoadImagefunction LoadImageCSS(num, rightSide, padding, theImageDB)	{/* Get the request image as definted by NUM. This routine uses to load the image/caption properly.	 num: 				Integer. Index into the imagesDB database array	 rightSide: 	Opptional Boolean. Default FALSE. If TRUE the returned objects will float 	 							on the right side instead of the left.	 padding:			Optional Boolean. Default TRUE. If false no extra padding is added.	 theImageDB:			Array of image objects. Default is the complete database (imageDB).	 	Returns HTML code that will load the requested image and image link.*/	theImageDB = ( theImageDB == null ) ? imageDB : theImageDB;	var str, temp;	var theImage = images[num];			// Get the image name (e.g, 01, 03, 11).	rightSide = ( rightSide == null ) ? false : rightSide;	padding = ( padding == null ) ? true: padding;		temp = theImage;	if (theImage < 10) { temp = "0" + theImage };	if ( rightSide != true ) {		str = "<p style='float: left; ";	} else {		str = "<p style='float: right; ";	}		if ( padding == true ) {		str += "padding-top: 1em; padding-bottom: 3em; ";	}	str += "background-color: inherit; text-align: center; width: 100px; font-size: 66%'>";		str += "<a href=\"" + baseFilePath + theImageDB[ theImage ].url + "\" target=\"_top\"><img alt='image' src=\"" + baseFilePath + "images/image" + temp + ".jpg\"><\/a><br>" + theImageDB[ theImage ].caption + "<\/p>";	return str;} // LoadImageCSSfunction SetCookie(name, value, expire) {// Sets cookie values. Expiration date is optional//   document.cookie = name + "=" + escape(value)   + ((expire == null) ? "" : ("; expires=" + expire.toGMTString())) +    "; domain=www.speakeasy.org/%7Ekrk; path=/";} // SetCookiefunction GetCookie(cookieName) {/* return a value for the requested cookie. NULL is returned if the cookie is not found.	 cookieName: 	string. Name of the cookie to retrieve.*/   var search = cookieName + "="   if (document.cookie.length > 0) { // if there are any cookies      offset = document.cookie.indexOf(search)       if (offset != -1) { // if cookie exists       	offset += search.length         // set index of beginning of value        end = document.cookie.indexOf(";", offset)         // set index of end of cookie value        if (end == -1)            end = document.cookie.length        return unescape(document.cookie.substring(offset, end))      }    }   return null;				// no cookie becuase it has expired} // GetCookiefunction LastHereOn(cookieName) {/* register a cookie tied to the header frame. The cookie, "backpackingLastVisited" determines whether	 the images should be changed. If a user hasn't visited the page in the past 3 hours the images can	 change. It stores the indexes of images to be shown that are kept in the imageDB array.	 cookieName:	string. the name of the cookie.*/   var theTime = new Date();   var hours = 24;								// expiration delay of 24 hours   var expires = new Date();   var value = "";      if ( cookieName == "backpackingLastVisited" ) {   	hours = 0.1;																				// five minutes delay (1/12 of 1 hour)   }   for (var i = 0; i < images.length; i++) {   	value += images[i] + " ";   }   expires.setTime( theTime.getTime() + (1000 * 60 * 60 * hours) );	// current time + "hours"   SetCookie(cookieName, value, expires)} // LastHereOnfunction CreateDB(cookieName, initialPath)/* Biuld the image and title databases based on the information provided, if found, from	 the requested cookie. If no cookie is found build the database from scratch.	 	cookieName:		string. Name of the cookie to retrieve to determine if the images should be built	initialPath:	string. The base file path to the images directory.*/// If the cookie doesn't exist or has expired then reload a new set of images.{	var value = GetCookie(cookieName);	var theImages;	baseFilePath = initialPath;	if ( (value == null) || ( value.length == 1 )  ) {		images = ResetImages(imageDB.length);		images = PickImages(imageDB.length, images);		LastHereOn(cookieName);				// Set the cookie and store the images indexes chosen	} else {		theImages = new String(value);		images = theImages.split(" ");	}} // CreateDB
