function flashContent(src, w, h, wmode){
	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) {  // if we've detected an acceptable version
		flashCode='';
		tmpStr='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width='+w+' height='+h+'>';
		flashCode+=tmpStr;
		tmpStr='<param name="movie" value="'+src+'">';
		flashCode+=tmpStr;
		tmpStr='<param name="menu" value="false">';
		flashCode+=tmpStr;
		tmpStr='<param name="allowScriptAccess" value="always">';
		flashCode+=tmpStr;
		if(wmode!=''){
			tmpStr='<param name="wmode" value='+wmode+'>';
			flashCode+=tmpStr;
			tmpStr='<embed src="'+src+'" menu="false" wmode="'+wmode+'" allowScriptAccess="always" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width='+w+' height='+h+'></embed></object>';
		}else{
			tmpStr='<embed src="'+src+'" menu="false" allowScriptAccess="always" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width='+w+' height='+h+'></embed></object>';
		}
		flashCode+=tmpStr;
		document.write(flashCode);
	} else {  // flash is too old or we can't detect the plugin
			var alternateContent = 'This content requires the Macromedia Flash Player 9.'
			+ '<a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get Flash Player 9</a>';
			document.write(alternateContent);  // insert non-flash content
	}
}
