/*
$ style/js/InsertSWF.js | 2006/10/04 08:53 $
$ LM: 2006/10/04 08:55 $
*/

function InsertSWF(swf, w, h, t, bg, v) {
  this.Insert = function Insert() {
    document.write(result);
  }

  var result = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+ v +',0,0,0" width="'+ w +'" height="'+ h +'" title="'+ t +'">';
  result += '  <param name="allowScriptAccess" value="sameDomain" />';
  result += '  <param name="movie" value="'+ swf +'" />';
  result += '  <param name="quality" value="best" />';
  result += '  <param name="scale" value="exactfit" />';
  result += '  <param name="wmode" value="transparent" />';
  result += '  <param name="bgcolor" value="'+ bg +'" />';
  result += '  <embed src="'+ swf +'" menu="false" quality="best" width="'+ w +'" height="'+ h +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
  result += '</object>';
}
