<!--

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

var content = new Array()
content[0] = "text-swap-1"
content[1] = "text-swap-2"
content[2] = "text-swap-3"
content[3] = "text-swap-4"
content[4] = "text-swap-5"
content[5] = "text-swap-6"

// this function clears all child elements out of the object that is passed in
function clearElement(obj){
	while(obj.firstChild) obj.removeChild(obj.firstChild);
}

// 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("text-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();
}

// -->