<!--

//	Adapted from
//	Content-swapping using the DOM
//	Dave Shuck, www.daveshuck.com
//	19 October 2006

var content = new Array()
content[0] = "swap-1"
content[1] = "swap-2"
content[2] = "swap-3"
content[3] = "swap-4"
content[4] = "swap-5"
content[5] = "swap-6"
content[6] = "swap-7"
content[7] = "swap-8"
content[8] = "swap-9"
content[9] = "swap-10"
content[10] = "swap-11"
content[11] = "swap-12"
content[12] = "swap-13"
content[13] = "swap-14"
content[14] = "swap-15"
content[15] = "swap-16"
content[16] = "swap-17"
content[17] = "swap-18"
content[18] = "swap-19"
content[19] = "swap-20"

// this function sends any child objects back into the 'hold' div
function writeContent(content){
	// here we will define our containers
	// this is the display container
	var contentContainer = document.getElementById("swap");
	// this is a repository for divs not currently in the display
	var contentHolding = document.getElementById("hold");
	// send any children objects currently in the display to the holding div
	while(contentContainer.firstChild) {
		contentHolding.appendChild(contentContainer.firstChild);
	}
	// this is the active content
	var contentObject = document.getElementById(content)
	// put the active content in the display div
	contentContainer.appendChild(contentObject);
}

// this function reloads the page in order to return to the initial state
function reloadPage(){
	window.location.reload()
}

// -->