// JavaScript Document

/*
File: see_htm.js
Purpose: Recieve a whole number called which_htm from a navigation area and replace the current .htm with the new one identified by which_htm
	<input type="button" value="Front Page"onclick="see_htm(1)"/>
    <input type="button" value="Schedule" onclick="see_htm(2)"/>
    <input type="button" value="Information" onclick="see_htm(3)"/>
	<input type="button" value="Best Times" onClick="see_htm(7)" /> 
    <input type="button" value="Job List" onclick="see_htm(4)"/>
    <input type="button" value="Swim Suits" onclick="see_htm(5)"/>
    <input type="button" value="Swim Official" onclick="see_htm(6)"/>

	<input type="button" value="Best Times Table" onclick="see_htm(7)" />
	<input type="button" value="Best Times Charts" onclick="see_htm(8)" />
	<input type="button" value="Maps" onClick="see_htm(9)" />
	
	<input type="button" value="Meets & Events" onclick="see_htm(3)"/>
	<input type="button" value="Synopsis" onclick="see_htm(11)"/>
	<input type="button" value="Communication" onclick="see_htm(12)"/>
	<input type="button" value="Glossary" onclick="see_htm(13)"/>
	<input type="button" value="Job Assignments" onclick="see_htm(4)"/>
	<input type="button" value="Job Descriptions" onclick="see_htm(14)"/>
	<input type="button" value="Snack Bar" onclick="see_htm(15)"/>
    <input type="button" value="My Times" onclick="see_htm(16)"/>
	<input type="button" value="Collage" onclick="see_htm(17) />
  	<input type="button" value="Links" onClick="see_htm(18)" />
	<input type="button" value="League_2008" onClick="see_htm(19)" />
	<input type="button" value="Photos 2008" onclick="see_htm(20)" />
	<input type="button" value="League Times" onclick="see_htm(21)" />
	<input type="button" value="League Times (individual)" onclick="see_htm(22)" />

*/
var htm_file = new Array(
						 "index_js.htm",  //0
						 "index.htm",  //1
						 "schedule.htm",  //2
						 "info_meets_events.htm", //3
						 "job_list.htm", //4
						 "suits.htm", //5
						 "swim_officials_clinics.htm", //6
						 "best_times.htm", //7
						 "best_times_charts.htm", //8
						 "maps.htm", //9
						 "site_map.htm", //10
						 "synopsis.htm", //11
						 "communication.htm", //12
						 "glossary.htm", //13
						 "job_descriptions.htm", //14
						 "snack_bar.htm", //15
						 "swim_times.htm", //16
						 "collage.htm", //17
						 "links.htm", //18
						 "league2010.htm", //19
						 "league_2008photos.htm", //20
						 "bull_pen.htm", //21
						 "league_2008_times.htm", //22
						 "swimages.htm", //23
						 "league2010_2.htm", //24
						 "league2010_3.htm", //25
						 "league2010_4.htm", //26
						 "tmientries.pdf" //27
						 )
//Manually assign the htm file names a position in the array. 

function see_htm(which_htm){//which_htm is assigned in the calling object and identifies the position in the array for the htm file.
	for (i=0;i<=htm_file.length;i++){
		//document.write("i= "+i+"<br />");
		if (i==which_htm){
		window.location=htm_file[i]
		}
	}
}

function view_htm_array(){//utility for developer to see the array (htm_file) and rank
	for (i=0;i<=htm_file.length;i++){
		document.write("&nbsp;&nbsp;i= "+i+" : "+htm_file[i]+"<br />");
	}
}
