// In this section we set up the content to be placed dynamically on the page.
// Customize movie tags and alternate html content below.

/*
flashW = "888";	//flashW = "100%";
flashH = "510";	//flashH = "100%";
flashScreen = "1024";
flashSWF = "<% = strIBroFile %>.swf"
flashID = 	"<% = strIBroFile %>";
flashBGHex = "<% = strIBroBG %>";
flashTitle = "<% = strIBroTitle %>";
*/

if (display800x600 == true) {
	flashW = 740;
	flashH = 408;
	flashScreen = "800";
}

if (!useRedirect) {    // if dynamic embedding is turned on
  if(hasRightVersion) {  // if we've detected an acceptable version
  
  	var openingTag = '<table width="100%" height="100%"><tr><td align="center" valign="middle">';
	var closingTag = '</td></tr></table>';
	
var oeTags = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id="'+flashID+'" width="'+flashW+'" height="'+flashH+'" align="middle"><param name="allowScriptAccess" value="sameDomain"><param name="movie" value="'+flashSWF+'?flashScreen='+flashScreen+'"><param name="quality" value="high"><param name="scale" value="showall"><param name="bgcolor" value="'+flashBGHex+'"><embed src="'+flashSWF+'?flashScreen='+flashScreen+'" quality="high" scale="showall" bgcolor="'+flashBGHex+'" width="'+flashW+'" height="'+flashH+'" swLiveConnect=true id="'+flashID+'" name="'+flashID+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></object>';

    //document.write(oeTags);   // embed the flash movie
    document.write(openingTag+oeTags+closingTag);
	
  } else {  // flash is too old or we can't detect the plugin
    // NOTE: height, width are required!
    var alternateContent = '<br><br><table border="0" cellspacing="0" cellpadding="0"><tr><td width="50">&nbsp;</td><td width="400">'
	+ '<table width="400" border="0" cellspacing="5" cellpadding="0">'
	+ '<tr><td><font face="Verdana, Arial, Helvetica, sans-serif" size="2">'
	+ '<h3><font color="'+flashBGHex+'">'+flashTitle+'</font></h3>'
	+ 'This i-Brochure requires Macromedia<sup><font size="-1">&reg;</font></sup>Flash<sup><font size="-2">TM</font></sup>'
	+ 'Player,<br>version 6 or above.</font></td><td><img src="'+flashID+'FC.jpg" alt="" border="0"></td></tr>'
	+ '<tr><td colspan="2"><hr><font face="Verdana, Arial, Helvetica, sans-serif" size="2">'
	+ '<a href="http://www.macromedia.com/go/getflashplayer" target="_blank"><img src="getFlashPlayer.gif" alt="" width="88" height="31" vspace="6" border="0"></a><br>'
	+ 'Use this button to download the latest version of the Macromedia<sup><font size="-1">&reg;</font></sup>Flash<sup><font size="-2">TM</font></sup> Player software.'
	+ ' Having done so, refresh this page and discover the new way to view our great value offers.<hr>'
	+ '<font SIZE="-2">Macromedia and Flash are trademarks of Macromedia, Inc.</font></font></td><td></td></tr></table>'
	+ '</td><td></td></tr></table>';
    document.write(alternateContent);  // insert non-flash content
  }
}