(function(){function a(b,e){for(var f in e)b[f]=e[f];return b}a(Object,{extend:a})})();
Object.extend(Function.prototype,function(){function a(c,d){for(var g=c.length,h=d.length;h--;)c[g+h]=d[h];return c}function b(c,d){c=j.call(c,0);return a(c,d)}function e(){var c=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\//g,"").replace(/\s+/g,"").split(",");return c.length==1&&!c[0]?[]:c}function f(c){if(arguments.length<2&&Object.isUndefined(arguments[0]))return this;var d=this,g=j.call(arguments,1);return function(){var h=b(g,arguments);
return d.apply(c,h)}}function k(c){var d=this,g=j.call(arguments,1);return function(h){h=a([h||window.event],g);return d.apply(c,h)}}function l(){if(!arguments.length)return this;var c=this,d=j.call(arguments,0);return function(){var g=b(d,arguments);return c.apply(this,g)}}function m(c){var d=this,g=j.call(arguments,1);c*=1E3;return window.setTimeout(function(){return d.apply(d,g)},c)}function i(){return this.delay.apply(this,a([0.01],arguments))}function n(c){var d=this;return function(){var g=
a([d.bind(this)],arguments);return c.apply(this,g)}}function o(){if(this._methodized)return this._methodized;var c=this;return this._methodized=function(){var d=a([this],arguments);return c.apply(null,d)}}var j=Array.prototype.slice;return{argumentNames:e,bind:f,bindAsEventListener:k,curry:l,delay:m,defer:i,wrap:n,methodize:o}}());
var Agents=function(){var a=navigator.userAgent,b=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!b,Opera:b,WebKit:a.indexOf("AppleWebKit/")>-1,Gecko:a.indexOf("Gecko")>-1&&a.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(a)}}();
document.viewport={getDimensions:function(){return{width:this.getWidth(),height:this.getHeight()}},getScrollOffsets:function(){return Element._returnOffset(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft,window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop)}};
(function(a){function b(){if(f.WebKit&&!k.evaluate)return document;if(f.Opera&&window.parseFloat(window.opera.version())<9.5)return document.body;return document.documentElement}function e(i){l||(l=b());m[i]="client"+i;a["get"+i]=function(){return l[m[i]]};return a["get"+i]()}var f=Agents,k=document,l,m={};a.getWidth=e.curry("Width");a.getHeight=e.curry("Height")})(document.viewport);var HOSTS=function(){function a(e){return b}var b="itovi.tvreport.co.kr";return{DOMAIN:b,BASE_HOST:a("www"),MAIN_SEARCH_HOST:a("search"),IMAGE_SEARCH_HOST:a("image"),VIDEO_SEARCH_HOST:a("video"),CDN_HOST:a("img"),HELP_HOST:a("help"),WIDGET_HOST:a("widget"),ISAPI_HOST:a("image")}}();var _global=function(){return{setCookie:function(a,b,e){var f=HOSTS.DOMAIN,k=new Date((new Date).getTime()+e*1E3);document.cookie=a+"="+b+";"+(e?"expires="+k.toGMTString()+";":"")+"domain="+f+";path=/;"},getCookie:function(a){for(var b=document.cookie.split("; "),e=0;e<b.length;e++){var f=b[e].split("=");if(a==f[0])return f[1]}return null},getQuery:function(){return Ext.urlDecode(location.search.substr(1,location.search.length))},realizeSize:function(a,b){b=b||120;if(a.width>=a.height&&a.width>b)a.width=
b;else if(a.width<a.height&&a.height>b)a.height=b}}}();