var version = navigator.appVersion;

/*if (version.indexOf("Mac") != -1) {
  
}
else if (version.indexOf("Windows") != -1) {
  
}*/

function toggleProcedure(currProcedure) {
	if (version.indexOf("Windows") != -1) {
		thisProcedure = document.getElementById("procedure"+currProcedure).style;
		thisExpander = document.getElementById("expander"+currProcedure);
		if (thisProcedure.display == "block") {
			thisProcedure.display = "none";
			thisExpander.src = "_image/ex.gif";
		}
		else {
			thisProcedure.display = "block";
			thisExpander.src = "_image/co.gif";
		}
	}
	return false
}
//
function makeVisible(currProcedure) {
	if (version.indexOf("Windows") != -1) {
		thisProcedure = document.getElementById("procedure"+currProcedure).style;
		if (thisProcedure.display == "block") {
			thisProcedure.display = "block";
		}
		else {
			thisProcedure.display = "block";
		}
	}
	return false
}
function makeHidden(currProcedure) {
	if (version.indexOf("Windows") != -1) {
		thisProcedure = document.getElementById("procedure"+currProcedure).style;
		if (thisProcedure.display == "none") {
			thisProcedure.display = "none";
		}
		else {
			thisProcedure.display = "none";
		}
	}
	return false
}
//
function Hide(currProcedure) {
	if (version.indexOf("Windows") != -1) {
		thisProcedure = document.getElementById("procedure"+currProcedure).style;
		thisExpander = document.getElementById("expander"+currProcedure);
		thisProcedure.display = "none";
		thisExpander.src = "_image/ex.gif";
	}
	return false
}
//
function Show(currProcedure) {
	if (version.indexOf("Windows") != -1) {
		thisProcedure = document.getElementById("procedure"+currProcedure).style;
		thisExpander = document.getElementById("expander"+currProcedure);
		thisProcedure.display = "block";
		thisExpander.src = "_image/co.gif";
	}
	return false
}
function changeColor(currProcedure,my_color,change_color) {
	if (version.indexOf("Windows") != -1) {
		thisProcedure = document.getElementById(currProcedure).style;
		currColor = thisProcedure.background;
		if  ((!currColor)||(currColor == my_color)){
			thisProcedure.background = change_color;
		}
		if (currColor == change_color){
			thisProcedure.background = my_color;
		}
	}
	return false
}
