var page;
var pagename;
var s_con;
var i_page;
var b_con1 = 0;
var b_con2 = 0;
var b_con3 = 0;
var b_con4 = 0;
var b_con5 = 0;
var b_con6 = 0;

n_con = new Array("index","about","concert","archive","recruit","extra","link","non");

m_con = new Array(8);
	m_con[0] = "インデックス";
	m_con[1] = "星の調べについて";
	m_con[2] = "演奏会のご案内";
	m_con[3] = "過去の演奏会";
	m_con[4] = "団員募集";
	m_con[5] = "エクストラ";
	m_con[6] = "リンク";
	m_con[7] = "そのほか";


TOP_IMG();

function TOP_IMG(){
	if(page==0){
		document.write("<img src=img/topimage.jpg><br>");
	} else {
		document.write("<a href=\"index.html\" title=\"HOMEに戻ります。\">");
		document.write("<img src=img/title_b0.jpg border=0><br>");
		document.write("</a>");
	}
	CON_HANDAN();
}

function CON_HANDAN(){;
	document.write("<div id=\"conB_box\">");
	for(i_page=0;i_page<8;i_page++){//0トップ該当ナシ。
		if(i_page==page && i_page!=0 && i_page!=6 && i_page!=7){//まず、該当ページかそうでないかの判断
			CON_GAITOU();
		} else if(i_page!=0 && i_page!=6 && i_page!=7) {//該当ページではない
			CON_HOKA();
		}
	}
	document.write("<br>");
	document.write("</div>");
	CON_T_LINK();
}

function CON_GAITOU(){//該当ページ。リンクなし。画像を表示するだけ。

	document.write("<img border=\"0\" name=\"n_con");
	document.write(i_page);
	document.write("\" src=\"img/cont_");
	document.write(n_con[i_page]);
	document.write("2.gif\" alt=\"");
	document.write(m_con[i_page]);
	document.write("\">");

}

function CON_HOKA(){//それ以外のページ。リンク有り。
	
	document.write("<a href=\"");
	document.write(n_con[i_page]);
	document.write("0.html\" title=\"");
	document.write(m_con[i_page]);
	document.write("\">");
	
	document.write("<img border=\"0\" name=\"n_con");
	document.write(i_page);
	document.write("\" src=\"img/cont_");
	document.write(n_con[i_page]);
	document.write("0.gif\" onMouseOver=\"document.n_con");
	document.write(i_page);
	document.write(".src=\'img/cont_");
	document.write(n_con[i_page]);
	document.write("1.gif\';\" onmousedown=\"document.n_con");
	document.write(i_page);
	document.write(".src=\'img/cont_");
	document.write(n_con[i_page]);
	document.write("1.gif\';\" onmouseout=\"document.n_con");
	document.write(i_page);
	document.write(".src=\'img/cont_");
	document.write(n_con[i_page]);
	document.write("0.gif\';\">");
	
	document.write("</a>");

}



function CON_T_LINK(){
	document.write("<div id=con7>");
	document.write("<span class=black12>");
	
	document.write("<a href=index.html title=ホームに戻ります>ホーム HOME</a>");
	document.write(" | ");
	
	document.write("<a href=http://hoshirabe.sblo.jp/ title=ブログ/別ウィンドウ target=_blank>ブログ BLOG</a>");
	document.write(" | ");
	
	document.write("<a href=link0.html title=リンク>リンク LINK</a>");
	document.write(" | ");
	
	document.write("<a href=http://hoshirabe.info/kdjfasvhieuug/yybbs.cgi title=掲示板/別ウィンドウ target=_blank>掲示板 BBS</a>");
	document.write(" | ");
	
	//document.write("<a href=#.html title=aa>サイトマップ SITEMAP</a>");
	//document.write(" | ");
	
	document.write("<a href=contact.html title=お問い合わせ>お問い合わせ CONTACT</a>");
	document.write(" | ");
	
	document.write("<a href=http://www.teamgear.net/teamgear/TG/top/ title=チームギア/別ウィンドウ target=_blank>団員専用 TEAMGEAR</a>");


	document.write("<br></span>");
	document.write("</div>");
	
	if(page!=0){
		document.write("<img src=\"img/spacer.gif\" width=\"20\" height=\"20\"><br>");
		document.write("<img src=\"img/title0_");
		document.write(pagename);
		document.write(s_con);
		document.write(".gif\"><br>");
	}
}
