//this variable sets the folder name that the files are in

	var filename="joes"

//these arrays hold the data that gets inserted into the page

	var picture = new Array()
	picture[ 1 ] = "joes01.jpg"
	picture[ 2 ] = "joes02.jpg"
	picture[ 3 ] = "joes03.jpg"
	picture[ 4 ] = "joes04.jpg"
	picture[ 5 ] = "joes05.jpg"


	var text = new Array()
	text[ 1 ] = "Angela sending her hardest problem yet, Midget, V3, in good style."
	text[ 2 ] = "Merrick starting low, during an onsight of Dustbuster, V2."
	text[ 3 ] = "Angela using the crashpad for it’s actual purpose, napping."
	text[ 4 ] = "As Merrick walks up to his project, a mix of fear and anticipation cross his face.  "
	text[ 5 ] = "Merrick squeezes a pinch really hard trying to send Runt, V7, on the Small One boulder."




//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]
	 }

	else if (window.location.href == url_array[0]+filename+'/pictureframe.html#5'){
	var insertpicture=picture[5]
	var inserttext=text[5]
	 }


	;


//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>')

