//document.domain="cyber.kepco.co.kr";
/* Å¸ÀÌÆ²³×ÀÓ */
document.title = "¢Æ ÇÑÀüÇÁ¶óÀÚ ¢Æ KEPCO PLAZA ¢Æ ¿¹¼ú°ú ¹®È­ÀÇ ¸¸³²";

pub = "/plaza_new/newpl";

home	= pub+"/main.jsp";
//home	= pub+"/images/flash/main.html";
notice	= pub+"/04_etc/notice_list.jsp";
sitemap = pub+"/04_etc/sitemap.jsp";
museum = "http://www.kepco.co.kr/museum/"

intro = pub+"/01_intro/introduction.jsp?new_depth1=1&new_depth2=1";
	intro01 = pub+"/01_intro/introduction.jsp?new_depth1=1&new_depth2=1";
	intro02 = pub+"/01_intro/introduction.jsp?new_depth1=1&new_depth2=2";
	intro03 = pub+"/01_intro/introduction.jsp?new_depth1=1&new_depth2=3";

gall = pub+"/02_gallery/current_exhibition.jsp";
	gall01 = pub+"/02_gallery/current_exhibition.jsp";
	gall02 = pub+"/02_gallery/month_list.jsp";
	gall03 = pub+"/02_gallery/past_list.jsp";
	gall04 = pub+"/02_gallery/exhibition_04.jsp";
	gall05 = pub+"/02_gallery/collection_list.jsp";

culture = pub+"/01_intro/introduction.jsp?new_depth1=3&new_depth2=1";
	culture01 = pub+"/01_intro/introduction.jsp?new_depth1=3&new_depth2=1";
	culture02 = pub+"/01_intro/introduction.jsp?new_depth1=3&new_depth2=2";
	culture03 = pub+"/03_culture/culture_03.jsp";

var mn_url = new Array();
mn_url[0] = new Array();
mn_url[1] = new Array();
mn_url[2] = new Array();
mn_url[3] = new Array();

mn_url[0][0] = home;
mn_url[0][1] = notice;
mn_url[0][2] = gall02;
mn_url[0][3] = intro02;
mn_url[0][4] = gall02;
mn_url[0][5] = museum;
mn_url[0][6] = sitemap;

mn_url[1][0] = intro;
mn_url[1][1] = intro01;
mn_url[1][2] = intro02;
mn_url[1][3] = intro03;

mn_url[2][0] = gall;
mn_url[2][1] = gall01;
mn_url[2][2] = gall02;
mn_url[2][3] = gall03;
mn_url[2][4] = gall04;
mn_url[2][5] = gall05;

mn_url[3][0] = culture;
mn_url[3][1] = culture01;
mn_url[3][2] = culture02;
mn_url[3][3] = culture03;

function go_link(dep1, dep2){
	//if(dep1==0 && dep2==0)	parent.location.href=eval('mn_url['+dep1+']['+dep2+']');
	if(dep1==0 && dep2==0)		location.href=eval('mn_url['+dep1+']['+dep2+']');
	else if(dep1==0 && dep2==5)		window.open(eval('mn_url['+dep1+']['+dep2+']'), "");
	else	location.href=eval('mn_url['+dep1+']['+dep2+']');
}
function go_link_param(dep1, dep2, param){
	if(dep1==0 && dep2==0)		location.href=eval('mn_url['+dep1+']['+dep2+']');
	else if(dep1==0 && dep2==5)		window.open(eval('mn_url['+dep1+']['+dep2+']'), "");
	else	location.href=eval('mn_url['+dep1+']['+dep2+']')+"&"+param;
}	

