// Functions to allow dynamic abstracts and bibliography entries.
var N=10;
var showAbstract = new Array(N);
var showBib = new Array(N);
function closeall() {
  var i = 0;
  for (i = 0; i < N; i++) {
    closeit("abs", i);
    closeit("bib", i);
    showAbstract[i] = showBib[i] = false;
  }
}
function openall() {
  var i = 0;
  for (i = 0; i < N; i++) {
    openit("abs", i);
    openit("bib", i);
    showAbstract[i] = showBib[i] = true;
  }
}
function openit(what, n) {
  document.getElementById(what+n).style.display = "block";
}
function closeit(what, n) {
  document.getElementById(what+n).style.display = "none";
}
function toggleabs(n) { 
  if (showAbstract[n]) closeit("abstract",n);
  else {openit("abstract",n);}
  showAbstract[n] = !showAbstract[n];
}
function togglebib(n) { 
  if (showBib[n]) closeit("bib",n);
  else {openit("bib",n);}
  showBib[n] = !showBib[n];
}
function bodystart() {
  closeall();
}
