function imrage(src,w,h,bg,fps,wmode,cnf,cache,debug){
  var def_w = "300";
  var def_h = "307";
  var def_bg = "#000000";
  var def_cnf = "./photo/imrage.gif";
  var def_swf = "./photo/imrage.swf";
  var def_cache = false;
  var def_debug = false;
  var def_wmode = "t";
  var def_fps = 12;
  if(w     == undefined || '' + w     == '') w     = def_w;
  if(h     == undefined || '' + h     == '') h     = def_h;
  if(bg    == undefined || '' + bg    == '') bg    = def_bg;
  if(cnf   == undefined || '' + cnf   == '') cnf   = def_cnf;
  if(cache == undefined || '' + cache == '') cache = def_cache;
  if(debug == undefined || '' + debug == '') debug = def_debug;
  if(wmode == undefined || '' + wmode == '') wmode = def_wmode;
  if(fps   == undefined || '' + fps   == '') fps   = def_fps;

  var swf = def_swf;

  var values = "src=" + escape("" + src);
  values += "&cnf=" + escape("" + cnf);
  values += "&fps=" + escape("" + fps);

  if(cache) values += "&cache=on";
  if(debug) values += "&debug=on";

  if(wmode.match(/^t/i)){
    wmode = "transparent";
  }else{
    wmode = "window";
  }

  var tag= "";
  tag += "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'\n";
  tag += "    codebase='http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab'\n";
  tag += "    width='"+w+"'\n";
  tag += "    height='"+h+"' >\n";
  tag += "    <param name='movie' value='"+swf+"' />\n";
  tag += "    <param name='bgcolor' value='"+bg+"' />\n";
  tag += "    <param name='flashVars' value='"+values+"'>\n";
  tag += "    <param name='quality' value='high' />\n";
  tag += "    <param name='wmode' value='"+wmode+"' />\n";
  tag += "    <param name='allowScriptAccess' value='always' />\n";
  tag += "    <embed pluginspage='http://www.adobe.com/go/getflashplayer'\n";
  tag += "        src='"+swf+"'\n";
  tag += "        width='"+w+"'\n";
  tag += "        height='"+h+"'\n";
  tag += "        bgcolor='"+bg+"'\n";
  tag += "        flashVars='"+values+"'\n";
  tag += "        play='true'\n";
  tag += "        loop='false'\n";
  tag += "        quality='high'\n";
  tag += "        wmode='"+wmode+"'\n";
  tag += "        allowScriptAccess='always'\n";
  tag += "        type='application/x-shockwave-flash' >\n";
  tag += "    </embed>\n";
  tag += "</object>\n";
  document.write(tag);
}

