function flash_embed(idflashFile,flashFile,gifFile,width,height,flashWindowMode,flashVersion,linkUrl,flashVars,flashBgColor)
{
	// flash code
	strFlash = '';
	strFlash += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
	strFlash += ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+flashVersion+',0,0,0"';
	strFlash += ' width="'+width+'" height="'+height+'" wmode="'+flashWindowMode+'" ID="'+idflashFile+'" NAME="'+idflashFile+'">\n';
	strFlash += '<param name="movie" value="'+flashFile+'">\n';
	strFlash += '<param name="wmode" value="'+flashWindowMode+'">\n';
	strFlash += '<param name="quality" value="high">\n';
	if (flashBgColor)
	{
		strFlash += '<param name="bgcolor" value="'+flashBgColor+'">\n';
	}
	strFlash += '<param name="menu" value="false">\n';
	strFlash += '<param name="FlashVars" value="'+flashVars+'">\n';
	strFlash += '<embed src="'+flashFile+'" flashVars="'+flashVars+'&clickTAG='+linkUrl+'" menu="false" quality="best" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" swLiveConnect="true"';
	strFlash += ' width="'+width+'" height="'+height+'" wmode="'+flashWindowMode+'" ID="'+idflashFile+'" NAME="'+idflashFile+'"></embed></object>';
	// no flash code
	strNoFlash = '';
	if (linkUrl)
	{
		strNoFlash += '<a href="'+linkUrl+'">';
	}
	strNoFlash += '<img src="'+gifFile+'" width="'+width+'" height="'+height+'" style="border:0px;" alt="" id="'+idflashFile+'" />';
	if (linkUrl)
	{
		strNoFlash += '</a>';
	}	
	// display
	if (MM_FlashCanPlay)
	{
		document.write(strFlash);
	}
	else
	{
		if (gifFile)
		{
			document.write(strNoFlash);
		}
		else
		{
			document.write(strFlash);
		}
	}
}

function ftext(text,style,color,hovercolor,fontface,fontsize,link,target,width,height)
{
	if (MM_FlashCanPlay)
	{
		var re = /&/g;
		var t2 = text.replace(re,"*and*");		
		var l2 = link.replace(re,"*and*");		
	}
	else
	{
		t2 = text;
	}
	// flash code
	strFlash = '';
	
	fvars = 'usecolor='+color+'&usestyle='+style+'&usefontsize='+fontsize+'&usehovercolor='+hovercolor+'&usecont='+t2+'&usetarget='+target+'&uselink='+l2;
	
	strFlash += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
	strFlash += ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"';
	strFlash += ' width="'+width+'" height="'+height+'" wmode="transparent" NAME="flashtext">\n';
	strFlash += '<param name="movie" value="/swf/'+fontface+'.swf">\n';
	strFlash += '<param name="wmode" value="transparent">\n';
	strFlash += '<param name="quality" value="high">\n';

	strFlash += '<param name="menu" value="false">\n';
	strFlash += '<param name="FlashVars" value="'+fvars+'">\n';
	strFlash += '<embed src="/swf/'+fontface+'.swf" flashVars="'+fvars+'" menu="false" quality="best" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" swLiveConnect="true"';
	strFlash += ' width="'+width+'" height="'+height+'" wmode="transparent" NAME="flashtext"></embed></object>';
	// no flash code
	strNoFlash = t2;	
	// display
	if (MM_FlashCanPlay)
	{
		document.write(strFlash);
	}
	else
	{
		document.write(strNoFlash);	
	}
}