// 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://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"'
    + ' width="100%" height="100%" id="intro" align="middle">'
    + '<param name="allowScriptAccess" value="sameDomain" />'
    + '<param name="movie" value="_swf/intro.swf" />'
    + '<param name="bgcolor" value="#cccccc" />'
    + '<param name="quality" value="high">'
	+ '<param name="scale" value="noscale" />'
	+ '<param name="salign" value="t" />'
    + '<param name="menu" value="false">'
    + '<embed src="_swf/intro.swf" name="intro" align="middle"'
    + ' width="100%" height="100%"'
    + ' play="true"'
    + ' loop="false"'
    + ' menu="false" scale="noscale" salign="t"'
	+ ' bgcolor="#cccccc"'
    + ' quality="high"'
    + ' allowScriptAccess="sameDomain"'
    + ' type="application/x-shockwave-flash"'
    + ' pluginspage="http://www.macromedia.com/go/getflashplayer" />'
    + '</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 = '<map name="links">' 
	+ '<area alt="english" coords="0,0,70,440" href="/index_en.html" target="_top" />'
	+ '<area alt="espanol" coords="71,0,150,440" href="/index_es.html" target="_top" />'
	+ '<\/map>'
	+ '<p align="center" style="margin:0;"><img src="/images/bg/noflash_intro.gif" width="410" height="440" border="0" usemap="#links" /></p>'
	+ '<div align="center" style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 10px; color: #cccccc;">:: <a href="http://www.macromedia.com/go/getflashplayer" style="color:white;" target="_blank">flash player 7+</a> required ::<br \/>'
	+ '</div>';

    document.write(alternateContent);  // insert non-flash content
  }
}