// In this section we set up the content to be placed dynamically on the page.
// Customize movie tags and alternate html content below.

if (!useRedirect) {    // if dynamic embedding is turned on
  if(hasRightVersion) {  // if we've detected an acceptable version
    var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"'
    + 'width="774" height="330" id="slideshow" align="">'
    + '<param name="movie" value="/assets/home/slideshow.swf" \/> '
    + '<param name="quality" value="high" \/>'
    + '<param name="bgcolor" value="#FDFCF5" \/>'
	 + '<embed src="/assets/home/slideshow.swf" quality="high" bgcolor="#FDFCF5" width="774" height="330" name="slideshow" align=""'
	 + 'type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">'
    + '<\/embed>'
    + '<\/object>';	 
	 
    document.write(oeTags);   // embed the flash movie
  } else {  // flash is too old or we can't detect the plugin
    // NOTE: height, width are required!
    var alternateContent = '<table cellpadding="0" cellspacing="0" border="0">' 
		+ '<tr><td valign="top">'
		+ '<table cellpadding="0" cellspacing="0" border="0">'
		+ '<tr><td rowspan="2"><img src="/images/1x1invis.gif" width="15" height="1" alt="" border="0" /></td>'
		+ '<td colspan="2"><br /><img src="/images/logo_foa.gif" width="214" height="66" alt="Focus on Ability" border="0" /></td></tr>'
		+ '<tr><td><img src="/images/1x1invis.gif" width="30" height="1" alt="" border="0" /></td>'
		+ '<td><br /><h3 style="color:#9A1D10;">Macromedia Flash Player 6 Required</h3>'
		+ '<p>Focus on Ability requires version 6 or later of the Macromedia Flash Player.</p>'
		+ '<p>You can download and install the latest version of the the Macromedia Flash Player <a href="http://www.macromedia.com/go/getflashplayer" style="color:#0066CC;" target="_blank">at the Macromedia web site.</a></p>'
		+ '<p><a href="http://www.macromedia.com/go/getflashplayer" target="_blank"><img src="/images/home/get_flashplayer_88_31.gif" border="0" width="88" height="31" alt="Get Macromedia Flash Player" /></a></p></td></tr>'
		+ '</table>'
		+ '</td>'
		+ '<td valign="top" align="right"><img src="/images/home/home_noflash.jpg" width="375" height="330" alt="" border="0" /></td></tr>'
		+ '</table>	';
						
						
    document.write(alternateContent);  // insert non-flash content
  }
}