// JavaScript Document
function RunBanner()
{
var MM_contentVersion = 8;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) { // not IE
    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]; 
    }
}else if(plugin == 0){ //IE
    var tmp = new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").match(/([0-9]+)/);
    var MM_PluginVersion  = tmp[0];

}else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) { //Mac IE
    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 MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
if ( MM_FlashCanPlay ) {
    document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"\n');
    document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"\n');
    document.write('   width="100%" height="540" ALIGN="">\n');
    document.write(' <PARAM NAME=movie VALUE="images/index.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=wmode VALUE=transparent>\n'); 
    document.write(' <EMBED src="images/index.swf" quality=high scale=noscale menu=false wmode=transparent');
    document.write('  swLiveConnect=false width="100%" height="540" name="cm"');
    document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">\n');
    document.write(' </EMBED>\n');
    document.write(' </OBJECT>\n');
}else{
    document.write('<div id="NoFlash"><a href="http://get.adobe.com/jp/flashplayer/" target="_blank">このコンテンツをご覧になるにはAdobeFlashPlayerが必要です。</a></div>');
}
}
