help_text = "Click 'play' to start at the beginning.\n\nUse the selection box to choose where the show should start."

help_text_s = "Click 'play' to start."

help_text_v = "Click 'play' to start.\n\nTo start at a particular visitor click on that name."

function open_help_win() {
			window.open('slide.htm','slide','height=480,width=400,resizeable=yes,scrollbars=yes,top=10,left=100')
}

function open_help_index_win(level) {
	switch(level) {
		case 1 :
			window.open('../cruising/photos/index.htm','slide','height=480,width=400,resizeable=yes,scrollbars=yes,top=10,left=100')
			break
		case 2 :
			window.open('../../cruising/photos/index.htm','slide','height=150,width=500,resizeable=yes,scrollbars=yes,top=10,left=100')
			break
		case 3 :
			window.open('../../../cruising/photos/index.htm','slide','height=200,width=450,resizeable=yes,scrollbars=yes,top=10,left=100')
			break
		case 4 :
			window.open('../../../../cruising/photos/index.htm','slide','height=480,width=400,resizeable=yes,scrollbars=yes,top=10,left=100')
	}
}

function rewind(locate_image) {
	document.images("last").src = toolbar_path + 'last_off.gif'   	
	thisPic = 0
	document.myPicture.src=locate_image + myPix[0] + ".jpg"
	document.imgForm.imgText.value = myText[0]
}

function chgSlide(direction, locate_image) {
	if (document.images) {
		document.images("last").src = toolbar_path + 'last_off.gif'
		if (start_section == true && direction == 1) {
			thisPic = start_sectiion_pic -1
			start_section = false
			thisPic = thisPic + direction
		}
		else {
			thisPic = thisPic + direction
				if (thisPic == end_section) {
				start_section=true
				document.images("last").src = toolbar_path + 'last_sct.gif'
				if (document.images("index_go")) {
					document.images("index_go").src = toolbar_path + 'go_off.gif'
				}
				if (document.images("index_go_2")) {
					document.images("index_go_2").src = toolbar_path + 'go_off.gif'
				}   	
				if (document.images("index_go_3")) {
					document.images("index_go_3").src = toolbar_path + 'go_off.gif'
				}   	
				if (document.images("index_go_4")) {
					document.images("index_go_4").src = toolbar_path + 'go_off.gif'
				}   	
				if (document.images("index_go_5")) {
					document.images("index_go_5").src = toolbar_path + 'go_off.gif'
				}   	
			}
		}
		if (thisPic == imgCt) {
			document.images("last").src = toolbar_path + 'last_all.gif'   	
		}
		if (thisPic > imgCt) {
			thisPic = 0
		}
		if (thisPic < 0) {
			thisPic = imgCt
			document.images("last").src = toolbar_path + 'last_all.gif'   	
			if (document.images("index_go")) {
				document.images("index_go").src = toolbar_path + 'go_off.gif'
			}
			if (document.images("index_go_2")) {
				document.images("index_go_2").src = toolbar_path + 'go_off.gif'
			}   	
			if (document.images("index_go_3")) {
				document.images("index_go_3").src = toolbar_path + 'go_off.gif'
			}   	
			if (document.images("index_go_4")) {
				document.images("index_go_4").src = toolbar_path + 'go_off.gif'
			}   	
			if (document.images("index_go_5")) {
				document.images("index_go_5").src = toolbar_path + 'go_off.gif'
			}   	
		}
		document.myPicture.src=locate_image + myPix[thisPic] + ".jpg"
		document.imgForm.imgText.value = myText[thisPic]
	}
}

function gotoindex(pic, end_slide) {
	start_sectiion_pic = pic
	document.images("last").src = toolbar_path + 'last_off.gif'   	
	end_section = end_slide
	thisPic = pic
}

function formHandler(form){
	document.images("index_go").src = toolbar_path + 'go_on.gif'   	
	var URL = document.form.site.options[document.form.site.selectedIndex].value;
	window.location.href = URL;
}

