var thisHREF = location.href;

function wrtEntry(omtr,tmtr,stln,tim,dat,stat,locn,gal,ppg,cst,txt1,txt2,pix)	{ 		// pix='0001,640,512,128,102,29'
	wrtOdo(omtr,tmtr,stln);
	wrtDat(tim,dat);
	if (stat !='' && stat != null) wrtStln(stat);
	if (locn !='' && locn != null) wrtLoc(locn);
	if (gal !='' && gal != null) wrtMlg(gal,ppg,cst);
	if (pix =='') wrtTxt(txt1);
	else wrtTxPx();
	if (stat !='' && stat != null) document.write('\t\t\t<div id="ao">[<a href="#">top<\/a>\/<a href="#fin">end<\/a>]<\/div>\r\t\t<\/td><\/tr>\r\r');
	else document.write('\t\t<\/td><\/tr>\r\r');	}

function wrtOdo(omtr,tmtr,stln)	{	//	Odometer, Tripmeter, State Line
	if (omtr == '') omtr = '&nbsp;';
	document.write('\t<tr valign="top">\r\t\t<td id="odo">' + omtr);
 	if (tmtr != '') document.write('<div id="trp">' + tmtr + '<\/div>');
 	if (stln != '') document.write('<a name="' + stln + '"><\/a>');
 	document.write('<\/td>\r');	}
 
function wrtDat(tim,dat)	{	//	Time, Date
	document.write('\t\t<td><div id="date">' + tim);
 	if (tim != '' && dat != '') document.write(' - &nbsp; ');
 	if (dat != '') document.write(dat);
 	document.write('<\/div>\r');	}
 
function wrtStln(stat)	{	//	State
	document.write('\t\t\t<div id="stl"> &nbsp; &nbsp; ' + stat + ' STATE LINE<br>&nbsp;<\/div>\r');	}
 
function wrtLoc(locn)	{	//	Location
	document.write('\t\t\t<div id="loc">' + locn + '<\/div><hr width="200">\r');	}
 
function wrtMlg(gal,ppg,cst)	{	//	Gallons, PricePerGallon, Cost
	document.write('\t\t\t<div id="mpg">' + gal + ' Gal &nbsp;@&nbsp; $' + ppg);
	document.write(' /Gal &nbsp;=&nbsp; $' + cst + '<\/div>\r');	}
 
function wrtTxt(txt)	{	//	Text
	if (txt != '') document.write('\t\t\t<div id="text">\r\t\t\t\t' + txt + '\r\t\t\t<\/div>\r');	}
 
function wrtTxPx()	{	var pics = new Array(); for (l=10;l<wrtTxPx.caller.arguments.length;l++) {
	pics[l-10] = wrtTxPx.caller.arguments[l].toString();	}	//	Text and Pictures
	output='\t\t\t<div id="text">\r\t\t\t\t' + pics[0] +'\r';
	output+='\t<p><center><table border=1><tr>\r';
	for (a=2;a<pics.length;a++)	{	var pic=new Array();	var picElmt = 0; pic[picElmt] = '';	var arg = pics[a].toString();
		for (i=0;i<arg.length;i++)	{ var ltr=arg.charAt(i);
			if ( ltr != ',') pic[picElmt] = pic[picElmt] + ltr;
			else {picElmt++; pic[picElmt] = '';}	}
		var pic6 = pic[6]; if (pic6==null) var pic6='';
		if (pic6>=1 && pic6<=6) {var cs = 'colspan='+pic6; pic6=''} else cs='';
		if (pic6=='cb' || pic6=='' || pic6=='tr') output+='\t\t<td '+cs+' align=center>';
		output+='<a href="javascript:view(\''+pic[0]+'\',\''+pic[1]+'\',\''+pic[2]+'\',capt'+pic[0]+')">\r';
		output+='\t\t\t<img src="thumbs\/'+pic[0]+'.jpg" border=0 width='+pic[3]+' height='+pic[4]+'>';
		output+='<\/a><br>('+pic[1]+'x'+pic[2]+') &nbsp; '+pic[5]+'k';
		if (pic6.indexOf('c')==0) output+='\t\t<br>';
		if (pic6=='end' || pic6=='') output+='<\/td>\r';
		if (pic6=='tr') output+='\t<\/tr><tr>\r';	}
	output+='\t<\/tr><\/table><\/center>\r';
	if (pics[1] != '') output+='\t\t\t\t' + pics[1] +'\r';
	document.write(output);	}
 


