/* 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);
			}
		}catch(e){}
		return {valid:false, info:return_info, object:object};
	}
},
valid_check_1: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);
//alert(info[i].field)
				if(info[i].field=="Query"){		//¾ÆÀÌµð Áßº¹È®ÀÎ
					__dom.get_window(object).alert(return_info.msg);
			//html =return_info.msg; 
			//document.getElementById("result_text").innerHTML ="¾ÆÀÌµð´Â 6~12ÀÚÀÇ ¿µ¼ýÀÚ·Î ÀÔ·ÂÇÏ½Ê½Ã¿ä.";
				}else{
 
					var obj = document.getElementById("errormsg_"+info[i].field);		
					obj.style.display = 'block';		 
					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;
//alert(view_info);
//alert('view_info.returnUrl========='+view_info.returnUrl)
		if(view_info != null && view_info.returnUrl != null){
			return view_info.returnUrl;
		}else{
			return "";
		}
	}catch(e){
		return "";
	}
//alert(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["M1"] = ["µ¿ÇâÁ¤º¸",[],"","","/img_new/left_tit_01.gif", false];
	m["M2"] = ["ÀÚ·á½Ç",[],"","","/img_new/left_tit_02.gif", false];
	m["M3"] = ["Á¤ºÎ°£ÇùÀÇÃ¼",[],"","","/img_new/left_tit_03.gif", false];
	m["M4"] = ["ÁÖ¿äÇà»ç",[],"","/nea/allim.nsf/loadview?openpage&viewname=xmlevent&Count=15&start=1","/img_new/left_tit_04.gif", true];
	m["M5"] = ["¼¾ÅÍ¼Ò½Ä",[],"","","/img_new/left_tit_05.gif", false];
	m["S1"] = ["ÀüÃ¼",[],"M1","/nea/donghyang.nsf/loadview?openpage&viewname=xmlall&Count=15&start=1&category=" + "ÀüÃ¼".encode(),"", true];
	m["S2"] = ["µ¿ºÏ¾Æ¿¡³ÊÁö½ÃÀå",[],"M1","/nea/donghyang.nsf/loadview?openpage&viewname=xmlneae&Count=15&start=1&category=" + "µ¿ºÏ¾Æ¿¡³ÊÁö½ÃÀå".encode(),"", true];
	m["S3"] = ["±¹³»¾ð·Ð´Ü½Å",[],"M1","/nea/donghyang.nsf/loadview?openpage&viewname=xmlnews&Count=15&start=1&category=" + "±¹³»¾ð·Ð´Ü½Å".encode(),"", true];
	m["S4"] = ["À¯°ü±â°ü´Ü½Å",[],"M1","/nea/donghyang.nsf/loadview?openpage&viewname=xmlrelation&Count=15&start=1&category=" + "À¯°ü±â°ü´Ü½Å".encode(),"", true];
	m["S5"] = ["¿Ü±¹¾ð·Ð´Ü½Å",[],"M1","/nea/e_trends.nsf/loadview?openpage&viewname=xmlnews&Count=15&start=1&category=" + "¿Ü±¹¾ð·Ð´Ü½Å".encode(),"", true];
	m["S6"] = ["ÀüÃ¼",[],"M2","/nea/balkan.nsf/loadview?openpage&viewname=xmlall&Count=15&start=1&category=" + "ÀüÃ¼".encode() ,"", true];
	m["S7"] = ["¿¬±¸º¸°í¼­",[],"M2","/nea/balkan.nsf/loadview?openpage&viewname=xmlresearch&Count=15&start=1&category=" + "¿¬±¸º¸°í¼­".encode() ,"", true];
	m["S8"] = ["Á¤±â°£Çà¹°",[],"M2","/nea/balkan.nsf/loadview?openpage&viewname=xmlfocus&Count=15&start=1&category=" + "Northeast Asia Energy Focus".encode() ,"", true];
	m["S9"] = ["¼¼¹Ì³ªÀÚ·á",[],"M2","/nea/balkan.nsf/loadview?openpage&viewname=xmlseminar&Count=15&start=1&category=" + "¼¼¹Ì³ªÀÚ·á".encode() ,"", true];
	m["S10"] = ["±âÅ¸°£Çà¹°",[],"M2","/nea/balkan.nsf/loadview?openpage&viewname=xmlother&Count=15&start=1&category=" + "±âÅ¸°£Çà¹°".encode() ,"", true];
	m["S11"] = ["¿¡³ÊÁöÀÚ¿ø MAP",[],"M2","/nea/contents.nsf/loadview?openpage&viewname=vwmap&Count=15&start=1","", true];
	m["S12"] = ["ÇÊ¿ä¼º ¹× ¸ñÀû",[],"M3","/nea/contents.nsf/info_redir?open&mc=S12","", false];
	m["S13"] = ["ÁÖ¿ä±â´É ¹× »ç¾÷",[],"M3","/nea/contents.nsf/info_redir?open&mc=S13","", false]; 
	m["S14"] = ["ÃßÁøÈ°µ¿",[],"M3","/nea/contents.nsf/info_redir?open&mc=S14","", false]; 
	m["S15"] = ["ÃßÁø½ÇÀû",[],"M3","/nea/goverdata.nsf/loadview?openpage&viewname=xmlcategory&Count=15&start=1&category=2009","", true]; 
	m["S16"] = ["°øÁö»çÇ×",[],"M5","/nea/allim.nsf/loadview?openpage&viewname=xmlnotice&Count=15&start=1&code=m5","", true]; 
	m["S17"] = ["¼¾ÅÍ¼Ò°³",[],"M5","/nea/contents.nsf/info_redir?open&mc=SS3","", false]; 
	m["S18"] = ["±¹³»¿Ü È°µ¿",[],"M5","/nea/interdata.nsf/loadview?openpage&viewname=xmlmain&Count=15&start=1","", true]; 
	m["S19"] = ["À¥Áø",[],"M5","/nea/inew.nsf/loadview?openpage&viewname=xmlwebzine&Count=15&start=1","", true]; 
	m["S20"] = ["Ä¿¹Â´ÏÆ¼",[],"M5","/nea/forum.nsf/loadview?openpage&viewname=xmlmain&Count=15&start=1","", true]; 
	m["S21"] = ["°ü·Ã»çÀÌÆ®",[],"M5","/nea/site.nsf/loadview?openpage&viewname=xmlcountriesall&Count=15&start=1&category=" + "ÀüÃ¼".encode(),"", true];
	m["S22"] = ["Çà»ç¾È³»",[],"M4","/nea/allim.nsf/loadview?openpage&viewname=xmlevent&Count=15&start=1&code=m4","", true];
	m["S23"] = ["°¶·¯¸®",[],"M4","/nea/gallery.nsf/webopen?OpenForm&count=6&category=2012&Start=1","", false];
	m["SS2"] = ["µ¿ºÏ¾Æ¿¡³ÊÁö½ÃÀå",[],"S8","/nea/donghyang.nsf/loadview?openpage&viewname=xmlneae&Count=15&start=1&category=" + "µ¿ºÏ¾Æ¿¡³ÊÁö½ÃÀå".encode(),"", true];
	m["SS1"] = ["Northeast Asia Energy Focus",[],"S8","/nea/balkan.nsf/loadview?openpage&viewname=xmlfocus&Count=15&start=1&category=" + "Northeast Asia Energy Focus".encode(),"", true];
	m["SS3"] = ["ÇÊ¿ä¼º ¹× ¸ñÀû",[],"S17","/nea/contents.nsf/info_redir?open&mc=SS3","", false];
	m["SS4"] = ["ÃßÁøÀü·« ¹× »ç¾÷",[],"S17","/nea/contents.nsf/info_redir?open&mc=SS4","", false];
	m["SS5"] = ["¿¬±¸»ç¾÷ Á¶Á÷",[],"S17","/nea/contents.nsf/info_redir?open&mc=SS5","", false];
	m["SS6"] = ["°¡ÀÔ¾È³»",[],"S19","/nea/contents.nsf/info_redir?open&mc=SS6","", false];
	m["SS7"] = ["Áö³­È£ º¸±â",[],"S19","/nea/inew.nsf/loadview?openpage&viewname=xmlwebzine&Count=15&start=1","", true];
	m["SS8"] = ["Áö¿ªº°",[],"S21","/nea/site.nsf/loadview?openpage&viewname=xmlcountriesall&Count=15&start=1&category=" + "ÀüÃ¼".encode(),"", true];
	m["SS9"] = ["±â°üº°",[],"S21","/nea/site.nsf/loadview?openpage&viewname=xmlcategories&Count=15&start=1&restricttocategory=$first","", true];
	/* µ¿Çâ°Ë»ö */
	m["DS0"] = ["µ¿Çâ°Ë»ö",[],"","/nea/donghyang.nsf/search?openform","/img_new/left_tit_search.gif", false];
	/* È¸¿ø°ü¸® */
	m["L0"] = ["È¸¿ø¼­ºñ½º",[],"","","/img_new/left_tit_06.gif", false];
	m["L11"] = ["·Î±×ÀÎ",[],"L0","/nea/member.nsf?login","", false];
	m["L12"] = ["È¸¿ø°¡ÀÔ",[],"L0","/nea/member.nsf/Member?Open","", false];
	m["L13"] = ["¾ÆÀÌµðÃ£±â",[],"L0","/nea/member.nsf/user_id?Open","", false];
	m["L14"] = ["ºñ¹Ð¹øÈ£Ã£±â",[],"L0","/nea/member.nsf/search_pw?Open","", false];
	/* ÀÌ¿ë¾È³»*/
	m["U0"] = ["ÀÌ¿ë¾È³»",[],"","","/img_new/left_tit_07.gif", false];
	m["UU01"] = ["°³ÀÎÁ¤º¸ º¸È£¹æÄ§",[],"U0","/nea/contents.nsf/info_redir?open&mc=UU01","", false];
	m["UU02"] = ["ÀÌ¸ÞÀÏÁÖ¼Ò ¹«´Ü ¼öÁý°ÅºÎ",[],"U0","/nea/contents.nsf/info_redir?open&mc=UU02","", false];
	m["UU03"] = ["»çÀÌÆ®¸Ê",[],"U0","/nea/contents.nsf/sitemap?readform&menucode=UU03","", false];