function formHandler2(form){
	alert("got to formhandler")
	if (document.images("index_go_2")) {
		document.images("index_go_2").src = toolbar_path + 'go_on.gif'   	
	}
	if (document.images("index_go_3")) {
		document.images("index_go_3").src = toolbar_path + 'go_off.gif'
	}   	
	if (document.images("index_go_4")) {
		document.images("index_go_4").src = toolbar_path + 'go_off.gif'
	}   	
	if (document.images("index_go_5")) {
		document.images("index_go_5").src = toolbar_path + 'go_off.gif'   	
	}
	if (document.images("index_go_6")) {
		document.images("index_go_6").src = toolbar_path + 'go_off.gif'   	
	}
	var URL = document.form2.site2.options[document.form2.site2.selectedIndex].value;
	window.location.href = URL;
}

function formHandler3(form){
	if (document.images("index_go_3")) {
		document.images("index_go_3").src = toolbar_path + 'go_on.gif'   	
	}
	if (document.images("index_go_2")) {
		document.images("index_go_2").src = toolbar_path + 'go_off.gif'
	}   	
	if (document.images("index_go_4")) {
		document.images("index_go_4").src = toolbar_path + 'go_off.gif'
	}   	
	if (document.images("index_go_5")) {
		document.images("index_go_5").src = toolbar_path + 'go_off.gif'   	
	}
	if (document.images("index_go_6")) {
		document.images("index_go_6").src = toolbar_path + 'go_off.gif'   	
	}
var URL = document.form3.site3.options[document.form3.site3.selectedIndex].value;
window.location.href = URL;
}

function formHandler4(form){
	if (document.images("index_go_4")) {
		document.images("index_go_4").src = toolbar_path + 'go_on.gif'   	
	}
	if (document.images("index_go_2")) {
		document.images("index_go_2").src = toolbar_path + 'go_off.gif'
	}   	
	if (document.images("index_go_3")) {
		document.images("index_go_3").src = toolbar_path + 'go_off.gif'
	}   	
	if (document.images("index_go_5")) {
		document.images("index_go_5").src = toolbar_path + 'go_off.gif'   	
	}
	if (document.images("index_go_6")) {
		document.images("index_go_6").src = toolbar_path + 'go_off.gif'   	
	}
var URL = document.form4.site4.options[document.form4.site4.selectedIndex].value;
window.location.href = URL;
}

function formHandler5(form){
	if (document.images("index_go_5")) {
		document.images("index_go_5").src = toolbar_path + 'go_on.gif'   	
	}
	if (document.images("index_go_2")) {
		document.images("index_go_2").src = toolbar_path + 'go_off.gif'
	}   	
	if (document.images("index_go_3")) {
		document.images("index_go_3").src = toolbar_path + 'go_off.gif'
	}   	
	if (document.images("index_go_4")) {
		document.images("index_go_4").src = toolbar_path + 'go_off.gif'
	}   	
	if (document.images("index_go_6")) {
		document.images("index_go_6").src = toolbar_path + 'go_off.gif'   	
	}
var URL = document.form5.site5.options[document.form5.site5.selectedIndex].value;
window.location.href = URL;
}

function formHandler6(form){
	if (document.images("index_go_6")) {
		document.images("index_go_6").src = toolbar_path + 'go_on.gif'   	
	}
	if (document.images("index_go_2")) {
		document.images("index_go_2").src = toolbar_path + 'go_off.gif'
	}   	
	if (document.images("index_go_3")) {
		document.images("index_go_3").src = toolbar_path + 'go_off.gif'
	}   	
	if (document.images("index_go_4")) {
		document.images("index_go_4").src = toolbar_path + 'go_off.gif'
	}   	
	if (document.images("index_go_5")) {
		document.images("index_go_5").src = toolbar_path + 'go_off.gif'   	
	}
var URL = document.form5.site5.options[document.form5.site5.selectedIndex].value;
window.location.href = URL;
}

