var hasReqestedVersion = DetectFlashVer(6, 0, 21);
if (hasReqestedVersion) {  // 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,21"'
	+ 'width="195" height="143"'
	+ 'id="compass"'
	+ 'title="Weather Station">'
	+ '<param name="movie" value="/weather/compass.swf?DEBUGMODE=' + bDebugMode
	+ '&UPDATERATE=' + nUpdateRate
	+ '&FEEDURL=' + strFeedURL
	+ '" />'
	+ '<param name="quality" value="high" />'
	+ '<param name="wmode" value="transparent" />'
	+ '<embed wmode="transparent" src="/weather/compass.swf" quality="high"'
	+ 'pluginspage="http://www.macromedia.com/go/getflashplayer"'
	+ 'type="application/x-shockwave-flash"'
	+ 'width="195" height="143">'
	+ '<\/embed>'
	+ '<\/object>';
	document.write(oeTags);   // embed the Flash Content SWF when all tests are passed
	//alert(oeTags);
	} else {  // flash is too old or we can't detect the plugin
	var alternateContent = '<table id="compass" cellpadding="5"><tr><td>Apologies from the DBCT 7X Web Team.<br><br>'
												+ 'This <em>Weather Station</em> requires that you have <strong>Macromedia Flash Player</strong> installed.<br><br>'
												+ 'Please <a href=http://www.macromedia.com/go/getflash/>Get Flash</a></td></tr></table>';
												document.write(alternateContent);  // insert non-flash content
											}
