/*
  showFlash
  since 2007.08, 2.6G
*/
function showFlash(swf, w, h, fv, log, v, trans){
  var cntver=200709260000;
  var file=swf+"?"+cntver;
  if (v)  file+="&"+v;

  document.write('<object id="swfobj" type="application/x-shockwave-flash" ');
  document.write('data="' + file + '" ');
  document.write('classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
  document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
  document.write('width="' + w + '" height="' + h + '">');

  if (trans)
  document.write('<param name="wmode" value="transparent" />');

  document.write('<param name="movie" value="' + file + '" />');
  document.write('<param name="quality" value="high" />');
  document.write('<param name="autostart" value="true" />');
  document.write('<param name="allowScriptAccess" value="always" />');
  document.write('<param name="FlashVars" value="' + fv + '&cntver=' + cntver+ '&width=' + w + '&height='+ h + '&logged=' + log + '" />');
  document.write('<embed src="' + file + '" ');
  if (trans)
  document.write('wmode=transparent ');
  document.write('quality=high  width="' + w + '" height="' + h + '" allowScriptAccess="always"');
  document.write('name="movie" type="application/x-shockwave-flash" ');
  document.write('pluginspage="http://www.adobe.com/go/getflashplayer_ja" ')
  document.write('FlashVars="' + fv + '&cntver=' + cntver+ '&width=' + w + '&height='+ h + '&logged=' + log + '" /> ');
  document.write('</object>');
}


function showFlashbar(Fwidth,Fheight,Pass) {
  document.write('<object ');
  document.write('type="application/x-shockwave-flash" ');
  document.write('data="' + Pass + '" ');
  document.write('width="' + Fwidth + '" ');
  document.write('height="' + Fheight + '">');
  document.write('<param name="movie" value="' + Pass + '" />');
  document.write('<param name="quality" value="high" />');
  document.write('<param name="autostart" value="true" />');
  document.write('<param name="allowScriptAccess" value="always" />');
  document.write('</object>');
}

function showFlasher(id,swf,width,height,flashVars) {
  document.write('<object id="' + id + '" type="application/x-shockwave-flash" ');
  document.write('data="' + swf + '" ');
  document.write('classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
  document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
  document.write('width="' + width + '" height="' + height + '">');
  document.write('<param name="movie" value="' + swf + '" />');
  document.write('<param name="quality" value="high" />');
  document.write('<param name="autostart" value="true" />');
  document.write('<param name="allowScriptAccess" value="always" />');
  document.write('<param name="FlashVars" value="' + flashVars + '" />');
  document.write('<embed src="' + swf + '" quality=high  width="' + width + '" height="' + height + '" allowScriptAccess="always"');
  document.write('name="movie" type="application/x-shockwave-flash" ');
  document.write('pluginspage="http://www.macromedia.com/go/getflashplayer_ja" FlashVars="' + flashVars + '"> ');
  document.write('</embed> ');
  document.write('</object>');
}

function showFlashTrans(swf, w, h, fv, log, v){
  var cntver=200709260000;
  var file=swf+"?"+cntver;
  if (v)  file+="&"+v;

  document.write('<object id="swfobj" type="application/x-shockwave-flash" ');
  document.write('data="' + file + '" ');
  document.write('classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
  document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
  document.write('width="' + w + '" height="' + h + '">');
  document.write('<param name="movie" value="' + file + '" />');
  document.write('<param name="quality" value="high" />');
  document.write('<param name="autostart" value="true" />');
  document.write('<param name="wmode" value="transparent" />');
  document.write('<param name="allowScriptAccess" value="always" />');
  document.write('<param name="FlashVars" value="' + fv + '&cntver=' + cntver+ '&width=' + w + '&height='+ h + '&logged=' + log + '" />');
  document.write('<embed src="' + file + '" quality=high  width="' + w + '" height="' + h + '" allowScriptAccess="always"');
  document.write('name="movie" type="application/x-shockwave-flash" ');
  document.write('wmode="transparent" ');
  document.write('pluginspage="http://www.adobe.com/go/getflashplayer_ja" ')
  document.write('FlashVars="' + fv + '&cntver=' + cntver+ '&width=' + w + '&height='+ h + '&logged=' + log + '" /> ');
  document.write('</object>');
}

function showFlashWID(id, swf, w, h, fv, log, v){
  var cntver=200709260000;
  var file=swf+"?"+cntver;
  if (v)  file+="&"+v;

  document.write('<object id="' + id + '" type="application/x-shockwave-flash" ');
  document.write('data="' + file + '" ');
  document.write('width="' + w + '" height="' + h + '">');
  document.write('<param name="movie" value="' + file + '" />');
  document.write('<param name="quality" value="high" />');
  document.write('<param name="autostart" value="true" />');
  document.write('<param name="allowScriptAccess" value="always" />');
  document.write('<param name="FlashVars" value="' + fv + '&cntver=' + cntver+ '&width=' + w + '&height='+ h + '&logged=' + log + '" />');
  document.write('</object>');
}
