//¸µÅ©¿ë ÇÔ¼ö 
function GoMenu(name) {    

    if (eval(name) == "") {
        alert("¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù.");
        return;    
    }
     else 
    {
        document.location.href = eval(name);
    }
}

//¼­ºê ÇÃ·¡½Ã ·Î°í Å¬¸¯½Ã
function home() 
	{ 
	location.href = "/index.jsp";  //ÀÎµ¦½ºÆäÀÌÁö
}


//ÇÃ·¡½Ã È°¼ºÈ­ ÇÔ¼ö Á¤ÀÇ (Áö¿ìÁö ¸¶¼¼¿ä)
var strTopDepth1 ="";
var strTopDepth2  ="";
var strTopDepth3 ="";
var strLeftFlashName= "";
var strLeftDepth1 = "";
var strLeftDepth2 = "";
var strLeftDepth3 = "";
var strLeftFlashwidth ="";
var strLeftFlashHeight ="";

//GNB ¸ÞÀÎ TOP¸Þ´º ÇÃ·¡½Ã¿ë È°¼ºÈ­ ¸µÅ©°ª ÇÒ´ç + È°¼ºÈ­°ª¿¡ µû¸¥ ¹è°æ ¹Ù²Ù±â

function TopGNB(dp1,dp2,dp3) {
	strTopDepth1 = dp1;
	strTopDepth2 = dp2;
	strTopDepth3 = dp3;
	 
	 /*
	for(i=1;i<=13;i++)
	{
		if(dp1 == i) { 
			document.body.style.backgroundImage="url(/asset/images/sub_bg"+i+".jpg)"; 
			document.body.style.backgroundPosition='top';
			document.body.style.backgroundRepeat= 'repeat-x'; 
		} 
	}
	*/
} 


//LNB ¸ÞÀÎ LEFT ¸Þ´º ÇÃ·¡½Ã¿ë È°¼ºÈ­ ¸µÅ©°ª ÇÒ´ç
function LeftNLB(lpname,p1,p2,p3) {
	strLeftFlashName = lpname;
	strLeftDepth1 = p1;
	strLeftDepth2 = p2;
	strLeftDepth3 = p3;
	
	if(lpname == "lnb_about.swf") {
		strLeftFlashwidth = 215;
		strLeftFlashHeight = 225;
	}
	else if(lpname == "lnb_event.swf") {
		strLeftFlashwidth = 215;
		strLeftFlashHeight = 216;
	}
	else if(lpname == "lnb_member.swf") {
		strLeftFlashwidth = 215;
		strLeftFlashHeight = 186;
	}
	else if(lpname == "lnb_mypage.swf") {
		strLeftFlashwidth = 215;
		strLeftFlashHeight = 308;
	}
	else if(lpname == "lnb_shopping.swf") {
		strLeftFlashwidth = 215;
		strLeftFlashHeight = 108;
	}
	else if(lpname == "lnb_siteguide.swf") {
		strLeftFlashwidth = 215;
		strLeftFlashHeight = 268;
	}
	else if(lpname == "lnb_studybook.swf") {
		strLeftFlashwidth = 215;
		strLeftFlashHeight = 356;
	}
	else if(lpname == "lnb_textbook.swf") {
		strLeftFlashwidth = 215;
		strLeftFlashHeight = 235;
	}
	 else if(lpname == "lnb_sitemap.swf") {
		strLeftFlashwidth = 215;
		strLeftFlashHeight = 108;
	}  else if(lpname == "lnb_exam.swf") {
		strLeftFlashwidth = 215;
		strLeftFlashHeight = 270;
	}
}


