/** 表示中 */
var current_frame = null;

/**
 *	表示
 */
function show_iframe( frame_id, src, width, height ) {
	current_frame = frame_id;

	//背景透明度
	opacity_popup_base( 0.8 );
	bgcolor_popup_base( "#000000" );

	//メニュー非表示トリガーの設定
	func_popup_base( "onfocus", "hide_iframe" );
	func_popup_base( "onclick", "hide_iframe" );

	//表示位置設定
	var window_height = getWindowHeight();
	var client_width = /* window.innerWidth || */ document.body.clientWidth;

	var frame_top = getScrollTop();
	var frame_left = ( ( client_width / 2 ) - ( width / 2 ) );

	frame_top += (window_height / 10);

	//表示
	display_popup( frame_id, "block", frame_top, frame_left );

	//表示HTML
	var div = document.getElementById( frame_id )
	div.firstChild.src = src;
}

/**
 *
 */
function hide_iframe() {
	display_popup( current_frame, "none" );
}

/**
 *	閉じる
 *		IFRAMEから呼ばれる
 */
function hide_iframe_parent() {
	parent.hide_iframe();
}

