/*This code creates mouseover text to jump below buttons that are moused over*/

function changeDisplay(theChecked,theWhat) {
	var theNode; var theDisplay;
	/* alert("in changeDisplay. theWhat=" + theWhat + " theChecked = " + theChecked);  */
	if (theChecked == true) {
		theDisplay = "";
	} else {
		theDisplay = "none";
	}
	for (var i=1;;i++) {
		// Check if the getElementById method is available
		if (document.getElementById) {
			theNode = document.getElementById(theWhat + i); /* alert(theNode); */
			if (theNode == null) { return; }
		} else if (document.all) {
			/* The alert lets me verify that I tested the path */
			alert("Running an older version of IE." + " May not be able to hide rows");
			theNode = document.all[theWhat+i];
			if (theNode == null){ return; }
		} else {
			alert("Cannot change visibility of the display element." + " Was " + theWhat);
			return;
		}
		theNode.style.display = theDisplay;
	}
}
function changeAll(all) {
	var all = ["btnCaption1","btnCaption2","btnCaption3","btnCaption4","btnCaption5","btnCaption6"];
	for (var i=0; i<all.length; i++) {
		changeDisplay(false, all[i]);
	}
	changeDisplay(true, 'btnCaptionSpacer');
}