/* Script to show/hide any given FAQ */
function show(divId){
	var div = document.getElementById(divId);
	if (div.style.display == "none" || div.style.display == "") div.style.display = "block";
	else div.style.display = "none";
}

/* Script to initally hide all FAQs.  Since we want all hidden by default, use DOM instead of CSS so that if users have JavaScript disabled they can still see the FAQs. */
/* Note: All FAQ div ID's should begin with "faq" */
function hideAllFAQs() {
	var primary = document.getElementById("primary")
	var childArray = primary.childNodes;
	var i = 0;
	var j = 0;
	for (i = 0; i < childArray.length; i++){
		var child = childArray[i];
		if (child.nodeType == 1){ //Element node
			var id = child.getAttribute("id");
			if (id != null && id.indexOf("faq") == 0){
				child.style.display = "none";
			}
		}
	}
}
window.onload = function() { 
	hideAllFAQs(); 
}