function FlashInsert(FlashIDName, FlashFileName, FlashWidth, FlashHeight, DNSSetting, WMODESetting, FlashBGColor, QSetting, FlashAlign)
{
	document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write('CODEBASE="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=8,0,22,0" ');
	document.write(' ID="'+FlashIDName+'" WIDTH="' + FlashWidth + '" HEIGHT="' + FlashHeight + '" ALIGN="'+FlashAlign+'">');
	document.write('<PARAM NAME="movie" VALUE="'+ FlashFileName +'">');
	document.write('<PARAM NAME="quality" VALUE="'+QSetting+'">');
	document.write('<PARAM NAME="bgcolor" VALUE="'+FlashBGColor+'">');
	document.write('<PARAM NAME="wmode" VALUE="'+WMODESetting+'">');
	document.write('<PARAM NAME="allowScriptAccess" VALUE="'+DNSSetting+'">');
	document.write('<EMBED SRC="'+ FlashFileName +'"  NAME="'+FlashIDName+'"');
	document.write(' WIDTH="' + FlashWidth + '" HEIGHT="' + FlashHeight + '" QUALITY="'+QSetting+'" BGCOLOR="'+FlashBGColor+'"');
	document.write(' ALLOWSCRIPTACCESS="'+DNSSetting+'" ALIGN="'+FlashAlign+'" WMODE="'+WMODESetting+'" TYPE="application/x-shockwave-flash" ');
	document.write(' PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" >');
	document.write('</EMBED>');
	document.write('</OBJECT>');
}




// index.aspx
function IndexPage() {
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='100%' height='100%' id='index' align='middle' VIEWASTEXT><param name='allowScriptAccess' value='always' /><param name='WMode' value='opaque'> <param name='movie' value='main.swf' />			<param name='quality' value='high' />			<param name='bgcolor' value='#000000' />			<embed src='main.swf' quality='high' bgcolor='#000000' width='100%' height='100%' name='index' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>");
}




function openLayer(url) { 
	var w, h; 

	var sw=screen.width;
	var sh=screen.height;

	switch (url) {
		//case 'news'	: url = "/sub_news_list.html"; w = 610; h = 380; break;
		//case 'faq'	: url = "/sub_faq_list.html"; w = 610; h = 380; break;
		case 'news'	: url = "/sub_news_list.jsp"; w = 610; h = 380; break;
		case 'faq'	: url = "/sub_faq_list.jsp"; w = 610; h = 380; break;
	}
	
	var tempX = (sw-w)/2;
	var tempY = (sh-h)/2;

	popLayer.style.left = tempX;
		
	// NT 5.0  /  NT 5.1; SV2  / NT 5.2; SV1
	if (navigator.userAgent.indexOf("NT 5.0") > 0) {
		popLayer.style.top = tempY + 10;

		h -= 20;
	}
	else if (navigator.userAgent.indexOf("NT 5.2; SV1") > 0 || navigator.userAgent.indexOf("NT 5.1; SV2") > 0)
		popLayer.style.top = tempY - 20;
	else if (navigator.userAgent.indexOf("NT 5.1") > 0)
		popLayer.style.top = tempY - 10;
	
	// object ¹æ½Ä. Å¬¸¯ÀÌ µÇÁö ¾ÊÀ½		
	//popLayer.innerHTML="<OBJECT name='popObject'  data='"+url+"' style='z-index:20;border:1px;overflow-x:hidden;' TYPE='text/x-scriptlet' width='" + w + "' height='" + h + "' ></OBJECT>";
		
	// iframe ¹æ½Ä. ÇÃ·¡½Ã µÚ·Î ¼û¾î¹ö¸²
		document.getElementById("popLayer").innerHTML = "<iframe name='popObject' id='popObject' frameborder='0' width='" + w + "' height='" + h + "' marginheight='0' marginwidth='0' scrolling='no' src='" + url + "' bgcolor='#000000'></iframe>";

	popLayer.style.display = 'block';

//		document.getElementById("popObject").focus();
}