if (navigator.appName.substring(0,2) == 'Ne' || navigator.appName.substring(0,2) == 'Mo') {
	var margDim = '0';}
else {var margDim = '-16';}
if (navigator.appVersion.indexOf('Win') > '-1') {var margDim = '2';}
var fulsiz = '';
function openWindow(wsize,hsize) {
	var windopts ='menubar=no,status=no,width='+ wsize +',height='+ hsize +',screenX=30,left=30,scroll=no';
	fulsiz = window.open('','_blank',windopts);
	setTimeout('',1000) }
function view(imgname,wsize,hsize,capt) {
	var wdim = (wsize-0) + (margDim-0);
	var hdim = (hsize-0) + (margDim-0) + 70;
	openWindow(wdim,hdim)
	var imgpath = "pix/" + imgname + ".jpg";		//	"../../../Camera/2001-AMO/" + 
	fulsiz.document.open();
	fulsiz.document.write('<html><body bgcolor="#000000" text="#00ff00" marginwidth="0" '+'marginheight="0" topmargin="0" leftmargin="0" '+
		'rightmargin="0" bottommargin="0" onBlur="self.close()\;">' +
		'\n<img src="' + imgpath + '" width="'+ wsize +'" height="'+ hsize +'"><center><h4>'+capt+'<\/h4><\/body><\/html>');
	fulsiz.document.close() }

