// expand/collapse modules....
// first, run function to collapse all (when page loads)
// then, have toggle function available as an option

/*function initialCollapse() {
	// if browser supports getElementById
	if (document.getElementById) {
		
		allDivs = document.getElementsByTagName("div");
		
		for (i=0;i<allDivs.length;i++) {
			if (allDivs.item(i).className == "collapsible") {
				allDivs.item(i).style.display = "none";
			}
		}
		
	// if browser doesn't support getElementById
	} else {
		alert("Please upgrade your web browser or disable JavaScript.");
	}
}*/


function toggle(targetId) {
	
	// if browser supports getElementById
	if (document.getElementById) {
		
		target = document.getElementById(targetId);
		targetDivs = target.getElementsByTagName("div");
		
		for (i=0;i<targetDivs.length;i++) {
			if (targetDivs.item(i).className == "collapsible") {
				if (targetDivs.item(i).style.display == "block" || targetDivs.item(i).style.display == "") {
					
					// hide the information
					targetDivs.item(i).style.display = "none";
										
				} else {

					// show the information
					targetDivs.item(i).style.display = "block";

				}
			}
		}
		
	// if browser doesn't support getElementById
	} else {
		alert("Please upgrade your web browser or disable JavaScript.");
	}
}