//ÇÃ·¡½Ã È°¼ºÈ­ ¸µÅ©¿ë 
function menu(dep1,dep2,dep3) {
	 
 	if(dep1 =="1" && dep2 == "0" && dep3 =="0") url="/designer/skin/sub_01/index.jsp?menu_belonged=1" //
	if(dep1 =="1" && dep2 == "1" && dep3 =="0") url="/designer/skin/sub_01/sub01.jsp?menu_belonged=1&menu_code=1"; //
	if(dep1 =="1" && dep2 == "2" && dep3 =="0") url="/designer/skin/sub_01/sub02.jsp?menu_belonged=1&menu_code=2"; //
	if(dep1 =="1" && dep2 == "3" && dep3 =="0") url="/designer/skin/sub_01/sub03.jsp?menu_belonged=1&menu_code=3"; //
	if(dep1 =="1" && dep2 == "4" && dep3 =="0") url="/main_notice/list.jsp?menu_belonged=1&menu_code=4"; //
	
	if(dep1 =="2" && dep2 == "0" && dep3 =="0") url="/function_menu_detail.jsp?menu_belonged=0"; //
	if(dep1 =="2" && dep2 == "1" && dep3 =="0") url="/create/index.jsp?menu_belonged=0&menu_code=4&function_code=2"; //
	if(dep1 =="2" && dep2 == "1" && dep3 =="1") url="/meta/base/main.jsp?menu_belonged=0&menu_code=4&function_code=1&high_depth=0&clas_div_type=3&lvl1_type=1&fixed_data_type_depth=1"; //
	if(dep1 =="2" && dep2 == "1" && dep3 =="2") url="/create/index.jsp?menu_belonged=0&menu_code=4&function_code=2"; //
	if(dep1 =="2" && dep2 == "1" && dep3 =="3") url="javascript:check()"; //
	if(dep1 =="2" && dep2 == "1" && dep3 =="4") url="javascript:loadopen();"; //
	if(dep1 =="2" && dep2 == "1" && dep3 =="5") window.open('/designer/skin/sub_02/sub01_pop_help.jsp','popup','location=no,directories=no,resizable=no,status=no,toolbar=no,menubar=no, width=682,height=600,scrollbars=yes'); //
	if(dep1 =="2" && dep2 == "2" && dep3 =="0") url="/function_menu.jsp?menu_belonged=0&menu_code=31&receipt_code=&function_code=&grade_code=&user_clas=1&search_field=&inner_keyword=&current_page="; //
	if(dep1 =="2" && dep2 == "2" && dep3 =="1") url="/notice/list.jsp?menu_belonged=0&menu_code=31&receipt_code=&function_code=101&grade_code=&user_clas=1&search_field=&inner_keyword=&current_page=1"; //
	if(dep1 =="2" && dep2 == "2" && dep3 =="2") url="/function_menu.jsp?menu_belonged=0&menu_code=322"; //
	if(dep1 =="2" && dep2 == "2" && dep3 =="3") url="/function_menu.jsp?menu_belonged=0&menu_code=341"; //
	if(dep1 =="2" && dep2 == "2" && dep3 =="4") url="/function_menu.jsp?menu_belonged=0&menu_code=342"; //
	if(dep1 =="2" && dep2 == "2" && dep3 =="5") url="/function_menu.jsp?menu_belonged=0&menu_code=343"; //
	if(dep1 =="2" && dep2 == "2" && dep3 =="6") url="/function_menu.jsp?menu_belonged=0&menu_code=344"; //
	if(dep1 =="2" && dep2 == "2" && dep3 =="7") url="/link_page/teach_comm.jsp?menu_belonged=0&menu_code=31"; //
	if(dep1 =="2" && dep2 == "3" && dep3 =="0") url="/function_menu.jsp?menu_belonged=0&menu_code=1&receipt_code=&function_code=&grade_code=&user_clas=1&search_field=&inner_keyword=&current_page="; //
	if(dep1 =="2" && dep2 == "3" && dep3 =="1") url="/dataroom/list.jsp?menu_belonged=0&menu_code=1&receipt_code=&function_code=243&grade_code=&user_clas=1&search_field=&inner_keyword=&current_page=1"; //
	if(dep1 =="2" && dep2 == "3" && dep3 =="2") url="/dataroom/list.jsp?menu_belonged=0&menu_code=1&receipt_code=&function_code=244&grade_code=&user_clas=1&search_field=&inner_keyword=&current_page=1"; //
	if(dep1 =="2" && dep2 == "3" && dep3 =="3") url="/dataroom/list.jsp?menu_belonged=0&menu_code=1&receipt_code=&function_code=245&grade_code=&user_clas=1&search_field=&inner_keyword=&current_page=1"; //
	if(dep1 =="2" && dep2 == "3" && dep3 =="4") url="/dataroom/list.jsp?menu_belonged=0&menu_code=1&receipt_code=&function_code=483&grade_code=&user_clas=1&search_field=&inner_keyword=&current_page=1"; //
	if(dep1 =="2" && dep2 == "3" && dep3 =="5") url="/dataroom/list.jsp?menu_belonged=0&menu_code=1&receipt_code=&function_code=246&grade_code=&user_clas=1&search_field=&inner_keyword=&current_page=1"; //
	if(dep1 =="2" && dep2 == "4" && dep3 =="0") url="/function_menu.jsp?menu_belonged=0&menu_code=9&receipt_code=&function_code=&grade_code=&user_clas=1&search_field=&inner_keyword=&current_page="; //
	if(dep1 =="2" && dep2 == "4" && dep3 =="1") url="/notice/list.jsp?menu_belonged=0&menu_code=9&receipt_code=&function_code=44&grade_code=&user_clas=1&search_field=&inner_keyword=&current_page=1"; //
	if(dep1 =="2" && dep2 == "4" && dep3 =="2") url="/billboard/list.jsp?menu_belonged=0&menu_code=9&receipt_code=&function_code=1069&grade_code=&user_clas=1&search_field=&inner_keyword=&current_page=1"; //
	if(dep1 =="2" && dep2 == "4" && dep3 =="3") url="/dataroom/list.jsp?menu_belonged=0&menu_code=9&receipt_code=&function_code=46&grade_code=&user_clas=1&search_field=&inner_keyword=&current_page=1"; //
	if(dep1 =="2" && dep2 == "4" && dep3 =="4") url="/dataroom/list.jsp?menu_belonged=0&menu_code=9&receipt_code=&function_code=47&grade_code=&user_clas=1&search_field=&inner_keyword=&current_page=1"; //
	if(dep1 =="2" && dep2 == "4" && dep3 =="5") window.open('http://school.kerinet.re.kr/multi_data/es/index.html'); //
	if(dep1 =="2" && dep2 == "5" && dep3 =="0") url="/function_menu.jsp?menu_belonged=0&menu_code=81&receipt_code=&function_code=&grade_code=&user_clas=1&search_field=&inner_keyword=&current_page=;" //
	if(dep1 =="2" && dep2 == "6" && dep3 =="0") url="/multi/list.jsp?menu_belonged=0&menu_code=0&function_code=1" //

//	if(dep1 =="3" && dep2 == "0" && dep3 =="0") url="/designer/skin/sub_03/index.jsp?menu_belonged=4"; //
	if(dep1 =="3" && dep2 == "0" && dep3 =="0") url="/search_new/search_all_new.jsp?menu_belonged=4"; //
	if(dep1 =="3" && dep2 == "1" && dep3 =="0") url="/search070302/search.jsp?menu_belonged=4&menu_code=121&high_depth=0&clas_div_type=3&fixed_data_type_depth=1"; //
	if(dep1 =="3" && dep2 == "2" && dep3 =="0") url="/meta/base/main.jsp?menu_belonged=4&menu_code=122&high_depth=0&clas_div_type=3&lvl1_type=1&fixed_data_type_depth=1"; //
	if(dep1 =="3" && dep2 == "3" && dep3 =="0") url="/meta/base/list.jsp?menu_belonged=4&menu_code=123&high_depth=0&clas_div_type=6&fixed_data_type_depth=2&lvl1_type=2&lvl2_type=3"; //
	if(dep1 =="3" && dep2 == "4" && dep3 =="0") url="/meta/base/list.jsp?menu_belonged=4&menu_code=124&high_depth=0&clas_div_type=6&fixed_data_type_depth=2&lvl1_type=2&lvl2_type=2"; //
	if(dep1 =="3" && dep2 == "5" && dep3 =="0") url="/meta/base/list.jsp?menu_belonged=4&menu_code=125&high_depth=0&clas_div_type=6&fixed_data_type_depth=2&lvl1_type=5&lvl2_type=2"; //
	if(dep1 =="3" && dep2 == "6" && dep3 =="0") url="/meta/base/list.jsp?menu_belonged=4&menu_code=126&high_depth=0&clas_div_type=6&fixed_data_type_depth=2&lvl1_type=5&lvl2_type=1"; //
	if(dep1 =="3" && dep2 == "7" && dep3 =="0") url="/meta/base/list.jsp?menu_belonged=4&menu_code=127&high_depth=0&clas_div_type=6&fixed_data_type_depth=1&lvl1_type=6"; //
	if(dep1 =="3" && dep2 == "8" && dep3 =="0") url="/meta/base/list.jsp?menu_belonged=4&menu_code=128&high_depth=0&clas_div_type=6&fixed_data_type_depth=1&lvl1_type=7&level1="; //
	//if(dep1 =="3" && dep2 == "9" && dep3 =="0") window.open('http://mi.edunet4u.net/prosw/index.jsp'); //
	if(dep1 =="3" && dep2 == "9" && dep3 =="0") window.open('http://school.kerinet.re.kr/teach/'); //
	
	
	if(dep1 =="4" && dep2 == "0" && dep3 =="0") url="/designer/skin/sub_04/index.jsp?menu_belonged=5"; //
	if(dep1 =="4" && dep2 == "1" && dep3 =="0") url="/function_menu.jsp?menu_belonged=5&menu_code=222&receipt_code=&function_code=&grade_code=&user_clas=1&search_field=&inner_keyword=&current_page="; //
	if(dep1 =="4" && dep2 == "1" && dep3 =="1") url="/notice/list.jsp?menu_belonged=5&menu_code=222&receipt_code=&function_code=521&grade_code=&user_clas=1&search_field=&inner_keyword=&current_page=1"; //
	if(dep1 =="4" && dep2 == "1" && dep3 =="2") url="/billboard/list.jsp?menu_belonged=5&menu_code=222&receipt_code=&function_code=524&grade_code=&user_clas=1&search_field=&inner_keyword=&current_page=1"; //
	if(dep1 =="4" && dep2 == "1" && dep3 =="3") url="/dataroom/list.jsp?menu_belonged=5&menu_code=222&receipt_code=&function_code=525&grade_code=&user_clas=1&search_field=&inner_keyword=&current_page=1"; //
	if(dep1 =="4" && dep2 == "1" && dep3 =="4") url="/dataroom/list.jsp?menu_belonged=5&menu_code=222&receipt_code=&function_code=963&grade_code=&user_clas=1&search_field=&inner_keyword=&current_page=1"; //
	//if(dep1 =="4" && dep2 == "1" && dep3 =="0") window.open('http://library.kerinet.re.kr/default.php'); //
	if(dep1 =="4" && dep2 == "2" && dep3 =="0") url="/function_menu.jsp?menu_belonged=5&menu_code=101&receipt_code=&function_code=&grade_code=&user_clas=1&search_field=&inner_keyword=&current_page="; //
	if(dep1 =="4" && dep2 == "2" && dep3 =="1") url="/notice/list.jsp?menu_belonged=5&menu_code=101&receipt_code=&function_code=348&grade_code=&user_clas=1&search_field=&inner_keyword=&current_page=1"; //
	if(dep1 =="4" && dep2 == "2" && dep3 =="2") url="/billboard/list.jsp?menu_belonged=5&menu_code=101&receipt_code=&function_code=349&grade_code=&user_clas=1&search_field=&inner_keyword=&current_page=1"; //
	//if(dep1 =="4" && dep2 == "3" && dep3 =="0") url="/link_page/seondo_school.jsp?menu_belonged=5&menu_code=131&function_code=0"; //
	if(dep1 =="4" && dep2 == "3" && dep3 =="0") url="/function_menu.jsp?menu_belonged=5&menu_code=665"; //
	if(dep1 =="4" && dep2 == "3" && dep3 =="1") url="/func/cate_billboard/list.jsp?search_field=&inner_keyword=&current_page=1&menu_belonged=5&menu_code=665&receipt_code=&function_code=1466&cate_code=&grade_code=&data_no="; //
	if(dep1 =="4" && dep2 == "3" && dep3 =="2") url="/func/cate_billboard/list.jsp?search_field=&inner_keyword=&current_page=1&menu_belonged=5&menu_code=665&cate_code=0&grade_code=&function_code=1467&use_tag=0&receipt_code=&data_no=&file_no=&author_name=&level1=0&level2=0&level3=0&level4=0&level5=0&level6=0&level7=0&level8=0&level9=0"; //
	if(dep1 =="4" && dep2 == "3" && dep3 =="3") url="/func/cate_billboard/list.jsp?search_field=&inner_keyword=&current_page=1&menu_belonged=5&menu_code=665&cate_code=0&grade_code=&function_code=1468&use_tag=0&receipt_code=&data_no=&file_no=&author_name=&level1=0&level2=0&level3=0&level4=0&level5=0&level6=0&level7=0&level8=0&level9=0"; //
	if(dep1 =="4" && dep2 == "3" && dep3 =="4") url="/func/cate_billboard/list.jsp?search_field=&inner_keyword=&current_page=1&menu_belonged=5&menu_code=665&cate_code=0&grade_code=&function_code=1469&use_tag=0&receipt_code=&data_no=&file_no=&author_name=&level1=0&level2=0&level3=0&level4=0&level5=0&level6=0&level7=0&level8=0&level9=0"; //
	if(dep1 =="4" && dep2 == "3" && dep3 =="5") url="/func/cate_billboard/list.jsp?search_field=&inner_keyword=&current_page=1&menu_belonged=5&menu_code=665&cate_code=0&grade_code=&function_code=1470&use_tag=0&receipt_code=&data_no=&file_no=&author_name=&level1=0&level2=0&level3=0&level4=0&level5=0&level6=0&level7=0&level8=0&level9=0"; //
	if(dep1 =="4" && dep2 == "4" && dep3 =="0") url="/function_menu.jsp?menu_belonged=5&menu_code=666&receipt_code=&function_code=&grade_code=&user_clas=1&search_field=&inner_keyword=&current_page="; //
	if(dep1 =="4" && dep2 == "4" && dep3 =="1") url="/func/cate_billboard/list.jsp?search_field=&inner_keyword=&current_page=1&menu_belonged=5&menu_code=666&cate_code=0&grade_code=&function_code=1471&use_tag=0&receipt_code=&data_no=&file_no=&author_name=&level1=0&level2=0&level3=0&level4=0&level5=0&level6=0&level7=0&level8=0&level9=0"; //
	if(dep1 =="4" && dep2 == "4" && dep3 =="2") url="/func/cate_billboard/list.jsp?search_field=&inner_keyword=&current_page=1&menu_belonged=5&menu_code=666&cate_code=0&grade_code=&function_code=1472&use_tag=0&receipt_code=&data_no=&file_no=&author_name=&level1=0&level2=0&level3=0&level4=0&level5=0&level6=0&level7=0&level8=0&level9=0"; //
	if(dep1 =="4" && dep2 == "4" && dep3 =="3") url="/func/cate_billboard/list.jsp?search_field=&inner_keyword=&current_page=1&menu_belonged=5&menu_code=666&cate_code=0&grade_code=&function_code=1473&use_tag=0&receipt_code=&data_no=&file_no=&author_name=&level1=0&level2=0&level3=0&level4=0&level5=0&level6=0&level7=0&level8=0&level9=0"; //
	if(dep1 =="4" && dep2 == "4" && dep3 =="4") url="/func/cate_billboard/list.jsp?search_field=&inner_keyword=&current_page=1&menu_belonged=5&menu_code=666&cate_code=0&grade_code=&function_code=1474&use_tag=0&receipt_code=&data_no=&file_no=&author_name=&level1=0&level2=0&level3=0&level4=0&level5=0&level6=0&level7=0&level8=0&level9=0"; //
	if(dep1 =="4" && dep2 == "4" && dep3 =="5") url="/func/cate_billboard/list.jsp?search_field=&inner_keyword=&current_page=1&menu_belonged=5&menu_code=666&cate_code=0&grade_code=&function_code=1475&use_tag=0&receipt_code=&data_no=&file_no=&author_name=&level1=0&level2=0&level3=0&level4=0&level5=0&level6=0&level7=0&level8=0&level9=0"; //

	if(dep1 =="5" && dep2 == "0" && dep3 =="0") window.open('http://www.goedu.kr/teams4epb/'); //
	if(dep1 =="5" && dep2 == "1" && dep3 =="0") window.open('http://www.goedu.kr/teams4epb/'); //
//	if(dep1 =="5" && dep2 == "2" && dep3 =="0") window.open('http://jinro.kerinet.re.kr'); //
//	if(dep1 =="5" && dep2 == "3" && dep3 =="0") window.open('http://www.ggetv.net'); //
//	if(dep1 =="5" && dep2 == "4" && dep3 =="0") url="/function_menu.jsp?menu_belonged=0&menu_code=81&receipt_code=&function_code=&grade_code=&user_clas=1&search_field=&inner_keyword=&current_page=;"; //
//	if(dep1 =="5" && dep2 == "5" && dep3 =="0") window.open('http://edu7.ken.go.kr'); //
//	if(dep1 =="5" && dep2 == "6" && dep3 =="0") window.open('http://cge.ken.go.kr'); //
//	if(dep1 =="5" && dep2 == "7" && dep3 =="0") window.open('http://onestop.ken.go.kr'); //
//	if(dep1 =="5" && dep2 == "8" && dep3 =="0") window.open('http://kids-love.or.kr'); //
//	if(dep1 =="5" && dep2 == "9" && dep3 =="0") window.open('http://www.kysenet.org'); //
//	if(dep1 =="5" && dep2 == "10" && dep3 =="0") window.open('http://nonsul.goedu.kr'); //
//	if(dep1 =="5" && dep2 == "11" && dep3 =="0") window.open('http://jinhak.goedu.kr'); //

//	if(dep1 =="6" && dep2 == "0" && dep3 =="0") window.open('/m_club/m_club_client/m_club_index.jsp'); //
//	if(dep1 =="6" && dep2 == "1" && dep3 =="0") window.open('/m_club/m_club_client/m_club_index.jsp'); //
	
	if(dep1 =="6" && dep2 == "0" && dep3 =="0") window.open('http://www.ggetv.net/scnt/?f1cd=10'); //
	if(dep1 =="6" && dep2 == "1" && dep3 =="0") window.open('http://www.ggetv.net/scnt/?f1cd=10'); //
	if(dep1 =="6" && dep2 == "2" && dep3 =="0") window.open('http://www.ggetv.net/scnt/?f1cd=20'); //
	if(dep1 =="6" && dep2 == "3" && dep3 =="0") window.open('http://www.ggetv.net/scnt/?f1cd=30'); //
	if(dep1 =="6" && dep2 == "4" && dep3 =="0") window.open('http://www.ggetv.net/scnt/?f1cd=40'); //

	if (url==""){
		alert("¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù.");
	}else{
		location.href = url ;
	}

}

