var pageOrder = new Array ("turnquist_porsche","ritchie_porsche","santafe_garage","johnson_spec_highland","potts_e_mazda","potts_e", "rinner_custom_e","lasher_jeep","dodge_flames","earhart_corvette_wind","emerson_acura","mazda_cx7","johnson_spece30","mazda_truck_laguna","majorino_custom","mazda_medical","danmar_truck","curci_dsports","buliavac_porsche","thompson_ghostrider","tripoint_mutt","earhart_corvette","bell_dodge","formula_st","mazda_pacecar2","foxx_porsche","preston_infiniti","pfadtracing","mazda_pacecar","mitchell_ferrari","lim_lotus","johnson_spec","richards_dodge","peterson_datsun","brown_custom_flames","hawk_gokart","haywood_miata","toland_custom","bush_sandrail","barrows_spec","little_miata","lola","turney_graphics","canney_graphics","fsl_custom","doug_spec","name_hull","lamme_mini","fox_alfa","hinkle_logos","cohen_porsche","rinner_mustang","edwards_lotus","krueger_scarab","setar_mga","madson_porsche","diaz_shelby","levan_porsche","weber_cobra","willcox_mazda_numbers","colangelo_bmw","viggars_f3","williams_porsche914", "morrison_cobra","taylor_porsche911","degasparis_fiat124","curci_dsports2","palacio_formula_cont","mannina_mustang","earhart_corvette2","smalley_mustang","axion","herr_mgb","tandy","osborne_porsche","scheid_titan","holifield_miata","dabney_mgb","schepergerdes_camero","lim_lotus2","scheid_lola","osborne_numbers","scheid_ginetta","warneke", "healey","strong_ff");


function createLinks()  {
	
	var i = 0;
	
	// figure out what number this page is in the array and set "i" equal to it	
	for (i=0; i< pageOrder.length; i++) {
		if (pageOrder[i] == thisPage)
			break;
		}
		

	// if "i" the last page, the next page goes back to the beginning; otherwise increment by 1 	
	if (i == pageOrder.length - 1) {
		nextPage = pageOrder[0]+".htm";
	} else {
		nextPage = pageOrder[i+1]+".htm";
	}
	

	// if "i" the first page, the previous page is the last one in the order; otherwise decrease by 1 	
	if (i == 0) {
		previousPage = pageOrder[pageOrder.length-1]+".htm";
	} else {
		previousPage = pageOrder[i-1]+".htm";
	}
}