// This is code that uses remote included javascript to write embedded objects into HTMl
// to work around the stupid Microsoft problem in IE caused by their loss of patent
// infringement suit.
// http://msdn.microsoft.com/library/?url=/workshop/author/dhtml/overview/activating_activex.asp

function writePostcard(PostcardFileName, SentPostcardID)
{
	var oeTags = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="fun_postcards" width="550" height="417" align="middle">'
	+ '	<param name="allowScriptAccess" value="sameDomain" />'
	+ '	<param name="movie" value="images/' + PostcardFileName + '?postCardID=' + SentPostcardID + '" />'
	+ '	<param name="quality" value="high" />'
	+ '	<param name="bgcolor" value="#ffffff" />'
	+ '	<embed src="images/' + PostcardFileName + '?postCardID=' + SentPostcardID + '" quality="high" bgcolor="#ffffff" width="726" height="550" swLiveConnect=true id="fun_postcards" name="fun_postcards" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'
	+ '	</object>'
  document.write(oeTags);   // embed the flash movie
}

function writeFlashCode(flashCode)
{
  document.write(flashCode);   // embed the flash movie
}