// JavaScript Document

//<a class="btn_thead"><img class="show"></a>
function btn_thead(e){
	if(window.showHelp){
		sh_thead(e.srcElement);
	}else{
		sh_thead(e.target);
	}
}
function sh_thead(obj){
	var par = obj.parentNode.parentNode.parentNode.parentNode.parentNode;
	var tmp = par.nextSibling;
	for(var i=0; i<15; i++){
		if(tmp.nodeName != 'TABLE'){
			tmp = tmp.nextSibling;
		}else{
			tmp.style.display = tmp.style.display ? '' : 'none';
			obj.className = tmp.style.display ? 'hide' : 'show'
			break;
		}
	}
}
function make_btn_thead(){
	var tmp = document.getElementsByTagName('A');
	for(var i=0; i<tmp.length; i++){
		if(tmp[i].className == 'btn_thead'){
			addEvent(tmp[i], 'click', btn_thead);
			sh_thead(tmp[i].firstChild);
			sh_thead(tmp[i].firstChild);
		}
	}
}
make_btn_thead();
