var nodeOC = []
var O
var C = []

function openClose(divd) {
	var idiv = getElement('div_'+divd)
	if (idiv) {
		var ibut = getElement('but_'+divd)
		idiv.style.display = nodeOC[divd] ? 'none' : 'block'
		ibut.src = "../pic/js/a"+(nodeOC[divd]?'a':'m')+"_.gif"
		nodeOC[divd] = !nodeOC[divd]
	}
}


function setAll() {
	var o = []
	var x=0
	while (O) {
		o[O] = true
		O = O.replace(/[0-9]+_$/,'')
		x++
		if (x == 10) break
	}
	for (var c in C) {
		var idiv = getElement('div_'+c)
		if (idiv) {
			var ibut = getElement('but_'+c)
			if (o[c]) {
				idiv.style.display = 'block'
				ibut.src = "../pic/js/am_.gif"
				nodeOC[c] = true
			}
			else {
				idiv.style.display = 'none'
			}
		}
	}

}




