// the following repairs a stupid decision that Microsoft made...
function addMovie(fileName, movieX, movieY) {
	var myFlashVars;
	var myId = 'movie';
	if (arguments.length > 3) {
		myId = arguments[3];
	}
	if (arguments.length > 4) {
		var myFlashVars = arguments[4];
	}
	// write the OBJECT tag
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ');
	document.write('codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
	document.write('width="'+movieX+'" ');
	document.write('height="'+movieY+'" ');
	document.write('id="'+myId+'" ');
	document.write('align="middle">\n');
	// write the OBJECT parameters in PARAM tags
	document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
	document.write('<param name="movie" value="'+fileName+'" />\n');
	document.write('<param name="quality" value="high" />\n');
	if (typeof(myFlashVars) != 'undefined') {
		document.write('<param name="FlashVars" value="'+myFlashVars+'">');
	}
	// write the EMBED tag
	document.write('<embed src="'+fileName+'" quality=high ');
	document.write('pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" ');
	document.write('type="application/x-shockwave-flash" ');
	document.write('width="'+movieX+'" ');
	document.write('height="'+movieY+'" ');
	document.write('FlashVars="'+myFlashVars+'" ');
	document.write('name="'+myId+'">');
	document.write('</embed>\n');
	document.write('</object>\n');
}

