var currentStory = 1
var dropList = ["policies", "board", "newBooks", "reading", "church", "localLinks", "kids"]

function hideDropOuts() {
	currentStory = 0
	for (i = currentStory; i <= dropList.length - 1; i = i + 1) {
		document.getElementById(dropList[i]).style.visibility = "hidden";
	}
}

function dropOut(a) {
	currentStory = a - 1
	updatePage()
}

function updatePage() {
	document.getElementById(dropList[currentStory]).style.visibility = "visible"
	for (i = currentStory + 1; i <= dropList.length - 1; i = i + 1) {
		document.getElementById(dropList[i]).style.visibility = "hidden";
	}
	for (i = currentStory - 1; i <= dropList.length - 1; i = i - 1) {
		document.getElementById(dropList[i]).style.visibility = "hidden";
	}
}