// JavaScript Document to embed a flash object or write alternate content
function writeObjectTag()
{
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) {  // if we've detected an acceptable version
    var oeTags = '<object data="flash/flash_home.swf" type="application/x-shockwave-flash"'
	+ 'title=""'
    + 'width="455" height="145">'
    + '<param name="movie" value="flash/flash_home.swf" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="WMode" value="Transparent" /><param name="bgcolor" value="#ffffff" />'
    + '<\/object>';
    document.write(oeTags);   // embed the flash movie
  } else {  // flash is too old or we can't detect the plugin
    var alternateContent = '<p>Some elements of this page require Flash Player 6 or above. '
	+ '<br>'
   	+ '<a target="_blank" href=http://www.macromedia.com/go/getflash/>Download the latest version here.<\/a>'
	+ '<\/p>'
	+ '<br>'
	+ '<img src="images/flash_alt_img.gif" width="455" height="145" alt="Welcome message and photograph">';
    document.write(alternateContent);  // insert non-flash content
  }
}