// thanks for (o)!
// Ogawa::Memoranda, http://as-is.net/blog/

function toggleWithClass(o,tClassName,initState) {
 var t = o.parentNode.nextSibling;
 while (t.className != tClassName) {
  t = t.nextSibling;
 }
 var s = t.style.display || initState;
 if (s != "block") {
   t.style.display = "block";
   o.title = "Collapse";
   o.innerHTML = "▲";
   } else {
  t.style.display = "none";
  o.title = "Expand";
  o.innerHTML = "▼";
}
}