/*
$ style/js/InsertSWF.js | 2006/09/08 11:05 $
$ LM: 2007/03/24 13:13 $
*/

function InsertSWF(swf, w, h, t, 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 += '  <embed src="'+ swf +'" quality="best" wmode="transparent" menu="false" width="'+ w +'" height="'+ h +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
  result += '</object>';
}
