// プラグインチェック
var MM_contentVersion = 7;
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');
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}




// top表示
function idxFla(wkUrl) {

	if( MM_FlashCanPlay ) {		// プラグインあり

		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="377" height="161" id="ticker" />'+'\n');
		document.write('<param name="allowScriptAccess" value="sameDomain" />'+'\n');
		document.write('<param name="movie" value="ticker/ticker.swf" />'+'\n');
		document.write('<param name="quality" value="high" />'+'\n');
		document.write('<embed src="ticker/ticker.swf" quality="high" width="377" height="161" name="ticker" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'+'\n');
		document.write('<param name="movie" value="ticker/ticker.swf" />'+'\n');
		document.write('</object>'+'\n');


	}else{						// プラグインなし

		// Flash代替表示
		document.write('<div id="ticker">'+'\n');
		document.write('<a href="http://www.adobe.com/go/getflashplayer_jp" target="_blank"><img src="img/flash_alt.jpg" alt="「守護神」感動コメント" width="377" height="162" border="0"></a>'+'\n');
		document.write('</div>'+'\n');
	}

}