/*

flashEmbed by Rob Davis :: Solaris Media
==============================

rob@solarismedia.com
www.solarismedia.com
+44 (0)20 7791 1555

version 1.0
last change: 11th Dec 2003

Please use or distribute this script however you like. It was originally
written in response to the upcoming changes to IE and Netscape, but
I've found it a more convenient solution to embedding Flash on web
pages anyway.

*/

function flashEmbed(fileName, name, width, height, bgColour, centre) {
	if (bgColour == "") 	{
		bgColour = "000000";
	}
	if (centre == 1) {
		document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%"><tr><td align="center" valign="middle">');
	}
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="' + width + '" HEIGHT="' + height + '" id="' + name + '" ALIGN="" swLiveConnect=true>\n');
	document.write('<PARAM NAME=movie VALUE="' + fileName + '"> <PARAM NAME=quality VALUE=high><PARAM NAME=swLiveConnect VALUE=true><PARAM NAME=bgcolor VALUE=#' + bgColour + '>\n');
	document.write('<EMBED src="' + fileName + '" quality=high bgcolor=#' + bgColour + '  WIDTH="' + width + '" HEIGHT="' + height + '" NAME="' + name + '" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>\n');
    document.write('</object>\n');
	if (centre == 1) {
		document.write('</td></tr></table>');
	}
}
