function writeFlash(width,height,id,src,bgcolor,transparent){

	if(transparent){
		paramT='<param name="wmode" value="transparent">';
		embedT=' wmode="transparent"';
	} else {
		paramT='';
		embedT='';
	}
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+width+'" height="'+height+'" id="'+id+'" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="'+src+'" />');
	document.write('<param name="quality" value="high" />');
	document.write(paramT);
	document.write('<param name="bgcolor" value="'+bgcolor+'" />');
	document.write('<embed src="'+src+'" quality="high" bgcolor="'+bgcolor+'" width="'+width+'" height="'+height+'" name="'+id+'" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer"'+embedT+' />');
	document.write('</embed>');
	document.write('</object>');
}