<!--

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

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

// this function hides the content by assigning a very low z-index
function hideElement(elementId){
	var obj = document.getElementById(elementId);
	document.getElementById(elementId).style.display="none";
}

// this function sends any child objects back into the 'hold' div
function writeContent(swap){
	// define the containers
	// this is the display container
	var contentContainer = document.getElementById("swap");
	document.getElementById("swap").style.display="block";
	// 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(swap);
	// put the active content in the display div
	contentContainer.appendChild(contentObject);
}

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

// -->