function CreateSwfControl(container, width, height, src)
{
	if (typeof(container) == 'string')
	{
		var c = document.getElementById(container);
	}
	else
	{
		var c = container;
	}
	if (c != null)
	{
		var widthStr = '';
		var heightStr = '';
		if(width != '' && width != null)
		{
			widthStr = ' width=' + width;
		}
		if(height != '' && height != null)
		{
			heightStr = ' height=' + height;
		}
		c.innerHTML += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' + widthStr + heightStr + '"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"><param name="src" value="' + src + '"/><param name="quality" value="high"/><embed src="' + src + '" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"' + widthStr + heightStr + '"></embed></object>';
	}
}