var CFLiewin = navigator.userAgent.indexOf('Win') && (document.all);
var flg = false;

if(bc_swfurl==undefined) {
	var bc_swfurl = "http://www.b-ch.com/contents/blgprts/bch_calendar.swf";
}

var f_ver = 6;
var version = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if (version) {
	flg = parseInt(version.description.substring(version.description.indexOf(".")-2)) >= f_ver;
} else if (CFLiewin) {
	document.write('<script language="VBScript"\> \n');
	document.write('on error resume next \n');
	document.write('flg = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & f_ver )))\n');
	document.write('</script\> \n');
}

if ( flg ) {

	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="150" height="409" id="external_int" align="middle">');
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<param name="movie" value="' + bc_swfurl + '" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="#ffffff" />');
//	document.write('<param name="wmode" value="transparent">');
//	document.write('<param name="loop" value="true">');
	document.write('<embed src="' + bc_swfurl + '" loop="true" wmode="transparent" quality="high" bgcolor="#ffffff" width="150" height="409" name="bch_calender" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
	
} else {

	document.write('<div><table><tr><td style="font-size:12px;">Adobe Flash Playerは、下記ボタンのリンク先より入手できます。</td></tr><tr><td align="center"><a href="http://www.adobe.com/go/getflashplayer_jp" target="_blank"><img src="http://i.yimg.jp/images/common/get_flash_player.gif" width="88" height="31" border="0"></a></td></tr></table></div>');

}

function getLocation(){
	return window.location.href;
}