function write_load_image(image_number, text){
	document.write("<img height='346' width=461' src='")
	document.write(image_source + "_" + image_number + ".jpg")
	document.write("' alt='Click on the play icon to see the pictures of " + text + "'title='Click on the play icon to see the pictures of " + text + "'name='myPicture' align='left' hspace='10' />")

}

function write_load_image_flight(image_number, text, height, width){
	document.write("<img height='" + height + "' width='" + width + "' src='")
	document.write(image_source + "_" + image_number + ".jpg")
	document.write("' alt='Click on the play icon to see the pictures of " + text + "'title='Click on the play icon to see the pictures of " + text + "'name='myPicture' align='left' hspace='10' />")
	document.write("<br clear='left' /><br />")
}

function write_textform(form_rows, form_cols) {
	start_section=false
	document.write("<form name='imgForm'><p><textarea id='slide_text' name='imgText' rows='")
	document.write(form_rows)
	document.write("' cols='")
	document.write(form_cols)
	document.write("' readonly></textarea></p></form>")
}

function write_toolbar(table_width, stop_link, stop_description, help_win_level) {
	document.write("<table border='0' width='")
	document.write(table_width)
	document.write("'>")
	document.write("<tr>")
	document.write("<td align='center'>")
	document.write("<img src='")
	document.write(toolbar_path)
	document.write("last_off.gif' height='24' width='24' border='0' alt='last slide indicator' title='last slide indicator' name='last' /></a>")
	document.write("</td>")
	document.write("<td align='center'>")
	document.write("<a href='javascript:rewind(image_source)' onmouseover=rewind.src='")
	document.write(toolbar_path)
	document.write("rew_on.gif' onmouseout=rewind.src='")
	document.write(toolbar_path)
	document.write("rew_off.gif' onFocus='if(this.blur)this.blur();'>")
	document.write("<img src='")
	document.write(toolbar_path)
	document.write("rew_off.gif' height='24' width='24' border='0' alt='re start' title='re start' name='rewind' /></a>")
	document.write("</td>")
	document.write("<td align='center'>")
	document.write("<a href='javascript:chgSlide(-1, image_source)' onmouseover=previous.src='")
	document.write(toolbar_path)
	document.write("rev_on.gif' onmouseout=previous.src='")
	document.write(toolbar_path)
	document.write("rev_off.gif' onFocus='if(this.blur)this.blur();'>")
	document.write("<img src='")
	document.write(toolbar_path)
	document.write("rev_off.gif' height='24' width='24' border='0' title='back' name='previous' /></a>")
	document.write("</td>")
	document.write("<td align='center'>")
	document.write("<a href='")
	document.write(up_path)
	document.write("index.html' title='Home' onmouseover=home.src='")
	document.write(toolbar_path)
	document.write("hse_on.gif' onmouseout=home.src='")
	document.write(toolbar_path)
	document.write("hse_off.gif' onFocus='if(this.blur)this.blur();'>")
	document.write("<img src='")
	document.write(toolbar_path)
	document.write("hse_off.gif' height='24' width='24' border='0' alt='home' name='home' title='home' name='home' /></a>")
	document.write("</td>")
	document.write("<td align='center'>")
	document.write("<a href='")
	document.write(stop_link)
	document.write("' title='")
	document.write(stop_description)
	document.write("' onmouseover=stop.src='")
	document.write(toolbar_path)
	document.write("stop_on.gif' onmouseout=stop.src='")
	document.write(toolbar_path)
	document.write("stop_off.gif' onFocus='if(this.blur)this.blur();'>")
	document.write("<img src='")
	document.write(toolbar_path)
	document.write("stop_off.gif' height='24' width='24' border='0' alt='")
	document.write(stop_description)
	document.write("' name='stop' /></a>")
	document.write("</td>")
	document.write("<td align='center'>")
	document.write("<a href='javascript:chgSlide(1, image_source)' onmouseover=play.src='")
	document.write(toolbar_path)
	document.write("ply_on.gif' onmouseout=play.src='")
	document.write(toolbar_path)
	document.write("ply_off.gif' onFocus='if(this.blur)this.blur();'>")
	document.write("<img src='")
	document.write(toolbar_path)
	document.write("ply_off.gif' height='24' width='24' border='0' alt='play' title='play' name='play' /></a>")
	document.write("</td>")
	document.write("<td align='center'>")
	document.write("<a href='javascript:open_help_win(")
	document.write(help_win_level)
	document.write(")' onmouseover=help_icon.src='")
	document.write(toolbar_path)
	document.write("help_on.gif' onmouseout=help_icon.src='")
	document.write(toolbar_path)
	document.write("help_off.gif' onFocus='if(this.blur)this.blur();'>")
	document.write("<img src='")
	document.write(toolbar_path)
	document.write("help_off.gif' height='24' width='24' border='0' alt='slide help' title='slide help' name='help_icon' /></a>")
	document.write("</td>")
}
	
