function InfoExpander(n) {
  if (!n) return false;
  
  function activate() {
    var active = InfoExpander.active;
    if (active != null) {
      active.className = InfoExpander.CLASSNAME + " info-off";
      active.infoRow.className = "info-row-off";
      InfoExpander.active = null;
    }
    if (active != this) {
      this.className = InfoExpander.CLASSNAME + " info-on";
      this.infoRow.className = "info-row-on";
      InfoExpander.active = this;
    }
  }
  
  var infoRow = n.nextSibling;
  while (infoRow && infoRow.nodeType == 3) {
    infoRow = infoRow.nextSibling;
  }
  if (infoRow && infoRow.className != InfoExpander.CLASSNAME) {
    n.infoRow = infoRow;
    n.infoRow.infoTrigger = n;
  }
  else return false;
  n.onclick = activate;
  var links = n.getElementsByTagName("a");
  if (links.length > 0) {
    links[0].onclick = function() {
      return false;
    };
  }
}

InfoExpander.active = null;
InfoExpander.setup = function() {
  var nl = document.body.getElementsByTagName("tr");
  for (var i = 0, l = nl.length; i < l; i++) {
    if (nl[i].className == InfoExpander.CLASSNAME) new InfoExpander(nl[i]);
  }
};

InfoExpander.CLASSNAME = "kamerlid";

function setExpand() {
InfoExpander.setup();
}
