/* frame ±¸Á¶ È®ÀÎ */
(function(){
	try{
		if(top==window){
			var loc = document.location;
			loc.href = "http://" + loc.hostname +  "/main.nsf/index_en.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", "en");
	}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;
var __site_menu = [];
(function(){
	var m = __site_menu;
	m["EM1"] = ["KEEI News",[],"","/web_keei/en_news.nsf/loadview?openpage&viewname=xmlmain&Count=12&start=1","/keei/keei_img/eng_letit_m01.gif", true];
	m["EM2"] = ["Selected Issues",[],"","","/keei/keei_img/eng_letit_m02.gif", false];
	m["EM3"] = ["Publications",[],"","","/keei/keei_img/eng_letit_m03.gif", false];
	m["EM4"] = ["Statistics",[],"","","/keei/keei_img/eng_letit_m04.gif", false];
	m["EM5"] = ["Research Projects",[],"","","/keei/keei_img/eng_letit_m05.gif", false];
	m["EM6"] = ["About KEEI",[],"","","/keei/keei_img/eng_letit_m06.gif", false];
	m["ES1"] = ["Pending Policy Issues", [], "EM2", "/web_keei/en_Issues01.nsf/loadview?openpage&viewname=view01&Count=12&start=1", "", true];
	m["ES2"] = ["UN FCCC Nat'l Comm.", [], "EM2", "/web_keei/en_Issues01.nsf/loadview?openpage&viewname=view02&Count=12&start=1", "", true];
	m["ES3"] = ["Energy Survey", [], "EM2", "/web_keei/en_Issues01.nsf/loadview?openpage&viewname=view03&Count=12&start=1", "", true];
	m["ES4"] = ["Nat'l Energy Plan", [], "EM2", "/web_keei/en_Issues01.nsf/loadview?openpage&viewname=view04&Count=12&start=1", "", true];
	m["ES5"] = ["All Publications", [], "EM3", "/web_keei/en_publish.nsf/loadview?openpage&viewname=by_allv&Count=12&start=1", "", true];
	m["ES51"] = ["Research Papers", [], "EM3", "", "", false];
	m["ES171"] = ["Research Papers (By Year)", [], "ES51", "/web_keei/en_publish.nsf/loadview?openpage&viewname=by_report_year&Count=12&start=1&restricttocategory=$first", "", true];
	m["ES172"] = ["Research Papers (By Field)", [], "ES51", "/web_keei/en_publish.nsf/loadview?openpage&viewname=by_report_fields&Count=12&start=1&restricttocategory=$first", "", true];
	m["ES173"] = ["Research Papers (By Type)", [], "ES51", "/web_keei/en_publish.nsf/loadview?openpage&viewname=by_report_types&Count=12&start=1&restricttocategory=$first", "", true];
	m["ES18"] = ["Working Papers", [], "EM3", "/web_keei/en_publish.nsf/loadview?openpage&viewname=by_view04&Count=12&start=1", "", true];
	m["ES19"] = ["Seminar/Conference", [], "EM3", "/web_keei/en_publish.nsf/loadview?openpage&viewname=by_view05&Count=12&start=1", "", true];
	m["ES16"] = ["Periodicals", [], "EM3", "", "", true];
	m["ES164"] = ["Energy Outlook", [], "ES16", "/web_keei/en_publish.nsf/loadview?openpage&viewname=by_energy_outlook&Count=12&start=1", "", true];
	m["ES165"] = ["Korea Energy Review Monthly", [], "ES16", "/web_keei/en_publish.nsf/loadview?openpage&viewname=by_review_monthly&Count=12&start=1", "", true];
	m["ES163"] = ["Korean Energy Economic Review", [], "ES16", "/web_keei/en_publish.nsf/loadview?openpage&viewname=by_economic_review&Count=12&start=1", "", true];
	m["ES161"] = ["Northeast Asia Energy Focus", [], "ES16", "/web_keei/en_publish.nsf/loadview?openpage&viewname=by_neae&Count=12&start=1", "", true];
	m["ES162"] = ["Energy Info. Korea", [], "ES16", "/web_keei/en_publish.nsf/loadview?openpage&viewname=by_energy_info&Count=12&start=1", "", true];
	m["ES166"] = ["Monthly Energy Statistics", [], "ES16", "/web_keei/en_publish.nsf/loadview?openpage&viewname=by_monthly_energy_stat&Count=12&start=1", "", true];
	m["ES167"] = ["Yearbook of Energy Statistics", [], "ES16", "/web_keei/en_publish.nsf/loadview?openpage&viewname=by_yearbook_energy_stat&Count=12&start=1", "", true];
	m["ES168"] = ["Yearbook of Regional Energy Statistics", [], "ES16", "/web_keei/en_publish.nsf/loadview?openpage&viewname=by_yearbook_regional_energy_stat&Count=12&start=1", "", true];
	m["ES8"] = ["Energy Statistics Database", [], "EM3", "http://www.kesis.net/flex/eng_main.jsp", "", false];
//	m["ES6"] = ["Energy Trends", [], "EM3", "", "", false];
	m["ES7"] = ["Subscription for KEEI Publications", [], "EM3", "/keei/eng/e_subscription.html", "", false];
//	m["ES8"] = ["Monthly Energy Statistics", [], "EM4", "/keei/eng/esdb/en_c2_1.html", "", false];
	m["ES9"] = ["Yearly Energy Statistics", [], "EM4", "/keei/eng/esdb/en_c1_1.html", "", false];
	m["ES11"] = ["Research Targets", [], "EM5", "/keei/eng/e_projectgoal.html", "", false];
	m["ES12"] = ["Research Fields", [], "EM5", "", "", false];
	m["ES13"] = ["Ongoing Research Projects", [], "EM5", "/web_keei/en_ProjectPlan.nsf/loadview?openpage&viewname=by_mainv&Count=12&start=1&restricttocategory=$first", "", true];
	m["ES14"] = ["Other Activities", [], "EM5", "/keei/eng/eng_other.html", "", false];
//	m["ES15"] = ["All Publications", [], "ES5", "/web_keei/en_publish.nsf/loadview?openpage&viewname=by_allv&Count=12&start=1", "", true];
//	m["ES20"] = ["Energy Review Monthly", [], "ES6", "/web_keei/en_kerm.nsf/loadview?openpage&viewname=by_mainv&Count=12&start=1", "", true];
//	m["ES21"] = ["Energy Outlook", [], "ES6", "/web_keei/en_outlook.nsf/loadview?openpage&viewname=by_mainv&Count=12&start=1", "", false];
	m["ES22"] = ["Energy Policy Research Group", [], "ES12", "/keei/eng/eng_mainp_10.html", "", false];
	m["ES23"] = ["Green Growth Research Group", [], "ES12", "/keei/eng/eng_mainp_20.html", "", false];
	m["ES24"] = ["Center for Energy Information<br>and Statistics(CEIS)", [], "ES12", "/keei/eng/eng_mainp_30.html", "", false];
	m["ES25"] = ["Message From the President", [], "EM6", "/keei/eng/eng_about_1.html", "", false];
	m["ES26"] = ["Goals ", [], "EM6", "/keei/eng/eng_about_2.html", "", false];
	m["ES27"] = ["A Brief History", [], "EM6", "/keei/eng/eng_about_3.html", "", false];
	m["ES28"] = ["Mission", [], "EM6", "/keei/eng/eng_about_4.html", "", false];
	m["ES29"] = ["Managing Staff", [], "EM6", "/keei/eng/eng_about_5.html", "", false];
	m["ES30"] = ["Organization", [], "EM6", "/keei/eng/eng_about_6.html", "", false];
	m["ES31"] = ["Address", [], "EM6", "/keei/eng/eng_about_7.html", "", false];
	m["ES32"] = ["Direction to KEEI", [], "EM6", "/keei/eng/eng_about_8.html", "", false];
	/* Links */
	m["K0"] = ["Site Links",[],"","","/keei/keei_enimg/eng_letit_m07.gif", false];
	m["K10"] = ["Research Institute/Laboratory",[],"K0","/keei/eng/eng_link.html","", false];
	m["K11"] = ["Company/Government/Public Organization",[],"K0","/keei/eng/eng_link.html#b","", false];
	m["K12"] = ["Miscellaneous",[],"K0","/keei/eng/eng_link.html#c","", false];
	/* Privacy Policy */
	m["P0"] = ["Privacy Policy",[],"","","/keei/keei_enimg/eng_letit_m10.gif", false];
	m["P10"] = ["Privacy Policy",[],"P0","/keei/eng/eng_privacy.html","", false];
	/* Sitemap */
	m["SM0"] = ["Sitemap",[],"","","/keei/keei_enimg/eng_letit_m11.gif", false];
	m["SM10"] = ["Sitemap",[],"SM0","/keei/eng/eng_sitemap.html","", false];
	/* ·Î±×ÀÎ */
	m["L0"] = ["È¸¿ø¼­ºñ½º",[],"","","/keei/keei_img/letit_m08.gif", false];
	m["L10"] = ["ÀÌ¿ë¾È³»",[],"L0","","", 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];
	m["LL01"] = ["Subscription for KEEI",[],"L10","/keei/eng/e_subscription.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["MY0"] = ["My Page",[],"","","/keei/keei_img/letit_m12.gif", 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];
	for(var idx in m){
		if(m[idx][2] != ""){
			m[m[idx][2]][1].push(idx);
		}
	}
})();
function go_menu(code){
	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(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_en_news", "EM1"], //issue
		["idm_en_issue", "EM2"],			// bal
		["idm_en_publica", "EM3"],					// lib
//		["idm_en_stat", "EM4"],				// stat
		["idm_en_res", "EM5"],
		["idm_en_about", "EM6"]
	];
	this.is_active_css = function(){
		try{
			return (__dom.style.current_style(document.getElementById("idm_menu_list"), "height") == "45px");
		}catch(e){
			return false;
		}
	};
	this.set_en = function(w, type){
		var c_h = "http://" + document.location.hostname;
		__win = (w!=null?w:window);
		var ss = __dom.get_stylesheets(window.document, 0);
		__dom.stylesheet.add_rule(ss, "#css_check", "display:none;");
		if(__browser.is_ie){
			__dom.stylesheet.add_rule(ss, "#wrap_body", "height:expression(document.body.clientHeight - 134 - 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:-60px");
			__dom.stylesheet.add_rule(ss, "#wrap_h_body", "padding:74px 0 60px 0");			
		}
		var html = "", menu, sub_menu;
		html += "<div id=\"wrap_func\">";
		html += "<div id=\"idm_user\"><ul>";
/*
		if(__cookie.get_cookie("domauthsessid", true) != null){
			html += "<li id=\"idm_logout\">";
			html += "<a href=\"#\" onclick=\"logout()\" tabindex=\"" + (++tab_idx) + "\">";
			html += "<img src=\"" + c_h + "/keei/keei_img/blank.gif\" alt=\"Logout\" border=\"0\">";
			//html += "<span class=\"clm_ir\">Logout</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>";
		}else{
			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=\"Login\" border=\"0\">";
			//html += "<span class=\"clm_ir\">Login</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=\"" + c_h + "/keei/eng/eng_sitemap.html\" tabindex=\"" + (++tab_idx) + "\">";
		html += "<img src=\"" + c_h + "/keei/keei_img/blank.gif\" alt=\"Sitemap\" border=\"0\">";
		//html += "<span class=\"clm_ir\">Sitemap</span>";
		html += "</a></li><li id=\"idm_korean\">";
		html += "<a href=\"" + c_h + "/main.nsf/index.html\" target=\"_parent\" tabindex=\"" + (++tab_idx) + "\">";
		html += "<img src=\"" + c_h + "/keei/keei_img/blank.gif\" alt=\"Korean\" border=\"0\">";
		//html += "<span class=\"clm_ir\">Korean</span>";
		html += "</a></li>";
//		if(type=="sub"){
			html += "<li id=\"idm_search\">";
			html += "<div id=\"idm_main_search\">";
//			html += "<img src=\"/keei/keei_img/eng_topsmenu_search.gif\" border=\"0\" alt=\"Search\">"; 
			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=\"Search\" border=\"0\">";
			html += "</a>";
			html += "</div>";
			html += "</li>";
//		}
		html += "</ul></div><hr>";
		html += "</div><hr>";
		html += "<div id=\"wrap_main_menu\">";
		html += "<div id=\"idm_logo\"><a href=\"" + c_h + "/main.nsf/index_en.html\" target=\"_parent\"  tabindex=\"" + (++tab_idx) + "\" id=\"idm_logo_a\">";
		html += "<img src=\"" + c_h + "/keei/keei_img/keei_top_ci.gif\" border=\"0\" alt=\"Korea Energy Economics Institute\"></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>";
			if(menu_list[i][1] != "EM6"){
				if(menu[1].length != 0) 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>";
				}
				if(menu[1].length != 0) 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);
				if(sub_menu != null){
					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 = "-131px " + pos[1];
		}else{
			pos = "0 " + pos[1];
		}
		qa.main_a.style.backgroundPosition = pos;
		if(qa.sub == null) {if(show_flash) this.flash_show(true);return;}
		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 + 11;
			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_en = 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 + "\">";
		if(p_obj[1].length > 0){
			for(var i = 0; i < p_obj[1].length; i++){
				sub_1 = __site_menu[p_obj[1][i]];
				html += "<li id=\"side_main_icon_" + (i +1) + "\"" + (p_obj[1][i]==mc?" style=\"background-color:#EBEFF3;\"":"") + "><a";
				if(sub_1[3] != ""){
					html += " href=\"javascript:go_menu('" + p_obj[1][i] + "');\" onclick=\"";
					is_toggle = false;
				}else{
					html += " href=\"javascript:void(0);\" onclick=\"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\">";
					if(sub_1[1][j] != "SS7"){
						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=\"#\" onclick=\"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;
			}
		}else{
			html += "<li id=\"side_main_icon_1\" style=\"background-color:#EBEFF3;\"><a";
			html += " href=\"#\" onclick=\"go_menu('" + p_code + "')";
			html += "\">" + p_obj[0] + "</a></li>";
		}
		html += "</ul></div><hr>";
		if(p_code == "M1"){
			html += "<div id=\"idm_hot_issue\"><h2><img src=\"" + c_h + "/keei/keei_img/le_hotissue_tit.gif\" border=\"0\" alt=\"ÇÖ ÀÌ½´\"></h2>";
			html += "<a href=\"#\" onclick=\"go_menu('SS7');\">" + __site_menu["SS7"][0] + "</a></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\" target=\"_blank\"><img src=\"" + c_h + "/keei/keei_img/blank.gif\" border=\"0\" alt=\"Download PDF Viewer \"></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=\"Download HWP Viewer \"></a></li>";
		html += "<li id=\"idm_viewer_doc\"><a href=\"http://www.microsoft.com/downloads/details.aspx?FamilyID=3657ce88-7cfa-457a-9aec-f4f827f20cac&DisplayLang=en\" target=\"_blank\"><img src=\"" + c_h + "/keei/keei_img/blank.gif\" border=\"0\" alt=\"Download Word Viewer \"></a></li>";
		html += "<li id=\"idm_viewer_xls\"><a href=\"http://www.microsoft.com/downloads/details.aspx?FamilyID=1cd6acf9-ce06-4e1c-8dcf-f33f669dbc3a&DisplayLang=en\" target=\"_blank\"><img src=\"" + c_h + "/keei/keei_img/blank.gif\" border=\"0\" alt=\"Download Excel Viewer \"></a></li>";
		html += "<li id=\"idm_viewer_ppt\"><a href=\"http://www.microsoft.com/downloads/details.aspx?FamilyID=048dc840-14e1-467d-8dca-19d2a8fd7485&DisplayLang=en\" target=\"_blank\"><img src=\"" + c_h + "/keei/keei_img/blank.gif\" border=\"0\" alt=\"Download PPT Viewer \"></a></li>";
		html += "</ul>";
		document.write(html);
	};
	this.set_main = function(w){
		document.write("1");
	};
};
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=\"idm_line\"></div><div id=\"idm_address\">";
	html += "<div id=\"idm_policy_wrap\"><ul id=\"idm_policy\">";
	html += "<li class=\"first\">";
	html += "<a href=\"#\" onclick=\"go_menu('P10');\">Privacy Policy for the KEEI Website</a>";
	html += "</li></ul></div><hr>";
	html += "<h3 id=\"idm_btm_logo\"><img src=\"" + c_h + "/keei/keei_img/bottom_logo.gif\" alt=\"Korea Energy Economics Institute\"></h3>";
	html += "<ul id=\"idm_keei_addr\"><li id=\"idm_addr\"><span>";
	html += "<img src=\"" + c_h + "/keei/keei_img/blank.gif\" border=\"0\" alt=\"665-1 Naeson 2-dong, Euiwang-si, Kyonggi-do, 437-713, Korea, Tel:+82-31-420-2144, Fax:+82-31-422-4958\">";
	html += "</span></li><li id=\"idm_webmater\">";
	html += "<a href=\"mailto:webmaster@keei.re.kr\"><img src=\"" + c_h + "/keei/keei_img/blank.gif\" border=\"0\" alt=\"webmasterl\"></a>";
	html += "</li></ul><hr>";
	html += "<div id=\"idm_copy_right\">";
	html += "<img src=\"" + c_h + "/keei/keei_img/blank.gif\" border=\"0\" alt=\"COPYRIGHT BY 2009 KEEI. ALL RIGHTS RESERVED.\">";
	html += "</div></div>";
	__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 : 	//Àç¹ÌÀÖ´Â´Â¿¡³ÊÁö±³½Ç
		popup();
		break;
	case 200 : 	//¿Â½Ç°¡½º¹èÃâÅë°è
		go_menu("SS59");
		break;
	case 300 : 	//´ÜÀ§º¯È¯
		go_menu("SS71");
		break;
	case 400 : 	//¿ë¾î»çÀü
		go_menu("ED01");
		break;
	case 500 :	//ÀÎÀçÃ¤¿ë
		go_menu("R02");
		break;		
	case 600 : 	//È«º¸ÀÚ·á½Ç
		go_menu("PR01");
		break;
	case 700:	// À¥Áø
		go_menu("MZ01");
		break;
	case 800:	// Ã£¾Æ¿À½Ã´Â ±æ
		go_menu("SS79");
		break;
	case 900: //¸ÞÅ¸°Ë»ö
		targetURL = "http://211.35.39.26:8080/meta/index.html";
		window.open(targetURL,"_blank","width=760,height=790,scrollbars=yes");
		break;		
	}
}
function q_en(tmp){
	var mainurl = "";
	var targetURL = ""; 
	switch(tmp)
	{
	case 100 : 	//link
		go_menu("K10");
		break;
	case 200 : //Statistics
		go_menu("ES8");
		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/main.nsf/index_en.html";
		window.open(targetURL,"_blank");
		break;
	case 500 : //subscription for KEEI
		go_menu("ES7");
		break;	
	case 600 : //Privacy Policy
		go_menu("P10");
		break;	
	}
}
function popup() {
	var c_host = "http://" + document.location.hostname;
	var kkk=null;
	kkk= window.open(c_host + '/keei/kidspage/index.htm','new','location=no,directories=no,resizable=yes,status=no,toolbar=yes,menubar=no,width=810,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" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100" height="280">';
		str += '<param name=movie value="/keei/img_eng/quick_eng.swf">';
		str += '<Param name=quality value=high>';
		str += '<embed src="/keei/img_eng/quick_eng.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100" height="280"></embed></object>';
		str += '<A HREF="#container"><img src="' + c_host + '/keei/keei_img/bt_top.gif" width="100" height="20" border="0" alt=\"top\"></a>';
		str += '<A HREF="http://211.35.39.28/movie/20th_anniv_eng.wmv" target="_new"><img src="' + c_host + '/keei/keei_img/eng_quick_video.gif" width="87" height="45" border="0" alt=\"The 20th Anniversary Vedeo\" style="margin-top:20px;"></a>';
	str +="<div id=\"wrap_quick_navi_bottom\"><ul>";
	str +="	<li><a href=\"#\" onclick=\"q(100);\">Site Links</a></li>";
	str +="	<li><a href=\"#\" onclick=\"q(200);\">Statistics</a></li>";
	str +="	<li><a href=\"#\" onclick=\"q(300);\">Korean Integrated Energy Network</a></li>";
	str +="	<li><a href=\"#\" onclick=\"q(400);\">NEAE</a></li>";
	str +="	<li><a href=\"#\" onclick=\"q(500);\">Subscription for KEEI Publications</a></li>";
	str +="	<li><a href=\"#\" onclick=\"q(600);\">Privacy Police</a></li>";
	str +="</ul></div>"
		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("wrap_main");
				top_margin = 0;
				left_margin = 860 + 10;
			}else{
				base_obj = __win.document.getElementById("idm_sub_content");
				top_margin = 0;
				left_margin = 630 + 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;
	
			__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 + 355 > __win.document.body.scrollHeight - 70) y_bound = __win.document.body.scrollHeight - 70 - 355;
			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 logout(){
	__cookie.delete_cookie("DomAuthSessId");
	document.location.href = "/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  + "/main.nsf/index_en.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;
	}
}
/* Main °Ë»ö */
function main_search_key(e){
	if(e.keyCode == 13){
		main_search();
	}
}
function main_search(){
	//var col_obj = document.getElementById("main_search_sbox");
	//var col = col_obj.options[col_obj.options.selectedIndex].value;
/*	var col = "w1";
	var qt = document.getElementById("main_search_qt").value;	
	window.open("http://211.35.39.23:8089/search/search_homepage/search.jsp?query=" +qt);
//	window.open("http://his.keei.re.kr:8765/keei_internal/eng/query.html?col=" + col + "&qt=" + qt + "&tx0=&tx0=&ty0=w&fl0=&op0=&ql=&charset=utf-8&ht=0&qp=&qs=&qc=&pw=100%25&ws=0&la=ko&qm=0&st=1&nh=10&lk=1&rf=0&rq=0&si=1&oq=&fs=&si=1");
*/
	var col = "w1";
	var m_search = document.getElementById("id_main_search_form");
	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_english/search.jsp";
		form_obj.target = "__new";
//		form_obj.method = "post";
//		form_obj.acceptCharset = "euc-kr";
		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();
//	var form = document.createElement("Form");
//	var qt = document.getElementById("main_search_qt").value.encode();	
//	window.open("http://211.35.39.23:8089/search/search_homepage/search.jsp?query=" +qt);
//	window.open("http://his.keei.re.kr:8765/keei_internal/query.html?col=" + col + "&qt=" + qt + "&tx0=&ty0=w&fl0=&op0=&ql=&charset=utf-8&ht=0&qp=&qs=&qc=&pw=100%25&ws=0&la=ko&qm=0&st=1&nh=10&lk=1&rf=0&rq=0&si=1&oq=&fs=&si=1&submit.x=18&submit.y=7");
}
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 btn_Navigation(cha){
	var msg = "This is the " + (cha=="Next"?"last":"first") + " document.";
	var dbpath = doc_info.db_path||doc_info.dbpath;
	var view = doc_info.view || doc_info.viewname;
	var unid = doc_info.unid || doc_info.docid;
	var url = "/" + dbpath + "/" + view + "/" + unid + "?Navigate&To=" + cha;
	var xml_http = __xml.request("HEAD", url, "object", false, null, null, true);
	var location = xml_http.getResponseHeader("Content-Location");
	if(location == null || location.search(/openview/i) == -1){
		document.location.href = url;
	}else{
		alert(msg);
	}
	return;
}
function closeDoc() {
	if (common_func.get_return_url() != ""){
		location.href = common_func.get_return_url();
	}else{
		history.back();
	}
}
function printDoc(){
	window.print();
}