function write_toolbar_end_return(up_path, return_link, alt_message, new_line) {	
	document.write("<td align='center'>")
	document.write("<a href='")
	document.write(return_link)
	document.write("' onmouseover=ret.src='")
	document.write(up_path)
	document.write("ret_on.gif' onmouseout=ret.src='")
	document.write(up_path)
	document.write("ret_off.gif' onFocus='if(this.blur)this.blur();'>")
	document.write("<img src='")
	document.write(up_path)
	document.write("ret_off.gif' height='24' width='24' border='0' alt='return to ")
	document.write(alt_message)
	document.write("' title='return to ")
	document.write(alt_message)
	document.write("' name='ret' /></a>")
	document.write("</td></tr></table>")
	for (var counter = 0; counter < new_line; counter++) {
		document.write("<br />")
	}
}

function write_toolbar_end(new_line) {	
	document.write("</td></tr></table>")
		for (var counter = 0; counter < new_line; counter++) {
		document.write("<br />")
	}
}

function write_index() {
	document.write("<table border='0' width='200'><tr>")
	document.write("<td><form name='form'>")
	document.write("<select name='site' size=1>")
	for (var counter = 0; counter < index_number.length; counter++) {
		if (index_number[counter] == -1) {
		   	document.write("<option value='")
			document.write(index_link[counter])
			document.write("'>")
			document.write(index_description[counter])
		}   
		else {
			 document.write("<option value='javascript:gotoindex(")
			 document.write(index_number[counter])
			 document.write(", image_source, ")
			 document.write(index_end[counter])
			 document.write(")'>")
			 document.write(index_description[counter])
		}
	}
	document.write("</select></form></td>")
	document.write("<td valign='top'><a href='javascript:formHandler(this)' onFocus='if(this.blur)this.blur();'>")
	document.write("<img src='")
	document.write(toolbar_path)
	document.write("go_off.gif' height='25' width='25' border='0' alt='go' title='go' name='index_go' /></a>")
	document.write("</td>")
	document.write("<td align='center' valign='top'>")
	document.write("<a href='javascript:open_help_index_win(3)' onmouseover=help_index_02.src='")
	document.write(toolbar_path)
	document.write("help_on.gif' onmouseout=help_index_02.src='")
	document.write(toolbar_path)
	document.write("help_off.gif' onFocus='if(this.blur)this.blur();'>")
	document.write("<img src='")
	document.write(toolbar_path)
	document.write("help_off.gif' height='24' width='24' border='0' alt='selection help' title='selection help' name='help_index_02' /></a>")
	document.write("</td>")

	document.write("</tr></table>")
}

function write_index_02() {
	document.write("<table border='0'><tr>")
	document.write("<td class='text_11' width='7' align='right' valign='top'>Eating</td>")
	document.write("<td align='center' valign='center'><form name='form2'>")
	document.write("<select name='site2' size=1>")
	for (var counter = 0; counter < index_number_02.length; counter++) {
		if (index_number_02[counter] == -1) {
		   	document.write("<option value='")
			document.write(index_link_02[counter])
			document.write("'>")
			document.write(index_description_02[counter])
		}   
		else {
			 document.write("<option value='javascript:gotoindex(")
			 document.write(index_number_02[counter])
			 document.write(",  image_source, ")
			 document.write(index_end_02[counter])
			 document.write(")'>")
			 document.write(index_description_02[counter])
		}
	}
	document.write("</select></form></td>")
	document.write("<td valign='top'><a href='javascript:formHandler2(this)' onFocus='if(this.blur)this.blur();'>")
	document.write("<img src='")
	document.write(toolbar_path)
	document.write("go_off.gif' height='25' width='25' border='0' alt='go' title='go' name='index_go_2' /></a>")
	document.write("</td>")
	document.write("</tr></table>")
}

