// s: source url

// d: flash id

// w: source width

// h: source height

// t: wmode ("" for none, transparent, opaque ...)

function mf(s,d,w,h,t){

//return "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='"+w+"' height='"+h+"' id='"+d+"'><object src='"+s+"' quality=high wmode='"+t+"' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash' width='"+w+"' height='"+h+"'></object></object>";

 var size_info;

 if( w == "" && h == ""){

  size_info = "";

 }else{

  size_info = ' width="'+ w +'" height="'+ h +'"';

 }

 document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" '+ size_info +'>');

 document.write('<param name="movie" value="'+ s +'">');

 document.write('<param name="wmode" value="'+ t +'">');

 document.write('<param name="mute" value="0">');

 document.write('<param name="quality" value="high">');

 document.write('<embed src="'+ s +'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" '+ size_info +'></embed></object>');

}



// write document contents

function documentwrite(src){

document.write(src);

}



// assign code innerHTML

function setcode(target, code){

target.innerHTML = code;

}
