/* based on an example by Stu Nicholls, 
   http://www.stunicholls.com/various/more_again.html */

var showID = ""
var showID2 = ""
var showID3 = ""

onload = function() {
	var e, i = 0;
	while (e = document.getElementsByTagName ('H4') [i++]) {
		if (e.className == 'switch') {
		e.onclick = function () {
			this.className = this.className == 'switch' ? 'switch off' : 'switch';
			this.nextSibling.className = this.className == 'switch' ? 'hide' : 'show';
			}
		}
	}
	var e3, i3 = 0;
	while (e3 = document.getElementsByTagName ('H3') [i3++]) {
		if (e3.className == 'switch') {
		e3.onclick = function () {
			this.className = this.className == 'switch' ? 'switch off' : 'switch';
			this.nextSibling.className = this.className == 'switch' ? 'hide' : 'show';
			}
		}
	}
	var e2, i2 = 0;
	while (e2 = document.getElementsByTagName ('H2') [i2++]) {
		if (e2.className == 'switch') {
		e2.onclick = function () {
			this.className = this.className == 'switch' ? 'switch off' : 'switch';
			this.nextSibling.className = this.className == 'switch' ? 'hide' : 'show';
			}
		}
	}
	if (document.getElementById(showID)) {
		document.getElementById(showID).className = this.className == 'switch off';
		document.getElementById(showID).style.cursor = 'pointer';
		document.getElementById(showID).nextSibling.className = this.className == 'show';
	}
	if (document.getElementById(showID2)) {
		document.getElementById(showID2).className = this.className == 'switch off';
		document.getElementById(showID2).style.cursor = 'pointer';
		document.getElementById(showID2).nextSibling.className = this.className == 'show';
	}
	if (document.getElementById(showID3)) {
		document.getElementById(showID3).className = this.className == 'switch off';
		document.getElementById(showID3).style.cursor = 'pointer';
		document.getElementById(showID3).nextSibling.className = this.className == 'show';
	}
}
