function displayFlash(path, width, height)
{
	 var flashStr=
    "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='"+width+"' height='"+height+"' align='middle'>"+
    "<param name='allowScriptAccess' value='always' />"+
    "<param name='movie' value='"+path+"' />"+
    "<param name='wmode' value='transparent' />"+
    "<param name='quality' value='high' />"+
    "<embed src='"+path+ "' wmode='transparent' menu='false' quality='high' width='"+width+"' height='"+height+"' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
    "</object>";
    document.write(flashStr);
}

function displayDirector(path, width, height) {
	document.write('<OBJECT classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000"');
	document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=10,1,0,11"');
	document.write(' ID="DirectorContent" WIDTH="' + width + '" HEIGHT="' + height + '">');
	document.write('<PARAM NAME=src VALUE="' + path + '">');
	document.write('<EMBED SRC="' + path + '"');
	document.write(' WIDTH="' + width + '" HEIGHT="' + height + '"');
	document.write(' TYPE="application/x-director" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveDirector">');
	document.write('</EMBED>');
	document.write('</OBJECT>');
}

function displayCustomEmbed(embed) {
	document.write(embed);
}

