var flashVersion=false;
var nn=(navigator.appName.charAt(0)=="N" && navigator.userAgent.indexOf("Safari") == -1) || false;
var n6=(document.getElementById && nn) || false;
var ie=(document.all && !nn) || false;
var safari=(navigator.userAgent.indexOf("Safari")!=-1) || false;
var mac=(navigator.userAgent.indexOf("Mac")!=-1) || false;
var ver=""+navigator.appVersion;
var fno=ver.indexOf(" ");
var macChecked=0;
ver=eval(ver.substring(0,fno));
var macIE5=(mac && navigator.userAgent.indexOf("MSIE 5")!=-1) || false;
if (ie && !mac)
{
var flashVersion=new ActiveXObject("ShockwaveFlash.ShockwaveFlash").FlashVersion();
flashVersion=Math.floor(flashVersion / 0x10000);
}
if (!flashVersion)
{
if (nn && !document.plugins &&!safari) flashVersion=false;
else if ((nn || n6 || safari || macIE5) && navigator.plugins) flashVersion=navigator.plugins["Shockwave Flash"].description.charAt(16);
else flashVersion=false;
}
if (ie && mac && !macIE5) {
window.onload=chkMac;
}
function chkMac()
{
if (window["sample"]) flashVersion=((window["sample"].FlashVersion() & 0xffff0000) >> 16);
macChecked=1;
(window["sample"]);
result();
}
function result(){
	if (mac && ie && !macIE5 && macChecked==0) return;
	if (!flashVersion){
		document.write('<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">');
		document.write('<tr>');
		document.write('<td align="center" valign="middle"><table width="350" border="0" cellpadding="0" cellspacing="0" class="j10">');
		document.write('<tr align="center"> ');
		document.write('<td><img src="img/m1.gif" alt="Rojita" width="240" height="100"><br> <br> <br></td>');
		document.write('</tr>');
		document.write('<tr> ');
		document.write('<td align="center"><a href="http://www.adobe.com/go/getflashplayer_jp" target="_blank"><img src="img/b1.gif" alt="FLASHプレイヤーダウンロード" width="88" height="31" border="0"></a></td>');
		document.write('</tr>');
		document.write('<tr> ');
		document.write('<td align="center" valign="top" class="j9"><font color="#FFFFFF"><br>');
		document.write('<br>');
		document.write('当サイトをお楽しみ頂くには最新のFLASHプレイヤーが必要です。<br>');
		document.write('上のバナーより最新のプレイヤーをダウンロードして下さい。<br>');
		document.write('<br>');
		document.write('<a href="index.html">ダウンロードされた方はこちら </a></font></td>');
		document.write('</tr>');
		document.write('</table>');
		document.write('</td>');
		document.write('</tr>');
		document.write('</table>');
	}else if (flashVersion<8){
		document.write('<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">');
		document.write('<tr>');
		document.write('<td align="center" valign="middle"><table width="350" border="0" cellpadding="0" cellspacing="0" class="j10">');
		document.write('<tr align="center"> ');
		document.write('<td><img src="img/m1.gif" alt="Rojita" width="240" height="100"><br> <br> <br></td>');
		document.write('</tr>');
		document.write('<tr> ');
		document.write('<td align="center"><a href="http://www.adobe.com/go/getflashplayer_jp" target="_blank"><img src="img/b1.gif" alt="FLASHプレイヤーダウンロード" width="88" height="31" border="0"></a></td>');
		document.write('</tr>');
		document.write('<tr> ');
		document.write('<td align="center" valign="top" class="j9"><font color="#FFFFFF"><br>');
		document.write('<br>');
		document.write('当サイトをお楽しみ頂くには最新のFLASHプレイヤーが必要です。<br>');
		document.write('上のバナーより最新のプレイヤーをダウンロードして下さい。<br>');
		document.write('<br>');
		document.write('');
		document.write('</tr>');
		document.write('</table>');
		document.write('</td>');
		document.write('</tr>');
		document.write('</table>');
	}else{
		document.write('<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="100%" height="100%" id="index" align="middle">');
		document.write('<param name="allowScriptAccess" value="sameDomain" />');
		document.write('<param name="movie" value="index.swf" />');
		document.write('<param name="loop" value="false" />');
		document.write('<param name="menu" value="false" />');
		document.write('<param name="quality" value="high" />');
		document.write('<param name="scale" value="noscale" />');
		document.write('<param name="salign" value="lt" />');
		document.write('<param name="bgcolor" value="ffffff" />');
		document.write('<embed src="index.swf" loop="false" menu="false" quality="high" scale="noscale" salign="lt" bgcolor="#000000" width="100%" height="100%" name="index" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		document.write('</object>');
	}
}
result();
//setTimeout("result();",1);