/***********************
 * All the pages in the Particle Adventure are maintained by this list of the page order
 * and nesting level information. 
 *
 * This script first defines a giant array pageList for keeping track of the pages,
 * then provides manipulator functions for dealing with this data.
 ***********************/

	/* The page desciription format is "<DEPTH>Short Name:URL relative to index.html"
		where <DEPTH> is a certain number of hash marks # that indicate the relative depth.
	  */

pageList = new Array (
"什麼是基本?:startstandard.html",
		"#自古以來的問題:startstandard.html",
		"#尋找基本:fundamental.html",
		"#原子:atom.html",
		"#原子是基本嗎?:atom_fund.html",
		"#原子核是基本嗎?:nucleus_fund.html",
		"#質子和中子是基本嗎?:pn_fund.html",
		"#現代原子模型:modern_atom.html",
		"#原子的大小:scale.html",
		"#我們在尋找什麼?:modern_physics.html",
		"#標準模型:standard_model.html",
		"#標準模型測驗:quiz_sm.html",
		"世界是由什麼組成?:quarks_leptons.html",
		"#夸克和:quarks_leptons.html",
		"#物質和反物質:antipreface.html",
		"#什麼是反物質?:antimatter.html",
		"#夸克:quarks.html",
		"#夸克的命名:quarknaming.html",
		"#強子、重子和介子:hadrons.html",
		"#輕子:leptons.html",
		"#輕子衰變:lepton_decay.html",
		"#輕子類型守恆:lepton_conservation.html",
		"#輕子衰變測驗:quiz_ld.html",
		"#微中子:neutrinos.html",
		"#粒子組成測驗:quiz_wp.html",
		"#物質的世代:generations.html",
		"#物質摘要:matter_summary.html",
		"是什麼使它結合在一起?:4interactions.html",
		"#四種作用力:4interactions.html",
		"#物質如何相互作用?:interact.html",
		"#看不見的作用:unseen.html",
		"#電磁現象:electromagnetism.html",
		"#剩餘的電磁力:residuale_m.html",
		"#關於原子核?:binding.html",
		"#強作用力:strong.html",
		"#色荷:color.html",
		"#夸克的限制:quark_confinement.html",
		"#夸克放射出膠子:quarks_gluons.html",
		"#剩餘的強作用力:residualstrong.html",
		"#弱作用力:weak.html",
		"#電弱作用力:electroweak.html",
		"#萬有引力:gravity.html",
		"#作用力摘要:inter_summary.html",
		"#量子力學:quantum_mech.html",
		"#庖利不相容原理:pauli.html",
		"#費米子與玻色子:fermibos.html",
		"#要記住許多:remember.html",
		"粒子衰變與滅絕:decay_intro.html",
		"#什麼是衰變?:decay_intro.html",
		"#放射性:decay_start.html",
		"#放射性粒子:radio_part.html",
		"#衰變的困惑:unhappy.html",
		"#進入核式界:rope.html",
		"#如果它能發生，它就會發生:quantum.html",
		"#半衰期:half_life.html",
		"#消失的質量:mm.html",
		"#粒子衰變的仲介者:mediator.html",
		"#虛粒子:virtual.html",
		"#不同的作用力Different Interactions:decay_dif.html",
		"#滅絕:annih.html",
		"#氣泡室與衰變:all_decay.html",
		"#中子β衰變:npe.html",
		"#電子正子滅絕:eedd.html",
		"#頂夸克的產生:top_pro.html",
		"未解之謎:beyond_start.html",
		"#標準模型沒有說的事:beyond_start.html",
		"#標準模型的理論:standard_modeling.html",
		"#三個世代:three_gen.html",
		"#關於質量?:masses.html",
		"#大一統理論:unified.html",
		"#力與大一統理論:grand.html",
		"#超對稱性:supersymmetry.html",
		"#絃理論:string.html",
		"#另一次元Extra Dimensions:extra_dim.html",
		"#黑暗物質:dark.html",
		"我們如何知道這些?:exp_start.html",
		"#試驗一個理論:exp_start.html",
		"#尋找原子結構:atom_search.html",
		"#拉塞福的實驗結果Rutherford's Result:rutherfords_result.html",
		"#拉塞福的分析:rutherfords_analysis.html",
		"#物理學家如何實驗:how_to_exp.html",
		"#偏折探針:deflected.html",
		"我們如何偵測發生了什麼事?:detect_world.html",
		"#偵測世界:detect_world.html",
		"#較佳的顯微境:better_micro.html",
		"#波長，洞穴:cave.html",
		"#波長，寓意:moral.html",
		"#波長和解析度:wave_res.html",
		"#物理學家的工具：加速器, the Accelerator:tool.html",
		"#波長和粒子:waves.html",
		"#宇宙的尺度:meterstick.html",
		"#質量和能量:mass_and_energy.html",
		"#質能轉換:collision.html",
		"我們如何用微小的粒子作實驗?:accel.html",
		"#加速器:accel.html",
		"#如何得到用來加速的粒子:get_part.html",
		"#加速粒子:accel_particles.html",
		"#加速粒子的動畫:accel_ani.html",
		"#加速器的設計:accel_design.html",
		"#粒子撞擊定靶實驗:fixed_target.html",
		"#粒子束互撞實驗:colliding_beam.html",
		"#線性或圓形加速器?:lin_circ.html",
		"#是什麼使粒子轉圈圈?:circle.html",
		"#加速器設計的優劣:accel_adv.html",
		"#主要的加速器:variation.html",
		"#事件:event.html",	
		"#偵測器:detectors.html",
		"#偵測器的形狀:shape_detector.html",
		"我們如何解讀數據?:modern_detect.html",
		"#現代偵測器:modern_detect.html",
		"#典型的偵測器元件:component_detector.html",
		"#測量電荷與動量:measure.html",
		"#偵測器截面:end_view.html",
		"#待測粒子的軌跡:quiz_track.html",
		"#數據的電腦重建:computer.html",
		"#夸克/膠子事件:comp_qg.html",
		"#結語:exp_end.html");

			

	
	
	/*********************/
	/* getTitle
	   Take a description like "###Atoms?:atoms.html" and return "Atoms?" */
	function getTitle(description) {
		var index_1 = description.indexOf(":");
		if (index_1 == -1) {
			alert(desription + " is an illegal description.");
			return "1";
		} 
		
		var index_2 = description.substring(index_1 + 1, description.length).indexOf(":");
		if (index_2 == -1) {
			alert(description + " is an illegal description.");
			return "1";
		} 
		return description.substring(index_1 + 1,index_2 + index_1 + 1);	
	}
	
	/*********************/
	/* getURL 
	   Take a description like "###Atoms?:atoms.html" and return "atoms.html" */
	function getURL(description) {
		var index_1 = description.indexOf(":");
		if (index_1 == -1) {
			alert(description + " is an illegal description.");
			return "1";
		} 
		
		var index_2 = description.substring(index_1 + 1, description.length).indexOf(":");
		if (index_2 == -1) {
			alert(description + " is an illegal description.");
			return "1";
		} 
		return description.substring(index_1+ index_2 + 2, description.length);	
	}
	
	
