function FlashPlayerVer(){

var flashplayer_ver = 0;

if(navigator.plugins && navigator.mimeTypes['application/x-shockwave-flash']){
var plugin = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
if(plugin){flashplayer_ver = parseInt(plugin.description.match(/\d+\.\d+/));}
}
else{
try{
var flashOCX = new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").match(/([0-9]+)/);
if(flashOCX){flashplayer_ver = parseInt(flashOCX[0]);}
}catch(e){}
}
if(flashplayer_ver <= 8){flashplayer_ver = 0;}

if (flashplayer_ver == 0){
noFlash();
}

else
{
onFlash();
}

		
function onFlash(){

document.write('<div class="flashArea">');
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="590" height="400">');
document.write('<param name="movie" value="swf/index.swf" />');
document.write('<![if !IE ]>');
document.write('<object type="application/x-shockwave-flash" data="swf/index.swf" width="590" height="400">');
document.write('<![endif]>');
document.write('<p></p>');
document.write('<![if !IE ]>');
document.write('</object>');
document.write('<![endif]>');
document.write('</object>');
document.write('</div>');
}



function noFlash(){

document.write('<div class="noFlashD1">');
document.write('<a class="to_get_flash" href="http://get.adobe.com/jp/flashplayer/">Flash Player</a>');
document.write('</div>');
}


} 