function write_index_03() {
	document.write("<table border='0'><tr>")
	document.write("<td class='text_11' width='7' align='right' valign='top'><a href='../../2003.htm' onFocus='if(this.blur)this.blur();'>2003</a></td>")
	document.write("<td align='center' valign='center'><form name='form3'>")
	document.write("<select name='site3' size=1>")
	for (var counter = 0; counter < index_number_03.length; counter++) {
		if (index_number_03[counter] == -1) {
		   	document.write("<option value='")
			document.write(index_link_03[counter])
			document.write("'>")
			document.write(index_description_03[counter])
		}   
		else {
			 document.write("<option value='javascript:gotoindex(")
			 document.write(index_number_03[counter])
			 document.write(",  image_source, ")
			 document.write(index_end_03[counter])
			 document.write(")'>")
			 document.write(index_description_03[counter])
		}
	}
	document.write("</select></form></td>")
	document.write("<td valign='top'><a href='javascript:formHandler3(this)' onFocus='if(this.blur)this.blur();'>")
	document.write("<img src='")
	document.write(toolbar_path)
	document.write("go_off.gif' height='25' width='25' border='0' alt='go' title='go' name='index_go_3' /></a>")
	document.write("</td>")
	document.write("<td align='center' valign='top'>")
	document.write("<a href='javascript:open_help_index_win(3)' onmouseover=help_index_03.src='")
	document.write(toolbar_path)
	document.write("help_on.gif' onmouseout=help_index_03.src='")
	document.write(toolbar_path)
	document.write("help_off.gif' onFocus='if(this.blur)this.blur();'>")
	document.write("<img src='")
	document.write(toolbar_path)
	document.write("help_off.gif' height='24' width='24' border='0' alt='selection help' title='selection help' name='help_index_03' /></a>")
	document.write("</td>")
	document.write("</tr></table>")
}

function write_index_04() {
	document.write("<table border='0'><tr>")
	document.write("<td class='text_11' width='7' align='right' valign='top'><a href='../../2004.htm' onFocus='if(this.blur)this.blur();'>2004</a></td>")
	document.write("<td align='center' valign='center'><form name='form4'>")
	document.write("<select name='site4' size=1>")
	for (var counter = 0; counter < index_number_04.length; counter++) {
		if (index_number_04[counter] == -1) {
		   	document.write("<option value='")
			document.write(index_link_04[counter])
			document.write("'>")
			document.write(index_description_04[counter])
		}   
		else {
			 document.write("<option value='javascript:gotoindex(")
			 document.write(index_number_04[counter])
			 document.write(",  image_source, ")
			 document.write(index_end_04[counter])
			 document.write(")'>")
			 document.write(index_description_04[counter])
		}
	}
	document.write("</select></form></td>")
	document.write("<td valign='top'><a href='javascript:formHandler4(this)' onFocus='if(this.blur)this.blur();'>")
	document.write("<img src='")
	document.write(toolbar_path)
	document.write("go_off.gif' height='25' width='25' border='0' alt='go' title='go' name='index_go_4' /></a>")
	document.write("</td>")
	document.write("<td align='center' valign='top'>")
	document.write("<a href='javascript:open_help_index_win(3)' onmouseover=help_index_04.src='")
	document.write(toolbar_path)
	document.write("help_on.gif' onmouseout=help_index_04.src='")
	document.write(toolbar_path)
	document.write("help_off.gif' onFocus='if(this.blur)this.blur();'>")
	document.write("<img src='")
	document.write(toolbar_path)
	document.write("help_off.gif' height='24' width='24' border='0' alt='selection help' title='selection help' name='help_index_04' /></a>")
	document.write("</td>")
	document.write("</tr></table>")
}

