function embed_flash(object, file, width, height, bgcolor) {
	
	object.innerHTML = '';

	var tag_object = document.createElement('object');
	tag_object.setAttribute('type', 'application/x-shockwave-flash');
	tag_object.setAttribute('data', file);
	tag_object.setAttribute('width', width);
	tag_object.setAttribute('height', height);
	tag_object.setAttribute('classid', 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000');
	tag_object.setAttribute('codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0');

	var tag_param = document.createElement('param');
	tag_param.setAttribute('name', 'movie');
	tag_param.setAttribute('value', file);
	tag_object.appendChild(tag_param);

	var tag_param = document.createElement('param');
	tag_param.setAttribute('name', 'wmode');
	tag_param.setAttribute('value', 'transparent');
	tag_object.appendChild(tag_param);

	var tag_embed = document.createElement('embed');
	tag_embed.setAttribute('type', 'application/x-shockwave-flash');
	tag_embed.setAttribute('src', file);
	tag_embed.setAttribute('width', width);
	tag_embed.setAttribute('height', height);
	tag_embed.setAttribute('bgcolor', bgcolor);
	tag_embed.setAttribute('quality', 'high');
	tag_embed.setAttribute('wmode', 'transparent');
	tag_embed.setAttribute('allowscriptaccess', 'always');
	tag_embed.setAttribute('pluginspage', 'http://www.macromedia.com/go/getflashplayer');
	
	object.setAttribute('style', 'width: ' + width + 'px; height: ' + height + 'px;');
	
	object.appendChild(tag_embed);

	return false;

}