// 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 '
		+ 'id="" '
		+ 'width="100%" '
		+ 'height="100%" '
		+ 'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '
		+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" VIEWASTEXT>'
		+ '<param name="allowScriptAccess" value="sameDomain">'
		+ '<param name="swliveconnect" value="true">'
		+ '<param name="play" value="true">'
		+ '<param name="loop" value="false">'
		+ '<param name="menu" value="false">'
		+ '<param name="wmode" value="">'
		+ '<param name="align" value="">'
		+ '<param name="salign" value="">'
		+ '<param name="quality" value="best">'
		+ '<param name="scale" value="exactfit">'
		+ '<param name="bgcolor" value="#000000">'
		+ '<param name="movie" value="codebase/Presenter.swf">'
		+ '<param name="flashvars" value="PresentationID=WITH">'
		+ '<embed '
			+ 'name="" '
			+ 'width="100%" '
			+ 'height="100%" '
			+ 'type="application/x-shockwave-flash" '
			+ 'pluginspage="http://www.macromedia.com/go/getflashplayer" '
			+ 'allowScriptAccess="sameDomain" '
			+ 'play="true" '
			+ 'loop="false" '
			+ 'menu="false" '
			+ 'wmode="" '
			+ 'align="" '
			+ 'salign="" '
			+ 'quality="best" '
			+ 'scale="showall" '
			+ 'bgcolor="#000000" '
			+ 'src="codebase/Presenter.swf" '
			+ 'flashvars="PresentationID=WITH"'
		+ '></embed>'
	+ '</object>';
	//alert(oeTags);
    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 border="0" cellpadding="0" cellspacing="0" class="stage">'
														+ '<tr>'
														+ '<td class="centermiddle">'	
														+ '<a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank">'
														+ '<img src="mediabase/Alternatives/noFlash.gif" width="800" height="600" alt="" title="">'
														+ '</a>'
														+ '</td>'
														+ '</tr>'

    document.write(alternateContent);  // insert non-flash content
  }
}