//	m["UU03"] = ["»çÀÌÆ®¸Ê",[],"U0","/nea/contents.nsf/info_redir?open&mc=UU03","", false];
	m["UU04"] = ["Ã£¾Æ¿À½Ã´Â ±æ",[],"U0","/nea/contents.nsf/info_redir?open&mc=UU04","", false];
	m["UU05"] = ["ºä¾î³»·Á¹Þ±â",[],"U0","/nea/contents.nsf/info_redir?open&mc=UU05","", false];
	m["UU06"] = ["ÀÌ¿ë¾à°ü",[],"U0","/nea/contents.nsf/info_redir?open&mc=UU06","", false];
	/*»çÀÌÆ®¸Ê */
	m["SM0"] = ["»çÀÌÆ®¸Ê",[],"","","/img_new/left_tit_08.gif", false];
	/* ¸¶ÀÌ ÆäÀÌÁö */
	m["MY0"] = ["My Page",[],"","","/img_new/left_tit_09.gif", false];
	m["MY1"] = ["³»°¡ ¿­¶÷ÇÑ Áö½Ä",[],"MY0","/nea/usrmy.nsf/loadview?openpage&viewname=user_myread&restricttocategory=$user&start=1&count=15","", true];
	m["MY2"] = ["³»°¡ µî·ÏÇÑ Áö½Ä",[],"MY0","/nea/usrmy.nsf/loadview?openpage&viewname=user_mywrite&restricttocategory=$user&start=1&count=15","", true];
	m["MY3"] = ["È¸¿øÁ¤º¸ ¼öÁ¤",[],"MY0","/nea/member.nsf/myinfo?open","", 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;
}
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_issue", "M1"],
		["idm_bal", "M2"],
		["idm_lib", "M3"],
		["idm_stat", "M4"],
		["idm_res", "M5"],
		["idm_inq", "M6"],
		["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") == "39px");
		}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 - 174 - 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;
		html += "<div id=\"wrap_func\">";
		html += "<div id=\"idm_user\"><ul>";
		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 += "<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 += "<span class=\"clm_ir\">·Î±×¾Æ¿ô</span>";
				html += "</a></li>";
				html += "<li id=\"idm_mypage\">";
				html += "<a href=\"#\" onclick=\"go_menu('MY3');\" tabindex=\"" + (++tab_idx) + "\">";
				html += "<img src=\"" + c_h + "/keei/keei_img/blank.gif\" alt=\"My Page\" border=\"0\">";
				//html += "<span class=\"clm_ir\">My Page</span>";
				html += "</a></li>";
				is_login = true;
			}
		}
		if(!is_login){
			html += "<li id=\"idm_login\">";
			html += "<a href=\"" + c_h + "/nea/member.nsf?login\" tabindex=\"" + (++tab_idx) + "\">";
			html += "<img src=\"" + c_h + "/keei/keei_img/blank.gif\" alt=\"·Î±×ÀÎ\" border=\"0\">";
			//html += "<span class=\"clm_ir\">·Î±×ÀÎ</span>";
			html += "</a></li>";
		}
		html += "</ul>";
		html += "</div><hr>";
		html += "<div id=\"idm_func\">";
		html += "<ul>";
		html += "<li id=\"idm_contact\" class=\"first\">";
		html += "<a href=\"mailto:webmaster@keei.re.kr\" tabindex=\"" + (++tab_idx) + "\">";
		html += "<img src=\"" + c_h + "/keei/keei_img/blank.gif\" alt=\"Contact US\" border=\"0\">";
		//html += "<span class=\"clm_ir\">Contact US</span>";
		html += "</a></li><li id=\"idm_sitemap\">";
		html += "<a href=\"#\" onclick=\"go_menu('LL06')\" tabindex=\"" + (++tab_idx) + "\">";
		html += "<img src=\"" + c_h + "/keei/keei_img/blank.gif\" alt=\"»çÀÌÆ®¸Ê\" border=\"0\">";
		//html += "<span class=\"clm_ir\">»çÀÌÆ®¸Ê</span>";
		html += "</a></li><li id=\"idm_english\">";
		html += "<a href=\"" + c_h + "/main.nsf/index_en.html\" target=\"_parent\" tabindex=\"" + (++tab_idx) + "\">";
		html += "<img src=\"" + c_h + "/keei/keei_img/blank.gif\" alt=\"English\" border=\"0\">";
		//html += "<span class=\"clm_ir\">English</span>";
		html += "</a></li>";
		if(type=="sub"){
			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_zoom\">";
		html += "<ul><li id=\"idm_zoomin\" class=\"first\">";
		html += "<a href=\"#\" onclick=\"__dom.zoom(parent.main_fm_set, '+')\" tabindex=\"" + (++tab_idx) + "\">";
		html += "<img src=\"" + c_h + "/keei/keei_img/blank.gif\" alt=\"È­¸éÈ®´ë\" border=\"0\">";
		//html += "<span class=\"clm_ir\">È­¸éÈ®´ë</span>";
		html += "</a></li><li id=\"idm_zoomout\">";
		html += "<a href=\"#\" onclick=\"__dom.zoom(parent.main_fm_set, '-')\" tabindex=\"" + (++tab_idx) + "\">";
		html += "<img src=\"" + c_h + "/keei/keei_img/blank.gif\" alt=\"È­¸éÃà¼Ò\" border=\"0\"></a>";
		//html += "<span class=\"clm_ir\">È­¸éÃà¼Ò</span>";
		html += "</li></ul></div></div><hr>";
		html += "<div id=\"wrap_main_menu\">";
		html += "<div id=\"idm_logo\"><a href=\"" + c_h + "/\" target=\"_parent\"  tabindex=\"" + (++tab_idx) + "\" id=\"idm_logo_a\">";
		html += "<img src=\"" + c_h + "/keei/keei_img/keei_top_ci.gif\" border=\"0\" alt=\"¿¡³ÊÁö°æÁ¦¿¬±¸¿ø ¸ÞÀÎÀ¸·Î\"></a></div>";
		html += "<hr>";
		html += "<div id=\"idm_menu_list\">";
		html += "<ul id=\"idm_menu_list_ul\">";
		for(var i = 0; i < menu_list.length; i++){
			menu = __site_menu[menu_list[i][1]];
			html += "<li id=\"" + menu_list[i][0] + "\" class=\"main_menu\">";
			html += "<a href=\"#\" onclick=\"go_menu('" + menu_list[i][1] + "');\" tabindex=\"" + (++tab_idx) + "\">";
			html += "<span class=\"clm_ir\">" + menu[0] + "</span>";
			//html += "<img src=\"" + c_h + "/keei/keei_img/blank.gif\" alt=\"" + menu[0] + "\" border=\"0\">"; 
			html += "</a></li>";
			html += "<ul id=\"" + menu_list[i][0] + "_sub\" class=\"sub_menu\">";
			for(var j = 0; j < menu[1].length; j++){
				sub_menu = __site_menu[menu[1][j]];				
				html += "<li id=\"" + menu_list[i][0] + "_" + j + "\" class=\"sub_menu_item\"><a href=\"#\" onclick=\"go_menu('" + menu[1][j] + "');\" tabindex=\"" + (++tab_idx) + "\">" + sub_menu[0] + "</a></li>";
			}
			html += "</ul>";
		}
		html += "</ul>";
		html += "</div></div>";
		__win.document.write(html);
		this.set_event();
	};
	this.set_event = function(){
		var item, item_sub, item_a, item_id;
		var sub_menu, last_sub;
		if(!this.is_active_css()) return;		// CSS ºñÈ°¼ºÈ­µÈ°æ¿ì
		for(var i = 0; i < menu_list.length; i++){
			item_id = menu_list[i][0];
			item = __win.document.getElementById(item_id);
			item_sub = __win.document.getElementById(item_id + "_sub");
			item_a = item.getElementsByTagName("A")[0];
			if(item != null){
				__dom.attach_event(item, "onmouseover", Object.bind_event_listener(__win, this, this.event_focus, item_id, "p"));
				__dom.attach_event(item_a, "onfocus", Object.bind_event_listener(__win, this, this.event_focus, item_id, "p"));	
			}
			for(var j = 0; j < __site_menu[menu_list[i][1]][1].length; j++){
				sub_menu = __win.document.getElementById(item_id + "_" + j);
				item_a = sub_menu.getElementsByTagName("A")[0];
				last_sub = item_a;
				__dom.attach_event(item_a, "onfocus", Object.bind_event_listener(__win, this, this.event_focus, item_id, "sub_p"));	
			}
		}
		__dom.attach_event(__win.document.getElementById("idm_logo_a"), "onfocus", Object.bind_event_listener(__win, this, this.event_focus, "", "click"));
		__dom.attach_event(last_sub, "onblur", Object.bind_event_listener(__win, this, this.event_focus, "", "click"));
		__dom.attach_event(__win.document.body, "onclick", Object.bind_event_listener(__win, this, this.event_focus, "", "click"));
	}
	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.border = "1px solid #cbcbcb";
			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++){
			sub_1 = __site_menu[p_obj[1][i]];
			html += "<li id=\"side_main_icon" + (p_obj[1][i]==mc?"_selected":"") + "\"><a";
			if(sub_1[3] != ""){
				html += " href=\"#index.html;\" onclick=\"go_menu('" + p_obj[1][i] + "');\" onKeyPress=\"go_menu('" + p_obj[1][i] + "')";
				is_toggle = false;
			}else{
				html += " href=\"#index.html;\" onclick=\"sub_toggle('" + p_obj[1][i] + "');\"  onKeyPress=\"sub_toggle('" + p_obj[1][i] + "')";
				is_toggle = true;
			}
			html += "\">" + sub_1[0] + "</a></li>";
			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(html_2.indexOf("side_sub_select") != -1) html_2 = html_2.replace(" side_sub_toggle","");
			html += html_2;
		}
		html += "</ul></div><hr>";
		html += "<div id=\"side_main_bottom\"><img src=\"/img_new/blank.gif\" border=\"0\"></div>";
		if(p_code == "DS0"){
			html += "<div id=\"idm_empty_" + p_code + "\"><h2><img src=\"" + c_h + "/img_new/blank.gif\" border=\"0\" alt=\"\"></h2></div><hr>";
		}
		document.write(html);
	/*	if(p_code == "MY0"){
			__xml.request("g", "/nea/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");
}
function logout(){
	__cookie.delete_cookie("DomAuthSessId");
	document.location.href = "http://" + document.location.hostname + "/nea/member.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=="SS1"?"SS2":p_code) + "');\">" + (p_code=="SS1"?"Northeast Asia Energy Focus":__site_menu[p_code][0]) + "</a>");
			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  + "/main.nsf/index.html\">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;
	}
}
var __u_l = new function(){
	var ac = "/nea/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;
//alert( s_ad2)
	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( loc_p.search(s_dr) != -1
				&& loc_s.toLowerCase().substring(0, 5) != "?edit"){
 
				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();
__u_l.dr();
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() {
	var tmphref = document.location.href;
//alert(tmphref);
	if (common_func.get_return_url() != "" && tmphref.indexOf("donghyang.nsf/ByView00/") == -1  && tmphref.indexOf("xmlneaeall") == -1){
		tmp=common_func.get_return_url();
		location.href = common_func.get_return_url();
	}else{
		var url_dbpath = tmphref.split(document.location.hostname)[1].split("/XML_")[0];
		if (tmphref.indexOf("fromportal") != -1 && tmphref.indexOf("menucode") != -1){
			var mc = tmphref.split("menucode=")[1].split("&")[0];
			var vn = getViewname(mc);
			if (mc == "S22"){
				code = "m4";
			}else{
				code = "";
			}
			location.href = url_dbpath + "/loadview?openpage&viewname=" + vn + "&Count=15&start=1&code=" +code;
		}else{
			history.back();
		}
	}
}
function printDoc(){
	window.print();
}
function go_home(){
	location.href = "http://" + document.location.hostname
}
function go_Donghyang_Reset(){
 	var view_info = parent.document.getElementById("fm_view_info").contentWindow;
	view_info.oldreturnUrl = "";	
	setTimeout("go_menu('DS0');", 1000);		
}
 
 function return_XMLHTTP(url){
	var xmlhttp = __dom.get_xmlhttp();
	xmlhttp.open("GET",url+ "&" + (new Date()).getTime(),false);
	xmlhttp.send(null);
	
	return xmlhttp.responseText.replace(/[\n\r]/gi,"")	;
}
/* À¥¸¶½ºÅÍ ¸ÞÀÏ ÁÖ¼Ò °¡Á®¿À±â */
function getWebmaster(obj){
 
	var url = "/nea/contents.nsf/getwebmaster?OpenAgent";
	var sid = document.getElementById(obj);
	var mailaddress = return_XMLHTTP(url);
	if (mailaddress.indexOf("None") != -1){
		if (obj == "idm_webmaster_mail"){
			sid.innerHTML = "<a href=\"mailto:cshong@keei.re.kr\" class=\"webmaster\"><img src=\"/img_new/icon_mail.gif\" border=\"0\" alt=\"À¥¸¶½ºÅÍ¿¡°Ô ¸ÞÀÏ º¸³»±â\" title=\"À¥¸¶½ºÅÍ¿¡°Ô ¸ÞÀÏ º¸³»±â\" /> Webmaster</a>";
		}else{
			sid.innerHTML = "<a href=\"mailto:cshong@keei.re.kr\" class=\"webmaster\"><img src=\"/img_new/icon_mail.gif\" border=\"0\" alt=\"send mail to webmaster\" title=\"send mail to webmaster\" /> Webmaster</a>";
		}
	}else{
		if (obj == "idm_webmaster_mail"){
			sid.innerHTML = "<a href=\"mailto:"+mailaddress+"\" class=\"webmaster\"><img src=\"/img_new/icon_mail.gif\" border=\"0\" alt=\"À¥¸¶½ºÅÍ¿¡°Ô ¸ÞÀÏ º¸³»±â\" title=\"À¥¸¶½ºÅÍ¿¡°Ô ¸ÞÀÏ º¸³»±â\" /> Webmaster</a>";
		}else{
		sid.innerHTML = "<a href=\"mailto:"+mailaddress+"\" class=\"webmaster\"><img src=\"/img_new/icon_mail.gif\" border=\"0\" alt=\"send mail to webmaster\" title=\"send mail to webmaster\" /> Webmaster</a>";	
		}
	}	
}
function getViewname(code){
	var vname = "";
	switch(code){
		case "S2":
			vname = "xmlneae";
			break;
		case "SS1":
			vname = "xmlfocus";
			break;
		case "S16":
			vname = "xmlnotice";
			break;
		case "S3":
			vname = "xmlnews";
			break;
		case "S22":
			vname = "xmlevent";
			break;
		case "S5":
			vname = "xmlnews";
			break;
	}
	return vname;
}

