/* frame ±¸Á¶ È®ÀÎ */
(function(){
	try{
		if(top==window){
			var loc = document.location;
			loc.href = "http://" + loc.hostname +  "/main.nsf/index.html?open&p=" + encodeURIComponent(loc.pathname) + "&s=" + encodeURIComponent(loc.search);
		}
	}catch(e){}
})();
(function(){
var Uj="Microsoft",UK="XMLHTTP",UI="insert_adjacent_html",UW="type",UY="XMLDOM",Uh="content";
var h$="BackgroundImageCache",y_="January",ua="February",nM="March",gU="April",gA="May",oC="June",op="July",_q="August",yN="September",eJ="October",oZ="November",X="December",$u="Sunday",$b="Monday",$D="Tuesday",$Q="Wednesday",$k="Thursday",$f="Friday",$m="Saturday",$G="ÀÏ",$B="¿ù",$x="È­",$T="¼ö",$g="¸ñ",$E="±Ý",$w="Åä",$R=/^[ \r\n\t]*/g,$j="",$K=/[ \r\n\t]*$/g,$I=/[\r\n]*/g,$W=".",$Y=/([\d])(\d{3})(\.[\d]*)?$/,$h="$1,$2$3",$l=/[\d]\d{3},/,$F=/([\d])(\d{3}),/,$n="$1,$2,",$S=/"/g,$i="&#34;",$o=/&/g,$c="&amp;",$O=/</g,$H="&lt;",$e=/>/g,$P="&gt;",$v="&",$L="=",$r="0",$s="$QQQQ$",$t="$QQQ$",$V="$RRRR$",$d="$RRR$",$y="AM",$z="PM",$1="¿ÀÀü",$6="¿ÀÈÄ",$9="GMT",$5="+",$0="-",$3=":",$4=/\$/g,$7="\\$",$8="g",$2="yyyy-MM-dd",_$="object",__='splice',_a='join',_M="string",_U="function",_A=/msie/i,_C=/gecko/i,_p=/firefox/i,_N=/chrome/i,_J=/opera/i,_Z=/(?:msie |firefox\/|opera\/|version\/|chrome\/|safari\/)([\d\.]*)/i,_X="left",_u="wheel",_b="right",_D="body",_Q=""+Uj+"."+UK+"",_k="%",_f="100%",_m="beforeEnd",_G="span",_B="afterBegin",_x=""+UI+"¿¡ Á¤ÀÇµÇÁö ¾ÊÀº "+UW+"ÀÓ ->",_T="number",_g="{",_E="}",_w=/^on/,_R=/[^\u0000\u0009\u000A\u000D\u0020-\uD7FF\uF900-\uFFFD]/,_j=""+Uj+"."+UY+"",_K=/([^\u0000\u0009\u000A\u000D\u0020-\uD7FF\uF900-\uFFFD])/gi,_I="?",_W="GET",_Y="p",_h="POST",_l="text",_F="i",_n=""+Uh+"-"+UW+"",_S="text/xml",_i="; expires=",_o="; path=",_c="/",_O="; domain=",_H="; secure",_e="lower_cookie_hash",_P="cookie_hash",_v=";",_L="=;expires=";
var _s=Date,_t=Function,_V=Math,_d=Number,_y=Object,_z=RegExp,_1=String,_6=decodeURIComponent,_9=encodeURIComponent,_5=true,_0=false,_3=document,_7=window,_8=alert;
try{var _r=window.ActiveXObject,_4=event;}catch(e){}
var _2="uniqueID",a$="compatMode",a_="XMLHttpRequest",aa="execCommand",aM="extend",aU="prototype",aA="toString",aC="replace",ap="trim",aq="indexOf",aN="substring",aJ="search",aZ="lastIndexOf",aX="length",au="right",ab="left",aD="split",aQ="toLowerCase",ak="charCodeAt",af="byte_length",am="fixed_length",aG="getTimezoneOffset",aB="abs",ax="zero_prefix",aT="getHours",ag="getFullYear",aE="getMonth",aw="getDate",aR="getMinutes",aj="getSeconds",aK="getMilliseconds",aI="getDay",aW="format",aY="tagName",ah="to_array",al="shift",aF="apply",an="concat",aS="event",ai="__browser",ao="user_agent",ac="navigator",aO="userAgent",aH="is_ie",ae="test",aP="is_gecko",av="is_firefox",aL="is_chrome",ar="is_safari",as="is_opera",at="version",aV="match",ad="language",ay="browserLanguage",az="userLanguage",a1="__dom",a6="get_window",a9="ownerDocument",a5="parentWindow",a0="get_size",a3="insert_adjacent_html",a4="insertAdjacentHTML",a7="get_stylesheets",a8="styleSheets",a2="stylesheet",M$="addRule",M_="rules",Ma="style",MU="currentStyle",MA="remove_node",MC="removeNode",Mp="attach_event",Mq="attachEvent",MN="srcElement",MJ="toElement",MZ="target",MX="currentTarget",Mu="clientX",Mb="clientY",MD="x",MQ="y",Mk="screenX",Mf="screenY",Mm="returnValue",MG="cancelBubble",MB="src_element",Mx="get_position",MT="offsetX",Mg="offsetY",ME="width",Mw="height",MR="button",Mj="document",MK="body",MI="offsetLeft",MW="offsetTop",MY="offsetParent",Mh="scrollLeft",Ml="scrollTop",MF="offsetWidth",Mn="offsetHeight",MS="get_xmlhttp",Mi="zoom",Mo="defaultView",Mc="createElement",MO="appendChild",MH="innerHTML",Me="firstChild",MP="insertBefore",Mv="removeChild",ML="ownerNode",Mr="id",Ms="cssRules",Mt="insertRule",MV="getComputedStyle",Md="parentNode",My="addEventListener",Mz="relatedTarget",M1="pageX",M6="pageY",M9="preventDefault",M5="stopPropagation",M0="layerX",M3="layerY",M4="__xml",M7="node_text",M8="text",M2="get_xml_doc",U$="responseText",U_="loadXML",Ua="responseXML",UM="documentElement",UU="textContent",UA="request",UC="getTime",Up="open",Uq="push",UN="encode",UJ="join",UZ="onreadystatechange",UX="bind",Uu="state_change",Ub="send",UD="return_object",UQ="readyState",Uk="getResponseHeader",Uf="__cookie",Um="set_cookie",UG="cookie",UB="toGMTString",Ux="cookie_hash",UT="lower_cookie_hash",Ug="get_cookie",UE="to_hash",Uw="delete_cookie";
var Q=_3[_2]&&_3[a$]&&!_7[a_]&&_3[aa];try{if(!!Q){Q(h$,_0,_5)}}catch(oh){};var k=[y_,ua,nM,gU,gA,oC,op,_q,yN,eJ,oZ,X];var f=[$u,$b,$D,$Q,$k,$f,$m];var G=[$G,$B,$x,$T,$g,$E,$w];_y[aM]=function(M,U){for(var a in U)M[a]=U[a];return M};_y[aM](_1[aU],{trim:function(){return this[aA]()[aC]($R,$j)[aC]($K,$j)},inline:function(){return this[aA]()[ap]()[aC]($I,$j)},comma:function(){var a=this[aA]();var M=$j;if(a!=$j){if(a[aq]($W)!=-1){M=a[aN](a[aq]($W));a=a[aN](0,a[aq]($W))}a=a[aC]($Y,$h);while(a[aJ]($l)!=-1){a=a[aC]($F,$n)}}return a+M},input_val:function(){return this[aA]()[aC]($S,$i)},html_text:function(){return this[aA]()[aC]($o,$c)[aC]($O,$H)[aC]($e,$P)},left:function(a){return this[aN](0,this[aq](a))},left_back:function(a){return this[aN](0,this[aZ](a))},right:function(a){return this[aN](this[aq](a)+a[aX],this[aX])},right_back:function(a){return this[aN](this[aZ](a)+a[aX],this[aX])},middle:function(a,M){return this[au](a)[ab](M)},encode:function(){return _9(this[aA]())},decode:function(){return _6(this[aA]())},to_hash:function(p,q,N){var a=this[aD](p||$v);var M=N||_0;var U={};var A;try{for(var C=0;C<a[aX];C++){if(a[C][ap]()==$j)continue;A=a[C][aD](q||$L);if(A[1]!=null)U[(M?A[0][ap]()[aQ]():A[0][ap]())]=A[1][ap]()}return U}catch(a){return null}},byte_length:function(){var a=0;var M=this[aA]();for(var U=0;U<M[aX];U++){a+=(M[ak](U)>128?2:1)}return a},fixed_length:function(Z,X,u,b,D){var a=0,M=$j,U,A,C,p,q,N;X=(X||$j)[aA]();if(X[aX]>1||(D&&X[af]()>1))return null;A=this[aA]();Z=Z||2;u=(u==null?_0:u);b=(b==null?_5:b);D=D||_0;U=D?A[af]():A[aX];a=Z-U;if(a==0||(a<0&&!b))return A;if(a>0){if(X!=$j)for(var J=0;J<a;J++)M+=X;return(u?M+A:A+M)}if(a<0){if(!D){if(u){return A[aN](A[aX]-Z)}else{return A[aN](0,Z)}}else{C=0;if(u){q=0;N=1}else{q=A[aX]-1;N=-1}while(a<0){p=A[ak](q)>128?2:1;a+=p;C++;q+=N}return u?A[aN](C):A[aN](0,A[aX]-C)}}return $j}});_y[aM](_d[aU],_1[aU]);_y[aM](_d[aU],{zero_prefix:function(a){return this[aA]()[am](a,$r,_5,_0,_0)}});_y[aM](_s[aU],{format:function(u){var U,C,p,q;U=(this[aG]()>0?_5:_0);C=_V[aB](this[aG]());q=C % 60;p=(C-q)/60;q=q[ax](2);p=p[ax](2);var N=this[aT]();N=N>12?N-12:N;var J={yyyy:this[ag](),yy:this[ag]()[aA]()[aN](2),MMMM:$s,MMM:$t,MM:(this[aE]()+1)[ax](2),M:(this[aE]()+1),dd:this[aw]()[ax](2),d:this[aw](),HH:this[aT]()[ax](2),H:this[aT](),hh:N[ax](2),h:N,mm:this[aR]()[ax](2),m:this[aR](),ss:this[aj]()[ax](2),s:this[aj](),SSS:this[aK]()[ax](3),S:this[aK](),EEEE:$V,EEE:$d,eee:G[this[aI]()],A:(this[aT]()<12?$y:$z),a:(this[aT]()<12?$1:$6),Z:$9+(U?$5:$0)+p+$3+q,z:(U?$5:$0)+p+q,$QQQQ$:k[this[aE]()],$QQQ$:k[this[aE]()][aN](0,3),$RRRR$:f[this[aI]()],$RRR$:f[this[aI]()][aN](0,3)};for(var X in J)u=u[aC](new _z(X[aC]($4,$7),$8),J[X]);return u},to_date_string:function(){return this[aW]($2)}});_y[aM](_y,{is_array:function(a){return a!=null&&typeof(a)==_$&&__ in a&&_a in a},to_array:function(U){var a=[];if(U!=null&&U[aX]!=null&&typeof(U)!=_M&&typeof(U)!=_U&&U[aY]==null){for(var M=0;M<U[aX];M++)a[M]=U[M]}else{a=[U]}return a},contains:function(M,U){for(var a=0;a<U[aX];a++){if(M==U[a])return _5}return _0},clone:function(A){function UR(M,U){for(var a in U){if(typeof(U[a])!=_$){M[a]=U[a]}else{M[a]=UR({},U[a])}}return M}return UR({},A)},bind:function(){var a=_y[ah](arguments),M=a[al](),U=a[al](),A=a[al]();return function(){return A[aF](U,a[an](_y[ah](arguments)))}},bind_event_listener:function(){var M=_y[ah](arguments),U=M[al](),A=M[al](),C=M[al]();return function(a){return C[aF](A,[a||U[aS]][an](M))}}});_7[ai]=new function(){this[ao]=_7[ac][aO];this[aH]=_A[ae](this[ao]);this[aP]=_C[ae](this[ao]);this[av]=_p[ae](this[ao]);this[aL]=_N[ae](this[ao]);this[ar]=!this[aL]&&/safari/i[ae](this[ao]);this[as]=_J[ae](this[ao]);this[at]=(this[ao][aV](_Z)||[])[1];if(this[aH]){this[ad]=navigator[ay]}else{this[ad]=(navigator[ad]?navigator[ad]:navigator[az])}};_7[a1]=new function(){var p,q;if(__browser[aH]){this[a6]=function(a){return a[a9][a5]};this[a0]=function(a){};this[a3]=function(a,M,U){a[a4](M,U)};this[a7]=function(a,M){return a[a8](M)};this[a2]={add_rule:function(a,M,U,A){A=(A==null?-1:A);if(M!=$j&&U!=$j){a[M$](M,U,A);
return a[M_][(A==-1?a[M_][aX]-1:A)]}else{return null}},rules:function(a){return a[M_]}};this[Ma]={current_style:function(a,M){return a[MU][M]}};this[MA]=function(a,M){try{if(a!=null){return a[MC]((M==null?_5:M))}else{return _0}}catch(e){return _0}};this[Mp]=function(a,M,U){a[Mq](M,U)};this[aS]={src_element:function(a){return a[MN]},related_target:function(a){return a[MJ]},info:function(a){return{target:a[MZ],current_target:a[MX],related_target:a[MJ],client_x:a[Mu],client_y:a[Mb],page_x:a[MD],page_y:a[MQ],screen_x:a[Mk],screen_y:a[Mf]}},return_value:function(a,M){a[Mm]=M},cancel_bubble:function(a,M){a[MG]=M},offset_xy:function(U){var a=__dom[aS][MB](U);var M=__dom[Mx](a);M[MD]+=U[MT];M[MQ]+=U[Mg];return{x:U[MT],y:U[Mg],page_x:M[MD],page_y:M[MQ],client_x:U[Mu],client_y:U[Mb]}},target_offset:function(A,C){var a=__dom[aS][MB](A);var M=__dom[Mx](a);M[MD]+=A[MT];M[MQ]+=A[Mg];var U=__dom[Mx](C);return{x:M[MD]-U[MD],y:M[MQ]-U[MQ],page_x:M[MD],page_y:M[MQ],client_x:A[Mu],client_y:A[Mb],target_x:U[MD],target_y:U[MQ],target_width:U[ME],target_height:U[Mw]}},button:function(M){var a;switch(M[MR]){case 1:a=_X;break;case 4:a=_u;break;case 2:a=_b;break;default:a=M[MR]}return a}};this[Mx]=function(C){var a=this[a6](C);var M=a[Mj][MK];var U=[C[MI],C[MW]];var A;A=C[MY];while(A!=null&&A[aY][aQ]()!=_D){U[0]+=A[MI]-A[Mh];U[1]+=A[MW]-A[Ml];A=A[MY]}return{x:U[0],y:U[1],page_x:U[0],page_y:U[1],client_x:U[0]-M[MI],client_y:U[1]-M[MW],width:C[MF],height:C[Mn]}};this[MS]=function(){try{return new _r(_Q)}catch(e){return null}};this[Mi]=function(U,A){var a;var M=U[Ma];if(M[Mi]==null||M[Mi][aq](_k)==-1){M[Mi]=_f}a=_d(M[Mi][aA]()[aC](_k,$j));if(A==$5){a+=10}else{a-=10}if(a<100)a=100;M[Mi]=a+_k}}else{this[a6]=function(a){return a[a9][Mo]};this[a3]=function(a,M,U){switch(M){case _m:p=__dom[a6](a)[Mj][Mc](_G);a[MO](p);p[MH]=U;while(p[Me]!=null){a[MP](p[Me],p)}a[Mv](p);break;case _B:p=__dom[a6](a)[Mj][Mc](_G);q=a[Me];if(q==null){a[MO](p)}else{a[MP](p,q)}p[MH]=U;while(p[Me]!=null){a[MP](p[Me],p)}a[Mv](p);break;default:_8(_x+M);break}};this[a7]=function(U,A){var a=U[a8];if(typeof(A)==_T){return a[A]}else{for(var M=0;M<a[aX];M++){if(a[M][ML][Mr]==A){return a[M]}}}return null};this[a2]={add_rule:function(a,M,U,A){if(A==null){A=a[Ms][aX]}if(M!=$j&&U!=$j){a[Mt](M+_g+U+_E,A);return a[Ms][A]}else{return null}},rules:function(a){return a[Ms]}};this[Ma]={current_style:function(a,M){return __dom[a6](a)[MV](a,null)[M]}};this[MA]=function(a,M){try{if(a!=null){a[Md][Mv](a);return _5}else{return _0}}catch(e){return _0}};this[Mp]=function(a,M,U){M=M[aC](_w,$j);a[My](M,U,_0)};this[aS]={src_element:function(a){return a[MZ]},related_target:function(a){return a[Mz]},info:function(a){return{target:a[MZ],current_target:a[MX],related_target:a[Mz],client_x:a[Mu],client_y:a[Mb],page_x:a[M1],page_y:a[M6],screen_x:a[Mk],screen_y:a[Mf]}},return_value:function(a,M){if(!M){a[M9]()}},cancel_bubble:function(a,M){if(M)a[M5]()},offset_xy:function(a){return{x:a[M0],y:a[M3],page_x:a[M1],page_y:a[M6],client_x:a[Mu],client_y:a[Mb]}},target_offset:function(M,U){var a=__dom[Mx](U);return{x:M[M1]-a[MD],y:M[M6]-a[MQ],page_x:M[M1],page_y:M[M6],client_x:M[Mu],client_y:M[Mb],target_x:a[MD],target_y:a[MQ],target_width:a[ME],target_height:a[Mw]}},button:function(M){var a;switch(M[MR]){case 0:a=_X;break;case 1:a=_u;break;case 2:a=_b;break;default:a=M[MR];break}return a}};this[Mx]=function(C){var a=this[a6](C);var M=a[Mj][MK];var U=[C[MI],C[MW]];var A;A=C[MY];while(A!=null&&A[aY][aQ]()!=_D){U[0]+=A[MI];U[1]+=A[MW];A=A[MY]}A=C[Md];while(A!=null&&A[aY][aQ]()!=_D){U[0]-=A[Mh];U[1]-=A[Ml];if(A[aY][aQ]()==_D)break;A=A[Md]}return{x:U[0],y:U[1],page_x:U[0],page_y:U[1],client_x:U[0]-M[MI],client_y:U[1]-M[MW],width:C[MF],height:C[Mn]}};this[MS]=function(){try{return new XMLHttpRequest()}catch(e){return null}};this[Mi]=function(a,M){}}};_7[M4]=new function(){if(__browser[aH]){this[M7]=function(a){try{if(a!=null){return a[M8][ap]()}else{return $j}}catch(e){return $j}};this[MS]=function(){try{return new _r(_Q)}catch(e){return null}};this[M2]=function(A){var a,M,U;try{if(A[U$][aJ](_R)!=-1){a=new _r(_j);
M=A[U$][aC](_K,_I);a[U_](M)}else{a=A[Ua]}U=a[UM]}catch(e){U=null}return U}}else{this[M7]=function(a){try{if(a!=null){return a[UU][ap]()}else{return $j}}catch(e){return $j}};this[MS]=function(){try{return new XMLHttpRequest()}catch(e){return null}};this[M2]=function(a){try{return a[Ua][UM]}catch(e){return null}}}this[UA]=function(N,J,Z,X,u,b,D){var a=this[MS]();var M=[],U=null;var A=_0,C;try{X=(X==null?_0:X);Z=(Z==null?_$:Z);C=(D==null||!D?$v+(new _s())[UC]()[aA](16):$j);N=N||_W;N=N==_Y?_h:N;N=N==$8?_W:N;a[Up](N,J+C,X);if(b!=null){if(typeof(b)==_M){U=b}else{for(var p in 	b){M[Uq](p+$L+(b[p]||$j)[UN]())}U=(M[aX]!=0?M[UJ]($v):null)}}if(X){a[UZ]=_y[UX](_7,this,this[Uu],a,u,Z)}a[Ub](U);if(!X){var q=(this[UD](a,Z[aQ]()));return(this[UD](a,Z[aQ]()))}else{return _5}}catch(e){return _0}};this[Uu]=function(a,M,U){if(a[UQ]==4){M(this[UD](a,U[aQ]()))}};this[UD]=function(U,A){try{if(A==_$)return U;if(A==_l)return U[U$];var a=new _z(A,_F);var M;if(U[Uk](_n)[aJ](a)!=-1){if(A==_S){M=this[M2](U)}else{M=U[U$]}return{valid:(M!=null?_5:_0),value:M,object:U}}else{return{valid:_0,value:null,object:U}}}catch(e){return{valid:_0,value:null,object:U}}}};_7[Uf]=new function(){this[Um]=function(a,M,U,A,C,p){if(a==null||a==$j)return _0;try{if(U!=null)U=new _s((new _s())[UC]()+(U*1000*60*60));_3[UG]=a+$L+M[UN]()+(U!=null?_i+U[UB]():$j)+_o+(A!=null?A:_c)+(A!=null?_o+A:$j)+(C!=null?_O+C:$j)+(p!=null?_H:$j);return _5}catch(e){return _0}};this[Ux]=null;this[UT]=null;this[Ug]=function(M,U,A){try{var a=(U?_e:_P);if(this[a]==null||A){this[a]=_3[UG][UE](_v,null,U)}return(this[a]!=null&&this[a][M]!=null?this[a][M]:null)}catch(e){return null}};this[Uw]=function(M,U,A){try{var a=new _s(1970,1,1,12,1,1);if(this[Ug](M)!=null){_3[UG]=M+_L+a[UB]()+_o+(U!=null?U:_c)+(A!=null?_O+A:$j)}return _5}catch(e){return _0}}};
})();
(function(){
	try{
		__cookie.set_cookie("site_language", "kr");
	}catch(e){}
})();
function __Holiday(){
	this.holiday = [];
	this.holiday_viewpath = ""; // "/xxx.nsf/holiday"; /* view´Â Ã¹¿­Àº ¿¬µµ(¿À¸§Â÷¼ø Sort), µÑÂ°¿­Àº ";"À¸·Î ±¸ºÐµÈ ¿¬-¿ù-ÀÏ ÈÞÀÏ */
	this.is_holiday = function(dateobj){
		var xmlHttp, xmlDoc, url, ves, eds;
		var isholiday, datearr;
		if(typeof(dateobj) == "string"){
			datearr = dateobj.split(/[-\/.]/);
			dateobj = new Date(parseInt(datearr[0], 10), parseInt(datearr[1], 10) - 1, parseInt(datearr[2], 10));
		}
		if(this.holiday_viewpath != "" && this.holiday[dateobj.getFullYear()] == null){
			try{
				xmlHttp = __dom.get_xmlhttp();
				url = this.holiday_viewpath + "?readviewentries&startkey=" + dateobj.getFullYear() + "&Count=1";
				xmlHttp.open("GET", url, false);
				xmlHttp.send(null);
				xmlDoc = xmlHttp.responseXML.documentElement;
				if(xmlDoc != null){
					ves = xmlDoc.getElementsByTagName("viewentry");
					this.holiday[dateobj.getFullYear()] = "";
					if(ves[0] != null){
						eds = ves[0].getElementsByTagName("entrydata");
						this.holiday[dateobj.getFullYear()] = ";" + eds[1].text + ";";
					}
				}else{
					this.holiday[dateobj.getFullYear()] = "";
				}
			}catch(e){
				this.holiday[dateobj.getFullYear()] = "";
			}
		}
		isholiday = false;
		if(dateobj.getDay() == 0 || dateobj.getDay() == 6){
			isholiday = true;
		}else if(this.holiday_viewpath != "" && this.holiday[dateobj.getFullYear()].indexOf(dateobj.to_date_string()) != -1){
			isholiday = true;
		}
		return isholiday;
	}
}
var __holiday = new __Holiday();
function __Calendar(_window, obj, target_func, select_date, iframeinfo){
	this.object = null;
	this.obj_doc = null;
	this.window = _window;
	this.border = "1px solid #BAD4D4";
	this.width = 145;
	this.height = 150;
	this.target_obj = null;
	this.target_func = null;
	this.selected_date = null;
	this.show_date = null;
	this.offset_x = 0;
	this.offset_y = 0;
	this.use_iframe = true; 		// ieÀÇ popupÀºfocus°¡ ¾ÈµÇ¼­ »ç¿ë¾ÈÇÔ
	this.has_iframe_doc = false;
	this.iframe_info = iframeinfo;
	if(this.iframe_info != null 
		&& ((this.iframe_info[0] == "id" && _window.document.getElementById(this.iframe_info[1]) != null)
			|| (this.iframe_info[0] == "url" && this.iframe_info[1] != ""))){
		this.has_iframe_doc = true;	// iframe¿ë º°µµ ¹®¼­¸¦ »ç¿ëÇÏ´Â°æ¿ì
	}
	this.display_week = ["ÀÏ", "¿ù", "È­", "¼ö", "¸ñ", "±Ý", "Åä"];
	this.init = function(obj, target_func, select_date){
		if(!this.use_iframe && __browser.is_ie){
			this.object = this.window.createPopup();
			this.obj_doc = this.object.document;
		}else{
			if(!(this.has_iframe_doc && this.iframe_info[0] == "id")){
				this.object = this.window.document.createElement("IFRAME");
				this.object.frameBorder = "0";
				this.object.style.display = "none";
				this.window.document.body.appendChild(this.object);
			}else{
				this.object = this.window.document.getElementById(this.iframe_info[1]);
			}
			this.object.style.border = this.border;
			this.object.style.position = "absolute";
			if(this.window.__has_calendar_event == null || this.window.__has_calendar_event != true){
				__dom.attach_event(this.window.document.body, "onmousedown", Object.bind_event_listener(window, this, this.hide_calendar)); 
				this.window.__has_calendar_event = true;
			}
		}
		if(this.has_iframe_doc && this.iframe_info[0] != "id"){
			__dom.attach_event(this.object, "onload", Object.bind_event_listener(window, this, this.iframe_init, obj, target_func, select_date));
			this.object.src = this.iframe_info[1];
		}else{
			this.obj_doc = this.object.contentWindow.document;
			if(this.has_iframe_doc && this.iframe_info[0] == "id"){
				this.obj_doc.body.innerHTML = this.insert_calendar();
			}else{
				this.obj_doc.write(this.insert_calendar());
				this.obj_doc.close();
			}
			this.obj_doc.body.style.padding = "4 4 4 4";
			this.obj_doc.body.style.margin = "0 0 0 0";
			__dom.get_window(this.obj_doc.body).js_func = this;
			__dom.attach_event(this.obj_doc.body, "oncontextmenu", function(e){__dom.event.return_value(e, false);});
			if(obj != null) this.show(obj, target_func, select_date);
		}
	};
	this.iframe_init = function(e, obj, target_func, select_date){
		this.obj_doc = this.object.contentWindow.document;
		this.obj_doc.body.innerHTML = this.insert_calendar();
		__dom.get_window(this.obj_doc.body).js_func = this;
		__dom.attach_event(this.obj_doc.body, "oncontextmenu", function(e){__dom.event.return_value(e, false);});
		if(obj != null) this.show(obj, target_func, select_date);
	}
	this.show = function(obj, target_func, select_date){
		this.target_obj = obj;
		if(target_func != null) this.target_func = target_func;
		if(select_date != null){
			this.selected_date = select_date;
		}else{
			this.selected_date = obj.value;
		}
		if(this.selected_date == null) this.selected_date = "";
		if(typeof(this.selected_date) == "string"){
			if(this.selected_date.trim() == ""){
				this.selected_date = new Date();
			}else{
				var datearr = this.selected_date.split(/[\-\/\.]/);
				if(datearr[0].length > 4) datearr[0] = datearr[0].substring(0, 4);
				if(datearr[1] == null) datearr[1] = "01";
				if(datearr[2] == null) datearr[2] = "01";
				this.selected_date = new Date(parseInt(datearr[0], 10), parseInt(datearr[1], 10) - 1, parseInt(datearr[2], 10));
			}
		}
		this.show_date = new Date(this.selected_date.getFullYear(), this.selected_date.getMonth(), 1, 0, 0, 0);
		this.set_calendar();
		var position = __dom.get_position(obj);
		position.y += obj.offsetHeight;
		position.x += this.offset_x;
		position.y += this.offset_y;
		if(position.x > (this.window.document.body.clientWidth / 2)) position.x -= (parseInt(this.width, 10) - obj.offsetWidth) + this.offset_x;
		if(position.y > (this.window.document.body.clientHeight / 2)) position.y -= parseInt(this.height, 10) + obj.offsetHeight + this.offset_y;
		
		if(!this.use_iframe && __browser.is_ie){
			this.object.show(position.x - this.window.document.body.scrollLeft, position.y - this.window.document.body.scrollTop, this.width, this.height, this.window.document.body);
		}else{
			if(this.window.__show_calendar != null) this.window.__show_calendar.style.display = "none";
			this.object.style.left = position.x;
			this.object.style.top = position.y;
			this.object.style.width = this.width;
			this.object.style.height = this.height;
			this.object.style.display = "";
			this.window.__show_calendar = this.object;
		}
		if(__browser.is_firefox){
			window.iframe_field = this.object.contentWindow.document.getElementById("id_first_focus");
			setTimeout("iframe_field.focus()", 250);			
		}else{
			try{this.object.contentWindow.document.getElementById("id_first_focus").focus();}catch(e){}
		}
	};
	this.is_show = function(){
		if(this.object != null){
			if(!this.use_iframe && __browser.is_ie){
				return null;
			}else{
				return (this.object.style.display == "none"?false:true);
			}
		}else{
			return false;
		}
	};
	this.hide_calendar = function(e){
		if(this.window.__show_calendar != null){
			if(!this.use_iframe && __browser.is_ie){
				this.object.hide();
			}else{
				this.object.style.display = "none";
				this.window.__show_calendar = null;
			}
			if(e != null){
				__dom.event.return_value(e, false);
				__dom.event.cancel_bubble(e, true);
			}
		}
	};
	this.remove = function(){
		if(this.object != null){
			if(this.use_iframe || __browser.is_firefox){
				__dom.remove_node(this.object);
			}
			this.object = null;
		}
	};
	this.insert_calendar = function(){
		var hl = "", c;
		if(!this.has_iframe_doc){
			hl += "<html><head>";
			hl += "<style>";
			hl += "A {COLOR: inherit; TEXT-DECORATION: none;}";
			hl += "A:link {COLOR: inherit; TEXT-DECORATION: none;}";
			hl += "A:visited {COLOR: inherit; TEXT-DECORATION: none;}";
			hl += "A:active {COLOR: inherit; TEXT-DECORATION: none;}";
			hl += "A:hover {COLOR: inherit; TEXT-DECORATION: none;}";
			hl += "</style>";
		}
		hl += "<script>";
		hl += "var js_win;";
		hl += "var js_func;";
		hl += "</scr" + "ipt>";
		if(!this.has_iframe_doc) hl += "</head>";
		if(!this.has_iframe_doc){
			hl += "<body onselectstart=\"window.event.returnValue = false;\"";
			hl += " style=\"padding:4 4 4 4;margin:0 0 0 0;" + (__browser.is_ie?"border:" + this.border + ";":"") + "background-color:white;width:100%;height:100%;overflow:hidden;font-size:9pt;font-family:±¼¸² arial;\"";
			hl += ">";
		}
		hl += "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width:" + (this.width - 8) + "px;background-color:#EDF4F4;table-layout:fixed;border-collapse:collapse;\">";
		hl += "<tr><td style=\"width:20px;font-size:11px;color:#111;cursor:pointer;border:1px solid #BAD4D4;text-align:center;\" onclick=\"js_func.calendar_move(-12);\"><a href=\"javascript:void(0);\" id=\"id_first_focus\">&lt;&lt;</a></td>";
		hl += "<td style=\"width:15px;font-size:11px;color:#111;cursor:pointer;border:1px solid #BAD4D4;text-align:center;\" onclick=\"js_func.calendar_move(-1);\"><a href=\"javascript:void(0);\">&lt;</a></td>";
		hl += "<td style=\"font-family:Tahoma;font-size:11px;text-align:center;color:#555;font-weight:bold;border:1px solid #BAD4D4;\" id=\"display_month\"></td>";
		hl += "<td style=\"width:15px;font-size:11px;color:#111;cursor:pointer;border:1px solid #BAD4D4;text-align:center;\" onclick=\"js_func.calendar_move(1);\"><a href=\"javascript:void(0);\">&gt;</a></td>";
		hl += "<td style=\"width:20px;font-size:11px;color:#111;cursor:pointer;border:1px solid #BAD4D4;text-align:center;\" onclick=\"js_func.calendar_move(12);\"><a href=\"javascript:void(0);\">&gt;&gt;</a></td></tr></table>";
		hl += "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width:" + (this.width - 8) + "px;border-bottom:1px solid #BAD4D4;table-layout:fixed;border-collapse:collapse;\">";
		hl += "<tr>";
		for(var i = 0; i < this.display_week.length; i++){
			if(i == 0){
				c = "#A53439";
			}else if(i == 6){
				c = "#0B4AAA";
			}else{
				c = "#111";
			}
			hl += "<td style=\"font-family:Tahoma;font-weight:bold;font-size:11px;text-align:center;border-bottom:1px solid #DEE7EF;color:" + c + ";\">" + this.display_week[i] + "</td>";
		}
		hl += "</tr></table>";
		hl += "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width:" + (this.width - 8) + "px;table-layout:fixed;margin-top:2px;\" id=\"display_day\">";
		for(var i = 0; i < 6; i++){
			hl += "<tr>";
			for(var j = 0; j < 7; j++){
				hl += "<td style=\"font-family:Tahoma;font-size:11px;text-align:right;padding:2 3 2 3;cursor:pointer;\" onclick=\"js_func.get_date(this);\"></td>";
			}
			hl += "</tr>";
		}
		hl += "</table>";
		if(!this.has_iframe_doc) hl += "</body></html>";
		return hl;
	};
	this.set_calendar = function(){
		var dis_mon, dis_day, dis_tds, start_date, t_day, s_day, str_date;
		dis_mon = this.obj_doc.getElementById("display_month");
		dis_day =  this.obj_doc.getElementById("display_day");
		dis_tds = dis_day.getElementsByTagName("TD");
		t_day = (new Date()).to_date_string();
		s_day = this.selected_date.to_date_string();
		dis_mon.innerHTML = this.show_date.getFullYear() + "-" + (this.show_date.getMonth() + 1);
		start_date = new Date(this.show_date.getFullYear(), this.show_date.getMonth(), this.show_date.getDate(), 0, 0, 0);
		start_date.setDate(start_date.getDate() + (0 - start_date.getDay()));
		for(var i = 0; i < dis_tds.length; i++){					
			if(start_date.getMonth() == this.show_date.getMonth()){
				if(__holiday.is_holiday(start_date)){
					if(start_date.getDay() == 6){
						dis_tds[i].style.color = "#0B4AAA";
					}else{
						dis_tds[i].style.color = "#A53439";
					}
				}else{
					dis_tds[i].style.color = "#111";
				}
			}else{
				dis_tds[i].style.color = "gray";
			}
			dis_tds[i].innerHTML = "<a href=\"javascript:void(0);\" style=\"color:" + dis_tds[i].style.color + "\">" + start_date.getDate() + "</a>";	
			str_date = start_date.to_date_string();
			dis_tds[i].style.border = "0px";
			dis_tds[i].style.backgroundColor = "";
			if(str_date == t_day){
				dis_tds[i].style.border = "1px solid black";
			}
			if(str_date == s_day){
				dis_tds[i].style.backgroundColor = "#DEE7EF";
			}
			dis_tds[i].setAttribute("date", str_date);
			start_date.setDate(start_date.getDate() + 1);
		}
	};
	this.calendar_move = function(offset){
		this.show_date.setMonth(this.show_date.getMonth() + offset);
		this.set_calendar();
	};
	this.get_date = function(obj){
		if(this.target_func != null){
			this.target_func(obj.getAttribute("date"), this.target_obj);
		}else{
			this.target_obj.value = obj.getAttribute("date");
		}
		try{this.target_obj.focus();}catch(e){}
		this.hide_calendar();
	};
	this.init(obj, target_func, select_date);
}
var common_func = {
set_field:function(fieldName, fieldValue, form){
	var f = (form!=null?form:document.forms[0]);
	var fieldObj = f.elements[fieldName];
	if(fieldValue.constructor == Number){
		fieldValue = fieldValue.toString(10);
	}
	if(fieldObj != null){
		fieldObj.value = fieldValue;
	}else{
		__dom.insert_adjacent_html(f, "beforeEnd", "<input type=\"hidden\" name=\"" + fieldName + "\" value=\"" + fieldValue.input_val() + "\">");
	}
},
set_id_text:function(idStr, valueStr){
	var idobj = document.getElementById(idStr);
	if(idobj != null){
		idobj.innerHTML = valueStr.html_text();
	}
},
submit_doc_info:function(fields, info, return_type_check, __click){
	var xml_http, post_url, submit_data, return_val;
	if(return_type_check == null) return_type_check = true;
	if(__click == null) __click = true;
	if(info!=null && info.url != null){
		post_url = info.url;
	}else{
		info = (info!=null?info:doc_info);
		post_url = "/" + info.db_path + "/" + (info.view != ""?info.view:"0") + "/" + info.unid + "?EditDocument&Seq=1";
	}
	submit_data = "";
	if(__click) submit_data = "__Click=0&";
	for(var idx in fields){
		submit_data += idx + "=" + fields[idx].encode() + "&";
	}
	submit_data += "%25%25PostCharset=UTF-8";
	xml_http = __dom.get_xmlhttp();
	xml_http.open("POST", post_url, false);
	xml_http.send(submit_data);
	if(return_type_check){
		if(xml_http.getResponseHeader("content-type").search(/text\/plain/i) != -1){
			return_val = eval("(" + xml_http.responseText + ")");
			if(return_val != null){
				return return_val;
			}else{
				return {is_error:true, error_type:"alert" ,error_msg:""};
			}
		}else{
			return {is_error:true, error_type:"sessionclose", errormsg:""};
		}
	}else{
		return {text:xml_http.responseText, object:xml_http};
	}
},
get_xml_doc:function(xml_http){
	var xml_doc, xml_str;
	if(__browser.is_ie){
		if(xml_http.responseText.search(/[^\u0000\u0009\u000A\u000D\u0020-\uD7FF\uF900-\uFFFD]/) != -1){
			xml_doc = new ActiveXObject("Microsoft.XMLDOM");
			xml_str = xml_http.responseText.replace(/([^\u0000\u0009\u000A\u000D\u0020-\uD7FF\uF900-\uFFFD])/gi, "?");
			xml_doc.loadXML(xml_str);
		}else{
			xml_doc = xml_http.responseXML;
		}
	}else{
		xml_doc = xml_http.responseXML;
	}
	return xml_doc.documentElement;
},
valid_check:function(info, form, common_display){
	if(common_display==null) common_display = true;
	if(form == null) form = document.forms[0];	
	var field, count, valid, object, return_info, reg;
	for(var i = 0; i < info.length; i++){
		count = 0;
		if(info[i].condition != null && !info[i].condition(form)) continue;
		if(typeof(info[i].field) == "string"){
			field = form.elements[info[i].field];
		}else{
			field = info[i].field;
		}
		if(field == null) continue;
		if(!Object.is_array(field)) field = Object.to_array(field);
		reg = null;
		if(info[i].check_type == "regexp") reg = new RegExp(info[i].pattern, info[i].flag);
		for(var j = 0; j < field.length; j++){
			valid = true;
			if(info[i].element_condition != null && !info[i].element_condition(form, (field.length==1?null:j))) continue;
			object = field[j];
			switch(info[i].check_type){
				case "null":
					if(object.value.trim() == ""){
						valid = false;
					}
					break;
				case "selectbox":
					if(object.options.selectedIndex == -1 || object.options[object.options.selectedIndex].value == info[i].null_value){
						valid = false;
					}
					break;
				case "checked":
					if(object.checked) count++;
					break;
				case "range":
					switch(info[i].comp_type){
						case "number":
							if(!(Number(object.value) >= info[i].min && Number(object.value) <= info[i].max)){
								valid = false;
							}
							break;
						default:
							if(!(object.value >= info[i].min && object.value <= info[i].max)){
								valid = false;
							}
							break;
					}
					break;
				case "regexp":
					if(!reg.test(object.value)){
						valid = false;
					}
					break;
				case "length":
					if(!(object.value.trim().length >= info[i].min && object.value.trim().length <= info[i].max)){
						valid = false;
					}
					break;
				case "byte_length":
					var str = object.value.trim();
					var str_len = str.byte_length();
					if(!(str_len >= info[i].min && str_len <= info[i].max)){
						valid = false;
					}
					break;
				case "comp":
					if(object.value != info[i].comp_value){
						valid = false;
					}
					break;
				case "not_comp":
					if(object.value == info[i].comp_value){
						valid = false;
					}
					break;
			}
			if(!valid) break;
		}
		if(info[i].check_type == "checked" && count < info[i].min){
			valid = false;
			object = field[0];
		}
		if(!valid){
			return_info = info[i];
			break;
		}
	}
	if(valid){
		return {valid:true, info:null};
	}else{
		try{
			if(common_display){
				__dom.get_window(object).alert(return_info.msg);
				object.focus();
			}
		}catch(e){}
		return {valid:false, info:return_info, object:object};
	}
},
get_return_url:function(){
	try{
		var view_info = parent.document.getElementById("fm_view_info").contentWindow;
		if(view_info != null && view_info.returnUrl != null){
			return view_info.returnUrl;
		}else{
			return "";
		}
	}catch(e){
		return "";
	}
},
check_session:function(){
	var result = __xml.request("g", "/main.nsf/gs?open", "text/plain", false, null, null, false);
	if(result.valid){
		return (result.value.inline() == "true"?true:false);
	}else{
		return false;
	}
},
dump:""
};
/* Main ±¸¼º */
var tab_idx = 1;
/* MenuÁ¤º¸ */
var __site_menu = [];
(function(){
	var m = __site_menu;
	m["M2"] = ["¿¬±¸ÀÚ·á",[],"","","/keei/keei_img/new/navi_title_01.jpg", false];
	m["M6"] = ["¿¬±¸»ç¾÷",[],"","","/keei/keei_img/new/navi_title_02.jpg", false];
	m["M1"] = ["Çö¾ÈÀÌ½´",[],"","","/keei/keei_img/new/navi_title_03.jpg", false];
	m["M5"] = ["°í°´¼¾ÅÍ",[],"","","/keei/keei_img/new/navi_title_04.jpg", false];
	m["M3"] = ["¿¬±¸¿ø¼Ò½Ä",[],"","","/keei/keei_img/new/navi_title_05.jpg", false];
	m["M7"] = ["¿¬±¸¿ø¼Ò°³",[],"","","/keei/keei_img/new/navi_title_06.jpg", false];
	// ¿¬±¸ÀÚ·á
	m["S3"]			= ["¿¬±¸º¸°í¼­",[],"M2","","", false];
		m["SS17"]		= ["±âº»¿¬±¸º¸°í¼­",[],"S3","/web_keei/d_results.nsf/loadview?openpage&viewname=main_research&restricttocategory=" + "±âº»¿¬±¸º¸°í¼­".encode() + "&Count=12&start=1&disprss=true","", true];
		m["SS18"]		= ["¼ö½Ã¿¬±¸º¸°í¼­",[],"S3","/web_keei/d_results.nsf/loadview?openpage&viewname=main_research&restricttocategory=" + "¼ö½Ã¿¬±¸º¸°í¼­".encode() + "&Count=12&start=1&category=rr&sub=trr&disprss=true","", true];
		m["SS19"]		= ["Á¤Ã¥¿¬±¸º¸°í¼­",[],"S3","/web_keei/d_results.nsf/loadview?openpage&viewname=main_research&restricttocategory=" + "Á¤Ã¥¿¬±¸º¸°í¼­".encode() + "&Count=12&start=1&category=rr&sub=prr&disprss=true","", true];
		m["SS21"]		= ["Á¤Ã¥(¿¬±¸)ÀÚ·á",[],"S3","/web_keei/d_results.nsf/loadview?openpage&viewname=main_research&restricttocategory=" + "Á¤Ã¥(¿¬±¸)ÀÚ·á".encode() + "&Count=12&start=1&category=rr&sub=prd&disprss=true","", true];
	m["S4"]			= ["Á¤±â°£Çà¹°",[],"M2","","", false];
		m["SS89"]		= ["±¹Á¦¿øÀ¯°¡°Ý",[],"S4","/web_keei/d_results.nsf/loadview?openpage&viewname=main_oil&restricttocategory=" + "±¹Á¦¿øÀ¯°¡°Ý".encode() + "&Count=12&start=1&disprss=true","", true];
		m["SS43"]		= ["±¹Á¦À¯°¡ / ½ÃÀåµ¿Çâ",[],"S4","/web_keei/d_results.nsf/loadview?openpage&viewname=main_oil&restricttocategory=" + "±¹Á¦À¯°¡/½ÃÀåµ¿Çâ".encode() + "&Count=12&start=1&category=ot&sub=mt&disprss=true","", true];
/*		m["SS90"]		= ["±¹Á¦¿øÀ¯½ÃÈ²/À¯°¡Àü¸Á",[],"S4","/web_keei/d_results.nsf/loadview?openpage&viewname=main_oil&restricttocategory=" + "±¹Á¦¿øÀ¯½ÃÈ²/À¯°¡Àü¸Á".encode() + "&Count=12&start=1&disprss=true","", true]; */
		/* m["SS48"]		= ["¼ö¿äÀü¸Á",[],"S4","/web_keei/d_results.nsf/loadview?openpage&viewname=demand_year&restricttocategory=$first&Count=12&start=1&category=rp&sub=y8&disprss=true","", true];*/
		m["SS48"]		= ["¿¡³ÊÁö¼ö¿äÀü¸Á",[],"S4","/web_keei/d_results.nsf/loadview?openpage&viewname=main_demand&restricttocategory=" + "¼ö¿äÀü¸Á".encode() + "&Count=12&start=1&category=rp&sub=y8&disprss=true","", true];
		m["SS26"]		= ["¿¡³ÊÁö°æÁ¦¿¬±¸",[],"S4","/web_keei/d_results.nsf/loadview?openpage&viewname=main_treatise&Count=12&start=1&category=st&sub=eer&disprss=true","", true];
		m["SS37"]		= ["¿¡³ÊÁöÆ÷Ä¿½º",[],"S4","/web_keei/d_results.nsf/loadview?openpage&viewname=main_analysis&restricttocategory=" + "¿¡³ÊÁöÆ÷Ä¿½º".encode() + "&Count=12&start=1&category=as&sub=fc&disprss=true","", true];
		m["SS51"]		= ["¿¡³ÊÁöÃÑÁ¶»çº¸°í¼­",[],"S4","/web_keei/d_results.nsf/loadview?openpage&viewname=main_static&restricttocategory=" + "¿¡³ÊÁöÃÑÁ¶»çº¸°í¼­".encode() + "&Count=12&start=1&category=es&sub=ts&disprss=true","", true];
		m["SS52"]		= ["¿¡³ÊÁöÅë°è¿¬º¸",[],"S4","/web_keei/d_results.nsf/loadview?openpage&viewname=main_static&restricttocategory=" + "¿¡³ÊÁöÅë°è¿¬º¸".encode() + "&Count=12&start=1&category=es&sub=ys&disprss=true","", true];
		m["SS53"]		= ["¿¡³ÊÁöÅë°è¿ùº¸",[],"S4","/web_keei/d_results.nsf/loadview?openpage&viewname=main_static&restricttocategory=" + "¿¡³ÊÁöÅë°è¿ùº¸".encode() + "&Count=12&start=1&category=es&sub=ms&disprss=true","", true];
		m["SS50"]		= ["Áö¿ª¿¡³ÊÁöÅë°è¿¬º¸",[],"S4","/web_keei/d_results.nsf/loadview?openpage&viewname=main_static&restricttocategory=" + "Áö¿ª¿¡³ÊÁöÅë°è¿¬º¸".encode() + "&Count=12&start=1&category=es&sub=ls&disprss=true","", true];
		m["SS55"]		= ["¼¼°è ¿¡³ÊÁö½ÃÀå ÀÎ»çÀÌÆ®",[],"S4","/web_keei/d_results.nsf/loadview?openpage&viewname=main_policy&restricttocategory=" + "¼¼°è ¿¡³ÊÁö½ÃÀå ÀÎ»çÀÌÆ®".encode() + "&Count=12&start=1&category=es&sub=wi&disprss=true","", true];
		m["SS36"]		= ["Country Profile",[],"S4","/web_keei/d_results.nsf/loadview?openpage&viewname=main_analysis&restricttocategory=" + "Country Profile".encode() + "&Count=12&start=1&category=as&sub=cp&disprss=true","", true];
		m["SS49"]		= ["Energy Info. Korea",[],"S4","/web_keei/d_results.nsf/loadview?openpage&viewname=main_static&restricttocategory=" + "Energy Info. Card".encode() + "&Count=12&start=1&category=es&sub=eic&disprss=true","", true];
	m["S5"] 			= ["¼¼¹Ì³ª/¹ßÇ¥ÀÚ·á",[],"M2", "/web_keei/d_results.nsf/loadview?openpage&viewname=main_seminar&restricttocategory=" + "¼¼¹Ì³ª".encode() + "&Count=12&start=1&category=sm&sub=smn&disprss=true","", false];
	m["O1"] 			= ["°ú°ÅÀÚ·áº¸±â",[],"M2", "","", false];
		m["SS22"]		= ["Working Paper",[],"O1","/web_keei/d_results.nsf/loadview?openpage&viewname=main_research&restricttocategory=" + "Working Paper".encode() + "&Count=12&start=1&category=rr&sub=wp","", true];
		m["SS38"]		= ["KEEI Issue Paper",[],"O1","/web_keei/d_results.nsf/loadview?openpage&viewname=main_analysis&restricttocategory=" + "KEEI Issue Paper".encode() + "&Count=12&start=1&category=as&sub=ki","", true];
		m["SS41"]		= ["Energy Insights",[],"O1","/web_keei/d_results.nsf/loadview?openpage&viewname=main_policy&restricttocategory=" + "Energy Insights".encode() + "&Count=12&start=1&category=pt&sub=ei","", true];
		m["SS40"]		= ["ÇØ¿Ü¿¡³ÊÁöÁ¤Ã¥µ¿Çâ",[],"O1","/web_keei/d_results.nsf/loadview?openpage&viewname=main_policy&restricttocategory=" + "ÇØ¿Ü¿¡³ÊÁöÁ¤Ã¥µ¿Çâ".encode() + "&Count=12&start=1&category=pt&sub=oep","", true];
		m["SS44"]		= ["¿¡³ÊÁö ÇÏÀÌ¶óÀÌÆ®",[],"O1","/web_keei/d_results.nsf/loadview?openpage&viewname=main_policy&restricttocategory=" + "¿¡³ÊÁö ÇÏÀÌ¶óÀÌÆ®".encode() + "&Count=12&start=1&category=pt&sub=eh","", true];
		m["N1"]		= ["µ¿ºÏ¾Æ¿¡³ÊÁö½ÃÀå",[],"O1","/web_keei/d_results.nsf/loadview?openpage&viewname=xmlneae&Count=12&start=1&category=pt&sub=oep","", true];
	m["K1"] 			= ["¿¡³ÊÁöÅë°è",[],"M2", "http://www.kesis.net/","", false];
	// ¿¬±¸»ç¾÷
	m["S27"]			= ["¿¬±¸¸ñÇ¥",[],"M6","/keei/profile/projectgoal.html","", false];
	m["S33"]			= ["¿¬±¸°ü·Ã»ç¾÷",[],"M6","/keei/profile/business.html","", false];
	m["S32"]			= ["¿¬±¸ºÐ¾ß",[],"M6","","", false];
		m["SS80"]		= ["¿¡³ÊÁöÁ¤Ã¥¿¬±¸",[],"S32","/keei/profile/part.html","", false];
		m["SS81"]		= ["³ì»ö¼ºÀå¿¬±¸",[],"S32","/keei/profile/part02.html","", false];
		m["SS82"]		= ["¿¡³ÊÁöÁ¤º¸Åë°è",[],"S32","/keei/profile/part03.html","", false];
		m["SS98"]		= ["¿¡³ÊÁö±¹Á¦Çù·Â",[],"S32","/keei/profile/part04.html","", false];
	m["S28"]			= ["¿¬±¸°úÁ¦",[],"M6","/unix/ProjectPlan2.nsf/loadview?openpage&viewname=xmlmain&Count=12&start=1","", true];
	m["S29"]			= ["¿¬±¸°úÁ¦Á¦¾È",[],"M6","/web_keei/ProjectProp.nsf/loadview?openpage&viewname=xmlmain&Count=12&start=1","", true];
	m["S30"]			= ["¿¬±¸°úÁ¦ÀÇ°ß¼ö·Å",[],"M6","/web_keei/ProjectColl.nsf/loadview?openpage&viewname=xmlmain&Count=12&start=1","", true];
	m["SS88"]			= ["¿¬±¸À±¸®ÇåÀå",[],"M6","/keei/profile/part05.html","", false];
	// Çö¾ÈÀÌ½´
	m["S1"]			= ["ÁÖ¿äÁ¤Ã¥Çö¾ÈÀÌ½´",[],"M1","/web_keei/pendingissue.nsf/loadview?openpage&viewname=xmlmain&Count=12&start=1&disprss=true","", true];
//		m["SS1"]		= ["¿¡³ÊÁöÁ¤Ã¥",[],"S1","/web_keei/faq07.nsf/loadview?openpage&viewname=xmlmain&Count=12&start=1&disprss=true","", true];
//		m["SS2"]		= ["¼®À¯¤ý°¡½º¤ý¼®Åº°æÁ¦",[],"S1","/web_keei/faq01.nsf/loadview?openpage&viewname=xmlmain&Count=12&start=1&disprss=true","", true];
//		m["SS3"]		= ["Àü·Â°æÁ¦",[],"S1","/web_keei/faq04.nsf/loadview?openpage&viewname=xmlmain&Count=12&start=1&disprss=true","", true];
//		m["SS4"]		= ["½ÅÀç»ý¤ýÁö¿ª¤ýÁý´Ü¿¡³ÊÁö",[],"S1","/web_keei/faq05.nsf/loadview?openpage&viewname=xmlmain&Count=12&start=1&disprss=true","", true];
//		m["SS5"]		= ["±âÈÄº¯È­",[],"S1","/web_keei/faq08.nsf/loadview?openpage&viewname=xmlmain&Count=12&start=1&disprss=true","", true];
//		m["SS6"]		= ["Á¤º¸¤ýÅë°è¤ý¸ðÇü",[],"S1","/web_keei/faq09.nsf/loadview?openpage&viewname=xmlmain&Count=12&start=1&disprss=true","", true];
//		m["SS7"]		= ["ÇØ¿ÜÀÚ¿ø°³¹ß¡¤±¹Á¦Çù·Â",[],"S1","/web_keei/faq10.nsf/loadview?openpage&viewname=xmlmain&Count=12&start=1","", true];
	m["S11"]		= ["¿¡³ÊÁö¼ö¿äÀü¸Á",[],"M1","/web_keei/demand.nsf/loadview?openpage&viewname=xmlmain&Count=12&start=1&disprss=true","", true];
	m["HT0"]			= ["Hot Topics",[],"M1","","", false];
		m["HT01"]		= ["³ì»ö¼ºÀå",[],"HT0","/web_keei/site.nsf/greengrowth?readform","", false];
		m["HT02"]		= ["±âÈÄº¯È­",[],"HT0","/web_keei/site.nsf/climaticchange?readform","", false];
		m["HT03"]		= ["ÇØ¿ÜÀÚ¿ø°³¹ß",[],"HT0","/web_keei/site.nsf/overseas_resource?readform","", false];
	m["S2"]			= ["UNFCCC±¹°¡º¸°í¼­",[],"M1","","", false];
		m["SS8"]		= ["¿ä¾à",[],"S2","/web_keei/NationComm.nsf/loadview?openpage&viewname=xmlmain&restricttocategory=" + "¿ä¾à".encode() + "&Count=12&start=1&disprss=true","", true];
		m["SS9"]		= ["±¹°¡È¯°æ",[],"S2","/web_keei/NationComm.nsf/loadview?openpage&viewname=xmlmain&restricttocategory=" + "±¹°¡È¯°æ".encode() + "&Count=12&start=1","", true];
		m["SS10"]		= ["¿Â½Ç°¡½º ¹èÃâÅë°è",[],"S2","/web_keei/NationComm.nsf/loadview?openpage&viewname=xmlmain&restricttocategory=" + "¿Â½Ç°¡½º ¹èÃâÅë°è".encode() + "&Count=12&start=1","", true];
		m["SS11"]		= ["Á¤Ã¥ / Á¶Ä¡",[],"S2","/web_keei/NationComm.nsf/loadview?openpage&viewname=xmlmain&restricttocategory=" + "Á¤Ã¥/Á¶Ä¡".encode() + "&Count=12&start=1","", true];
		m["SS12"]		= ["¿Â½Ç°¡½º ¹èÃâÀü¸Á",[],"S2","/web_keei/NationComm.nsf/loadview?openpage&viewname=xmlmain&restricttocategory=" + "¿Â½Ç°¡½º ¹èÃâÀü¸Á".encode() + "&Count=12&start=1","", true];
		m["SS13"]		= ["Ãë¾à¼ºÆò°¡ / ±âÈÄ¿µÇâ",[],"S2","/web_keei/NationComm.nsf/loadview?openpage&viewname=xmlmain&restricttocategory=" + "Ãë¾à¼ºÆò°¡/±âÈÄ¿µÇâ".encode() + "&Count=12&start=1","", true];
		m["SS14"]		= ["ÀçÁ¤Áö¿ø / ±â¼úÀÌÀü",[],"S2","/web_keei/NationComm.nsf/loadview?openpage&viewname=xmlmain&restricttocategory=" + "ÀçÁ¤Áö¿ø/±â¼úÀÌÀü".encode() + "&Count=12&start=1","", true];
		m["SS15"]		= ["¿¬±¸ / Ã¼°èÀû °üÃø",[],"S2","/web_keei/NationComm.nsf/loadview?openpage&viewname=xmlmain&restricttocategory=" + "¿¬±¸/Ã¼°èÀû °üÃø".encode() + "&Count=12&start=1","", true];
		m["SS16"]		= ["±³À° / ÈÆ·Ã / °ø°øÀÎ½Ä",[],"S2","/web_keei/NationComm.nsf/loadview?openpage&viewname=xmlmain&restricttocategory=" + "±³À°/ÈÆ·Ã/°ø°øÀÎ½Ä".encode() + "&Count=12&start=1","", true];
	// °í°´¼¾ÅÍ
	// m["S29"]		= ["°úÁ¦Á¦¾È",[],"M5","/web_keei/ProjectProp.nsf/loadview?openpage&viewname=xmlmain&Count=12&start=1","", true];
	// m["SS254"]	= ["³í¹®¸ðÁý¾È³»",[],"M5","/keei/profile/paper.html","", false];
	// m["S29"]		= ["°úÁ¦Á¦¾È",[],"M5","/web_keei/ProjectProp.nsf/loadview?openpage&viewname=xmlmain&Count=12&start=1","", true];
	// m["S30"]		= ["ÀÇ°ß¼ö·Å",[],"M5","/web_keei/ProjectColl.nsf/loadview?openpage&viewname=xmlmain&Count=12&start=1","", true];
	m["SS251"]		= ["Áú¹®°ú´äº¯(QnA)",[],"M5","http://voc.keei.re.kr/cust/center/board/qna/qnaList.do?BOARD_FLG=2&WSITE_FLG=2 ","", false];
	m["SS252"]		= ["ÀÚÁÖÇÏ´ÂÁú¹®(FAQ)",[],"M5","http://voc.keei.re.kr/cust/center/board/faq/faqList.do?BOARD_FLG=1&WSITE_FLG=2 ","", false];
	m["SS884"]		= ["°³¼±ÀÇ°ß",[],"M5","http://voc.keei.re.kr/cust/center/board/better/betterList.do?BOARD_FLG=5&WSITE_FLG=2 ","", false];
	m["SS882"]		= ["ºÎÁ¶¸®½Å°í¼¾ÅÍ",[],"M5","http://voc.keei.re.kr/cust/center/board/irrationality/irrationalityDeclared.do?BOARD_FLG=7&WSITE_FLG=2 ","", false];
	m["SS881"]		= ["ºÎÆÐ½Å°í»ó´ã",[],"M5","http://www.acrc.go.kr/acrc/board.do?command=searchDetail&method=searchList&menuId=01050101","", false];
	// ¿¬±¸¿ø¼Ò½Ä (Åë°èDB Code)
	m["P02"]			= ["¾Ë¸³´Ï´Ù",[],"M3","/web_keei/allim.nsf/loadview?openpage&viewname=main_notice&restricttocategory=" + "¾Ë¸³´Ï´Ù".encode() + "&Count=12&start=1&category=nt","", false];
//	m["SS73"]			= ["¿øÀåµ¿Á¤",[],"M3","/web_keei/ceo_movement.nsf/loadview?openpage&viewname=main_move&Count=12&start=1","", false];
	m["P05"]			= ["ÇØ¿Ü¿¬¼ö¡¤ÃâÀåº¸°í",[],"M3","/web_keei/allim.nsf/loadview?openpage&viewname=main_notice&restricttocategory=" + "´ë¿ÜÈ°µ¿".encode() + "&Count=12&start=1&category=out","", false];
	m["DD181"]		= ["º¸µµÀÚ·á",[],"M3","/web_keei/d_dataroom.nsf/loadview?openpage&viewname=main_option&restricttocategory=" + "º¸µµÀÚ·á".encode() + "&Count=12&start=1","", false];
		m["DD18"]		= ["º¸µµÀÚ·á",[],"DD181","/web_keei/d_dataroom.nsf/loadview?openpage&viewname=main_option&restricttocategory=" + "º¸µµÀÚ·á".encode() + "&Count=12&start=1","", false];
		m["D03"]		= ["¿¬±¸¿øÀÎ¿ëÀÚ·á",[],"DD181","/web_keei/d_dataroom.nsf/loadview?openpage&viewname=main_quotation&Count=12&start=1&category=" + "¿¬±¸¿øÀÎ¿ëÀÚ·á".encode(),"", true];
//	m["PR01"]			= ["»çÁø°¶·¯¸®",[],"M3","/web_keei/photo.nsf/webopen?readForm&count=6&category=2010&Start=1","", false];
//	m["PR02"]			= ["Çà»çµ¿¿µ»ó",[],"M3","/web_keei/PR.nsf/webopen?readForm&Count=5&category=" + "ÀüÃ¼º¸±â".encode(),"", false];
	m["R0"]			= ["ÀÎÀçÃ¤¿ë",[],"M3","","", false];
	m["SS254"]	= ["³í¹®¸ðÁý¾È³»",[],"M3","/keei/profile/paper.html","", false];
		m["R01"]		= ["Ã¤¿ë¾È³»",[],"R0","/keei/profile/recruit_info.html","", false];
		m["R02"]		= ["Ã¤¿ë°ø°í",[],"R0","/web_keei/d_recruit.nsf/loadview?openpage&viewname=main_recruit&Count=12&start=1","", true];
	// ¿¬±¸¿ø¼Ò°³
//	m["SS72"]			= ["ÀÎ»ç¸»",[],"M7","/keei/profile/intro_1.html","", false];
	m["MM01"]		= ["¿øÀå½Ç",[],"M7","","", false];
		m["MM21"]	= ["ÀÎ»ç¸»",[],"MM01","/keei/profile/ceo_1.html","", false];
		m["MM23"]	= ["¾à·Â",[],"MM01","/keei/profile/ceo_2.html","", false];
		m["SS73"]	= ["¿øÀåµ¿Á¤",[],"MM01","/web_keei/ceo_movement.nsf/loadview?openpage&viewname=main_move&Count=12&start=1","", false];
		m["MM27"]	= ["¿ª´ë¿øÀå",[],"MM01","/keei/profile/ceo_3.html","", false];
	m["SS74"]			= ["¿¬Çõ",[],"M7","/keei/profile/intro_2.html","", false];
	m["SS75"]			= ["Á¶Á÷µµ",[],"M7","/keei/personnel.nsf/intro_3?ReadForm","", false];		// 	m["SS75"]			= ["Á¶Á÷µµ",[],"M7","/keei/profile/intro_3.html","", false];
//	m["SS751"]		= ["½Ã¼³",[],"M7","/keei/profile/intro_4.html","", false];
	m["SS76"]			= ["ºÎ¼­º° ¼Ò°³",[],"M7","/keei/personnel.nsf/p_00?ReadForm","", false];		//	m["SS76"] = ["ºÎ¼­º° ¼Ò°³",[],"M7","/keei/profile/p_00.htm","", false]; =-=-=-=-=-=-=-=
	m["SS77"]			= ["°æ¿µ¸ñÇ¥",[],"M7","/keei/profile/goal.html","", false];
	m["S34"]			= ["°æ¿µ°ø½Ã",[],"M7","","", false];
		m["SS84"]		= ["°æ¿µ°ø½Ã-ÀÏ¹Ý",[],"S34","/keei/profile/manage_announce2.html","", false];
		m["SS83"]		= ["°æ¿µ°ø½Ã-¿¹»ê",[],"S34","/keei/profile/manage_announce.html","", false];
		m["SS85"]		= ["°ü°è¹ý·É-¹ý·ü",[],"S34","/keei/profile/manage_01.html","", false];
		m["SS86"]		= ["°ü°è¹ý·É-¹ý·ü ½ÃÇà·É",[],"S34","/keei/profile/manage_02.html","", false];
		m["SS87"]		= ["°ü°è¹ý·É-Á¤°ü",[],"S34","/keei/profile/manage_03.html","", false];
	m["SS78"]			= ["ÀüÈ­¹øÈ£",[],"M7","/keei/personnel.nsf/webopen?ReadForm&Count=150&start=1","", false];
	m["SS79"]			= ["¿¬±¸¿ø ¾àµµ",[],"M7","/keei/profile/guide.html","", false];
	m["PR0"]			= ["È«º¸ÀÚ·á½Ç",[],"M7","","", false];
		m["PR06"]		= ["È«º¸µ¿¿µ»ó",[],"PR0","/web_keei/PR.nsf/webopen2?readForm&Start=1","", false];
		m["PR04"]		= ["e-ºê·Î¼Å",[],"PR0","http://211.35.39.28/ebook/k-brochure/main/index.html","", false];
		m["PR01"]		= ["»çÁø°¶·¯¸®",[],"PR0","/web_keei/photo.nsf/webopen?readForm&count=6&category=2012&Start=1","", false];
		m["PR02"]		= ["Çà»çµ¿¿µ»ó",[],"PR0","/web_keei/PR.nsf/webopen?readForm&Start=1&category=All","", false];
		m["PR03"]		= ["¿¬Â÷º¸°í¼­",[],"PR0","/web_keei/photo.nsf/webopen01?OpenForm","", false];
		m["PR05"]		= ["20³â»ç",[],"PR0","http://211.35.39.28/ebook/20anniv/energy.htm","", false];
	// MyPage
	m["MY0"]			= ["My Page",[],"","","/keei/keei_img/new/navi_title_08.jpg", false];
	m["MY1"]			= ["È¸¿øÁ¤º¸ ¼öÁ¤",[],"MY0","/web_keei/members_keei.nsf/myinfo?open","", false];
	m["MY2"]			= ["³»°¡ µî·ÏÇÑ Áö½Ä",[],"MY0","/web_keei/usrmy.nsf/loadview?openpage&viewname=user_mywrite&restricttocategory=$user&start=1&count=12","", true];
	m["MY3"]			= ["³»°¡ ¿­¶÷ÇÑ Áö½Ä",[],"MY0","/web_keei/usrmy.nsf/loadview?openpage&viewname=user_myread&restricttocategory=$user&start=1&count=12","", true];
	m["MY4"]			= ["Àå¹Ù±¸´Ï", [],"MY0","/main.nsf/redir?open&t=cart","",false];
	m["MY5"]			= ["¸¶ÀÏ¸®Áö ¾È³»", [],"MY0","/web_keei/usrmy.nsf/mileage?openform","",true];
	// Help
	m["L0"]				= ["È¸¿ø¼­ºñ½º",[],"","","/keei/keei_img/new/navi_title_10.jpg", false];
	m["SM0"]			= ["»çÀÌÆ®¸Ê",[],"","","/keei/keei_img/letit_m12.gif", false];
	m["L10"]			= ["ÀÌ¿ë¾È³»",[],"L0","","", false];
		m["LL01"]		= ["ÀÚ·áÀÌ¿ë È¸¿øÁ¦ ¾È³»",[],"L10","/main.nsf/memberpage.html","", false];
		m["LL02"]		= ["¹ß°£¹° ±¸ÀÔ ¾È³»",[],"L10","/main.nsf/buybook.html","", false];
		m["LL03"]		= ["°³ÀÎÁ¤º¸ º¸È£¹æÄ§",[],"L10","/main.nsf/privacy.html","", false];
		m["LL04"]		= ["ÀÌ¸ÞÀÏÁÖ¼Ò ¹«´Ü ¼öÁý°ÅºÎ",[],"L10","/main.nsf/emailrefuse.html","", false];
		m["LL05"]		= ["RSS¼­ºñ½º",[],"L10","/main.nsf/rssinfo.html","", false];
		m["LL06"]		= ["»çÀÌÆ®¸Ê",[],"L10","/keei/sitemap.html","", false];
		m["LL07"]		= ["È¨ÆäÀÌÁö ÀÌ¿ë¾È³»",[],"L10","/main.nsf/home_info.html","", false];
		m["LL09"]		= ["¹ß°£ÀÚ·á ¾È³»",[],"L10","/main.nsf/pub_info.html","", false];
	m["L11"]			= ["È¸¿ø°¡ÀÔ",[],"L0","/web_keei/members_keei.nsf/Member?Open","", false];
	m["L12"]			= ["·Î±×ÀÎ",[],"L0","/web_keei/members_keei.nsf?Login","", false];
	m["L13"]			= ["¾ÆÀÌµðÃ£±â",[],"L0","/web_keei/members_keei.nsf/user_id?Open","", false];
	m["L14"]			= ["ºñ¹Ð¹øÈ£Ã£±â",[],"L0","/web_keei/members_keei.nsf/search_pw?Open","", false];
	// Quick ¸Þ´º
	m["DD0"]			= ["¿¡³ÊÁö¿ë¿©»çÀü",[],"","","/keei/keei_img/new/navititle_directory.jpg", false];
	m["SS253"]		= ["¿¡³ÊÁö¿ë¾î»çÀü",[],"DD0","/web_keei/glossary.nsf/frmTop?OpenForm&RestrictToCategory=" + "¤¡:".encode(),"", false];
	m["MAIL0"]		= ["¸ÞÀÏÁø",[],"","","/keei/keei_img/new/navititle_mail.jpg", false];
	m["M8"]			= ["¿¡³ÊÁö°æÁ¦ ¸ÞÀÏÁø",[],"MAIL0","","", false];
		m["LL99"]		= ["¸ÞÀÏÁø ¾È³»",[],"M8","/main.nsf/mailZ_info.html","", false];
		m["MZ01"]	= ["¸ÞÀÏÁø Áö³­È£ º¸±â",[],"M8","/web_keei/inew.nsf/loadview?openpage&viewname=xmlmain1&Count=12&start=1","", true];
	//¿¡³ÊÁöÀ§±â°æº¸
	m["W0"]			= ["¿¡³ÊÁöÀ§±â°æº¸",[],"","","/keei/keei_img/new/navititle_warning.jpg", false];
	//m["WW01"]		= ["°ü·Ã±Ù°Å",[],"W0","/keei/warning/intro_1.html","", false];
	m["WW02"]		= ["°æº¸´Ü°è",[],"W0","/keei/warning/intro_2.html","", false];
	m["WW03"]		= ["°æº¸¹ß·É",[],"W0","/main.nsf/loadview?openpage&viewname=main_warning&Count=12&start=1","", false];
	// ¿¡³ÊÁö ´º½º
	m["D0"]			= ["ÀÚ·á½Ç",[],"","","/keei/keei_img/new/navititle_news.jpg", false];
	m["D01"]			= ["¿¡³ÊÁö¿øº°",[],"D0","/web_keei/d_dataroom.nsf/loadview?openpage&viewname=main_energy&Count=12&start=1&disprss=true&category=" + "¿¡³ÊÁö¿øº° ÀüÃ¼º¸±â".encode(),"", true];
		m["DD01"]		= ["¼®À¯",[],"D01","/web_keei/d_dataroom.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "¼®À¯".encode() + "&Count=12&start=1","", true];
		m["DD02"]		= ["°¡½º",[],"D01","/web_keei/d_dataroom.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "°¡½º".encode() + "&Count=12&start=1","", true];
		m["DD03"]		= ["¼®Åº",[],"D01","/web_keei/d_dataroom.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "¼®Åº".encode() + "&Count=12&start=1","", true];
		m["DD04"]		= ["Àü·Â",[],"D01","/web_keei/d_dataroom.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "Àü·Â".encode() + "&Count=12&start=1","", true];
		m["DD05"]		= ["½ÅÀç»ý¿¡³ÊÁö",[],"D01","/web_keei/d_dataroom.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "½ÅÀç»ý¿¡³ÊÁö".encode() + "&Count=12&start=1","", true];
		m["DD06"]		= ["Áö¿ª¿¡³ÊÁö",[],"D01","/web_keei/d_dataroom.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "Áö¿ª¿¡³ÊÁö".encode() + "&Count=12&start=1","", true];
		m["DD07"]		= ["Áý´Ü¿¡³ÊÁö",[],"D01","/web_keei/d_dataroom.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "Áý´Ü¿¡³ÊÁö".encode() + "&Count=12&start=1","", true];
		m["DD08"]		= ["¿¡³ÊÁöÁ¤Ã¥",[],"D01","/web_keei/d_dataroom.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "¿¡³ÊÁöÁ¤Ã¥".encode() + "&Count=12&start=1","", true];
		m["DD09"]		= ["³ì»ö¼ºÀå",[],"D01","/web_keei/d_dataroom.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "³ì»ö¼ºÀå".encode() + "&Count=12&start=1","", true];
		m["DD10"]		= ["±âÈÄº¯È­",[],"D01","/web_keei/d_dataroom.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "±âÈÄº¯È­".encode() + "&Count=12&start=1","", true];
		m["DD11"]		= ["ÇØ¿ÜÀÚ¿ø°³¹ß",[],"D01","/web_keei/d_dataroom.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "ÇØ¿ÜÀÚ¿ø°³¹ß".encode() + "&Count=12&start=1","", true];
		m["DD12"]		= ["Á¤º¸/Åë°è",[],"D01","/web_keei/d_dataroom.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "Á¤º¸/Åë°è".encode() + "&Count=12&start=1","", true];
		m["DD13"]		= ["¸ðÇü°³¹ß",[],"D01","/web_keei/d_dataroom.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "¸ðÇü°³¹ß".encode() + "&Count=12&start=1","", true];
	m["D02"]			= ["ÀÚ·áÀ¯Çüº°",[],"D0","/web_keei/d_dataroom.nsf/loadview?openpage&viewname=main_type&Count=12&start=1&disprss=false&category=" + "ÀÚ·áÀ¯Çüº° ÀüÃ¼º¸±â".encode(),"", true];
		m["DD14"]		= ["¹ßÇ¥ÀÚ·á",[],"D02","/web_keei/d_dataroom.nsf/loadview?openpage&viewname=main_option&restricttocategory=" + "¹ßÇ¥ÀÚ·á".encode() + "&Count=12&start=1","", true];
		m["DD15"]		= ["±â»çÀÚ·á",[],"D02","/web_keei/d_dataroom.nsf/loadview?openpage&viewname=main_option&restricttocategory=" + "±â»çÀÚ·á".encode() + "&Count=12&start=1","", true];
		m["DD16"]		= ["±â°íÀÚ·á",[],"D02","/web_keei/d_dataroom.nsf/loadview?openpage&viewname=main_option&restricttocategory=" + "±â°íÀÚ·á".encode() + "&Count=12&start=1","", true];
		m["DD17"]		= ["Âü°íÀÚ·á",[],"D02","/web_keei/d_dataroom.nsf/loadview?openpage&viewname=main_option&restricttocategory=" + "Âü°íÀÚ·á".encode() + "&Count=12&start=1","", true];
//		m["DD18"]		= ["º¸µµÀÚ·á",[],"D02","/web_keei/d_dataroom.nsf/loadview?openpage&viewname=main_option&restricttocategory=" + "º¸µµÀÚ·á".encode() + "&Count=12&start=1","", true];
//	m["D03"]			= ["¿¬±¸¿øÀÎ¿ëÀÚ·á",[],"D0","/web_keei/d_dataroom.nsf/loadview?openpage&viewname=main_quotation&Count=12&start=1&category=" + "¿¬±¸¿øÀÎ¿ëÀÚ·á".encode(),"", true];
	// °ü·Ã»çÀÌÆ®
	m["N0"]			= ["°ü·Ã»çÀÌÆ®",[],"","","/keei/keei_img/new/navi_title_13.jpg", false];
		m["LL08"]		= ["ÆÐ¹Ð¸®»çÀÌÆ® ¾È³»",[],"N0","/main.nsf/fam_info.html","", false];
		m["N02"]		= ["°ü·Ã±â°ü",[],"N0","/web_keei/site.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "°ü·Ã±â°ü".encode() + "&Count=12&start=1","", true];
		m["N03"]		= ["°ü·Ã¿¬±¸¼Ò",[],"N0","/web_keei/site.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "°ü·Ã¿¬±¸¼Ò".encode() + "&Count=12&start=1","", true];
		m["N04"]		= ["°ü·ÃÀú³Î",[],"N0","/web_keei/site.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "°ü·ÃÀú³Î".encode() + "&Count=12&start=1","", true];
		m["N05"]		= ["¾ð·Ð±â°ü",[],"N0","/web_keei/site.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "¾ð·Ð±â°ü".encode() + "&Count=12&start=1","", true];
		m["N06"]		= ["DB¡¤±âÅ¸",[],"N0","/web_keei/site.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "DB¡¤±âÅ¸".encode() + "&Count=12&start=1","", true];
	// ÀÌ°É ¸øÃ£°Úµû 
	// ±¹Á¦¿øÀ¯½ÃÈ²
	m["OM0"] = ["±¹Á¦¿øÀ¯½ÃÈ²",[],"","","/keei/keei_img/letit_m14.gif", false];
	// ¾ø¾îÁø ¸Þ´º
/*
	// Æ÷·³ÀÚ·á½Ç
	m["F0"]				= ["Æ÷·³ÀÚ·á½Ç",[],"","","/keei/keei_img/new/navi_title_07.jpg", false];
	m["F01"]			= ["Æ÷·³ÀÚ·á½Ç ÀÌ¿ë¾È³»",[],"F0","/keei/opac/forum.html","", false];
	m["F02"]			= ["¿¡³ÊÁö¿øº°",[],"F0","/web_keei/d_forum.nsf/loadview?openpage&viewname=main_energy&Count=12&start=1","", true];
		m["FF01"]		= ["¼®À¯",[],"F02","/web_keei/d_forum.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "¼®À¯".encode() + "&Count=12&start=1","", true];
		m["FF02"]		= ["°¡½º",[],"F02","/web_keei/d_forum.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "°¡½º".encode() + "&Count=12&start=1","", true];
		m["FF03"]		= ["¼®Åº",[],"F02","/web_keei/d_forum.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "¼®Åº".encode() + "&Count=12&start=1","", true];
		m["FF04"]		= ["Àü·Â",[],"F02","/web_keei/d_forum.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "Àü·Â".encode() + "&Count=12&start=1","", true];
		m["FF05"]		= ["½ÅÀç»ý¿¡³ÊÁö",[],"F02","/web_keei/d_forum.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "½ÅÀç»ý¿¡³ÊÁö".encode() + "&Count=12&start=1","", true];
		m["FF06"]		= ["Áö¿ª¿¡³ÊÁö",[],"F02","/web_keei/d_forum.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "Áö¿ª¿¡³ÊÁö".encode() + "&Count=12&start=1","", true];
		m["FF07"]		= ["Áý´Ü¿¡³ÊÁö",[],"F02","/web_keei/d_forum.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "Áý´Ü¿¡³ÊÁö".encode() + "&Count=12&start=1","", true];
		m["FF08"]		= ["¿¡³ÊÁöÁ¤Ã¥",[],"F02","/web_keei/d_forum.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "¿¡³ÊÁöÁ¤Ã¥".encode() + "&Count=12&start=1","", true];
		m["FF09"]		= ["³ì»ö¼ºÀå",[],"F02","/web_keei/d_forum.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "³ì»ö¼ºÀå".encode() + "&Count=12&start=1","", true];
		m["FF10"]		= ["±âÈÄº¯È­",[],"F02","/web_keei/d_forum.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "±âÈÄº¯È­".encode() + "&Count=12&start=1","", true];
		m["FF11"]		= ["ÇØ¿ÜÀÚ¿ø°³¹ß",[],"F02","/web_keei/d_forum.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "ÇØ¿ÜÀÚ¿ø°³¹ß".encode() + "&Count=12&start=1","", true];
		m["FF12"]		= ["Á¤º¸/Åë°è",[],"F02","/web_keei/d_forum.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "Á¤º¸/Åë°è".encode() + "&Count=12&start=1","", true];
		m["FF13"]		= ["¸ðÇü°³¹ß",[],"F02","/web_keei/d_forum.nsf/loadview?openpage&viewname=main_category&restricttocategory=" + "¸ðÇü°³¹ß".encode() + "&Count=12&start=1","", true];
	m["F03"]			= ["ÀÚ·áÀ¯Çüº°",[],"F0","/web_keei/d_forum.nsf/loadview?openpage&viewname=main_type&Count=12&start=1","", true];
		m["FF14"]		= ["¹ßÇ¥ÀÚ·á",[],"F03","/web_keei/d_forum.nsf/loadview?openpage&viewname=main_option&restricttocategory=" + "¹ßÇ¥ÀÚ·á".encode() + "&Count=12&start=1","", true];
		m["FF15"]		= ["±â»çÀÚ·á",[],"F03","/web_keei/d_forum.nsf/loadview?openpage&viewname=main_option&restricttocategory=" + "±â»çÀÚ·á".encode() + "&Count=12&start=1","", true];
		m["FF16"]		= ["±â°íÀÚ·á",[],"F03","/web_keei/d_forum.nsf/loadview?openpage&viewname=main_option&restricttocategory=" + "±â°íÀÚ·á".encode() + "&Count=12&start=1","", true];
		m["FF17"]		= ["Âü°íÀÚ·á",[],"F03","/web_keei/d_forum.nsf/loadview?openpage&viewname=main_option&restricttocategory=" + "Âü°íÀÚ·á".encode() + "&Count=12&start=1","", true];
		m["FF18"]		= ["¿¬±¸ÀÚ·á",[],"F03","/web_keei/d_forum.nsf/loadview?openpage&viewname=main_option&restricttocategory=" + "¿¬±¸ÀÚ·á".encode() + "&Count=12&start=1","", true];
	¹ß°£¹° - ¿¬±¸º¸°í¼­
		m["SS23"]		= ["Position Paper",[],"S3","/web_keei/d_results.nsf/loadview?openpage&viewname=main_research&restricttocategory=" + "Position Paper".encode() + "&Count=12&start=1&category=rr&sub=pp","", true];
		m["SS24"]		= ["³âµµº° ¿¬±¸º¸°í¼­",[],"S3","/web_keei/d_results.nsf/loadview?openpage&viewname=research_year&restricttocategory=$first&Count=12&start=1&category=rr&sub=y1","", true, {top_line:true}];
		m["SS25"]		= ["¿¬±¸ºÐ¾ßº° ¿¬±¸º¸°í¼­",[],"S3","/web_keei/d_results.nsf/loadview?openpage&viewname=research_part&restricttocategory=$first&Count=12&start=1&category=rr&sub=y2","", true];
	¹ß°£¹° - Á¤±â°£Çà¹°
		m["SS27"] 	= ["³âµµº° ÇÐ¼ú³í¹®",[],"S4","/web_keei/d_results.nsf/loadview?openpage&viewname=treatise_year&restricttocategory=$first&Count=12&start=1&category=st&sub=y3","", true, {top_line:true}];
	¹ß°£¹° - ¼¼¹Ì³ª
		m["SS28"]		= ["¼¼¹Ì³ª",[],"S5","/web_keei/d_results.nsf/loadview?openpage&viewname=main_seminar&restricttocategory=" + "¼¼¹Ì³ª".encode() + "&Count=12&start=1&category=sm&sub=smn","", true];
		m["SS29"]		= ["½ÉÆ÷Áö¿ò",[],"S5","/web_keei/d_results.nsf/loadview?openpage&viewname=main_seminar&restricttocategory=" + "½ÉÆ÷Áö¿ò".encode() + "&Count=12&start=1&category=sm&sub=sp","", true];
		m["SS30"]		= ["ÄÁÆÛ·±½º",[],"S5","/web_keei/d_results.nsf/loadview?openpage&viewname=main_seminar&restricttocategory=" + "ÄÁÆÛ·±½º".encode() + "&Count=12&start=1&category=sm&sub=cf","", true];
		m["SS31"]		= ["Æ÷·³",[],"S5","/web_keei/d_results.nsf/loadview?openpage&viewname=main_seminar&restricttocategory=" + "Æ÷·³".encode() + "&Count=12&start=1&category=sm&sub=fr","", true];
		m["SS32"]		= ["°øÃ»È¸",[],"S5","/web_keei/d_results.nsf/loadview?openpage&viewname=main_seminar&restricttocategory=" + "°øÃ»È¸".encode() + "&Count=12&start=1&category=sm&sub=ph","", true];
		m["SS33"]		= ["Åä·ÐÈ¸",[],"S5","/web_keei/d_results.nsf/loadview?openpage&viewname=main_seminar&restricttocategory=" + "Åä·ÐÈ¸".encode() + "&Count=12&start=1&category=sm&sub=ds","", true];
		m["SS34"]		= ["¹ßÇ¥È¸",[],"S5","/web_keei/d_results.nsf/loadview?openpage&viewname=main_seminar&restricttocategory=" + "¹ßÇ¥È¸".encode() + "&Count=12&start=1&category=sm&sub=ps","", true];
		m["SS35"]		= ["³âµµº° ¼¼¹Ì³ª",[],"S5","/web_keei/d_results.nsf/loadview?openpage&viewname=seminar_year&restricttocategory=$first&Count=12&start=1&category=sm&sub=y4","", true, {top_line:true}];
	m["S6"]			= ["½ÉÃþºÐ¼® / ³í´Ü",[],"M2","","", false];
		m["SS37"]		= ["¿¡³ÊÁöÆ÷Ä¿½º",[],"S6","/web_keei/d_results.nsf/loadview?openpage&viewname=main_analysis&restricttocategory=" + "¿¡³ÊÁöÆ÷Ä¿½º".encode() + "&Count=12&start=1&category=as&sub=fc","", true];
		m["SS39"]		= ["³âµµº° ½ÉÃþºÐ¼® / ³í´Ü",[],"S6","/web_keei/d_results.nsf/loadview?openpage&viewname=analysis_year&restricttocategory=$first&Count=12&start=1&category=as&sub=y5","", true, {top_line:true}];
	m["S7"]			= ["Á¤Ã¥µ¿Çâ",[],"M2","","", false];
    	
		m["SS42"]		= ["³âµµº° Á¤Ã¥µ¿Çâ",[],"S7","/web_keei/d_results.nsf/loadview?openpage&viewname=policy_year&restricttocategory=$first&Count=12&start=1&category=pt&sub=y6","", true, {top_line:true}];
	m["S8"]			= ["À¯°¡µ¿Çâ / Àü¸Á",[],"M2","","", false];
		m["SS45"]		= ["³âµµº° À¯°¡µ¿Çâ / Àü¸Á",[],"S8","/web_keei/d_results.nsf/loadview?openpage&viewname=oil_year&restricttocategory=$first&Count=12&start=1&category=ot&sub=y7","", true, {top_line:true}];
	m["S9"]			= ["¼ö¿äÀü¸Á",[],"M2","","", false];
		m["SS46"]		= ["ºÐ±â ¿¡³ÊÁö ¼ö¿äÀü¸Á",[],"S9","/web_keei/d_results.nsf/loadview?openpage&viewname=main_demand&restricttocategory=" + "ºÐ±â¿¡³ÊÁö¼ö¿äÀü¸Á".encode() + "&Count=12&start=1&category=rp&sub=qrp","", true];
		m["SS47"]		= ["Áß±â ¿¡³ÊÁö ¼ö¿äÀü¸Á",[],"S9","/web_keei/d_results.nsf/loadview?openpage&viewname=main_demand&restricttocategory=" + "Áß±â¿¡³ÊÁö¼ö¿äÀü¸Á".encode() + "&Count=12&start=1&category=rp&sub=mrp","", true];
	m["S10"]			= ["¿¡³ÊÁöÅë°è",[],"M2","","", false];
		m["SS54"]		= ["³âµµº° ¿¡³ÊÁöÅë°è",[],"S10","/web_keei/d_results.nsf/loadview?openpage&viewname=static_year&restricttocategory=$first&Count=12&start=1&category=es&sub=y9","", true, {top_line:true}];
	m["S35"]			= ["ÃÖ±Ù¿¬±¸ÀÚ·á",[],"M2","/web_keei/d_results.nsf/loadview?openpage&viewname=main_recent&Count=12&start=1&category=rrd&sub=r1&disprss=true","", true];
	// Âü¿©¸¶´ç
	m["P0"]			= ["°øÁö»çÇ×",[],"M5","","", false];
		m["P01"]		= ["ÀüÃ¼º¸±â",[],"P0","/web_keei/allim.nsf/loadview?openpage&viewname=main_all&Count=12&start=1&category=all","", true];
		m["P03"]		= ["¼¼¹Ì³ª¡¤¿¬±¸¹ßÇ¥",[],"P0","/web_keei/allim.nsf/loadview?openpage&viewname=main_seminar&Count=12&start=1","", true];
		m["P04"]		= ["Åä·ÐÈ¸¡¤°£´ãÈ¸",[],"P0","/web_keei/allim.nsf/loadview?openpage&viewname=main_notice&restricttocategory=" + "Åä·ÐÈ¸¡¤°£´ãÈ¸".encode() + "&Count=12&start=1&category=ds","", true];
	m["S25"]			= ["¿¡³ÊÁö°æÁ¦ Ä¿¹Â´ÏÆ¼",[],"M5","","", false];
		
	m["S19"]			= ["¸Þ´º·Î Ã£±â",[],"M3","","", false];
		m["SS59"]		= ["¿Â½Ç°¡½º ¹èÃâÅë°è",[],"S19","/keei/esdb/e_g1_1.html","", false];
		m["SS60"]		= ["¼¼°è ¿¡³ÊÁö Åë°è",[],"S19","/keei/esdb/e_h1_1.html","", false];
		m["SS57"]		= ["¿¡³ÊÁö ÃÑÁ¶»ç Åë°è",[],"S19","/keei/esdb/e_c3_1.html","", false];
		m["SS58"]		= ["¿¡³ÊÁö ¼ö±Þ Åë°è",[],"S19","http://www.kesis.net/flex/new_main.jsp","", false];
	m["S21"]			= ["ºÐ·ùÄÚµå·Î Ã£±â",[],"M3","/keei/esdb/e_d.html","", false];
	m["S22"]			= ["±×·¡ÇÁ·Î º¸±â",[],"M3","/keei/esdb/e_e.html","", false];
	m["S23"]			= ["ºÐ·ùÃ¼°è",[],"M3","/keei/esdb/e_f.html","", false];
	m["S24"]			= ["¿¡³ÊÁöÅë°è¾È³»",[],"M3","","", false];
		m["SS61"]		= ["Åë°èÀÌ¿ë",[],"S24","/keei/esdb/dbstatement.htm","", false];
		m["SS62"]		= ["ÁÖ¿äÅë°è¿ë¾î",[],"S24","/keei/esdb/e_a2.html","", false];
		m["SS63"]		= ["¿¡³ÊÁö´ÜÀ§",[],"S24","/keei/esdb/e_a4.html","", false];
		m["SS64"]		= ["Åº¼Ò¹èÃâ°è¼ö",[],"S24","/keei/esdb/e_a5.html","", false];
		m["SS65"]		= ["Åë°èºÐ·ù±âÁØ",[],"S24","/keei/esdb/e_a6.html","", false];
		m["SS66"]		= ["´ë±âÈ¯°æ±âÁØ",[],"S24","/keei/esdb/e_a7.html","", false];
		m["SS67"]		= ["ÀúÈ²À¯°ø±Þ¡¤»ç¿ë",[],"S24","/keei/esdb/e_a8.html","", false];
		m["SS68"]		= ["ÇöÇàÀü±â¿ä±ÝÇ¥",[],"S24","/keei/esdb/e_a9.html","", false];
		m["SS69"]		= ["Àü±â¿ä±ÝÃßÀÌ",[],"S24","/keei/esdb/e_a10.html","", false];
		m["SS70"]		= ["¿¡³ÊÁö¿­·®È¯»ê ÀÚµ¿°è»ê",[],"S24","/web_keei/change.nsf/CaloryConverF?OpenForm","", false];
		m["SS71"]		= ["´ÜÀ§È¯»ê ÀÚµ¿°è»ê",[],"S24","/web_keei/change.nsf/UnitConverF?OpenForm","", false];
	// ¿¬±¸¿ø¼Ò°³
	m["ST88"]			= ["½Å°í¼¾ÅÍ",[],"M7","","", true];
		m["SS83"]		= ["°æ¿µ°ø½Ã",[],"S34","/keei/profile/manage_announce.html","", false];
*/
	for(var idx in m){
		if(m[idx][2] != ""){
			m[m[idx][2]][1].push(idx);
		}
	}
})();
function go_menu(code, is_return){
	is_return = (is_return == null?false:is_return);
	var  obj; var m = "";
	var c_host = document.location.hostname;
	c_host = "http://" + c_host;
	obj = __site_menu[code];
	if(obj == null) return;
	m = obj[3];
	try{
		while(obj != null && m == ""){
			obj = __site_menu[obj[1][0]];
			m = obj[3];
			if(m != "") break;
		}
	}catch(e){
		m = "";
	}
	if(m != ""){
		if(!is_return){
			if(obj[5]){
				var pagename = m.replace(/[\S\s]*\.nsf\/([\S\s]*)/i, "$1");
				var dbpath = m.replace(/([\S\s]*\.nsf)[\S\s]*/i, "$1");
				var param = "";
				if(m.indexOf("&") != -1) param = m.substring(m.indexOf("&"));
				try{
					var view_info_fm= parent.document.getElementById("fm_view_info");
					var view_info = view_info_fm.contentWindow;
					if(view_info_fm == null || (view_info_fm != null && view_info != null && view_info.dbpath != null && view_info.dbpath == dbpath)){
						document.location.href = c_host + m;
					}else{
						view_info.document.location.href = c_host + dbpath + "/drawlist?open" + param + "&" + (new Date()).getTime().toString(16);
					}
				}catch(e){
					document.location.href = c_host + m;
				}
			}else{
				if(m.search(/^http/i) != -1){
					window.open(m);
				}else{
					document.location.href = c_host + m;
				}
			}
		}
	}
	return;
}
//Æ÷ÅÐ Çì´õ ¸Þ´º Á¤ÀÇ 
function getInitPortalXML(){
	var initXML = "<KeeiMenu>";
	initXML+=	"<path>";		
	initXML+=		"<skinImage>http://www.keei.re.kr/keei/keei_img/new/skin/skin.png</skinImage>";	//½ºÅ² ÀÌ¹ÌÁö		
	initXML+=		"<skinData>http://www.keei.re.kr/keei/keei_img/new/skin/skinData.xml</skinData>";	//½ºÅ² ÀÌ¹ÌÁö¸¦ ±¸¼ºÇÒ XML	
	initXML+=		"<menuInfo>http://www.keei.re.kr/keei/keei_img/new/data/MenuInfo.xml</menuInfo>";	//¸Þ´ºÁ¤º¸¸¦ ±¸¼ºÇÒ XML
	initXML+=	"</path>";
	initXML+=	"<init>";
	var is_login = false;
			var has_session = false;
			if(__cookie.get_cookie("domauthsessid", true) != null){
				try{
					has_session = true;
					var ss = __xml.request("g", "/main.nsf/s_chk?open", "text", false, null, null, false);
					if(ss.search(/anonymous/i) != -1){
						has_session = false;
						__cookie.delete_cookie("DomAuthSessId");
					}
				}catch(e){
					has_session = true;
				}
				if(has_session){
					initXML+=		"<blnLogin>true</blnLogin>";		//·Î±×ÀÎ ¿©ºÎ
					initXML+=		"<userInfo name='Anonymous'  url='http://naver.com'	javaCall='mypageClick' />";
					is_login = true;
				}
			}
			if(!is_login){
					initXML+=		"<blnLogin>false</blnLogin>";		//·Î±×ÀÎ ¿©ºÎ
			}
	initXML+=		"<currentPageNum>0</currentPageNum>";					//È°¼ºÈ­ÇÒ ¸Þ´º¹øÈ£ 0:È¨È­¸é
	initXML+=		"<blnMain>true</blnMain>";							//¼­ºêÆäÀÌÁöÀÏ °æ¿ì false ¼ÂÆÃ
	initXML+=		"<loginURL url = 'login'	javaCall='loginClick' />";				//·Î±×ÀÎ ÆäÀÌÁö ÁÖ¼Ò
	initXML+=		"<logoutURL url = 'logout'	javaCall='loginClick' />";			//·Î±×ÀÎ ÆäÀÌÁö ÁÖ¼Ò
//	initXML+=		"<gage url = 'WW03'	javaCall='go_menu' level='1' />";	//À§±â°æº¸
	initXML+=	"</init>";
	initXML+= SetPopup();
	initXML+="</KeeiMenu>";
	return initXML;
}
//¼­ºê ¸Þ´º Á¤ÀÇ 
function getInitSubXML(){
	var initXML = "<KeeiMenu>";
	initXML+=	"<path>";	
	initXML+=		"<skinImage>http://www.keei.re.kr/keei/keei_img/new/skin/skin.png</skinImage>";	//½ºÅ² ÀÌ¹ÌÁö		
	initXML+=		"<skinData>http://www.keei.re.kr/keei/keei_img/new/skin/skinData.xml</skinData>";	//½ºÅ² ÀÌ¹ÌÁö¸¦ ±¸¼ºÇÒ XML	
	initXML+=		"<menuInfo>http://www.keei.re.kr/keei/keei_img/new/data/MenuInfo.xml</menuInfo>";	//¸Þ´ºÁ¤º¸¸¦ ±¸¼ºÇÒ XML
	initXML+=	"</path>";
	initXML+=	"<init>";
	initXML+=		"<blnMain>false</blnMain>";						//¼­ºêÆäÀÌÁöÀÏ °æ¿ì false ¼ÂÆÃ
	initXML+=		"<gage url = 'WW03'	javaCall='go_menu' level='1' />";		//À§±â°æº¸
	initXML+=	"</init>";
	initXML+="</KeeiMenu>";
	return initXML;
}
function loginClick(sKind) {
	if(sKind == "login"){
		location.href = "/web_keei/members_keei.nsf?login";
	}else{
		logout();
	}
}
function mypageClick() {
	go_menu('MY3');
}
function homeClick(url) {
	location.href = "/main.nsf/main.html";
}
function mainClick(url) {
	go_menu(url);
}
function subClick(url) {
	go_menu(url);
}
function submenuStatus(bStatus) {
	var oMenu = document.getElementById("wrap_flash_menu");
	if(oMenu){
		if(bStatus == "true"){
			oMenu.style.zIndex = 50;
		}else{
			oMenu.style.zIndex = 0;
		}
	}
}
function SubMenuReposition(bIsFirst){
	var oMenu = document.getElementById("wrap_flash_menu");
	if(oMenu){
		var _doc = document;
		var _docKey = "body";
		var oDoc = _doc[_docKey];
		var nCWidth = oDoc.clientWidth;
		var nLeft = (nCWidth / 2) - 494;
		if(nLeft < 0)
			nLeft = 0;
		
		oMenu.style.left = nLeft;
		if(oMenu.style.display = "none")
			oMenu.style.display = "";
		if(bIsFirst){
			var html = "";
			html += "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"988\" height=\"411\" id=\"KEEI_SubMenu\">";
			html += "<param name=\"movie\" value=\"http://www.keei.re.kr/keei/keei_img/new/KEEIMenu.swf?funtionName=getInitSubXML\" />";
			html += "<param name=\"quality\" value=\"high\">";
			html += "<PARAM NAME=wmode VALUE=transparent>";
			html += "<param name=\"allowScriptAccess\" value=\"sameDomain\">";
			html += "<param name=\"allowFullScreen\" value=\"true\" />";
			html += "<object type=\"application/x-shockwave-flash\" data=\"http://www.keei.re.kr/keei/keei_img/new/KEEIMenu.swf?funtionName=getInitSubXML\" width=\"988\" height=\"411\">";
			html += "<param name=\"quality\" value=\"high\" />";
			html += "<PARAM NAME=wmode VALUE=transparent>";
			html += "<param name=\"allowScriptAccess\" value=\"sameDomain\" />";
			html += "<p> ";
			html += "Either scripts and active content are not permitted to run or Adobe Flash Player version 10.1.0 or greater is not installed.";
			html += "<a href=\"http://www.adobe.com/go/getflashplayer\">";
			html += "<img src=\"http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif\" alt=\"Get Adobe Flash Player\" />";
			html += "</a>";
			html += "</object>";
			html += "</object>";
			oMenu.innerHTML = html;
		}
	}
}
var MainMenu = function(){
	var __win;
	var key_count = 0;
	var q = []; // {key:¸í·É¹øÈ£, action:p|m};
	var cur_obj = null;
	var offset = 20;				// ÇÑ¹ø¿¡ ¿òÁ÷ÀÏ %;
	var time_offset = 50;			// µ¿ÀÛ °£°Ý
	var menu_list = [
		["idm_bal", "M2"],
		["idm_inq", "M6"],
		["idm_issue", "M1"],
		["idm_res", "M5"],
		["idm_lib", "M3"],
//		["idm_stat", "M4"],
		["idm_mem","M7"]
	];
	this.is_active_css = function(){
		try{
			//if(__browser.is_firefox) alert(__dom.style.current_style(document.getElementById("idm_func"), "float"));
			return (__dom.style.current_style(document.getElementById("idm_menu_list"), "height") == "45px");
		}catch(e){
			return false;
		}
	};
	this.set = function(w, type){
		var is_login = false;
		var has_session = false;
		var c_h = "http://" + document.location.hostname;
		__win = (w!=null?w:window);
		var ss = __dom.get_stylesheets(window.document, 0);
		if(__browser.is_ie){
			__dom.stylesheet.add_rule(ss, "#wrap_body", "height:expression(document.body.clientHeight - 175 - 15);");
			__dom.stylesheet.add_rule(ss, "#wrap_body", "margin-bottom:15px;;");
		}else{
			//__dom.stylesheet.add_rule(ss, "#wrap_body", "margin-top:-74px");
			//__dom.stylesheet.add_rule(ss, "#wrap_body", "margin-bottom:-100px");
			//__dom.stylesheet.add_rule(ss, "#wrap_h_body", "padding:74px 0 100px 0");			
		}
		var html = "", menu, sub_menu;
		var sSpace = "<td width=4></td>";
		html += "<div id=\"wrap_func\">";
		html += "<table height=\"47\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"border-collapse:collapse;\">";
		html += "<tr height=22 valign=bottom><td>";
		html += "<table height=\"22\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"border-collapse:collapse;\">";
		html += "<tr valign=bottom>";
		if(__cookie.get_cookie("domauthsessid", true) != null){
			try{
				has_session = true;
				var ss = __xml.request("g", "/main.nsf/s_chk?open", "text", false, null, null, false);
				if(ss.search(/anonymous/i) != -1){
					has_session = false;
					__cookie.delete_cookie("DomAuthSessId");
				}
			}catch(e){
				has_session = true;
			}
			if(has_session){
				html += "<td>";
				html += "<li id=\"idm_logout\">";
				html += "<a href=\"#\" onclick=\"logout()\" tabindex=\"" + (++tab_idx) + "\">";
				html += "<img src=\"" + c_h + "/keei/keei_img/blank.gif\" alt=\"·Î±×¾Æ¿ô\" border=\"0\">";
				html += "</a></li>";
				html += "</td>";
				html += sSpace;
				html += "<td>";
				html += "<img src=\"" + c_h + "/keei/keei_img/new/mypage.jpg\" alt=\"My Page\" border=\"0\" onclick=\"go_menu('MY3');\" style=\"cursor:pointer\">";
				html += "</td>";
				html += sSpace;
				is_login = true;
			}
		}
		if(!is_login){
			html += "<td>";
			html += "<li id=\"idm_login\">";
			html += "<a href=\"" + c_h + "/web_keei/members_keei.nsf?login\" tabindex=\"" + (++tab_idx) + "\">";
			html += "<img src=\"" + c_h + "/keei/keei_img/blank.gif\" alt=\"·Î±×ÀÎ\" border=\"0\">";
			html += "</a></li>";
			html += "</td>";
			html += sSpace;
		}
		// È¸¿ø°¡ÀÔ ¹öÆ° Ã³¸®ºÎºÐ
		//html += "<td>";
		//html += "<img src=\"" + c_h + "/keei/keei_img/new/help.jpg\" alt=\"È¸¿ø°¡ÀÔ\" border=\"0\" onclick=\"go_menu('L11');\" style=\"cursor:pointer\">";
		//html += "</td>";
		//html += sSpace;
		html += "<td>";
		html += "<a href=\"mailto:webmaster@keei.re.kr\" tabindex=\"" + (++tab_idx) + "\"><img src=\"" + c_h + "/keei/keei_img/new/contact.jpg\" alt=\"Contact US\" border=\"0\" style=\"cursor:pointer\">";
		html += "</td>";
		html += sSpace;
		html += "<td>";
		html += "<img src=\"" + c_h + "/keei/keei_img/new/help.jpg\" alt=\"Help\" border=\"0\" onclick=\"go_menu('LL07');\" style=\"cursor:pointer\">";
		html += "</td>";
		html += sSpace;
		html += "<td>";
		html += "<img src=\"" + c_h + "/keei/keei_img/new/sitemap.jpg\" alt=\"Sitemap\" border=\"0\" onclick=\"go_menu('LL06');\" style=\"cursor:pointer\">";
		html += "</td>";
		html += sSpace;
		html += "<td>";
		html += "<img src=\"" + c_h + "/keei/keei_img/new/lang_english.jpg\" alt=\"English\" border=\"0\" onclick=\"location.href='/main.nsf/index_en.html';\" style=\"cursor:pointer\">";
		html += "</td>";
		html += sSpace;
/*
		html += "<li id=\"idm_search\">";
		html += "<div id=\"idm_main_search\">";
		html += "<img src=\"/keei/keei_img/topsmenu_search.gif\" border=\"0\" alt=\"ÅëÇÕ°Ë»ö\">";
		html += "<input type=\"text\" id=\"main_search_qt\" value='' class=\"input_textfield_m\" tabindex=\"" + (++tab_idx) + "\" onkeydown=\"main_search_key(event);\">";
		html += "<a href=\"#\" onclick=\"main_search();\" tabindex=\"" + (++tab_idx) + "\">";
		html += "<img src=\"" + c_h + "/keei/keei_img/blank.gif\" alt=\"ÅëÇÕ°Ë»ö\" border=\"0\">";
		html += "</a>";
		html += "</div>";
		html += "</li>";
		html += "</ul></div><hr>";
		html += "<div id=\"idm_metasearch\">";
		html += "<ul><li id=\"idm_meta_search\" class=\"first\">";
		html += "<a href=\"#\" onclick=\"window.open('http://keei.libsteps.com/meta/?skey=376&userid=','_blank','width=760,height=790,scrollbars=yes')\" tabindex=\"" + (++tab_idx) + "\">";
		html += "</a></li>";
*/
		html += "<td>";
		html += "<img src=\"" + c_h + "/keei/keei_img/new/size.jpg\" alt=\"English\" border=\"0\" >";
		html += "</td>";
		html += "<td>";
		html += "<img src=\"" + c_h + "/keei/keei_img/new/size_p.jpg\" alt=\"È­¸éÈ®´ë\" border=\"0\" onclick=\"__dom.zoom(parent.main_fm_set, '+')\" style=\"cursor:pointer\">";
		html += "</td>";
		html += "<td>";
		html += "<img src=\"" + c_h + "/keei/keei_img/new/size_m.jpg\" alt=\"È­¸éÃà¼Ò\" border=\"0\" onclick=\"__dom.zoom(parent.main_fm_set, '-')\" style=\"cursor:pointer\">";
		html += "</td>";
		html += "</tr></table>";
		html += "</td></tr>";
		html += "<tr height=25 valign=bottom><td align=right>";
		
		html += "<table height=\"25\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"border-collapse:collapse;\">";
		html += "<tr valign=bottom>";
		html += "<td>";
		html += "<input type=\"radio\" name=\"SearchTarget\" style=\"border:none;vertical-align:middle\" value=\"0\" checked>ÅëÇÕ°Ë»ö";
		html += "<input type=\"radio\" name=\"SearchTarget\" style=\"border:none;vertical-align:middle\" value=\"1\">¿ë¾î°Ë»ö";
		html += "</td>";
		html += sSpace;
		html += "<td valign=bottom>";
		html += "<table height=\"21\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"border-collapse:collapse;\">";
		html += "<tr>";
		html += "<td style=\"background:transparent url('/keei/keei_img/new/search_tatal_1.jpg') no-repeat scroll 0 0;\" align=center width=208 valign=middle>";
		html += "<input type=\"text\" id=\"main_search_qt\" value='' class=\"input_textfield_search\" tabindex=\"" + (++tab_idx) + "\" onkeydown=\"main_search_key(event);\">";
		html += "</td>"; 
		html += "<td>";
		html += "<img src=\"" + c_h + "/keei/keei_img/new/search_tatal_2.jpg\" alt=\"°Ë»ö\" border=\"0\" onclick=\"main_search();\" style=\"cursor:pointer\">";
		html += "</td>";
		html += "</tr></table>";
		html += "</td>";
		html += "</tr></table>";
		html += "</td></tr></table>";
		html += "</div><hr>";
	if(type=="sub"){
		html += "<script>SubMenuReposition(true)</script>";
	}
		__win.document.write(html);
		this.set_event();
	};
	this.set_event = function(){
			var oEl = window;
			sEventName = "resize";
			oObserver = function(){SubMenuReposition()};
	if(oEl.addEventListener){
		oEl.addEventListener(sEventName, oObserver, false);
	}else if(oEl.attachEvent){
		oEl.attachEvent('on'+sEventName, oObserver);
	}
	var oEl = window.document.body;
	sEventName = "submit";
			oObserver = function(){return false;};
	if(oEl.addEventListener){
		oEl.addEventListener(sEventName, oObserver, false);
	}else if(oEl.attachEvent){
		oEl.attachEvent('on'+sEventName, oObserver);
	}
	}
	this.event_focus = function(e, i_n, type){
		var sub_menu, ul_obj;
		var item, item_a;
		var action_type, is_complete = true;
		var info, obj_reg, menu_reg;
		if(!this.is_active_css())return;		// CSS ºñÈ°¼ºÈ­µÈ°æ¿ì
		if(type == "click"){
			if(cur_obj != null){
				cur_obj.key = this.get_key();
				cur_obj.action = "m";
				this.action(cur_obj.key, cur_obj.name, true, is_complete, true);
			}
			return;
		}
		item = __win.document.getElementById(i_n);
		item_a = item.getElementsByTagName("A")[0];
		if(__browser.is_ie){
			sub_menu = __win.document.getElementById(i_n + "_sub");
			if(sub_menu != null && (sub_menu.getAttribute("is_ie") == null || sub_menu.getAttribute("is_ie") != "true")){
				//__win.document.body.appendChild(sub_menu);
				document.body.insertAdjacentElement("afterBegin", sub_menu);
				sub_menu.setAttribute("is_ie", "true");
			}
		}else{
			sub_menu = __win.document.getElementById(i_n + "_sub");
		}
		// ÀÌÀü ¸Þ´º
		if(cur_obj != null && cur_obj.name != i_n){
			cur_obj.key = this.get_key();
			cur_obj.action = "m";
			this.action(cur_obj.key, cur_obj.name, true, is_complete, false);
		}
		if(type == "p"){
			action_type = "p";
		}else if(type == "m" || type == "mouse_out"){
			action_type = "m";
		}else if(type == "sub_p"){
			action_type = "p";
			is_complete = true;
		}
		if(cur_obj == null || cur_obj.name != i_n || (cur_obj.name == i_n && cur_obj.action != action_type)){
			if(q[i_n] == null){
				q[i_n] = {key:this.get_key(), action:action_type, name:i_n, main:item, main_a:item_a, sub:sub_menu};
			}else{
				q[i_n].key = this.get_key();
				q[i_n].action = action_type;
			}
			cur_obj = q[i_n];
			this.action(q[i_n].key, i_n, true, is_complete, false);
		}
		__dom.event.return_value(e, false);
		__dom.event.cancel_bubble(e, true);
	};
	this.get_key = function(){
		return key_count++;
	};
	this.flash_show = function(flag){
		var obj = __win.document.getElementById("id_flash");
		if(obj != null){
			if(!flag && obj.style.display != "none"){
				obj.parentNode.style.width = obj.offsetWidth;
				obj.parentNode.style.height = obj.offsetHeight;
			}
			obj.style.display = (flag?"":"none");
		}
	};
	this.action = function(key, i_n, is_first, is_complete, show_flash){
		var qa = q[i_n];
		var pos, width, height, c_w, c_h, t_w,t_h;
		if(qa.key != key) return;		// ÇØ´ç item¿¡ »õ·Î¿î actionÀÌ ÀÖÀ½.
		var parent_pos = __dom.get_position(qa.main);
		if(!__browser.is_ie){
			pos = __dom.style.current_style(qa.main_a, "backgroundPosition");
			if(pos == null || pos.trim() == "") pos = "0 0";
			pos = pos.split(" ");
		}else{
			pos = [];
			//pos[0] =  __dom.style.current_style(qa.main_a, "backgroundPositionX");
			pos[1] =  __dom.style.current_style(qa.main_a, "backgroundPositionY");
		}
		//pos[0] = pos[0];
		pos[1] = pos[1].trim();
		if(qa.action == "p"){
			pos = "-121px " + pos[1];
		}else{
			pos = "0 " + pos[1];
		}
		qa.main_a.style.backgroundPosition = pos;
		
		if(qa.action == "p"){
			this.flash_show(false);
			qa.sub.style.position = "absolute";
			qa.sub.style.left = parent_pos.x + (i_n=="ir_issue"?0:10);
//			qa.sub.style.top = parent_pos.y + parent_pos.height - 4;
			qa.sub.style.top = parent_pos.y + parent_pos.height + 9;
//			qa.sub.style.border = "1px solid #cbcbcb";
			qa.sub.style.border = "1px solid #09386b";
			qa.sub.style.borderTop = "0px";
			qa.sub.style.padding = "7px 2px 7px 2px";
			t_w = qa.sub.scrollWidth;
			if(t_w < 120) t_w = 120;
			t_h = qa.sub.scrollHeight;
			if(!__browser.is_ie){
				t_h -= (qa.sub.style.paddingTop!=""?qa.sub.style.paddingTop.replace("px", ""):0);
				if(!__browser.is_opera) t_h -= (qa.sub.style.paddingBottom!=""?qa.sub.style.paddingBottom.replace("px", ""):0);
				t_w -= (qa.sub.style.paddingLeft!=""?qa.sub.style.paddingLeft.replace("px", ""):0);
				t_w -= (qa.sub.style.paddingRight!=""?qa.sub.style.paddingRight.replace("px", ""):0);
			}
			if(is_complete){
				qa.sub.style.width = t_w+ "px";
				qa.sub.style.height = t_h + "px";
			}else{
				width = qa.sub.clientWidth + (t_w * (offset/100));
				height = qa.sub.clientHeight + (t_h * (offset/100));				
				c_w = false; c_h = false;
				if(width> t_w){
					width = t_w;
					c_w =true;
				}
				if(height>qa.sub.scrollHeight){
					height = t_h;
					c_h = true;
				}
				qa.sub.style.width = width + "px";
				qa.sub.style.height = height + "px";
				if(!(c_w && c_h)){
					window.setTimeout(Object.bind(window, this, this.action, key, i_n, is_first, is_complete, show_flash), time_offset);
				}
			}
		}else{
			if(is_complete){
				qa.sub.style.width = "0px";
				qa.sub.style.height = "0px";
				c_w = true; c_h = true;
			}else{
				t_w = qa.sub.scrollWidth;
				if(t_w < 120) t_w = 120;
				t_h = qa.sub.scrollHeight;
				width = qa.sub.clientWidth - (t_w * (offset/100));
				height = qa.sub.clientHeight - (t_h * (offset/100));
				if(!__browser.is_ie){
					height -= (qa.sub.style.paddingTop!=""?qa.sub.style.paddingTop.replace("px", ""):0); // padding Á¦¿Ü
					height -= (qa.sub.style.paddingBottom!=""?qa.sub.style.paddingBottom.replace("px", ""):0); // padding Á¦¿Ü
					width -= (qa.sub.style.paddingLeft!=""?qa.sub.style.paddingLeft.replace("px", ""):0); // padding Á¦¿Ü
					width -= (qa.sub.style.paddingRight!=""?qa.sub.style.paddingRight.replace("px", ""):0); // padding Á¦¿Ü
				}
				if(width <= 0){
					width = 0;
					c_w = true;
				}
				if(height <= 0){
					height = 0;
					c_h = true;
				}
				qa.sub.style.width = width + "px";
				qa.sub.style.height = height + "px";
			}
			if(c_w && c_h){
				qa.sub.style.border = "0";
				qa.sub.style.padding = "0";
				qa.sub.style.width = "0px";
				qa.sub.style.height = "0px";
				//cur_obj = null;
				if(show_flash) this.flash_show(true);
			}else{
				window.setTimeout(Object.bind(window, this, this.action, key, i_n, is_first, is_complete, show_flash), time_offset);
			}
		}
	};
};
var __main_menu = new MainMenu();
var __side_menu = new function(){
	this.set = function(w, code){
		var mc;
		try{
			mc = (code=="view"?view_info.viewInfo[urlParam["viewname"]].menu_code:doc_info.menu_code);
			if(mc == "main"){
				this.set_main(w);
			}else{
				if(typeof(mc) == "string"){
					this.set_sub(w, mc);
				}else{
					this.set_sub(w, mc());
				}
			}
		}catch(e){
			mc = "error";
		}
	};
	this.set_sub = function(w, mc){
		var c_h = "http://" + document.location.hostname;
		var p_code, p_obj, sub_1, sub_2;
		var html = "", html_2 = "", is_toggle;
		p_code = mc;
		while(p_code != "" && __site_menu[p_code] != null && __site_menu[p_code][2] != "" 
			&& __site_menu[p_code][4] == ""){
			if(__site_menu[p_code][4] != "" || __site_menu[p_code][2] == "") break;
			p_code = __site_menu[p_code][2];
		}
		p_obj = __site_menu[p_code];
		html += "<div id=\"idm_side_menu_title\">";
		html += "<h1><img src=\"" + c_h + (p_obj[4]||"") + "\" alt=\"" + p_obj[0] + "\"></h1>";
		html += "</div>";
		html += "<div id=\"idm_side_menu_list\">";
		html += "<ul class=\"side_main side_main_" + p_code + "\">";
		for(var i = 0; i < p_obj[1].length; i++){
			var isSelect = false;
			sub_1 = __site_menu[p_obj[1][i]];
			if(sub_1[3] != ""){
				is_toggle = false;
			}else{
				is_toggle = true;
			}
			html_2 = "";
			for(var j = 0; j < sub_1[1].length; j++){
				sub_2 = __site_menu[sub_1[1][j]];
				if(j == 0) html_2 += "<li class=\"side_sub_li" + (is_toggle?" side_sub_toggle":"") + "\" id=\"toggle_" + p_obj[1][i] + "\"><ul class=\"side_sub\">";
				
				html_2 += "<li class=\"" + (sub_1[1][j]==mc?"side_sub_select":"") + (sub_2[6] != null && sub_2[6].top_line?" side_sub_top_line":"") + "\"><a href=\"javascript:go_menu('" + sub_1[1][j] + "')\">" + sub_2[0] + "</a></li>";
				if(j == sub_1[1].length - 1) html_2 += "</ul></li>";
				if (sub_1[1][j]==mc) {
					isSelect = true;
				}
			}
			if(html_2.indexOf("side_sub_select") != -1) html_2 = html_2.replace(" side_sub_toggle","");
			if (p_obj[1][i]==mc) {
				html += "<li class=\"side_main_icon_select\"><a";
			} else {
				if (isSelect) {
					html += "<li class=\"side_main_icon_select\"><a";
				} else {
					html += "<li class=\"side_main_icon\"><a";
				}
			}
			if(sub_1[3] != ""){
				html += " href=\"javascript:go_menu('" + p_obj[1][i] + "')";
				is_toggle = false;
			}else{
				html += " href=\"javascript:void(0);\" onclick=\"sub_toggle('" + p_obj[1][i] + "')";
				is_toggle = true;
			}
			html += "\">" + sub_1[0] + "</a>";
			html += "</li>";
			html += html_2;
		}
		html += "</ul></div><hr>";
		if(p_code == "MY0"){
			html += "<div id=\"idm_user_mileage\"><h2>¸¶ÀÏ¸®Áö</h2>";
			html += "<span id=\"idm_user_mileage_sp\" style=\"color:#0843EC\"></span><span id=\"idm_user_mileage_sp2\">Á¡</span></div><hr>";
		}
		html += "<ul id=\"idm_viewer_down\">";
		html += "<li id=\"idm_viewer_pdf\"><a href=\"http://www.adobe.com/go/gntray_dl_get_reader_kr\" target=\"_blank\"><img src=\"" + c_h + "/keei/keei_img/blank.gif\" border=\"0\" alt=\"PDF ºä¾î ´Ù¿î·Îµå\"></a></li>";
		html += "<li id=\"idm_viewer_hwp\"><a href=\"http://www.haansoft.com/hnc/down/down_viewer.action?boardcode=TAEMB&largecode=NVI&svstate=Y\" target=\"_blank\"><img src=\"" + c_h + "/keei/keei_img/blank.gif\" border=\"0\" alt=\"HWP ºä¾î ´Ù¿î·Îµå\"></a></li>";
		html += "<li id=\"idm_viewer_doc\"><a href=\"http://www.microsoft.com/downloads/details.aspx?displaylang=ko&FamilyID=3657ce88-7cfa-457a-9aec-f4f827f20cac\" target=\"_blank\"><img src=\"" + c_h + "/keei/keei_img/blank.gif\" border=\"0\" alt=\"Word ºä¾î ´Ù¿î·Îµå\"></a></li>";
		html += "<li id=\"idm_viewer_xls\"><a href=\"http://www.microsoft.com/downloads/details.aspx?displaylang=ko&FamilyID=1cd6acf9-ce06-4e1c-8dcf-f33f669dbc3a\" target=\"_blank\"><img src=\"" + c_h + "/keei/keei_img/blank.gif\" border=\"0\" alt=\"Excel ºä¾î ´Ù¿î·Îµå\"></a></li>";
		html += "<li id=\"idm_viewer_ppt\"><a href=\"http://www.microsoft.com/downloads/details.aspx?displaylang=ko&FamilyID=048dc840-14e1-467d-8dca-19d2a8fd7485\" target=\"_blank\"><img src=\"" + c_h + "/keei/keei_img/blank.gif\" border=\"0\" alt=\"PPT ºä¾î ´Ù¿î·Îµå\"></a></li>";
		html += "</ul>";
		html = "<div style=\"position:relative;\">" + html + "</div>"
		document.write(html);
		if(p_code == "MY0"){
			__xml.request("g", "/web_keei/usrmy.nsf/um?open", "text/plain", true, draw_mileage, null, false);
		}
	};
	this.set_main = function(w){
		document.write("1");
	};
};
function draw_mileage(obj){
	try{
		if(obj.valid){
			document.getElementById("idm_user_mileage_sp").innerHTML = obj.value.inline();
		}
	}catch(e){}
}
function sub_toggle(code){
	var obj = document.getElementById("toggle_" + code);
	obj.style.display = (__dom.style.current_style(obj,"display") == "none"?"block":"none");
}
var __bottom_menu = function(__win){
	var c_h = "http://" + document.location.hostname;
	var html = "";
	html += "<div id=\"wrap_address_top\">";
	html += "<div id=\"idm_address\">";
	html +=		"<div id=\"wrap_family_site\">";
	html += 			"<img src=\"" + c_h + "/keei/keei_img/new/bottom_03.jpg\" border=\"0\" style=\"cursor:pointer;\" onclick=\"javascript:go_menu('LL08')\"/>";	// Family Site
	html +=			"<span id=\"wrap_family_blank\"></span>";
	html += 			"<a href=\"http://www.kesis.net/index.jsp\" target=\"_new\"><img src=\"" + c_h + "/keei/keei_img/new/bottom_05.jpg\" border=\"0\"></a>";	// ¿¡³ÊÁöÅë°èÁ¤º¸½Ã½ºÅÛ
//	html +=			"<span id=\"wrap_family_blank\"></span>";
//	html += 			"<a href=\"http://www.neasiaenergy.net/\" target=\"_new\"><img src=\"" + c_h + "/keei/keei_img/new/bottom_06.jpg\" border=\"0\"></a>";	// µ¿ºÏ¾Æ¿¡³ÊÁö¿¬±¸¼¾ÅÍ
	html +=			"<span id=\"wrap_family_blank\"></span>";
	html += 			"<a href=\"http://kie.keei.re.kr/\" target=\"_new\"><img src=\"" + c_h + "/keei/keei_img/new/bottom_07.jpg\" border=\"0\"></a>";			// Áý´Ü¿¡³ÊÁöÁ¤º¸³Ý
	html +=			"<span id=\"wrap_family_blank\"></span>";
	html += 			"<a href=\"http://library.keei.re.kr/DLiWeb25/\" target=\"_new\"><img src=\"" + c_h + "/keei/keei_img/new/bottom_08.jpg\" border=\"0\"></a>";	// ÀüÀÚµµ¼­°ü
//	html +=			"<span id=\"wrap_family_blank\"></span>";
//	html += 			"<a href=\"http://211.35.39.28/\" target=\"_new\"><img src=\"" + c_h + "/keei/keei_img/new/bottom_09.jpg\" border=\"0\"></a>";			// ÀúÅº¼Ò³ì»ö¼ºÀå±¹¹ÎÆ÷·³
	html +=		"</div>";
	html +=		"<div id=\"wrap_about_site\">";
	html += 			"<img src=\"" + c_h + "/keei/keei_img/new/bottom_04.jpg\" border=\"0\" style=\"cursor:pointer;\" onclick=\"javascript:go_menu('LL08')\"/>";	// °ü·Ã»çÀÌÆ®
	html +=			"<span id=\"wrap_family_blank\"></span>";
	html += 			"<a href=\"http://www.mke.go.kr\" target=\"_new\"><img src=\"" + c_h + "/keei/keei_img/new/bottom_16.jpg\" border=\"0\"></a>";		// Áö½Ä°æÁ¦ºÎ
	html +=			"<span id=\"wrap_family_blank\"></span>";
	html += 			"<a href=\"http://www.nrcs.re.kr\" target=\"_new\"><img src=\"" + c_h + "/keei/keei_img/new/bottom_17.jpg\" border=\"0\"></a>";		// °æÁ¦,ÀÎ¹®»çÈ¸¿¬±¸È¸
	html +=			"<span id=\"wrap_family_blank\"></span>";
	html += 			"<a href=\"http://www.ikis.re.kr\" target=\"_new\"><img src=\"" + c_h + "/keei/keei_img/new/bottom_18.jpg\" border=\"0\"></a>";		// Áö½ÄÁ¤º¸°Ë»ö½Ã½ºÅÛ
	html +=			"<span id=\"wrap_family_blank\"></span>";
	html += 			"<a href=\"http://www.alio.go.kr\" target=\"_new\"><img src=\"" + c_h + "/keei/keei_img/new/bottom_15.jpg\" border=\"0\"></a>";		// °ø°ø±â°ü °æ¿µÁ¤º¸ °ø°³½Ã½ºÅÛ
	html +=			"<span id=\"wrap_family_blank\"></span>";
	html += 			"<a href=\"http://job.alio.go.kr\" target=\"_new\"><img src=\"" + c_h + "/keei/keei_img/new/bottom_21.jpg\" border=\"0\"></a>";		// °ø°ø±â°ü Ã¤¿ëÁ¤º¸½Ã½ºÅÛ
	html +=			"<span id=\"wrap_family_blank\"></span>";
	html += 			"<a href=\"http://www.wgc2018gokorea.com\" target=\"_new\"><img src=\"" + c_h + "/keei/keei_img/new/bottom_19.jpg\" border=\"0\"></a>";		// ÇØ¿ÜÁøÃâÁ¤º¸½Ã½ºÅÛ(Àü)
	html +=		"</div>";
	html += "</div>"
	html += "</div>";
	html += "<div id=\"wrap_address_bottom\">";
	html += "<div id=\"idm_address\">";
	html +=		"<div id=\"idm_policy_wrap\">";
	html +=			"<ul id=\"idm_policy\">";
	html +=				"<li class=\"first\"><a href=\"#\" onclick=\"go_menu('N0');\">°ü·Ã»çÀÌÆ®</a></li>";
	html +=				"<li><a href=\"#\" onclick=\"go_wonu();\">¿ø¿ìÈ¸</a></li>";
	html +=				"<li><a href=\"#\" onclick=\"go_menu('SS84');\">°æ¿µ°ø½Ã</a></li>";
	html +=				"<li><a href=\"#\" onclick=\"go_menu('SS88');\">¿¬±¸À±¸®ÇåÀå</a></li>";
	html +=				"<li><a href=\"#\" onclick=\"go_menu('ST88');\">½Å°í¼¾ÅÍ</a></li>";
	html +=				"<li><a href=\"#\" onclick=\"go_menu('LL03');\"><b>°³ÀÎÁ¤º¸ º¸È£¹æÄ§</b></a></li>";
	html +=				"<li><a href=\"#\" onclick=\"go_menu('LL04');\">ÀÌ¸ÞÀÏÁÖ¼Ò ¹«´Ü ¼öÁý°ÅºÎ</a></li>";
	html +=			"</ul>";
	html +=		"</div>";
	html +=		"<hr>";
	html +=		"<h3 id=\"idm_btm_logo\"><img src=\"" + c_h + "/keei/keei_img/new/bottom_logo.gif\"></h3>";
	html +=		"<ul id=\"idm_keei_addr\">";
	html +=			"<li id=\"idm_addr\"><span><img src=\"" + c_h + "/keei/keei_img/blank.gif\" border=\"0\"></span></li>";
	html +=			"<li id=\"idm_addr2\"><span><img src=\"" + c_h + "/keei/keei_img/blank.gif\" border=\"0\"></span></li>";
	html +=			"<li id=\"idm_webmater\">";
	html +=				"<a href=\"#\" onclick=\"go_menu('SS884');\"><img src=\"" + c_h + "/keei/keei_img/blank.gif\" border=\"0\" alt=\"À¥¸¶½ºÅÍ ÀÌ¸ÞÀÏ\"></a>";
	html +=			"</li>";
	html +=			"<li id=\"idm_opinion\">";
	html +=				"<a href=\"#\" onclick=\"go_menu('SS884');\"><img src=\"" + c_h + "/keei/keei_img/blank.gif\" border=\"0\" alt=\"È¨ÆäÀÌÁö °³¼± ÀÇ°ß\"></a>";
	html +=			"</li>";
	html +=			"<li id=\"idm_rss\">";
	html +=				"<a href=\"#\" onclick=\"go_menu('LL05')\"><img src=\"" + c_h + "/keei/keei_img/blank.gif\" border=\"0\" alt=\"RSS\"></a>";
	html +=			"</li>";
	html +=			"<li id=\"idm_copy_right\"><span><img src=\"" + c_h + "/keei/keei_img/blank.gif\" border=\"0\"></span></li>";
	html +=		"</ul>";
	html +=	 "</div>";
	html +=	 "</div>";
	// À¥·Î±× ºÎºÐ.
	html += "<script src=\"/main.nsf/webtrends.js\" type=\"text/javascript\"></script>" + "\n";
	html += "<NOSCRIPT>" + "\n";
	html += "<IMG ALT=\"DCSIMG\" id=\"DCSIMG\" BORDER=\"0\" WIDTH=\"1\" HEIGHT=\"1\" ";
	html += " SRC=\"http://211.35.39.140:9090/dcssmx8sc100000c1lu6pfeds_5e4b/njs.gif?dcsuri=/nojavascript&amp;WT.js=No&amp;WT.tv=9.4.0&amp;dcssip=www.keei.re.kr\">";
	html += "</NOSCRIPT>" + "\n";
	__u_l.dr();
	__win.document.write(html);
}
function q(tmp){
	var c_host = "http://" + document.location.hostname;
	var mainurl = "";
	var targetURL = ""; 
	switch(tmp)
	{
	case 100 : 	//¿¡³ÊÁö´º½º
		go_menu("D01");
		break;
	case 200:	// À¥Áø
		go_menu("MAIL0");
		break;
	case 300 : 	//Àç¹ÌÀÖ´Â´Â¿¡³ÊÁö±³½Ç
		popup();
		break;
	case 400 : 	//È«º¸ÀÚ·á½Ç
		go_menu("PR01");
		break;
	case 450 : 	//¿¡³ÊÁöÅë°è
		targetURL = "http://www.kesis.net/";
		window.open(targetURL,"_blank","");
		break;
	case 500 : 	//ÀüÀÚµµ¼­°ü
		targetURL = "http://library.keei.re.kr/DLiWeb25/";
		window.open(targetURL,"_blank","");
		break;
	case 600 : 	//¿¡³ÊÁö¿ë¾î»çÀü
		go_menu("SS253");
		break;
	case 700 :	//ÀÎÀçÃ¤¿ë
		go_menu("R02");
		break;
	case 800:	// Ã£¾Æ¿À½Ã´Â ±æ
		go_menu("SS79");
		break;
	case 900: //¸ÞÅ¸°Ë»ö
		targetURL = "http://keei.libsteps.com/meta/?skey=376&userid=";
		window.open(targetURL,"_blank","width=760,height=790,scrollbars=yes");
		break;
	}
}
function q_en(tmp){
	var c_host = "http://" + document.location.hostname;
	var mainurl = "";
	var targetURL = ""; 
	switch(tmp)
	{
	case 100 : 	//link
		mainurl = "/keei/frame/eng_link.html";
		navigate(c_host + mainurl);
		break;
	case 200 : //Statistics
		mainurl = "/keei/frame/eng_statmon.html";
		navigate(c_host + mainurl);
		break;
	case 300 : //KEI energy net
		targetURL = "http://www.kienergy.net/en/index.htm";
		window.open(targetURL,"_blank");
		break;
	case 400 : //µ¿ºÏ¾Æ ¿¡³ÊÁö ¿µ¹®
		targetURL = "http://www.neasiaenergy.net/eng_main.html";
		window.open(targetURL,"_blank");
		break;
	case 500 : //subscription for KEEI
		mainurl = "/keei/frame/eng_subscribe.html";
		navigate(c_host + mainurl);
		break;	
	}
}
function popup() {
	var c_host = "http://" + document.location.hostname;
	var kkk=null;
	kkk= window.open(c_host + '/keei/kidspage/index.html','new','location=no,directories=no,resizable=yes,status=no,toolbar=yes,menubar=no,width=900,height=650,scrollbars=yes')
	if(kkk!=null){
		kkk.focus();
	}
}
var QuickMenu = function(){
	var c_host = "http://" + document.location.hostname;
	var __win;
	var start_x = 0;
	var start_y = 0;
	var y_pos = 0;
	var y_gravity = 0.85;
	var scroll_pos = 0;
	var top_margin = 0;
	var left_margin = 0;
	var obj;
	var base_obj = null;
	this.set = function(w, leng){
		__win = (w!=null?w:window);
		var str = "";
		str += "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"120\" height=\"270\" id=\"KEEI_Menu\">";
		str +=	"<param name=\"movie\" value=\"/keei/keei_img/new/QuickLink.swf?funtionName=getInitQuickLink\" />";
		str +=	"<param name=\"quality\" value=\"high\" />";
		str +=	"<param name=\"bgcolor\" value=\"#FFFFFF\" />";
		str += 	"<param name=\"wmode\" value=\"transparent\" />";
		str +=	"<param name=\"allowScriptAccess\" value=\"sameDomain\" />";
		str +=	"<param name=\"allowFullScreen\" value=\"true\" />";
		str +=	"<!--[if !IE]>-->";
		str +=		"<object type=\"application/x-shockwave-flash\" data=\"/keei/keei_img/new/QuickLink.swf?funtionName=getInitQuickLink\" width=\"120\" height=\"260\">";
		str +=		"<param name=\"quality\" value=\"high\" />";
		str +=		"<param name=\"bgcolor\" value=\"#FFFFFF\" />";
		str += 		"<param name=\"wmode\" value=\"transparent\" />";
		str +=		"<param name=\"allowScriptAccess\" value=\"sameDomain\" />";
		str +=		"<param name=\"allowFullScreen\" value=\"true\" />";
		str +=	"<!--<![endif]-->";
		str +=	"<!--[if gte IE 6]>-->";
		str +=		"<p>";
		str +=			"Either scripts and active content are not permitted to run or Adobe Flash Player version";
		str +=			"10.1.0 or greater is not installed.";
		str +=		"</p>";
		str +=	"<!--<![endif]-->";
		str +=		"<a href=\"http://www.adobe.com/go/getflashplayer\">";
		str +=			"<img src=\"http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif\" alt=\"Get Adobe Flash Player\" />";
		str +=		"</a>";
		str +=	"<!--[if !IE]>-->";
		str +=	"</object>"
		str +=	"<!--<![endif]-->";
		str += "</object>";
		document.write(str);
	};
	this.init = function(){
		if(__win == null) return;
		try{
			obj = __win.document.getElementById("wrap_quick_menu");		
			if(__win.document.getElementById("idm_main_content_img") != null){
				base_obj = __win.document.getElementById("idm_main_content");
				top_margin = 0;
				left_margin = 683 + 10;
			}else{
				base_obj = __win.document.getElementById("idm_sub_content");
				top_margin = 0;
				left_margin = 680 + 25;
			}
			var pos = __dom.get_position(base_obj);
			start_x = pos.page_x + left_margin;;
			start_y = pos.page_y + top_margin;
	
			obj.style.display = "block";
			obj.style.position = "absolute";
			obj.style.left = start_x;
			obj.style.top = start_y;
			obj.zIndex = 101;
	
			__win.setInterval(Object.bind(window, this, this.float_menu), 1);
		}catch(e){
		}
	};
	this.set_pos = function(y){
		var pos;
		pos = __dom.get_position(base_obj);
		obj.style.left = pos.page_x + left_margin;
		obj.style.top = y;
	}
	this.float_menu = function(){
		try{
			var scroll_y = __win.document.body.scrollTop;
			var y_bound = parseInt(scroll_y, 10) + parseInt(start_y, 10);
			if(y_bound + 320 > __win.document.body.scrollHeight - 100) y_bound = __win.document.body.scrollHeight - 100 - 320;
			if(parseInt(obj.style.top, 10) > y_bound + 1) y_pos -= 1;
			if(parseInt(obj.style.top, 10) < y_bound - 1) y_pos += 2;
			y_pos *= y_gravity;
			this.set_pos(parseInt(obj.style.top, 10) + y_pos);
		}catch(e){}
	};
}
var __quick_menu = new QuickMenu();
__dom.attach_event(window, "onload", Object.bind(window, __quick_menu, __quick_menu.init));
function getInitQuickLink() {
	var initXML = "<QuickLink>";
	initXML+=			"<group motionType='up'>";
	initXML+=				"<menu label='¿¡³ÊÁö´º½º' 		link='100' 	javaCall='quicklinkClick'></menu>"	;
	initXML+=				"<menu label='¸ÞÀÏÁø' 				link='200' 	javaCall='quicklinkClick'></menu>"	;
	initXML+=				"<menu label='¿¡³ÊÁö±³½Ç' 		link='300' 	javaCall='quicklinkClick'></menu>"	;
	initXML+=				"<menu label='¿¡³ÊÁö¿ë¾î»çÀü' 	link='600'	javaCall='quicklinkClick'></menu>"	;
	initXML+=				"<menu label='¸ÞÅ¸°Ë»ö' 			link='900'	javaCall='quicklinkClick'></menu>"	;
	initXML+=			"</group>";
	initXML+=			"<group motionType='down'>";
	initXML+=				"<menu label='¿¡³ÊÁöÅë°è' 		link='450'	javaCall='quicklinkClick'></menu>"	;
	initXML+=				"<menu label='ÀüÀÚµµ¼­°ü' 		link='500'	javaCall='quicklinkClick'></menu>"	;
	initXML+=				"<menu label='È«º¸ÀÚ·á½Ç' 		link='400' 	javaCall='quicklinkClick'></menu>"	;
	initXML+=				"<menu label='ÀÎÀçÃ¤¿ë' 			link='700' 	javaCall='quicklinkClick'></menu>"	;
	initXML+=				"<menu label='Ã£¾Æ¿À½Ã´Â±æ'	 	link='800' 	javaCall='quicklinkClick'></menu>"	;										
	initXML+=			"</group>";		
	initXML+=		"</QuickLink>";
	return initXML;
}
function quicklinkClick( url ) {
	q(Number(url));
}
function logout(){
	__cookie.delete_cookie("DomAuthSessId");
	document.location.href = "http://" + document.location.hostname + "/web_keei/members_keei.nsf?logout";
}
var __get_location = function(menu_code, is_write){
	var p_code = menu_code;
	var loca = [];	
	var c_host = "http://" + document.location.hostname;
	if(menu_code!=null){
		while(p_code != "" && __site_menu[p_code] != null){
			loca.push("<a href=\"#\" onclick=\"go_menu('" + p_code + "');\">" + __site_menu[p_code][0] + "</a>");
			if(__site_menu[p_code][2] == "") break;
			p_code = __site_menu[p_code][2];
		}
		loca.push("<a href=\"" + c_host  + "/\">HOME</a>");
		loca.reverse();
		loca = "<div class=\"location\">" + loca.join(" > ") + "</div>";
	}else{
		loca = "<div class=\"location\"></div>";
	}
	if(is_write == null || is_write){
		document.write(loca);
		return "";
	}else{
		return loca;
	}
}
/* Main °Ë»ö */
function main_search_key(e){
	if(e.keyCode == 13){
		main_search();
	}
}
function main_search(){
	var col = "w1";
	var m_search = document.getElementById("id_main_search_form");
	var oSearchTarget = document.getElementsByName("SearchTarget");
	if(oSearchTarget[0].checked){
		var form_obj;
		if(m_search == null){
			form_obj = document.createElement("form")
			form_obj.id = "id_main_search_form";
			form_obj.action = "http://211.35.39.23:8089/search/search_homepage/search.jsp";
			form_obj.target = "__new";
			form_obj.style.display = "none";
			document.body.appendChild(form_obj);
			form_obj.innerHTML = "<input type=\"text\" name=\"query\">";
		}
	
		var f = document.getElementById("id_main_search_form");
		f.query.value = document.getElementById("main_search_qt").value;
		f.submit();
	}else{
		location.href = "/web_keei/glossary.nsf/ByAllV/?SearchView&Query=" + document.getElementById("main_search_qt").value;
	}
}
var __u_l = new function(){
	var ac = "/web_keei/usrmy.nsf";
	var loc_p = document.location.pathname;
	var loc_s = document.location.search;
	var ml = null;
	var s_dr = /\/(([\w\.\/]*\.nsf)|([a-fA-F0-9]{16}))\/([^\/]*)\/([\S]*)/i;
	var s_ad = /keei\.re\.kr\/(([\w\.\/]*\.nsf)|([a-fA-F0-9]{16}))\/([^\/]*)\/([a-fA-F0-9]{32})\/(\$file|[^\/]*\/m[0-9\.]*)\/([^\?\"\>]*)/i;
	var s_ad2 = /\.keei\.re\.kr\/keei\/download\/([^\?\"\>]*)/i;
	this.rs = function(obj){
		try{
			if(obj.value.search(/lout:/i) != -1){
				__cookie.delete_cookie("DomAuthSessId");
			}
		}catch(e){}
	};
	this.wc = function(){
		try{
			var is_in = __cookie.get_cookie("domauthsessid", true);
			var is_c = __cookie.get_cookie("u_c", true);
			if(is_in!=null&&is_in!=""&&(is_c==null||is_c!="y")){
				__xml.request("g", ac + "/actn?open&t=h", "text/plain", true, Object.bind(window, this, this.rs), null, false);
				__cookie.set_cookie("u_c", "y");
			}
		}catch(e){}
	};
	this.dr = function(){
		try{
			if(window.doc_info != null && window.doc_info.menu_code!=null
				&& loc_p.search(s_dr) != -1
				&& loc_s.toLowerCase().substring(0, 5) != "?edit"
				&& loc_p.search(/web_keei\/d_approval\.nsf/) == -1){
				if(ml == null) this.set_ml();
				var path = loc_p.match(s_dr);
				ml["t"] = "r";
				ml["db"] = path[2];
				ml["ri"] = path[3];
				ml["vw"] = path[4];
				ml["id"] = path[5];
				ml["qs"] = loc_s;
				ml["id"] = (ml["id"].toLowerCase()=="$first"&&doc_info.unid!=null?doc_info.unid:ml["id"]);
				ml["%25%25PostCharset"] = "UTF-8";
				__xml.request("p", ac + "/dr?open&charset=UTF-8", "text/plain", true, Object.bind(window, this, this.rs), ml, false);
				this.set_ad();
			}
		}catch(e){}
	};
	this.set_ad = function(){
		try{
			var as = document.getElementById("idm_sub_content").getElementsByTagName("a");
			var href;
			for(var i = 0; i < as.length; i++){
				href = as[i].href;
				if(href != null && (href.search(s_ad) != -1 || href.search(s_ad2) != -1)){
					try{
						if(as[i].target == null || as[i].target=="") as[i].target = "_new";
					}catch(e){}
					__dom.attach_event(as[i], "onclick", Object.bind_event_listener(window, this, this.ad, href, as[i]));
				}
			}
		}catch(e){}
	};
	this.ad = function(e, href, obj){
		try{
			var path;
			var an;
			if(href.search(s_ad2) != -1){
				path = loc_p.match(s_dr);
				ml["im"] = "";
				an = href.match(s_ad2)[1];
			}else{
				path = href.match(s_ad);
				ml["im"] = path[6];
				an = path[7].decode();
				try{
					if(__browser.is_ie && __browser.version.charAt(0) <= "6"){
						an = obj.outerHTML.match(/\/(\$file|[^\/]*\/m[0-9\.]*)\/([^\?\"\>]*)/i)[2].decode();
					}
				}catch(e){}
			}
			ml["t"] = "d";
			ml["db"] = path[2];
			ml["ri"] = path[3];
			ml["vw"] = path[4];
			ml["id"] = path[5];
			ml["an"] = an;
			ml["qs"] = loc_s;
			ml["%25%25PostCharset"] = "UTF-8";
			__xml.request("p", ac + "/dr?open&charset=UTF-8", "text/plain", true, Object.bind(window, this, this.rs), ml, false);
		}catch(e){}
	};
	this.set_ml = function(){
		try{
			ml = {};
			var i=0;
			var m = __site_menu;
			var mc = doc_info.menu_code;
			ml["i" + (++i)] = m[mc][0];
			while(m[mc][2] != ""){
				mc = m[mc][2];
				ml["i" + (++i)] = m[mc][0];
				if(m[mc][2] == "") break;
			}
			ml["mc"] = i;
		}catch(e){}
	};
};
__u_l.wc();
function hidden_default_attach(obj_name){
	var wrap_obj = document.getElementById(obj_name);
	var tables = wrap_obj.getElementsByTagName("table");
	var att = /href=\"\/[\w\.\/]*\.nsf\/[^\/]*\/[a-fA-F0-9]{32}\/\$file|[^\/]*\/m[0-9\.]*\/[^\?\"\>]*\?openelement/i;
	for(var i = tables.length - 1; i >= 0; i--){
		if(tables[i].innerHTML.search(att) != -1 && tables[i].innerHTML.search(/\/icons\/medoc.gif/i) != -1){
			__dom.remove_node(tables[i], true);
		}else{
			break;
		}
	}
	var loc_p = document.location.pathname;
	var s_dr = /\/(([\w\.\/]*\.nsf)|([a-fA-F0-9]{16}))\/([^\/]*)\/([\S]*)/i;
	var path = loc_p.match(s_dr);
	var s_ad = new RegExp(path[5] + "\\/\\$file|[^\\/]*\\/m[0-9\\.]*\\/", "i");
	var as = wrap_obj.getElementsByTagName("a");
	for(var i = as.length - 1; i >= 0; i --){
		href = as[i].href;
		if(href != null && href.search(s_ad) != -1){
			__dom.remove_node(as[i], true);
		}
	}
}
function closeDoc() {
	if (common_func.get_return_url() != ""){
		if(doc_info){
			var rurl = common_func.get_return_url();
			var rview = getParameter(rurl, "viewname=", "&");
			if(rview == doc_info.view){
				location.href = common_func.get_return_url();
			}else{
				go_menu(doc_info.menu_code);
			}
		}else{
			location.href = common_func.get_return_url();
		}
	}else{
		try{
			if(doc_info){
				if(doc_info.menu_code  != ""){
					go_menu(doc_info.menu_code);
				}else{
					history.back();
				}
			}
		}catch(e){
			history.back();
		}
	}
}
function getParameter(strValue, parameterName, sep, defaultval) {
	var DefaultValue = "";
	if (defaultval != null || typeof defaultval != "undefinde")	DefaultValue = 	defaultval;
	
	var lists = strValue.split(sep);
	for (var i=0; i < lists.length; i++) {
		if (getLeft(lists[i], "=").toLowerCase() == parameterName.toLowerCase()) {
			return (getRight(lists[i], "="));
		}
	}
	return DefaultValue;
}
function getLeft(SourceStr, FindStr) {
	Index = SourceStr.indexOf(FindStr);
	if(Index < 0) {
		return ("");
	}else{
		return (SourceStr.substring(0, Index));
	}
}
function getRight(SourceStr, FindStr) {
	Index = SourceStr.indexOf(FindStr);
	if(Index < 0) {
		return ("");
	}else{
		Len = SourceStr.length;
		return(SourceStr.substring(Index+FindStr.length, Len));
	}
}
function printDoc(){
	window.print();
}
function go_home(){
	location.href = "http://" + document.location.hostname
}
function go_wonu(){
	var is_login = false;
	var has_session = false;
	if(__cookie.get_cookie("domauthsessid", true) != null){
		try{
			has_session = true;
			var ss = __xml.request("g", "/main.nsf/s_chk?open", "text", false, null, null, false);
			if(ss.search(/anonymous/i) != -1){
				has_session = false;
				__cookie.delete_cookie("DomAuthSessId");
			}
		}catch(e){
			has_session = true;
		}
		if(has_session){
			location.href = "http://" + document.location.hostname + "/main.nsf/index_wonu.html"
			is_login = true;
		}
	}
	if(!is_login){
		location.href = "http://" + document.location.hostname + "/web_keei/members_keei.nsf?Login"
	}
}