capt0001 = '29 July 2001 - 19:41 EST: <br> A striking cloud formation just east of Dana, Indiana.';
capt0002 = '30 July 2001 - 10:28 EST: <br> A cool looking covered bridge in the vicinity of Greenup, Illinois.';
capt0003 = '30 July 2001 - 12:44 CST: <br> My bike parked at the plaque at the edge of the park under the Gateway Arch.';
capt0004 = '30 July 2001 - 12:44 CST: <br> Looking up at the Gateway Arch, with the flags fluttering overhead.';
capt0005 = '30 July 2001 - 12:45 CST: <br> The south leg of the arch.';
capt0006 = '30 July 2001 - 12:46 CST: <br> The north leg of the arch.  (Looks kinds like the last picture, huh?)';
capt0007 = '30 July 2001 - 12:47 CST: <br> From under the arch, this shot shows the riverfront plaza from which I took the shots of the arch, and the flags which appear in the picture of its apex.';
capt0008 = '31 July 2001 - 04:59 CST: <br> Sunrise in Windsor, Missouri, as I\'m breaking camp in an empty field.';
capt0010 = '31 July 2001 - 05:05 CST: <br> Another shot of breaking camp in Windsor, Missouri at sunrise, though with the autoexposure more focused on the sky than on the subject. Oops!';
capt0011 = '31 July 2001 - 16:55 CST: <br> ';
capt0012 = '31 July 2001 - 16:56 CST: <br> ';
capt0014 = '31 July 2001 - 18:58 CST: <br> ';
capt0015 = '01 August 2001 - 06:34 CST: <br> Sunrise in the middle of the Kansas plains.';
capt0016 = '01 August 2001 - 09:25 CST: <br> Colorado ahead, Kansas behind.  (And me, stuck in the middle with you...) <br> Despite the visual evidence presented here, Colorado actually <i>is</i> rather colorful.';
capt0017 = '01 August 2001 - 11:12 CST: <br> ';
capt0018 = '01 August 2001 - 12:37 CST: <br> ';
capt0019 = '01 August 2001 - 12:39 MST: <br> ';
capt0020 = '01 August 2001 - 12:41 MST: <br> ';
capt0022 = '01 August 2001 - 17:31 MST: <br> ';
capt0023 = '01 August 2001 - 17:35 MST: <br> "Damn! It\'s cold up here!!"  My sentiment upon finishing the ride up the overcast side of Cottonwood Pass.  At 12,126 feet above sea level, this was the highest elevation on this trip.';
capt0024 = '01 August 2001 - 17:42 MST: <br> The view looking down the westward side of Cottonwood Pass.  The eastward side is paved, but the westward side is not.';
capt0025 = '01 August 2001 - 17:47 MST: <br> The view looking back down the eastward side of Cottonwood Pass.';
capt0026 = '02 August 2001 - 08:52 MST: <br> Bill, standing by his mailbox, with the town of Tincup visible behind him.  Most of the houses in town are out of view behind the buildings on the right.  This is the main road. ';
capt0027 = '02 August 2001 - 14:58 MST: <br> Bill\'s two-room luxury resort, complete with outhouse to the right and my tent to the left.  Legend has it that in the 1890\'s this was a thriving brothel serving the miners of Tincup.';
capt0028 = '02 August 2001 - 15:00 MST: <br> A view including Bill\'s Willys Jeep with custom lawnchair rumble seat, and my bike.  Note the unique Olympic Reviewing Stand, added to the house sometime in the mid-20th century.';
capt0029 = '02 August 2001 - 15:02 MST: <br> This view shows Bill\'s shack in context.  The adjacent shack to the left has fallen almost completely down, while the house to the right is brand new.  Go figure...';
capt0030 = '03 August 2001 - 12:05 MST: <br> This is, as best I can tell from the timestamp on the picture, a shot of a view seen while coming down the eastern side of the Cottonwood pass.  Oh, and there\'s me in the foreground.';
capt0031 = '03 August 2001 - 12:06 MST: <br> This is the same vista as in the previous shot, but the previous one has better sky and this one better shows the view spread out below.  Another benefit is that I\'m not there cluttering up the foreground.';
capt0032 = '03 August 2001 - 14:03 MST: <br> Why are you looking down here?  Just enjoy the damn picture!';
capt0033 = '04 August 2001 - 10:32 MST: <br> Here is the rock at the base of which the Weller Campground is located, and my tent, my bike, and the bike of a couple of guys who came to climb the rock at the bottom of the picture.';
capt0034 = '05 August 2001 - 12:33 MST: <br> Best I can guess, this would be a shot from the road approaching Aspen from the east, near the western end of Independence Pass.';
capt0035 = '05 August 2001 - 12:34 MST: <br> ';
capt0036 = '05 August 2001 - 16:07 MST: <br> Here\'s the Utah state line, as seen from Colorado.  Yes, it really is that desolate.  Pretty, though (in a desolate sort of way).';
capt0037 = '05 August 2001 - 16:18 MST: <br> It appears we have moved from the mountains to the desert...';
capt0038 = '05 August 2001 - 17:47 MST: <br> What can I say?  Could YOU have *not* taken this picture?';
capt0039 = '05 August 2001 - 17:47 MST: <br> Look at the pretty clouds...';
capt0040 = '06 August 2001 - 11:46 MST: <br> This is a shot I took coming down a pass in the Manti-La Sal National Forest.  I was headed down (to the right), but turned around to get the picture.';

