<!--
// This function modifies the CSS display properties of an element
// referenced by id. It works by updating the class assigned to
// the element. Common use is to have two CSS classes, one to set
// display: none and the other to set display: (block/inline/table-cell/etc.)


function toggleExpanded(id) {
  // Check if DOM is available, return if not
  if(!document.getElementsByTagName || !document.createTextNode) {
    return;
  }
  // Get ref to object and check what style is currently set for it
  var obj = document.getElementById(id);
  if(obj.className == 'collapsed' || obj.className == 'answer') {
    obj.className = 'expanded';
  } else {
    obj.className = 'collapsed';
  }
}
//-->
