(function(){if(!window.daum||!window.daum.extend){var b=window.daum={};b.extend=function(j,h,k){var a=k!==undefined?k:true,g;for(g in h){if(!j[g]||a){j[g]=h[g]}}return j}}else{return}b.extend(b,{version:"1.0_r184",Array:{compact:function(h){if(!h){return[]}for(var f=0,g=[],a=h.length;f<a;f+=1){if(!(h[f]===null||typeof(h[f])==="undefined")){g.push(h[f])}}return g},each:function(h,f){if(Array.prototype.forEach){return h.forEach(f)}for(var g=0,a=h.length;g<a;g+=1){f(h[g],g)}},indexOf:function(){if([].indexOf){return function(a,d){return a.indexOf(d)}}else{return function(h,f){for(var g=0,a=h.length;g<a;g+=1){if(h[g]===f){return g}}return -1}}}(),contains:function(a,d){return a.indexOf(d)>-1}},Browser:{ua:navigator.userAgent.toLowerCase(),offset:{width:0,height:0},browserInit:function(){this.ie=this.ua.indexOf("msie")!=-1;this.ie_sv1=this.ua.indexOf("sv1")!=-1;this.ie_sv2=this.ua.indexOf("sv2")!=-1;this.ie6=this.ua.indexOf("msie 6")!=-1;this.ie7=this.ua.indexOf("msie 7")!=-1;this.ie8=this.ua.indexOf("msie 8")!=-1;
this.ff=this.ua.indexOf("firefox")!=-1&&this.ua.indexOf("navigator")==-1;this.ff2=this.ff&&this.ua.indexOf("firefox/2.")!=-1;this.ff3=this.ff&&this.ua.indexOf("firefox/3.")!=-1;this.sf=this.ua.indexOf("safari")!=-1&&this.ua.indexOf("chrome")==-1;this.webkit=this.ua.indexOf("applewebkit")!=-1;this.op=this.ua.indexOf("opera")!=-1;this.cr=this.ua.indexOf("chrome/")!=-1;this.ns=this.ua.indexOf("netscape")!=-1||(this.ua.indexOf("firefox")!=-1&&this.ua.indexOf("navigator")!=-1);this.gecko=this.ua.indexOf("gecko")!=-1;this.infopath=this.ua.indexOf("infopath")!=-1;this.etc=this.gecko&&this.ff&&this.ns;this.win=this.ua.indexOf("win")!=-1;this.vista=this.ua.indexOf("nt 6")!=-1;this.xp=this.ua.indexOf("nt 5.1")!=-1;this.w2k=this.ua.indexOf("nt 5.0")!=-1;this.w98=this.ua.indexOf("windows 98")!=-1;this.mac=this.ua.indexOf("mac")!=-1;this.unix=!(this.win||this.mac);this.versioning();return},versioning:function(){if(this.ie){if(this.ie8){this.ie7=this.ie6=this.ie_sv2=this.ie_sv1=false}if(this.ie7){this.ie6=this.ie_sv2=this.ie_sv1=false
}}if(this.ff){if(this.ff3){this.ff2=false}}if(this.sf&&this.cr){this.sf=false}}},Element:{cleanBlankNodes:function(f){var e=b.$(f),a=e.firstChild;try{do{if(a.nodeType===3&&!/\S/.test(a.nodeValue)){e.removeChild(a)}}while(a=a.nextSibling)}catch(e){}return e},getChildElements:function(g){var h=b.$(g).firstChild,a=[];try{do{if(h.nodeType===1){a.push(h)}}while(h=h.nextSibling)}catch(e){}return a},getElementsByClassName:function(k,n){if(document.getElementsByClassName.toString().indexOf("native")>0){return b.$A(k.getElementsByClassName(n))}var j=k==document||k==document.body||k==window;if(j||k.id){return b.$$((j?"":"#"+k.id+" ")+"."+b.String.trim(n).replace(/\s+/g,"."))}for(var o=b.$(k).getElementsByTagName("*"),l=[],m=0,a=o.length;m<a;m+=1){if(b.Element.hasClassName(o[m],n)){l.push(o[m])}}return(l.length>0)?l:[]},getFirstChild:function(a){var d=b.$(a).firstChild;while(d&&d.nodeType!==1){d=d.nextSibling}return d},getLastChild:function(d){var a=b.$(d).lastChild;while(a&&a.nodeType!==1){a=a.previousSibling
}return a},getNext:function(d){var a=b.$(d).nextSibling;while(a&&a.nodeType!==1){a=a.nextSibling}return a},getPrev:function(a){var d=b.$(a).previousSibling;while(d&&d.nodeType!==1){d=d.previousSibling}return d},getParent:function(a){return b.$(a).parentNode},getCoords:function(t,s,h){var q=s||false,e=b.$(h)||false,p=b.$(t),a=p.offsetWidth,r=p.offsetHeight,o={left:0,top:0,right:0,bottom:0},u;while(p){o.left+=p.offsetLeft||0;o.top+=p.offsetTop||0;p=p.offsetParent;if(q){if(p){if(p.tagName=="BODY"){break}u=b.Element.getStyle(p,"position");if(u!=="static"){break}}}if(e&&e==p){break}}o.right=o.left+a;o.bottom=o.top+r;return o},getCoordsTarget:function(d,a){return b.Element.getCoords(d,false,a)},getStyle:function(o,n,p){var l=b.$(o),a,m,q,e=p||n;if(n.toLowerCase()=="float"){q=(b.Browser.ie)?"styleFloat":"cssFloat"}else{q=n}if(l.currentStyle){m=(q.indexOf("-")!==-1)?q.replace(/[\-](.)/g,function(c,d){return d.toUpperCase()}):q;a=l.currentStyle[m]}else{m=(/[A-Z]/.test(e))?e.replace(/([A-Z])/g,function(c,d){return"-"+d.toLowerCase()
}):e;a=document.defaultView.getComputedStyle(l,null).getPropertyValue(m)}return a},hasClassName:function(j,k){var g=b.String.trim(b.$(j).className).replace(/\s+/g," ").split(" "),h=b.String.trim(k).replace(/\s+/g," ").split(" "),a=true;b.Array.each(h,function(c){a=b.Array.contains(g,c)&&a});return a},visible:function(a){var d=b.$(a);return !(d.offsetWidth===0&&d.offsetHeight===0)},show:function(a,e){var f=b.$(a);f.style.display=e||"block";return f},hide:function(a){var d=b.$(a);d.style.display="none";return d},toggle:function(a,e){var f=b.$(a);return(b.Element.visible(f))?b.Element.hide(f):b.Element.show(f,e||"block")},addClassName:function(f,a){var e=b.$(f);if(b.Element.hasClassName(e,a)){return e}e.className=(b.String.trim(e.className)==="")?a:e.className+" "+a;return e},removeClassName:function(d,a){return b.Element.replaceClassName(d,a,"")},replaceClassName:function(m,k,e){var l=b.$(m),a=[],j=b.String.trim(b.$(m).className).replace(/\s+/g," ").split(" ");b.Array.each(j,function(c){c===k?e&&a.push(e):a.push(c)
});l.className=a.join(" ");return l},setOpacity:function(a,e){var f=b.$(a);f.style.filter="alpha(opacity="+e*100+")";f.style.opacity=f.style.MozOpacity=f.style.KhtmlOpacity=e;return f}},Event:{observer:[],EVENTID:0,crossEvent:function(){var a={};if(!!document.addEventListener){a.add=function(e){var f=e.type;if(f.toLowerCase()=="mousewheel"&&b.Browser.ff){f="DOMMouseScroll"}e.src.addEventListener(f,e.handler,e.isCapture)};a.remove=function(e){var f=e.type;if(f.toLowerCase()=="mousewheel"&&b.Browser.ff){f="DOMMouseScroll"}e.src.removeEventListener(f,e.handler,e.isCapture)}}else{a.add=function(e){var f=e.type;if(f.toLowerCase()=="dommousescroll"){f="mousewheel"}e.src.attachEvent("on"+f,e.handler)};a.remove=function(e){var f=e.type;if(f.toLowerCase()=="dommousescroll"){f="mousewheel"}e.src.detachEvent("on"+f,e.handler)}}return a}(),bindedHandlerRegister:[],getBindedHandler:function(h,j){var k=b.Event.bindedHandlerRegister,a=-1,l,m;for(l=0,loop=k.length;l<loop;l+=1){if(k[l].src===h&&k[l].handler===j){a=l;
break}}if(a>=0){return k[a].bindedHandler}else{m=b.Function.bindAsEventListener(j,h);k.push({src:h,handler:j,bindedHandler:m});return m}},addEvent:function(o,l,a,p){var s=b.$(o),m=false,q=-1,r=b.Event.EVENTID++,n={src:s,type:l,handler:a,isCapture:p||false};b.Event.observer[r]=n;b.Event.crossEvent.add(n);return r},removeEvent:function(l,m,n,o){var a=b.Event.observer;if(!!l&&!m&&!n){b.Event.crossEvent.remove(a[l]);delete b.Event.observer[l]}else{var j=b.$(l);b.Event.crossEvent.remove({src:j,type:m,handler:n,isCapture:o||false});for(var k in a){if(a[k].src===j&&a[k].type===m&&a[k].handler===n&&a[k].isCapture===(o||false)){delete b.Event.observer[k];break}}}},stopObserving:function(a){if(b.Event.observer[a]){b.Event.removeEvent(a)}},hasObserver:function(g,j){if(typeof g==="number"){return !!b.Event.observer[g]}else{var k=false,a=b.Event.observer;for(var h in a){if(a[h].src===g&&a[h].type===j){k=true;break}}return k}},stopEvent:function(a){b.Event.stopPropagation(a);b.Event.preventDefault(a);
return false},preventDefault:function(d){var a=d||window.event;if(a.preventDefault){a.preventDefault()}else{a.returnValue=false}return false},stopPropagation:function(d){var a=d||window.event;if(a.stopPropagation){a.stopPropagation()}else{a.cancelBubble=true}},GC:function(){if(b.Browser.ie){return function(){for(var a in b.Event.observer){var d=b.Event.observer[a].src;if(d&&d.ownerDocument){try{!d.offsetParent&&b.Event.stopObserving(a)}catch(d){b.Event.stopObserving(a)}}}}}else{return function(){for(var a in b.Event.observer){var e=b.Event.observer[a].src,f=false;if(e&&e.ownerDocument){if(!e.offsetParent){do{if(e===document.body){f=true;break}}while(e=e.parentNode);!f&&b.Event.stopObserving(a)}}}}}}},Function:{bind:function(h){var f=h,k=b.$A(arguments),a,j;k.shift();a=k.shift();j=function(){return f.apply(a,k.concat(b.$A(arguments)))};j.__Binded=true;return j},bindAsEventListener:function(h){var f=h,k=b.$A(arguments),a,j;k.shift();a=k.shift();j=function(c){return f.apply(a,[c||window.event].concat(k))
};j.__Binded=true;return j},interval:function(f,a,g){var h=(g)?b.Function.bind(f,g):f;return window.setInterval(h,a)},timeout:function(f,a,g){var h=(g)?b.Function.bind(f,g):f;return window.setTimeout(h,a)}},Fx:{},Number:{},Object:{isArray:function(a){return(b.Object.getType(a)==="Array")},isBoolean:function(a){return(b.Object.getType(a)==="Boolean")},isFunction:function(a){return(b.Object.getType(a)==="Function")},isString:function(a){return(b.Object.getType(a)==="String")},isNumber:function(a){return(b.Object.getType(a)==="Number")},isObject:function(a){return(b.Object.getType(a)==="Object")},getType:function(a){return Object.prototype.toString.call(a).toString().match(/\[object\s(\w*)\]$/)[1]},toJSON:function(a){return b.toJSON(a)}},String:{trim:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},replaceAll:function(){return function(f,a,e){if(a.constructor==RegExp){return f.replace(new RegExp(a.toString().replace(/^\/|\/$/gi,""),"gi"),e)}return f.split(a).join(e)}}(),byteLength:function(d){var a=0;
b.$A(d.toString()).each(function(c){a+=(escape(c).length>3)?2:1});return a},cutString:function(o,a,p){var m=p||"",n=a-m.length,k=0,l="",q;b.$A(o.toString()).each(function(c){q=(escape(c).length>3)?2:1;k+=q;n-=q;if(n>=0){l+=c}});return(a>=k)?o:l+=m}},$:function(a){return typeof a=="string"?document.getElementById(a):a},$A:function(l){if(!l){return[]}if(l instanceof Array&&!b.Browser.op){return l}var k=(typeof l=="string"&&(b.ie||b.op))?l.split(""):l,a;try{a=Array.prototype.slice.call(k)}catch(e){for(var j=0,a=[],m=l.length;j<m;j+=1){a.push(l[j])}}return a},$C:function(a,e){var f=b.$(a);return(f!==null)?b.Element.getElementsByClassName(f,e):null},$E:function(d){var a=b.$(d);if(a){b.extendMethods(a,b.Element,false);a.addEvent=b.methodize(b.Event.addEvent);a.removeEvent=b.methodize(b.Event.removeEvent)}return a},$F:function(j){var h=b.$(j)||document.getElementsByName(j)[0],k,e,a;if(!h||(h.tagName!=="INPUT"&&h.tagName!=="SELECT"&&h.tagName!=="TEXTAREA")){return""}if(h.type=="radio"||h.type=="checkbox"){for(k=0,e=document.getElementsByName(h.name),a=new Array();
k<e.length;k+=1){if(e[k].checked){a.push(e[k].value)}}a=(h.type=="radio")?a[0]:a}else{if(h.type=="select-multiple"){for(k=0,e=b.Element.getChildElements(h),a=new Array();k<e.length;k+=1){if(e[k].selected){a.push(e[k].value)}}}else{if(h.value){a=h.value}}}return a},$T:function(a,d){return(d||document).getElementsByTagName(a)},activeX:function(){return function(t,A,B){var a=new Date(),y=B||false,q=a.getMinutes().toString()+a.getSeconds()+a.getMilliseconds(),v=t.param,u,r,w=false,C=null,s="<object ",x,z;s+='id="'+((!t.id)?"daumActiveX"+q+'" ':t.id+'" ');s+='name="'+((!t.name)?"daumActiveX"+q+'" ':t.name+'" ');s+=(t.type)?'type="'+t.type+'" ':"";s+=(t.classid)?'classid="'+t.classid+'" ':"";s+=(t.width)?'width="'+t.width+'" ':"";s+=(t.height)?'height="'+t.height+'" ':"";s+=(t.codebase)?'codebase="'+t.codebase+'" ':"";s+=">\r\n";for(u in v){if(v.hasOwnProperty(u)){s+='<param name="'+u+'" value="'+v[u]+'" />\r\n'}}s+="<embed ";s+='id="'+((!t.id)?"daumActiveX"+q+'" ':t.id+'" ');s+='name="'+((!t.name)?"daumActiveX"+q+'" ':t.name+'" ');
s+=(t.type)?'type="'+t.type+'" ':"";s+=(t.width)?'width="'+t.width+'" ':"";s+=(t.height)?'height="'+t.height+'" ':"";for(u in v){if(v.hasOwnProperty(u)){r=u.toLowerCase();if(r){if(r=="movie"||r=="src"){C=v[u]}if(r!="flashvars"){s+=r+'="'+v[u]+'" '}else{w=v[u]}}}}s+=" />\r\n</object>\r\n";if(!!w&&!!C){s=s.replace('src="'+C+'"','src="'+C+(C.indexOf("?")==-1?"?":"&")+w+'"')}if(!y){x=b.$(A);if(b.Browser.ie||t.type=="application/x-shockwave-flash"||t.classid.toLowerCase()=="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"||(b.Browser.win&&t.classid.toLowerCase()=="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95")){if(!y){x.innerHTML=s}}z=b.Element.getFirstChild(x);return(b.Browser.ie)?z:z.getElementsByTagName("embed")[0]}else{return s}}}(),documentLoaded:false,extendMethods:function(j,h,k){var a=k!==undefined?k:true,g;for(g in h){if(!j[g]||a){if(typeof(h[g])=="function"){j[g]=b.methodize(h[g])}}}return j},methodize:function(a){return function(){return a.apply(null,[this].concat(b.$A(arguments)))}},nativeExtend:function(){var f=[[b.Object,Object],[b.String,String.prototype],[b.Number,Number.prototype],[b.Array,Array.prototype],[b.Function,Function.prototype]],e,a=f.length;
Array.prototype.isArray=true;Number.prototype.isNumber=true;String.prototype.isString=true;Function.prototype.isFunction=true;for(e=0;e<a;e+=1){b.extendMethods(f[e][1],f[e][0],false)}},random:function(d,a){return Math.floor(Math.random()*(a-d+1)+d)},showFlash:function(k,m,o,j,a){var n={quality:"high",wmode:"transparent",bgcolor:"#FFFFFF",pluginspace:"http://www.macromedia.com/go/getflashplayer",allowScriptAccess:"always",allowFullScreen:"true",htmltext:false},l={type:"application/x-shockwave-flash",classid:"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000",codebase:"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0",wmode:"transparent",width:m,height:o,param:{movie:k,src:k}};b.extend(n,a||{});b.extend(l.param,n);if(location.toString().indexOf("https://")!=-1){l.codebase=l.codebase.replace("http://","https://")}return b.activeX(l,j,n.htmltext)}})})();(function(){daum.Browser.browserInit();if(!document.getElementsByClassName){document.getElementsByClassName=daum.methodize(daum.Element.getElementsByClassName)
}if(String.prototype.trim){daum.String.trim=function(b){return b.trim()}}return true})();daum.extend(daum,{createElement:function(p,q){var e,u="",n=daum.HTMLStack,r,t,o,m;if(!q){e=daum.String.startsWith(p,"<")?p:("<"+p+"></"+p+">")}else{for(i in q){u+=i+'="'+q[i]+'" '}e="<"+p+" "+u+"></"+p+">"}try{n.innerHTML=e;r=n.removeChild(n.firstChild);if(r.nodeType!==1){throw ({message:"shit browser!"})}else{return r}}catch(s){t=e.match(/\w+/).toString().toLowerCase();o={tbody:["<table>","</table>"],tr:["<table><tbody>","</tbody></table>"],td:["<table><tbody><tr>","</tr></tbody></table>"],option:["<select>","</select>"]};if(o[t]){n.innerHTML=o[t][0]+e+o[t][1];m=n.removeChild(n.firstChild);return m.getElementsByTagName(t)[0]}else{return document.createElement(e)}}},loadedScripts:{},loadTimer:{},load:function(h,g,f){if(daum.loadedScripts[h]){if(g){g()}return false}var k,j;k=document.createElement("script");k.type="text/javascript";for(j in f){if(f.hasOwnProperty(j)){k.setAttribute(j,f[j])}}k.src=h;daum.$T("head")[0].appendChild(k);
if(!g){return false}k.onreadystatechange=function(){if(this.readyState=="loaded"||this.readyState=="complete"){if(!daum.loadedScripts[h]){daum.loadedScripts[h]=true;g()}}return};k.onload=function(){if(!daum.loadedScripts[h]){daum.loadedScripts[h]=true;g()}return};return true},urlParameter:function(){for(var g={},h=[],k=location.search.substr(1).split("&"),j=0,a=k.length;j<a;j+=1){h=k[j].split("=");g[h[0]]=h[1]}return g}(),getParam:function(b){return this.urlParameter[b]||null},useHTMLPrototype:function(){daum.HTMLFragment=(document.createDocumentFragment)?document.createDocumentFragment():document.createElement("div");daum.HTMLPrototype=document.createElement("div");daum.HTMLStack=document.createElement("div");daum.HTMLPrototype.id="daum_html_prototype";daum.HTMLStack.id="daum_html_stack";daum.HTMLFragment.appendChild(daum.HTMLPrototype);daum.HTMLFragment.appendChild(daum.HTMLStack);daum.HTMLPrototype.style.position=daum.HTMLStack.style.position="absolute";daum.HTMLPrototype.style.left=daum.HTMLStack.style.left=daum.HTMLPrototype.style.top=daum.HTMLStack.style.top="-10000px";
return true}(),toJSON:function(b){return JSON.stringify(b)},xmlToObject:function(f){var e=f.documentElement,d=function(c){for(var a={},q=daum.getChildElements(c),l,b,j=0,p=q.length;j<p;j+=1){l=q[j].nodeName;b=(daum.getChildElements(q[j]).length>0)?d(q[j]):(q[j].firstChild==null)?"":q[j].firstChild.nodeValue;if(a[l]!=undefined||c.getElementsByTagName(l).length>1){if(a[l]==undefined){a[l]=[]}a[l].push(b)}else{a[l]=b}for(var o=0;o<q[j].attributes.length;o+=1){a[l+"@"+q[j].attributes[o].nodeName]=(q[j].attributes[o].nodeValue||"").toString()}}return a};return d(e)},jsonToObject:function(b){return JSON.parse(b)}});daum.extend(daum.Array,{copy:function(k){for(var j=0,g=[],h,a=k.length;j<a;j+=1){if(k[j].constructor==k.constructor){g[j]=daum.Array.copy(k[j])}else{if(typeof(k[j])=="object"){if(typeof(k[j].valueOf())=="object"){g[j]=k[j].constructor();for(h in k[j]){g[j][h]=k[j][h]}}else{g[j]=k[j].constructor(k[j].valueOf())}}else{g[j]=k[j]}}}return g},map:function(f,a){if(typeof Array.prototype.map==="function"&&Array.prototype.map.toString().indexOf("native")>0){return f.map(a)
}for(var k=[],b=0,j=f.length;b<j;b+=1){k[b]=a(f[b],b)}return k},size:function(a){return daum.Array.compact(a).length},uniq:function(h){var g=[],f;for(var f=0,g=[],a=h.length;f<a;f+=1){daum.Array.contains(g,h[f])||g.push(h[f])}return g},getFirst:function(a){return a[0]},getLast:function(a){return a[a.length-1]}});daum.extend(daum.Browser,{getWindowSize:function(){var d=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth||1003)-2,c=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||650)-2;return{width:d,height:c}},getScrollOffsets:function(){return{left:window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft,top:window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop}},setCookie:function(k,j,g){var h=new Date(),d="";if(g){h.setDate(h.getDate()+g);d="expires="+h.toGMTString()+";"}document.cookie=k+"="+escape(j)+"; path=/;"+d},getCookie:function(k){var f=k+"=",j=document.cookie+";",h=j.indexOf(f),g;
if(h!=-1){g=j.indexOf(";",h);return unescape(j.substring(h+f.length,g))}return},delCookie:function(b){document.cookie=b+"=;expires=Fri, 31 Dec 1987 23:59:59 GMT;"},setOffset:function(){var c=daum.Browser,d=oh=0;if(c.ie_sv1){d=10;oh=(c.infopath)?58:29}else{if(c.ie7){d=10;oh=81}else{if(c.etc){d=(c.mac)?0:6;oh=(c.mac)?68:54}else{if(c.ff2){d=(c.mac)?0:6;oh=(c.mac)?18:(c.infopath)?54:49}else{if(c.ff3){d=(c.mac)?0:8;oh=(c.mac)?68:(c.infopath)?85:75}else{if(c.sf){d=(c.mac)?0:4;oh=(c.mac)?23:27}else{if(c.ns){d=(c.mac)?0:6;oh=(c.mac)?18:54}else{if(c.op){d=(c.mac)?0:9;oh=(c.mac)?36:49}}}}}}}}c.offset.width=d;c.offset.height=oh}(),resizePop:function(e,g){var f=(typeof(e)=="object")?e.offsetHeight:g,h=(typeof(e)=="object")?e.offsetWidth:e;window.resizeTo(h+daum.Browser.offset.width,f+daum.Browser.offset.height)},popup:function(n,h,l,j){var o={name:"daumPopup",scroll:0,resize:0,status:0},k,m=function(a){return(a&&a!="no")?"yes":"no"};daum.extend(o,j||{},true);k="width="+h+",height="+l+",status="+m(o.status);
k+=",resizable="+m(o.resize)+",scrollbars="+m(o.scroll);return window.open(n,o.name,k)}});daum.extend(daum.Function,{callBack:function(h){var j=h,f=daum.$A(arguments),k,g;f.shift();k=f.shift();return function(){f=f.concat(daum.$A(arguments));g=j.apply(null,f);k.apply(null,f);return g}},callFore:function(g){var h=g,f=daum.$A(arguments),e;f.shift();e=f.shift();return function(){f=f.concat(daum.$A(arguments));e(f);return h(f)}},inherit:function(j,k,f){var c=function(){},h;c.prototype=k.prototype;j.prototype=new c(),j.prototype.constructor=j;j.prototype.parent=(k.prototype.parent||[]).concat(k);j._parent=k;h=j.prototype.parent.length;j.prototype.$super=function(){this.constructor.prototype.parent[--h].apply(this,arguments);h=h==0?this.constructor.prototype.parent.length:h};if(f){daum.Function.members(j,f)}return j},members:function(h,g){var e,f=h._parent||h;for(var e in g){h.prototype[e]=(typeof(g[e])=="function")?(f.prototype[e])?(function(b,a){if(a.toString().indexOf("this.$super(")>-1){return function(){this.$prev_super=this.$super;
this.$super=function(){this.$super=this.$prev_super;return f.prototype[b].apply(this,arguments)};return a.apply(this,arguments)}}return function(){return a.apply(this,arguments)}})(e,g[e]):(function(b,a){if(a.toString().indexOf("this.$super(")>-1){throw new Error(b+" function is not defined in "+h)}return function(){return a.apply(this,arguments)}})(e,g[e]):g[e]}return h},method:function(g,h,f){var e=g._parent||g;g.prototype[h]=(typeof(f)=="function")?(e.prototype[h])?(function(b,a){return function(){this.$super=function(){return e.prototype[b].apply(this,arguments)};return a.apply(this,arguments)}})(h,f):(function(b,a){return function(){this.$super=function(){return true};return a.apply(this,arguments)}})(h,f):f;return g}});daum.createFunction=function(g,f){var h="return function(",e;for(e=0;e<g.length;e++){h+=""+g[e]+","}h=h.replace(/,$/,"");h=h+"){"+f+"}";return(new Function(h))()};daum.extend(daum.Fx,{running:{},parse:function(h,k,j){if(k==="opacity"&&daum.ie){h=h===undefined?1:h}else{if(h==="transparent"||h.startsWith("rgba")){h="rgb(255,255,255)"
}else{if(h==="auto"){h=daum.String.px(j["scroll"+k.charAt(0).toUpperCase()+k.substr(1)])}}}var g=parseFloat(h),f=h.toString().replace(/^\-?[\d\.]+/,"");return{value:isNaN(g)?f:g,unit:isNaN(g)?f.startsWith("rgb")||f.startsWith("#")?"color":"":f}},normalize:function(s){var l={},m,k=(typeof s==="object")?"":s,q,n=document.createElement("div"),o=("borderStyle backgroundColor borderBottomColor borderBottomWidth borderLeftColor borderLeftWidth borderRightColor borderRightWidth borderSpacing borderTopColor borderTopWidth bottom color fontSize fontWeight height left letterSpacing lineHeight marginBottom marginLeft marginRight marginTop maxHeight maxWidth minHeight minWidth opacity outlineColor outlineOffset outlineWidth paddingBottom paddingLeft paddingRight paddingTop right textIndent top width wordSpacing zIndex").split(" "),p=o.length,r;n.innerHTML='<div style="'+k+'"></div>';q=n.childNodes[0];if(""===k){for(r in s){q.style[r]=s[r].toString()}}while(p--){if(m=q.style[o[p]]){l[o[p]]=this.parse(m,o[p])
}}return l},s:function(c,e,f){return c.substr(e,f||1)},stop:function(d,c){clearInterval(this.running[d.id]);delete daum.Fx.running[d.id];c&&c(d);d.id=d.id.toString().startsWith("__t")?"":d.id},color:function(r,n,j){var p=2,q,m,o,c=[],s=[];while(q=3,m=arguments[p-1],p--){if(this.s(m,0)==="r"){m=m.match(/\d+/g);while(q--){c.push(~~m[q])}}else{if(m.length===4){m="#"+this.s(m,1)+this.s(m,1)+this.s(m,2)+this.s(m,2)+this.s(m,3)+this.s(m,3)}while(q--){c.push(parseInt(this.s(m,1+q*2,2),16))}}}while(q--){o=~~(c[q+3]+(c[q]-c[q+3])*j);s.push(o<0?0:o>255?255:o)}return"rgb("+s.join(",")+")"},animate:function(w,q,p){var x=daum.$(w),C=p||{},t=this.normalize(q),v=x.currentStyle?x.currentStyle:getComputedStyle(x,null),A,u={},z=+new Date,B=(C.duration&&C.duration<=10?C.duration*1000:C.duration)||700,r=z+B,y,s=C.easing||function(c,d,a,b){return -a*(c/=b)*(c-2)+d};x.id=(!x.id)?"__t"+ +new Date+daum.random(1,10000):x.id;if(daum.ie6){x.style.zoom="1"}if(this.running[x.id]){clearInterval(this.running[x.id]);delete daum.Fx.running[x.id]
}for(A in t){u[A]=this.parse(v[A],A,x)}if(daum.toJSON(u)===daum.toJSON(t)){this.stop(x,C.callback);return}y=setInterval(function(){var a=+new Date;for(A in t){try{x.style[A]=t[A].unit==="color"?daum.Fx.color(u[A].value,t[A].value,s(a-z,0,1,B)):s(a-z,u[A].value,t[A].value-u[A].value,B).toFixed(3)+t[A].unit}catch(b){x.style[A]=t[A].value;delete t[A]}if(A==="opacity"&&daum.ie){x.style.filter="alpha(opacity="+x.style[A]*100+")"}}if(a>r){for(A in t){x.style[A]=t[A].unit==="color"?daum.Fx.color(u[A].value,t[A].value,1):t[A].value+t[A].unit}this.stop(x,C.callback)}}.bind(this),13);this.running[x.id]=y},scrollTo:function(s,m){var t=daum.$E(s),w=m||{},r=(daum.ie)?document.documentElement.scrollTop:window.pageYOffset,u=+new Date,p=t.getCoords()["top"]+((w.offset)?w.offset:0),v=w.duration||700,o=u+v,q=w.easing||function(d,a,b,c){return -b*(d/=c)*(d-2)+a},n=setInterval(function(){var a=+new Date;window.scrollTo(0,q(a-u,r,p-r,v));if(a>o){window.scrollTo(0,p);clearInterval(n)}},13)}});daum.extend(daum.Element,{setLeft:function(e,f,d){return daum.Element.setStyleProperty(e,"left",f,d)
},setTop:function(e,f,d){return daum.Element.setStyleProperty(e,"top",f,d)},setWidth:function(d,e,f){return daum.Element.setStyleProperty(d,"width",e,f)},setHeight:function(d,e,f){return daum.Element.setStyleProperty(d,"height",e,f)},setPosition:function(f,h,g,e){daum.Element.setStyleProperty(f,"left",h,e);return daum.Element.setStyleProperty(f,"top",g,e)},setSize:function(h,f,e,g){daum.Element.setStyleProperty(h,"width",f,g);return daum.Element.setStyleProperty(h,"height",e,g)},setStyleProperty:function(e,h,j,l){var k=daum.$(e),m;if(l||false){m=(isNaN(parseInt(k.style[h])))?parseInt(k["offset"+(h.replace(/^(.)/g,function(a,b){return b.toUpperCase()}))])+j:parseInt(k.style[h])+j}else{m=j}k.style[h]=daum.String.px(m);return k},setLeftByOffset:function(d,c){return daum.Element.setLeft(d,c,true)},setTopByOffset:function(d,c){return daum.Element.setTop(d,c,true)},setWidthByOffset:function(d,c){return daum.Element.setWidth(d,c,true)},setHeightByOffset:function(d,c){return daum.Element.setHeight(d,c,true)
},setPositionByOffset:function(d,e,f){return daum.Element.setPosition(d,e,f,true)},setSizeByOffset:function(d,e,f){return daum.Element.setSize(d,e,f,true)},posHide:function(d){var c=daum.$(d);daum.Element.setPosition(c,-10000,-10000);return c},setCssText:function(){return(daum.Browser.ie)?function(c,d){c.style.cssText=d}:function(c,d){c.setAttribute("style",d)}}(),setPngOpacity:function(){if(daum.Browser.ie6){return function(f,h,g){var e=daum.$(f);e.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+h+'", sizingMethod="'+(g||"image")+'")';if(e.style.background!=""){e.style.background="none"}if(e.tagName.toLowerCase()=="img"){e.src="http://imap.daum-img.net/defaultimg/transparent.gif"}}}else{return function(e,j,h){var g=(h=="scale")?"repeat":"no-repeat",k=daum.$(e);if(k.tagName.toLowerCase()!="img"){k.style.background="url("+j+") "+g}else{k.src=j}}}}(),setStyle:function(m,l,e){if(e){return daum.Element.setStyleProperty(m,l,e,false)}var j=daum.$(m),h=j.style,k;if(l.length<1){return j
}if(daum.Object.isString(l)){h.cssText+=";"+l}else{if(daum.Object.isObject(l)){for(k in l){h[(k=="float"||k=="cssFloat")?(undefined==h.styleFloat?"cssFloat":"styleFloat"):k]=l[k]}}}return j},destroy:function(e){var f="__daumGB",g=daum.$(f),h=daum.$(e);if(h.id===f){return}if(!g){g=daum.createElement("div",{id:f,style:"display:none;"});document.body.appendChild(g)}g.appendChild(h);g.innerHTML="";h=null}});daum.extend(daum.Event,{getWheel:function(e){var d=e||window.event,f=0;if(d.wheelDelta){f=d.wheelDelta/120}else{if(d.detail){f=-d.detail/3}}return f},getMouseButton:function(d){var f=d||window.event,e=f.button;return{left:(daum.Browser.ie)?e===1:e===0,middle:(daum.Browser.ie)?e===4:e===1,right:e==2}},getElement:function(d){var c=d||window.event;return c.srcElement||c.target}});daum.extend(daum.Number,{px:function(b){return daum.String.px(b)},fillZero:function(g,f){var h=f||0,c=g.toString();if(h<c.length){return c}while(c.length<h){c="0"+c}return c},toInt:function(c,d){return daum.String.toInt(c,d)
},toFloat:function(b){return daum.String.toFloat(b)}});daum.extend(daum.String,{empty:function(b){return daum.String.isEmpty(b)},isEmpty:function(b){return(!b||b.length===0)},px:function(c){var d=parseInt(c);return(!isNaN(d))?d+"px":c},removeCR:function(b){return(b)?daum.String.replaceAll(b,/\n|\r/,""):null},toInt:function(c,d){return parseInt(c,d||10)},toFloat:function(b){return parseFloat(b)},startWith:function(c,d){return daum.String.startsWith(c,d)},startsWith:function(c,d){return c.indexOf(d)===0},endWith:function(c,d){return daum.String.endsWith(c,d)},endsWith:function(d,f){var e;return(e=d.length-f.length)>=0&&d.lastIndexOf(f)===e},cutPixel:function(o,l,m){if(!daum.documentLoaded){return false}var j=m||"",n,k,h;document.body.appendChild(daum.HTMLPrototype);daum.HTMLPrototype.innerHTML=j;n=daum.HTMLPrototype.offsetWidth;l-=n;daum.HTMLPrototype.innerHTML="";k=[];for(h=0;h<o.length;h+=1){daum.HTMLPrototype.innerHTML+=o.charAt(h);if(l>daum.HTMLPrototype.offsetWidth){k.push(o.charAt(h))
}else{k.push(j);break}}daum.HTMLFragment.appendChild(daum.HTMLPrototype);return k.join("")},escape:function(c,d){return(d)?daum.String.escapeHTML(c):daum.String.unescapeHTML(c)},escapeHTML:function(b){return b.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")},unescapeHTML:function(b){return daum.String.stripTags(b).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&#39;/g,"'")},toHTML:function(b){return daum.String.unescapeHTML(b)},stripTags:function(b){return b.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?>|<\/\w+>/gi,"")},stripTag:function(b){return daum.String.stripTags(b)}});daum.Ajax=function(b){this.options={url:"",method:"get",async:true,timeout:5000,paramString:"",encoding:"utf-8",onsuccess:function(){},onfailure:function(){},onloading:function(){},ontimeout:function(){},headers:{},link:"ignore"};daum.extend(this.options,b||{});this.init()};daum.Ajax.prototype={init:function(){if(window.XMLHttpRequest){this.XHR=new XMLHttpRequest()
}else{if(window.ActiveXObject){try{this.XHR=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{this.XHR=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){this.XHR=null}}}}if(!this.XHR){return false}this.running=false},request:function(f,d){if(this.running){if(this.options.link==="cancel"){this.abort()}else{return}}this.setOptions(d);var e=f||this.options.url;if(this.options.paramString.length>0&&this.options.method=="get"){e=e+((e.indexOf("?")>0)?"&":"?")+this.options.paramString}this.open(e)},open:function(d){this.running=true;if(this.options.async){this.XHR.onreadystatechange=daum.Function.bindAsEventListener(this.stateHandle,this)}this.options.timer=daum.Function.timeout(this.abort,this.options.timeout,this);this.XHR.open(this.options.method,d,this.options.async);var f=this.options.headers;for(var e in f){this.XHR.setRequestHeader(e,f[e])}this.XHR.send(this.options.paramString);if(!this.options.async){this.stateHandle()}},abort:function(){if(this.XHR){this.XHR.abort();this.callTimeout();
this.running=false}},stateHandle:function(b){switch(this.XHR.readyState){case 4:window.clearTimeout(this.options.timer);this.options.timer=null;if(this.XHR.status==200||this.XHR.status==304){this.callSuccess()}else{if(this.XHR.status>=400){this.callFailure(this.XHR.status)}}this.running=false;break;case 1:this.callLoading();break}},callSuccess:function(){this.options.onsuccess(this.XHR)},callFailure:function(){this.options.onfailure(this.XHR)},callLoading:function(){this.options.onloading(this.XHR)},callTimeout:function(){this.options.ontimeout(this.XHR)},setOptions:function(b){daum.extend(this.options,b||{});this.options.method=this.options.method.toLowerCase();this.setHeader("charset",this.options.encoding);if(this.options.method=="post"){this.setHeader("Content-Type","application/x-www-form-urlencoded")}},setHeader:function(d,c){if(typeof d==="object"){daum.extend(this.options.headers,d||{},true)}else{this.options.headers[d]=c}return this},getHeader:function(b){return this.XHR.getResponseHeader(b)
}};daum.Ajax.xmlToObject=function(b){return daum.xmlToObject(b)};daum.Ajax.jsonToObject=function(b){return daum.jsonToObject(b)};daum.Template=function(b){this.template=b};daum.Template.prototype={evaluate:function(b){return this.template.replace(/#\{([A-Z_][\dA-Z_]*(?:\.[A-Z_][\dA-Z_]*)*)?\}/ig,function(g,f){var a=f?f.split("."):"";var h=b||"";while(a.length){h=h[a.shift()];if(h===undefined||h===null){return""}}return h})},toElement:function(b){return daum.createElement(this.evaluate(b))}};(function(){var s=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,z=0,D=Object.prototype.toString,u=false;var F=function(m,l,r,g){r=r||[];var K=l=l||document;if(l.nodeType!==1&&l.nodeType!==9){return[]}if(!m||typeof m!=="string"){return r}var q=[],p,a,f,h,J,n,o=true,d=t(l);s.lastIndex=0;while((p=s.exec(m))!==null){q.push(p[1]);if(p[2]){n=RegExp.rightContext;break}}if(q.length>1&&y.exec(m)){if(q.length===2&&C.relative[q[0]]){a=B(q[0]+q[1],l)
}else{a=C.relative[q[0]]?[l]:F(q.shift(),l);while(q.length){m=q.shift();if(C.relative[m]){m+=q.shift()}a=B(m,a)}}}else{if(!g&&q.length>1&&l.nodeType===9&&!d&&C.match.ID.test(q[0])&&!C.match.ID.test(q[q.length-1])){var c=F.find(q.shift(),l,d);l=c.expr?F.filter(c.expr,c.set)[0]:c.set[0]}if(l){var c=g?{expr:q.pop(),set:G(g)}:F.find(q.pop(),q.length===1&&(q[0]==="~"||q[0]==="+")&&l.parentNode?l.parentNode:l,d);a=c.expr?F.filter(c.expr,c.set):c.set;if(q.length>0){f=G(a)}else{o=false}while(q.length){var j=q.pop(),b=j;if(!C.relative[j]){j=""}else{b=q.pop()}if(b==null){b=l}C.relative[j](f,b,d)}}else{f=q=[]}}if(!f){f=a}if(!f){throw"Syntax error, unrecognized expression: "+(j||m)}if(D.call(f)==="[object Array]"){if(!o){r.push.apply(r,f)}else{if(l&&l.nodeType===1){for(var k=0;f[k]!=null;k++){if(f[k]&&(f[k]===true||f[k].nodeType===1&&A(l,f[k]))){r.push(a[k])}}}else{for(var k=0;f[k]!=null;k++){if(f[k]&&f[k].nodeType===1){r.push(a[k])}}}}}else{G(f,r)}if(n){F(n,K,r,g);F.uniqueSort(r)}return r};F.uniqueSort=function(a){if(E){u=false;
a.sort(E);if(u){for(var b=1;b<a.length;b++){if(a[b]===a[b-1]){a.splice(b--,1)}}}}return a};F.matches=function(b,a){return F(b,null,null,a)};F.find=function(c,a,b){var d,g;if(!c){return[]}for(var h=0,j=C.order.length;h<j;h++){var f=C.order[h],g;if((g=C.match[f].exec(c))){var k=RegExp.leftContext;if(k.substr(k.length-1)!=="\\"){g[1]=(g[1]||"").replace(/\\/g,"");d=C.find[f](g,a,b);if(d!=null){c=c.replace(C.match[f],"");break}}}}if(!d){d=a.getElementsByTagName("*")}return{set:d,expr:c}};F.filter=function(c,d,r,n){var p=c,m=[],h=d,k,f,j=d&&d[0]&&t(d[0]);while(c&&d.length){for(var g in C.filter){if((k=C.match[g].exec(c))!=null){var q=C.filter[g],o,a;f=false;if(h==m){m=[]}if(C.preFilter[g]){k=C.preFilter[g](k,h,r,m,n,j);if(!k){f=o=true}else{if(k===true){continue}}}if(k){for(var l=0;(a=h[l])!=null;l++){if(a){o=q(a,k,l,h);var b=n^!!o;if(r&&o!=null){if(b){f=true}else{h[l]=false}}else{if(b){m.push(a);f=true}}}}}if(o!==undefined){if(!r){h=m}c=c.replace(C.match[g],"");if(!f){return[]}break}}}if(c==p){if(f==null){throw"Syntax error, unrecognized expression: "+c
}else{break}}p=c}return h};var C=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")}},relative:{"+":function(c,a,d){var g=typeof a==="string",b=g&&!/\W/.test(a),f=g&&!b;if(b&&!d){a=a.toUpperCase()}for(var h=0,j=c.length,k;h<j;h++){if((k=c[h])){while((k=k.previousSibling)&&k.nodeType!==1){}c[h]=f||k&&k.nodeName===a?k||false:k===a}}if(f){F.filter(a,c,true)}},">":function(a,g,j){var c=typeof g==="string";if(c&&!/\W/.test(g)){g=j?g:g.toUpperCase();
for(var f=0,h=a.length;f<h;f++){var b=a[f];if(b){var d=b.parentNode;a[f]=d.nodeName===g?d:false}}}else{for(var f=0,h=a.length;f<h;f++){var b=a[f];if(b){a[f]=c?b.parentNode:b.parentNode===g}}if(c){F.filter(g,a,true)}}},"":function(c,f,a){var d=z++,g=e;if(!/\W/.test(f)){var b=f=a?f:f.toUpperCase();g=v}g("parentNode",f,d,c,b,a)},"~":function(c,f,a){var d=z++,g=e;if(typeof f==="string"&&!/\W/.test(f)){var b=f=a?f:f.toUpperCase();g=v}g("previousSibling",f,d,c,b,a)}},find:{ID:function(c,b,a){if(typeof b.getElementById!=="undefined"&&!a){var d=b.getElementById(c[1]);return d?[d]:[]}},NAME:function(f,b,a){if(typeof b.getElementsByName!=="undefined"){var g=[],c=b.getElementsByName(f[1]);for(var d=0,h=c.length;d<h;d++){if(c[d].getAttribute("name")===f[1]){g.push(c[d])}}return g.length===0?null:g}},TAG:function(b,a){return a.getElementsByTagName(b[1])}},preFilter:{CLASS:function(d,g,f,h,a,j){d=" "+d[1].replace(/\\/g,"")+" ";if(j){return d}for(var c=0,b;(b=g[c])!=null;c++){if(b){if(a^(b.className&&(" "+b.className+" ").indexOf(d)>=0)){if(!f){h.push(b)
}}else{if(f){g[c]=false}}}}return false},ID:function(a){return a[1].replace(/\\/g,"")},TAG:function(b,c){for(var a=0;c[a]===false;a++){}return c[a]&&t(c[a])?b[1]:b[1].toUpperCase()},CHILD:function(b){if(b[1]=="nth"){var a=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(b[2]=="even"&&"2n"||b[2]=="odd"&&"2n+1"||!/\D/.test(b[2])&&"0n+"+b[2]||b[2]);b[2]=(a[1]+(a[2]||1))-0;b[3]=a[3]-0}b[0]=z++;return b},ATTR:function(c,g,f,h,b,a){var d=c[1].replace(/\\/g,"");if(!a&&C.attrMap[d]){c[1]=C.attrMap[d]}if(c[2]==="~="){c[4]=" "+c[4]+" "}return c},PSEUDO:function(b,f,d,g,a){if(b[1]==="not"){if(s.exec(b[3]).length>1||/^\w/.test(b[3])){b[3]=F(b[3],null,null,f)}else{var c=F.filter(b[3],f,d,true^a);if(!d){g.push.apply(g,c)}return false}}else{if(C.match.POS.test(b[0])||C.match.CHILD.test(b[0])){return true}}return b},POS:function(a){a.unshift(true);return a}},filters:{enabled:function(a){return a.disabled===false&&a.type!=="hidden"},disabled:function(a){return a.disabled===true},checked:function(a){return a.checked===true
},selected:function(a){a.parentNode.selectedIndex;return a.selected===true},parent:function(a){return !!a.firstChild},empty:function(a){return !a.firstChild},has:function(a,b,c){return !!F(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.type},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toUpperCase()==="BUTTON"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return b===0},last:function(b,c,d,a){return c===a.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0==b
},eq:function(a,b,c){return c[3]-0==b}},filter:{PSEUDO:function(a,f,d,j){var g=f[1],c=C.filters[g];if(c){return c(a,d,f,j)}else{if(g==="contains"){return(a.textContent||a.innerText||"").indexOf(f[3])>=0}else{if(g==="not"){var b=f[3];for(var d=0,h=b.length;d<h;d++){if(b[d]===a){return false}}return true}}}},CHILD:function(b,j){var f=j[1],l=b;switch(f){case"only":case"first":while((l=l.previousSibling)){if(l.nodeType===1){return false}}if(f=="first"){return true}l=b;case"last":while((l=l.nextSibling)){if(l.nodeType===1){return false}}return true;case"nth":var k=j[2],a=j[3];if(k==1&&a==0){return true}var g=j[0],c=b.parentNode;if(c&&(c.sizcache!==g||!b.nodeIndex)){var h=0;for(l=c.firstChild;l;l=l.nextSibling){if(l.nodeType===1){l.nodeIndex=++h}}c.sizcache=g}var d=b.nodeIndex-a;if(k==0){return d==0}else{return(d%k==0&&d/k>=0)}}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return(b==="*"&&a.nodeType===1)||a.nodeName===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1
},ATTR:function(b,d){var f=d[1],h=C.attrHandle[f]?C.attrHandle[f](b):b[f]!=null?b[f]:b.getAttribute(f),a=h+"",c=d[2],g=d[4];return h==null?c==="!=":c==="="?a===g:c==="*="?a.indexOf(g)>=0:c==="~="?(" "+a+" ").indexOf(g)>=0:!g?a&&h!==false:c==="!="?a!=g:c==="^="?a.indexOf(g)===0:c==="$="?a.substr(a.length-g.length)===g:c==="|="?a===g||a.substr(0,g.length+1)===g+"-":false},POS:function(b,f,d,a){var g=f[2],c=C.setFilters[g];if(c){return c(b,d,f,a)}}}};var y=C.match.POS;for(var w in C.match){C.match[w]=new RegExp(C.match[w].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var G=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(document.documentElement.childNodes,0)}catch(x){G=function(a,b){var d=b||[];if(D.call(a)==="[object Array]"){Array.prototype.push.apply(d,a)}else{if(typeof a.length==="number"){for(var c=0,f=a.length;c<f;c++){d.push(a[c])}}else{for(var c=0;a[c];c++){d.push(a[c])}}}return d}}var E;if(document.documentElement.compareDocumentPosition){E=function(b,c){if(!b.compareDocumentPosition||!c.compareDocumentPosition){if(b==c){u=true
}return 0}var a=b.compareDocumentPosition(c)&4?-1:b===c?0:1;if(a===0){u=true}return a}}else{if("sourceIndex" in document.documentElement){E=function(b,c){if(!b.sourceIndex||!c.sourceIndex){if(b==c){u=true}return 0}var a=b.sourceIndex-c.sourceIndex;if(a===0){u=true}return a}}else{if(document.createRange){E=function(b,d){if(!b.ownerDocument||!d.ownerDocument){if(b==d){u=true}return 0}var c=b.ownerDocument.createRange(),f=d.ownerDocument.createRange();c.selectNode(b);c.collapse(true);f.selectNode(d);f.collapse(true);var a=c.compareBoundaryPoints(Range.START_TO_END,f);if(a===0){u=true}return a}}}}(function(){var b=document.createElement("div"),a="script"+(new Date).getTime();b.innerHTML="<a name='"+a+"'/>";var c=document.documentElement;c.insertBefore(b,c.firstChild);if(!!document.getElementById(a)){C.find.ID=function(g,f,d){if(typeof f.getElementById!=="undefined"&&!d){var h=f.getElementById(g[1]);return h?h.id===g[1]||typeof h.getAttributeNode!=="undefined"&&h.getAttributeNode("id").nodeValue===g[1]?[h]:undefined:[]
}};C.filter.ID=function(d,g){var f=typeof d.getAttributeNode!=="undefined"&&d.getAttributeNode("id");return d.nodeType===1&&f&&f.nodeValue===g}}c.removeChild(b);c=b=null})();(function(){var a=document.createElement("div");a.appendChild(document.createComment(""));if(a.getElementsByTagName("*").length>0){C.find.TAG=function(g,b){var c=b.getElementsByTagName(g[1]);if(g[1]==="*"){var d=[];for(var f=0;c[f];f++){if(c[f].nodeType===1){d.push(c[f])}}c=d}return c}}a.innerHTML="<a href='#'></a>";if(a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#"){C.attrHandle.href=function(b){return b.getAttribute("href",2)}}a=null})();if(document.querySelectorAll){(function(){var c=F,a=document.createElement("div");a.innerHTML="<p class='TEST'></p>";if(a.querySelectorAll&&a.querySelectorAll(".TEST").length===0){return}F=function(d,f,h,g){f=f||document;if(!g&&f.nodeType===9&&!t(f)){try{return G(f.querySelectorAll(d),h)}catch(j){}}return c(d,f,h,g)};for(var b in c){F[b]=c[b]
}a=null})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var a=document.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(a.getElementsByClassName("e").length===0){return}a.lastChild.className="e";if(a.getElementsByClassName("e").length===1){return}C.order.splice(1,0,"CLASS");C.find.CLASS=function(d,c,b){if(typeof c.getElementsByClassName!=="undefined"&&!b){return c.getElementsByClassName(d[1])}};a=null})()}function v(m,g,h,a,f,b){var d=m=="previousSibling"&&!b;for(var k=0,l=a.length;k<l;k++){var c=a[k];if(c){if(d&&c.nodeType===1){c.sizcache=h;c.sizset=k}c=c[m];var j=false;while(c){if(c.sizcache===h){j=a[c.sizset];break}if(c.nodeType===1&&!b){c.sizcache=h;c.sizset=k}if(c.nodeName===g){j=c;break}c=c[m]}a[k]=j}}}function e(m,g,h,a,f,b){var d=m=="previousSibling"&&!b;for(var k=0,l=a.length;k<l;k++){var c=a[k];if(c){if(d&&c.nodeType===1){c.sizcache=h;c.sizset=k}c=c[m];var j=false;while(c){if(c.sizcache===h){j=a[c.sizset];
break}if(c.nodeType===1){if(!b){c.sizcache=h;c.sizset=k}if(typeof g!=="string"){if(c===g){j=true;break}}else{if(F.filter(g,[c]).length>0){j=c;break}}}c=c[m]}a[k]=j}}}var A=document.compareDocumentPosition?function(a,b){return a.compareDocumentPosition(b)&16}:function(a,b){return a!==b&&(a.contains?a.contains(b):true)};var t=function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&a.ownerDocument.documentElement.nodeName!=="HTML"};var B=function(h,j){var d=[],c="",b,f=j.nodeType?[j]:j;while((b=C.match.PSEUDO.exec(h))){c+=b[0];h=h.replace(C.match.PSEUDO,"")}h=C.relative[h]?h+"*":h;for(var a=0,g=f.length;a<g;a++){F(h,f[a],d)}return F.filter(c,d)};window.Sizzle=F})();if(!daum.Browser.webkit){JSON=undefined}if(!this.JSON){this.JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null
};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";
case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==="string"){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}if(typeof JSON.stringify!=="function"){JSON.stringify=function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else{if(typeof space==="string"){indent=space}}rep=replacer;
if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify")}return str("",{"":value})}}if(typeof JSON.parse!=="function"){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}text=String(text);cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")}}}());
/*
 * Jigu Initialization
 *  more information: http://play.daumcorp.com/display/ftst/Jigu+Initialization
 */
