<!--

function toggle(e) {
	
	var tables = document.getElementsByTagName('table');
	var toggletables = [];

	for (i=0; i<tables.length; i++) {
		if (tables[i].id) {
			toggletables.push(tables[i]);
		}
	}
	/*
	var count = 0;
	for (i in toggletables) {
		count++;	
	}
	alert(count);
	*/
	// This toggles between two different arrow images
	var togglelinks = document.getElementsByName('toggle');
	var imgid = [];
	for (i = 0; i < togglelinks.length; i++) {
		imgid[i] = i + 1;	
	}
	
	//alert(document.URL.substring(document.URL.search(/=/)+1));
	if (document.getElementById(e.substring(0,1))) {
		var elem = document.getElementById(e.substring(0,1));
		//alert(e.substring(0,2));
		
		if (elem.getAttribute("src") == "images/downarrow_white_8x7.gif") {
			elem.setAttribute("src", "images/rightarrow_white_8x7.gif", 0);
		} else {
			elem.setAttribute("src", "images/downarrow_white_8x7.gif", 0);
		}
	} else {
		for (i in id) {
			document.getElementById(imgid[i]).setAttribute("src", "images/downarrow_white_8x7.gif", 0);
		}
	}
	
	// This reveals the specified content, and hides unspecified content 
	var id = [];
	for (i = 0; i < togglelinks.length; i++) {
		id[i] = (i + 1) + 'x';	
	}
	var is_safari = (navigator.appVersion.indexOf("Safari")!=-1);
	
	if (e.length > 2) e = null;
	
	// This hides everything
	for (j in toggletables) {
		toggletables[j].className = "hide";
	}
	
	// When no content is specified, this reveals everything
	if (e == null && !is_safari) { 
		for (j in toggletables) {
			toggletables[j].className = "";
		}
		//}
	} else if (e == null && is_safari) { // Safari needs help with thead group 
		for (j in toggletables) {
			toggletables[j].className = "show";
		}
	}
	
	// This shows the specified content
	if (e != null) {
		for (i in toggletables) {
			if (toggletables[i].id == e) {
				toggletables[i].className = "";
			}
		}
	}
}

//-->