
function expandItemAll(group) {
	//target_objs = document.getElementsById(indexOf(group)==0);
	target_objs = document.getElementById("content").getElementsByTagName("div");
	for(var i = 0; i<target_objs.length;i++){
		current_obj = target_objs[i];
		current_obj_id = String(current_obj.id);
		if(current_obj_id.indexOf(group)==0){
			target_obj = current_obj;
			target_obj_children = target_obj.getElementsByTagName("div");
			for(var i_sub = 0; i_sub<target_obj_children.length;i_sub++){
				current_obj2 = target_obj_children[i_sub];
				if(current_obj2.className=='content'){
					current_obj2.style.display = 'block';
					
				}
				if(current_obj2.className=='controlbar'){
					for(var ic = 0; ic<current_obj2.childNodes.length;ic++){
						if(current_obj2.childNodes[ic].className=='controls'){
							as = current_obj2.childNodes[ic].getElementsByTagName("a");
							as[1].style.display = "none";
							as[0].style.display = "inline";
						}
					}
				}
			}
		}
	}
}
function expandItem(group,item_num) {
	//target_obj = inobj.parentNode.parentNode.parentNode;
	target_obj = document.getElementById(group+item_num);
	target_obj_children = target_obj.getElementsByTagName("div");
	for(var i = 0; i<target_obj_children.length;i++){
		current_obj = target_obj_children[i];
		if(current_obj.className=='content'){
			current_obj.style.display = 'block';
		}
		if(current_obj.className=='controlbar'){
			for(var ic = 0; ic<current_obj.childNodes.length;ic++){
				if(current_obj.childNodes[ic].className=='controls'){
					as = current_obj.childNodes[ic].getElementsByTagName("a");
					as[1].style.display = "none";
					as[0].style.display = "inline";
				}
			}
		}
	}
}

function collapseItemAll(group) {
	//target_objs = document.getElementsById(indexOf(group)==0);
	target_objs = document.getElementById("content").getElementsByTagName("div");
	for(var i = 0; i<target_objs.length;i++){
		current_obj = target_objs[i];
		current_obj_id = String(current_obj.id);
		if(current_obj_id.indexOf(group)==0){
			target_obj = current_obj;
			target_obj_children = target_obj.getElementsByTagName("div");
			for(var i_sub = 0; i_sub<target_obj_children.length;i_sub++){
				current_obj2 = target_obj_children[i_sub];
				if(current_obj2.className=='content'){
					current_obj2.style.display = 'none';
				}
				if(current_obj2.className=='controlbar'){
					for(var ic = 0; ic<current_obj2.childNodes.length;ic++){
						if(current_obj2.childNodes[ic].className=='controls'){
							as = current_obj2.childNodes[ic].getElementsByTagName("a");
							as[0].style.display = "none";
							as[1].style.display = "inline";
						}
					}
				}
			}
		}
	}
}
function collapseItem(group,item_num){
	target_obj = document.getElementById(group+item_num);
	target_obj_children = target_obj.getElementsByTagName("div");
	for(var i = 0; i<target_obj_children.length;i++){
		current_obj = target_obj_children[i];
		if(current_obj.className=='content'){
			current_obj.style.display = 'none';
		}
		if(current_obj.className=='controlbar'){
			for(var ic = 0; ic<current_obj.childNodes.length;ic++){
				if(current_obj.childNodes[ic].className=='controls'){
					as = current_obj.childNodes[ic].getElementsByTagName("a");
					as[0].style.display = "none";
					as[1].style.display = "inline";
				}
			}
		}
	}
}
-->
