// getFlash("divID", "SWFlocation", "width", "height", "flashBGcolor");
// example:  the following code should work. I haven't tested it, so you'll have to try it.
// make sure the 'ID' attribute of your div has the same name as the one specified in 'getFlash()' function.

/***************************

<html>
<head>
	<title>test flash page</title>
	<script type="text/javascript" src="embedFlash.js" ></script>
	<script type="text/javascript" language="javascript">

		getFlash("swf_div", "images/Banner_Price_v3.swf", "179", "356", "#ffffff");

	</script>
</head>
<body>
	<div id="swf_div">
	</div>
</body>
</html>

***************************/


function getFlash(DivID, SWF, width, height, bgcolor)
{
    var d = document.getElementById(DivID);
    d.innerHTML = 
        '<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 + '"><param name="wmode" value="transparent">' + 
        '<param name="allowScriptAccess" value="always">' + 
        '<param name="bgcolor" value="' + bgcolor + '" />' +
        '<param name="movie" value="' + SWF + '">' + 
        '<param name="quality" value="high"><embed wmode="transparent" src="' + SWF + '" quality="high" ' +
	'pluginspage="http://www.macromedia.com/shockwave/download/' + 
        'index.cgi?P1_Prod_Version=ShockwaveFlash" ' + 'type="application/x-shockwave-flash" width="' 
        + width + '" height="' + height + '" allowScriptAccess="always"></embed></object>';
}