
// 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 = "続きを読む";
	}
}

