 // These are functions to support the home page search box
 // change the tab class when selected/deselected
function check(tab) {
document.getElementById(tab+'radio').checked = 'checked';
document.getElementById('i').className = 'tab';
document.getElementById('s').className = 'tab';
document.getElementById(tab).className = 'current';
document.getElementById('help-'+tab).style.display = 'block';
}
 
	// This function allows shows/hides on an arbitrary set of elements
	// Ex. switchSection(new Array('showId1','showId2','showIdN'),new Array('hideId1','hideId2','hideIdN'))
	function switchSection(show,hide) {
		for (k in hide) {
			document.getElementById(hide[k]).style.display = 'none';
		}
		for (j in show) {
			document.getElementById(show[j]).style.display = 'block';
		}
	}
 
// This function sets up the search box
setSearch = function() {
var radios = document.getElementById('sform').getElementsByTagName('input');
for (i=0; i<radios.length; i++) {
if ((radios[i].type == "radio") && (radios[i].checked)) {
check(radios[i].parentNode.id);
}
}
}