
// Function to dynamically write out the flash code to work around the IE flash "white box" issue.

function flashBanner(name, width, height) {
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + width + '" height="' + height + '" id="' + name + '" align="middle">');
    document.write('    <param name="allowScriptAccess" value="sameDomain" />');
    document.write('    <param name="movie" value="swf/' + name + '.swf" />');
    document.write('    <param name="quality" value="high" />');
    document.write('    <param name="wmode" value="transparent" />');
    document.write('    <embed src="swf/' + name + '.swf" quality="high" width="' + width + '" height="' + height + '" name="' + name + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" wmode="transparent" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" />');
    document.write('    </embed>');
    document.write('</object>');
}