// write flash dynamically to hack the IE security settings - function:

function EmbedFlash(strIDName, strMovie, strWidth, strHeight, strAlign, strQuality, strBGColor, strAllowScriptAccess, strWMode)
{

	var strWModeEmbed = '';

	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + strWidth + '" height="' + strHeight + '" id="' + strIDName + '" align="' + strAlign + '" VIEWASTEXT>\n');
	document.write('<param name="allowScriptAccess" value="' + strAllowScriptAccess + '" />\n');
	document.write('<param name="movie" value="' + strMovie + '" />\n');
	document.write('<param name="quality" value="' + strQuality + '" />\n');
	document.write('<param name="bgcolor" value="' + strBGColor + '" />\n');
	if (strWMode != null)
	{
		document.write('<param name="wmode" value="' + strWMode + '" />\n');
		strWModeEmbed = ' wmode="' + strWMode + '"'
	}
	document.write('<embed src="' + strMovie + '" quality="' + strQuality + '"' + strWModeEmbed + ' bgcolor="' + strBGColor + '" width="' + strWidth + '" height="' + strHeight + '" name="' + strIDName + '" align="' + strAlign + '" allowScriptAccess="' + strAllowScriptAccess + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
	document.write('</object>\n');
}

// write flash dynamically to hack the IE security settings - variables:

function RunFoo()
{
	EmbedFlash('rotator_home', 'images/rotator_home.swf', '286', '200', 'middle', 'high', '#ffffff', 'sameDomain', null);
}

