// writeFlash.js

// 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=4,0,2,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('<PARAM NAME=movie VALUE="' + rootURL + flashPath + flashFile + '"> <PARAM NAME=quality VALUE=high>' );
	
	document.write('<PARAM NAME="wMode" VALUE="Transparent">');  //vmode
	 
	document.write('<EMBED src="' + rootURL + flashPath + flashFile + '" quality=best scale=exactfit bgcolor=#' + bgcolour + '  WIDTH="' + width  + '" HEIGHT="' + height + '"flashVars="' + flashVars + '" NAME="FlashFile" wMode="Transparent" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http' + isSSL + '://www.macromedia.com/go/getflashplayer"></EMBED>');

//document.write('<EMBED src="' + rootURL + flashPath + flashFile + '" quality=high </EMBED>');
	
	document.write('</OBJECT>');
	
} else {	// flash  version is too old or undetectable
	document.write(nonFlashHTML);
}
 
