function isUnCacheAgent(){var e=_ua.indexOf("iPad")>-1,t=_ua.indexOf("Android")>-1,n=!(_ua.indexOf("IEMobile")>-1)&&_ua.indexOf("Mobile")>-1||e&&_ua.indexOf("Safari")>-1;return n&&!e&&!t}"undefined"!=typeof window&&"undefined"==typeof window.nhn&&(window.nhn={}),"undefined"!=typeof window?"undefined"==typeof window.jindo&&(window.jindo={}):jindo||(jindo={}),jindo.$Jindo=function(){var e=arguments.callee,t=e._cached;return t?t:this instanceof e?(t||(e._cached=this),void(this.version="1.5.2-SMART_EDITOR")):new e},jindo.$=function(e){var t=[],n=arguments,o=n.length,i=n[o-1],r=document,s=null,a=/^<([a-z]+|h[1-5])>$/i,u=/^<([a-z]+|h[1-5])(\s+[^>]+)?>/i;o>1&&"string"!=typeof i&&i.body&&(n=Array.prototype.slice.apply(n,[0,o-1]),r=i);for(var l=0;o>l;l++){if(s=n[l],"string"==typeof s)if(s=s.replace(/^\s+|\s+$/g,""),s.indexOf("<")>-1){if(a.test(s))s=r.createElement(RegExp.$1);else if(u.test(s)){for(var d={thead:"table",tbody:"table",tr:"tbody",td:"tr",dt:"dl",dd:"dl",li:"ul",legend:"fieldset",option:"select"},c=RegExp.$1.toLowerCase(),p=jindo._createEle(d[c],s,r),l=0,f=p.length;f>l;l++)t.push(p[l]);s=null}}else s=r.getElementById(s);s&&(t[t.length]=s)}return t.length>1?t:t[0]||null},jindo._createEle=function(e,t,n,o){var i="R"+(new Date).getTime()+parseInt(1e5*Math.random(),10),r=n.createElement("div");switch(e){case"select":case"table":case"dl":case"ul":case"fieldset":r.innerHTML="<"+e+' class="'+i+'">'+t+"";break;case"thead":case"tbody":case"col":r.innerHTML="<"+e+' class="'+i+'">'+t+"
";break;case"tr":r.innerHTML=''+t+"
";break;default:r.innerHTML='
'+t+"
"}var s;for(s=r.firstChild;s&&s.className!=i;s=s.firstChild);return o?s:s.childNodes},jindo.$Class=function(oDef){function typeClass(){for(var t=this,a=[],superFunc=function(m,superClass,func){if("constructor"!=m&&func.toString().indexOf("$super")>-1){var funcArg=func.toString().replace(/function[^\(]*\(([^\)]*)[\w\W]*/g,"$1").split(","),funcStr=func.toString().replace(/function[^{]*{/,"").replace(/(\w|\.?)(this\.\$super|this)/g,function(e,t,n){return t?e:n+".$super"});funcStr=funcStr.substr(0,funcStr.length-1),func=superClass[m]=eval("false||function("+funcArg.join(",")+"){"+funcStr+"}")}return function(){var e=this.$this[m],t=this.$this,n=(t[m]=func).apply(t,arguments);return t[m]=e,n}};"undefined"!=typeof t._$superClass;){t.$super=new Object,t.$super.$this=this;for(var x in t._$superClass.prototype)t._$superClass.prototype.hasOwnProperty(x)&&("undefined"==typeof this[x]&&"$init"!=x&&(this[x]=t._$superClass.prototype[x]),"constructor"!=x&&"_$superClass"!=x&&"function"==typeof t._$superClass.prototype[x]?t.$super[x]=superFunc(x,t._$superClass,t._$superClass.prototype[x]):t.$super[x]=t._$superClass.prototype[x]);"function"==typeof t.$super.$init&&(a[a.length]=t),t=t.$super}for(var i=a.length-1;i>-1;i--)a[i].$super.$init.apply(a[i].$super,arguments);"function"==typeof this.$init&&this.$init.apply(this,arguments)}if("undefined"!=typeof oDef.$static){var i=0,x;for(x in oDef)oDef.hasOwnProperty(x)&&("$static"==x||i++);for(x in oDef.$static)oDef.$static.hasOwnProperty(x)&&(typeClass[x]=oDef.$static[x]);if(!i)return oDef.$static;delete oDef.$static}return typeClass.prototype=oDef,typeClass.prototype.constructor=typeClass,typeClass.extend=jindo.$Class.extend,typeClass},jindo.$Class.extend=function(e){if("undefined"==typeof e||null===e||!e.extend)throw new Error("extend시 슈퍼 클래스는 Class여야 합니다.");this.prototype._$superClass=e;for(var t in e)if(e.hasOwnProperty(t)){if("prototype"==t)continue;this[t]=e[t]}return this},jindo.$$=jindo.cssquery=function(){function getElementsByClass(e,t,n){var o=new Array;null==t&&(t=document),null==n&&(n="*");var r=t.getElementsByTagName(n),s=r.length,a=new RegExp("(^|\\s)"+e+"(\\s|$)");for(i=0,j=0;i -1)';case"^=":return"("+n+" && "+n+".indexOf("+o+") == 0)";case"$=":return"("+n+" && "+n+".substr("+n+".length - "+e.val.length+") == "+o+")";case"*=":return"("+n+" && "+n+".indexOf("+o+") > -1)";case"!=":return"("+n+" != "+o+")";case"=":return"("+n+" == "+o+")"}return"("+n+")"},getNodeIndex=function(e){var t=getUID(e),n=oNodeIndexes[t]||0;if(0==n){for(var o=(e.parentNode||e._IE5_parentNode).firstChild;o;o=o.nextSibling)1==o.nodeType&&(n++,setNodeIndex(o,n));n=oNodeIndexes[t]}return n},oNodeIndexes={},setNodeIndex=function(e,t){var n=getUID(e);oNodeIndexes[n]=t},unsetNodeIndexes=function(){setTimeout(function(){oNodeIndexes={}},0)},oPseudoes_dontShrink={contains:function(e,t){return(e.innerText||e.textContent||"").indexOf(t)>-1},"last-child":function(e,t){for(e=e.nextSibling;e;e=e.nextSibling)if(1==e.nodeType)return!1;return!0},"first-child":function(e,t){for(e=e.previousSibling;e;e=e.previousSibling)if(1==e.nodeType)return!1;return!0},"only-child":function(e,t){for(var n=0,o=(e.parentNode||e._IE5_parentNode).firstChild;o;o=o.nextSibling)if(1==o.nodeType&&n++,n>1)return!1;return n?!0:!1},empty:function(e,t){return e.firstChild?!1:!0},"nth-child":function(e,t,n){var o=getNodeIndex(e);return o%t==n},"nth-last-child":function(e,t,n){for(var o=(e.parentNode||e._IE5_parentNode).lastChild;o&&1!=o.nodeType;o=o.previousSibling);var i=getNodeIndex(o),r=getNodeIndex(e),s=i-r+1;return s%t==n},checked:function(e){return!!e.checked},selected:function(e){return!!e.selected},enabled:function(e){return!e.disabled},disabled:function(e){return!!e.disabled}},getExpression=function(e){var t,n,o={defines:"",returns:"true"},e=restoreKeys(e,!0),i=[],r=[],s=[],e=e.replace(/:([\w-]+)(\(([^)]*)\))?/g,function(e,t,n,i){switch(t){case"not":var r=getExpression(i),a=r.defines,u=r.returnsID+r.returnsTAG+r.returns;s.push("!(function() { "+a+" return "+u+" })()");break;case"nth-child":case"nth-last-child":i=restoreString(i),"even"==i?i="2n":"odd"==i&&(i="2n+1");var l,d,c=i.match(/([0-9]*)n([+-][0-9]+)*/);c?(l=c[1]||1,d=c[2]||0):(l=1/0,d=parseInt(i,10)),s.push("oPseudoes_dontShrink["+wrapQuot(t)+"](oEl, "+l+", "+d+")");break;case"first-of-type":case"last-of-type":t="first-of-type"==t?"nth-of-type":"nth-last-of-type",i=1;case"nth-of-type":case"nth-last-of-type":i=restoreString(i),"even"==i?i="2n":"odd"==i&&(i="2n+1");var l,d;/([0-9]*)n([+-][0-9]+)*/.test(i)?(l=parseInt(RegExp.$1,10)||1,d=parseInt(RegExp.$2,20)||0):(l=1/0,d=parseInt(i,10)),o.nth=[l,d,t];break;default:i=i?restoreString(i):"",s.push("oPseudoes_dontShrink["+wrapQuot(t)+"](oEl, "+wrapQuot(i)+")")}return""}),e=e.replace(/\[(@?[\w-]+)(([!^~$*]?=)([^\]]*))?\]/g,function(e,t,n,o,r){return t=restoreString(t),r=restoreString(r),("checked"==t||"disabled"==t||"enabled"==t||"readonly"==t||"selected"==t)&&(r||(o="=",r="true")),i.push({key:t,op:o,val:r}),""}),a=null,e=e.replace(/\.([\w-]+)/g,function(e,t){return i.push({key:"class",op:"~=",val:t}),a||(a=t),""}),e=e.replace(/#([\w-]+)/g,function(e,n){return bXMLDocument?i.push({key:"id",op:"=",val:n}):t=n,""});n="*"==e?"":e;for(var u,l={},d=0;u=i[d];d++){var c=u.key;l[c]||r.push(getDefineCode(c)),s.unshift(getReturnCode(u)),l[c]=!0}return r.length&&(o.defines="var "+r.join(",")+";"),s.length&&(o.returns=s.join("&&")),o.quotID=t?wrapQuot(t):"",o.quotTAG=n?wrapQuot(bXMLDocument?n:n.toUpperCase()):"",bSupportByClassName&&(o.quotCLASS=a?wrapQuot(a):""),o.returnsID=t?"oEl.id == "+o.quotID+" && ":"",o.returnsTAG=n&&"*"!=n?"oEl.tagName == "+o.quotTAG+" && ":"",o},splitToParts=function(e){var t=[],n=" ",o=e.replace(/(.*?)\s*(!?[+>~ ]|!)\s*/g,function(e,o,i){return o&&t.push({rel:n,body:o}),n=i.replace(/\s+$/g,"")||" ",""});return o&&t.push({rel:n,body:o}),t},isNth_dontShrink=function(e,t,n,o,i){for(var r=0,s=e;s;s=s[i])1!=s.nodeType||t&&t!=s.tagName||r++;return r%n==o},compileParts=function(aParts){for(var aPartExprs=[],i=0,oPart;oPart=aParts[i];i++)aPartExprs.push(getExpression(oPart.body));for(var sFunc="",sPushCode="aRet.push(oEl); if (oOptions.single) { bStop = true; }",i=aParts.length-1,oPart;oPart=aParts[i];i--){var oExpr=aPartExprs[i],sPush=(debugOption.callback?"cost++;":"")+oExpr.defines,sReturn="if (bStop) {"+(0==i?"return aRet;":"return;")+"}";sPush+="true"==oExpr.returns?(sFunc?sFunc+"(oEl);":sPushCode)+sReturn:"if ("+oExpr.returns+") {"+(sFunc?sFunc+"(oEl);":sPushCode)+sReturn+"}";var sCheckTag="oEl.nodeType != 1";oExpr.quotTAG&&(sCheckTag="oEl.tagName != "+oExpr.quotTAG);var sTmpFunc="(function(oBase"+(0==i?", oOptions) { var bStop = false; var aRet = [];":") {");switch(oExpr.nth&&(sPush="if (isNth_dontShrink(oEl, "+(oExpr.quotTAG?oExpr.quotTAG:"false")+","+oExpr.nth[0]+","+oExpr.nth[1]+',"'+("nth-of-type"==oExpr.nth[2]?"previousSibling":"nextSibling")+'")) {'+sPush+"}"),oPart.rel){case" ":sTmpFunc+=oExpr.quotID?"var oEl = oDocument_dontShrink.getElementById("+oExpr.quotID+");var oCandi = oEl;for (; oCandi; oCandi = (oCandi.parentNode || oCandi._IE5_parentNode)) {if (oCandi == oBase) break;}if (!oCandi || "+sCheckTag+") return aRet;"+sPush:"var aCandi = getChilds_dontShrink(oBase, "+(oExpr.quotTAG||'"*"')+", "+(oExpr.quotCLASS||"null")+");for (var i = 0, oEl; oEl = aCandi[i]; i++) {"+(oExpr.quotCLASS?"if ("+sCheckTag+") continue;":"")+sPush+"}";break;case">":sTmpFunc+=oExpr.quotID?"var oEl = oDocument_dontShrink.getElementById("+oExpr.quotID+");if ((oEl.parentNode || oEl._IE5_parentNode) != oBase || "+sCheckTag+") return aRet;"+sPush:"for (var oEl = oBase.firstChild; oEl; oEl = oEl.nextSibling) {if ("+sCheckTag+") { continue; }"+sPush+"}";break;case"+":sTmpFunc+=oExpr.quotID?"var oEl = oDocument_dontShrink.getElementById("+oExpr.quotID+");var oPrev;for (oPrev = oEl.previousSibling; oPrev; oPrev = oPrev.previousSibling) { if (oPrev.nodeType == 1) break; }if (!oPrev || oPrev != oBase || "+sCheckTag+") return aRet;"+sPush:"for (var oEl = oBase.nextSibling; oEl; oEl = oEl.nextSibling) { if (oEl.nodeType == 1) break; }if (!oEl || "+sCheckTag+") { return aRet; }"+sPush;break;case"~":sTmpFunc+=oExpr.quotID?"var oEl = oDocument_dontShrink.getElementById("+oExpr.quotID+");var oCandi = oEl;for (; oCandi; oCandi = oCandi.previousSibling) { if (oCandi == oBase) break; }if (!oCandi || "+sCheckTag+") return aRet;"+sPush:"for (var oEl = oBase.nextSibling; oEl; oEl = oEl.nextSibling) {if ("+sCheckTag+") { continue; }if (!markElement_dontShrink(oEl, "+i+")) { break; }"+sPush+"}";break;case"!":sTmpFunc+=oExpr.quotID?"var oEl = oDocument_dontShrink.getElementById("+oExpr.quotID+");for (; oBase; oBase = (oBase.parentNode || oBase._IE5_parentNode)) { if (oBase == oEl) break; }if (!oBase || "+sCheckTag+") return aRet;"+sPush:"for (var oEl = (oBase.parentNode || oBase._IE5_parentNode); oEl; oEl = (oEl.parentNode || oEl._IE5_parentNode)) {if ("+sCheckTag+") { continue; }"+sPush+"}";break;case"!>":sTmpFunc+=oExpr.quotID?"var oEl = oDocument_dontShrink.getElementById("+oExpr.quotID+");var oRel = (oBase.parentNode || oBase._IE5_parentNode);if (!oRel || oEl != oRel || ("+sCheckTag+")) return aRet;"+sPush:"var oEl = (oBase.parentNode || oBase._IE5_parentNode);if (!oEl || "+sCheckTag+") { return aRet; }"+sPush;break;case"!+":sTmpFunc+=oExpr.quotID?"var oEl = oDocument_dontShrink.getElementById("+oExpr.quotID+");var oRel;for (oRel = oBase.previousSibling; oRel; oRel = oRel.previousSibling) { if (oRel.nodeType == 1) break; }if (!oRel || oEl != oRel || ("+sCheckTag+")) return aRet;"+sPush:"for (oEl = oBase.previousSibling; oEl; oEl = oEl.previousSibling) { if (oEl.nodeType == 1) break; }if (!oEl || "+sCheckTag+") { return aRet; }"+sPush;break;case"!~":sTmpFunc+=oExpr.quotID?"var oEl = oDocument_dontShrink.getElementById("+oExpr.quotID+");var oRel;for (oRel = oBase.previousSibling; oRel; oRel = oRel.previousSibling) { if (oRel.nodeType != 1) { continue; }if (oRel == oEl) { break; }}if (!oRel || ("+sCheckTag+")) return aRet;"+sPush:"for (oEl = oBase.previousSibling; oEl; oEl = oEl.previousSibling) {if ("+sCheckTag+") { continue; }if (!markElement_dontShrink(oEl, "+i+")) { break; }"+sPush+"}"}sTmpFunc+=(0==i?"return aRet;":"")+"})",sFunc=sTmpFunc}return eval("var fpCompiled = "+sFunc+";"),fpCompiled},parseQuery=function(e){var t=e,n=arguments.callee,o=n._cache[t];if(!o){e=backupKeys(e);var i=splitToParts(e);o=n._cache[t]=compileParts(i),o.depth=i.length}return o};parseQuery._cache={};var parseTestQuery=function(sQuery){for(var fpSelf=arguments.callee,aSplitQuery=backupKeys(sQuery).split(/\s*,\s*/),aResult=[],nLen=aSplitQuery.length,aFunc=[],i=0;nLen>i;i++)aFunc.push(function(sQuery){var sCacheKey=sQuery,fpFunction=fpSelf._cache[sCacheKey];if(!fpFunction){sQuery=backupKeys(sQuery);var oExpr=getExpression(sQuery);eval("fpFunction = function(oEl) { "+oExpr.defines+"return ("+oExpr.returnsID+oExpr.returnsTAG+oExpr.returns+"); };")}return fpFunction}(restoreKeys(aSplitQuery[i])));return aFunc};parseTestQuery._cache={};var distinct=function(e){for(var t,n=[],o={},i=0;t=e[i];i++){var r=getUID(t);o[r]||(n.push(t),o[r]=!0)}return n},markElement_dontShrink=function(e,t){var n=getUID(e);return cssquery._marked[t][n]?!1:(cssquery._marked[t][n]=!0,!0)},oResultCache=null,bUseResultCache=!1,bExtremeMode=!1,old_cssquery=function(e,t,n){if("object"==typeof e){var o={};for(var i in e)e.hasOwnProperty(i)&&(o[i]=arguments.callee(e[i],t,n));return o}cost=0;for(var r,s=(new Date).getTime(),a=0,u=debugOption.repeat;u>a;a++)r=function(e,t,n){if(n?n.oneTimeOffCache||(n.oneTimeOffCache=!1):n={oneTimeOffCache:!1},cssquery.safeHTML(n.oneTimeOffCache),t||(t=document),oDocument_dontShrink=t.ownerDocument||t.document||t,/\bMSIE\s([0-9]+(\.[0-9]+)*);/.test(navigator.userAgent)&&parseFloat(RegExp.$1)<6){try{oDocument_dontShrink.location}catch(o){oDocument_dontShrink=document}oDocument_dontShrink.firstChild=oDocument_dontShrink.getElementsByTagName("html")[0],oDocument_dontShrink.firstChild._IE5_parentNode=oDocument_dontShrink}bXMLDocument="undefined"!=typeof XMLDocument?oDocument_dontShrink.constructor===XMLDocument:!oDocument_dontShrink.location,getUID=bXMLDocument?getUID4XML:getUID4HTML,clearKeys();for(var i=backupKeys(e).split(/\s*,\s*/),r=[],s=i.length,a=0;s>a;a++)i[a]=restoreKeys(i[a]);for(var a=0;s>a;a++){var u=i[a],l=null,d=u+(n.single?"_single":""),c=bUseResultCache?oResultCache[d]:null;if(c)for(var p,f=0;p=c[f];f++)if(p.parent==t){l=p.result;break}if(!l){var h=parseQuery(u);cssquery._marked=[];for(var f=0,y=h.depth;y>f;f++)cssquery._marked.push({});l=distinct(h(t,n)),bUseResultCache&&!n.oneTimeOffCache&&(oResultCache[d]instanceof Array||(oResultCache[d]=[]),oResultCache[d].push({parent:t,result:l}))}r=r.concat(l)}return unsetNodeIndexes(),r}(e,t,n);return s=(new Date).getTime()-s,debugOption.callback&&debugOption.callback(e,cost,s),r},cssquery;if(document.querySelectorAll){var protoSlice=Array.prototype.slice,_toArray=function(e){return protoSlice.apply(e)};try{protoSlice.apply(document.documentElement.childNodes)}catch(e){_toArray=function(e){for(var t=[],n=e.length,o=0;n>o;o++)t.push(e[o]);return t}}cssquery=function(e,t,n){t=t||document;try{if(_isNonStandardQueryButNotException(e))throw Error("None Standard Query");var o=e,i=t;if(9!=t.nodeType){if(!bExtremeMode)throw Error("Parent Element has not ID.or It is not document.or None Extreme Mode.");t.id||(t.id="p"+(new Date).getTime()+parseInt(1e8*Math.random(),10)),o=_commaRevise("#"+t.id+" "+e,", #"+t.id),i=t.ownerDocument||t.document||document}return n&&n.single?[i.querySelector(o)]:_toArray(i.querySelectorAll(o))}catch(r){return old_cssquery(e,t,n)}}}else cssquery=old_cssquery;return cssquery.test=function(e,t){clearKeys();for(var n=parseTestQuery(t),o=0,i=n.length;i>o;o++)if(n[o](e))return!0;return!1},cssquery.useCache=function(e){return"undefined"!=typeof e&&(bUseResultCache=e,cssquery.clearCache()),bUseResultCache},cssquery.clearCache=function(){oResultCache={}},cssquery.getSingle=function(e,t,n){return cssquery(e,t,{single:!0,oneTimeOffCache:n?!!n.oneTimeOffCache:!1})[0]||null},cssquery.xpath=function(e,t){var e=e.replace(/\/(\w+)(\[([0-9]+)\])?/g,function(e,t,n,o){return o=o||"1",">"+t+":nth-of-type("+o+")"});return old_cssquery(e,t)},cssquery.debug=function(e,t){debugOption.callback=e,debugOption.repeat=t||1},cssquery.safeHTML=function(e){var t=/MSIE/.test(window.navigator.userAgent);return arguments.length>0&&(safeHTML=e&&t),safeHTML||!t},cssquery.version=sVersion,cssquery.release=function(){/MSIE/.test(window.navigator.userAgent)&&(delete validUID,validUID={},bUseResultCache&&cssquery.clearCache())},cssquery._getCacheInfo=function(){return{uidCache:validUID,eleCache:oResultCache}},cssquery._resetUID=function(){UID=0},cssquery.extreme=function(e){0==arguments.length&&(e=!0),bExtremeMode=e},cssquery}(),jindo.$Agent=function(){var e=arguments.callee,t=e._cached;return t?t:this instanceof e?(t||(e._cached=this),this._navigator=navigator,void(this._dm=document.documentMode)):new e},jindo.$Agent.prototype.navigator=function(){function e(e,t){return(t||"").indexOf(e)>-1}var t={},n=-1,o=-1,i=this._navigator.userAgent,r=this._navigator.vendor||"",s=this._dm;t.getName=function(){var e="";for(x in t)"boolean"==typeof t[x]&&t[x]&&t.hasOwnProperty(x)&&(e=x);return e},t.edge=e("Edge",i),t.webkit=!t.edge&&e("WebKit",i),t.opera=void 0!==window.opera||e("Opera",i)||e("OPR",i),t.ie=!t.opera&&(e("MSIE",i)||e("Trident",i)),t.chrome=!t.edge&&t.webkit&&!t.opera&&e("Chrome",i)||e("CriOS",i),t.safari=!t.edge&&t.webkit&&!t.chrome&&!t.opera&&e("Apple",r),t.firefox=e("Firefox",i),t.mozilla=!t.edge&&e("Gecko",i)&&!t.safari&&!t.chrome&&!t.firefox&&!t.ie,t.camino=e("Camino",r),t.netscape=e("Netscape",i),t.omniweb=e("OmniWeb",i),t.icab=e("iCab",r),t.konqueror=e("KDE",r),t.mobile=!t.edge&&(e("Mobile",i)||e("Android",i)||e("Nokia",i)||e("webOS",i)||e("Opera Mini",i)||e("Opera Mobile",i)||e("BlackBerry",i)||e("Windows",i)&&e("PPC",i)||e("Smartphone",i)||e("IEMobile",i))&&!(e("iPad",i)||e("Tablet",i)),t.msafari=!t.edge&&(!e("IEMobile",i)&&e("Mobile",i)||e("iPad",i)&&e("Safari",i))&&!t.chrome&&!t.opera&&!t.firefox,t.mopera=e("Opera Mini",i),t.mie=e("PPC",i)||e("Smartphone",i)||e("IEMobile",i);try{if(t.ie)if(s>0)if(n=s,i.match(/(?:Trident)\/([0-9.]+)/)){var a=parseFloat(RegExp.$1,10);a>3&&(o=a+4)}else o=n;else o=n=i.match(/(?:MSIE) ([0-9.]+)/)[1];else t.edge?n=i.match(/(?:Edge)\/([\d.]+)/)[1]:t.safari||t.msafari?(n=parseFloat(i.match(/Safari\/([0-9.]+)/)[1]),n=100==n?1.1:i.match(/Version\/([0-9.]+)/)?RegExp.$1:[1,1.2,-1,1.3,2,3][Math.floor(n/100)]):t.mopera?n=i.match(/(?:Opera\sMini)\/([0-9.]+)/)[1]:t.firefox||t.opera||t.omniweb?n=i.match(/(?:Firefox|Opera|OmniWeb)\/([0-9.]+)/)[1]:t.mozilla?n=i.match(/rv:([0-9.]+)/)[1]:t.icab?n=i.match(/iCab[ \/]([0-9.]+)/)[1]:t.chrome&&(n=i.match(/Chrome[ \/]([0-9.]+)/)[1]);t.version=parseFloat(n),t.nativeVersion=parseFloat(o),isNaN(t.version)&&(t.version=-1)}catch(u){t.version=-1}return this.navigator=function(){return t},t},jindo.$Agent.prototype.os=function(){var e=new Object,t=this._navigator.userAgent,n=this._navigator.platform,o=function(e,t){return t.indexOf(e)>-1};return e.getName=function(){var t="";for(x in e)"boolean"==typeof e[x]&&e[x]&&e.hasOwnProperty(x)&&(t=x);return t},e.win=o("Win",n),e.mac=o("Mac",n),e.linux=o("Linux",n),e.win2000=e.win&&(o("NT 5.0",t)||o("2000",t)),e.winxp=e.win&&o("NT 5.1",t),e.xpsp2=e.winxp&&o("SV1",t),e.vista=e.win&&o("NT 6.0",t),e.win7=e.win&&o("NT 6.1",t),e.ipad=o("iPad",t),e.iphone=o("iPhone",t)&&!e.ipad,e.android=o("Android",t),e.nokia=o("Nokia",t),e.webos=o("webOS",t),e.blackberry=o("BlackBerry",t),e.mwin=o("PPC",t)||o("Smartphone",t)||o("IEMobile",t),this.os=function(){return e},e},jindo.$Agent.prototype.flash=function(){var e=new Object,t=this._navigator.plugins,n=this._navigator.mimeTypes,o=null;if(e.installed=!1,e.version=-1,"undefined"!=typeof t&&t.length)o=t["Shockwave Flash"],o&&(e.installed=!0,o.description&&(e.version=parseFloat(o.description.match(/[0-9.]+/)[0]))),t["Shockwave Flash 2.0"]&&(e.installed=!0,e.version=2);else if("undefined"!=typeof n&&n.length)o=n["application/x-shockwave-flash"],e.installed=o&&o.enabledPlugin;else for(var i=10;i>1;i--)try{o=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i),e.installed=!0,e.version=i;break}catch(r){}return this.flash=function(){return e},this.info=this.flash,e},jindo.$Agent.prototype.silverlight=function(){var e=new Object,t=this._navigator.plugins,n=null;if(e.installed=!1,e.version=-1,"undefined"!=typeof t&&t.length)n=t["Silverlight Plug-In"],n&&(e.installed=!0,e.version=parseInt(n.description.split(".")[0],10),"1.0.30226.2"==n.description&&(e.version=2));else try{n=new ActiveXObject("AgControl.AgControl"),e.installed=!0,n.isVersionSupported("3.0")?e.version=3:n.isVersionSupported("2.0")?e.version=2:n.isVersionSupported("1.0")&&(e.version=1)}catch(o){}return this.silverlight=function(){return e},e},jindo.$A=function(e){var t=arguments.callee;if(("undefined"==typeof e||null==e)&&(e=[]),e instanceof t)return e;if(!(this instanceof t))return new t(e);if(this._array=[],e.constructor!=String){this._array=[];for(var n=0;no;o++)this._array[o]=t;return this}return this._array.length},jindo.$A.prototype.has=function(e){return this.indexOf(e)>-1},jindo.$A.prototype.indexOf=function(e){return"undefined"!=typeof this._array.indexOf?jindo.$A.prototype.indexOf=function(e){return this._array.indexOf(e)}:jindo.$A.prototype.indexOf=function(e){for(var t=0;tMath.random()?1:-1}),this},jindo.$A.prototype.reverse=function(){return this._array.reverse(),this},jindo.$A.prototype.empty=function(){return this.length(0)},jindo.$A.Break=function(){if(!(this instanceof arguments.callee))throw new arguments.callee},jindo.$A.Continue=function(){if(!(this instanceof arguments.callee))throw new arguments.callee},jindo.$A.prototype.map=function(e,t){return"function"==typeof this._array.map?jindo.$A.prototype.map=function(e,t){function n(n,o,r){try{return e.call(t,n,o,r)}catch(s){if(s instanceof i)return n;throw s}}var o=(this._array,this.constructor.Break),i=this.constructor.Continue;try{this._array=this._array.map(n)}catch(r){if(!(r instanceof o))throw r}return this}:jindo.$A.prototype.map=function(e,t){function n(n,o,i){try{return e.call(t,n,o,i)}catch(r){if(r instanceof s)return n;throw r}}for(var o=this._array,i=[],r=this.constructor.Break,s=this.constructor.Continue,a=0;ae;e++){for(t=0;t=o.length&&(o[t]=n[e])}return this._array=o,this},jindo.$Ajax=function(e,t){function n(){var e=window.XMLHttpRequest&&new XMLHttpRequest;if(this._checkCORSUrl(this._url)){if(e&&"withCredentials"in e)return e;if(window.XDomainRequest)return this._bXDomainRequest=!0,new XDomainRequest}else{if(e)return e;if(window.ActiveXObject)try{return new ActiveXObject("MSXML2.XMLHTTP")}catch(t){return new ActiveXObject("Microsoft.XMLHTTP")}}return null}var o=arguments.callee;if(!(this instanceof o))return new o(e,t);this._status=0,this._url=e,this._options=new Object,this._headers=new Object,this._options={type:"xhr",method:"post",proxy:"",timeout:0,onload:function(e){},onerror:null,ontimeout:function(e){},jsonp_charset:"utf-8",callbackid:"",callbackname:"",sendheader:!0,async:!0,decode:!0,postBody:!1,withCredentials:!1},this.option(t),jindo.$Ajax.CONFIG&&this.option(jindo.$Ajax.CONFIG);var i=this._options;switch(i.type=i.type.toLowerCase(),i.method=i.method.toLowerCase(),"undefined"==typeof window.__jindo2_callback&&(window.__jindo2_callback=new Array),i.type){case"put":case"delete":case"get":case"post":i.method=i.type,i.type="xhr";case"xhr":this._request=n.call(this),this._checkCORS(this._url,i.type);break;case"flash":if(!jindo.$Ajax.SWFRequest)throw Error("Require jindo.$Ajax.SWFRequest");this._request=new jindo.$Ajax.SWFRequest(jindo.$Fn(this.option,this).bind());break;case"jsonp":if(!jindo.$Ajax.JSONPRequest)throw Error("Require jindo.$Ajax.JSONPRequest");i.method="get",this._request=new jindo.$Ajax.JSONPRequest(jindo.$Fn(this.option,this).bind());break;case"iframe":if(!jindo.$Ajax.FrameRequest)throw Error("Require jindo.$Ajax.FrameRequest");this._request=new jindo.$Ajax.FrameRequest(jindo.$Fn(this.option,this).bind())}},jindo.$Ajax.prototype._checkCORSUrl=function(e){return/^http/.test(e)&&!new RegExp("^http://"+window.location.host,"i").test(e)},jindo.$Ajax.prototype._checkCORS=function(e,t){if(this._bCORS=!1,this._checkCORSUrl(e)&&"xhr"===t){if(!(this._bXDomainRequest||"withCredentials"in this._request))throw Error("This browser does not support CORS.");this._bCORS=!0}},jindo.$Ajax.prototype._onload=function(e){return e?function(){var e,t=this._request.status,n=4==this._request.readyState&&(200==t||0==t)||this._bXDomainRequest&&!!this._request.responseText;if(4==this._request.readyState||this._bXDomainRequest)try{200!=this._request.status&&"function"==typeof this._options.onerror?0==!this._request.status&&this._options.onerror(jindo.$Ajax.Response(this._request)):this._is_abort||(e=this._options.onload(jindo.$Ajax.Response(this._request)))}finally{if("function"==typeof this._oncompleted&&this._oncompleted(n,e),"xhr"==this._options.type){this.abort();try{delete this._request.onload}catch(o){this._request.onload=void 0}}this._request.onreadystatechange&&delete this._request.onreadystatechange}}:function(){var e,t=4==this._request.readyState&&200==this._request.status;if(4==this._request.readyState)try{200!=this._request.status&&"function"==typeof this._options.onerror?this._options.onerror(jindo.$Ajax.Response(this._request)):e=this._options.onload(jindo.$Ajax.Response(this._request))}finally{this._status--,"function"==typeof this._oncompleted&&this._oncompleted(t,e)}}}(/MSIE/.test(window.navigator.userAgent)),jindo.$Ajax.prototype.request=function(e){this._status++;var t,n,o=this,i=this._request,r=this._options,s=[],t="",a=null,u=this._url;this._is_abort=!1;var l=r.type.toUpperCase(),d=r.method.toUpperCase(); if(r.postBody&&"XHR"==l&&"GET"!=d)t="string"==typeof e?e:jindo.$Json(e).toString();else if("undefined"!=typeof e&&e){for(var c in e)e.hasOwnProperty(c)&&(n=e[c],"function"==typeof n&&(n=n()),n instanceof Array||n instanceof jindo.$A?jindo.$A(n).forEach(function(e,t,n){s[s.length]=c+"="+encodeURIComponent(e)}):s[s.length]=c+"="+encodeURIComponent(n));t=s.join("&")}else t=null;if(t&&"XHR"==l&&"GET"==d&&(u+=-1==u.indexOf("?")?"?":"&",u+=t,t=null),i.open(d,u,!!r.async),r.withCredentials&&(i.withCredentials=!0),this._bCORS&&r.sendheader===!1&&(i.setRequestHeader=null),"XHR"==l&&"GET"==d&&/MSIE|Trident/.test(window.navigator.userAgent)&&i.setRequestHeader&&i.setRequestHeader("If-Modified-Since","Thu, 1 Jan 1970 00:00:00 GMT"),("XHR"==l||"IFRAME"==l||"FLASH"==l&&r.sendheader)&&i.setRequestHeader){this._headers["Content-Type"]||i.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=utf-8"),i.setRequestHeader("charset","utf-8"),this._bCORS||this._headers["X-Requested-With"]||i.setRequestHeader("X-Requested-With","XMLHttpRequest");for(var p in this._headers)if(this._headers.hasOwnProperty(p)){if("function"==typeof this._headers[p])continue;i.setRequestHeader(p,String(this._headers[p]))}}var f=navigator.userAgent;if(!i.addEventListener||f.indexOf("Opera")>-1||f.indexOf("MSIE")>-1)if("undefined"!=typeof i.onload){if(i.onload=function(e){4!=i.readyState||o._is_abort||(clearTimeout(a),a=void 0,o._onload(e))},this._bXDomainRequest){var h=i.onload;i.onload=function(e){o._request.readyState=4,o._request.status=200,h(e)},i.onerror=function(e){o._request.readyState=4,o._request.status=404,h(e)}}}else if(6==window.navigator.userAgent.match(/(?:MSIE) ([0-9.]+)/)[1]&&r.async){var y=function(e){4!=i.readyState||o._is_abort||(a&&(clearTimeout(a),a=void 0),o._onload(e),clearInterval(o._interval),o._interval=void 0)};this._interval=setInterval(y,300)}else i.onreadystatechange=function(e){4==i.readyState&&(clearTimeout(a),a=void 0,o._onload(e))};else this._loadFunc&&i.removeEventListener("load",this._loadFunc,!1),this._loadFunc=function(e){clearTimeout(a),a=void 0,o._onload(e)},i.addEventListener("load",this._loadFunc,!1),i.addEventListener("error",this._loadFunc,!1);return r.timeout>0&&(this._timer&&clearTimeout(this._timer),a=setTimeout(function(){o._is_abort=!0,o._interval&&(clearInterval(o._interval),o._interval=void 0);try{i.abort()}catch(e){}r.ontimeout(i),"function"==typeof o._oncompleted&&o._oncompleted(!1)},1e3*r.timeout),this._timer=a),this._test_url=u,i.send(t),this},jindo.$Ajax.prototype.isIdle=function(){return 0==this._status},jindo.$Ajax.prototype.abort=function(){try{this._interval&&clearInterval(this._interval),this._timer&&clearTimeout(this._timer),this._interval=void 0,this._timer=void 0,this._is_abort=!0,this._request.abort()}finally{this._status--}return this},jindo.$Ajax.prototype.option=function(e,t){if("undefined"==typeof e)return"";if("string"==typeof e)return"undefined"==typeof t?this._options[e]:(this._options[e]=t,this);try{for(var n in e)e.hasOwnProperty(n)&&(this._options[n]=e[n])}catch(o){}return this},jindo.$Ajax.prototype.header=function(e,t){if("undefined"==typeof e)return"";if("string"==typeof e)return"undefined"==typeof t?this._headers[e]:(this._headers[e]=t,this);try{for(var n in e)e.hasOwnProperty(n)&&(this._headers[n]=e[n])}catch(o){}return this},jindo.$Ajax.Response=function(e){return this===jindo.$Ajax?new jindo.$Ajax.Response(e):void(this._response=e)},jindo.$Ajax.Response.prototype.xml=function(){return this._response.responseXML},jindo.$Ajax.Response.prototype.text=function(){return this._response.responseText},jindo.$Ajax.Response.prototype.status=function(){return this._response.status},jindo.$Ajax.Response.prototype.readyState=function(){return this._response.readyState},jindo.$Ajax.Response.prototype.json=function(){if(this._response.responseJSON)return this._response.responseJSON;if(this._response.responseText)try{return eval("("+this._response.responseText+")")}catch(e){return{}}return{}},jindo.$Ajax.Response.prototype.header=function(e){return"string"==typeof e?this._response.getResponseHeader(e):this._response.getAllResponseHeaders()},jindo.$Ajax.RequestBase=jindo.$Class({_respHeaderString:"",callbackid:"",callbackname:"",responseXML:null,responseJSON:null,responseText:"",status:404,readyState:0,$init:function(e){},onload:function(){},abort:function(){},open:function(){},send:function(){},setRequestHeader:function(e,t){this._headers[e]=t},getResponseHeader:function(e){return this._respHeaders[e]||""},getAllResponseHeaders:function(){return this._respHeaderString},_getCallbackInfo:function(){var e="";if(""!=this.option("callbackid")){var t=0;do e="_"+this.option("callbackid")+"_"+t,t++;while(window.__jindo2_callback[e])}else do e="_"+Math.floor(1e4*Math.random());while(window.__jindo2_callback[e]);return""==this.option("callbackname")&&this.option("callbackname","_callback"),{callbackname:this.option("callbackname"),id:e,name:"window.__jindo2_callback."+e}}}),jindo.$Ajax.JSONPRequest=jindo.$Class({_headers:{},_respHeaders:{},_script:null,_onerror:null,$init:function(e){this.option=e},_callback:function(e){this._onerror&&(clearTimeout(this._onerror),this._onerror=null);var t=this;this.responseJSON=e,this.onload(this),setTimeout(function(){t.abort()},10)},abort:function(){if(this._script)try{this._script.parentNode.removeChild(this._script)}catch(e){}},open:function(e,t){this.responseJSON=null,this._url=t},send:function(e){var t=this,n=this._getCallbackInfo(),o=document.getElementsByTagName("head")[0];this._script=jindo.$("","gi"),function(e,t,n){return aJS.push(n),""}),eval(aJS.join("\n")),this},jindo.$Element._append=function(e,t){return"string"==typeof t?t=jindo.$(t):t instanceof jindo.$Element&&(t=t.$value()),e._element.appendChild(t),e},jindo.$Element._prepend=function(e,t){"string"==typeof e?e=jindo.$(e):e instanceof jindo.$Element&&(e=e.$value());var n=e.childNodes;return n.length>0?e.insertBefore(t._element,n[0]):e.appendChild(t._element),t},jindo.$Element.prototype.append=function(e){return jindo.$Element._append(this,e)},jindo.$Element.prototype.prepend=function(e){return jindo.$Element._prepend(this._element,jindo.$Element(e))},jindo.$Element.prototype.replace=function(e){jindo.$$.release();var t=this._element,n=t.parentNode,o=jindo.$Element(e);if(n&&n.replaceChild)return n.replaceChild(o.$value(),t),o;var o=o.$value();return n.insertBefore(o,t),n.removeChild(t),o},jindo.$Element.prototype.appendTo=function(e){var t=jindo.$Element(e);return jindo.$Element._append(t,this._element),t},jindo.$Element.prototype.prependTo=function(e){return jindo.$Element._prepend(e,this),jindo.$Element(e)},jindo.$Element.prototype.before=function(e){var t=jindo.$Element(e),n=t.$value();return this._element.parentNode.insertBefore(n,this._element),t},jindo.$Element.prototype.after=function(e){var t=this.before(e);return t.before(this),t},jindo.$Element.prototype.parent=function(e,t){var n=this._element,o=[],i=null;if("undefined"==typeof e)return jindo.$Element(n.parentNode);for(("undefined"==typeof t||0==t)&&(t=-1);n.parentNode&&0!=t--&&(i=jindo.$Element(n.parentNode),n.parentNode!=document.documentElement);)(!e||e&&e(i))&&(o[o.length]=i),n=n.parentNode;return o},jindo.$Element.prototype.child=function(e,t){var n=this._element,o=[],i=null;return"undefined"==typeof e?jindo.$A(n.childNodes).filter(function(e){return 1==e.nodeType}).map(function(e){return jindo.$Element(e)}).$value():(("undefined"==typeof t||0==t)&&(t=-1),(i=function(t,n){for(var r=null,s=null,a=0;ai)return this.text(t);for(i=s;1.5*s>i;)r+=Math.max(Math.ceil((n-r)/2),1),i=this.text(t.substring(0,r)+e).height()-o;for(;i>1.5*s;)r--,i=this.text(t.substring(0,r)+e).height()-o},jindo.$Element.prototype.indexOf=function(e){try{for(var t=jindo.$Element(e).$value(),n=this._element.childNodes,o=0,i=n.length,r=0;i>r;r++)if(1==n[r].nodeType){if(n[r]===t)return o;o++}}catch(t){}return-1},jindo.$Element.prototype.queryAll=function(e){return jindo.$$(e,this._element)},jindo.$Element.prototype.query=function(e){return jindo.$$.getSingle(e,this._element)},jindo.$Element.prototype.test=function(e){return jindo.$$.test(this._element,e)},jindo.$Element.prototype.xpathAll=function(e){return jindo.$$.xpath(e,this._element)},jindo.$Element.insertAdjacentHTML=function(e,t,n,o,i){var r=e._element;if(r.insertAdjacentHTML&&!/^<(option|tr|td|th|col)(?:.*?)>/.test(t.replace(/^(\s| )+|(\s| )+$/g,"").toLowerCase()))r.insertAdjacentHTML(n,t);else{var s,a=r.ownerDocument||r.document||document,u=a.createDocumentFragment(),l=t.replace(/^(\s| )+|(\s| )+$/g,""),d={option:"select",tr:"tbody",thead:"table",tbody:"table",col:"table",td:"tr",th:"tr",div:"div"},c=/^\<(option|tr|thead|tbody|td|th|col)(?:.*?)\>/i.exec(l),p=null===c?"div":c[1].toLowerCase(),f=d[p];s=jindo._createEle(f,l,a,!0);for(var h=s.getElementsByTagName("script"),y=0,m=h.length;m>y;y++)h[y].parentNode.removeChild(h[y]);for(;s[o];)u.appendChild(s[o]);i(u.cloneNode(!0))}return e},jindo.$Element.prototype.appendHTML=function(e){return jindo.$Element.insertAdjacentHTML(this,e,"beforeEnd","firstChild",jindo.$Fn(function(e){this.append(e)},this).bind())},jindo.$Element.prototype.prependHTML=function(e){return jindo.$Element.insertAdjacentHTML(this,e,"afterBegin","lastChild",jindo.$Fn(function(e){this.prepend(e)},this).bind())},jindo.$Element.prototype.beforeHTML=function(e){return jindo.$Element.insertAdjacentHTML(this,e,"beforeBegin","firstChild",jindo.$Fn(function(e){this.before(e)},this).bind())},jindo.$Element.prototype.afterHTML=function(e){return jindo.$Element.insertAdjacentHTML(this,e,"afterEnd","lastChild",jindo.$Fn(function(e){this._element.parentNode.insertBefore(e,this._element.nextSibling)},this).bind())},jindo.$Element.prototype.delegate=function(e,t,n){if(!this._element["_delegate_"+e]){this._element["_delegate_"+e]={};var o=jindo.$Fn(function(e,t){t=t||window.event,"undefined"==typeof t.currentTarget&&(t.currentTarget=this._element);var n,o,i,r,s=t.target||t.srcElement,a=this._element["_delegate_"+e];for(var u in a)if(n=a[u],r=n.checker(s),r[0]){o=n.func,i=jindo.$Event(t),i.element=r[1];for(var l=0,d=o.length;d>l;l++)o[l](i)}},this).bind(e);jindo.$Element._eventBind(this._element,e,o);var i=this._element;i["_delegate_"+e+"_func"]=o,this._element._delegate_events?this._element._delegate_events.push(e):this._element._delegate_events=[e],i=null}return this._bind(e,t,n),this},jindo.$Element._eventBind=function(e,t,n){e.addEventListener?jindo.$Element._eventBind=function(e,t,n){e.addEventListener(t,n,!1)}:jindo.$Element._eventBind=function(e,t,n){e.attachEvent("on"+t,n)},jindo.$Element._eventBind(e,t,n)},jindo.$Element.prototype.undelegate=function(e,t,n){return this._unbind(e,t,n),this},jindo.$Element.prototype._bind=function(e,t,n){var o=this._element["_delegate_"+e];if(o){var i;"string"==typeof t?i=jindo.$Fn(function(e,t){var n=t,o=jindo.$$.test(t,e);if(!o)for(var i=this._getParent(t),r=0,s=i.length;s>r;r++)if(n=i[r],jindo.$$.test(n,e)){o=!0;break}return[o,n]},this).bind(t):"function"==typeof t&&(i=jindo.$Fn(function(e,t){var n=t,o=e(this._element,t);if(!o)for(var i=this._getParent(t),r=0,s=i.length;s>r;r++)if(n=i[r],e(this._element,n)){o=!0;break}return[o,n]},this).bind(t)),this._element["_delegate_"+e]=jindo.$Element._addBind(o,t,n,i)}else alert("check your delegate event.")},jindo.$Element.prototype._getParent=function(e){for(var t=this._element,n=[],o=null;e.parentNode&&o!=t&&(o=e.parentNode,o!=document.documentElement);)n[n.length]=o,e=o;return n},jindo.$Element._addBind=function(e,t,n,o){var i=e[t];if(i){var r=i.func;r.push(n),i.func=r}else i={checker:o,func:[n]};return e[t]=i,e},jindo.$Element.prototype._unbind=function(e,t,n){var o=this._element;if(e&&t&&n){var i=o["_delegate_"+e];if(i&&i[t]){var r=i[t].func;r=i[t].func=jindo.$A(r).refuse(n).$value(),r.length||jindo.$Element._deleteFilter(o,e,t)}}else if(e&&t)jindo.$Element._deleteFilter(o,e,t);else if(e)jindo.$Element._deleteEvent(o,e,t);else{for(var s,a=o._delegate_events,u=0,l=a.length;l>u;u++)s=a[u],jindo.$Element._unEventBind(o,s,o["_delegate_"+s+"_func"]),jindo.$Element._delDelegateInfo(o,"_delegate_"+s),jindo.$Element._delDelegateInfo(o,"_delegate_"+s+"_func");jindo.$Element._delDelegateInfo(o,"_delegate_events")}return this},jindo.$Element._delDelegateInfo=function(e,t){try{e[t]=null,delete e[t]}catch(n){}return e},jindo.$Element._deleteFilter=function(e,t,n){var o=e["_delegate_"+t];o&&o[n]&&(1==jindo.$H(o).keys().length?jindo.$Element._deleteEvent(e,t,n):jindo.$Element._delDelegateInfo(o,n))},jindo.$Element._deleteEvent=function(e,t,n){var o=e._delegate_events;jindo.$Element._unEventBind(e,t,e["_delegate_"+t+"_func"]),jindo.$Element._delDelegateInfo(e,"_delegate_"+t),jindo.$Element._delDelegateInfo(e,"_delegate_"+t+"_func"),o=jindo.$A(o).refuse(t).$value(),o.length?e._delegate_events=jindo.$A(o).refuse(t).$value():jindo.$Element._delDelegateInfo(e,"_delegate_events")},jindo.$Element._unEventBind=function(e,t,n){e.removeEventListener?jindo.$Element._unEventBind=function(e,t,n){e.removeEventListener(t,n,!1)}:jindo.$Element._unEventBind=function(e,t,n){e.detachEvent("on"+t,n)},jindo.$Element._unEventBind(e,t,n)},jindo.$Fn=function(func,thisObject){var cl=arguments.callee;return func instanceof cl?func:this instanceof cl?(this._events=[],this._tmpElm=null,this._key=null,void("function"==typeof func?(this._func=func,this._this=thisObject):"string"==typeof func&&"string"==typeof thisObject&&(this._func=eval("false||function("+func+"){"+thisObject+"}")))):new cl(func,thisObject)};var _ua=navigator.userAgent;if(jindo.$Fn.prototype.$value=function(){return this._func},jindo.$Fn.prototype.bind=function(){var e=jindo.$A(arguments).$value(),t=this._func,n=this._this,o=function(){var o=jindo.$A(arguments).$value();return e.length&&(o=e.concat(o)),t.apply(n,o)};return o},jindo.$Fn.prototype.bindForEvent=function(){var e=arguments,t=this._func,n=this._this,o=this._tmpElm||null,i=function(i){var r=Array.prototype.slice.apply(e);"undefined"==typeof i&&(i=window.event),"undefined"==typeof i.currentTarget&&(i.currentTarget=o);var s=jindo.$Event(i);r.unshift(s);var a=t.apply(n,r);return"undefined"!=typeof a&&"beforeunload"==s.type&&(i.returnValue=a),a};return i},jindo.$Fn._resizeEventBugInIE=function(e){var t=document.documentMode>=9&&document.documentMode<11;if(t){var n=/resize/;jindo.$Fn._resizeEventBugInIE=function(e){return n.test(e)}}else jindo.$Fn._resizeEventBugInIE=function(){return!1};return jindo.$Fn._resizeEventBugInIE(e)},jindo.$Fn.prototype.attach=function(e,t,n){var o=null,i=t,r=e,s=_ua;if("undefined"==typeof n&&(n=!1),this._bUseCapture=n,r instanceof Array||jindo.$A&&r instanceof jindo.$A&&(r=r.$value())){for(var a=0;a-1;if("undefined"==typeof r.addEventListener||jindo.$Fn._resizeEventBugInIE(t)){if("undefined"!=typeof r.attachEvent){if("domready"==i){if(window.top!=window)throw new Error("Domready Event doesn't work in the iframe.");return jindo.$Fn._domready(r,o),this}r.attachEvent("on"+i,o)}}else{if("domready"==i)i="DOMContentLoaded";else if("mousewheel"==i&&s.indexOf("WebKit")<0&&!/Opera/.test(s)&&!u)i="DOMMouseScroll";else if("mouseenter"!=i||u)if("mouseleave"!=i||u){if("transitionend"==i||"transitionstart"==i){var l,d=i.replace("transition","");d=d.substr(0,1).toUpperCase()+d.substr(1),"undefined"!=typeof document.body.style.WebkitTransition?l="webkit":"undefined"!=typeof document.body.style.OTransition?l="o":"undefined"!=typeof document.body.style.MsTransition&&(l="ms"),i=(l?l+"Transition":"transition")+d,this._for_test_attach=i,this._for_test_detach=""}else if("animationstart"==i||"animationend"==i||"animationiteration"==i){var l,d=i.replace("animation","");d=d.substr(0,1).toUpperCase()+d.substr(1),"undefined"!=typeof document.body.style.WebkitAnimationName?l="webkit":"undefined"!=typeof document.body.style.OAnimationName?l="o":"undefined"!=typeof document.body.style.MsTransitionName&&(l="ms"),i=(l?l+"Animation":"animation")+d,this._for_test_attach=i,this._for_test_detach=""}}else i="mouseout",o=jindo.$Fn._fireWhenElementBoundary(r,o);else i="mouseover",o=jindo.$Fn._fireWhenElementBoundary(r,o);r.addEventListener(i,o,n)}return this._key||(this._key="$"+jindo.$Fn.gc.count++,jindo.$Fn.gc.pool[this._key]=this),this._events[this._events.length]={element:r,event:t.toLowerCase(),func:o},this},jindo.$Fn.prototype.detach=function(e,t){var n=null,o=e,i=t,r=_ua;if(o instanceof Array||jindo.$A&&o instanceof jindo.$A&&(o=o.$value())){for(var s=0;s0;){var n=this._events[--t].element,o=this._events[t].event;this._events[t].func;if(!e||n===e){this.detach(n,o);var i=!e;i&&window===n&&"unload"==o&&_ua.indexOf("MSIE")<1&&this._func.call(this._this),delete this._events[t]}}if(0==this._events.length)try{delete jindo.$Fn.gc.pool[this._key]}catch(r){}},jindo.$Fn._domready=function(e,t){if("undefined"==typeof jindo.$Fn._domready.list){var n=null,o=jindo.$Fn._domready.list=jindo.$A([t]),i=!1,r=function(){if(!i){i=!0;for(var t={type:"domready",target:e,currentTarget:e};n=o.shift();)n(t)}};!function(){try{e.documentElement.doScroll("left")}catch(t){return void setTimeout(arguments.callee,50)}r()}(),e.onreadystatechange=function(){"complete"==e.readyState&&(e.onreadystatechange=null,r())}}else jindo.$Fn._domready.list.push(t)},jindo.$Fn._fireWhenElementBoundary=function(e,t){return function(e){var n=jindo.$Event(e),o=jindo.$Element(n.relatedElement);o&&(o.isEqual(this)||o.isChildOf(this))||t.call(this,e)}},jindo.$Fn.gc=function(){var e=jindo.$Fn.gc.pool;for(var t in e)if(e.hasOwnProperty(t))try{e[t].free()}catch(n){}jindo.$Fn.gc.pool=e={}},jindo.$Fn.freeElement=function(e){var t=jindo.$Fn.gc.pool;for(var n in t)if(t.hasOwnProperty(n))try{t[n].free(e)}catch(o){}},jindo.$Fn.gc.count=0,jindo.$Fn.gc.pool={},"undefined"==typeof window||isUnCacheAgent()||jindo.$Fn(jindo.$Fn.gc).attach(window,"unload"),jindo.$ElementList=function(e){var t=arguments.callee;return e instanceof t?e:this instanceof t?(e=e instanceof Array?jindo.$A(e):jindo.$A&&e instanceof jindo.$A?jindo.$A(e.$value()):"string"==typeof e&&jindo.cssquery?jindo.$A(jindo.cssquery(e)):jindo.$A(),void(this._elements=e.map(function(e,t,n){return jindo.$Element(e)}))):new t(e)},jindo.$ElementList.prototype.get=function(e){return this._elements.$value()[e]},jindo.$ElementList.prototype.getFirst=function(){return this.get(0)},jindo.$ElementList.prototype.length=function(e,t){return this._elements.length(e,t)},jindo.$ElementList.prototype.getLast=function(){return this.get(Math.max(this._elements.length()-1,0))},jindo.$ElementList.prototype.$value=function(){return this._elements.$value()},function(e){var t=["show","hide","toggle","addClass","removeClass","toggleClass","fireEvent","leave","empty","appear","disappear","className","width","height","text","html","css","attr"];jindo.$A(t).forEach(function(t){e[t]=function(){var e=jindo.$A(arguments).$value();return this._elements.forEach(function(n){n[t].apply(n,e)}),this}}),jindo.$A(["appear","disappear"]).forEach(function(t){e[t]=function(e,n){var o=this._elements.length,i=this;return this._elements.forEach(function(r,s){s==o-1?r[t](e,function(){n(i)}):r[t](e)}),this}})}(jindo.$ElementList.prototype),jindo.$S=function(e){var t=arguments.callee;return"undefined"==typeof e&&(e=""),e instanceof t?e:this instanceof t?void(this._str=e+""):new t(e)},jindo.$S.prototype.$value=function(){return this._str},jindo.$S.prototype.toString=jindo.$S.prototype.$value,jindo.$S.prototype.trim=function(){return"".trim?jindo.$S.prototype.trim=function(){return jindo.$S(this._str.trim())}:jindo.$S.prototype.trim=function(){return jindo.$S(this._str.replace(/^(\s| )+/g,"").replace(/(\s| )+$/g,""))},jindo.$S(this.trim())},jindo.$S.prototype.escapeHTML=function(){var e={'"':"quot","&":"amp","<":"lt",">":"gt","'":"#39"},t=this._str.replace(/[<>&"']/g,function(t){return e[t]?"&"+e[t]+";":t});return jindo.$S(t)},jindo.$S.prototype.stripTags=function(){return jindo.$S(this._str.replace(/<\/?(?:h[1-5]|[a-z]+(?:\:[a-z]+)?)[^>]*>/gi,""))},jindo.$S.prototype.times=function(e){for(var t=[],n=0;e>n;n++)t[t.length]=this._str;return jindo.$S(t.join(""))},jindo.$S.prototype.unescapeHTML=function(){var e={quot:'"',amp:"&",lt:"<",gt:">","#39":"'"},t=this._str.replace(/&([a-z]+|#[0-9]+);/g,function(t,n){return e[n]?e[n]:t});return jindo.$S(t)},jindo.$S.prototype.escape=function(){var e=this._str.replace(/([\u0080-\uFFFF]+)|[\n\r\t"'\\]/g,function(e,t,n){return t?escape(t).replace(/%/g,"\\"):(n={"\n":"\\n","\r":"\\r"," ":"\\t"})[e]?n[e]:"\\"+e});return jindo.$S(e)},jindo.$S.prototype.bytes=function(e){var t,n,o=0,i=0,r=0,s=this._str.length,a=(document.charset||document.characterSet||document.defaultCharset)+"";if("undefined"==typeof e?t=!1:e.constructor==Number?(t=!0,n=e):e.constructor==Object?(a=e.charset||a,n=e.size||!1,t=!!n):t=!1,"utf-8"==a.toLowerCase()){for(r=0;s>r;r++)if(o=this._str.charCodeAt(r),i+=128>o?1:2048>o?2:65536>o?3:4,t&&i>n){this._str=this._str.substr(0,r);break}}else for(r=0;s>r;r++)if(i+=this._str.charCodeAt(r)>128?2:1,t&&i>n){this._str=this._str.substr(0,r);break}return t?this:i},jindo.$S.prototype.parseString=function(){if(""==this._str)return{};for(var e,t,n,o=this._str.split(/&/g),i={},r=!1,s=0;s0){if("number"!=typeof a)return"";u="c"==s?String.fromCharCode(a):a.toString({b:2,d:10,o:8,x:16,X:16}[s])," X".indexOf(s)>0&&(u=u.toUpperCase())}return u.length-1,t=this._doc[e?"body":this._docKey];return{width:Math.max(t.scrollWidth,t.clientWidth),height:Math.max(t.scrollHeight,t.clientHeight)}},jindo.$Document.prototype.scrollPosition=function(){var e=navigator.userAgent.indexOf("WebKit")>-1,t=this._doc[e?"body":this._docKey];return{left:t.scrollLeft||window.pageXOffset||window.scrollX||0,top:t.scrollTop||window.pageYOffset||window.scrollY||0}},jindo.$Document.prototype.clientSize=function(){var e=navigator.userAgent,t=this._doc[this._docKey],n=e.indexOf("WebKit")>-1&&-1==e.indexOf("Chrome");return n?{width:window.innerWidth,height:window.innerHeight}:{width:t.clientWidth,height:t.clientHeight}},jindo.$Document.prototype.renderingMode=function(){var e,t=navigator.userAgent,n="undefined"==typeof window.opera&&t.indexOf("MSIE")>-1,o=t.indexOf("WebKit")>-1&&t.indexOf("Chrome")<0&&navigator.vendor.indexOf("Apple")>-1;return e="compatMode"in this._doc?"CSS1Compat"==this._doc.compatMode?"Standards":n?"Quirks":"Almost":o?"Standards":"Quirks"},jindo.$Document.prototype.queryAll=function(e){return jindo.$$(e,this._doc)},jindo.$Document.prototype.query=function(e){return jindo.$$.getSingle(e,this._doc)},jindo.$Document.prototype.xpathAll=function(e){return jindo.$$.xpath(e,this._doc)},jindo.$Form=function(e){var t=arguments.callee;if(e instanceof t)return e;if(!(this instanceof t))return new t(e);if(e=jindo.$(e),!e.tagName||"FORM"!=e.tagName.toUpperCase())throw new Error("The element should be a FORM element");this._form=e},jindo.$Form.prototype.$value=function(){return this._form},jindo.$Form.prototype.serialize=function(){var e=this,t={},n=arguments.length,o=function(n){var o=e.value(n);"undefined"!=typeof o&&(t[n]=o)};if(0==n)jindo.$A(this.element()).forEach(function(e){e.name&&o(e.name)});else for(var i=0;n>i;i++)o(arguments[i]);return jindo.$H(t).toQueryString()},jindo.$Form.prototype.element=function(e){return arguments.length>0?this._form[e]:this._form.elements},jindo.$Form.prototype.enable=function(){var e=arguments[0];if("object"==typeof e){var t=this;return jindo.$H(e).forEach(function(e,n){t.enable(n,e)}),this}var n=this.element(e);if(!n)return this;if(n=1==n.nodeType?[n]:n,arguments.length<2){var o=!0;return jindo.$A(n).forEach(function(e){e.disabled&&(o=!1,jindo.$A.Break())}),o}var i=arguments[1];return jindo.$A(n).forEach(function(e){e.disabled=!i}),this},jindo.$Form.prototype.value=function(e){if("object"==typeof e){var t=this;return jindo.$H(e).forEach(function(e,n){t.value(n,e)}),this}var n=this.element(e);if(!n)throw new Error("엘리먼트는 존재하지 않습니다."); if(n=1==n.nodeType?[n]:n,arguments.length>1){var o=arguments[1];return jindo.$A(n).forEach(function(e){switch(e.type){case"radio":e.checked=e.value==o;break;case"checkbox":o.constructor==Array?e.checked=jindo.$A(o).has(e.value):e.checked=e.value==o;break;case"select-one":for(var t=-1,n=0,i=e.options.length;i>n;n++)e.options[n].value==o&&(t=n);e.selectedIndex=t;break;case"select-multiple":var t=-1;if(o.constructor==Array)for(var r=jindo.$A(o),n=0,i=e.options.length;i>n;n++)e.options[n].selected=r.has(e.options[n].value);else{for(var n=0,i=e.options.length;i>n;n++)e.options[n].value==o&&(t=n);e.selectedIndex=t}break;default:e.value=o}}),this}var i=[];return jindo.$A(n).forEach(function(e){switch(e.type){case"radio":case"checkbox":e.checked&&i.push(e.value);break;case"select-one":-1!=e.selectedIndex&&i.push(e.options[e.selectedIndex].value);break;case"select-multiple":if(-1!=e.selectedIndex)for(var t=0,n=e.options.length;n>t;t++)e.options[t].selected&&i.push(e.options[t].value);break;default:i.push(e.value)}}),i.length>1?i:i[0]},jindo.$Form.prototype.submit=function(e,t){var n=null;return"string"==typeof e&&(n=this._form.target,this._form.target=e),"function"==typeof e&&(t=e),"undefined"==typeof t||t(this._form)?(this._form.submit(),null!==n&&(this._form.target=n),this):this},jindo.$Form.prototype.reset=function(e){return"undefined"==typeof e||e(this._form)?(this._form.reset(),this):this},jindo.$Template=function(e){var t=null,n="",o=arguments.callee;return e instanceof o?e:this instanceof o?("undefined"==typeof e?e="":(t=document.getElementById(e)||e)&&t.tagName&&(n=t.tagName.toUpperCase())&&("TEXTAREA"==n||"SCRIPT"==n&&"text/template"==t.getAttribute("type"))&&(e=(t.value||t.innerHTML).replace(/^\s+|\s+$/g,"")),void(this._str=e+"")):new o(e)},jindo.$Template.splitter=/(?!\\)[\{\}]/g,jindo.$Template.pattern=/^(?:if (.+)|elseif (.+)|for (?:(.+)\:)?(.+) in (.+)|(else)|\/(if|for)|=(.+)|js (.+)|set (.+))$/,jindo.$Template.prototype.process=function(data){var key="",leftBrace="",rightBrace="",tpl=(" "+this._str+" ").replace(/\\{/g,leftBrace).replace(/\\}/g,rightBrace).replace(/(?!\\)\}\{/g,"}"+key+"{").split(jindo.$Template.splitter),i=tpl.length,map={'"':'\\"',"\\":"\\\\","\n":"\\n","\r":"\\r"," ":"\\t","\f":"\\f"},reg=[/(["'](?:(?:\\.)+|[^\\["']+)*["']|[a-zA-Z_][\w\.]*)/g,/[\n\r\t\f"\\]/g,/^\s+/,/\s+$/,/#/g],cb=[function(e){return'"'==e.substring(0,1)||"'"==e.substring(0,1)||"null"==e?e:"d."+e},function(e){return map[e]||e},"",""],stm=[],lev=0;if(tpl[0]=tpl[0].substr(1),tpl[i-1]=tpl[i-1].substr(0,tpl[i-1].length-1),2>i)return tpl[0];tpl=jindo.$A(tpl).reverse().$value();for(var delete_info;i--;)i%2?tpl[i]=tpl[i].replace(jindo.$Template.pattern,function(){var e=arguments;if(e[10])return e[10].replace(/(\w+)(?:\s*)=(?:\s*)(?:([a-zA-Z0-9_]+)|(.+))$/g,function(){var e=arguments,t="d."+e[1]+"=";return t+=e[2]?"d."+e[2]:e[3].replace(/(=(?:[a-zA-Z_][\w\.]*)+)/g,function(e){return"="==e.substring(0,1)?"d."+e.replace("=",""):e})})+";";if(e[9])return"s[i++]="+e[9].replace(/(=(?:[a-zA-Z_][\w\.]*)+)/g,function(e){return"="==e.substring(0,1)?"d."+e.replace("=",""):e})+";";if(e[8])return"s[i++]= d."+e[8]+";";if(e[1])return"if("+e[1].replace(reg[0],cb[0]).replace(/d\.(typeof) /,"$1 ").replace(/ d\.(instanceof) d\./," $1 ")+"){";if(e[2])return"}else if("+e[2].replace(reg[0],cb[0]).replace(/d\.(typeof) /,"$1 ").replace(/ d\.(instanceof) d\./," $1 ")+"){";if(e[5]){delete_info=e[4];var t=[];return t.push("var t#=d."+e[5]+"||{},p#=isArray(t#),i#=0;"),t.push("for(var x# in t#){"),t.push("if(!t#.hasOwnProperty(x#)){continue;}"),t.push(" if( (p# && isNaN(i#=parseInt(x#,10))) || (!p# && !t#.propertyIsEnumerable(x#)) ) continue;"),t.push(" d."+e[4]+"=t#[x#];"),t.push(e[3]?"d."+e[3]+"=p#?i#:x#;":""),t.join("").replace(reg[4],lev++)}return e[6]?"}else{":e[7]?"for"==e[7]?"delete d."+delete_info+"; };":"};":e[0]}):tpl[i]==key?tpl[i]="":tpl[i]&&(tpl[i]='s[i++]="'+tpl[i].replace(reg[1],cb[1])+'";');tpl=jindo.$A(tpl).reverse().$value().join("").replace(new RegExp(leftBrace,"g"),"{").replace(new RegExp(rightBrace,"g"),"}");var _aStr=[];return _aStr.push("var s=[],i=0;"),_aStr.push('function isArray(o){ return Object.prototype.toString.call(o) == "[object Array]" };'),_aStr.push(tpl),_aStr.push('return s.join("");'),tpl=eval("false||function(d){"+_aStr.join("")+"}"),tpl=tpl(data)},jindo.$Date=function(e){var t=arguments,n="",o=arguments.callee;if(e&&e instanceof o)return e;if(!(this instanceof o))return new o(t[0],t[1],t[2],t[3],t[4],t[5],t[6]);if("string"==(n=typeof e))if(/(\d\d\d\d)(?:-?(\d\d)(?:-?(\d\d)))/.test(e))try{this._date=new Date(e),this._date.toISOString?"Invalid Date"==this._date.toISOString()&&(this._date=jindo.$Date.makeISO(e)):this._date=jindo.$Date.makeISO(e)}catch(i){this._date=jindo.$Date.makeISO(e)}else this._date=o.parse(e);else if("number"==n)if("undefined"==typeof t[1])this._date=new Date(e);else{for(var r=0;7>r;r++)"number"!=typeof t[r]&&(t[r]=1);this._date=new Date(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}else"object"==n&&e.constructor==Date?((this._date=new Date).setTime(e.getTime()),this._date.setMilliseconds(e.getMilliseconds())):this._date=new Date;this._names={};for(var r in jindo.$Date.names)jindo.$Date.names.hasOwnProperty(r)&&(this._names[r]=jindo.$Date.names[r])},jindo.$Date.makeISO=function(e){var t=e.match(/(\d\d\d\d)(?:-?(\d\d)(?:-?(\d\d)(?:[T ](\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|(?:([-+])(\d\d)(?::?(\d\d))?)?)?)?)?)?/),n=parseInt(t[4]||0,10),o=parseInt(t[5]||0,10);return"Z"==t[8]?n+=jindo.$Date.utc:("+"==t[9]||"-"==t[9])&&(n+=jindo.$Date.utc-parseInt(t[9]+t[10],10),o+=parseInt(t[9]+t[11],10)),new Date(t[1]||0,parseInt(t[2]||0,10)-1,t[3]||0,n,o,t[6]||0,t[7]||0)},jindo.$Date.names={month:["January","Febrary","March","April","May","June","July","August","September","October","Novermber","December"],s_month:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],s_day:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ampm:["AM","PM"]},jindo.$Date.utc=9,jindo.$Date.now=function(){return Date.now()},jindo.$Date.prototype.name=function(e){if(!arguments.length)return this._names;for(var t in e)e.hasOwnProperty(t)&&(this._names[t]=e[t])},jindo.$Date.parse=function(e){return new Date(Date.parse(e))},jindo.$Date.prototype.$value=function(){return this._date},jindo.$Date.prototype.format=function(e){var t={},n=this._date,o=this.name(),i=this;return(e||"").replace(/[a-z]/gi,function(e){if("undefined"!=typeof t[e])return t[e];switch(e){case"d":case"j":return t.j=n.getDate(),t.d=(t.j>9?"":"0")+t.j,t[e];case"l":case"D":case"w":case"N":return t.w=n.getDay(),t.N=t.w?t.w:7,t.D=o.s_day[t.w],t.l=o.day[t.w],t[e];case"S":return(t.S=["st","nd","rd"][n.getDate()])?t.S:t.S="th";case"z":return t.z=Math.floor((n.getTime()-new Date(n.getFullYear(),0,1).getTime())/864e5),t.z;case"m":case"n":return t.n=n.getMonth()+1,t.m=(t.n>9?"":"0")+t.n,t[e];case"L":return t.L=i.isLeapYear(),t.L;case"o":case"Y":case"y":return t.o=t.Y=n.getFullYear(),t.y=(t.o+"").substr(2),t[e];case"a":case"A":case"g":case"G":case"h":case"H":return t.G=n.getHours(),t.g=(t.g=t.G%12)?t.g:12,t.A=t.G<12?o.ampm[0]:o.ampm[1],t.a=t.A.toLowerCase(),t.H=(t.G>9?"":"0")+t.G,t.h=(t.g>9?"":"0")+t.g,t[e];case"i":return t.i=((t.i=n.getMinutes())>9?"":"0")+t.i,t.i;case"s":return t.s=((t.s=n.getSeconds())>9?"":"0")+t.s,t.s;case"u":return t.u=n.getMilliseconds(),t.u;case"U":return t.U=i.time(),t.U;default:return e}})},jindo.$Date.prototype.time=function(e){return"number"==typeof e?(this._date.setTime(e),this):this._date.getTime()},jindo.$Date.prototype.year=function(e){return"number"==typeof e?(this._date.setFullYear(e),this):this._date.getFullYear()},jindo.$Date.prototype.month=function(e){return"number"==typeof e?(this._date.setMonth(e),this):this._date.getMonth()},jindo.$Date.prototype.date=function(e){return"number"==typeof e?(this._date.setDate(e),this):this._date.getDate()},jindo.$Date.prototype.day=function(){return this._date.getDay()},jindo.$Date.prototype.hours=function(e){return"number"==typeof e?(this._date.setHours(e),this):this._date.getHours()},jindo.$Date.prototype.minutes=function(e){return"number"==typeof e?(this._date.setMinutes(e),this):this._date.getMinutes()},jindo.$Date.prototype.seconds=function(e){return"number"==typeof e?(this._date.setSeconds(e),this):this._date.getSeconds()},jindo.$Date.prototype.isLeapYear=function(){var e=this._date.getFullYear();return!((e%4||!(e%100))&&e%400)},jindo.$Window=function(e){var t=arguments.callee;return e instanceof t?e:this instanceof t?void(this._win=e||window):new t(e)},jindo.$Window.prototype.$value=function(){return this._win},jindo.$Window.prototype.resizeTo=function(e,t){return this._win.resizeTo(e,t),this},jindo.$Window.prototype.resizeBy=function(e,t){return this._win.resizeBy(e,t),this},jindo.$Window.prototype.moveTo=function(e,t){return this._win.moveTo(e,t),this},jindo.$Window.prototype.moveBy=function(e,t){return this._win.moveBy(e,t),this},jindo.$Window.prototype.sizeToContent=function(e,t){if("function"==typeof this._win.sizeToContent)this._win.sizeToContent();else{if(2!=arguments.length){var n,o,i=this._win,r=this._win.document;i.innerHeight?(n=i.innerWidth,o=i.innerHeight):r.documentElement&&r.documentElement.clientHeight?(n=r.documentElement.clientWidth,o=r.documentElement.clientHeight):r.body&&(n=r.body.clientWidth,o=r.body.clientHeight);var s,a,u=r.body.scrollHeight,l=r.body.offsetHeight;u>l?(s=r.body.scrollWidth,a=r.body.scrollHeight):(s=r.body.offsetWidth,a=r.body.offsetHeight),e=s-n,t=a-o}this.resizeBy(e,t)}return this},"undefined"!=typeof window)for(prop in jindo)jindo.hasOwnProperty(prop)&&(window[prop]=jindo[prop]);