function flashloader(movie, name, width, height, bgcolor, wmode, align)
{
	//default values
	if (name == null)
	{
		name = "flash";
	}
	if (width == null)
	{
		width = "100%";
	}
	if (height == null)
	{
		height = "100%";
	}
	if (bgcolor == null)
	{
		bgcolor = "#FFFFFF";
	}

	//Write flash
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"		');
	document.write('		codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"	');
	document.write('		width="' + width + '" height="' + height + '" 	');
	document.write('		id="' + name + '" align="' + align + '">		');
	document.write('	<PARAM NAME=movie VALUE="' + movie + '">			');
	document.write('	<PARAM NAME=bgcolor VALUE="' + bgcolor + '">		');
	if (wmode == true)
	{
		document.write('<PARAM NAME="WMode" value="Transparent">			');
	}
	document.write('	<PARAM NAME=quality VALUE=high>						');
	document.write('	<EMBED TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"	');
	document.write('			name="' + name + '" align=""');
	document.write('			src="' + movie + '"			');
	document.write('			width="' + width + '"		');
	document.write('			height="' + height + '"		');
	document.write('			bgcolor="' + bgcolor + '"	');
	if (align != null)
	{
		document.write('		align="' + align + '"		');
	}
	if (wmode == true)
	{
		document.write('		wmode="transparent"			');
	}
	document.write('			quality="high">				');
	document.write('	</EMBED>	');
	document.write('</OBJECT>		');
}