function treeMakeEnv() {
	var kwExp = "subExp", kwCat = "subCat"

	function setConf(o /*obj*/) {
		o.revealtype = "click"
		o.mouseoverdelay = 200
		o.collapseprev = true		//Collapse previous before new
		o.defaultexpanded = []
		o.onemustopen = false
		o.animatedefault = false
		o.persiststate = true		//save probably(cookie)
		o.toggleclass = ["plusIcon", "minusIcon"] //two cls for 2 position of head
		o.togglehtml = ["", "", ""] //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
		o.animatespeed = "fast"		//speed (jq mode)
		o.oninit = function (headers, expandedindices) { }
		o.onopenclose = function (header, index, state, isuseractivated) { }
		return o;
	}
	for (var ind = 1; ind < 100; ind++) {
		var expObj = $('.' + kwExp + ind)
		if (expObj.length == 0) continue;
		ddaccordion.init(setConf({ headerclass: kwExp + ind, contentclass: kwCat + ind }))
	}
}
treeMakeEnv()

