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 makeFlash(swffile, w, h, subs, fval) {
	// 引数 FLASHversion, SWFfile Width, Heright, [代替画像orURL], [代替画像用リンク]

	if ( MM_FlashCanPlay ) {
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write(' ID="flashObj" WIDTH="' +w+ '" HEIGHT="' +h+ '" ALIGN="">');
		document.write(' <PARAM NAME=FlashVars VALUE="h=' +fval+ '"><PARAM NAME=movie VALUE="' +swffile+ '"><PARAM NAME=menu VALUE=false><PARAM NAME=quality VALUE=best><param name="allowScriptAccess" value="sameDomain" /><param name="wmode" value="" /><param name="bgcolor" value="#000000" /> '); 
		document.write(' <EMBED src="' +swffile+ '"  ');
		document.write(' FlashVars="h='+fval+'" swLiveConnect=true WIDTH="' +w+ '" HEIGHT="' +h+ '" NAME="flashObj" ALIGN="" allowScriptAccess="sameDomain" menu=false quality=best bgcolor="#000000" ');
		document.write(' TYPE="application/x-shockwave-flash" ');
		document.write(' </EMBED>');
		document.write(' </OBJECT>');
	} else{ 
		if (subs.length==0){
			rs = confirm("FLASHをご覧頂くには、\nFLASH PLAYER verion "+MM_contentVersion+" 以上が必要です。\n\n現在のPC環境にはインストールされていません        \n\n最新のFLASH PLAYERをインストールしますか？");
			if (rs) window.open("http://www.macromedia.com/jp/shockwave/download/?P1_Prod_Version=ShockwaveFlash&Lang=Japanese");
		} else if (subs.indexOf(".gif")>-1 || subs.indexOf(".jpg")>-1){
			if (sublnk.length>0) {document.write('<a href="' +sublink+ '" >');}
			document.write('<img src="' +subs+ '" height="' +h+ '" width="' +w+ '" border="0">');
			if (sublnk.length>0) {document.write('</a>');}
		} else {
			window.location = subs;
		}
	}

}

//archive　selectmenu

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}