function create_links()
{
	var handbookpage;
	handbookpage = new Array;
handbookpage[0] = "/handbook/index.shtml";
handbookpage[1] = "/handbook/intro/program_info.shtml";
handbookpage[2] = "/handbook/intro/use.shtml";
handbookpage[3] = "/handbook/part1/index.shtml";
handbookpage[4] = "/handbook/part1/ch1/index.shtml";
handbookpage[5] = "/handbook/part1/ch1/learn_about_loc.shtml";
handbookpage[6] = "/handbook/part1/ch1/exploration1.shtml";
handbookpage[7] = "/handbook/part1/ch1/exploration2.shtml";
handbookpage[8] = "/handbook/part1/ch1/exploration3.shtml";
handbookpage[9] = "/handbook/part1/ch1/prep_orientation_act.shtml";
handbookpage[10] = "/handbook/part1/ch1/loc_scavenger_hunt.shtml";
handbookpage[11] = "/handbook/part1/ch1/search_guide.shtml";
handbookpage[12] = "/handbook/part1/ch1/quick_ref_guide.shtml";
handbookpage[13] = "/handbook/part1/ch1/research_centers.shtml";
handbookpage[14] = "/handbook/part1/ch1/research_centers_overview.shtml";
handbookpage[15] = "/handbook/part1/ch2/index.shtml";
handbookpage[16] = "/handbook/part1/ch2/exploration4.shtml";
handbookpage[17] = "/handbook/part1/ch2/exploration5.shtml";
handbookpage[18] = "/handbook/part1/ch2/exploration6.shtml";
handbookpage[19] = "/handbook/part1/ch2/exploration7.shtml";
handbookpage[20] = "/handbook/part1/ch2/exploration8.shtml";
handbookpage[21] = "/handbook/part1/ch2/exploration8_part2.shtml";
handbookpage[22] = "/handbook/part1/ch2/exploration8_part3.shtml";
handbookpage[23] = "/handbook/part1/ch2/exploration9.shtml";
handbookpage[24] = "/handbook/part1/ch2/exploration9_resources.shtml";
handbookpage[25] = "/handbook/part1/ch2/collections_a_c.shtml";
handbookpage[26] = "/handbook/part1/ch2/collections_d_j.shtml";
handbookpage[27] = "/handbook/part1/ch2/collections_l_q.shtml";
handbookpage[28] = "/handbook/part1/ch2/collections_r_w.shtml";
handbookpage[29] = "/handbook/part1/ch3/index.shtml";
handbookpage[30] = "/handbook/part1/ch3/learn_about_ppoc.shtml";
handbookpage[31] = "/handbook/part1/ch3/exploration10.shtml";
handbookpage[32] = "/handbook/part1/ch3/exploration11.shtml";
handbookpage[33] = "/handbook/part1/ch3/learning_ppoc.shtml";
handbookpage[34] = "/handbook/part2/index.shtml";
handbookpage[35] = "/handbook/part2/ch4/index.shtml";
handbookpage[36] = "/handbook/part2/ch4/locate_item_title.shtml";
handbookpage[37] = "/handbook/part2/ch4/save_perm_url.shtml";
handbookpage[38] = "/handbook/part2/ch4/locate_section_LOC.shtml";
handbookpage[39] = "/handbook/part2/ch4/locate_LOC_collection.shtml";
handbookpage[40] = "/handbook/part2/ch4/locate_image_url.shtml";
handbookpage[41] = "/handbook/part2/ch4/citing_sources.shtml";
handbookpage[42] = "/handbook/part2/ch5/index.shtml";
handbookpage[43] = "/handbook/part2/ch5/save_image.shtml";
handbookpage[44] = "/handbook/part2/ch5/insert_image.shtml";
handbookpage[45] = "/handbook/part2/ch5/insert_perm_url.shtml";
handbookpage[46] = "/handbook/part2/ch5/callout.shtml";
handbookpage[47] = "/handbook/part2/ch5/crop_zoomin.shtml";
handbookpage[48] = "/handbook/part3/index.shtml";
handbookpage[49] = "/handbook/part3/ch6/index.shtml";
handbookpage[50] = "/handbook/part3/ch6/purpose.shtml";
handbookpage[51] = "/handbook/part3/ch6/types_materials.shtml";
handbookpage[52] = "/handbook/part3/ch6/design.shtml";
handbookpage[53] = "/handbook/part3/ch6/publishing_rubric.shtml";
handbookpage[54] = "/handbook/part3/ch7/index.shtml";
handbookpage[55] = "/handbook/part3/ch7/exploration12.shtml";
handbookpage[56] = "/handbook/part3/ch7/exploration13.shtml";
handbookpage[57] = "/handbook/part3/ch7/exploration14.shtml";
handbookpage[58] = "/handbook/part3/ch7/exploration15.shtml";
handbookpage[59] = "/handbook/part3/ch7/example_understanding_goals.shtml";
handbookpage[60] = "/handbook/part3/ch7/exploration16.shtml";
handbookpage[61] = "/handbook/part3/ch7/exploration17.shtml";
handbookpage[62] = "/handbook/part4/index.shtml";
handbookpage[63] = "/handbook/part4/ch8/index.shtml";
handbookpage[64] = "/handbook/part4/ch8/images_draw_you_in.shtml";
handbookpage[65] = "/handbook/part4/ch8/images_draw_sample_q.shtml";
handbookpage[66] = "/handbook/part4/ch8/blooms_taxonomy.shtml";
handbookpage[67] = "/handbook/part4/ch8/example_intro_diff_content.shtml";
handbookpage[68] = "/handbook/part4/ch8/example_intro_diff_process.shtml";
handbookpage[69] = "/handbook/part4/ch8/example_intro_diff_product.shtml";
handbookpage[70] = "/handbook/part4/ch8/sort_it_out.shtml";
handbookpage[71] = "/handbook/part4/ch9/index.shtml";
handbookpage[72] = "/handbook/part4/ch9/pre-reading_strategies.shtml";
handbookpage[73] = "/handbook/part4/ch9/during-reading_strategies.shtml";
handbookpage[74] = "/handbook/part4/ch9/post-reading_strategies.shtml";
handbookpage[75] = "/handbook/part4/ch9/explore.shtml";
handbookpage[76] = "/handbook/part4/ch9/scimc_overview.shtml";
handbookpage[77] = "/handbook/part4/ch9/scimc_worksheet.shtml";
handbookpage[78] = "/handbook/part4/ch9/read_diary_journal_letter.shtml";
handbookpage[79] = "/handbook/part4/ch9/make_sense_letter.shtml";
handbookpage[80] = "/handbook/part4/ch9/reread_make_sense_letter.shtml";
handbookpage[81] = "/handbook/part4/ch9/photo_analysis_sheet.shtml";
handbookpage[82] = "/handbook/part4/ch9/photo_analysis_worksheet.shtml";
handbookpage[83] = "/handbook/part4/ch9/photo_analysis_guide_nov.shtml";
handbookpage[84] = "/handbook/part4/ch9/photo_analysis_guide_exp.shtml";
handbookpage[85] = "/handbook/part4/ch9/element_cartoon.shtml";
handbookpage[86] = "/handbook/part4/ch9/cartoon_analysis_guide.shtml";
handbookpage[87] = "/handbook/part4/ch9/map_analysis_worksheet.shtml";
handbookpage[88] = "/handbook/part4/ch9/music_analysis_sheet.shtml";
handbookpage[89] = "/handbook/part4/ch9/seac_nov.shtml";
handbookpage[90] = "/handbook/part4/ch9/seac_adv.shtml";
handbookpage[91] = "/handbook/part4/ch9/compare_venn_diagram.shtml";
handbookpage[92] = "/handbook/part4/ch10/index.shtml";
handbookpage[93] = "/handbook/part4/ch10/ideas.shtml";
handbookpage[94] = "/handbook/part4/ch10/pocket_life_box.shtml";
handbookpage[95] = "/handbook/part4/ch10/life_in_a_box.shtml";
handbookpage[96] = "/handbook/part4/ch10/lifeinabox_analysis.shtml";
handbookpage[97] = "/handbook/part4/ch10/example1.shtml";
handbookpage[98] = "/handbook/part4/ch10/example2.shtml";
handbookpage[99] = "/handbook/part4/ch10/example3.shtml";
handbookpage[100] = "/handbook/part4/ch10/example4.shtml";
handbookpage[101] = "/handbook/part4/ch10/example5.shtml";
handbookpage[102] = "/handbook/part4/ch10/example6.shtml";
handbookpage[103] = "/handbook/part4/ch10/example7.shtml";
handbookpage[104] = "/handbook/part4/ch10/example8.shtml";
handbookpage[105] = "/handbook/part4/ch10/example9.shtml";
handbookpage[106] = "/handbook/part6/cover.shtml";
handbookpage[107] = "/handbook/part6/agendas.shtml";
handbookpage[108] = "/handbook/part6/day6.shtml";
handbookpage[109] = "/handbook/part6/grasps.shtml";
handbookpage[110] = "/handbook/part6/planning_form.shtml";
handbookpage[111] = "/handbook/part6/choose_topic.shtml";
handbookpage[112] = "/handbook/part6/skills_effective_ps_use.shtml";
handbookpage[113] = "/handbook/part6/evaluate.shtml";
handbookpage[114] = "/handbook/part6/criteria.shtml";
handbookpage[115] = "/handbook/part6/day1_planning_tool.shtml";
	yourl = new String(document.URL);
	var first_split = yourl.split("//");
	without_resource = first_split[1];
	var second_split = without_resource.split("/");
//		alert("second_split[1] = " + second_split[3]);

//	var file_name = second_split[2];
	document.write("<h3 class='sdbr-section'><a href='/handbook/index.shtml' title='Click here to go to the Handbook Table of Contents'>Handbook Navigation</a></h3>");
	document.write("<ul class='sdbr-section' style='padding-top:5px;background-color:#DDC7D2;padding-bottom:5px;'>");
//	for(var i=0; i < 3; i++)
	for(var i=0; i < handbookpage.length-1; i++)

	{
			var split_array = handbookpage[i].split("/");
			if (( second_split[2] == "") & (handbookpage[i] == "/handbook/index.shtml") )
				document.write("<li><a href='" + handbookpage[i+1] + "' style='padding-left:30px;'>Next Page  &rarr; &rarr;</a></li>");
			if ( ( second_split[4] == "zoomin_q_examp.shtml") & (i == "72") )
				document.write("<li><a href='" + handbookpage[73] + "'>  &larr; &larr;  Previous Page </a></li>");	
			else
			{
				if (second_split[2] == split_array[2])
				{
				if (second_split[3])
				{
					if (second_split[3] == split_array[3])
					{
						if (second_split[4] == split_array[4] & i < handbookpage.length)
						{
							//alert("second_split[4] = " + second_split[4]);
							document.write("<li><a href='" + handbookpage[i-1] + "'>  &larr; &larr;  Previous Page</a></li>");
							document.write("<li><a href='" + handbookpage[i+1] + "' style='padding-left:30px;'>Next Page  &rarr; &rarr;</a></li>");
						}
					}
				}
				else
				{
					document.write("<li><a href='" + handbookpage[i+1] + "' style='padding-left:30px;'>Next Page  &rarr; &rarr;</a></li>");

				}
			}
			}
	}
	document.write("</ul>");
}

