if(Number(flVer().replace(/\..+$/,''))<9) {
document.write('<div>このブログパーツのご利用には、<a href="http://get.adobe.com/jp/flashplayer/">最新のFlash Player</a>をインストールいただく必要がございます。</div>');
} else {
var scheme = document.location.protocol == 'https:' ? 'https' : 'http';
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="'+scheme+'://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="160" height="295">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="'+scheme+'://www.wanlove.jp/BlogParts2.swf" />');
document.write('<param name="wmode" value="transparent" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="base" value="." />');
document.write('<embed src="'+scheme+'://www.wanlove.jp/BlogParts2.swf" wmode="transparent" quality="high" base="." pluginspage="'+scheme+'://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="160" height="295"></embed>');
document.write('</object>');
}
function flVer() { // reffer http://groundwalker.com/blog/2007/08/flash_version_detection_with_javascript.html
var version='0.0.0';
if(navigator.plugins && navigator.mimeTypes['application/x-shockwave-flash']){
var plugin=navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin;
if (plugin && plugin.description) {
version=plugin.description.replace(/^[A-Za-z\s]+/, '').replace(/(\s+r|\s+b[0-9]+)/, ".");
}
} else {
var x='';
try {
var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
x=axo.GetVariable("$version");
} catch(e) {
try {
axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
x="WIN 6,0,21,0";
axo.AllowScriptAccess="always";
x=axo.GetVariable("$version");
} catch(e) {
if (!x.match(/^WIN/)) {
try {
axo=null;
axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
x=axo.GetVariable("$version");
} catch(e) {
if (axo) {
x="WIN 3,0,18,0";
} else {
try {
axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
x="WIN 2,0,0,11";
} catch(e) {
x="WIN 0,0,0,0";
}
}
}
}
}
}
version=x.replace(/^WIN /,'').replace(/,[0-9]+$/,'').replace(/,/g,'.');
}
if (version.match(/^[0-9]+\.[0-9]+\.[0-9]+$/)) {
return version;
} else {
return '0.0.0';
}
}
