function FlashObject(path, width, height)
{
	var m_movie = path;
	var m_width = width;
	var m_height = height;

	this.wmode = "transparent";
	this.id = "";
	this.bgcolor = "";
	this.play = "";
	this.loop = "";
	this.quality = "high"
	this.menu = "false"
	
	this.Render = function()
	{
		var html;
		
		html = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"" + m_width + "\" height=\"" + m_height + "\"";
		if (this.id != "")
			html += " id='movie'";
		html += "><param name=\"allowScriptAccess\" value=\"always\" />";
		html += "<param name=\"movie\" value=\"" + m_movie + "\" />";
		html += "<param name=\"menu\" value=\"" + this.menu + "\" />";
		html += "<param name=\"quality\" value=\"" + this.quality + "\" />";
		if (this.play != "")
			html += "<param name=\"play\" value=\"" + this.play + "\" />";
		if (this.loop != "")
			html += "<param name=\"loop\" value=\"" + this.loop + "\" />";
		if (this.bgcolor != "")
			html += "<param name=\"bgcolor\" value=\"" + this.bgcolor + "\" />";
		if (this.wmode != "")
			html += "<param name=\"wmode\" value=\"" + this.wmode + "\" />";
		//html += "<embed src=\"" + m_movie + "\" quality=\"" + this.quality + "\" allowScriptAccess=\"always\" swLiveConnect=true pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" name=\"movie\" width=\"" + m_width + "\" height=\"" + m_height + "\"";
		html += "<embed src=\"" + m_movie + "\" quality=\"" + this.quality + "\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + m_width + "\" height=\"" + m_height + "\"";
		if (this.wmode != "")
			html += " wmode=\"" + this.wmode + "\"";
		html += "></embed>";
		html += "</object>";
//		alert(html);
		document.write(html);
	}
}

