// 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('plan', 'images/plan.swf', '743', '600', 'middle', 'high', '#ffffff', 'sameDomain', 'transparent');
}

function RunFoo2()
{
	EmbedFlash('plan2', 'images/plan2.swf', '743', '600', 'middle', 'high', '#ffffff', 'sameDomain', 'transparent');
}

function RunFoo3()
{
	EmbedFlash('gallery', 'images/gallery.swf', '743', '330', 'middle', 'high', '#ffffff', 'sameDomain', 'transparent');
}

function RunFoo4()
{
	EmbedFlash('gallery2', 'images/gallery2.swf', '743', '330', 'middle', 'high', '#ffffff', 'sameDomain', 'transparent');
}

function RunFoo5()
{
	EmbedFlash('gallery3', 'images/gallery3.swf', '743', '330', 'middle', 'high', '#ffffff', 'sameDomain', 'transparent');
}

function RunFoo6()
{
	EmbedFlash('shared-group', 'http://www.concertogroup.co.uk/resources/shared-group.swf', '680', '408', 'middle', 'high', '#ffffff', 'sameDomain', 'transparent');
}

function RunFooXmas()
{
	EmbedFlash('rotator_xmas', 'images/rotator_xmas.swf', '286', '200', 'middle', 'high', '#ffffff', 'sameDomain', 'transparent');
}

function RunFooPrivate()
{
	EmbedFlash('rotator_private_wedding', 'images/rotator_private_wedding.swf', '286', '200', 'middle', 'high', '#ffffff', 'sameDomain', 'transparent');
}

function RunFooAsian()
{
	EmbedFlash('rotator_asian_wedding', 'images/rotator_asian_wedding.swf', '286', '200', 'middle', 'high', '#ffffff', 'sameDomain', 'transparent');
}

function RunFooCorporate()
{
	EmbedFlash('rotator_corp_events', 'images/rotator_corp_events.swf', '286', '200', 'middle', 'high', '#ffffff', 'sameDomain', 'transparent');
}

function RunFooSummer()
{
	EmbedFlash('rotator_corp_summer', 'images/rotator_corp_summer.swf', '286', '200', 'middle', 'high', '#ffffff', 'sameDomain', 'transparent');
}

function RunFooCatering()
{
	EmbedFlash('rotator_catering', 'images/rotator_catering.swf', '286', '200', 'middle', 'high', '#ffffff', 'sameDomain', 'transparent');
}

function RunFooVideo()
{
	EmbedFlash('wedding_video', 'images/wedding_video.swf', '380', '250', 'middle', 'high', '#ffffff', 'sameDomain', 'transparent');
}
