
// layer control
function chnLyr01(layNam,html){
	if(document.getElementById){
		document.getElementById(layNam).innerHTML=html;
	} else if(document.all){
		document.all(layNam).innerHTML=html;
	} else if(document.layers) {
		with(document.layers[layNam].document){
			open();
			write(html);
			close();
		}
	}
}

// plug-in ありの場合：swf表示
valid_lyr01 = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="760" height="274" id="top" align="middle">';
valid_lyr01 += '<param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="top.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="top.swf" quality="high" bgcolor="#ffffff" width="760" height="274" name="top" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
valid_lyr01 += '</object>';

// plug-in なしの場合：画像＋マップリンク表示
invalid_lyr01 = '<img src="/Style-b/Yo-yo-yo/Images/Top/main01.jpg" alt="" width="760" height="274" border="0" usemap="#top_main01" />';
invalid_lyr01 += '<map name="top_main01" id="top_main01"><area shape="rect" coords="21,226,95,246" href="/Style-b/Station/Wj09/profile.html" alt="Profile" /></map>';

function chkflash01(){
	NS = navigator.appName.charAt(0) == "N";
	if (NS){
		NN=navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
		if (!NN) {chnLyr01('top_mainlyr01',invalid_lyr01);}
		else {chnLyr01('top_mainlyr01',valid_lyr01);}
	} else {chnLyr01('top_mainlyr01',valid_lyr01);}
}


// IE ： plug-inチェッカー
vb_chkr01 = '<scr' + 'ipt language="VBScript">\n';
vb_chkr01 += '<!--\n';
vb_chkr01 += 'on error resume next\n';
vb_chkr01 += 'Dim IE\n';
vb_chkr01 += 'IE=(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash")))\n';
vb_chkr01 += 'if (IE=False) Then\n';
vb_chkr01 += '	chnLyr01("top_mainlyr01",invalid_lyr01);\n';
vb_chkr01 += 'else\n';
vb_chkr01 += '	chnLyr01("top_mainlyr01",valid_lyr01);\n';
vb_chkr01 += 'end if\n';
vb_chkr01 += '-->\n';
vb_chkr01 += '</scr' + 'ipt>\n';



/* Window open */
function WO(url){window.open(url,"jcb","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,WIDTH=630,HEIGHT=460")}
/* window open */
function smallWindow(theURL,winName,features) {
window.open(theURL,winName,features);
}
/* 親窓名設定 */
function nWin(){
window.name = "Master";
}

