//function embedFlash (swfFile,swfWidth,swfHeight,swfBgColor,swfAltHTML,swfMajorVersion=7,swfMinorVersion=0,swfRevision=0,jsVersion=1.0) {
function embedFlash (swfFile,swfWidth,swfHeight,swfBgColor,swfAltHTML,swfMajorVersion,swfMinorVersion,swfRevision) {
	
	var hasRightVersion = DetectFlashVer(swfMajorVersion, swfMinorVersion, swfRevision);
	if(hasRightVersion) {  // if we've detected an acceptable version
		var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
		+ 'width="'+swfWidth+'" height="'+swfHeight+'" style="display:block;" '
		+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
		+ '<param name="movie" value="'+swfFile+'" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="'+swfBgColor+'" />'
		+ '<embed src="'+swfFile+'" quality="high" wmode="transparent" bgcolor="'+swfBgColor+'" style="display:block;" '
		+ 'width="'+swfWidth+'" height="'+swfHeight+'" name="header" align="middle"'
		+ 'play="true"'
		+ 'loop="false"'
		+ 'quality="high"'
		+ 'allowScriptAccess="sameDomain"'
		+ 'type="application/x-shockwave-flash"'
		+ 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
		+ '<\/embed>'
		+ '<\/object>';
		document.write(oeTags);   // embed the flash movie
	} else {  // flash is too old or we can't detect the plugin
		document.write(swfAltHTML);  // insert non-flash content
	}
  
}