function SM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// ÇÃ·¡½Ã ½ºÅ©¸³Æ®
function Swf_View(URL,SizeX,SizeY,LnkId,Frm,Flag)
{
	//alert(SizeY);
    document.write('            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
    document.write('                    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ');
    document.write('                    width="'+SizeX+'" height="'+SizeY+'"  id="'+LnkId+'" align="middle">');
    document.write('            <param name="movie"     value="'+URL+'" />');
    document.write('            <param name="quality"   value="high" />');
    document.write('            <param name="quality"   value="high" />');
    if ( Flag == null || Flag != 'N' )
    {
        document.write('        <param name="wmode"     value="transparent"/>');
    }
	document.write('			<param name="allowScriptAccess" value="always"/> ');
	document.write('			<param name="base" value="." />');
    document.write('            <embed base="." src="'+URL+'" quality="high" width="'+SizeX+'" height="'+SizeY+'"  align="middle" ');
	 if ( Flag == null || Flag != 'N' )
    {
        document.write('       		wmode="transparent" ');
    }
    document.write('           		type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always" swLiveConnect=true name="'+LnkId+'"  />');
    document.write('            </embed></object>');
	if ( Frm == 'Y' ) { // form ÅÂ±× µé¾î°¡´Â ÆäÀÌÁö¿¡ Àû¿ë
		eval("window." + LnkId + " = document.forms[0]."+ LnkId +"; ");
	}
}




function tab(index) {
	for (i=1; i<=2; i++)
	if (index == i) {
	thisMenu = eval("menu" + index + ".style");
	thisMenu.display = "";
	} 
	else {
	otherMenu = eval("menu" + i + ".style"); 
	otherMenu.display = "none"; 
	}
	}
	
	
//±³À°ÀÚ·á ·Ñ¿À¹ö½ºÅ©¸³Æ® //
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}



