BGM = new Array(24);
BGM[0]="b_toudai200.gif";
BGM[1]="b_toudai200.gif";
BGM[2]="b_toudai200.gif";
BGM[3]="b_toudai200.gif";
BGM[4]="b_toudai200.gif";
BGM[5]="b_toudai200.gif";
BGM[6]="b_mo200.gif";
BGM[7]="b_mo200.gif";
BGM[8]="b_mo200.gif";
BGM[9]="b_beach200.gif";
BGM[10]="b_beach200.gif";
BGM[11]="b_beach200.gif";
BGM[12]="b_beach200.gif";
BGM[13]="b_2beach200.gif";
BGM[14]="b_2beach200.gif";
BGM[15]="b_2beach200.gif";
BGM[16]="b_2beach200.gif";
BGM[17]="b_sunset200.jpg";
BGM[18]="b_2sunset200.jpg";
BGM[19]="b_toudai200.gif";
BGM[20]="b_toudai200.gif";
BGM[21]="b_toudai200.gif";
BGM[22]="b_toudai200.gif";
BGM[23]="b_toudai200.gif";
size=' HEIGHT=40 WIDTH=200';

TIT = new Array(18);
LINK = new Array(18);
TIT[0]="HOME";
TIT[1]="会長挨拶";
TIT[2]="レース委員会";
TIT[3]="掲示板";
TIT[4]="シアトルカップ";
TIT[5]="クラブグッズ";
TIT[6]="委員会だより";
TIT[7]="イベントカレンダー";
TIT[8]="会員専用ページ";

TIT[9]="管理者へメール";
TIT[10]="所属艇紹介";
TIT[11]="ハーバー概要";
TIT[12]="リンク";
TIT[13]="ギャラリー";
TIT[14]="須磨ヨットクラブ紹介";
TIT[15]="";
TIT[16]="アクセス（地図）";
TIT[17]="管理者ページ";

LINK[0]="index.html";
LINK[1]="commodore/com_j.html";
LINK[2]="race/index.html";
LINK[3]="cgi-bin/bbs/goigoibbs.cgi?id:bbs";
LINK[4]="http://seattle-cup.org/";
LINK[5]="goods/index.html";
LINK[6]="cgi-bin/whatsnew/whats_display.cgi?base:/coun/index1.html";
LINK[7]="cgi-bin/whatsnew/whats_display.cgi?id:event";
LINK[8]="kaiin/index.html";

LINK[9]="mailto:&#115;&#117;&#109;&#97;&#45;yc&#64;s&#117;m&#97;&#45;y&#99;&#46;o&#114;&#103;";
LINK[10]="yacht/ylist.html";
LINK[11]="etc/hurber.html";
LINK[12]="link/index.html";
LINK[13]="gallery/index.html";
LINK[14]="club/index.html";
LINK[15]="";
LINK[16]="map/index.html";
LINK[17]="kanri/index.html";

function setMENU(no,dir,indexp,BGsw) {
	dirx='';
	for(i=0;i<dir;i++){dirx=dirx+'../../'}
	if(dirx==''){dirx='./'}
	document.write('<style type="text/css">');
	document.write("\n<!--\na {text-decoration:none}\n-->\n</style>\n");
	gdirx=dirx+'img/tab_back.gif';
	document.write('<table cellspacing=1 cellpadding=0 style="border-collapse: collapse;font-size:10pt"><tr height=20>');
	if(BGsw==1){
		d=new Date();
		h=d.getHours();
		document.write('<td rowspan=2><img src="'+dirx+'img/'+BGM[h]+'"'+size+'></td>');
	}
	cnt=0;
	for(i1=0;i1<2;i1++){
		if(i1==1){document.write('<tr height=20>')}
		for(i=0;i<9;i++){
			str1=LINK[cnt];
			document.write('<td nowrap align=center background="'+gdirx+'">');
			if(cnt==no){
				if(indexp){document.write('<a href="'+LINK[cnt]+'"><font color=#FFBBAE><b>　'+TIT[cnt]+'　</b></font></a></td>')}
				else{document.write('<font color=#FFBBAE><b>　'+TIT[cnt]+'　</b></font></td>')}
			}
			else if(LINK[cnt]==''){document.write('<font color=white>　'+TIT[cnt]+'　</font></td>')}
			else if(cnt==99){document.write('<a href="'+LINK[cnt]+'"><font color=yellow>　'+TIT[cnt]+'　</font></a></td>')}
			else{
				document.write('<a href="');
				if(str1.substring(0,7)!="http://" && str1.substring(0,7)!="mailto:"){document.write(dirx)}
				document.write(LINK[cnt]+'"><font color=white>　'+TIT[cnt]+'　</font></a></td>');
			}
			cnt++;
		}
		document.write("</tr>\n");
	}
	document.write("</table><br>\n");
}

