/* From http://www.tomwalsham.com/post.php?id=60 */

function quoted(value) {
	return "\"" + value + "\"";
}

function squirtFlash(source, width, height, name) {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width=' + quoted(width) + ' height=' + quoted(height) + ' id=' + quoted(name) + ' align="middle">');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value=' + quoted(source) + ' /> <!-- this is needed in IE-->');
	document.write('<embed src=' + quoted(source) + ' quality="high" bgcolor="#263463" width=' + quoted(width) + ' height=' + quoted(height) + ' name=' + quoted(name) + ' align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /><!-- this is needed in FF-->');
	document.write('</object>');
}

