//OS判定
function OS_check(){
var ua = navigator.userAgent.toUpperCase();
	if(ua.indexOf("NT 6.0") != -1 || ua.indexOf("WS V") != -1){ os = "WinV";
	}else if(ua.indexOf("NT 5.2") != -1 || ua.indexOf("WS 2003") != -1){ os = "Win2003";
	}else if(ua.indexOf("NT 5.1") != -1 || ua.indexOf("WS XP") != -1){ os = "WinXP";
	}else if(ua.indexOf("NT 5.0") != -1 || ua.indexOf("WS 2000") != -1){ os = "Win2K";
	}else if(ua.indexOf("WIN 9X 4.90") != -1 || ua.indexOf("WS ME") != -1){ os = "WinME";
	}else if(ua.indexOf("WIN98") != -1 || ua.indexOf("WS 98") != -1){ os = "Win98";
	}else if(ua.indexOf("NT 4.0") != -1 || ua.indexOf("WINNT4") != -1){ os = "WinNT4";
	}else if(ua.indexOf("WIN95") != -1 || ua.indexOf("WS 95") != -1){ os = "Win95";
	}else if(ua.indexOf("WS CE") != -1){ os = "WinCE";
	}else if(ua.indexOf("WS NT") != -1 || ua.indexOf("WINNT") != -1){ os = "WinNT";
	}else if(ua.indexOf("WS 3.1") != -1){ os = "Win3.1";
	}else{ os = plt;}
    return os;
}

//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');
}

//表示判定
var os = OS_check();
if ( os == "Win95" || os == "WinCE" || os == "WinNT" || os == "Win3.1" ){//Win95、WinCE、WinNT、Win3.1の場合
	document.write(' <div align="right"><img src="/md/themes/moneydelica/content/MoneyDelica.jpg" alt="マネデリカ" align="absmiddle" /></div>');
} else {//その他のOSの場合
	if ( MM_FlashCanPlay ) {//Flash ver.8以上の場合
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write('  codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ');
		document.write(' ID="map" WIDTH="590" HEIGHT="180">');
		document.write(' <PARAM NAME=movie VALUE="/md/themes/moneydelica/content/MoneyDericaTop.swf"> <PARAM NAME="flashvars" value="fname='+document.URL+'">'); 
		document.write(' <PARAM NAME=loop VALUE=false> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=devicefont VALUE=true> <PARAM NAME=bgcolor VALUE=#FFFFFF>  '); 
		document.write(' <EMBED src="/md/themes/moneydelica/content/MoneyDericaTop.swf" flashvars="fname='+document.URL+'"');
		document.write(' loop=false menu=false quality=high devicefont=true bgcolor=#FFFFFF  ');
		document.write(' swLiveConnect=FALSE WIDTH="590" HEIGHT="180" NAME="map" ALIGN=""');
		document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="https://www.macromedia.com/go/getflashplayer">');
		document.write(' </EMBED>');
		document.write(' </OBJECT>');
	} else{//Flash ver.8以下の場合
		document.write(' <div class="no_flash">');
		document.write(' <div class="att"><a href="http://www.adobe.com/go/getflashplayer_jp" target="_blank"><img src="/md/themes/moneydelica/content/get_flash_player.gif" alt="Flash Playerのダウンロード" width="160" height="41" border="0" align="absmiddle" /></a><br /><br />');
		document.write(' <span class="txt_p10">当コンテンツページをご覧になるには最新版の Adobe Flash Player が必要となります。<br />');
		document.write(' お持ちでない方は上のバナーからダウンロードしてご覧ください。</span></div>');
	}
}

document.close();
