// *******************************************************************
// 学校法人日本体育会
// *******************************************************************
// トップページ　設置校メニュー　スクリプト
// -------------------------------------------------------------------
// ■改定履歴
//
//   ▼2007年06月28日
//     ・トップページJavaScriptファイルを統合
//
//   ▼2007年06月21日
//     ・新規作成
// *******************************************************************

//-- 配列指定 --
imgSe = new Array();
imgHo = new Array();

//-- 置換イメージ -- ※ファイル名(パスと拡張子は記述しない)
imgSe[0] = "da";	//日本体育大学イメージ
imgSe[1] = "ta";	//短大イメージ
imgSe[2] = "eb";	//日体荏原高等学校イメージ
imgSe[3] = "ou";	//日体桜華高等学校イメージ
imgSe[4] = "ka";	//柏日体高等学校イメージ
imgSe[5] = "hm";	//浜松日体中学校・高等学校イメージ
imgSe[6] = "yo";	//日体幼稚園イメージ
imgSe[7] = "jy";	//日体柔整専門学校イメージ
imgSe[8] = "sa";	//日体サービスイメージ

imgHo[0] = "ri";	//理事長挨拶
imgHo[1] = "en";	//沿革
imgHo[2] = "an";	//法人案内
imgHo[3] = "ac";	//交通案内

function SymError()
{
return true;
}

window.onerror = SymError;

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function s_menu()
{
	document.write('<div class=secontfr>');
	document.write('<div class=semenu>');
	document.write('<ul>');
	document.write('<li><a href="http://www.nittai.ac.jp/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'se_img\',\'\',\'./image/topindex/'+imgSe[0]+'_img.jpg\',\'se_btn01\',\'\',\'./image/topindex/'+imgSe[0]+'_mo.jpg\',1)"><img src="./image/topindex/'+imgSe[0]+'.jpg" width="200" height="28" alt="日本体育大学" name="se_btn01" id="se_btn01"></a></li>');
	document.write('<li><a href="http://www.nittai.ac.jp/gakubu/tandai/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'se_img\',\'\',\'./image/topindex/'+imgSe[1]+'_img.jpg\',\'se_btn02\',\'\',\'./image/topindex/'+imgSe[1]+'_mo.jpg\',1)"><img src="./image/topindex/'+imgSe[1]+'.jpg" width="200" height="29" alt="日本体育大学・女子短期大学部" name="se_btn02" id="se_btn02"></a></li>');
	document.write('<li><a href="http://www.nittai-ebara.jp/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'se_img\',\'\',\'./image/topindex/'+imgSe[2]+'_img.jpg\',\'se_btn03\',\'\',\'./image/topindex/'+imgSe[2]+'_mo.jpg\',1)"><img src="./image/topindex/'+imgSe[2]+'.jpg" width="200" height="30" alt="日体荏原高等学校" name="se_btn03" id="se_btn03"></a></li>');
	document.write('<li><a href="http://www.ohka.ed.jp/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'se_img\',\'\',\'./image/topindex/'+imgSe[3]+'_img.jpg\',\'se_btn04\',\'\',\'./image/topindex/'+imgSe[3]+'_mo.jpg\',1)"><img src="./image/topindex/'+imgSe[3]+'.jpg" width="200" height="30" alt="日体桜華高等学校" name="se_btn04" id="se_btn04"></a></li>');
	document.write('<li><a href="http://www.k-nittai.ed.jp/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'se_img\',\'\',\'./image/topindex/'+imgSe[4]+'_img.jpg\',\'se_btn05\',\'\',\'./image/topindex/'+imgSe[4]+'_mo.jpg\',1)"><img src="./image/topindex/'+imgSe[4]+'.jpg" width="200" height="30" alt="柏日体高等学校" name="se_btn05" id="se_btn05"></a></li>');
	document.write('<li><a href="http://www.h-nittai.ed.jp/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'se_img\',\'\',\'./image/topindex/'+imgSe[5]+'_img.jpg\',\'se_btn06\',\'\',\'./image/topindex/'+imgSe[5]+'_mo.jpg\',1)"><img src="./image/topindex/'+imgSe[5]+'.jpg" width="200" height="30" alt="浜松日体中学校・高等学校" name="se_btn06" id="se_btn06"></a></li>');
	document.write('<li><a href="http://www.nittai-kindergarten.ed.jp/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'se_img\',\'\',\'./image/topindex/'+imgSe[6]+'_img.jpg\',\'se_btn07\',\'\',\'./image/topindex/'+imgSe[6]+'_mo.jpg\',1)"><img src="./image/topindex/'+imgSe[6]+'.jpg" width="200" height="30" alt="日体幼稚園" name="se_btn07" id="se_btn07"></a></li>');
	document.write('<li><a href="http://www.nittai-j.ac.jp/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'se_img\',\'\',\'./image/topindex/'+imgSe[7]+'_img.jpg\',\'se_btn08\',\'\',\'./image/topindex/'+imgSe[7]+'_mo.jpg\',1)"><img src="./image/topindex/'+imgSe[7]+'.jpg" width="200" height="30" alt="日体柔整専門学校" name="se_btn08" id="se_btn08"></a></li>');
	document.write('<li><a href="./service/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'se_btn09\',\'\',\'./image/topindex/'+imgSe[8]+'_mo.jpg\',1)"><img src="./image/topindex/'+imgSe[8]+'.jpg" width="200" height="30" alt="日体サービス" name="se_btn09" id="se_btn09"></a></li>');
	document.write('</ul>');
	document.write('</div>');
	document.write('</div>');
	document.write('<div class=seimage>');
	document.write('<img src="./image/topindex/se_base.jpg" alt="設置校イメージ" width="450" height="250" name="se_img" id="se_img" oncontextmenu="return false;">');
	document.write('<img src="./image/topindex/footer.jpg" width="450" height="15" alt="フッター">');
	document.write('</div>');
}

