<!-- flashアクティブコントロール設定等 -->
var MM_contentVersion = 8;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
	    }
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}
/*----------------メインフラッシュ部分-------------------*/
function plug_in_check_main_swf() {
if ( MM_FlashCanPlay ) {	
	//プラグインチェック　成功
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="920" height="396">');
      document.write('<param name="movie" value="top1.swf">');
      document.write('<param name="quality" value="high">');
	  document.write('<param name="wmode" value="opaque">');
      document.write('<embed src="top1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="920" height="396"></embed>');
    document.write('</object>');
} else{
	//プラグインチェック　失敗
	document.write('<table width="920" height="410" border="0" cellpadding="0" cellspacing="0">');
    	document.write("<tr>");
			document.write('<td><img src="img/top.jpg" width="920" height="410"></td>');
		document.write('</tr>');
		
	document.write('</table>');
}
}
/*----------------バナー-------------------*/
function plug_in_check_banner_swf() {
if ( MM_FlashCanPlay ) {	
	//プラグインチェック　成功
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="188" height="204">');
  document.write('<param name="movie" value="banner.swf">');
  document.write('<param name="quality" value="high">');
  document.write('<embed src="banner.swf" quality="high" bgcolor="#000000" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="188" height="204"></embed>');
document.write('</object>');
} else{
	//プラグインチェック　失敗
	document.write('<div style="overflow:auto;width:188px;height:198px; ">');
	document.write("<a href=javascript:rulesWin00('pop_previous.html');><img src='images/12.jpg' alt='' width='164' height='38' border='0'></a><br>");
	document.write('<img src="common/img/spacer.gif" alt="" width="1" height="2"><br>');
	document.write('<a href="http://pioneer.jp/homeav/award/index.html" target="_blank"><img src="images/05.jpg" alt="" width="164" height="38" border="0"></a><br>');
	document.write('<img src="common/img/spacer.gif" alt="" width="1" height="2"><br>');
	document.write('<a href="http://lifestyle-net.com/index.html" target="_blank"><img src="images/06.jpg" alt="" width="164" height="38" border="0"></a><br>');
	document.write('<img src="common/img/spacer.gif" alt="" width="1" height="2"><br>');
	document.write('<a href="http://lifestyle-net.com/myroom/menu/osusume/index.html" target="_blank"><img src="images/07.jpg" alt="" width="164" height="38" border="0"></a><br>');
	document.write('<img src="common/img/spacer.gif" alt="" width="1" height="2"><br>');
	document.write('<a href="http://www.advanced-pdp.jp/" target="_blank"><img src="images/08.jpg" alt="" width="164" height="38" border="0"></a><br>');
	}
}
