/*	グローバルメニュー書き出し
--------------------------------------------------*/
function menuNaviW(name)
{
	MenuID = new Array('Gen' , 'Med' , 'Out' , 'Sta' , 'Ins' , 'Can');
	MenuImg = new Array('general' , 'medical' , 'outline' , 'staff_w' , 'institute' , 'cancer_base');
	MenuAlt = new Array('一般向けメニュー','医療機関向けメニュー','病院概要','職員募集','研究局' , 'がん拠点病院');

	myNo=99;
	
	for(i=0; i<MenuAlt.length; i++)
	{
		if(name == MenuID[i])	{ myNo = i; break;	}
	}

	document.write('<div id="headNavi">\n');
	document.write('<h2>サイトグローバルメニュー</h2>\n');
	document.write('<ul>\n');
	for(i=0; i < MenuAlt.length; i++)
	{
		document.write('<li id="navi' + MenuID[i] + '"><a href="');
		if( MenuID[i] == 'Ins' )
		{
			document.write('/inst/jp');
		}
		else if( i != 0 )
		{
			document.write('/' + MenuImg[i] );
		}
		document.write('/index.html">');
		document.write('<img src="/img/navi_' + MenuImg[i]);
		if(i == myNo)
		{
			document.write('_on.gif');
		}
		else
		{
			document.write('.jpg');
		}

		document.write('" alt="' + MenuAlt[i] + '" />');
		document.write('</a></li>\n');
	}
	document.write('</ul>\n');
	document.write('</div>\n');
}


/*	一般向けメニュー書き出し
--------------------------------------------------*/
function menuSubGW(name)
{
	var myD = 'general/';
	MenuID = new Array('Pat' , 'Vis' , 'Cen' , 'Hos' , 'Dat' , 'Tea' , 'Car' , 'Sup');
	MenuImg = new Array('patient' , 'visitor' , 'center' , 'hospital' , 'data' , 'team' , 'care' , 'support');
	MenuAlt = new Array('受診のご案内','ご面会の方へ','センターのご案内','診療のご案内','医療の質と安全' , 'チームで支えるがん医療' , '緩和治療','患者相談支援センター');
	
	myNo=99;
	
	for(i=0; i<MenuAlt.length; i++)
	{
		if(name == MenuID[i])	{ myNo = i; break;	}
	}

	document.write('<div id="subMenu">\n');
	document.write('<h2>一般向けメニュー</h2>\n');
	document.write('<ul>\n');
	for(i=0; i < MenuAlt.length; i++)
	{
		document.write('<li id="mg' + MenuID[i] + '"><a href="');
		if( i != 0 )
		{
			document.write('/' + myD + MenuImg[i] );
		}
		document.write('/index.html">');
		document.write('<img src="/img/mg_' + MenuImg[i]);
		if(i == myNo)
		{
			document.write('_on.jpg');
		}
		else
		{
			document.write('.gif');
		}

		document.write('" alt="' + MenuAlt[i] + '" />');
		document.write('</a></li>\n');
	}
	document.write('</ul>\n');
	document.write('</div>\n');
}

/*	医療機関向けメニュー書き出し
--------------------------------------------------*/
function menuSubMW(name)
{
	var myD = 'medical/';
	MenuID = new Array('Hos' , 'Sup' , 'Nur' , 'For' , 'Res' , 'Rel' , 'Sem');
	MenuImg = new Array('hospital' , 'support' , 'nursing' , 'forefront' , 'reserve' , 'relation' , 'seminar');
	MenuAlt = new Array('診療科紹介','診療を支える部門','看護のご案内','先端医療','医療機関からのご予約' , '地域医療連携室' , 'セミナー・勉強会等');
	
	myNo=99;
	
	for(i=0; i<MenuAlt.length; i++)
	{
		if(name == MenuID[i])	{ myNo = i; break;	}
	}

	document.write('<div id="subMenu">\n');
	document.write('<h2>医療機関向けメニュー</h2>\n');
	document.write('<ul>\n');
	for(i=0; i < MenuAlt.length; i++)
	{
		document.write('<li id="mm' + MenuID[i] + '"><a href="/' + myD);
		if( i != 0 )
		{
			document.write( MenuImg[i] + '/');
		}
		document.write('index.html">');
		document.write('<img src="/img/mm_' + MenuImg[i]);
		if(i == myNo)
		{
			document.write('_on.jpg');
		}
		else
		{
			document.write('.gif');
		}

		document.write('" alt="' + MenuAlt[i] + '" />');
		document.write('</a></li>\n');
	}
	document.write('</ul>\n');
	document.write('</div>\n');
}


/*	職員募集メニュー書き出し
--------------------------------------------------*/
function menuSubSW(name)
{
	var myD = 'staff_w/';
	MenuID = new Array('Nur' , 'Doc' , 'Com');
	MenuImg = new Array('index' , 'doctor' , 'comedical');
	MenuAlt = new Array('看護師','医師','コメディカル');
	
	myNo=99;
	
	for(i=0; i<MenuAlt.length; i++)
	{
		if(name == MenuID[i])	{ myNo = i; break;	}
	}

	document.write('<div id="subMenu">\n');
	document.write('<h2>職員募集メニュー</h2>\n');
	document.write('<ul>\n');
	for(i=0; i < MenuAlt.length; i++)
	{
		document.write('<li id="ms' + MenuID[i] + '"><a href="/' + myD);
		document.write( MenuImg[i] + '.html">');

		document.write('<img src="/img/ms_' + MenuImg[i]);
		if(i == myNo)
		{
			document.write('_on.jpg');
		}
		else
		{
			document.write('.gif');
		}

		document.write('" alt="' + MenuAlt[i] + '" />');
		document.write('</a></li>\n');
	}
	document.write('</ul>\n');
	document.write('</div>\n');
}