function create_links_posters()
{
	var handbookpage;
	handbookpage = new Array;
handbookpage[0] = "/tpsnva/step2/s_s/posters/index.shtml";
handbookpage[1] = "/tpsnva/step2/s_s/posters/k/civics.shtml";
handbookpage[2] = "/tpsnva/step2/s_s/posters/1/civics.shtml";
handbookpage[3] = "/tpsnva/step2/s_s/posters/2/civics.shtml";
handbookpage[4] = "/tpsnva/step2/s_s/posters/3/civics.shtml";
handbookpage[5] = "/tpsnva/step2/s_s/posters/k/economics.shtml";
handbookpage[6] = "/tpsnva/step2/s_s/posters/1/economics.shtml";
handbookpage[7] = "/tpsnva/step2/s_s/posters/2/economics.shtml";
handbookpage[8] = "/tpsnva/step2/s_s/posters/3/economics.shtml";
handbookpage[9] = "/tpsnva/step2/s_s/posters/k/geography.shtml";
handbookpage[10] = "/tpsnva/step2/s_s/posters/1/geography.shtml";
handbookpage[11] = "/tpsnva/step2/s_s/posters/2/geography.shtml";
handbookpage[12] = "/tpsnva/step2/s_s/posters/3/geography.shtml";
handbookpage[13] = "/tpsnva/step2/s_s/posters/k/history.shtml";
handbookpage[14] = "/tpsnva/step2/s_s/posters/1/history.shtml";
handbookpage[15] = "/tpsnva/step2/s_s/posters/2/history_native_americans.shtml";
handbookpage[16] = "/tpsnva/step2/s_s/posters/3/history_explorers.shtml";
handbookpage[17] = "/tpsnva/step2/s_s/posters/4/jamestown.shtml";
handbookpage[18] = "/tpsnva/step2/s_s/posters/2/history_china_egypt.shtml";
handbookpage[19] = "/tpsnva/step2/s_s/posters/3/history_greece_rome.shtml";
handbookpage[20] = "/tpsnva/step2/s_s/posters/3/history_mali.shtml";
handbookpage[21] = "/tpsnva/step2/s_s/posters/4/regions.shtml";
handbookpage[22] = "/tpsnva/step2/s_s/posters/4/colonial_virginia.shtml";
handbookpage[23] = "/tpsnva/step2/s_s/posters/4/american_revolution.shtml";
handbookpage[24] = "/tpsnva/step2/s_s/posters/4/new_nation.shtml";
handbookpage[25] = "/tpsnva/step2/s_s/posters/4/westward_expansion.shtml";
handbookpage[26] = "/tpsnva/step2/s_s/posters/4/civil_war.shtml";
handbookpage[27] = "/tpsnva/step2/s_s/posters/4/reconstruction.shtml";
handbookpage[28] = "/tpsnva/step2/s_s/posters/4/industrialization.shtml";
handbookpage[29] = "/tpsnva/step2/s_s/posters/4/civil_rights.shtml";
handbookpage[30] = "/tpsnva/step2/s_s/posters/5/native_civilizations.shtml";
handbookpage[31] = "/tpsnva/step2/s_s/posters/5/european_exploration.shtml";
handbookpage[32] = "/tpsnva/step2/s_s/posters/5/american_revolution.shtml";
handbookpage[33] = "/tpsnva/step2/s_s/posters/5/colonial_america.shtml";
handbookpage[34] = "/tpsnva/step2/s_s/posters/11/1781_1800.shtml";

handbookpage[35] = "/tpsnva/step2/s_s/posters/11/to_1763.shtml";
handbookpage[36] = "/tpsnva/step2/s_s/posters/11/1801_1861.shtml";
handbookpage[37] = "/tpsnva/step2/s_s/posters/5/reconstruction.shtml";
handbookpage[38] = "/tpsnva/step2/s_s/posters/11/1763_1780.shtml";
handbookpage[39] = "/tpsnva/step2/s_s/posters/6/reformers.shtml";
handbookpage[40] = "/tpsnva/step2/s_s/posters/6/closing_western_frontier.shtml";
handbookpage[41] = "/tpsnva/step2/s_s/posters/6/us_industrial_nation.shtml";
handbookpage[42] = "/tpsnva/step2/s_s/posters/8/prehistory.shtml";
handbookpage[43] = "/tpsnva/step2/s_s/posters/8/river_valley_civilizations.shtml";
handbookpage[44] = "/tpsnva/step2/s_s/posters/8/india.shtml";
handbookpage[45] = "/tpsnva/step2/s_s/posters/8/china.shtml";
handbookpage[46] = "/tpsnva/step2/s_s/posters/8/ancient_persia.shtml";
handbookpage[47] = "/tpsnva/step2/s_s/posters/8/ancient_greece.shtml";
handbookpage[48] = "/tpsnva/step2/s_s/posters/9/world_1500.shtml";
handbookpage[49] = "/tpsnva/step2/s_s/posters/9/age_exploration.shtml";
handbookpage[50] = "/tpsnva/step2/s_s/posters/9/global_trade.shtml";
handbookpage[51] = "/tpsnva/step2/s_s/posters/9/reformation.shtml";
handbookpage[52] = "/tpsnva/step2/s_s/posters/9/age_absolutism.shtml";
handbookpage[53] = "/tpsnva/step2/s_s/posters/9/scientific_revolution_enlightenment.shtml";
handbookpage[54] = "/tpsnva/step2/s_s/posters/9/fr_revolution_napoleon.shtml";
handbookpage[55] = "/tpsnva/step2/s_s/posters/10/geography.shtml";
handbookpage[56] = "/tpsnva/step2/s_s/posters/10/geography_skills.shtml";
handbookpage[57] = "/tpsnva/step2/s_s/posters/10/physical_geography.shtml";
handbookpage[58] = "/tpsnva/step2/s_s/posters/10/cultural_geography.shtml";
handbookpage[59] = "/tpsnva/step2/s_s/posters/12/foundations.shtml";
handbookpage[60] = "/tpsnva/step2/s_s/posters/12/institutions.shtml";
handbookpage[61] = "/tpsnva/step2/s_s/posters/12/political_process.shtml";
handbookpage[62] = "/tpsnva/step2/s_s/posters/12/public_programs_policy.shtml";
	document.write("<h3 class='sdbr-section'><a href='/tpsnva/step2/s_s/posters/index.shtml' title='Click here to go to the Posters Table of Contents'>Posters Navigation</a></h3>");
	document.write("<ul class='sdbr-section'style='padding-top:5px;background-color:#DDC7D2;padding-bottom:7px;'>");

	yourl = new String(document.URL);
	var first_split = yourl.split("//");
	without_resource = first_split[1];
	var second_split = without_resource.split("/");
	var d = "/";
	if ((second_split[6] == undefined) || (second_split[5] == undefined))
		d = "/tpsnva/step2/s_s/posters/index.shtml";
	else
		d = d.concat(second_split[1],"/",second_split[2],"/",second_split[3],"/",second_split[4],"/",second_split[5],"/",second_split[6]);

	if (d == "/tpsnva/step2/s_s/posters/index.shtml")
	{
		document.write("<li><a href='" + handbookpage[1] + "' style='padding-left:30px;'>Next Page  &rarr; &rarr;</a></li>");
	}
	else
	{
		var i = 1;
		for( i=1; i <= handbookpage.length-1; i++)
		{
			if (handbookpage[i] == d)
			{
				document.write("<li><a href='" + handbookpage[i-1] + "'>  &larr; &larr;  Previous Page</a></li>");
				if  (i != handbookpage.length-1)
				{
					document.write("<li><a href='" + handbookpage[i+1] + "' style='padding-left:30px;'>Next Page  &rarr; &rarr;</a></li>");
				}
			}
		}
	}
	document.write("</ul>");
}

