function toggle(id) {
	tmp = document.getElementById(id+"_");
	if (tmp.className == 'hide') {
		showit(id);
		showit('bg');
	} else {
		hideit(id);
		hideit('bg');
	}
}
function hideit(id) {
	tmp = document.getElementById(id+"_");
	tmp.className = 'hide';
}
function hideall() {
	var arr = new Array("dep0","arr0","bg");
	for(i=0;i<arr.length; i++) if(document.getElementById(arr[i]+"_")){
		tmp = document.getElementById(arr[i]+"_");
		tmp.className = 'hide';
	}
}
function showit(id) {
	tmp = document.getElementById(id+"_");
	tmp.className = '';
}