window.kids.top={};try{document.execCommand("BackgroundImageCache",false,true)}catch(ignored){}var KidsSuggestKeyword=function(){var c=[];var b;var a;var d={init:function(e,f){c=f;b=e;b.value=this.getRandomKeyword().keyword;daum.addEvent(b,"focus",function(g){if(b.value==d.getKeyword()){b.value=""}});daum.addEvent(b,"blur",function(g){if(b.value==""){b.value=d.getRandomKeyword().keyword}})},getRandomKeyword:function(){a=Math.floor(Math.random()*c.length);return c[a]},getKeyword:function(){return c[a].keyword},getUrl:function(){return c[a].url},checkSubmit:function(e){if(b.value==d.getKeyword()){top.location.href=d.getUrl()+"&t__nil_kids=vsearch";return false}else{if(e&&typeof e=="function"){return e()}else{return checkSubmit2()}}}};return d}();var SeasonEventListing=function(){var b=null,l=null,e=[];var d=[];var j=null,g=null;var c=null,i=10000,h=5000,m=true;var n="";var k=function(){daum.addEvent(b,"click",function(o){var q=o||window.event;var p=q.srcElement||q.target;if(daum.hasClassName(p,"btn_prev_season_event")){a.prev()}else{if(daum.hasClassName(p,"btn_next_season_event")){a.next()}}});daum.addEvent(b,"mouseover",function(o){f.stop()});daum.addEvent(b,"mouseout",function(o){f.play()});k=function(){return false}};var f={stop:function(){clearInterval(c);m=false},play:function(o){m=true;clearInterval(c);c=setTimeout(f.move,o||h)},move:function(){a.next();c=setTimeout(f.move,h)}};var a={init:function(o){b=daum.$(o);l=b.getElementsByTagName("DIV")[0];k();f.stop();f.play(i)},setData:function(o){d=o;j=0;g=o.length-1;if(o.length<2){b.className+=" only_one"}a.render()},setTagStr:function(o){n=o},getLinkData:function(p,o){if(!!n){if(p.indexOf("?")>-1){p+="&"}else{p+="?"}p+=n;if(!!o){p+=o}}return p},click:function(){if(j!=null){var o=d[j];if(!!o.target==false||o.target.match(/_top|_self|_parent/)){top.location.href=o.link}else{window.open(o.link,o.target)}}},prev:function(){if(j!=null){daum.removeClassName(e[j],"show");j--;if(j<0){j=g}daum.addClassName(e[j],"show")}},next:function(){if(j!=null){daum.removeClassName(e[j],"show");j++;if(j>g){j=0}daum.addClassName(e[j],"show")}},render:function(){var p=d[j];var o=document.createElement("UL");daum.Array.each(d,function(t){var q=document.createElement("LI"),r=document.createElement("A"),s=document.createElement("IMG");o.appendChild(q);r.href=a.getLinkData(t.link,t.no);r.target=t.target;r.title=t.title;q.appendChild(r);s.src=t.img;s.alt=t.title;r.appendChild(s);e.push(q)});l.innerHTML="";l.appendChild(o);daum.addClassName(e[j],"show")}};return a}();var TopPromotionLayer=function(){var a;var f="KidsTopPromotionLayerHideToday",e="true";var d="이 이미지가 24시간동안 안보이길 원하세요?";var b=daum.getCookie(f);var g={init:function(h){a=daum.$(h);daum.addEvent(a,"click",function(i){var j=c(i);if(j.className.indexOf("btn_close")>-1){g.close()}});if(b&&b==e){}else{this.show()}},show:function(){daum.show(a)},hide:function(){daum.hide(a)},close:function(){if(confirm(d)){daum.setCookie(f,e,1)}this.hide()}};var c=function(h){var i=h||window.event;return i.srcElement||i.target};return g}();kids.top={toggleList:function(b,a){daum.Element.toggle(b);daum.Element.toggle(a)},toggleBlockShapedList:function(b){var a=$("blockShapedList1"),f=$("blockShapedList2"),e=$("btnPopular"),c=$("btnClass"),d="1";hideElement=a,showElement=f,hideBtn=e,showBtn=c;if(b=="0"){showElement=a;hideElement=f;showBtn=e;hideBtn=c;d="0"}daum.Element.show(showElement);daum.Element.hide(hideElement);daum.addClassName(showBtn,"on");daum.removeClassName(hideBtn,"on");$("currentBlockList").value=d},keepChangingBlockShapedList:function(){var a=$("currentBlockList"),b=$("stopInterval");if(b.value=="true"){return}if(a.value=="0"){a.value="1"}else{a.value="0"}kids.top.toggleBlockShapedList(a.value)},stopInterval:function(a){var b=$("stopInterval");if(a==true){b.value="true"}else{b.value="false"}}};