/*
function create_links_wq()
{
	document.write("<h3 class='sdbr-section'><a href='/tps/step1/institutes/wq/agendas/index.shtml' title='Click here to go to the Handbook Table of Contents'>WQ Handbook Navigation</a></h3>");
	document.write("<ul class='sdbr-section'>");
	var tr = window.location.pathname;
	len = tr.length ;
	rs = 0;
	for (i = len; i > 0; i--) 
	{ 
		vb = tr.substring(i,i+1) ;
		if (vb == "/" && rs == 0) 
		{ 
	whole_name = new String(tr.substring(i+1,len));
			if (whole_name == "")
			whole_name = "index.shtml"
			var first_split = whole_name.split(".");
			var no_ext = first_split[0];
			if (no_ext != "index")
			{
				document.write("<li><a href='/program/workshop/institutes/wq/handbook/");
				if (no_ext == "1")
					document.write("index");
				else
				{	
					var prevpage = parseInt(no_ext) - 1;
					document.write(prevpage); 
				}
				document.write(".shtml' >? ? Prev Page</a></li>");
			}
			if (no_ext != "15")
			{	
				if (no_ext == "index")
					no_ext = "0";
				var nextpage = parseInt(no_ext) + 1;
				document.write("<li><a href='/program/workshop/institutes/wq/handbook/" + nextpage + ".shtml' style='padding-left:30px;'>Next Page ? ?</a></li>");
			}		
				rs = 1 ;

		}
	} 
	document.write("</ul>");
}
*/
/*
for(var i=0; i < 15; i++)
	{
		if ( (file_name == "") & (i == 0) )
			document.write("<li><a href='" + handbookpage[i+1] + "' style='padding-left:30px;'>Next Page ? ?</a></li>");
		if (handbookpage[i] == file_name)
		{
			if (i > 0) 
				document.write("<li><a href='" + handbookpage[i-1] + "'>? ? Prev Page</a> </li>");
			if (i < handbookpage.length-1) 
				document.write("<li><a href='" + handbookpage[i+1] + "' style='padding-left:30px;'>Next Page ? ?</a></li>");
		}
	}
*/