//	function h_menu()	{
//		document.write('<div class=homenu>');
//		document.write('<ul>');
//		document.write('<li><a href="./message/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'ho_btn01\',\'\',\'./image/topindex/'+imgHo[0]+'_mo.jpg\',1)"><img src="./image/topindex/'+imgHo[0]+'.jpg" width="200" height="28" alt="理事長挨拶" name="ho_btn01" id=ho_btn01"></a></li>');
//		document.write('<li><a href="./history/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'ho_btn02\',\'\',\'./image/topindex/'+imgHo[1]+'_mo.jpg\',1)"><img src="./image/topindex/'+imgHo[1]+'.jpg" width="200" height="28" alt="沿革" name="ho_btn02" id=ho_btn02"></a></li>');
//		document.write('<li><a href="./guide/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'ho_btn03\',\'\',\'./image/topindex/'+imgHo[2]+'_mo.jpg\',1)"><img src="./image/topindex/'+imgHo[2]+'.jpg" width="200" height="28" alt="法人案内" name="ho_btn03" id=ho_btn03"></a></li>');
//		document.write('<li><a href="./access/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'ho_btn04\',\'\',\'./image/topindex/'+imgHo[3]+'_mo.jpg\',1)"><img src="./image/topindex/'+imgHo[3]+'.jpg" width="200" height="28" alt="交通案内" name="ho_btn04" id=ho_btn04"></a></li>');
//		document.write('</ul>');
//		document.write('</div>');
//	}

function SetTopFlash()	{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="695" height="265" id="topindex" align="">\n');
	document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
	document.write('<param name="movie" value="./image/swf/topindex.swf" />\n');
	document.write('<param name="menu" value="ture" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<param name="bgcolor" value="#f7f7f7" />\n');
	document.write('<embed src="./image/swf/topindex.swf" menu="false" quality="high" bgcolor="#f7f7f7" width="695" height="265" name="topimage" align="" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
	document.write('</object>\n');
}

function TopFrame() {
	document.write('<div class="mainframe"><div class="houjinfr"><div class="homainfr">');
}

function MidFrame() {
	document.write('</div>');
	document.write('<div class="rtline"><img src="./image/topindex/rt_linet.jpg" width="35" height="5" alt=""></div>');
	document.write('</div>');
	document.write('<div class="toplogo"><h1 class="logo"><img src="./image/topindex/toplogo.jpg" width="750" height="50" alt="日本体育会ロゴ"></h1></div>');
	document.write('<div class="seframe">');
	document.write('<div class="semainfr">');
}

function BottomFrame() {
	document.write('</div>');
	document.write('<div class="lbline"><img src="./image/topindex/b_sbar.jpg" width="35" height="263" alt=""></div>');
	document.write('</div>');
	document.write('</div>');
}