(function(){if(!window.$){window.$=daum.$
}if(!window.$A){window.$A=daum.$A}if(!window.$E){window.$E=daum.$E}if(!window.$T){window.$T=daum.$T}if(!window.$C){window.$C=daum.$C}if(window.Sizzle){window.$$=daum.$$=window.Sizzle}daum.extend(daum,daum.Event);daum.extend(daum,daum.Browser);daum.extend(daum,daum.Element);if(daum.Event.GC!=undefined){window.JiguEventGC=daum.Function.interval(daum.Event.GC,60000,daum.Event)}daum.Event.addEvent(window,"load",function(){daum.documentLoaded=true});daum.nativeExtend();if(!window.console){window.console={debug:function(){},log:function(){}}}else{if(!window.console.log){window.console.debug=window.console.log=function(){}}else{if(!window.console.debug){window.console.debug=function(){for(var c=0,d=arguments.length;c<d;c++){window.console.log(arguments[c])}}}}}return true})();document.domain="daum.net";var ruliweb=(typeof ruliweb==="undefined")?{}:ruliweb;ruliweb.menuToggle=function(b){var a=daum.getLastChild(b.parentNode);if(a.className.indexOf("show")>-1){daum.Element.addClassName(a,"hide");
daum.Element.removeClassName(a,"show");daum.Element.addClassName(b,"open");daum.Element.removeClassName(b,"close");b.title=daum.$C(b,"btn_comm")[0].innerHTML="\ud3bc\uce58\uae30"}else{daum.Element.addClassName(a,"show");daum.Element.removeClassName(a,"hide");daum.Element.addClassName(b,"close");daum.Element.removeClassName(b,"open");b.title=daum.$C(b,"btn_comm")[0].innerHTML="\uc811\uae30"}};ruliweb.sendSNS=function(a,c){var b="http://profile.daum.net/api/popup/Share.daum";if(a=="mypeople"){b="http://mypeople.daum.net/mypeople/web/share.do"}else{if(a=="mypi"){b="http://mypi.ruliweb.daum.net/scrap_pop.htm"}else{if(a=="bookmark"){b="http://mypi.ruliweb.daum.net/pagemark_pop.htm"}}}daum.Browser.popup(b+"?service_name="+a+"&prefix="+encodeURIComponent(c)+"&link="+encodeURIComponent(location.href)+"&source_id=56",680,560)};ruliweb.familySiteToggle=function(b){var a=b.parentNode.parentNode;var c=daum.$C(a,"wrap_list_fm")[0];if(c.style.display=="block"){daum.removeClassName(b,"on");daum.hide(c)
}else{daum.addClassName(b,"on");daum.show(c)}};Array.prototype.shuffle=function(){var a=this.length;return this.sort(function(d,c){return Math.floor(Math.random()*(a*2))-a})};Array.create=function(b){var a=[];for(var c=0;c<b;c++){a.push(c)}return a};ruliweb.ui={toggle:function(a){if(typeof a==="string"){a=$(a)}($E(a).hasClassName("show"))?this.hide(a):this.show(a)},hide:function(a){if(typeof a==="string"){a=$(a)}a=$E(a);a.addClassName("hide");a.removeClassName("show")},show:function(a){if(typeof a==="string"){a=$(a)}a=$E(a);a.addClassName("show");a.removeClassName("hide")}};
/*
 * extracted and modified from 
 *	jQuery JavaScript Library v1.3.2
 *	http://jquery.com/
 *
 *	Copyright (c) 2009 John Resig
 *	Dual licensed under the MIT and GPL licenses.
 *	http://docs.jquery.com/License
 */