function write_index_05() {
	document.write("<table border='0'><tr>")
	document.write("<td class='text_11' width='7' align='right' valign='top'><a href='../../2005.htm' onFocus='if(this.blur)this.blur();'>2005</a></td>")
	document.write("<td align='center' valign='center'><form name='form5'>")
	document.write("<select name='site5' size=1>")
	for (var counter = 0; counter < index_number_05.length; counter++) {
		if (index_number_05[counter] == -1) {
		   	document.write("<option value='")
			document.write(index_link_05[counter])
			document.write("'>")
			document.write(index_description_05[counter])
		}   
		else {
			 document.write("<option value='javascript:gotoindex(")
			 document.write(index_number_05[counter])
			 document.write(",  image_source, ")
			 document.write(index_end_05[counter])
			 document.write(")'>")
			 document.write(index_description_05[counter])
		}
	}
	document.write("</select></form></td>")
	document.write("<td valign='top'><a href='javascript:formHandler5(this)' onFocus='if(this.blur)this.blur();'>")
	document.write("<img src='")
	document.write(toolbar_path)
	document.write("go_off.gif' height='25' width='25' border='0' alt='go' title='go' name='index_go_5' /></a>")
	document.write("</td>")
	document.write("<td align='center' valign='top'>")
	document.write("<a href='javascript:open_help_index_win(3)' onmouseover=help_index_05.src='")
	document.write(toolbar_path)
	document.write("help_on.gif' onmouseout=help_index_05.src='")
	document.write(toolbar_path)
	document.write("help_off.gif' onFocus='if(this.blur)this.blur();'>")
	document.write("<img src='")
	document.write(toolbar_path)
	document.write("help_off.gif' height='24' width='24' border='0' alt='selection help' title='selection help' name='help_index_05' /></a>")
	document.write("</td>")
	document.write("</tr></table>")
}

function write_index_06() {
	document.write("<table border='0'><tr>")
	document.write("<td class='text_11' width='7' align='right' valign='top'><a href='../../2006.htm' onFocus='if(this.blur)this.blur();'>2006</a></td>")
	document.write("<td align='center' valign='center'><form name='form6'>")
	document.write("<select name='site6' size=1>")
	for (var counter = 0; counter < index_number_06.length; counter++) {
		if (index_number_06[counter] == -1) {
		   	document.write("<option value='")
			document.write(index_link_06[counter])
			document.write("'>")
			document.write(index_description_06[counter])
		}   
		else {
			 document.write("<option value='javascript:gotoindex(")
			 document.write(index_number_06[counter])
			 document.write(",  image_source, ")
			 document.write(index_end_06[counter])
			 document.write(")'>")
			 document.write(index_description_06[counter])
		}
	}
	document.write("</select></form></td>")
	document.write("<td valign='top'><a href='javascript:formHandler6(this)' onFocus='if(this.blur)this.blur();'>")
	document.write("<img src='")
	document.write(toolbar_path)
	document.write("go_off.gif' height='25' width='25' border='0' alt='go' title='go' name='index_go_6' /></a>")
	document.write("</td>")
	document.write("<td align='center' valign='top'>")
	document.write("<a href='javascript:open_help_index_win(3)' onmouseover=help_index_06.src='")
	document.write(toolbar_path)
	document.write("help_on.gif' onmouseout=help_index_06.src='")
	document.write(toolbar_path)
	document.write("help_off.gif' onFocus='if(this.blur)this.blur();'>")
	document.write("<img src='")
	document.write(toolbar_path)
	document.write("help_off.gif' height='24' width='24' border='0' alt='selection help' title='selection help' name='help_index_06' /></a>")
	document.write("</td>")
	document.write("</tr></table>")
}

function jenn_message() {
	document.write("There are more pictures in amongst the relevant waterways<br />slide shows.")
	}
