function FlashObject(path, width, height)
{
    var m_movie = path;
    var m_width = width;
    var m_height = height;

    this.wmode = "";
    this.id = "";
    this.quality = "high";
    this.loop = "false";
    this.menu = "false";
    this.allowScriptAccess = "sameDomain";
    this.FlashVars = "";
	this.scale = "";
	this.salign = "";
	this.align = "";

    this.Render = function()
    {
        var html;

        html = "<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='" + m_width + "' height='" + m_height + "'";
        if (this.id != "") html += " id='" + this.id + "'";
        html += ">";
        
        html += "<param name='allowScriptAccess' value='" + this.allowScriptAccess + "' />";
        html += "<param name='movie' value='" + m_movie + "' />";
        html += "<param name='menu' value='" + this.menu + "' />";
        html += "<param name='quality' value='" + this.quality + "' />";
        html += "<param name='loop' value='" + this.loop + "' />";
        if (this.wmode != "") html += "<param name='wmode' value='" + this.wmode + "' />";
        if (this.FlashVars != "") html += "<param name='FlashVars' value='" + this.FlashVars + "'";
        if (this.scale != "") html += "<param name='scale' value='" + this.scale + "' />";
		if (this.salign != "") html += "<param name='salign' value='" + this.salign + "' />";
        
        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 + "'";
        html += " allowScriptAccess='" + this.allowScriptAccess + "' loop='" + this.loop + "'";
        if (this.wmode != "") html += " wmode='" + this.wmode + "'";
        if (this.FlashVars != "") html += " FlashVars='" + this.FlashVars + "'";
		if (this.scale != "") html += " scale='" + this.scale + "'";
		if (this.salign != "") html += " salign='" + this.salign + "'";
		if (this.align != "") html += " align='" + this.align + "'";
        html += " /></object>";
        
        document.write(html);
    }
}




