//<![CDATA[
var all_menus=[ 
 [ "390",  "2",  "학회소개" , "/icons/app/cms/?html=/home/introduce.html", "shell=/index.shell:390", "0123456789", "^", "_self", "", "width/500,height/500,", "contents", "", "", "show:sub1","0123456789" , "live/top/sub", "text" , "" , "" ] ,
 [ "493",  "390",  "학회장인사" , "/icons/app/cms/?html=/home/introduce.html", "shell=/index.shell:493", "0123456789", "^", "_self", "", "width/500,height/500,", "contents", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "400",  "390",  "조직도" , "/icons/app/cms/?html=/home/org.html", "shell=/index.shell:400", "0123456789", "^", "_self", "", "width/500,height/500,", "contents", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "32",  "400",  "학회임원" , "/icons/app/cms/?html=/home/org.html", "shell=/index.shell:32", "0123456789", "^", "_self", "", "", "contents", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "33",  "400",  "학회연락처" , "/icons/app/cms/?html=/home/addr.html", "shell=/index.shell:33", "0123456789", "^", "_self", "", "", "contents", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "399",  "390",  "학회연혁" , "/icons/app/cms/?html=/home/history.html", "shell=/index.shell:399", "0123456789", "^", "_self", "", "width/500,height/500,", "contents", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "398",  "390",  "학회회칙" , "/icons/app/cms/?html=/home/rule.html", "shell=/index.shell:398", "0123456789", "^", "_self", "", "width/500,height/500,", "contents", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "393",  "390",  "CI/슬로건" , "/icons/app/cms/?html=/home/ci.html", "shell=/index.shell:393", "", "^", "_self", "", "width/500,height/500,", "contents", "", "", "","" , "//", "" , "" , "" ] ,
 [ "11",  "390",  "공지사항/보도자료" , "/notice.brd", "shell=/index.shell:11", "0123456789", "^", "_self", "", "width/500,height/500,", "board", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "389",  "2",  "학회지" , "/research.brd", "shell=/index.shell:389", "0123456789", "^", "_self", "", "width/500,height/500,", "board", "", "", "show:sub2","0123456789" , "live/top/sub", "text" , "" , "" ] ,
 [ "406",  "389",  "학회지" , "/research.brd", "shell=/index.shell:406", "0123456789", "^", "_self", "", "width/500,height/500,", "board", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "405",  "389",  "원고제출" , "/send.brd", "shell=/index.shell:405", "0123456789", "^", "_self", "", "width/500,height/500,", "board", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "17",  "405",  "온라인원고제출" , "/send.brd", "shell=/index.shell:17", "0123456789", "^", "_self", "", "", "board", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "19",  "405",  "온라인논문심사" , "/simsa.brd", "shell=/index.shell:19", "0123456789", "^", "_self", "", "width/500,height/500,", "board", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "20",  "405",  "투고규정" , "/icons/app/cms/?html=/home/togo.html", "shell=/index.shell:20", "0123456789", "^", "_self", "", "width/500,height/500,", "contents", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "21",  "405",  "편집규정" , "/icons/app/cms/?html=/home/modify.html", "shell=/index.shell:21", "0123456789", "^", "_self", "", "width/500,height/500,", "contents", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "22",  "405",  "심사규정" , "/icons/app/cms/?html=/home/simsa.html", "shell=/index.shell:22", "0123456789", "^", "_self", "", "width/500,height/500,", "contents", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "13",  "389",  "발간안내" , "/icons/app/cms/?html=/home/publish.html", "shell=/index.shell:13", "0123456789", "^", "_self", "", "width/500,height/500,", "contents", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "29",  "13",  "발간일정" , "/icons/app/cms/?html=/home/publish.html", "shell=/index.shell:29", "0123456789", "^", "_self", "", "", "contents", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "30",  "13",  "학회연구윤리규정" , "/icons/app/cms/?html=/home/res_rule.html", "shell=/index.shell:30", "0123456789", "^", "_self", "", "", "contents", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "31",  "13",  "학회지문의" , "/icons/app/cms/?html=/home/qna.html", "shell=/index.shell:31", "0123456789", "^", "_self", "", "", "contents", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "388",  "2",  "학술대회" , "/plan.brd", "shell=/index.shell:388", "0123456789", "^", "_self", "", "width/500,height/500,", "board", "", "", "show:sub3","0123456789" , "live/top/sub", "text" , "" , "" ] ,
 [ "410",  "388",  "학회일정" , "/plan.brd", "shell=/index.shell:410", "0123456789", "^", "_self", "", "width/500,height/500,", "board", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "18",  "388",  "이모저모" , "", "shell=/index.shell:18", "0123456789", "^", "_self", "", "width/500,height/500,", "board", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "409",  "388",  "자료실" , "/pds.brd", "shell=/index.shell:409", "0123456789", "^", "_self", "", "width/500,height/500,", "board", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "16",  "388",  "자유발표논문투고" , "/write.brd", "shell=/index.shell:16", "0123456789", "^", "_self", "", "width/500,height/500,", "board", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "14",  "388",  "워크샵사전등록" , "/workshop.brd", "shell=/index.shell:14", "0123456789", "^", "_self", "", "width/500,height/500,", "board", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "386",  "2",  "학술정보" , "/infopds.brd", "shell=/index.shell:386", "0123456789", "^", "_self", "", "width/500,height/500,", "board", "", "", "show:sub4","0123456789" , "live/top/sub", "text" , "" , "" ] ,
 [ "419",  "386",  "학술정보자료실" , "/infopds.brd", "shell=/index.shell:419", "0123456789", "^", "_self", "", "width/500,height/500,", "board", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "482",  "386",  "추천사이트" , "/icons/app/cms/?html=/home/site1.html", "shell=/index.shell:482", "0123456789", "^", "_self", "", "width/500,height/500,", "contents", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "23",  "482",  "기술교사모임 단체" , "/icons/app/cms/?html=/home/site1.html", "shell=/index.shell:23", "0123456789", "^", "_self", "", "width/500,height/500,", "contents", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "24",  "482",  "기술교육 관련학회" , "/icons/app/cms/?html=/home/site2.html", "shell=/index.shell:24", "0123456789", "^", "_self", "", "width/500,height/500,", "contents", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "25",  "482",  "국내 교육기관" , "/icons/app/cms/?html=/home/site3.html", "shell=/index.shell:25", "0123456789", "^", "_self", "", "width/500,height/500,", "contents", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "26",  "482",  "국제 전문학술지" , "/icons/app/cms/?html=/home/site4.html", "shell=/index.shell:26", "0123456789", "^", "_self", "", "width/500,height/500,", "contents", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "27",  "482",  "미술 기술교육과설치대학" , "/icons/app/cms/?html=/home/site5.html", "shell=/index.shell:27", "0123456789", "^", "_self", "", "width/500,height/500,", "contents", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "28",  "482",  "Technology Education Resource Sites" , "/icons/app/cms/?html=/home/site6.html", "shell=/index.shell:28", "0123456789", "^", "_self", "", "width/500,height/500,", "contents", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "407",  "2",  "커뮤니티" , "/webzine.brd", "shell=/index.shell:407", "0123456789", "^", "_self", "", "width/500,height/500,", "board", "", "", "show:sub5","0123456789" , "live/top/sub", "text" , "" , "" ] ,
 [ "444",  "407",  "기술교육학회 웹진" , "/webzine.brd", "shell=/index.shell:444", "0123456789", "^", "_self", "", "width/500,height/500,", "board", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "489",  "407",  "회원전용게시판" , "/memboard.brd", "shell=/index.shell:489", "0123456789", "^", "_self", "", "width/500,height/500,", "board", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "445",  "407",  "학회갤러리" , "/gallery.brd", "shell=/index.shell:445", "0123456789", "^", "_self", "", "width/500,height/500,", "board", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "416",  "407",  "자유게시판" , "/freeboard.brd", "shell=/index.shell:416", "0123456789", "^", "_self", "", "width/500,height/500,", "board", "", "", "","0123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "484",  "2",  "회원정보" , "/icons/app/cms/?html=/home/login.html", "shell=/index.shell:484", "0123456789", "^", "_self", "", "width/500,height/500,", "contents", "25", "", "show:sub1","0123456789" , "//sub", "text" , "" , "" ] ,
 [ "485",  "484",  "회원가입" , "/icons/app/user/?cmd=signup&uid=&lid=&shell=/index.shell:484", "shell=/index.shell:485", "0", "^", "_self", "", "", "url", "", "", "","0" , "live/top/sub", "" , "" , "" ] ,
 [ "486",  "484",  "개인정보 찾기" , "/icons/app/user/?cmd=passwd&uid=&lid=&shell=/index.shell:484", "shell=/index.shell:486", "0", "^", "_self", "", "width/500,height/500,", "url", "", "", "","0" , "live/top/sub", "" , "" , "" ] ,
 [ "491",  "484",  "개인정보 변경" , "/icons/app/user/?cmd=myinfo&uid=&lid=&shell=/index.shell:484", "shell=/index.shell:491", "123456789", "^", "_self", "", "width/500,height/500,", "url", "", "", "","123456789" , "live/top/sub", "" , "" , "" ] ,
 [ "492",  "484",  "회원탈퇴" , "/icons/app/user/?cmd=signoff&amp;uid=&amp;lid=&amp;shell=/index.shell:484", "shell=/index.shell:492", "123456789", "^", "_self", "", "", "url", "", "", "","123456789" , "live/top/sub", "" , "" , "" ]]; 
 var show_list=[  'sub4', 'sub2', 'sub5', 'sub1', 'main_flash', 'sub3', ]; 
var show_sub4= [ [ "code_00", "개요", "학술정보", "master|sysop", "", "1000", "140"],[ "code_01", "배경", "학술정보", "pr_bg1277314401.png", "", "0", "0", "1000", "140", "100"] ] ;
var show_sub2= [ [ "code_00", "개요", "학회지", "master|sysop", "", "1000", "140"],[ "code_01", "배경", "학회지", "pr_bg1277314267.png", "", "0", "0", "1000", "140", "100"] ] ;
var show_sub5= [ [ "code_00", "개요", "커뮤니티", "master|sysop", "", "1000", "140"],[ "code_01", "배경", "커뮤니티", "pr_bg1277314452.png", "", "0", "0", "1000", "140", "100"] ] ;
var show_sub1= [ [ "code_00", "개요", "학회소개", "sysop|admin", "", "1000", "140", "10", "20", "12345", "7000"],[ "code_01", "bg", "학회소개", "pr_bg1277312806.png", "", "0", "0", "1000", "140", "100"] ] ;
var show_main_flash= [ [ "code_00", "개요", "text", "admin|sysop|master", "", "1000", "330", "10", "20", "31245", "7000"],[ "code_03", "트랙", "main", "pr_tr1277322411_main1.swf|0|0|1000|330|100", "100"] ] ;
var show_sub3= [ [ "code_00", "개요", "학술대회", "master|sysop", "", "1000", "140"],[ "code_01", "배경", "학술대회", "pr_bg1277314537.png", "", "0", "0", "1000", "140", "100"] ] ;

	function return_to_level() {
		
			return '0';
		
	}

	//관리창 open
	function open_flash_edit_win()
	{
		window.open('/icons/app/cms/menu_admin.php','flash_edit','width=1100, height=900, status=1, resizable=1, scrollbars=1');
	}

	//top메뉴를 클릭하면 호출 
	function MClick(menu_id)
	{
		var target='', href='';
		var grade='0';
		var menus=all_menus;

		for( var i=0; i<menus.length; i++ )
		{
			if(menu_id !=menus[i][0] ) continue;

			//등급이 낮으면 메시지 출력
			if(!cmp_level(menus[i][5], grade))
			{
				msg=parse_message(menus[i][6]);
				alert(msg);return;
			}

			//href=menus[i][3];
			href=get_menu_url(menus[i]);
			target=menus[i][7];
			if(target == '_blank')
			{
				//쉘사용하지 않도록 설정되어 있으면
				if(menus[i][8]=='off') 
				{
					window.open(href,'new_window');
				}
				else
				{
					window.open(href,'new_window');
				}
			}
			//새창(_popup)이 설정되어 있으면
			else if(target=='_popup')
			{
				//쉘사용하지 않도록 설정되어 있으면
				if(menus[i][8]=='off') 
				{
					window.open(href,'new_window', menus[i][9]);
				}
				else
				{
					window.open(href,'new_window', menus[i][9]);
				}
			}
			else
			{
				document.location.href=href;
			}
			break;
		}//for end
	}//MClick end

	//등급을 비교하여 사용가능여부를 판단
	function cmp_level(level_str, level)
	{
		var len=0;
		if(!level_str) return 1;
		len=level_str.length;
		//1자로 처리된 경우 예외처리(1.0과의 호환)
		if(len==1)
		{
			if(level >=level_str) return 1;
		}
		else
		{
			if(level_str.indexOf(level) != -1 ) return 1;
		}
		return 0;
	}

	//등급에 맞는 메시지 리턴
	function parse_message(msg_str)
	{
		var level='0';
		var msg='사용할 수 없는 등급입니다.';
		if(!msg_str) return msg;
		//메시지가 너무 작거나 2자이하이면 기본 메시지 출력
		if(msg_str.length < 2) return msg;

		var idx=msg_str.indexOf('^');
		var msg1='', msg2='';

		msg1=msg_str.substring(0, idx);
		msg2=msg_str.substring(idx+1, msg_str.length);
		if(level ==0)
		{
			if(msg1) msg=msg1;
			else if(msg2) msg=msg2;
		}
		else
		{
			if(msg2) msg=msg2;
			else if(msg1) msg=msg1;
		}
		return msg;
	}

	
	var js_conf=[
		['menu_width', '750'],
['top_align', 'left'],
['top_x', '60'],
['top_y', '10'],
['top_space', '85'],
['top_color', 'FFFFFF'],
['top_over_color', '143B50'],
['top_roll_color', ''],
['top_border_color', 'CDCDCD'],
['top_height', '30'],
['top_roll', '0'],
['top_roll_effect', '1'],
['top_roll_margin', '3'],
['top_roll_xspeed', '6'],
['top_scale_x', '100'],
['top_scale_y', '100'],
['top_menu_y', '35'],
['top_icon', '0'],
['top_icon_x', '0'],
['top_icon_y', '-3'],
['top_icon_width', '51'],
['top_icon_height', '40'],
['top_icon_margin', '3'],
['top_icon_align', '1'],
['top_border', '1'],
['top_font_size', '18'],
['top_over_font_size', '18'],
['top_menu_font', '맑은 고딕'],
['top_menu_bold', '1'],
['top_menu_over_bold', '1'],
['top_sub_title', '0'],
['sub_space', '10'],
['sub_height', '25'],
['sub_color', 'FFFFFF'],
['sub_over_color', '143B50'],
['sub_bar_color', 'FFFFFF'],
['sub_border_color', ''],
['sub_bar', '1'],
['sub_bar_effect', '4'],
['sub_bar_margin_y', '0'],
['sub_menu_margin', '10'],
['sub_menu_speed', '9'],
['sub_margin_x', '3'],
['sub_margin_y', '4'],
['sub_bullet', '0'],
['sub_bullet_margin', '3'],
['sub_scale_x', '100'],
['sub_scale_y', '100'],
['sub_border', '0'],
['sub_font_size', '12'],
['sub_menu_font', '맑은 고딕'],
['sub_menu_bold', '1'],
['menu_type', 'js']
	];

	//메뉴 설정 배열 리턴
	function return_to_conf_array()
	{
		return js_conf;
	}

	

	 var cms_conf=[ "tpl1", "show:sub1", "swf"] ;
	//]]>
	
