function WriteSWF(url, id, color, width, height, var1, var2, var3) {
	var s = "";
	s += "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"" + width + "\" height=\"" + height + "\" id=\"" + id + "\">";
	s += "        <param name=\"allowScriptAccess\" value=\"always\" />";
	s += "        <param name=\"movie\" value=\"" + url + "\" />";
	s += "        <param name=\"quality\" value=\"high\" />";
	s += "        <param name=\"bgcolor\" value=\"" + color + "\" />";
	s += "        <param name=\"FlashVars\" value=\"HtmlSet1=" + var1 + "&HtmlSet2=" + var2 + "&HtmlSet3=" + var3 + "\" />";
	s += "        <EMBED src=\"" + url + "\" FlashVars=\"HtmlSet1=" + var1 + "&HtmlSet2=" + var2 + "&HtmlSet3=" + var3 + "\" quality=\"high\" bgcolor=\"" + color + "\" width=\"" + width + "\" height=\"" + height + "\" name=\"" + id + "\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\">";
	s += "</object>";
	document.write(s);
}