<!--

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

// 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,container,holder){
	// define the containers
	// this is the display container
	var contentContainer = document.getElementById(container);
	document.getElementById(container).style.display="block";
	// this is a repository for divs not currently in the display
	var contentHolding = document.getElementById(holder);
	// 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()}


// -->