// JavaScript Document
function drawOutFlashGeneric(url, width, height) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + width + '" height="' + height + '">');
	document.write('<param name="movie" value="'+ url +'" />');
	document.write('<param name="quality" value="best" />');
	document.write('<param name="wmode" value="transparent">');	
	document.write('<embed src="'+ url +'" width="' + width + '" height="' + height + '" quality="best" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>');
	document.write('</object>');
}
function drawOutFlashNonTransparent(url, width, height, id) {
	document.write('<object id="' + id + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + width + '" height="' + height + '">');
	document.write('<param name="movie" value="'+ url +'" />');
	document.write('<param name="quality" value="best" />');
	document.write('<embed name="' + id + '" src="'+ url +'" width="' + width + '" height="' + height + '" quality="best" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>');
	document.write('</object>');
}
function playTextMovie() {
	var flashMovie = getFlashMovieObject("homepageText");
	flashMovie.Play();
}

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);
  }
}