// This closes the psudo-pop-ups
function closeDiv(objDetail) {
	objDetail.style.display = "none";
}

// Shows the detail div
function showDetail(detailIDName) {
	objDetail = document.getElementById(detailIDName);
	// If it's hidden, show it!
	if (objDetail.style.display == "none") {
		hideDivs();
		objDetail.style.display = "block";
	}
	// If it's showing, hide it!
	else if (objDetail.style.display == "block") {
		hideDivs();
	}
}

// Hides every element with an ID which matches the value of the array detailDivs
function hideDivs() {
	for (i=0; i < detailDivs.length; i++)
	{
		document.getElementById(detailDivs[i]).style.display = "none";
	}
}
