function cx(c, arrow){
	if (c.style.display == ''){
		c.style.display = 'none';
		arrow.src = "/images/mn/c.gif"
	} else {
		c.style.display = '';
		arrow.src = "/images/mn/e.gif"
//		c.style.background = '#ECEFF7';
	}
}
function cxx(c, arrow){
		c.style.display = '';
		arrow.src = "/images/mn/e.gif"
}


var filterTimer
var filterTextVar
function filterCategories(filterText){
	filterTextVar = filterText

	clearTimeout(filterTimer)
	filterTimer = setTimeout("filterCategoriesGo(filterTextVar)", 50)
}

function filterCategoriesGo(filterText){
	var str = filterText.replace('^\\s*\[\(','');
			for(var i=0; i < cT.length; i++){
					c = document.getElementById("c" + i)
					c.style.display = "none";
				}	
		pattern1 = new RegExp("(^|[^A-Za-z0-9])" + str, "im");
			var optionIndex=-1;
			for(var i=0; i < cT.length; i++){
				if (pattern1.test(cT[i])){
					optionIndex++;
					c = document.getElementById("c" + i)
					c.style.display = "";
					//c = document.getElementById("i" + categoriesTextID[i])
					//if (c != null){
//						c.src = "/images/mn/c.gif"
					//}
				}
	}
}

