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.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=9,0,124,0' width='" + m_width + "' height='" + m_height + "'";
		if (this.id != "")
			html += " id='" + this.id + "'";
		html += "> ";
		html += "<param name='movie' value='" + m_movie + "' >";
		html += "<param name='menu' value='" + this.menu + "'>";
		html += "<param name='quality' value='" + this.quality + "'>";
		if (this.wmode != "")
			html += "<param name='wmode' value='" + this.wmode + "'>";
		html += "<embed src='" + m_movie + "' quality='" + this.quality + "' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash' type='application/x-shockwave-flash' width='830' height='240'></embed>";
		html += "</object>";
		document.write(html);
	}
}


//function FlashObject(swf, width, height, bgcolor, id, flashvars)
function FlashObject1(swf, width, height)
{
    var strFlashTag = new String();
    
    if (navigator.appName.indexOf("Microsoft") != -1)
    {
        strFlashTag += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
        strFlashTag += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=version=8,0,0,0" ';
        strFlashTag += 'id="" width="' + width + '" height="' + height + '">';
        strFlashTag += '<param name="movie" value="' + swf + '">';        
        strFlashTag += '<param name="wmode" value="transparent">';
        strFlashTag += '<param name="quality" value="best">';
        strFlashTag += '<param name="menu" value="false">';
        strFlashTag += '<param name="salign" value="LT">';
        strFlashTag += '<param name="scale" value="noscale">';
        strFlashTag += '<param name="allowScriptAccess" value="sameDomain">';
        strFlashTag += '</object>';
    }
    else
    {
        strFlashTag += '<embed src="' + swf + '" ';
        strFlashTag += 'quality="best" ';
        strFlashTag += 'width="' + width + '" ';
        strFlashTag += 'height="' + height + '" ';
        strFlashTag += 'wmode="transparent" ';
        strFlashTag += 'menu="false" ';
        strFlashTag += 'scale="noscale" ';
        strFlashTag += 'id="" ';
        strFlashTag += 'salign="LT" ';
        strFlashTag += 'allowScriptAccess="sameDomain" ';
        strFlashTag += 'type="application/x-shockwave-flash" ';
        strFlashTag += 'pluginspage="http://www.macromedia.com/go/getflashplayer">';
        strFlashTag += '</embed>';
    }

 document.write(strFlashTag);
}

function FlashObject2(fn,wd,hd) 
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+wd+'" height="'+hd+'">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<param name="movie" value="'+fn+'">');
	document.write('<param name=quality value=high>');
	document.write('<embed src="'+fn+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent" width="'+wd+'" height="'+hd+'"></embed>');
	document.write('</object>');
}