//È¸¿ø°ü·ÃÆË¾÷ //
function id_search() { 
	newWindow = window.open('/designer/skin/sub_06/pop01.jsp', 'myWindow', 'width=340,height=250'); 
}


function address_search() { 
	newWindow = window.open('/designer/skin/sub_06/pop02.jsp', 'myWindow', 'width=340,height=300,scrollbars=auto'); 
}

function school_search() { 
	newWindow = window.open('/designer/skin/sub_06/pop03.jsp', 'myWindow', 'width=340,height=300,scrollbars=auto'); 
}

//½ºÄÉÁì°ü¸®ÆÇ¾÷ //
function plan_search() { 
	newWindow = window.open('/designer/skin/sub_07/pop01.jsp', 'myWindow', 'width=350,height=350,scrollbars=auto'); 
}


function book_modify() { 
	newWindow = window.open('/designer/skin/sub_07/pop02.jsp', 'myWindow', 'width=350,height=200,scrollbars=auto'); 
}



//È¸¿ø°Ë»öÆË¾÷ //
function member_search() { 
	newWindow = window.open('/designer/skin/sub_07/pop03.jsp', 'myWindow', 'width=520,height=350,scrollbars=auto'); 
}


//ÁÖ¼Ò·Ï°Ë»öÆË¾÷ //
function ad_search() { 
	newWindow = window.open('/designer/skin/sub_07/pop04.jsp', 'myWindow', 'width=620,height=350,scrollbars=auto'); 
}



