function expCollList_class(par1,par2)
{
	
	this.ready = false
	this.count = par1
	this.elemContIdPatt = par2
	this.showOnlyOne = 1
	this.elemTitle_howLocate = 'self'
	this.elemTitle_normalClass = ''
	this.elemTitle_activeClass = 'active'
	this.howFind_TitleMainFromCont = 2

	this.init = function(par1,par2,par3)
	{
		if (par1 && par1!=0) this.showOnlyOne = par1
		if (par2 && par2!=0) this.elemTitle_howLocate = par2
		if (par3 && par3!=0) this.elemTitle_activeClass = par3
	}

	this.showHide = function(obj,nr)
	{
		var targDisplay
		if (!this.ready) return
		var contId = this.elemContIdPatt+nr
		if (findObj(contId)) var targ = findObj(contId)
		else return
		if (targ.style.display) targDisplay = targ.style.display
		else targDisplay = 'none'
		var elemTitle_main
		if (this.elemTitle_howLocate=='self') elemTitle_main = obj
		if (this.elemTitle_howLocate=='parent') elemTitle_main = obj.parentNode
		if (this.showOnlyOne) this.hideAll()
		if (targDisplay=='none')
		{
			if (this.elemTitle_activeClass!==false) elemTitle_main.className = this.elemTitle_activeClass
			targ.style.display = 'block'
		}
		else
		{
			if (this.elemTitle_activeClass!==false) elemTitle_main.className = this.elemTitle_normalClass
			targ.style.display = 'none'
		}
	}
	
	this.hideAll = function()
	{
		if (!this.ready) return;
		for (var i=1; i<=this.count; i++)
		{
			var contId = this.elemContIdPatt+i
			if (findObj(contId))
			{
				var elemCont = findObj(contId)
				elemCont.style.display = 'none'
				if (this.howFind_TitleMainFromCont=='previousSibling') elemCont.previousSibling.className = this.elemTitle_normalClass
				if (this.howFind_TitleMainFromCont==2) elemCont.previousSibling.childNodes[0].className = this.elemTitle_normalClass
			}
		}
	}
	
	this.showAll = function()
	{
		if (!this.ready) return;
		for (var i=1; i<=this.count; i++)
		{
			var contId = this.tabIdPattern+i
			if (findObj(contId)) findObj(contId).style.display = 'block'
		}
	}
	
	this.checkReady = function()
	{
		if (br.dom && this.count && this.elemContIdPatt) this.ready = true
	}

}
