//
// Output flash object to get past problem of 'click to activate' flash...
// or the double click problem.
//
// Takes following parameters:
//
// objWidth 	= width						
// objHeight 	= height					
// objPath 		= path to file
// objTitle 	= title of flash 	
// objBgColor = background colour
//

function writeFlashObject(objWidth, objHeight, objPath, objTitle, objBgColor)
{
	
	document.write('<object\n');
	document.write('type="application/x-shockwave-flash"\n');
	document.write('data="' + objPath + '"\n');	
	document.write('width="' + objWidth + '"\n');
	document.write('height="' + objHeight + '"\n');
	document.write('title="' + objTitle + '">\n');
	document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
	document.write('<param name="movie" value="' + objPath + '" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<param name="bgcolor" value="' + objBgColor + ';" />\n');
	document.write('<param name="menu" value="false" />\n');
	document.write('<param name="wmode" value="transparent" />\n');
	document.write('Your browser does not support <a href="http://www.macromedia.com/shockwave/download/download.cgi" title="Download the flash player" target="_blank">flash</a> or you currently have this technology disabled.');
	document.write('</object>\n');
	
}