//Ã¥°¥ÇÇ/Áñ°ÜÃ£±â //
function book(index) {
	for (i=1; i<=2; i++)
	if (index == i) {
	thisMenu = eval("menu" + index + ".style");
	thisMenu.display = "";
	} 
	else {
	otherMenu = eval("menu" + i + ".style"); 
	otherMenu.display = "none"; 
	}
	}	


	//ÂÊÁö //
function paper(index) {
	for (i=1; i<=4; i++)
	if (index == i) {
	thisMenu = eval("tab" + index + ".style");
	thisMenu.display = "";
	} 
	else {
	otherMenu = eval("tab" + i + ".style"); 
	otherMenu.display = "none"; 
	}
	}	



		//ÁÖ¼Ò·Ï//
function group(index) {
	for (i=1; i<=2; i++)
	if (index == i) {
	thisMenu = eval("ad" + index + ".style");
	thisMenu.display = "";
	} 
	else {
	otherMenu = eval("ad" + i + ".style"); 
	otherMenu.display = "none"; 
	}
	}	


//ÀúÀÛ±Ç½Å°í¼­ºñ½º//
function copy(index) {
	for (i=1; i<=2; i++)
	if (index == i) {
	thisMenu = eval("service" + index + ".style");
	thisMenu.display = "";
	} 
	else {
	otherMenu = eval("service" + i + ".style"); 
	otherMenu.display = "none"; 
	}
	}	


