var ver;
if(document.all) ver=1;
else if(document.layers) ver=2;
else ver=3;

dasu=(ver==2)?"show":"visible";
kesu=(ver==2)?"hide":"hidden";

var topflg=0;
//ヘッダーメニュー
var img_num=11;
if(document.images){
	imgtmenu=new Array(8);
	imgtmenu[0]=new Array(2);
	imgtmenu[0][0]=new Image(); imgtmenu[0][0].src="/koho/common/menu/img/me00008.gif";
	imgtmenu[0][1]=new Image(); imgtmenu[0][1].src="/koho/common/menu/img/me00009.gif";
	for(i=1;i<8;i++){
		imgtmenu[i]=new Array(2);
		imgtmenu[i][0]=new Image(); imgtmenu[i][0].src="/koho/common/menu/img/me000"+img_num+".gif";
		img_num++;
		imgtmenu[i][1]=new Image(); imgtmenu[i][1].src="/koho/common/menu/img/me000"+img_num+".gif";
		img_num++;
	}
}

var old_timg="";
var old_timg_num;
function tmenu_ImgChng(id,num,on_off){
	document.images[id].src=imgtmenu[num][on_off].src;
	old_timg=id;
	old_timg_num=num;
}

var old_tsub="";
var obj_tid;
var obj_thu;
var obj_thd;
function tmenu_show(id){
	tmenu_hide();
	tsec_hide();

	obj_tid=(ver==1)?document.all[id]:(ver==2)?document.layers[id]:document.getElementById(id);
	obj_tid=(obj_tid.style)?obj_tid.style:obj_tid;
	obj_thu=(ver==1)?document.all["hide_tu"]:(ver==2)?document.layers["hide_tu"]:document.getElementById("hide_tu");
	obj_thu=(obj_thu.style)?obj_thu.style:obj_thu;
	obj_thd=(ver==1)?document.all["hide_td"]:(ver==2)?document.layers["hide_td"]:document.getElementById("hide_td");
	obj_thd=(obj_thd.style)?obj_thd.style:obj_thd;

	obj_tid.visibility=dasu;
	obj_thu.visibility=dasu;
	obj_thd.visibility=dasu;
	old_tsub=id;
}

function tmenu_hide(){
	if(old_tsub!=""){
		obj_tid.visibility=kesu;
		obj_thu.visibility=kesu;
		obj_thd.visibility=kesu;
		tmenu_ImgChng(old_timg,old_timg_num,0)
		old_tsub="";
	}
}

var old_tssub="";
var obj_tsid;
function tsec_show(pare,num){
	tsec_hide();
	var id=pare+"sec"+num;

	obj_tsid=(ver==1)?document.all[id]:(ver==2)?document.layers[id]:document.getElementById(id);
	obj_tsid=(obj_tsid.style)?obj_tsid.style:obj_tsid;

	obj_tsid.visibility=dasu;
	old_tssub=id;
}

function tsec_hide(){
	if(old_tssub!=""){
		obj_tsid.visibility=kesu;
		old_tssub="";
	}
}

if(ver==2){
	document.write('<layer id="hide_tu" top=0 left=0 width=800 height=54 z-index=1 visibility="hidden"><a href="javascript:void(0)" onMouseOver="tmenu_hide();tsec_hide()"><img src="/koho/common/menu/img/clear.gif" width="800" height="54" border="0"></a></layer>');
	document.write('<layer id="hide_td" top=86 left=0 width=800 height=300 z-index=1 visibility="hidden"><a href="javascript:void(0)" onMouseOver="tmenu_hide();tsec_hide()"><img src="/koho/common/menu/img/clear.gif" width="800" height="300" border="0"></a></layer>');
}else{
	document.write('<div id="hide_tu" style="position:absolute; top:0; left:0; z-index:1; visibility:hidden"><a href="javascript:void(0)" onMouseOver="tmenu_hide();tsec_hide()"><img src="/koho/common/menu/img/clear.gif" width="800" height="54" border="0"></a></div>');
	document.write('<div id="hide_td" style="position:absolute; top:86; left:0; z-index:1; visibility:hidden"><a href="javascript:void(0)" onMouseOver="tmenu_hide();tsec_hide()"><img src="/koho/common/menu/img/clear.gif" width="800" height="300" border="0"></a></div>');
}

MM_preloadImages('/koho/common/menu/img/me00007.gif');

document.write('<LINK rel="stylesheet" href="/koho/common/css/header.css">');

function SubWinOpen(winName,url,W,H,f_posX,f_posY){
//サブウインドウオープン
var WinD11 = window.open(url,winName,'top='+f_posY+',left='+f_posX+',screenX='+f_posX+',screenY='+f_posY+',scrollbars=yes,resizable=1,width='+W+',height='+H+'');
WinD11.focus();
}