// There should be CSS defined to hide contents within this class:
var myHideClass = "hideme";
// There should be CSS defined to show contents within this class:
var myShowClass = "showme";

function showMe(thisID){
	var myID = document.getElementById(thisID);
	if (myID.className != myShowClass){
		myID.className = myShowClass;
	}
}

function hideMe(thisID){
	var myID = document.getElementById(thisID);
	if (myID.className != myHideClass){
		myID.className = myHideClass;
	}
}

function swapShow(thisID, thisParentID){
	var myDivs = document.getElementsByTagName("div");
	for (i=0; i < myDivs.length; i++){
		if(myDivs[i].parentNode.id == thisParentID) {
			if(myDivs[i].id == thisID) {
				showMe(myDivs[i].id);
			}
			else {
				hideMe(myDivs[i].id);
			}
		}
	}
}
