// 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="410" HEIGHT="206"'
    + 'id="dance"'
	+ 'ALIGN="left">'
    + '<PARAM NAME="MOVIE" VALUE="/flash/dance.swf">'
	+ '<PARAM NAME="PLAY" VALUE="true">'
    + '<PARAM NAME=quality VALUE=best>'
    + '<PARAM NAME=scale VALUE=exactfit>'
    + '<PARAM NAME=salign VALUE=LT>'
    + '<PARAM NAME=wmode VALUE=transparent>'
	+ '<PARAM NAME=bgcolor VALUE=#4A691A>' 
    + '<EMBED SRC="/flash/dance.swf"'
    + 'WIDTH="410" HEIGHT="206"'
    + 'PLAY="true"'
    + 'scale="exactfit"'
	+ 'salign="LT"'
	+ 'wmode="transparent"'  
    + 'QUALITY="best"'
    + 'bgcolor="#4A691A"'
	+ 'NAME="dance"'
	+ 'ALIGN="left"' 
    + '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 = '<IMG SRC="/img/programm/dance_star.gif" HEIGHT="206" WIDTH="410">';
   document.write(alternateContent);
  }
}

