function writeFlash( swf , width , height )
{
	var htm = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'"
	        + "	width   = " + width
	        + "	height  = " + height + ">"
	        + "	<param  name    = menu value=false>"
	        + "	<param  name    = movie value=" + swf + ">"
	        + "	<param  name    = quality value=high>"
	        + "	<param  name    = wmode value=transparent>"
	        + "	<embed  src     = " + swf
	        + "		quality = 'high'"
	        + "		width   = " + width
	        + "		height  = " + height
	        + "		wmode   = 'transparent'"
	        + "		type    = 'application/x-shockwave-flash'>"
	        + "	</embed>"
	        + "</object>";

	document.write(htm);
}

function ShowIFrame(type, cd1) {
	var CenterMainFlashFrame = document.getElementById("CenterMainFlash");
	if (CenterMainFlashFrame) {
		CenterMainFlashFrame.style.zIndex = 100;
	}

	var YosikiFlash = document.getElementById("YosikiFlash");
	if (YosikiFlash) {
		YosikiFlash.style.zIndex = 110;
	}

	var C2Frame = document.getElementById("YosikiCategory2Frame");
	if (C2Frame) {
		C2Frame.style.display    = "block";
		C2Frame.style.visibility = "visible";
		C2Frame.style.zIndex = 120;
	}
}

function ChangeIFrame(type, cd1) {
	var C2Frame = document.getElementById("YosikiCategory2Frame");
	if (C2Frame) {
		C2Frame.src = '/portal/stdfunc/yosiki/fmn1.aspx?cd1=' + cd1;
	}
}

function HideIFrame(type) {
	var C2Frame = document.getElementById("YosikiCategory2Frame");
	if (C2Frame) {
		C2Frame.src = '';
		C2Frame.style.display    = "none";
		C2Frame.style.visibility = "hidden";
		C2Frame.style.zIndex = 100;
	}
	var YosikiFlash = document.getElementById("YosikiFlash");
	if (YosikiFlash) {
		YosikiFlash.style.zIndex = 110;
	}

	var CenterMainFlashFrame = document.getElementById("CenterMainFlash");
	if (CenterMainFlashFrame) {
		CenterMainFlashFrame.style.zIndex = 120;
	}
}

// Flash からのコールバック関数
function ExpandCategory2(type, cd1){ ShowIFrame(type, cd1); }
function ShowCategory2(type, cd1){ ChangeIFrame(type, cd1); }
function HideCategory2(type){ HideIFrame(type); }


