// 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
	//  MODIFICATION 11-2002 by Nick Mealy, (nick-at-razorlab-dot-com).  Put in a loophole so that PC IE gets served the object tag regardless of Flash Player version. This will result in the standard activeX-plugin installation path, which is quite a lot simpler than manual installation. 
  if((hasRightVersion)||((is.win)&&(is.ie))) {  // if we've detected an acceptable version
    var oeTags = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'; 
		oeTags +=  
		'codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="585" height="385" id="theRivers_areamap" align="middle">';
		oeTags +=  
		'<param name="allowScriptAccess" value="sameDomain" />';
		oeTags +=  '<param name="movie" value="../swf/theRivers_areamap.swf" />';
		oeTags +=  '<param name="quality" value="high" />';
		oeTags +=  '<param name="bgcolor" value="#ffffff" />';
		oeTags +=  '<embed src="../swf/theRivers_areamap.swf" quality="high" bgcolor="#ffffff" width="585" height="385" name="theRivers_areamap" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
		oeTags +=  '</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!
//		window.open("http://www.macromedia.com/go/getflashplayer/","flashInstaller",  "width=500,height=500,status=yes,resizable=yes,scrollbars=1,toolbar=1,titlebar=1");
    var alternateContent = '<img src="../images/map_neighborhoods.gif" width="584" height="355" border="0" alt="" galleryimg="no" usemap="#neighborhoodsmap"><br><img src="../images/map_neighborhoods_key.gif" width="584" height="35" border="0" alt="">';

    document.write(alternateContent);  // insert non-flash content
  }
}