
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=5,0,0,0"' 
 + ' WIDTH=748 HEIGHT=485><PARAM NAME=movie VALUE="flash/tfend.swf">'
 + '<PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#a8a39e>'
 + '<EMBED src="flash/tfend.swf" quality=high bgcolor=#a8a39e WIDTH=748 HEIGHT=485 '
 + 'TYPE="application/x-shockwave-flash"'  
 + 'PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
 + '</EMBED></OBJECT>';
 
 //<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="748" height="485" id="topflashb" align="middle">
//<param name="allowScriptAccess" value="sameDomain" />
//<param name="movie" value="topflashb.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#a8a39e" /><embed src="topflashb.swf" quality="high" bgcolor="#a8a39e" width="748" height="485" name="topflashb" align="middle" 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
		var alternateContent = '<table border="0" width="748" cellpadding="0" cellspacing="0"><tr><td background="images/bggradtophome.jpg"><img src="images/top.jpg"></td></tr></table>'	// height, width required!
			;//any desired alternate html code goes here

		document.write(alternateContent);	// insert non-flash content
	}
}
