function chDp(prefix,total,thd) {
	var tmp_id,tmp_obj;
	for (i = 0;i < total;i++) {
		if (i==3||i==4) continue;
		tmp_id  = prefix + i;
		tmp_obj = gE(tmp_id);
		if (thd == i) {
			tmp_obj.style.display = tmp_obj.style.display == 'none' ? '' : 'none';
		} else {
			tmp_obj.style.display = 'none';
		}
	}
}

function withDp(prefix,total,thd) {
	var tmp_id;
	tmp_id = prefix + thd;
	chDp(prefix,total,thd);
	for (i=0;i < 9; i++) {	
		if (i==3||i==4) continue;
		if (thd == i) {
			if (gE(tmp_id).style.display == 'none') {
				imgTurn(prefix,i,'light');
			} else {
				imgTurn(prefix,thd,'on');
			}
		} else {
			imgTurn(prefix,i,'light');
		}
	}
}

function imgTurn(prefix,thd,statu) {
	var tmp_id,depend_id;
		tmp_id = prefix + thd;
		depend_id = prefix + 'img_' + thd;
}