//°³ÀÎÁ¤º¸º¸È£Á¤Ã¥//
function privacy(index) {
	for (i=1; i<=3; i++)
	if (index == i) {
	thisMenu = eval("person" + index + ".style");
	thisMenu.display = "";
	} 
	else {
	otherMenu = eval("person" + i + ".style"); 
	otherMenu.display = "none"; 
	}
	}	

function large()
{
 gnbFlashResize('nosize');
 document.getElementById("selectVisible").style.visibility = "hidden";
 document.getElementById("selectVisible2").style.visibility = "hidden";
 document.getElementById("selectVisible3").style.visibility = "hidden";
 document.getElementById("selectVisible4").style.visibility = "hidden";
 document.getElementById("selectVisible4").style.visibility = "hidden";
 document.getElementById("selectVisible6").style.visibility = "hidden";
 document.getElementById("selectVisible7").style.visibility = "hidden";


 document.getElementById("table_hidden_01").style.display = "none";
 document.getElementById("table_hidden_02").style.display = "none";
 document.getElementById("table_hidden_03").style.display = "none";
 document.getElementById("table_hidden_04").style.display = "none";
 document.getElementById("table_hidden_05").style.display = "none";

} 
function small()
{ 
 gnbFlashResize('resize');
 document.getElementById("selectVisible").style.visibility = "visible";
 document.getElementById("selectVisible2").style.visibility = "visible";
 document.getElementById("selectVisible3").style.visibility = "visible";
 document.getElementById("selectVisible4").style.visibility = "visible";
 document.getElementById("selectVisible5").style.visibility = "visible";
 document.getElementById("selectVisible6").style.visibility = "visible";
 document.getElementById("selectVisible7").style.visibility = "visible";


 document.getElementById("table_hidden_01").style.display = "block";
 document.getElementById("table_hidden_02").style.display = "block";
 document.getElementById("table_hidden_03").style.display = "block";
 document.getElementById("table_hidden_04").style.display = "block";
 document.getElementById("table_hidden_05").style.display = "block";


} 




 





