(function(){var f=false;function d(){if(f){return}f=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);
b()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);b()}});if(document.documentElement.doScroll&&window==window.top){(function(){if(c){return}try{document.documentElement.doScroll("left")}catch(g){setTimeout(arguments.callee,0);return}b()})()}}}daum.Event.addEvent(window,"load",b)}var c=false;var e=[];function b(){if(!c){c=true;if(e){daum.Array.each(e,function(g){g.call(document,null)});e=null}}}function a(g){d();if(c){g.call(document,null)}else{e.push(g)}return this}window.domReady=a})();if(typeof(cntsft)==="undefined"){cntsft={}}(function(f){var a=false;var c=[];var e=[];var b=console;var d=function(){if(!a){return false}if(typeof(b)!="undefined"&&typeof(b.log)!="undefined"){try{b.log.apply(b,daum.$A(arguments))}catch(g){b.log(daum.$A(arguments).join(", "))}}};f.log={ready:function(){d(">>>>>>>> Ready >>>>>>>> : body.onload")},start:function(){this.index=0;
this._init=new Date().getTime();this.lap(">>>>>>>> Start >>>>>>>>")},end:function(){this.lap(">>>>>>>> End >>>>>>>>")},info:function(){var g=daum.$A(arguments);e.push(g);d.apply(this,g)},lap:function(){if(!this._init){this.start()}var g=new Date().getTime()-this._init;var h=daum.$A(arguments);h.unshift("#"+(this.index++)+" : "+g+" , ");e.push(h);d.apply(this,h)},printStack:function(){if(typeof(b)=="undefined"||typeof(b.log)=="undefined"){return}for(var h=0,g=e.length;h<g;h++){try{b.log.apply(b,e[h])}catch(j){b.log(e[h].join(", "))}}for(var h=0,g=c.length;h<g;h++){try{b.log.apply(b,c[h])}catch(j){b.log(c[h])}}},error:function(g){d("====ERROR====");c.push(g);d(g)},enable:function(){a=true},disable:function(){a=false}};window.onerror=function(g){f.log.error(g)}})(cntsft);(function(d){var f=d.log;var j=false;var g=false;var b="";var h={INITIAL:1,LOADING:2,LOADED:3};var e=new Date().getTime();var a=function(m,l){this.module=m;this.url=this._urlBy(m);this.options=l;this.handlers=[];this.status=(m=="none"||g)?h.LOADED:h.INITIAL
}.members({execute:function(l){f.lap("Resource[",this.module,"].execute");if(this.status==h.LOADED){l()}else{this.handlers.push(l);if(this.status==h.INITIAL){this._load()}}}}).members({_load:function(){if(this.status==h.LOADING){return}this.status=h.LOADING;f.lap("Resource[",this.module,"].request");daum.load(this.url,this._execute.bind(this),this.options)},_execute:function(){this.status=h.LOADED;f.lap("Resource[",this.module,"].execute_start");var m,l=this.handlers;while((m=l.shift())){m()}f.lap("Resource[",this.module,"].execute_end")},_urlBy:function(m){if(m.indexOf("http://")>-1){return m}else{var l=b+m;(l.indexOf(".js")==-1)&&(l+=".js");(j)&&(l+="?v="+e);f.info("urlBy::",l,"<<<",m);return l}}});var c={};a.getResource=function(m,l){if(!c[m]){c[m]=new a(m,l)}return c[m]};var k=function(m,l){if(typeof(m)=="string"){m=[m]}this.modules=m;this.options=l}.members({run:function(m){m=m||function(){};if(this.modules.length==0){f.lap("run run",m);m();return}var n=this.run.bind(this);var l=this.modules.shift();
a.getResource(l,this.options).execute(function(){n(m)})},lazy:function(m,l){l=l||0;var n=this.run.bind(this);if(l>0){domReady(function(){setTimeout(function(){n(m)},l)})}else{domReady(function(){n(m)})}}});d.require=function(l){return new k(l)};d.lazy=function(m,l){l=l||0;if(l>0){domReady(function(){setTimeout(m,l)})}else{domReady(m)}};d.require.startup=function(l){(l.path)&&(b=l.path);(!!l.debug)&&(j=!!l.debug);(!!l.merged)&&(g=!!l.merged);d.require.startup=null}})(cntsft);(function(){if(window.daum){window.jigu=window.daum}else{if(window.daumSF){window.jigu=window.daumSF;window.daum={}}}daum.suggest={version:"1.1.36",message:{},define:{},model:{},module:{},view:{},template:{},sparrow:{}}})();if(!window.daum){window.daum={}}if(window.$ssf){window._$ssf=window.$ssf}window._development=true;window.$ssf=daum.suggest.sparrow=(function(){var l=[];var n={_loadingfn:"",run:function(a,b,e,f,d){for(var c=0;c<a.length;c++){var g=a[c];this._loadingfn=g.desc;if(g.desc){}g(b,e,f,d)}this._loadingfn=""
},install:function(b,c){try{c.desc=b;l.push(c)}catch(a){}},installX:function(b,c){try{}catch(a){}},installModule:function(b,d,a,c){this.run(l,b,d,a,c)}};n.win=window;n.doc=window.document;n.tmp=n.doc.createElement("div");n.html=n.doc.documentElement;n.services={};var h=[],o=[];var k=n.EventDispatcher=function(){};k.addBeforeCallback=function(a){h.push(a)};k.addAfterCallback=function(a){o.push(a)};n.EventDispatcher.prototype={addListener:function(a){for(var c in a){var b=a[c];this.addAdaptor(c,b)}},addAdaptor:function(b,a){if(!this.listeners){this.listeners={}}a._module=$ssf._loadingfn;if(!this.listeners[b]){this.listeners[b]=[]}this.listeners[b].push(a)},dispatchEvent:function(g,a){if(!this.listeners){return}var e=true;a=a||{target:this};var t=this.listeners[g];if(t){var b=true;for(var d=0,f=h.length;d<f;d++){var b=h[d](g,this,a)}if(!b){return}for(var d=0,f=t.length;d<f;d++){var v=t[d];try{if(v.call(this,a)===false){e=false}}catch(c){var u=["listener_error_",c.fileName,"/",c.lineNumber,"/",jigu.getCookie("D_sid"),"/",c.message.replace(/ /g,"_"),"/",c.stack].join("");
if(window._development==true){throw c}}}for(var d=0,f=o.length;d<f;d++){o[d](g,this,a)}}return e},init:function(){this.dispatchEvent("onPreinitialized",{target:this});if(this.initialize){this.initialize()}this.dispatchEvent("onInitialized",{target:this})}};function m(a,b){if(!b.getContainer){b.getContainer=function(){return b.container||b.el}}if(b.release&&b.getContainer()){jigu.addEvent(b.getContainer(),"mousedown",function(c){a.currentView=b})}}var j=[];n.Runner=function(){this.$super();var g=this;var e=this.models=new _registry({added:function(p){}}),b=this.views=new _registry({added:function(p){}}),d=this.commands=new _registry(),a=this.config=window.daumProperties||{};var f=b.add;b.add=function(p,q){q.getApplicationContext=function(){return g};m(g,q);f.call(b,p,q)};this.getViewStack=function(){return j};if(window._development){n.trimpath()}n.installModule(this,b,e,this.config);for(var r=0,c=b.length;r<c;r++){b.get(b[r]).init()}this.dispatchEvent("onContextLoad",{});jigu.addEvent($ssf.win,"unload",function(){g.dispatchEvent("onContextUnload",{})
});n.win.onerror=function(s,p,q){g.dispatchEvent("errorCatched",{message:s,exception:{message:s,fileName:p,lineNumber:q,stack:""}});return true}};jigu.Function.inherit(n.Runner,k);return n})();(function(c){try{c.doc.execCommand("BackgroundImageCache",false,true)}catch(d){}})(daum.suggest.sparrow);(function(){jigu.extend(daum.suggest.message,{ERROR_NO_PROXY_FRAME:"Proxy Frame \uc774 \uc0dd\uc131\ub418\uc9c0 \uc54a\uc558\uc2b5\ub2c8\ub2e4.\n\uc11c\uc81c\uc2a4\ud2b8\ub97c \uc2dc\uc791\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.",ERROR_NO_REQUEST_URL:"Request URL\uc774 \uc120\uc5b8\ub418\uc9c0 \uc54a\uc558\uc2b5\ub2c8\ub2e4.\n\uc11c\uc81c\uc2a4\ud2b8\ub97c \uc2dc\uc791\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.",ERROR_NO_INPUTBOX:"\uac80\uc0c9\uc5b4 \uc785\ub825\ub780\uc774 \uc874\uc7ac\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.\n\uc11c\uc81c\uc2a4\ud2b8\ub97c \uc2dc\uc791\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.",ERROR_NO_PARENT_CONTAINER:"\uac80\uc0c9\uc5b4 \uc785\ub825\ub780 \uc0c1\uc704 \ucee8\ud14c\uc774\ub108\uac00 \uc874\uc7ac\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.\n\uc11c\uc81c\uc2a4\ud2b8\ub97c \uc2dc\uc791\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4."})
})();(function(){jigu.extend(daum.suggest.define,{Keyboard:{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPSLOOK:20,NAK:21,ESC:27,SPACEBAR:32,PAGEUP:33,PAGEDOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,SELECT:41,V:86,SQUARE:91,BASH:92,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,MAC_COMMAND:224}})})();(function(){jigu.extend(daum.suggest.template,{RequestString:"?q=KEYWORD&mod=json&code=CHARSET",Base:new jigu.Template(["<ul>#{list_high}</ul>",'<div class="line" style="display:#{line}"></div>',"<ul>#{list_low}</ul>"].join("")),Image:new jigu.Template('<img src="#{url}">'),IsNonImage:new jigu.Template('<div class="empty"></div>'),Item:new jigu.Template('<li class="idx_#{idx}"><a class="item bg" href="javascript:;">#{item}</a></li>'),Footer:new jigu.Template(['<div class="fl">#{moreWord}</div>','<div class="fr">','<a href="#" class="isSuggest">\uc11c\uc81c\uc2a4\ud2b8\ub780?</a>','<span class="bar" style="display:#{offUsable}">|</span>','<a href="#" class="offSuggest" style="display:#{offUsable}">\uae30\ub2a5\ub044\uae30</a>','<span class="offGuide">\uae30\ub2a5\uc744 \ub2e4\uc2dc \ucf24 \ub54c\ub294 v \uc744 \ud074\ub9ad\ud558\uc138\uc694</span>',"</div>"].join("")),TailMore:new jigu.Template('<a href="#" class="tailMore">\ub05d\ub2e8\uc5b4 \ub354\ubcf4\uae30</a>'),HeadMore:new jigu.Template('<a href="#" class="headMore">\uc55e\ub2e8\uc5b4 \ub354\ubcf4\uae30</a>'),UsingSuggest:new jigu.Template("\uc11c\uc81c\uc2a4\ud2b8 \uae30\ub2a5\uc744 \uc0ac\uc6a9\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4."),UseSuggest:new jigu.Template("\uc11c\uc81c\uc2a4\ud2b8 \uae30\ub2a5\uc774 \ud65c\uc131\ud654 \ub418\uc5c8\uc2b5\ub2c8\ub2e4."),UsingExternalGuide:new jigu.Template('<div class="external_guide"></div>'),IntroduceSuggestURL:"http://blog.daum.net/daumsearch/16151013"})
})();(function(){jigu.extend(daum.suggest.define,{FocusPointType:{LOAD:"load",WRITE:"write",DEFAULT:"user"},KeywordCompareType:{HEAD:"head",TAIL:"tail",FULL:"full"},ListPositionType:{TRANS:"tail",DEFAULT:"head"},ActivationCookieName:"suggest",ActivationType:{ON:"on",OFF:"off"},KeywordMaxLength:20,ListMaxSize:13,EncodeType:{UTF_IN_OUT:"utf_in_out",UTF_IN:"utf_in"},DynamicScript:{SUGGEST:"dynamic_script_suggest"},FrameOrientation:{"90":"wide_frame","-90":"wide_frame","0":"default_frame","180":"default_frame"},Separator:{RAWDATA_ITEM:"|",AREACODE_ITEM:","},YellowClip:{ON:"expand",OFF:"off"}})})();(function(h){var e=h.model.DataModel=function(a){this.suggestDomain=a.suggestDomain;this.requestUrl=a.requestUrl;this.encode=a.encode||"";this.defaultKeyword=a.keyword;if(a.proxyUrl){this.createFrame(a.suggestDomain+a.proxyUrl)}this.callbackName=a.callbackName;this.loadVisible="visible"};jigu.Function.inherit(e,$ssf.EventDispatcher,{setEncode:function(a){this.encode=a},setCallbackName:function(a){this.callbackName=a
},setRequestUrl:function(a){this.requestUrl=a},getRequestFullUrl:function(){return this.suggestDomain+this.requestUrl+h.template.RequestString.replace("CHARSET",this.encode)},get:function(l,b){this.loadVisible=b||"visible";var c=daum.suggest.model.Raw.getByKeyword(l,this.suggestDomain+this.requestUrl)||null;var m=this;if(!!l&&!c){if(l.length>h.define.KeywordMaxLength){this.dispatchEvent("onOverKeyword");return false}var a=l;if(this.encode==h.define.EncodeType.UTF_IN_OUT||this.encode==h.define.EncodeType.UTF_IN){a=encodeURIComponent(l)}if(this.callbackName){var d=[this.getRequestFullUrl().replace("KEYWORD",a),"&callback=",this.callbackName].join("");h.module.ScriptCall.load(d,h.define.DynamicScript.SUGGEST)}else{var n=this.getProxyData(a,this.getRequestFullUrl(),function(j){var k=f(j);m.forceLoadComplete(k)});if(n){this.dispatchEvent("onSendData",{keyword:l,url:this.getRequestFullUrl()})}}}else{if(!!c){this.dispatchEvent("onReloadCache",{data:c})}else{this.dispatchEvent("onEmptyKeyword")
}}},forceLoadComplete:function(a){this.dispatchEvent("onLoadComplete",{data:a,route:this.suggestDomain+this.requestUrl,visible:this.loadVisible})},getProxyData:function(d,b,a){if(this.proxyFrame){try{this.proxyFrame.contentWindow.getData(d,b,a);return true}catch(c){}}else{return false}},createFrame:function(a){var b=this;daum.suggest.DOMReady(function(){b.proxyFrame=g(a);document.body.appendChild(b.proxyFrame)})}});var f=function(a){return(new Function("","return "+a+";"))()};var g=function(b){var a=document.createElement("iframe");a.name="proxyIframe";a.src=b;a.style.display="none";a.title="Suggest Proxy Frame";return a}})(daum.suggest);(function(d){var c=d.model.ListModel=function(a){this.limit=a.limit;this.data={};this.subwayAreacode=a.subwayAreacode};jigu.Function.inherit(c,$ssf.EventDispatcher,{set:function(b){this.reset();if(!!b){this.data.keyword=b.rq;if(this.subwayAreacode){this.data.keyword=this.data.keyword.replace(this.subwayAreacode,"")}this.setList(b.items,"head");this.setList(b.r_items,"tail");
var a=this.rebuildLimit(this.data.head.length,this.data.tail.length);this.pushAllData("head",a.head);this.pushAllData("tail",a.tail)}},rebuildLimit:function(h,a){var b=Math.min(h,this.limit[0]),g=(this.limit[0]+this.limit[1])-b;return{head:b,tail:g}},get:function(){return this.data},setList:function(a,b){_setData=this.data[b];for(var l=0,p=a.length;l<p;l++){var q=d.define.Separator.RAWDATA_ITEM;var m=a[l].split(q);var o=m[0];if(this.subwayAreacode){o=o.split(d.define.Separator.AREACODE_ITEM)[0]}var n={string:this.stringConvert(o),image:m[1],index:l,item:m};_setData.push(n)}},reset:function(){this.data={keyword:"",head:[],tail:[],all:[]}},getSelectedItem:function(a){if(a==null||a<0||a>=this.data.all.length){return false}return this.data.all[a]},pushAllData:function(a,j){var b=(a=="tail")?this.data.tail:this.data.head;if(b){var k=Math.min(j,b.length);for(var h=0;h<k;h++){this.data.all.push(b[h])}}},getChangeSort:function(b){this.data.all=[];var a;if(!!this.data.head==false&&!!this.data.tail==false){return this.data
}if(b=="tail"){a=this.rebuildLimit(this.data.tail.length,this.data.head.length);this.pushAllData("tail",a.head);this.pushAllData("head",a.tail)}else{a=this.rebuildLimit(this.data.head.length,this.data.tail.length);this.pushAllData("head",a.head);this.pushAllData("tail",a.tail)}return this.data},stringConvert:function(a){return a.replace(/\&amp;/g,"&").replace(/\&lt;/g,"<").replace(/\&gt;/g,"<").replace(/\&quot;/g,'"')}})})(daum.suggest);(function(){daum.suggest.model.Raw=function(){var d={};var c={set:function(a,b){if(jigu.Array.size(d)>100){d={}}d[a.rq]={route:b,rq:a.rq||"",items:a.items||[],r_items:a.r_items||[]};return d[a.rq]},get:function(){return d},getByKeyword:function(a,b){if(!!d[a]==false){return false}if(d[a].route==b){return d[a]}},empty:function(){d={}}};return c}()})();(function(){jigu.extend(daum.suggest.module,{AvailableKeyCode:function(g){var f=daum.suggest.define.Keyboard;var e=[f.CTRL,f.ALT,f.LEFT,f.RIGHT];for(var h=e.length-1;h>=0;--h){if(e[h]==g){return false}}return true
}})})();(function(){jigu.extend(daum.suggest.module,{KeywordHighlight:function(a,b,c){var h;if(c=="head"){h=e(a,b)}else{if(c=="tail"){h=f(a,b)}else{h=d(a,b)}}if(h==""){h=a}return h}});var e=function(w,j){var a="",k=w.replace(/ /g,""),c=j.replace(/ /g,"");var b=k.toLowerCase().indexOf(c.toLowerCase());if(b>-1){for(var l=0,s=0;s<b;l++){var t=w.substring(l,l+1);if(t!=" "){s++}a+=t}a+="<strong>";for(var u=l,v=0;v<c.length;u++){var t=w.substring(u,u+1);if(t!=" "){v++}a+=t}a+="</strong>"+w.substr(u)}return a};var f=function(u,c){var a="",j=u.replace(/ /g,""),b=c.replace(/ /g,"");if(b==j.substring(j.length-b.length)){for(var k=0,l=0;l<j.length-b.length;k++){var r=u.substring(k,k+1);if(r!=" "){l++}a+=r}a+="<strong>";for(var s=k,t=0;t<b.length;s++){var r=u.substring(s,s+1);if(r!=" "){t++}a+=r}a+="</strong>"}return a};var d=function(x,j){var y="",k=x.replace(/ /g,""),c=j.replace(/ /g,"");var a=k.toLowerCase(),b;while((b=a.indexOf(c.toLowerCase()))>-1){for(var l=0,t=0;t<b;l++){var u=x.substring(l,l+1);
if(u!=" "){t++}y+=u}y+="<strong>";for(var v=l,w=0;w<c.length;v++){var u=x.substring(v,v+1);if(u!=" "){w++}y+=u}y+="</strong>";a=a.substr(v);x=x.substr(v)}if(x!=""){y+=x}return y}})();(function(){jigu.extend(daum.suggest.module,{RequestKeyword:function(){}})})();(function(b){jigu.extend(b.module,{ScriptCall:function(){var a=document.getElementsByTagName("head")[0];var d={load:function(h,c){var k=jigu.$(c);if(k){a.removeChild(k)}var j=document.createElement("script");j.type="text/javascript";j.id=c;j.src=h;a.appendChild(j)}};return d}()})})(daum.suggest);(function(k){var g=true;var h=k.define.ActivationCookieName,j=k.define.ActivationType.ON,f=k.define.ActivationType.OFF;jigu.extend(k.module,{ActivationFlag:function(){g=(jigu.getCookie(h)==f)?false:true;var a={set:function(b){g=(b==f)?false:true;jigu.setCookie(h,b,365000)},get:function(){return g}};return a}()})})(daum.suggest);(function(c){var d=c.view.YellowView=function(){this.container=null};jigu.Function.inherit(d,$ssf.EventDispatcher,{initialize:function(a){this.container=jigu.$(a);
if(!this.container){return false}this.render();var b=this;jigu.addEvent(this.container,"mousedown",function(g){var h=jigu.getElement(g);if(jigu.hasClassName(h,c.define.YellowClip.OFF)){c.Service.block(false,b)}else{if(jigu.hasClassName(h,c.define.YellowClip.ON)){b.dispatchEvent("onYellowUp")}else{b.dispatchEvent("onYellowDown")}}jigu.stopEvent(g)})},setUp:function(){if(!this.container){return false}this.container.className=c.define.YellowClip.ON;this.container.value=this.container.title="\uc11c\uc81c\uc2a4\ud2b8 \uc811\uae30"},setDown:function(){if(!this.container){return false}this.container.className="";this.container.value=this.container.title="\uc11c\uc81c\uc2a4\ud2b8 \ud3bc\uce58\uae30"},setOff:function(){if(!this.container){return false}this.container.className=c.define.YellowClip.OFF;this.container.value=this.container.title="\uc11c\uc81c\uc2a4\ud2b8 \ucf1c\uae30"},render:function(){if(!this.container){return false}if(c.module.ActivationFlag.get()==false){jigu.addClassName(this.container,c.define.YellowClip.OFF)
}}})})(daum.suggest);(function(f){var d=false;var e=f.view.BoxView=function(a){this.container=a.container;this.type=a.type;this.listModel=a.listModel;this.keywordListData=null;this.initialize();this._isVisible=false};jigu.Function.inherit(e,$ssf.EventDispatcher,{initialize:function(){var a=this},renderBase:function(a){if(jigu.hasClassName(this.container,"thumbType")){jigu.removeClassName(this.container,"thumbType")}if(a=="guide"){d=true}else{d=false}this.container.style.display="block";this._isVisible=true},renderType:function(){if(this.type=="thumb"){if(!jigu.hasClassName(this.container,"thumbType")){jigu.addClassName(this.container,"thumbType")}}},getDataList:function(){return(!!this.keywordDataList==false)?this.listModel.get():this.keywordDataList},visible:function(b){var a=this.getDataList();var c=a.keyword;if(!!c==false){if(b=="toUse"){this.renderBase("guide");this.dispatchEvent("onShowGuide",{type:"UseSuggest"})}else{if(b=="Used"){this.renderBase("guide");this.dispatchEvent("onShowGuide",{type:"UsingSuggest"})
}else{}}}else{if(jigu.Array.size(a.all)<=0){this.dispatchEvent("onShowGuide",{type:"NoResult"})}else{this.renderBase("list");var h=true;if(a.head.length==0||a.tail.length==0){h=false}this.dispatchEvent("onShowList",{data:a,more:h})}}},hidden:function(){this.container.style.display="none";this._isVisible=false;this.dispatchEvent("onHiddenBox")},isVisible:function(){return this._isVisible}})})(daum.suggest);(function(c){var d=c.view.ImageView=function(a){this.container=a.container;this.listModel=a.listModel;this.imageContainer=null;this.listArr=null;this.initialize()};jigu.Function.inherit(d,$ssf.EventDispatcher,{initialize:function(){},getListData:function(){return(!!this.listArr==false)?this.listModel.get():this.listArr},setImageHtml:function(a){var b=this;if(!!this.container==false){return false}if(!!this.imageContainer==false){this.imageContainer=document.createElement("DIV");this.imageContainer.className="imageBox";this.container.appendChild(this.imageContainer);jigu.addEvent(this.imageContainer,"mousedown",function(f){b.dispatchEvent("onMousedownImage")
})}this.imageContainer.innerHTML=a},render:function(a){var b=this.getThumbnailUrl(a);if(!!b==false){this.setImageHtml(c.template.IsNonImage.evaluate());return false}else{this.setImageHtml(c.template.Image.evaluate({url:b}))}},getThumbnailUrl:function(a){return this.getListData().all[a].image}})})(daum.suggest);(function(c){var d=c.view.FooterView=function(a){this.index=null;this.container=a.container;this.offUsable=a.yellowClip;this.footerContainer=null;this.initialize()};jigu.Function.inherit(d,$ssf.EventDispatcher,{initialize:function(){var a=this;jigu.addEvent(this.container,"mousedown",function(b){var f=jigu.getElement(b);if(jigu.hasClassName(f,"tailMore")){a.dispatchEvent("onTailMore")}else{if(jigu.hasClassName(f,"headMore")){a.dispatchEvent("onHeadMore")}else{if(jigu.hasClassName(f,"isSuggest")){a.dispatchEvent("onIsSuggest",{event:b})}else{if(jigu.hasClassName(f,"offSuggest")){c.Service.block(true)}else{if(jigu.hasClassName(f,"closeSuggest")){a.dispatchEvent("onCloseSuggest")}}}}}jigu.stopEvent(b)
})},addMouseEvent:function(){var a=jigu.getElementsByClassName(this.footerContainer,"offSuggest")[0];var b=jigu.getElementsByClassName(this.footerContainer,"offGuide")[0];if(a){jigu.addEvent(a,"mouseover",function(f){jigu.show(b)});jigu.addEvent(a,"mouseout",function(f){jigu.hide(b)})}},setFooterHtml:function(a){if(!!this.container==false){return false}if(!!this.footerContainer==false){this.footerContainer=document.createElement("DIV");this.footerContainer.className="footer bg_sub";this.container.appendChild(this.footerContainer)}this.footerContainer.innerHTML=a;this.addMouseEvent()},moreEvaluate:function(a){if(a=="head"){return c.template.HeadMore.evaluate()}else{return c.template.TailMore.evaluate()}},render:function(a){this.setFooterHtml(c.template.Footer.evaluate({moreWord:(a=="nomore")?"":this.moreEvaluate(a),offUsable:(!!this.offUsable)?"":"none"}))}})})(daum.suggest);(function(c){var d=c.view.GuideView=function(a){this.container=a.container;this.customUsingGuide=a.customUsingGuide;
this.guideContainer=null;this.initialize()};jigu.Function.inherit(d,$ssf.EventDispatcher,{initialize:function(){this.render()},setGuideHtml:function(b){if(!!this.container==false){return false}var a=jigu.getElementsByClassName(this.container,"list");if(a.length>0){jigu.replaceClassName(a[0],"list","guide");this.guideContainer=a[0]}if(!!this.guideContainer==false){this.guideContainer=document.createElement("DIV");jigu.addClassName(this.guideContainer,"guide");this.container.appendChild(this.guideContainer)}this.guideContainer.innerHTML=b},render:function(a){switch(a){case"USING":if(this.customUsingGuide&&typeof this.customUsingGuide=="function"){this.setGuideHtml(c.template.UsingExternalGuide.evaluate());this.customUsingGuide(Sizzle(".guide",this.container)[0])}else{this.setGuideHtml(c.template.UsingSuggest.evaluate())}break;case"USE":this.setGuideHtml(c.template.UseSuggest.evaluate());break}}})})(daum.suggest);(function(t){var l=0,n=0;var p=200;var s=true;var r=t.define.Keyboard;var k=false;
var o=false;var m=false;var q=t.view.KeywordInputView=function(a){this._defaultKeyword="";this._keywordBox=a;this._previousKeyword=a.value;this._currentKeyword=null;this._intervalId=null;this._bindEvents()};jigu.Function.inherit(q,$ssf.EventDispatcher,{_bindEvents:function(){var a=this;jigu.addEvent(this._keywordBox,"focus",function(b){if(s){a.start()}a.dispatchEvent("onFocusKeywordBox",{event:b,keyword:a._currentKeyword})});jigu.addEvent(this._keywordBox,"mousedown",function(b){a.dispatchEvent("onClickKeywordBox",{event:b,keyword:a._keywordBox.value});jigu.stopPropagation(b)});jigu.addEvent(this._keywordBox,"keydown",function(b){var c=b.keyCode;if(c==r.SHIFT){k=true}else{if(c==r.ALT){o=true}else{if(c==r.CTRL){m=true}else{if(c==r.ENTER){a.dispatchEvent("onEnterKeywordBox",{event:b})}else{if(c==r.ESC){a.dispatchEvent("onAltTabKeywordBox",{event:b})}else{if(o&&c==r.TAB){a.dispatchEvent("onEscKeywordBox",{event:b})}else{if(c==r.UP||(k&&c==r.TAB)){a.dispatchEvent("onUpKeywordBox",{event:b,keyCode:c,isShift:k})
}else{if(c==r.DOWN||(!k&&c==r.TAB)){if(s){a.clear()}a.dispatchEvent("onDownKeywordBox",{event:b,keyCode:c,isShift:k})}else{if(s&&t.module.ActivationFlag.get()==true&&a._intervalId==null){a.start()}}}}}}}}}});jigu.addEvent(this._keywordBox,"keyup",function(b){var c=b.keyCode;if(c==r.SHIFT){k=false}else{if(c==r.ALT){o=false}else{if(c==r.CTRL){m=false}else{if(c==r.BACKSPACE){a.dispatchEvent("onBackspaceKeywordBox",{event:b})}}}}if(!!a.getValue()==false){a.dispatchEvent("onEmptyKeyword")}});jigu.addEvent(this._keywordBox,"blur",function(b){if(s){a.clear()}a.dispatchEvent("onBlurKeywordBox",{event:b})})},start:function(){this._previousKeyword=this._currentKeyword=this._keywordBox.value;if(this._intervalId){clearInterval(this._intervalId)}this._intervalId=jigu.Function.interval(this.watching,p,this)},watching:function(){this._currentKeyword=this._keywordBox.value;if(this._previousKeyword!=this._currentKeyword){this._previousKeyword=this._currentKeyword;this.dispatch(this._currentKeyword)}},dispatch:function(a){this.dispatchEvent("onChangeKeyword",{keyword:a})
},clear:function(){if(!!this._intervalId&&s){clearInterval(this._intervalId);this._intervalId=null}},setAlwaysWatching:function(){s=false;this.start()},setSmartWatching:function(){s=true;this.clear()},getWatchType:function(){return s},setDefaultKeyword:function(a){this._defaultKeyword=a},getDefaultKeyword:function(){return this._defaultKeyword},initDefaultKeyword:function(){if(!!this._keywordBox.value==true){this._keywordBox.value=this._previousKeyword=this._currentKeyword=this._defaultKeyword}},setFocus:function(){this._keywordBox.focus()},getValue:function(){return this._keywordBox.value},setValue:function(a){this._keywordBox.value=a},clearValue:function(){this._keywordBox.value=""},setSelect:function(){this._keywordBox.select()},getBoxId:function(){return this._keywordBox.id},blur:function(){this._keywordBox.blur()}})})(daum.suggest);(function(c){var d=c.view.ListView=function(a){this.index=null;this.keyword=null;this.positionType=c.define.ListPositionType.DEFAULT;this.itemArr=null;this.container=a.container;
this.limit=a.limit;this.maxSize=this.limit[0]+this.limit[1];this.listContainer=null;this.listModel=null;this.eventFlag=false;this.minIndex=0;this.maxIndex=0;this.initialize()};jigu.Function.inherit(d,$ssf.EventDispatcher,{initialize:function(){},move:function(a){if(this.maxIndex==0){return false}var b=this.index;switch(a){case"UP":b--;if(b<this.minIndex){this.dispatchEvent("onHideHighlight");return false}break;case"DOWN":b++;if(b>=this.maxIndex){return false}break}this.select(b)},moveUp:function(){this.move("UP")},moveDown:function(){this.move("DOWN")},select:function(b,a){var f=a||"";if(b==null){return false}this.blur();this.index=b;this.setClassNameOnSelectedItem();this.dispatchEvent("onSelectItem",{index:this.index,action:f})},blur:function(){if(this.index!=null&&this.index>=0){jigu.removeClassName(this.getItemEl()[this.index],"on")}},getIndex:function(){return this.index},getSelectedItem:function(){var a=this.listModel.all[this.index];if(a){return a}else{return null}},getItemEl:function(){return(!!this.itemArr==false)?(this.itemArr=this.listContainer.getElementsByTagName("LI")):this.itemArr
},setClassNameOnSelectedItem:function(){var a=this.getItemEl()[this.index];if(a){jigu.addClassName(a,"on")}},getItemIndex:function(a){var b=a;for(var h=0;h<5;++h){if(jigu.String.startsWith(b.className,"idx_")){var j=b.className.match(/idx_([0-9]+).*/);var k=j[1];return k}b=jigu.getParent(b)}},bindEvent:function(){if(!!this.eventFlag==false){var a=this;jigu.addEvent(this.listContainer,"mouseover",function(b){var g=jigu.getElement(b);var h=a.getItemIndex(g);a.select(h,"over")});jigu.addEvent(this.listContainer,"click",function(b){var g=jigu.getElement(b);var h=a.getItemIndex(g);a.dispatchEvent("onSelectedItemClick",{event:b,string:a.listModel.all[h].string})});jigu.addEvent(this.listContainer,"mousedown",function(b){jigu.stopEvent(b)});this.eventFlag=true}},setListHtml:function(a){if(!!this.container==false){return false}var b=jigu.getElementsByClassName(this.container,"guide");if(b.length>0){b[0].className="list";this.listContainer=b[0]}if(!!this.listContainer==false){this.listContainer=document.createElement("DIV");
jigu.addClassName(this.listContainer,"list");this.container.appendChild(this.listContainer)}this.listContainer.innerHTML=a;this.bindEvent()},itemEvaluate:function(n,q,s,b){var a=b||0;var o=null;var t=[];var u=n.length;var p=(u>=s)?s:u;for(var r=0;r<p;r++){o=(r%2==0)?" first":"";t.push(c.template.Item.evaluate({first:o,item:c.module.KeywordHighlight(n[r].string,this.keyword,q),idx:a+r}))}return t.join("")},render:function(o){this.listModel=o;this.keyword=o.keyword;this.resetIndex();var l=c.define.ListPositionType;if(this.positionType==l.DEFAULT){var a=o.head,q=o.tail;var p=o.head.length,r=o.tail.length;if(p==0&&r>p){a=o.tail,q=o.head}}else{var a=o.tail,q=o.head}var b=Math.min(a.length,this.limit[0]);var n=Math.min(q.length,this.maxSize-b);this.maxIndex=b+n;var m=(this.limit[1]>0)?this.positionType:c.define.KeywordCompareType.FULL;this.setListHtml(c.template.Base.evaluate({list_high:this.itemEvaluate(a,m,b),list_low:(n>0)?this.itemEvaluate(q,(m==l.DEFAULT)?l.TRANS:l.DEFAULT,n,b):"",line:(b>0&&n>0)?"block":"none"}));
this.dispatchEvent("onShowListView")},changePositionType:function(a){var b=c.define.ListPositionType;this.positionType=(this.positionType==b.DEFAULT)?b.TRANS:b.DEFAULT;this.render(a)},resetIndex:function(){this.index=-1},resetPositionType:function(){this.positionType=c.define.ListPositionType.DEFAULT}})})(daum.suggest);(function(){var j=false;function l(){if(j){return}j=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);g()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);g()}});if(document.documentElement.doScroll&&window==window.top){(function(){if(m){return}try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}g()})()}}}jigu.addEvent(window,"load",g)}var m=false;var k=[];function g(){if(!m){m=true;if(k){jigu.Array.each(k,function(a){a.call(document,null)
});k=null}}}function h(a){l();if(m){a.call(document,null)}else{k.push(a)}return this}daum.suggest.DOMReady=h})();(function($ds){var _defaultBox=null;var SuggestInstance=$ds.Instance=function(inputElementId,parentWrapperId,suggestDomain,suggestRequestUrl,proxyUrlOrCallbackName,isCallback){this.inputBox=jigu.$(inputElementId);if(!!this.inputBox===false){alert($ds.message.ERROR_NO_INPUTBOX);return false}this.wrapper=jigu.$(parentWrapperId);if(!!this.wrapper===false){alert($ds.message.ERROR_NO_PARENT_CONTAINER);return false}this.suggestDomain=suggestDomain;this.requestUrl=suggestRequestUrl;if(isCallback===true){this.callbackName=proxyUrlOrCallbackName}else{this.proxyUrl=proxyUrlOrCallbackName}this.initialize()};SuggestInstance.prototype={initialize:function(){this.isActivate=null;this.currentKeyword="";this.option={type:"base",thumbActionFunc:null,limit:[10,3],focus:$ds.define.FocusPointType.DEFAULT,encode:$ds.define.EncodeType.UTF_IN_OUT,customUsingGuide:null,beforeExcuteNativeTab:null,areacode:null};
this.containerBox=null;this.yellowView=new $ds.view.YellowView();this.keywordInputView=new $ds.view.KeywordInputView(this.inputBox);this.dataModel=new $ds.model.DataModel({suggestDomain:this.suggestDomain,requestUrl:this.requestUrl,proxyUrl:this.proxyUrl,callbackName:this.callbackName,encode:this.option.encode,keyword:this.inputBox.value});this._bindEvents()},_containerRender:function(){this.containerBox=createContainer(this.wrapper,"suggestBox box_sub");this.baseBox=createContainer(this.containerBox,"baseBox bg")},_createModelView:function(){this.listModel=new $ds.model.ListModel({limit:this.option.limit,subwayAreacode:this.option.subwayAreacode});this.boxView=new $ds.view.BoxView({container:this.containerBox,type:this.option.type,listModel:this.listModel});this.listView=new $ds.view.ListView({container:this.baseBox,limit:this.option.limit});this.footerView=new $ds.view.FooterView({container:this.baseBox,yellowClip:this.yellowView.container});this.guideView=new $ds.view.GuideView({container:this.baseBox,customUsingGuide:this.option.customUsingGuide});
if(this.option.type=="thumb"){this.imageView=new $ds.view.ImageView({container:this.containerBox,listModel:this.listModel})}},_bindEvents:function(){var self=this;this.keywordInputView.addListener({onFocusKeywordBox:function(ev){var defaultValue=self.keywordInputView.getDefaultKeyword(),currentValue=self.keywordInputView.getValue();if(currentValue==""){self.dataModel.dispatchEvent("onEmptyKeyword")}if(!!currentValue&&self.boxView&&self.boxView.isVisible()==false){return false}$ds.Service.hiddenAll();if(!!currentValue&&currentValue!=defaultValue){setTimeout(function(){self.request(ev.keyword,"hidden")},50)}else{if($ds.Service.isEqual(self)==false){$ds.Service.setCurrentInstance(self)}else{self.visible()}}},onChangeKeyword:function(ev){var keyword=ev.keyword;if(self.option.subwayAreacode){keyword=self.option.subwayAreacode+ev.keyword;self.request(keyword);self.listView.positionType=$ds.define.ListPositionType.DEFAULT;self.keywordInputView.setDefaultKeyword(keyword.replace(self.option.subwayAreacode,""))
}else{self.request(keyword);self.listView.positionType=$ds.define.ListPositionType.DEFAULT;self.keywordInputView.setDefaultKeyword(keyword)}}});this.yellowView.addListener({onActivateSuggest:function(ev){$ds.module.ActivationFlag.set("on");if(ev.view==this){if(!!self.getKeyword()){self.keywordInputView.start();self.request(self.getKeyword())}else{self.visible("toUse")}}else{this.setDown()}},onYellowOff:function(ev){$ds.module.ActivationFlag.set("on");if(!!self.getKeyword()){self.keywordInputView.start();self.request(self.getKeyword())}else{self.visible("toUse")}},onYellowUp:function(ev){if(!!self.getKeyword()==false){self.keywordInputView.blur()}self.hidden()},onYellowDown:function(ev){if(!!self.getKeyword()==false){self.keywordInputView.blur()}self.visible("Used")}});this._bindEvents=function(){var self=this;this.keywordInputView.addListener({onClickKeywordBox:function(ev){if($ds.Service.getCurrentInstance()==self){if($ds.module.ActivationFlag.get()==true){self.toggle()}}else{$ds.Service.hiddenAll();
$ds.Service.setCurrentInstance(self)}},onBlurKeywordBox:function(ev){},onUpKeywordBox:function(ev){if(self.boxView.isVisible()==false&&ev.keyCode==$ds.define.Keyboard.TAB){}else{self.listView.moveUp();jigu.preventDefault(ev.event)}},onEmptyKeyword:function(){self.dataModel.dispatchEvent("onEmptyKeyword")},onDownKeywordBox:function(ev){if(self.boxView.isVisible()==false&&ev.keyCode==$ds.define.Keyboard.TAB){if(!!self.option.beforeExcuteNativeTab){self.option.beforeExcuteNativeTab(ev.event)}}else{if(self.boxView.isVisible()==true){if((self.listView.getItemEl().length-1)>self.listView.getIndex()){self.listView.moveDown();jigu.preventDefault(ev.event)}else{self.boxView.hidden()}}else{self.boxView.visible();jigu.preventDefault(ev.event)}}},onEscKeywordBox:function(ev){self.hidden()},onEnterKeywordBox:function(ev){if(!!self.option.beforeSubmit){jigu.stopEvent(ev.event)}forceFormSubmit(self);self.hidden()},onBlankKeywordValue:function(ev){self.hidden()}});this.boxView.addListener({onShowList:function(ev){self.listView.render(ev.data);
if(self.option.limit[0]==0||self.option.limit[1]==0||!ev.more){self.footerView.render("nomore")}else{self.footerView.render()}self.yellowView.setUp()},onShowGuide:function(ev){switch(ev.type){case"UsingSuggest":self.guideView.render("USING");break;case"UseSuggest":self.guideView.render("USE");break;case"NoResult":self.listModel.set(null);self.hidden();return false;break}self.footerView.render("nomore");self.yellowView.setUp()},onHiddenBox:function(ev){if($ds.module.ActivationFlag.get()==true){self.yellowView.setDown()}self.listModel.getChangeSort();self.listView.resetIndex();self.listView.resetPositionType()},onDifferntKeyword:function(ev){self.request(ev.keyword)}});this.listView.addListener({onShowListView:function(ev){},onHideHighlight:function(ev){self.keywordInputView.initDefaultKeyword();self.hidden()},onSelectItem:function(ev){self.boxView.renderType();if(self.option.type=="thumb"&&self.imageView){self.imageView.render(ev.index)}if(ev.action=="over"){if(!jigu.Browser.ff){self.keywordInputView.clear()
}}else{var selectedItem=self.listModel.getSelectedItem(ev.index);if(selectedItem){self.keywordInputView.setValue(selectedItem.string)}}},onSelectedItemClick:function(ev){if(jigu.Browser.mac&&jigu.Browser.ff){self.keywordInputView.blur()}self.keywordInputView.setValue(ev.string);forceFormSubmit(self);self.hidden()}});this.footerView.addListener({onTailMore:function(ev){self.keywordInputView.initDefaultKeyword();var list=self.listModel.getChangeSort("tail");self.listView.changePositionType(list);self.footerView.render("head")},onHeadMore:function(ev){self.keywordInputView.initDefaultKeyword();var list=self.listModel.getChangeSort("head");self.listView.changePositionType(list);self.footerView.render("tail")},onIsSuggest:function(ev){window.open($ds.template.IntroduceSuggestURL,"_blank");jigu.preventDefault(ev.event)},onOffSuggest:function(ev){$ds.module.ActivationFlag.set("off");self.yellowView.setOff();self.hidden()},onCloseSuggest:function(ev){self.hidden()}});this.dataModel.addListener({onLoadComplete:function(ev){var setData=$ds.model.Raw.set(ev.data,ev.route);
self.listModel.set(setData);setData=null;if(ev.visible!="hidden"){self.visible()}},onReloadCache:function(ev){self.listModel.set(ev.data);self.visible()},onSendData:function(ev){},onEmptyKeyword:function(ev){self.listModel.set(null);self.hidden()},onOverKeyword:function(ev){self.listModel.set(null);self.hidden()}});if(this.option.type=="thumb"){this.imageView.addListener({onMousedownImage:function(ev){var selectedItem=self.listView.getSelectedItem();if(self.option.thumbActionFunc){self.option.thumbActionFunc(selectedItem.item)}else{self.listView.dispatchEvent("onSelectedItemClick",{event:ev,string:selectedItem.string})}}})}}},_instanceReady:function(){if(!!this.containerBox==false){this._containerRender();this._createModelView();this._bindEvents()}},getKeyword:function(){return this.keywordInputView.getValue()},getSelectedItem:function(){return(this.listView!=null)?this.listView.getSelectedItem():null},setDefaultBox:function(){_defaultBox=this},setOption:function(key,value){this.option[key]=value;
return this},setUseThumbnail:function(customThumbActionFunc){this.option.type="thumb";this.option.thumbActionFunc=customThumbActionFunc;return this},setInputFocus:function(type){switch(type){case"load":this.option.focus=$ds.define.FocusPointType.LOAD;break;case"write":this.option.focus=$ds.define.FocusPointType.WRITE;break;default:this.option.focus=$ds.define.FocusPointType.DEFAULT;break}return this},setRequestUrl:function(url){if(!!this.dataModel){this.dataModel.setRequestUrl(url)}else{this.requestUrl=url}return this},setBeforeSubmitFunc:function(userFuncName){this.option.beforeSubmit=userFuncName;return this},getBeforeSubmitFunc:function(){return this.option.beforeSubmit},setBeforeNativeTabFunc:function(func){this.option.beforeExcuteNativeTab=func;return this},setForm:function(form){this.option.form=form;return this},setLimit:function(arrayValue){this.option.limit=arrayValue;return this},setSubwayAreacode:function(areacode){this.option.subwayAreacode=areacode;return this},setYellowClip:function(id){this.yellowView.initialize(id);
return this},setEncodeKeyword:function(encode){if(this.dataModel){this.dataModel.setEncode(encode)}else{this.setOption("encode",encode)}return this},setCustomUsingGuideFunc:function(func){this.option.customUsingGuide=func;return this},request:function(keyword,visible){this._instanceReady();this.dataModel.get(keyword,visible)},reRequest:function(){this.request(this.getKeyword())},hidden:function(){if(!!this.containerBox){this.keywordInputView.clear();this.boxView.hidden()}},visible:function(yellowClipState){if($ds.module.ActivationFlag.get()==true){this._instanceReady();this.boxView.visible(yellowClipState)}},toggle:function(){if(this.boxView.isVisible()){this.hidden()}else{this.visible()}},block:function(isBlock,callerView){this._instanceReady();if(isBlock==true){this.footerView.dispatchEvent("onOffSuggest")}else{this.yellowView.dispatchEvent("onActivateSuggest",{view:callerView})}}};var createContainer=function(parentContainer,className){var container=document.createElement("div");container.className=className;
parentContainer.appendChild(container);return container};var forceFormSubmit=function(instance){var form=instance.option.form,func=instance.option.beforeSubmit;if(typeof func=="function"){func(form)}else{var f=eval(func);if(f){f(form)}}}})(daum.suggest);(function(c){var d=c.Service=function(){var o=[],n=null;var m=null,l=null;var a=(jigu.getCookie("suggest")=="off")?false:true;var p=null;var b=false;var q={init:function(){if(b==true){return this}jigu.addEvent(document,"keydown",jigu.Function.bind(r.keydown,this));jigu.addEvent(document,"mousedown",jigu.Function.bind(r.mousedown,this));r.initFocus();b=true;return this},add:function(e,k,g,h,s,j){if(!!h===false){alert(c.message.ERROR_NO_REQUEST_URL);return false}var f=new c.Instance(e,k,g,h,s,j);o.push(f);return f},remove:function(){},hiddenAll:function(){for(var e=o.length-1;e>=0;--e){o[e].hidden()}},hiddenOther:function(f){for(var e=o.length-1;e>=0;--e){if(f!=o[e]){o[e].hidden()}}},block:function(f,e){for(var h=o.length-1;h>=0;--h){var g=o[h];
g.block(f,e)}},setCurrentInstance:function(e){n=e},getCurrentInstance:function(){return n},isEqual:function(e){var f;if(n!=null&&n!=e){f=false}else{f=true}return f},getInstanceList:function(){return o},getActivationFlag:function(){return c.module.ActivationFlag.get()}};var r={initFocus:function(){c.DOMReady(function(){for(var e=o.length-1;e>=0;--e){if(o[e].option.focus==c.define.FocusPointType.LOAD){q.setCurrentInstance(o[e]);q.getCurrentInstance().keywordInputView.setSelect();q.getCurrentInstance().keywordInputView.setFocus();break}}})},keydown:function(h){var j=jigu.getElement(h);var g=j.nodeName;var k=h.keyCode;var e=c.define.Keyboard;var f=["BACKSPACE","TAB","ENTER","SHIFT","CTRL","ALT","SPACEBAR","HOME","END","PAGEDOWN","PAGEUP","CAPSLOOK","LEFT","RIGHT","UP","DOWN","MAC_COMMAND"];for(var s=f.length-1;s>=0;--s){if(e[f[s]]==k){return true}}if(h.ctrlKey||h.metaKey){return true}if(j&&(g=="INPUT"||g=="SELECT"||g=="TEXTAREA")){return true}if(p==null){for(var s=o.length-1;s>=0;--s){if(o[s].option.focus==c.define.FocusPointType.LOAD||o[s].option.focus==c.define.FocusPointType.WRITE){p=o[s];
break}}}if(p){p.keywordInputView.clearValue();p.keywordInputView.setFocus()}},mousedown:function(e){q.hiddenAll()},findInputBox:function(e){for(var f=o.length-1;f>=0;--f){if(o[f].inputBox==e){return true}}return false}};return q}()})(daum.suggest);
