function create(FO, FOType) {
	if (FOType == "Loc") {
		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="' + FO.width + '" height="' + FO.height + '" id="myFlashMovie">' +
	'<PARAM NAME=movie VALUE="' + FO.movie + '">' + 
	'<PARAM NAME="quality" value="high">' +
	'<EMBED src="' + FO.movie + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + FO.width + '" height="' + FO.height + '" swliveconnect="true" name="myFlashMovie">' +
	'</embed></object>' 
			);
	} else {
		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="' + FO.width + '" height="' + FO.height + '" >' +
	'<PARAM NAME=movie VALUE="' + FO.movie + '">' + 
	'<PARAM NAME="quality" value="high">' +
	'<EMBED src="' + FO.movie + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + FO.width + '" height="' + FO.height + '" swliveconnect="true">' +
	'</embed></object>' 
			);
	};
	
};

function createHiddenField() {
	document.write (
			'<form name="controller" method="POST"><input type="hidden" name="Data" size="20" value=' + "'" + flashvars + "'" + '></form>'
			);
}

// F. Permadi May 2000 // This is the code that collects the XML object info from the hidden text field and sends it to flash
function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
    return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}


function SendDataToFlashMovie()
{
	var flashMovie = getFlashMovieObject("myFlashMovie");
	flashMovie.SetVariable("/:sXML_txt", document.controller.Data.value);
}