/* ÇÃ·¡½Ã ÀÚ¹Ù½ºÅ©¸³Æ®-¾×Æ¼ºêXÆÐÄ¡ */
function FlashInsert(FlashIDName, FlashFileName, FlashWidth, FlashHeight, DNSSetting, WMODESetting, FlashBGColor, QSetting, FlashAlign,snum,Fvalue)
{
	document.writeln("<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=8,0,22,0' ");
	document.writeln(' ID="'+FlashIDName+'" WIDTH="' + FlashWidth + '" HEIGHT="' + FlashHeight + '" ALIGN="'+FlashAlign+'">');
	document.writeln("<param name='allowScriptAccess' value='sameDomain' />")
	document.writeln('<param name="movie" value="'+FlashFileName+'?depth1='+depth1+'&depth2='+depth2+'&new_depth1='+new_depth1+'&new_depth2='+new_depth2+'">');
	document.writeln('<param name="quality" VALUE="'+QSetting+'">');
	document.writeln('<param name="bgcolor" VALUE="'+FlashBGColor+'">');
	document.writeln('<param name="wmode" VALUE="'+WMODESetting+'">');
	document.writeln('<param name="flashvars" VALUE="snum='+snum+'"">');
	document.writeln('<param name="allowScriptAccess" VALUE="'+DNSSetting+'">');
	document.writeln('<EMBED SRC="'+ FlashFileName +'"  NAME="'+FlashIDName+'"');
	document.writeln(' WIDTH="' + FlashWidth + '" HEIGHT="' + FlashHeight + '" QUALITY="'+QSetting+'" BGCOLOR="'+FlashBGColor+'"');
	document.writeln(' ALLOWSCRIPTACCESS="'+DNSSetting+'" ALIGN="'+FlashAlign+'" WMODE="'+WMODESetting+'" TYPE="application/x-shockwave-flash" ');
	document.writeln(' PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" snum="'+snum+'">');
	document.writeln('</EMBED>');
	document.writeln('</OBJECT>');
}
// DB¿¬µ¿¾øÀÌ ÅëÇÃ·¡½Ã·Î µÈ ÆäÀÌÁö¿¡¼­¸¸ ¾Æ·¡ ÇÔ¼ö »ç¿ë
function FlashInsertInteg(FlashIDName, FlashFileName, FlashWidth, FlashHeight, DNSSetting, WMODESetting, FlashBGColor, QSetting, FlashAlign,snum,Fvalue)
{
	document.writeln("<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=8,0,22,0' ");
	document.writeln(' ID="'+FlashIDName+'" WIDTH="' + FlashWidth + '" HEIGHT="' + FlashHeight + '" ALIGN="'+FlashAlign+'">');
	document.writeln("<param name='allowScriptAccess' value='sameDomain' />")
	document.writeln('<param name="movie" value="'+FlashFileName+'?depth1='+depth1+'&depth2='+depth2+'&new_depth1='+new_depth1+'&new_depth2='+new_depth2+'&focus1='+focus1+'">');
	document.writeln('<param name="quality" VALUE="'+QSetting+'">');
	document.writeln('<param name="bgcolor" VALUE="'+FlashBGColor+'">');
	document.writeln('<param name="wmode" VALUE="'+WMODESetting+'">');
	document.writeln('<param name="flashvars" VALUE="snum='+snum+'"">');
	document.writeln('<param name="allowScriptAccess" VALUE="'+DNSSetting+'">');
	document.writeln('<EMBED SRC="'+ FlashFileName +'"  NAME="'+FlashIDName+'"');
	document.writeln(' WIDTH="' + FlashWidth + '" HEIGHT="' + FlashHeight + '" QUALITY="'+QSetting+'" BGCOLOR="'+FlashBGColor+'"');
	document.writeln(' ALLOWSCRIPTACCESS="'+DNSSetting+'" ALIGN="'+FlashAlign+'" WMODE="'+WMODESetting+'" TYPE="application/x-shockwave-flash" ');
	document.writeln(' PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" snum="'+snum+'">');
	document.writeln('</EMBED>');
	document.writeln('</OBJECT>');
}
function callWidgetFlash(widgetName,flashParam)
{
	var flashStr = "";
	flashStr+="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' id='widget' width='100%' height='100%' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0'>";
	flashStr+="<param name='movie' value='"+widgetName+".swf' />";
	flashStr+="<param name='quality' value='high' />";
	flashStr+="<param name='bgcolor' value='#ffffff' />";
	flashStr+="<param name='flashvars' value='"+flashParam+"'/>";
	flashStr+="<param name='wmode' value='transparent' />";
	flashStr+="<param name='allowScriptAccess' value='sameDomain' />";
	flashStr+="<embed src='"+widgetName+".swf' quality='high' bgcolor='#ffffff' width='100%' height='100%' name='widget' align='middle' play='true' loop='false' quality='high' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'/>";
	return flashStr;
}
function documentwrite(src){ document.write(src); }


/* ÄÞº¸¹Ú½º */
function combogo(co_value) {	
	if (co_value != "") {
		window.open(co_value, "");			
	}
	return;
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  //eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  //if (restore) selObj.selectedIndex=0;
}


