// p11 javascript - feel free to use
function create(FO) {
	document.write ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"' +
								'width="' + FO.width + '" height="' + FO.height + '" wmode="transparent" id="' + FO.name + '">' +
								'<param name="allowScriptAccess" value="sameDomain" />' +
            		'<param name="movie" value="' + FO.movie + '" />' +
            		'<param name="quality" value="high" />' +
            		'<param name="wmode" value="transparent">' +
            		'<embed src="' + FO.movie + '" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"' + 
								'width="' + FO.width + '"' +
								'height="' + FO.height + '"' +
								'name="' + FO.name + '"' +
								'wmode="transparent" swliveconnect="true" allowScriptAccess="sameDomain"></embed></object>');
};

function getFlashMovie(movieName) {
  var isIE = navigator.appName.indexOf("Microsoft") != -1;
  return (isIE) ? window[movieName] : document[movieName];
};
 
function flashSend(txt) {
  var text = txt;
  getFlashMovie("viewer").sendTextToFlash(text);
  
};


function setTimer() {
	window.setTimeout("flashSend(flashvars)",1000);
	return false;
};
