function init() {
	 
    if (document.getElementById){
		
		node = document.getElementById("professionals");
		divitems = node.getElementsByTagName("div");
	
		for (i = 0; i < divitems.length; i++) {
			
			if (divitems[i].className != "clearer"){
		 		divitems[i].className = "biotext-off";
		 	} // this hides the bios automatically, so if the user doesn't have javascript, all the bios still show up.
		}
	}

}

function toggle(bio) {
		
		totoggle = document.getElementById(bio);
 		
    	if (totoggle.className == "biotext-off") {
    	  		totoggle.className = "biotext";
			}
		else 
			{
				totoggle.className = "biotext-off";
    		}
    		
    	
 	
 }
 
 
function allon() {
 
		node = document.getElementById("professionals");
		divitems = node.getElementsByTagName("div");
	
		allbios = document.getElementById("alltoggle");
	
		if (allbios.className == "showall")
			{
				allbios.className = "hideall";
				allbios.innerHTML = "Hide all bios";
				for (i = 0; i < divitems.length; i++) 
					if (divitems[i].className != "clearer") {
		 		  	  divitems[i].className = "biotext"; } 
			}
		else 
			{
			allbios.className = "showall";
			allbios.innerHTML = "Show all bios";
				for (i = 0; i < divitems.length; i++)
					if (divitems[i].className != "clearer") {
		 			  divitems[i].className = "biotext-off"; } 
			}
			
}


window.onload=init;
 
 