// 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"\n'
    + 'width="800" height="600"\n'
    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0">\n'
    + '<param name="movie" value="./main.swf">\n'
    + '<param name="play" value="true">\n'
    + '<param name="loop" value="false">\n'
    + '<param name="quality" value="high">\n'
    + '<param name="menu" value="false">\n'
    + '<param name="bgcolor" value="#ccff00">\n'
    + '<embed src="./main.swf"\n'
    + '    width="800" height="600"\n'
    + '    play="true"\n'
    + '    loop="false"\n'
    + '    quality="high"\n'
    + '    menu="false"\n'
    + '    bgcolor="#ccff00"\n'
    + '    type="application/x-shockwave-flash"\n'
    + '    pluginspage="http://www.macromedia.com/go/getflashplayer">\n'
    + '</embed>\n'
    + '</object>\n'

    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 = '<a href="http://www.macromedia.com/go/getflashplayer"><img alt="Install the Lastest Flash Player to View This Site" border="0" src="./bitmaps/main.jpg" width="800" height="600"></a>'
	+ '<br><h3>Install the Lastest Flash Player to View This Site&nbsp;&nbsp;&nbsp;<a href="http://www.macromedia.com/go/getflashplayer"><img alt="Install the Lastest Flash Player to View This Site" border="0" src="./bitmaps/getFlash.gif" width="88" height="31"></a></h3>'
    document.write(alternateContent)  // insert non-flash content
  }
}
