var version = navigator.appVersion;

function toggleProcedure(currProcedure, currTextHide, currTextShow) {
	if (version.indexOf("Windows") != -1) {
		thisProcedure = document.getElementById("procedure"+currProcedure).style;
		thisProcedureText = document.getElementById("procedureText"+currProcedure);
		thisProcedureText.innerHTML = "";
		thisExpander = document.getElementById("expander"+currProcedure);

		if (thisProcedure.display == "block") {
			thisProcedure.display = "none";
			thisProcedureText.appendChild(document.createTextNode(currTextShow));
			thisExpander.src = "images/expand.gif";
		}
		else {
			thisProcedure.display = "block";
			thisProcedureText.appendChild(document.createTextNode(currTextHide));
			thisExpander.src = "images/collapse.gif";
		}
	}
	return false
}


function toggleProcedureOpen(currProcedure, currTextHide, currTextShow) {
	if (version.indexOf("Windows") != -1) {
		thisProcedure = document.getElementById("procedure"+currProcedure).style;
		thisProcedureText = document.getElementById("procedureText"+currProcedure);
		thisProcedureText.innerHTML = "";
		thisExpander = document.getElementById("expander"+currProcedure);

		if (thisProcedure.display == "none") {
			thisProcedure.display = "block";
			thisProcedureText.appendChild(document.createTextNode(currTextHide));
			thisExpander.src = "images/collapse.gif";
		}
		else {
			thisProcedure.display = "none";
			thisProcedureText.appendChild(document.createTextNode(currTextShow));
			thisExpander.src = "images/expand.gif";
		}
	}
	return false
}
