try{document.domain="daum.net"}catch(e){}daum.domReadyFunc=[];daum.domReady=function(){for(var a=0;a<daum.domReadyFunc.length;a++){daum.domReadyFunc[a]()}};daum.addDomReady=function(a){daum.domReadyFunc[daum.domReadyFunc.length]=a};function $Class(){var a=$A(arguments);var d=a.shift();var f=$ClassFn;for(var b in f){this[b]=f[b]}for(b in d){this[b]=d[b]}if(typeof(this.construct)=="function"){this.construct.apply(this,a)}}$ClassFn={merge:function(b){for(var a in b){this[a]=b[a]}}};function $Extend(d,b){var c=b;for(var a in d){c[a]=d[a]}return c}function object2Param(c){var a=[];for(var b in c){a.push(b+"="+c[b])}return(a.length>0)?a.join("&"):""}function autolink(a){return a.replace(new RegExp("(http)://([-/.a-zA-Z0-9_~#%$?&=:200-377()]+)","gi"),"<a href='$1://$2' target='_blank'>$1://$2</a>")}function getTwitterTime(h){var l=h,a=new Date(),g=Math.floor((a.getTime()-l)/1000),b="";var f=Math.floor(g/60);if(f<1){return g+"초 전"}else{if(f<60){return f+"분 전"}}var c=Math.floor(g/60/60);if(c<24){return c+"시간 전"}var k=Math.floor(g/60/60/24);if(k<30){return k+"일 전"}else{var j=new Date();j.setTime(h);return j.getFullYear()+"-"+daum.Number.fillZero((j.getMonth()+1),2)+"-"+daum.Number.fillZero(j.getDate(),2)}}var $debug={prefix:"DEBUG",construct:function(a){if(a){this.prefix="["+a+"]"}},log:function(){var a=[this.prefix].concat(daum.$A(arguments));if(!!console&&!!console.log){if(typeof(console.log)=="function"){console.log.apply(console,a)}else{console.log(a.join(", "))}}}};var fireEvent=function(d,c,b){if(document.createEvent){var a=document.createEvent("HTMLEvents");a.initEvent(c,true,true);a.memo=b||{};return !d.dispatchEvent(a)}else{var a=document.createEventObject();a.memo=b||{};return d.fireEvent("on"+c,a)}};var PollManager=(function(){var a={};var c="",b="",d=0;a.construct=function(f){daum.load(f);this.template1=$("PollManagerTpl_1").innerHTML.split("<!--division-->");this.template1.each(function(g,h){this.template1[h]=g.trim()}.bind(this));this.template2=$("PollManagerTpl_2").innerHTML.split("<!--division-->");this.template2.each(function(g,h){this.template2[h]=g.trim()}.bind(this))};a.setData=function(g){var f=g.question_item[0];c=(f.question_type=="BASIC")?"basic":"updown";b=g.uuid;d=(c=="basic")?1:g.question_item.length};a.setSubmitBtn=function(h){var g=$("voteForm");var f=$$("#voteForm input:checked").length;if(f<d){alert("문항을 "+((c=="basic")?"":"모두")+" 선택해주세요");return}window.open("about:blank","pollWindow","width=722, height=462");g.action="http://poll.media.daum.net/poll/"+c+"vote.daum";g.target="pollWindow";g.submit()};a.setResultBtn=function(g){var f="http://poll.media.daum.net/poll/"+c+"statics.daum?pid="+b;window.open(f,"","width=722,height=462")};return a})();var SpaceAD={width:"130",height:"250",parentElement:"",top:"0",left:"0",isShow:false,insert:function(){var a=document.createElement("div");a.innerHTML='<div id="RIGHT_SPACE_BANNER" style="top:'+SpaceAD.top+"px;left:"+SpaceAD.left+'px;position:absolute;"><iframe src="http://amsv2.daum.net/ad/adview?secid=05d90" width="'+SpaceAD.width+'" height="'+SpaceAD.height+'" border="0" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe></div>';SpaceAD.parentElement.appendChild(a)}};var miniSportage=function(a){this.wrap=$(a);if(!this.wrap){return}this.elements=daum.getElementsByClassName(this.wrap,"list");this.elementsLength=this.elements.length;this.hotIcon=daum.getElementsByClassName(this.wrap,"ico_hotphoto")[0];this.onIdx=0;this.initialize()};miniSportage.prototype={initialize:function(){this.setButton();this.elements.each(function(b,a){if(daum.hasClassName(b,"on")){this.onIdx=a}else{daum.addClassName(b,"out")}}.bind(this));this.getIdx();daum.replaceClassName(this.elements[this.pIdx],"out","left");daum.replaceClassName(this.elements[this.nIdx],"out","right");this.hotIcon.style.opacity=1},setButton:function(){[daum.getElementsByClassName(this.wrap,"btn_prv")[0],daum.getElementsByClassName(this.wrap,"btn_nxt")[0]].each(function(a){daum.addEvent(a,"mouseover",function(b){daum.replaceClassName(daum.getElementsByClassName(a,"btn_photo")[0],"off","on")});daum.addEvent(a,"mouseout",function(b){daum.replaceClassName(daum.getElementsByClassName(a,"btn_photo")[0],"on","off")});daum.addEvent(a,"click",function(b){daum.stopEvent(b);if(a.className==="btn_prv"){this.prev()}else{if(a.className==="btn_nxt"){this.next()}else{return}}}.bind(this))}.bind(this))},getIdx:function(){this.nIdx=(this.onIdx+1)>=this.elementsLength?0:this.onIdx+1;this.pIdx=(this.onIdx-1)<0?this.elementsLength-1:this.onIdx-1},prev:function(){this.hotIcon.style.opacity=0;daum.replaceClassName(this.elements[this.pIdx],"left","on");daum.replaceClassName(this.elements[this.onIdx],"on","right");daum.replaceClassName(this.elements[this.nIdx],"right","out");this.onIdx=this.pIdx;this.getIdx();daum.replaceClassName(this.elements[this.pIdx],"out","left");daum.Function.timeout(function(){this.hotIcon.style.opacity=1}.bind(this),300)},next:function(){this.hotIcon.style.opacity=0;daum.replaceClassName(this.elements[this.onIdx],"on","left");daum.replaceClassName(this.elements[this.nIdx],"right","on");daum.replaceClassName(this.elements[this.pIdx],"left","out");this.onIdx=this.nIdx;this.getIdx();daum.replaceClassName(this.elements[this.nIdx],"out","right");daum.Function.timeout(function(){this.hotIcon.style.opacity=1}.bind(this),300)}};daum.Fx.transitions={easeNone:function(f,a,h,g){return h*f/g+a},easeInQuad:function(f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeOutInCubic:function(f,a,h,g){if(f<g/2){return daum.Fx.transitions.easeOutCubic(f*2,a,h/2,g)}return daum.Fx.transitions.easeInCubic((f*2)-g,a+h/2,h/2,g)},easeInQuart:function(f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeOutInQuart:function(f,a,h,g){if(f<g/2){return daum.Fx.transitions.easeOutQuart(f*2,a,h/2,g)}return daum.Fx.transitions.easeInQuart((f*2)-g,a+h/2,h/2,g)},easeInQuint:function(f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeOutInQuint:function(f,a,h,g){if(f<g/2){return daum.Fx.transitions.easeOutQuint(f*2,a,h/2,g)}return daum.Fx.transitions.easeInQuint((f*2)-g,a+h/2,h/2,g)},easeInSine:function(f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeOutInSine:function(f,a,h,g){if(f<g/2){return daum.Fx.transitions.easeOutSine(f*2,a,h/2,g)}return daum.Fx.transitions.easeInSine((f*2)-g,a+h/2,h/2,g)},easeInExpo:function(f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a-h*0.001},easeOutExpo:function(f,a,h,g){return(f==g)?a+h:h*1.001*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a-h*0.0005}return h/2*1.0005*(-Math.pow(2,-10*--f)+2)+a},easeOutInExpo:function(f,a,h,g){if(f<g/2){return daum.Fx.transitions.easeOutExpo(f*2,a,h/2,g)}return daum.Fx.transitions.easeInExpo((f*2)-g,a+h/2,h/2,g)},easeInCirc:function(f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeOutInCirc:function(f,a,h,g){if(f<g/2){return daum.Fx.transitions.easeOutCirc(f*2,a,h/2,g)}return daum.Fx.transitions.easeInCirc((f*2)-g,a+h/2,h/2,g)},easeInElastic:function(h,f,m,l,g,k){var j;if(h==0){return f}if((h/=l)==1){return f+m}if(!k){k=l*0.3}if(!g||g<Math.abs(m)){g=m;j=k/4}else{j=k/(2*Math.PI)*Math.asin(m/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k))+f},easeOutElastic:function(h,f,m,l,g,k){var j;if(h==0){return f}if((h/=l)==1){return f+m}if(!k){k=l*0.3}if(!g||g<Math.abs(m)){g=m;j=k/4}else{j=k/(2*Math.PI)*Math.asin(m/g)}return(g*Math.pow(2,-10*h)*Math.sin((h*l-j)*(2*Math.PI)/k)+m+f)},easeInOutElastic:function(h,f,m,l,g,k){var j;if(h==0){return f}if((h/=l/2)==2){return f+m}if(!k){k=l*(0.3*1.5)}if(!g||g<Math.abs(m)){g=m;j=k/4}else{j=k/(2*Math.PI)*Math.asin(m/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k))+f}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k)*0.5+m+f},easeOutInElastic:function(h,f,l,k,g,j){if(h<k/2){return daum.Fx.transitions.easeOutElastic(h*2,f,l/2,k,g,j)}return daum.Fx.transitions.easeInElastic((h*2)-k,f+l/2,l/2,k,g,j)},easeInBack:function(f,a,j,h,g){if(g==undefined){g=1.70158}return j*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(f,a,j,h,g){if(g==undefined){g=1.70158}return j*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(f,a,j,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return j/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return j/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeOutInBack:function(f,a,j,h,g){if(f<h/2){return daum.Fx.transitions.easeOutBack(f*2,a,j/2,h,g)}return daum.Fx.transitions.easeInBack((f*2)-h,a+j/2,j/2,h,g)},easeInBounce:function(f,a,h,g){return h-daum.Fx.transitions.easeOutBounce(g-f,0,h,g)+a},easeOutBounce:function(f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(f,a,h,g){if(f<g/2){return daum.Fx.transitions.easeInBounce(f*2,0,h,g)*0.5+a}else{return daum.Fx.transitions.easeOutBounce(f*2-g,0,h,g)*0.5+h*0.5+a}},easeOutInBounce:function(f,a,h,g){if(f<g/2){return daum.Fx.transitions.easeOutBounce(f*2,a,h/2,g)}return daum.Fx.transitions.easeInBounce((f*2)-g,a+h/2,h/2,g)}};var Santafe=function(a,b){this.position=0;this.elementId="";this.options={prevBtn:"prev_btn",nextBtn:"next_btn",container:"container",scrollCount:"all",overButtonSuffix:"_over",duration:0.5,rightMargin:0,easing:null,callback:function(){}};this.options=daum.extend(this.options,b||{});this.elementId=a;this.element=$(this.elementId);if(!$(this.elementId)){return}this.container=$E(daum.getFirstChild($$("#"+this.elementId+" ."+this.options.container)[0]));this.prev=this.options.prevBtn==false?null:$E($$("#"+this.elementId+" ."+this.options.prevBtn)[0]);this.next=this.options.nextBtn==false?null:$E($$("#"+this.elementId+" ."+this.options.nextBtn)[0]);[this.prev,this.next].each(function(c){if(!c){return}var d=(c==this.next?this.options.nextBtn:this.options.prevBtn)+this.options.overButtonSuffix;c.clickHandler=this.scroll.bindAsEventListener(this,(c==this.next?-1:1));daum.addEvent(c,"mouseover",function(){c.addClassName(d)});daum.addEvent(c,"mouseout",function(){c.removeClassName(d)});daum.addEvent(c,"click",c.clickHandler)}.bind(this))};Santafe.prototype={getSlideSize:function(){this.elements=this.container.getChildElements();this.elementsLength=daum.Array.size(this.elements);if(!this.elementsLength){return}this.elementSize=daum.getStyle(this.elements[0],"width").toInt();this.nbVisible=Math.floor((daum.getStyle(this.container.parentNode,"width").toInt()+this.options.rightMargin)/this.elementSize);this.scrollInc=(this.options.scrollCount=="all")?this.nbVisible:this.options.scrollCount},scroll:function(b,a){this.getSlideSize();var c=(a<0)?"reverse":"forwards";var a=daum.Number.toInt(a*this.scrollInc);if(c=="forwards"&&this.position==0){this.position=this.elementsLength-this.nbVisible}else{if(c=="reverse"&&this.position==(this.elementsLength-this.nbVisible)){this.position=0}else{this.position=this.position-a;this.lastPosition=this.position+this.nbVisible;if(this.lastPosition>this.elementsLength){this.position=this.elementsLength-this.nbVisible}else{if(this.position<0){this.position=0}}}}this.scrollAction();daum.stopEvent(b)},scrollAction:function(){if(this.elementsLength<=this.nbVisible){return}var a=-this.position*this.elementSize;daum.Fx.stop(this.container);daum.Fx.animate(this.container,{left:daum.Number.px(a)},{duration:this.options.duration,callback:this.options.callback,easing:this.options.easing})},goSlide:function(c){this.getSlideSize();var a=Math.ceil(this.nbVisible/2);var b=1;this.elements.each(function(d){if(d.id==c){if(b<a){this.position=0}else{if(b>this.elementsLength-a){this.position=this.elementsLength-this.nbVisible}else{this.position=b-a}}this.scrollAction();return c}else{b++}}.bind(this))},goFirst:function(){var a=daum.Array.getFirst(this.elements).getAttribute("id");this.goSlide(a)},goLast:function(){var a=daum.Array.getLast(this.elements).getAttribute("id");this.goSlide(a)}};function AmsExtend(d,c){for(var f in c){d[f]=c[f]}return d}function AmsFlash(j,l,g,n){var d={id:"UIswf_"+j,quality:"high",bgcolor:"#ffffff",allowScriptAccess:"always",allowFullScreen:"true"};AmsExtend(d,n);var b='id="'+d.id+'"';var a='name="'+d.id+'"';var c="",k="";for(i in d){if(i=="id"){continue}c+='<param name="'+i+'" value="'+d[i]+'">\n';k+=i+'="'+d[i]+'" '}var m="<object "+b+' width="'+l+'" height="'+g+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0">';m+='<param name="movie" value="'+j+'">'+c;m+="<embed "+a+' src="'+j+'" width="'+l+'" height="'+g+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" '+k+"/>";m+="</object>";if(d.containerId){document.getElementById(d.containerId).innerHTML=m}else{document.write(m)}return m}function extBannerOver(){try{document.getElementById("EXTENSIBLE_BANNER").style.overflow="visible"}catch(a){}}function extBannerOut(){try{document.getElementById("EXTENSIBLE_BANNER").style.overflow="hidden"}catch(a){}}function EXTENSIBLE_BANNER_PACK(){if(typeof(arguments[0])=="object"){var b=AmsExtend({secid:false,iconid:false,dir:"",wrapper:false},arguments[0]||{})}else{var b={secid:arguments[0],iconid:arguments[1],dir:typeof(arguments[2])=="undefined"?"":arguments[2],wrapper:arguments[3]}}if(!b.secid){return}var c=Math.random().toString();var d=c.substring(2,c.length);var a='		<style type="text/css">			#EXTENSIBLE_WRAP {position:relative;z-index:4000;height:250px;}			#EXTENSIBLE_BANNER_WRAP {}			#EXTENSIBLE_BANNER {position:relative;width:250px;height:0px;z-index:4000;overflow:hidden;}			#EXTENSIBLE_BANNER object {position:absolute;left:-35px;top:-35px;}			#EXTENSIBLE_ICON {display:none;z-index:4001;position:absolute;top:120px;left:145px;}			#EXTENSIBLE_WRAP iframe {position:absolute;top:0;left:0;z-index:4000;}		</style>		<div id="EXTENSIBLE_WRAP">			<div id="EXTENSIBLE_BANNER_WRAP"><div id="EXTENSIBLE_BANNER" class="'+b.dir+'"></div><div id="EXTENSIBLE_ICON"></div></div>			<iframe src="http://amsv2.daum.net/ad/adview?secid='+b.secid+'" width="250" height="250" border="0" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" id="AMS_250exp" name="AMS_250exp" allowTransparency="true"></iframe>		</div>';if(b.wrapper&&document.getElementById(b.wrapper)){document.getElementById(b.wrapper).innerHTML=a}else{document.writeln(a)}if(b.iconid){document.write('<div id="TAKEOVER"><script src="http://amsv2.daum.net/ad/adview?secid='+b.iconid+'" type="text/javascript"><\/script></div>');document.getElementById("EXTENSIBLE_ICON").appendChild(document.getElementById("TAKEOVER"));document.getElementById("EXTENSIBLE_ICON").style.display="block"}}var rightTabBox=function(b,a){var b=b;var a=a;$$(b).each(function(d,c){daum.addEvent(d,"mouseover",function(){$$(a).each(function(f){daum.hide(f)});daum.show($$(a)[c]);$$(b).each(function(f){daum.removeClassName(f,"on")});daum.addClassName(d,"on")})})};var MiniDaum={tracker:"on"};var Click={service:"media",ref:"",loc:"",tit:"",init:function(){Click.ref=encodeURIComponent(document.referrer);Click.loc=encodeURIComponent(document.location);Click.tit=encodeURIComponent(document.title)},print:function(){Click.init();var a=Click.service;var f=Click.ref;var g=Click.loc;var c=Click.tit;if(typeof news_data!="undefined"){g=encodeURIComponent(document.location+"&p="+news_data.cp_eng_name)}var b="http://media.tiara.daum.net/pv/click-tiara.php?service="+a+"&ref="+f+"&loc="+g+"&tit="+c;var d='<img src="'+b+'" width="0" height="0" alt="" />';document.write(d)},call:function(d){var a=d?d:Click.service;var f=Click.ref;var g=Click.loc;var c=Click.tit;var b="http://media.tiara.daum.net/pv/click-tiara.php?service="+a+"&ref="+f+"&loc="+g+"&tit="+c;daum.load(b,function(){})},slideCall:function(d,g,c){var a=d?d:Click.service;var f=Click.ref;var g=g?encodeURIComponent(g):Click.loc;var c=c?encodeURIComponent(c):Click.tit;var b="http://media.tiara.daum.net/pv/click-tiara.php?service="+a+"&ref="+f+"&loc="+g+"&tit="+c;daum.load(b,function(){})}};var mTweet={callBackData:function(f){var k="";var a=$$(".wrap_live_talk .wrap")[0];var c="";var d=1;for(var g=1;g<f.length;g++){c=(document.all)?f[g].created_at.replace(/(\+0000) /,"")+" +0000":f[g].created_at;c=getTwitterTime(new Date(c).getTime());c=c.replace(/^([0-9]+)/,"<strong>$1</strong>");if(f[g].screen_name!="mediadaum_en"){continue}k+=new daum.Template(a.innerHTML).evaluate({text:autolink(f[g].text),none:(d==1)?"":'style="display:none"',time:c});d++}a.innerHTML=k;var h=0;var l=$$(".wrap_live_talk .wrap div");var b=l.length;if(b==0){daum.hide($$(".wrap_live_talk")[0])}else{if(b>1){setInterval(function(){var j=l[h];h=(h==b-1)?0:h+1;daum.show(l[h]);daum.hide(j)},10000)}}}};(function(){var b="http://flvs.daum.net/";var a="prerollLauncher.swf";var h="http://rt.flvs.daum.net:8080/RTES/Redirect";var d="http://flvs.daum.net/viewer/MovieThumb.do";var f="flvPlayer";var j="mediPotPrerollCbk";var g=39;var k=642;var c=390;window.mediPotPrerollCbk={};daum.MediPot=function(n,m,l){this.wrapper=daum.$(n);this.flvUrl=m;if(typeof l=="object"){console.log("obj");this.prerollObj={secid:"",width:k,height:c};daum.extend(this.prerollObj,l,true)}this.isMobile=/Android|iPhone|iPad|iPod/.test(navigator.userAgent);this.width=0;this.height=0;this.autoplay="";this.paramObj={};this.init()};daum.MediPot.prototype={init:function(){this.paramObj=this.getUrlParams();this.width=this.paramObj.playerWidth?this.paramObj.playerWidth:String(k);this.height=this.paramObj.playerHeight?this.paramObj.playerHeight:String(c);this.autoplay=this.paramObj.autoplay?this.paramObj.autoplay:"true";if(this.isMobile){this.attachVideoTag()}else{if(this.prerollObj&&this.prerollObj.secid!=""){this.showPreroll()}else{this.show()}}},setWrapperStyles:function(){this.width=parseInt(this.width);this.height=parseInt(this.height);if(this.flvUrl.search(f)<=0){this.height=this.height+g}daum.setStyle(this.wrapper,{backgroundColor:"#000",overflow:"hidden",width:daum.String.px(this.width),height:daum.String.px(this.height)})},attachVideoTag:function(){this.wrapper.appendChild(this.getVideoElement())},show:function(){this.setWrapperStyles();daum.showFlash(this.flvUrl,this.width,this.height,this.wrapper)},showPreroll:function(){var l=b+a;l=l+"?secid="+this.prerollObj.secid+"&callbackFunc="+j+"['"+this.paramObj.vid+"']";daum.showFlash(l,this.prerollObj.width,this.prerollObj.height,this.wrapper);window.mediPotPrerollCbk[this.paramObj.vid]=function(){this.show()}.bind(this)},getVideoElement:function(){var m={src:h+"?vid="+this.paramObj.vid,poster:d+"?vid="+this.paramObj.vid,type:"video/mp4",width:this.width,height:this.height,autoplay:this.autoplay=="true"?"autoplay":false,controls:"controls",preload:"preload"};var n=daum.createElement("video");for(var l in m){if(m[l]){n.setAttribute(l,m[l])}}daum.addEvent(n,"click",function(){this.play()});return n},getUrlParams:function(){var n={};var p=this.flvUrl.indexOf("?");if(p>=0){var q=this.flvUrl.substr(p+1);var m=q.split("&");for(var o=0,l=m.length;o<l;o++){n[m[o].split("=")[0]]=m[o].split("=")[1]}return n}else{return false}}}})();var ShowcaseEvent={init:function(){setTimeout(ShowcaseEvent.rolling,5000);daum.addEvent($("showcaseRollingArea"),"mouseover",ShowcaseEvent.show)},hide:function(){daum.hide($("showcaseSub"))},show:function(a){daum.stopEvent(a);daum.show($("showcaseSub"));daum.Function.timeout(function(){ShowcaseEvent.chkMouse()},1)},rolling:function(){var a=setInterval(function(){var d=$("showcaseRollingArea");if(daum.getCoordsTarget(d,"showcase").top>45){daum.setTop(d,-5,true)}else{var c=daum.getFirstChild(d);var b=daum.createElement("a",{href:c.href});b.innerHTML=c.innerHTML;d.appendChild(b);d.removeChild(c);daum.setTop(d,0,false);clearInterval(a);setTimeout(ShowcaseEvent.rolling,5000)}},100)},chkMouse:function(b){var a=daum.addEvent(document,"mousemove",function(d){var c=daum.getElement(d);var g=false;try{while(c.tagName.toLowerCase()!="body"){if(c.id=="showcaseSub"||c.id=="showcaseRollingArea"){g=true;break}c=daum.getParent(c)}if(g===false){daum.hide($("showcaseSub"));daum.Event.stopObserving(a)}}catch(f){}})}};var issue10Model={data:{},alreadySelected:[],getData:function(b){var a=issue10Model.data[b+"_issue10"];var c=daum.random(0,a.length-1);if(daum.Array.contains(issue10Model.alreadySelected,c)){return issue10Model.getData(b)}issue10Model.alreadySelected.push(c);return a[c]}};var setIssue10=function(a){try{issue10Model.data=a.issue10}catch(b){console.log(b)}};var issue10Controller=function(g,j,d){var h=daum.extend({url:"http://search.daum.net/search?w=tot&t__nil_searchbox=btn&sug=&guide=content"},d,true);var b=daum.$E(g);var k=daum.$$("> ul",b)[0];var a=false;var m=new daum.Template(['<li class="#{className}">','<a href="'+h.url+'&q=#{q}" target="_blank">#{keyword}</a><span class="bar">|</span>',"</li>"].join(""));var f=function(){l()};var l=function(){if(!a){jsonArr=issue10Model.getData(j);a=true}c()};var c=function(){var r=null;var o=[];switch(j){case"news":case"sports":r=[issue10Model.getData("news"),issue10Model.getData("sports"),issue10Model.getData("entertain"),];break;case"entertain":r=[issue10Model.getData("entertain"),issue10Model.getData("entertain")];break;default:r=[];break}for(var q=0,n=r.length;q<n;q++){var s=r[q];s.q=encodeURIComponent(s.q);s.className=q+1<n?"":"last";var p=m.evaluate(s);o.push(p)}k.innerHTML=o.join("")};f()};
