/**
 *
 * This function writes 'object' and 'embed' tags at runtime.
 * @param swfId The SWF id
 * @param swfUrl The url from where the SWF is loaded
 * @param w The width of the container
 * @param h The height of the container
 * @param align The alignment of the SWF inside its container
 * @copyright Hivelocity Inc.
 * @author Frederic Filosa
 *
 */
function writeBp( swfId , swfUrl , w , h , align ){
	var output;
	output  = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="160" height="394" id="' + swfId + '" align="' + align + '">';
	output += '<param name="allowScriptAccess" value="always" />';
	output += '<param name="movie" value="' + swfUrl + '" />';
	output += '<param name="quality" value="high" />';
	output += '<param name="bgcolor" value="#ffffff" />';
	output += '<param name="wmode" value="transparent" />';
	output += '<embed wmode="transparent" src="' + swfUrl + '" quality="high" bgcolor="#ffffff" width="' + w + '" height="' + h + '" name="' + swfId + '" align="' + align + '" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	output += '</object>';
	document.write( output );
}

writeBp( "CoffeeKyokai_bp_02" , "http://coffee.ajca.or.jp/usc/bp/coffeeBp2.swf" , 160 , 255 , "middle" );