function expandMenu(){

var el1 = document.getElementById("expandMenu");
var el2 = document.getElementById("expandMenuW");

	if(el1.style.display==null ||el1.style.display=='none' ){
		el1.style.display='block';
		el2.style.display='block';
	}else {
	
		el1.style.display='none';
		el2.style.display='none';
	}
}


var fc_isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var fc_isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var fc_isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;

function checkFlashPlayerVersion() {
	var _version;
	var _e;
	try {
		var _axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.5");
		_version = _axo.GetVariable("$version");
	} catch (_e) {
		_version = -1;
	}
	return _version;
}

function showFlash(swfURL, flashID, width, height, wmode,flashVars, bgColor, fullscreen) {

	wmode = (wmode == undefined) ? "transparent" : wmode;
	bgColor = (bgColor == undefined) ? "#000000" : bgColor;
	fullscreen = (fullscreen == undefined) ? "false" : fullscreen;
	if (fc_isIE && fc_isWin && !fc_isOpera) {
		object = '<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="'
				+ width
				+ '" height="'
				+ height
				+ '" id="'
				+ flashID
				+ '" align="middle">';
		object += '<param name="allowScriptAccess" value="always" />';
		object += '<param name="quality" value="high" />';
		object += '<param name="movie" value="' + swfURL + '" />';
		object += '<param name="wmode" value="' + wmode + '" />';
		object += '<param name="allowFullScreen" value="' + fullscreen + '">';
		object += '<param name="bgcolor" value="' + bgColor + '" />';
		object += '<param name="FlashVars" value="' + flashVars + '">';
		object += '</object>';
	} else {
		object = '<embed src="'
				+ swfURL
				+ '" quality="high" wmode="'
				+ wmode
				+ '" allowFullScreen="'
				+ fullscreen
				+ '" FlashVars="'
				+ flashVars
				+ '" bgcolor="'
				+ bgColor
				+ '" width="'
				+ width
				+ '" height="'
				+ height
				+ '" name="'
				+ flashID
				+ '" id="'
				+ flashID
				+ '" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	}
	document.write(object);
}

function flashExternalCleanup() {
	__flash_unloadHandler = function() {
		externalProbSet = true;
		obj = document.getElementsByTagName('OBJECT');
		for (i = 0; i < obj.length; i++) {
			var theObj = eval(obj[i]);
			theObj.style.display = "none";
			for ( var prop in theObj) {
				if (typeof (theObj[prop]) == "function") {
					theObj[prop] = null
				}
			}
		}
	}
	if (window.onunload != __flash_unloadHandler) {
		__flash_savedUnloadHandler = window.onunload;
		window.onunload = __flash_unloadHandler;
	}
}
window.onbeforeunload = flashExternalCleanup;

var loadFlash = false;

function loadComplete()
{
	 loadFlash = true;
}

loadComplete();

function testFlash(){
	if(loadFlash){
		var a = document.getElementById('gnb');
		var b = document.getElementById('ognGnbMenu');
		//a.removeChild(b);
	}else{
		var a = document.getElementById('gnb');
		var b = document.getElementById('flashGnbMenu');
		//a.removeChild(b);
	}
}
function gnbFlashResize(value){
	var target = document.getElementById('flashGnbMenu');
	if(value =="resize"){
		target.style.height="230px";
	}else {
		target.style.height="510px";
	}
}


function flaOnload() {
	testFlash();
	
	if(document.getElementById("openMenu")){
		var el1 = document.getElementById("openMenu");
		el1.onclick = function(){expandMenu();}
		
	}
}