capt0041 = '06 August 2001 - 16:34 PST: <br> ';
capt0042 = '06 August 2001 - 17:04 PST: <br> ';
capt0043 = '07 August 2001 - 08:16 PST: <br> ';
capt0044 = '07 August 2001 - 12:40 PST: <br> Looking back over a 21 mile stretch of straight road.  Hmm.  That sounds mighty familiar...';
capt0045 = '07 August 2001 - 18:06 PST: <br> ';
capt0046 = '07 August 2001 - 17:07 PST: <br> ';
capt0047 = '08 August 2001 - 08:22 PST: <br> ';
capt0048 = '08 August 2001 - 08:55 PST: <br> ';
capt0049 = '11 August 2001 - 13:27 PST: <br> ';
capt0050 = '11 August 2001 - 13:29 PST: <br> ';
capt0051 = '11 August 2001 - 13:40 PST: <br> ';
capt0052 = '11 August 2001 - 13:42 PST: <br> ';
capt0053 = '11 August 2001 - 13:44 PST: <br> ';
capt0054 = '11 August 2001 - 13:45 PST: <br> ';
capt0055 = '11 August 2001 - 13:47 PST: <br> ';
capt0056 = '12 August 2001 - 11:51 PST: <br> ';
capt0057 = '14 August 2001 - 07:25 PST: <br> ';
capt0058 = '14 August 2001 - 07:26 PST: <br> ';
capt0059 = '14 August 2001 - 07:53 PST: <br> ';
capt0061 = '14 August 2001 - 14:20 PST: <br> ';
capt0062 = '14 August 2001 - xx:xx PST: <br> ';
capt0063 = '14 August 2001 - xx:xx PST: <br> ';
capt0064 = '14 August 2001 - xx:xx PST: <br> ';
capt0065 = '14 August 2001 - xx:xx PST: <br> ';
capt0066 = '14 August 2001 - xx:xx PST: <br> ';
capt0067 = '14 August 2001 - xx:xx PST: <br> ';
capt0068 = '14 August 2001 - xx:xx PST: <br> ';
capt0069 = '15 August 2001 - 09:16 PST: <br> Glacier Point, Yosemite National Park, about 15 minutes after a rockslide originating on the cliff face at the light grey area near the center of the image';
capt0070 = '15 August 2001 - 09:30 PST: <br> ';
capt0071 = '17 August 2001 - xx:xx PST: <br> ';
capt0072 = 'xx August 2001 - xx:xx PST: <br> ';
capt0074 = 'xx August 2001 - xx:xx PST: <br> ';
capt0075 = 'xx August 2001 - xx:xx PST: <br> ';
capt0076 = 'xx August 2001 - xx:xx PST: <br> ';
capt0077 = 'xx August 2001 - xx:xx PST: <br> ';
capt0078 = 'xx August 2001 - xx:xx PST: <br> ';
capt0079 = 'xx August 2001 - xx:xx PST: <br> ';
capt0080 = 'xx August 2001 - xx:xx PST: <br> ';
capt0081 = 'xx August 2001 - xx:xx PST: <br> ';
capt0082 = 'xx August 2001 - xx:xx PST: <br> ';
capt0083 = 'xx August 2001 - xx:xx PST: <br> ';
capt0084 = 'xx August 2001 - xx:xx PST: <br> ';
capt0085 = 'xx August 2001 - xx:xx PST: <br> ';
capt0086 = 'xx August 2001 - xx:xx PST: <br> ';
capt0087 = 'xx August 2001 - xx:xx PST: <br> ';
capt0088 = 'xx August 2001 - xx:xx PST: <br> ';
capt0089 = 'xx August 2001 - xx:xx PST: <br> ';
capt0090 = 'xx August 2001 - xx:xx PST: <br> ';
capt0091 = 'xx August 2001 - xx:xx PST: <br> ';
capt0092 = 'xx August 2001 - xx:xx PST: <br> ';
capt0093 = 'xx August 2001 - xx:xx PST: <br> ';
capt0094 = 'xx August 2001 - xx:xx PST: <br> ';
capt0095 = 'xx August 2001 - xx:xx PST: <br> ';
capt0096 = 'xx August 2001 - xx:xx PST: <br> ';
capt0097 = 'xx August 2001 - xx:xx PST: <br> ';
capt0098 = 'xx August 2001 - xx:xx PST: <br> ';
capt0099 = 'xx August 2001 - xx:xx PST: <br> ';
capt0100 = 'xx August 2001 - xx:xx PST: <br> ';
capt0101 = 'xx August 2001 - xx:xx PST: <br> ';
capt0102 = 'xx August 2001 - xx:xx PST: <br> ';
capt0103 = 'xx August 2001 - xx:xx PST: <br> ';
capt0104 = 'xx August 2001 - xx:xx PST: <br> ';
capt0105 = 'xx August 2001 - xx:xx PST: <br> ';
capt0106 = 'xx August 2001 - xx:xx PST: <br> ';
capt0107 = 'xx August 2001 - xx:xx PST: <br> ';
capt0108 = 'xx August 2001 - xx:xx PST: <br> ';
capt0109 = 'xx August 2001 - xx:xx PST: <br> ';
capt0110 = 'xx August 2001 - xx:xx PST: <br> ';
capt0111 = 'xx August 2001 - xx:xx PST: <br> ';

