//the document.write calls must be in a separate js file (not an included cfm) for the activeX fix to work
function writeFlash(flashMovieParam){
	//all supporting functions are contained in flashInclude.cfm
	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) {
		document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"333\" height=\"260\">");
		document.write("<param name=\"movie\" value=\"flash/" + flashMovieParam + "\" />");
		document.write("<param name=\"wmode\" value=\"transparent\" />");
		document.write("<param name=\"quality\" value=\"high\">");
		document.write("<embed src=\"flash/" + flashMovieParam + "\"  wmode=\"transparent\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"333\" height=\"260\"></embed>");
		document.write("</object>");
	}else{
		document.write("You need the <a href=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW\" target=\"_blank\">Flash 8 Plugin</a> to view this content.");
	}
	return;
}