function expandall() {
var list = document.getElementsByTagName("span");
	for (i=0;i<list.length;i++) {
		if (list[i].id != null && list[i].id.indexOf("sect") != -1) {
			if (list[i].style.display == "none") {
			toggle(list[i].id.substring(4));
			}
		}
	}
}

function collapseall() {
var list = document.getElementsByTagName("span");
	for (i=0;i<list.length;i++) {
		if (list[i].id != null && list[i].id.indexOf("sect") != -1) {
			if (list[i].style.display != "none") {
			toggle(list[i].id.substring(4));
			}
		}
	}
}

function toggle(sectionCnt) {
var sect = document.getElementById("sect" + sectionCnt);
var img  = document.getElementById("img" + sectionCnt);
var tog  = document.getElementById("tog" + sectionCnt);
	if (sect.style.display == 'none') {
	sect.style.display = 'block';
		if (tog.src.indexOf("lplus") != -1) {
		tog.src = "imagenes/lminus.gif";
		} else {
		tog.src = "imagenes/sitemap-minus-2.gif";
		}
	} else {
	sect.style.display = 'none';
		if (tog.src.indexOf("lminus") != -1) {
		tog.src = "imagenes/lplus.gif";
		} else {
		tog.src = "imagenes/sitemap-plus-2.gif";
		}
	}
}
