// Expand/Contract content

function showhide() {
	for(i=0;i < showhide.arguments.length;i++){
		o_showhide = document.getElementById(showhide.arguments[i])
		s_showhide = (o_showhide.style.display!="") ? o_showhide.style.display : "none";
		o_showhide.style.display = (s_showhide=="none") ? (o_showhide.nodeName=="SPAN") ? "inline" : "block" : "none";
	}
}

function hide_all ( container,id_to_show ){
  var container_id;   // this is where the container id will be placed
  var curr_element_id; // the element we are currently working on
  // get the id of the container
  container_id = document.getElementById(container);
  // get a list of all div's inside the container and store them in the array listitems
  var listitems= container_id.getElementsByTagName("div");
  // now, process each item stored in listitems
  for (id=0; id<listitems.length; id++) {
    // set all of them to hidden, ie style.display = 'none'
    listitems[id].style.display = 'none';
  }
  // find the one we want to display
  id = document.getElementById(id_to_show);
  // and set it to be displayed
  id.style.display = 'block';
}
