//this variable sets the folder name that the files are in

	var filename="kansas"

//these arrays hold the data that gets inserted into the page

	var picture = new Array()
	picture[ 1 ] = "kansas01.jpg"
	picture[ 2 ] = "kansas02.jpg"
	picture[ 3 ] = "kansas03.jpg"
	picture[ 4 ] = "kansas04.jpg"

	var text = new Array()
	text[ 1 ] = "In the middle of the Kansas plains, there is a small field of egg shape sandstone boulders, which are not only fascinating to look at, but also fun to climb.  The boulders are located right in the middle of Kansas and are a great way to break up a day of driving across the Midwest."
	text[ 2 ] = "Angela pulling up into the sit start on one of the many problems in Rock City.  The texture of the rock was surprisingly good."
	text[ 3 ] = "Merrick catching a dyno on Kissing Rock. Many of the problems were easy but all of them were fun."
	text[ 4 ] = "At the end of the day we were treated to a spectacular sunset exploding over the plains."



//these variables make sure the page exists if loaded incorrectly

	var insertpicture="spacer.gif\" width=\"300\" height=\"300"
	var inserttext="<a href=\"../climbindex.html\">back to index</a>"

//there variables set the URL

	var url=document.location.href
	var url_array=url.split(filename);

//these if-else statements determine which data is matched with each url

	if(window.location.href == url_array[0]+filename+'/pictureframe.html#1'){
	var insertpicture=picture[1]
	var inserttext=text[1]
	 }

	else if (window.location.href == url_array[0]+filename+'/pictureframe.html#2'){
	var insertpicture=picture[2]
	var inserttext=text[2]
	 }

	else if (window.location.href == url_array[0]+filename+'/pictureframe.html#3'){
	var insertpicture=picture[3]
	var inserttext=text[3]
	 }

	else if (window.location.href == url_array[0]+filename+'/pictureframe.html#4'){
	var insertpicture=picture[4]
	var inserttext=text[4]
	 }

	;


//this code actually writes the code for the page

	document.write('<tr>')
	document.write('<td><img src=\"'+insertpicture+'\"></td>')
	document.write('</tr>')
	document.write('<tr>')
	document.write('<td class=\"bodytext\">'+inserttext+'</td>')
	document.write('</tr>')