/* ÀüÃ¼ ÆäÀÌÁö ÇÏ´Ü Copyright ¼³Á¤*/
function bottom(){
    document.write ("<table width='980 height='80' border='0' cellpadding='0' cellspacing='0'>");
    document.write ("  <tr>");
    document.write ("    <td width='730' rowspan='2'><img src='"+pub+"/images/common/copyright.gif' border='0' usemap='#BtmMap'></td>");
	document.write ("    <td height='40' align='right'>");
	document.write ("  <select name='family' class='select1' onChange='javascript:combogo(this.value);' style='width:170;'>");
	document.write ("    <option selected>&nbsp;&nbsp;¢Æ&nbsp;&nbsp;ÆÐ¹Ð¸®»çÀÌÆ®&nbsp;&nbsp;¢Æ&nbsp;&nbsp;</option>");
	document.write ("    <option value='http://www.lgart.com'>LG ¾ÆÆ®¼¾ÅÍ</option>");
	document.write ("    <option value='http://www.sejongpac.or.kr'>¼¼Á¾¹®È­È¸°ü </option>");
	document.write ("    <option value='http://www.sac.or.kr'>¿¹¼úÀÇ Àü´ç </option>");
	document.write ("    <option value='http://www.ntok.go.kr/'>µðÁöÅÐ ±¹¸³Áß¾Ó±ØÀå</option>");
	document.write ("    <option value='http://www.chongdong.com/'>Á¤µ¿±ØÀå </option>");
	document.write ("    <option value='http://www.temfhall.co.kr/'>¼­¿ï±³À°¹®È­È¸°ü ´ë±ØÀå </option>");
	document.write ("    <option value='http://www.hyundai-artscenter.co.kr/main.jsp'>Çö´ë¿¹¼ú°ü</option>");
	document.write ("    <option value='http://www.samsungmuseum.org/'>»ï¼º¹Ì¼ú°ü </option>");
	document.write ("    <option value='http://seoulmoa.seoul.go.kr/main.html'>¼­¿ï½Ã¸³¹Ì¼ú°ü </option>");
	document.write ("    <option value='http://www.artsonje.org/'>¾ÆÆ®¼±Àç¼¾ÅÍ </option>");
	document.write ("    <option value='http://www.hoammuseum.org/'>È£¾Ï¹Ì¼ú°ü </option>");
	document.write ("    <option value='http://www.museum.go.kr/'>±¹¸³Áß¾Ó¹Ú¹°°ü </option>");
	document.write ("    <option value='http://www.moca.go.kr/'>±¹¸³¹Î¼Ó¹Ú¹°°ü </option>");
	document.write ("    <option value='http://www.moca.go.kr/'>±¹¸³Çö´ë¹Ì¼ú°ü </option>");
	document.write ("    </select>");
	document.write ("</td>");
	document.write ("  </tr>");
    document.write ("  <tr>");
    document.write ("    <td>&nbsp;</td>");
    document.write ("  </tr>");
	document.write ("  <tr>");
    document.write ("    <td>&nbsp;</td>");
    document.write ("  </tr>");
    document.write ("</table>");
	document.write ("<map name='BtmMap'><area shape='rect' coords='640,29,705,53' href='#' onclick='javascript:go_link(0,6)'>");
}

function createInactiveLayer(){
	var oHtmlDom = document.documentElement || document;
	var tmpWidth = oHtmlDom.scrollWidth;
	var tmpHeight = oHtmlDom.scrollHeight;
		
	var layerInactive = document.createElement("DIV");
	layerInactive.id = "div_inactive";

	with(layerInactive.style){
		position = 'absolute';
		top = '0px';
		left = '0px';
		width = tmpWidth + 'px';
		height = tmpHeight + 'px';
		height = 1024;
		//width =  '100%';
		//height = '100%';
		filter =  'alpha(Opacity=40)';
		opacity = '0.0';
		background = 'black';
		zIndex = '98';
	}
	document.body.appendChild(layerInactive);
}

function fnPopGall(sn){
	createInactiveLayer();	
	var w = 733;
	var h = 501;
	var winX = 0;
	var winY = 0;
	winX = (screen.availWidth - w) * 0.5;
	winY = ((screen.availHeight - h) * 0.5) - 90;
	if(winY>120)	winY = 120;
	divPopGall.style.width = w;
	divPopGall.style.height = h;
	divPopGall.style.left = winX;
	divPopGall.style.top = winY;
	divPopGall.style.display="";
	var url = pub+"/02_gallery/gallery.jsp?sn="+sn;
	//openPopUp(url,"popGall",733,501);
	frPopGall.location.href = url;
}
function closePopGall(){
	document.body.removeChild(document.getElementById("div_inactive"));
	divPopGall.style.display="none";
	frPopGall.location.href=pub+"blank.html";
}

function viewClassDetail(currId){
	var divs = document.getElementsByTagName("div");	
	for(i=0; i<divs.length ; i++){
		if(divs[i].name=="divDetail"){
			//alert(divs[i].id);
			if(divs[i].id == currId){
				//alert(divs[i].id);
				divs[i].style.visibility="visible";
			}else{
				divs[i].style.visibility="hidden";
			}
		}
	}
}