// Deploy a flash movie OR alternative HTML
function DeployFlashWindow(flashMovieURL, requiredFlashVersion, width, height, noFlashHTML) {
	var ShowFlash=false;

	//alert(flashinstalled + '.' + installedFlashversion + '.' + requiredFlashVersion);
	if (flashinstalled == 1){
		if (installedFlashversion>=requiredFlashVersion) {
			ShowFlash=true;
		}
	}
	document.open();
	
	if (ShowFlash==true) {
		document.write(' <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="' + width + '" height="' + height + '"> ');
		document.write(' <param name="movie" value="' + flashMovieURL + '"> ');
		document.write(' <param name="wmode" value="Transparent"> ');
		document.write(' <param name="quality" value="high"> ');
		document.write(' <embed src="' + flashMovieURL + '" quality="high" wmode="Transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed>');
		document.write('</object>');
	} else {
		document.write(noFlashHTML);
		document.close();
	}
}