var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

function writeFlash(flashPath){
		//actual size is 560 x 198
		//resized in preview to fit image resize
		var oeTags = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\""
		+ "width=\"560\" height=\"198\""
		+ "codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab\">"
		+ "<param name=\"movie\" value=\"" + flashPath + "\">"
		+ "<param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#FFFFFF\" />"
		+ "<param name=\"wmode\" value=\"opaque\">"
		+ "<embed src=\"" + flashPath + "\" quality=\"high\" bgcolor=\"#FFFFFF\""
		+ "width=\"560\" height=\"198\" name=\"videoBanner\" align=\"middle\""
		+ "play=\"true\""
		+ "loop=\"true\""
		+ "quality=\"high\""
		+ "allowScriptAccess=\"sameDomain\""
		+ "type=\"application/x-shockwave-flash\""
		+ "wmode=\"opaque\""
		+ "pluginspage=\"http://www.macromedia.com/go/getflashplayer\">"
		+ "<\/embed>"
		+ "<\/object>";
		document.write(oeTags);
}
function flashIsTooOld(){
   // flash is too old or we can't detect the plugin
		var alternateContent = "<div id=\"bannerVideoMessage\">This content requires the Macromedia Flash Player 8."
		+ "<a href=\"http://www.macromedia.com/go/getflash/\">Get Flash</a></div>";
		document.write(alternateContent);  // insert non-flash content
}