/*
This is used in conjunction with a form element containing a select box (name / id = "selectBox") to build up
a drop down list of links to all the other articles.
The reason being that this file can serve as a centralized location from which to feed links into the entire page.
*/

var bFirstTime = true;
function buildOptions(inForm)
{
	if (bFirstTime)
	{
		addOption(inForm, "mother_of_the_nation.html", "The Mother Of The Nation");
		addOption(inForm, "tarkastad.html", "Sasap Field Trip To The Eastern Cape, April-May 2000");
		addOption(inForm, "president.html", "Word From The President");
		addOption(inForm, "martians.html", "The Martians Have Landed");
		addOption(inForm, "florisbad.html", "Direct Dating Of The Florisbad Fossil Hominid");
		addOption(inForm, "scientific.html", "Scientific Review / Wetenskaplike Oorsig");
		addOption(inForm, "profile.html", "Profile: A Portrait Of Dr. Paul Sereno - The 'Suchomimus Star'");
		addOption(inForm, "newsclip.html", "Newsclippings / Nuusknipsels");
		addOption(inForm, "humour.html", "Humour / Humor");
		addOption(inForm, "dinosaur.html", "Dinosouriërs Van Die Kruger Wildtuin");
		addOption(inForm, "../index.html", "South African Society for Amateur Palaeontologists");
		bFirstTime = false;
	}
}

function addOption(inForm, strVal, strName)
{
	var option = new Option(strName, strVal);
	var nLen = inForm.selectBox.length
	inForm.selectBox.options[nLen] = option;
}

function init()
{
	buildOptions(document.quickLink);
}