function ShowFlash(Width, Height, Src, Quality, FlashVars, wMode) {

  var flashClassID = "D27CDB6E-AE6D-11cf-96B8-444553540000";
  var iePlugIn     = "//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0";
  var niePlugIn    = "//www.macromedia.com/go/getflashplayer";

	var now    = new Date();
	var year   = now.getFullYear();
	var month  = now.getMonth();
	var day    = now.getDay();
	var hour   = now.getHours();
	var min    = now.getMinutes();
	var sec    = now.getSeconds();
	var Target = Src;// + '?' + year + month + day + hour + day + min + sec;


	if( typeof(Quality) == "undefined" ) {
		Quality = "high";
	}

	if( typeof(FlashVars) == "undefined" ) {
		FlashVars = "";
	}

	if( typeof(wMode) == "undefined" ) {
		wMode = "opaque";
	}

	document.write(
			"<object classid='clsid:"+flashClassID+"' width='" + Width + "' height='" + Height + "' codebase='"+iePlugIn+"'>"
		+  "<param name='movie' value='" + Target + "'>"
		+  "<param name='quality' value='" + Quality + "'>"
		+  "<param name='menu' value='false'>"
		+  "<param name='allowFullScreen' value='true'>"
		+  "<param name='wmode' value='" + wMode + "'>"
	);

	if( FlashVars != "" ) {
		document.write(
			"<param name='FlashVars' value='" + FlashVars + "'>"
		);
	}

	document.write(
		"<embed src='" + Target + "' quality='" + Height + "' width='" + Width + "' height='" + Height + "' menu='false' wmode='" + wMode + "' FlashVars='" + FlashVars + "' pluginspage='"+niePlugIn+"' type='application/x-shockwave-flash' allowFullScreen='true'></embed></object>"
	);

}


// ウィンドウを揺らす
itv = 50; // ウィンドウを揺らす間隔(ミリ秒単位)
cnt = 0;
// ウィンドウを揺らすパターン。x座標・y座標
x = new Array( 12,-20, 8,-16, 20, -4, 16, -8, 4,-12,0);
y = new Array(-20, 8,-16, 12,-12, 16, -4, 20, -8, 4,0);
function quakeWindow() {
  if(x[cnt] != 0) moveBy(x[cnt],y[cnt]);
  cnt++;
  if(cnt < x.length) setTimeout("quakeWindow()",itv);
  else cnt = 0;
}


// ポップアップ
function windowOpen(URL){
window.open(URL,'subWindow',
'scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,width=810,height=700')
}
