function showFlash(filepath, width, height, wmode, bgcolor, align, quality) {
	// mandatory parameters
	if (filepath == null) alert("WANRING:: writeFlashFull:: filepath is null");
	if (width == null) alert("WANRING:: writeFlashFull:: width is null");
	if (height == null) alert("WANRING:: writeFlashFull:: height is null");

	// default parameters
	if (wmode == null) wmode = "window";
	//if (bgcolor == null) bgcolor = "#FFFFFF";
	if (align == null) align = "middle";
	if (quality == null) quality = "high";

	document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\"");
	document.write("	codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\"");
	document.write("	width=\"" + width + "\"");
	document.write("	height=\"" + height + "\"");
	document.write("	align=\"" + align + "\">");
	document.write("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
	document.write("<param name=\"movie\" value=\"" + filepath+ "\" />");
	document.write("<param name=\"quality\" value=\"" + quality + "\" />");
	document.write("<param name=\"wmode\" value=\"" + wmode + "\" />");
	if (bgcolor != null)
		document.write("<param name=\"bgcolor\" value=\"" + bgcolor + "\" />");
	document.write("<embed");
	document.write("	src=\"" + filepath + "\"");
	document.write("	quality=\"" + quality + "\"");
	document.write("	wmode=\"" + wmode + "\"");
	if (bgcolor != null)
		document.write("	bgcolor=\"" + bgcolor + "\"");
	document.write("	width=\"" + width + "\"");
	document.write("	height=\"" + height + "\"");
	document.write("	align=\"" + align + "\"");
	document.write("	allowScriptAccess=\"sameDomain\"");
	document.write("	type=\"application/x-shockwave-flash\"");
	document.write("	pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
	document.write("</object>");
}


