// writeFlash.js
//alert("rootURL: " + rootURL + "" + flashPath + "" + flashFile+ "\nwidth: " + width + "\nheight: " + height);
// Insert content into page
if(isRequiredFlashVersionInstalled) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http' + isSSL + '://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="' + width + '" HEIGHT="' + height + '" id="' + rootURL + flashPath + flashFile + '" ALIGN="">');
		
	document.write('<PARAM NAME=movie VALUE="' + rootURL + flashPath + flashFile + '"> <PARAM NAME=flashVars VALUE="' + flashVars + '"> <PARAM NAME=quality VALUE=best> <PARAM NAME=scale VALUE=exactfit>  <PARAM NAME=bgcolor VALUE=#' + bgcolour + '>');
	
	document.write('<EMBED src="' + rootURL + flashPath + flashFile + '" quality=best scale=exactfit bgcolor=#' + bgcolour + '  WIDTH="' + width  + '" HEIGHT="' + height + '" flashVars="' + flashVars + '" NAME="FlashFile" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http' + isSSL + '://www.macromedia.com/go/getflashplayer" wmode="transparent"></EMBED>');
	
	document.write('</OBJECT>');
	
} else {	// flash  version is too old or undetectable
	document.write(nonFlashHTML);
}