<!----//
var FlashInstalled = true;
var Plugin = ((navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0);
if (Plugin) PluginVer = parseInt(Plugin.description.substring(Plugin.description.indexOf(".") -1));

function FuncIE(Version,name,w,h) {
	ChkMacIE5 = ((navigator.appName.indexOf("Internet Explorer")>=0) && (navigator.platform.indexOf("MacPPC") >= 0) && (navigator.appVersion.indexOf("5.") >= 0));
	if (ChkMacIE5) {
		if ((Plugin) && (PluginVer > 4)){
			 FlashInstalled = true;
		}else {
			 FlashInstalled = false;
		}
	}
	if (FlashInstalled) {
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write('  codebase="http://link.rakuten.co.jp/0/001/153/" ');
		document.write(' ID="chk_top_center" WIDTH="'+w+'" HEIGHT="'+h+'" ALIGN="">');
		document.write(' <PARAM NAME=movie VALUE="'+name+'"> <PARAM NAME=quality VALUE=high>');
		document.write(' <PARAM NAME=bgcolor VALUE=#FFFFFF>  ');
		document.write(' <EMBED src="'+name+'" quality=high bgcolor=#FFFFFF  ');
		document.write(' swLiveConnect=FALSE WIDTH="'+w+'" HEIGHT="'+h+'" NAME="chk_top_center" ALIGN=""');
		document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://link.rakuten.co.jp/0/001/151/">');
		document.write(' </EMBED>');
		document.write(' </OBJECT>');
	} else {
		document.write('<small>最新版フラッシュをインストールする必要があります。<BR><A HREF="http://link.rakuten.co.jp/0/001/151/" TARGET="new">クリックしてダウンロード</A>してください。</small>');
	}
}

function FuncNC(Version,name,w,h) {
	if ((Plugin) && (PluginVer > 4)){
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write('  codebase="http://link.rakuten.co.jp/0/001/153/" ');
		document.write(' ID="chk_top_center" WIDTH="'+w+'" HEIGHT="'+h+'" ALIGN="">');
		document.write(' <PARAM NAME=movie VALUE="'+name+'"> <PARAM NAME=quality VALUE=high>');
		document.write(' <PARAM NAME=bgcolor VALUE=#FFFFFF>  ');
		document.write(' <EMBED src="'+name+'" quality=high bgcolor=#FFFFFF  ');
		document.write(' swLiveConnect=FALSE WIDTH="'+w+'" HEIGHT="'+h+'" NAME="chk_top_center" ALIGN=""');
		document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://link.rakuten.co.jp/0/001/151/">');
		document.write(' </EMBED>');
		document.write(' </OBJECT>');
	} else {
		document.write('<small>最新版フラッシュをインストールする必要があります。<BR><A HREF="http://link.rakuten.co.jp/0/001/151/" TARGET="new">クリックしてダウンロード</A>してください。</small>');
	}
}

function swf_tag(name,w,h) {
	if (navigator.userAgent.indexOf("MSIE",0) < 0) {
		BwrType = navigator.userAgent.indexOf("Mozilla/",0);
		if (BwrType == -1){
			myVer = "no support version info.";
		}else{
			myVer = navigator.userAgent.substring(BwrType+8, navigator.userAgent.indexOf(" ",BwrType));
			FuncNC(myVer,name,w,h);
		}
	} else {
		BwrType = navigator.userAgent.indexOf("MSIE",0);
		myVer = navigator.userAgent.substring(BwrType+5, 	myLast = navigator.userAgent.indexOf(";",BwrType));
		FuncIE(myVer,name,w,h);
	}
}
//---->