function promotionFlash()
{
	var flashplayer_ver = 0;
	if ( plugin )
	{
		// for all browser without IE
		flashplayer_ver = parseInt(plugin.description.match(/\d+\.\d+/));
	}
	else
	{
		if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0)
		{
			// for IE
			try
			{
				var flashOCX = new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").match(/([0-9]+)/);
				if(flashOCX)
				{
					flashplayer_ver = parseInt(flashOCX[0]);
				}
			}
			catch(e)
			{
				flashplayer_ver = 0;
			}
		}
		else
		{
			// not use Flash Player without IE
			flashplayer_ver = 0;
		}
	}

	if (flashplayer_ver >= 6)
	{
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"');
		document.write(' ID="main" WIDTH="750" HEIGHT="275">');
		document.write('<PARAM NAME="movie" VALUE="/main.swf"> <PARAM name="menu" value="false"> <PARAM NAME="quality" VALUE="high"> <PARAM NAME="bgcolor" VALUE="#FFFFFF">');
		document.write('<param name="wmode" value="transparent">');		
		document.write('<EMBED src="/main.swf" menu="false" quality="high" bgcolor="#FFFFFF"  wmode="transparent"');
		document.write(' swLiveConnect="FALSE" WIDTH="750" HEIGHT="275"');
		document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
		document.write('</EMBED>');
		document.write('</OBJECT>');
	}
	else
	{
		document.write('当コンテンツの閲覧にはFlash Player6.0以上が必要となります。<br>');
		document.write('最新版のAdobe Flash Playerを<a href="http://get.adobe.com/jp/flashplayer/">こちら</a>からダウンロードして下さい。');
	}
}

