window.txEval=function(source,target){if(typeof source=="function"){return source.call(target||this)}else{if(typeof source=="string"){return(target)?target.eval(source):this.eval(source)}}};(function(){try{EditorJSLoader.readyState="loading"}catch(m){}var n=document,h=window,j=n.documentElement,q=false,b=true,c=null,p;var g={};(function(){Object.extend=function(u,w){for(var v in w){u[v]=w[v]}return u};h.Class={create:function(){return function(){this.initialize.apply(this,arguments)}}};h.$break={};Function.prototype.bind=function(){var u=this,w=$A(arguments),v=w.shift();return function(){return u.apply(v,w.concat($A(arguments)))}};Function.prototype.bindAsEventListener=function(){var u=this,w=$A(arguments),v=w.shift();return function(x){return u.apply(v,[x||h.event].concat(w))}};var t=function(w){var u=arguments;if(u.length>1){for(var v=0,y=[],x=u.length;v0){if(r=t.match(u)){e+=t.slice(0,r.index);e+=String.interpret(s(r));t=t.slice(r.index+r[0].length)}else{e+=t,t=""}}return e},strip:function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")},stripTags:function(){return this.replace(/<\/?[^>]+>/gi,"")},toQueryParams:function(t){var e=this.strip().match(/([^?#]*)(#.*)?$/);if(!e){return{}}var s={};var r=c;e[1].split(t||"&").each(function(x){var w=c,u=c;var v=x.match(/([\w_]+)=(.*)/);if(v){r=w=decodeURIComponent(v[1]);if(v[2]){u=decodeURIComponent(v[2])}}else{if(r){w=r;u=s[w];u+="&"+decodeURIComponent(x)}else{return}}if(w in s){if(s[w].constructor!=Array){s[w]=[s[w]] }s[w].push(u)}else{s[w]=u}});return s},toArray:function(){return this.split("")},times:function(s){var e="";for(var r=0;r-1},empty:function(){return this==""},blank:function(){return/^\s*$/.test(this)}});String.prototype.gsub.prepareReplacement=function(r){if(typeof r=="function"){return r}var e=new Template(r);return function(s){return e.evaluate(s)}};g.extend(String.prototype,{trim:function(){return this.replace(/(^\s*)|(\s*$)/g,"")},getRegExp:function(){return this.replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\//g,"\\/").replace(/\?/g,"\\?").replace(/\^/g,"\\^").replace(/\)/g,"\\)").replace(/\(/g,"\\(").replace(/\]/g,"\\]").replace(/\[/g,"\\[").replace(/\$/g,"\\$").replace(/\+/g,"\\+").replace(/\|/g,"\\|").replace(/&/g,"(&|&)") },toNumber:function(){return(isNaN(this)?0:parseInt(this,10))},toFloat:function(){return(isNaN(this)?0:parseFloat(this))},getRealLength:function(){var s=this;var e=0;for(var r=0;rs){return t.substring(0,r-3).concat("...")}}return t},getCut:function(e){return this.cutRealLength(e)},parsePx:function(){if(this==c||this.length==0){return 0}else{if(this.indexOf("px")>-1){return this.substring(0,this.indexOf("px")).toNumber()}else{return this.toNumber()}}},toPx:function(){if(this.indexOf("px")>-1){return this+""}else{return this+"px"}},isPx:function(){var e=this;if(e.trim()==""){return false}else{if(e.indexOf("px")!=-1){e=this.parsePx()}}return !isNaN(e)},isPercent:function(){var e=this.trim();return parseInt(e,10)+"%"===e},toByteUnit:function(){return this.toNumber().toByteUnit()},toCurrency:function(){var r=this; for(var e=0;e=0},pluck:function(r){var e=[];this.each(function(s){e.push(s[r])});return e},find:function(t){for(var r=0,e=this.length;r0){return v[0]}else{return c}};u.prototype.createNode=function(v,x,w){if(v==1){return this.createElementNS(w,x)}else{return c}}}if(typeof(Element)!=p+""){Element.prototype.selectNodes=function(v){if(this.ownerDocument.selectNodes){return this.ownerDocument.selectNodes(v,this)}else{throw"For XML Elements Only"}};Element.prototype.selectSingleNode=function(v){if(this.ownerDocument.selectSingleNode){return this.ownerDocument.selectSingleNode(v,this)}else{throw"For XML Elements Only"}};Element.prototype.text;var t=Element.prototype;var e=t.__proto__={__proto__:t.__proto__}; if(Element.prototype.__defineSetter__){e.__defineSetter__("text",function(v){this.textContent=v})}if(Element.prototype.__defineGetter__){e.__defineGetter__("text",function(){return this.textContent})}if(h.origElement){h.origElement.prototype.selectNodes=Element.prototype.selectNodes;h.origElement.prototype.selectSingleNode=Element.prototype.selectSingleNode}}}}})();h.$tx=g;h.tx={};function o(r,t){for(var s=0,e=r.length;s-1){s=s.replace(/#\{if:([_\w]+)([=>-1){s=s.replace(/#\{for:([_\w]+):?(\d*):?(\d*)\}([\s\S]*?)#\{\/for:\1\}/gm,function(B,u,C,w,z){if(!t[u]||!t[u].length){return B}var x=t[u];var v=[];C=!!C?(isNaN(C)?x.length:parseInt(C)):x.length; w=!!w?(isNaN(w)?0:parseInt(w)):0;for(var y=0,A=Math.min(x.length,C);y0){var B=[];for(var A=0;A0){var z=[];for(var y=0;y0){C=C.concat(z);if(!B){break}}}if(B){return C}else{return C[0]}};h.dGetty=function(){var x=arguments;if(x.length==1){if(typeof(x[0])==="string"){return t(n,x[0])}}else{if(x.length==2){if(x[0].nodeType&&typeof(x[1])==="string"){return t(x[0],x[1])}}}return c};h.dGetties=function(){var x=arguments;if(x.length==1){if(typeof(x[0])==="string"){return t(n,x[0],b) }}else{if(x.length==2){if(x[0].nodeType&&typeof(x[1])==="string"){return t(x[0],x[1],b)}}}return[]}})();(function(){var e,u,s;var v={"#":function(x,y){if((e=/(\S*)#(\S+)/.exec(y))!==c){var w=e[1];var z=e[2];if(w.length<1||x.nodeName.toLowerCase()==w){if(x.id==z){return b}}}return q},".":function(y,z){if((e=/(\S*)\.(\S+)/.exec(z))!==c){var x=e[1];var w=e[2];if(x.length<1||y.nodeName.toLowerCase()==x){if(y.className.indexOf(w)>-1){return b}}}return q},"*":function(x,y){var w=y;if(x.nodeName.toLowerCase()==w){return b}return q}};var r=function(w,y){var x;if((f=/(\.|#)/.exec(y))!==c){if(v[f[1]]){x=f[1]}}x=x||"*";return v[x](w,y)};var t=function(y,w){if(y.nodeType!==1){return q}var z=q;var A=w.split(",");for(var x=0;xx){if(g.msie){n.body.scroll="yes"}B=x;J+=y.height}if(J>e){if(g.msie){n.body.scroll="yes"}J=e;B+=y.width;if(B>x){B=x}}if(B+H>x){H=0}if(J+E>e){E=0}u.moveTo(H-A.left,E-A.top);u.resizeTo(B,J) }};var t;h.resizeHeight=function(e,x){if(!t){t=new r(0)}t.resize(x)}})();var l={__WORD_JOINER:"\ufeff",__WORD_JOINER_REGEXP:/\ufeff/g,__KEY:{ENTER:"13",DELETE:"46",SPACE:"32",BACKSPACE:"8",TAB:"9",PASTE:"86",CUT:"88"},I:{},X:{},define:function(e,r){return Object.extend(e,r)},available:function(r,e){if(!g("tx_"+e)){return q}if(!r){return q}if(r.use==q){return q}return b}};(function(r){function s(u){var t=u;while(t.$reference){t=t.$reference}return t}function e(x){var v=x.constructor.superclass;if(v){var z=v.prototype.initialize;v.prototype.initialize=function(){this.$reference=x};var y=new v();v.prototype.initialize=z;var u=function(A){if(!y[A]){return c}return function(){var E=arguments;var D=s(x);var B=D.$super;D.$super=y.$super;var C=y[A].apply(D,E);D.$super=B;return C}};var w={};for(var t in y){if(t.charAt(0)!="$"){if(typeof(y[t])=="function"){w[t]=u(t)}}}x.$super=w}}r.Class={create:function(u){var t=function(){var w=this.constructor.prototype;for(var v in w){if(w[v]&&typeof(w[v])==="object"){if(w[v].constructor==Array){this[v]=[].concat(w[v]) }else{this[v]=Object.extend({},w[v])}}}e(this);var x=arguments;this.initialize.apply(this,x)};return r.Class.draft(u,t)},draft:function(w,x){var u=x?x:function(){e(this)};if(w.$const){Object.extend(u,w.$const)}if(w.$extend){Object.extend(u.prototype,w.$extend.prototype);u.superclass=w.$extend}if(w.$mixins){var v=$A(w.$mixins);v.each(function(y){Object.extend(u.prototype,y)})}for(var t in w){if(t.charAt(0)!="$"){u.prototype[t]=w[t]}}return u},overwrite:function(u,t){if(u.prototype){Object.extend(u.prototype,t)}return u}};r.Mixin=r.Faculty={create:function(v){var u={};for(var t in v){if(v[t]&&typeof(v[t])==="object"){if(v[t].constructor==Array){u[t]=[].concat(v[t])}else{u[t]=Object.extend({},v[t])}}else{u[t]=v[t]}}return u},toClass:function(t,u){return r.Class.create(Object.extend({initialize:u?u:function(){}},t))}}})(l);(function(e){Object.extend(e,{installs:[],registers:[],modules:[],modulesX:[],install:function(s,r){r.desc="[install] "+s;e.installs.push(r)},register:function(s,r){r.desc="[register] "+s; e.registers.push(r)},module:function(s,r){r.desc="[module] "+s;e.modules.push(r)},moduleX:function(s,r){r.desc="[moduleX] "+s;e.modulesX.push(r)},invoke:function(z,v,y,r,s,t){for(var u=0,w=z.length;u0)},include:function(y){var x=e(y);for(var w in x){if(this.map[w]){return b}}return q},memberOf:function(y){var x=e(y);for(var w in this.map){if(x[w]){return b}}return q},extract:function(z){var y=e(z);var x=[];for(var w in this.map){if(y[w]){x.push(w)}}return k.translate(x.join(","))},getExpression:function(){if(!this.exprs){var x=[];for(var w in this.map){x.push(w)}this.exprs=x.join(",")}return this.exprs}});var t={};Object.extend(k,{translate:function(w){if(!t[w]){t[w]=new u(w)}return t[w]}})})();Object.extend(k,{__POSITION:{__START_OF_TEXT:-1,__MIDDLE_OF_TEXT:0,__END_OF_TEXT:1,__EMPTY_TEXT:-2}});Object.extend(k,{isElement:function(e){return e&&e.nodeType==1},isBody:function(e){return k.isElement(e)&&e.tagName=="BODY" },isBlock:function(e){return k.kindOf(e,"%block")},isParagraph:function(e){return k.kindOf(e,"%paragraph")},isText:function(e){return k.kindOf(e,"%text")},isControl:function(e){return k.kindOf(e,"%control")},isTagName:function(r,e){e=e.toUpperCase();return r&&r.tagName===e},getOwnerDocument:function(e){return e.ownerDocument||e.document},getName:function(e){return((e&&e.nodeType==1)?e.nodeName.toLowerCase():"")},getText:function(e){return e.textContent||e.text||e.innerText||""},getLength:function(e){if(!e){return 0}if(e.nodeType==1){return e.childNodes.length}else{if(e.nodeType==3){return e.nodeValue.length}}return 0},indexOf:function(s){if(!s){return -1}var u=s.parentNode;for(var r=0,e=u.childNodes.length,t=u.childNodes;r]*>/i)>-1){return b}if(s.search(/<\/span>/i)>-1){return b}return q},hasData:function(r,e){if(!r){return q}var s="";if(r.nodeType==1){s=r.innerHTML}else{s=r.nodeValue}s=k.removeMeaninglessSpace(s);if(s.trim()==""){return q}if(s.stripTags()!=""){return b}if(e){return q}if(s.search(//i)>-1){return b}return q},removeMeaninglessSpace:function(e){return e.replace(/(^[\f\n\r\t\v\u2028\u2029]*)|([\f\n\r\t\v\u2028\u2029]*$)/g,"")}});Object.extend(k,{search:function(t,w,e){var u=(t.length==1)?n:t[0];var v=t[t.length-1];var s=(!v||!u||!u.nodeType||typeof v!="string");if(s){return e}var r=k.translate(v);return w(u,r.getExpression())},find:function(){return this.search(arguments,dFindy,c)},collect:function(){return this.search(arguments,dGetty,c) },collectAll:function(){return this.search(arguments,dGetties,[])}});(function(){function s(u){if(u){if(typeof(u)==="function"){return u}else{var v=k.translate(u);return function(w){if(w.nodeType==1){if(v.include("#element")){return b}else{return dChecky(w,v.getExpression())}}else{return v.include("#text")}}}}else{return c}}var t={};function e(v){v=v||"#element,#text";if(t[v]){return t[v]}var u=new r(v);t[v]=u;return u}var r=l.Class.create({initialize:function(u){this.pattern=u;this.translator=k.translate(u);this.hasClassPattern=u.indexOf(".")>=0;this.hasIdPattern=u.indexOf("#")>=0;this.matchesText=this.translator.include("#text");this.matchesElement=this.translator.include("#element")},test:function(x){var u=x.nodeType;var z=this.translator.map;if(u==1){if(this.matchesElement){return b}var w=x.tagName.toLowerCase();if(z[w]){return b}var y=[];if(this.hasClassPattern&&x.className){x.className.split(/\s/).each(function(B){y.push("."+B);y.push(w+"."+B)})}if(this.hasIdPattern&&x.id){var A=x.id; y.push("#"+A);y.push(w+"#"+A)}for(var v=0;v=u){return}var t=r;while(t++=r.length){return r}var e=r.cloneNode(q);r.deleteData(s,r.length-s);e.deleteData(0,s);k.insertNext(e,r);return e},divideNode:function(t,u){if(!k.isElement(t)){return c}var r=t.childNodes.length-u;var e=t.cloneNode(q);for(var s=0;s-1){u=u/100}return u},extractUnit:function(w){var u="em";var v;if((v=w.match(t.__REG_EXT_UNIT))!=c){u=v[0]}return u}});var s=new t();var e={colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",datetime:"dateTime",accesskey:"accessKey",tabindex:"tabIndex",enctype:"encType",maxlength:"maxLength",readonly:"readOnly",longdesc:"longDesc",cellPadding:"cellPadding",cellSpacing:"cellSpacing",more:"more",less:"less",style:"style"};Object.extend(k,{applyAttributes:function(w,v){if(!k.isElement(w)){return}for(var u in v){if(u=="style"){k.applyStyles(w,v[u])}else{k.setAttribute(w,u,v[u])}}},removeAttributes:function(w,v){if(!k.isElement(w)){return}for(var u in v){if(u=="style"){k.removeStyles(v[u])}else{w.removeAttribute(u,r)}}},getAttribute:function(v,u){if(!k.isElement(v)){return c}if(v&&v.getAttribute){return v.getAttribute(e[u]||u)}else{return c}},setAttribute:function(v,u,x){if(!k.isElement(v)){return}if(x==c||x.length==0||x==0){v.removeAttribute(u,r) }else{if(e[u]){v.setAttribute(e[u],x)}else{try{v[u]=x}catch(w){v.setAttribute(e[u]||u,x)}}}},setStyles:function(u,A,x){var y=u.style.cssText;var z;var C=Object.extend({},A);if(C.font){if(x){u.style.font=C.font}else{if(u.style.cssText.indexOf("font:")==-1){u.style.cssText="font: "+C.font+"; "+u.style.cssText}}delete C.font}for(var v in C){var B;if(s.needCalculation(C[v])){B=s.calculate(u.style[v],C[v])}else{B=C[v]}if(B==c){B=""}if(v=="float"){v=g.msie?"styleFloat":"cssFloat"}z=(!u.style[v]&&(v.indexOf("font")!=0||y.indexOf("font:")==-1))||x;var w=(v=="textDecoration")&&!u.style[v].include(B);if(z){u.style[v]=B}else{if(w){u.style[v]+=" "+B}}}k._clearUselessStyle(u)},applyStyles:function(v,u){this.setStyles(v,u,b)},addStyles:function(v,u){this.setStyles(v,u,q)},removeStyles:function(y,x){var w=y.style.cssText;var v=w;for(var u in x){u=u.replace(/([A-Z])/g,"-$1");w=w.replace(new RegExp("(^| )"+u+"\\s*:[^;]+;? ?","ig"),"")}if(v!=w){y.style.cssText=w;k._clearUselessStyle(y)}},_clearUselessStyle:function(u){var v=k.getAttribute(u,"style"); if(!v){u.removeAttribute("style",r)}},getStyleText:function(u){return u.style.cssText},setStyleText:function(u,v){u.style.cssText=v;!v&&k._clearUselessStyle(u)}})})();Object.extend(k,{goInto:function(r,e){if(!r||!r.scrollIntoView){return}r.scrollIntoView(e)},getWindow:function(e){return e.defaultView||e.parentWindow},getScrollTop:function(r){if(!r){return 0}var e=this.getWindow(r);var s="pageYOffset";return(s in e)?e[s]:r.documentElement.scrollTop},setScrollTop:function(r,e){if(!r){return}if(r.documentElement.scrollTop){r.documentElement.scrollTop=e}else{r.body.scrollTop=e}},getScrollLeft:function(e){if(!e){return 0}return(e.documentElement.scrollLeft||e.body.scrollLeft)},setScrollLeft:function(e,r){if(!e){return}if(e.documentElement.scrollLeft){e.documentElement.scrollLeft=r}else{e.body.scrollLeft=r}},getPosition:function(u,A){if(!u){return{x:0,y:0,width:0,height:0}}A=!!A;u=g(u);var y=(A)?g.cumulativeOffset(u):g.positionedOffset(u);var v;var x=u.style.display;if(x!="none"&&x!=c){v={width:u.offsetWidth,height:u.offsetHeight} }else{var s=u.style;var z=s.visibility;var w=s.position;var r=s.display;s.visibility="hidden";s.position="absolute";s.display="block";var e=u.clientWidth;var t=u.clientHeight;s.display=r;s.position=w;s.visibility=z;v={width:e,height:t}}return{x:y[0],y:y[1],width:v.width,height:v.height}},getWidth:function(r){var e=r.style.width;if(e.isPx()){return e.parsePx()}return r.offsetWidth},setWidth:function(r,e){k.applyStyles(r,{width:e})},getHeight:function(r){var e=r.style.height;if(e.isPx()){return e.parsePx()}return r.offsetHeight},setHeight:function(r,e){k.applyStyles(r,{height:e})},replacePngPath:function(t){if(g.msie6){if(n.location.href.indexOf("http://")>-1){return}try{var w=g.getStyle(t,"filter");var s=/src='([^']+)'/.exec(w)[1];if(!s||s=="none"){return}else{if(s.indexOf("http://")>-1){return}}var r=n.location.href.split("/");r.push("css");r.pop();s=s.replace(/\.\.\//g,function(){r.pop();return""});var u=r.join("/")+"/"+s;t.style.filter=w.replace(/src='([^']+)'/,"src='"+u+"'")}catch(v){alert(v) }}}});Object.extend(k,{EMPTY_BOGUS:(g.msie_quirks||g.msie&&g.msie_ver<11?" ":"
")});Object.extend(k,{EMPTY_PARAGRAPH_HTML:"

"+k.EMPTY_BOGUS+"

"});h.$tom=k;(function(e){e.Util={_dispElIds:[],getDispElId:function(){var s;do{s="tx_entry_"+(Math.floor(Math.random()*90000)+10000)+"_"}while(e.Util._dispElIds.contains(s));e.Util._dispElIds.push(s);return s},generateKey:function(){return parseInt(Math.random()*100000000)},toStyleString:function(t){var u=[];for(var s in t){if(t[s]){u.push(s.replace(/([A-Z])/g,"-$1").toLowerCase());u.push(":");u.push(t[s]);u.push(";")}}return u.join("")},toAttrString:function(t){var u=[];for(var s in t){if(t[s]){u.push(" "+s+'="'+t[s]+'"')}}return u.join("")},getMatchValue:function(u,t,v){var s;if((s=u.exec(t))!=c){return s[v]}else{return c}},getAttachmentType:function(t){t=(t||"").toLowerCase();var s=["image/jpg","image/jpeg","image/png","image/tiff","image/gif","image/bmp","image/x-jg","image/ief","image/pict","jpg","bmp","gif","png"];if(s.contains(t)){return"image" }return"file"},thumburl:function(s){s=(s||"").toLowerCase();switch(s){case"doc":case"docx":return r("#iconpath/pn_word.gif");case"xls":case"xlsx":return r("#iconpath/pn_xls.gif");case"ppt":case"pptx":return r("#iconpath/pn_ppt.gif");case"pdf":return r("#iconpath/pn_pdf.gif");case"txt":return r("#iconpath/pn_txt.gif");case"hwp":return r("#iconpath/pn_hwp.gif");case"zip":case"alz":return r("#iconpath/pn_zip.gif");case"mp3":case"wav":case"ogg":case"wma":case"mp4":case"ape":case"ra":case"ram":return r("#iconpath/pn_mp3.gif");case"avi":case"mpeg":case"wmv":case"asf":return r("#iconpath/pn_movie.gif");case"swf":return r("#iconpath/pn_swf.gif");case"htm":case"html":return r("#iconpath/pn_html.gif");case"jpg":case"gif":case"png":case"bmp":return r("#iconpath/pn_etc.gif");default:return r("#iconpath/pn_etc.gif")}},prevurl:function(s){s=(s||"").toLowerCase();switch(s){case"doc":case"docx":return r("#iconpath/p_word_s.gif");case"xls":case"xlsx":return r("#iconpath/p_xls_s.gif");case"ppt":case"pptx":return r("#iconpath/p_ppt_s.gif"); case"pdf":return r("#iconpath/p_pdf_s.gif");case"txt":return r("#iconpath/p_txt_s.gif");case"hwp":return r("#iconpath/p_hwp_s.gif");case"zip":case"alz":return r("#iconpath/p_zip_s.gif");case"mp3":case"wav":case"ogg":case"wma":case"mp4":case"ape":case"ra":case"ram":return r("#iconpath/p_mp3_s.gif");case"avi":case"mpeg":case"wmv":case"asf":return r("#iconpath/p_movie_s.gif");case"swf":return r("#iconpath/p_swf_s.gif");case"htm":case"html":return r("#iconpath/p_html_s.gif");case"jpg":return r("#iconpath/p_jpg_s.gif");case"gif":return r("#iconpath/p_gif_s.gif");case"png":case"bmp":return r("#iconpath/p_png_s.gif");default:return r("#iconpath/p_etc_s.gif")}},getMatchedClassName:function(w,v){var s=q;var t="";for(var u=0;u/ig,"");try{var v=/(\w+)=((?:\")[^\"]+(?:\"|$)|(?:')[^']+(?:'|$)|(?:[^\"'][^ \n]+($| |\n)))/ig;var s;while((s=v.exec(t))!=c){w[s[1].trim().toLowerCase()]=s[2].replace(/^(\"|')/i,"").replace(/(\"|')$/i,"").trim() }}catch(u){}return w},getAllAttributes:function(u){var v={};var s;var t=/style="(?:\s*|(?:[^"]*(?:;\s*)))width\s*:\s*([0-9]+)px[^"]*"/ig;while((s=t.exec(u))!=c){v.width=s[1]}t=/style="(?:\s*|(?:[^"]*(?:;\s*)))height\s*:\s*([0-9]+)px[^"]*"/ig;while((s=t.exec(u))!=c){v.height=s[1]}t=new RegExp('\\s+([a-zA-Z-]+)="([^"]*)"',"g");while((s=t.exec(u))!=c){if(!v[s[1].toLowerCase()]){v[s[1].toLowerCase()]=s[2]}}t=new RegExp("\\s+([a-zA-Z-]+)='([^']*)'","g");while((s=t.exec(u))!=c){if(!v[s[1].toLowerCase()]){v[s[1].toLowerCase()]=s[2]}}t=new RegExp("\\s+([a-zA-Z-]+)=([^\\s>]*)","g");while((s=t.exec(u))!=c){if(!v[s[1].toLowerCase()]){v[s[1].toLowerCase()]=s[2]}}return v}};e.HtmlCreator={createTableMarkup:function(A,w,u){var t=[];t.push('');t.push("");var y=u.length;var v;for(var z=0;z");for(var s=0;s') }else{t.push('")}}else{t.push('')}}t.push("")}t.push("");t.push("
'+v.data+" 
");return t.join("\n")}};e.String={escapeQuot:function(s){return s.replace(new RegExp('"',"g"),""").replace(new RegExp("'","g"),"'")},unescapeQuot:function(s){return s.replace(new RegExp(""","gi"),'"').replace(new RegExp("'","g"),"'")},htmlspecialchars:function(s){return e.String.escapeQuot(s.replace(new RegExp("&","g"),"&").replace(new RegExp("<","g"),"<").replace(new RegExp(">","g"),">"))},unHtmlspecialchars:function(s){return e.String.unescapeQuot(s.replace(new RegExp("&","gi"),"&").replace(new RegExp("<","gi"),"<").replace(new RegExp(">","gi"),">"))},parseAttribute:function(t,w){var x=new RegExp("(^|\\W)"+w+'="([^"]*)"',"gi");var v=new RegExp("(^|\\W)"+w+"='([^']*)'","gi"); var u=new RegExp("(^|\\W)"+w+"=([^\\s>]*)","gi");var s;if(s=x.exec(t)){return s[2]}else{if(s=v.exec(t)){return s[2]}else{if(s=u.exec(t)){return s[2]}else{return""}}}},changeAttribute:function(u,t,x,v){var A=new RegExp("(^|\\W)("+t+'=")'+x+'(")',"gi");var z=new RegExp("(^|\\W)("+t+"=')"+x+"(')","gi");var y=new RegExp("(^|\\W)("+t+"=)"+x,"gi");var w=new RegExp("<([\\w]+\\s*)","gi");var s=q;if(u.search(A)>-1){s=b;u=u.replace(A,"$1$2"+v+"$3")}if(u.search(z)>-1){s=b;u=u.replace(z,"$1$2"+v+"$3")}if(u.search(y)>-1){s=b;u=u.replace(y,"$1$2"+v)}if(!s){u=u.replace(w,"<$1"+t+"="+v+" ")}return u}};e.Validator=e.Class.create({initialize:function(){},strip:function(s){return s.stripTags().replace(/ /g,"").replace(e.__WORD_JOINER_REGEXP,"").trim()},exists:function(s){if(!s){return q}if(this.strip(s)==""){if(s.search(/<(img|iframe|object|embed|table|hr|script|TXDB)/i)<0){return q}}return b},equals:function(s,t){if(!s||!t){return q}if(s.search(/<(img|iframe|object|embed|table|hr|script|TXDB)/i)<0){if(this.strip(s)==this.strip(t)){return b }}return q}});e.Repeater=e.Class.create({initialize:function(s){this.execHandler=s},start:function(s){if(this.tItv){this.clear()}this.tItv=h.setInterval(this.onTimer.bind(this),s)},clear:function(){h.clearInterval(this.tItv);this.tItv=c},onTimer:function(){if(this.execHandler!=c){this.execHandler()}}});e.Timer=e.Class.create({initialize:function(s){this.execHandler=s},start:function(s){h.setTimeout(this.onTimer.bind(this),s)},onTimer:function(){if(this.execHandler!=c){this.execHandler()}}});e.Paging=e.Class.create({$const:{DEFAULT_PAGE_SIZE:5,DEFAULT_BLOCK_SIZE:10},initialize:function(t,s){this.data=t;this.currentpage=s.initPage||1;this.totalrow=s.totalrow||this.getTotalRow();this.pagesize=s.pagesize||e.Paging.DEFAULT_PAGE_SIZE;this.blocksize=s.blocksize||e.Paging.DEFAULT_PAGE_SIZE;this.totalpage=Math.ceil(this.totalrow/this.pagesize);this.totalblock=Math.ceil(this.totalpage/this.blocksize)},getNextPage:function(){return(this.currentpage1)?this.currentpage-1:0 },getNextBlock:function(){var s=Math.ceil(this.currentpage/this.blocksize);return(s1)?(s-2)*this.blocksize+1:0},getPageList:function(){var t=[];var s=Math.ceil(this.currentpage/this.blocksize)-1;var v=(s*this.blocksize+1);var w=Math.min(this.totalpage,(v+this.blocksize-1));for(var u=v;u<=w;u++){t.push(u)}return t},movePage:function(s){this.currentpage=s||this.currentpage},getOnePageData:function(){var s=[];var v=(this.currentpage-1)*this.pagesize;var t=Math.min(this.currentpage*this.pagesize,this.totalrow);for(var u=v;u0){setTimeout(A,10)}else{x.handler(x.result)}};A();g.stop(z)}.bind(this));g.observe(s,"click",function(z){var y=Math.round(this.physicObj.interval);var x=this;var A=function(){var B=x.getKnobPosition();x.setKnobPosition(B+1);if(--y>0){setTimeout(A,10)}else{x.handler(x.result)}};A();g.stop(z)}.bind(this));g.observe(this.elContext,"mouseup",function(){if(this.isDrag){this.isDrag=q}}.bind(this));g.observe(v,"click",function(x){g.stop(x)}.bind(this));g.observe(w,"click",function(z){if(!this.isDrag){var y=z.layerX||z.x;this.setKnobPosition(y-this.knobWidth/2);this.handler(this.result)}}.bind(this))},getKnobPosition:function(){var s=g.getStyle(this.elKnob,"left");return s.parsePx()},setKnobPosition:function(s){s=(sthis.physicObj.min)?s:this.physicObj.min; g.setStyle(this.elKnob,{left:s.toPx()});this.result=Math.round(s*this.logicObj.interval/this.physicObj.interval)},setDisable:function(){this.isDisabled=b},setEnable:function(){this.isDisabled=q},getDisabled:function(){return this.isDisabled}});e.DynamicSizer=e.Class.create({initialize:function(s){this.config=s;this.wrapper=s.el;this.elEventContext=tx.div({className:"tx-dynamic-sizer-context"});this.currentSize={row:0,col:0};this.dynamicSizingEnabled=b;if(!s.moveHandler){s.moveHandler=function(){}}if(!s.clickHandler){s.clickHandler=function(){}}this.wrapper.appendChild(this.elEventContext);this.previewTable=new e.DynamicSizer.PreviewTable({parentEl:this.elEventContext,mouseOverHandler:this.changeSize.bind(this),mouseClickHandler:this.selectSize.bind(this)})},clear:function(){this.dynamicSizingEnabled=b;this.changeSize(0,0)},changeSize:function(t,s){if(this.dynamicSizingEnabled){this.currentSize.row=t;this.currentSize.col=s;this._changeSelectionSize(t,s);this.config.moveHandler(t,s)}},_changeSelectionSize:function(t,s){this.previewTable.moveSelectionPos(t,s) },toggleDynamicSizing:function(){this.dynamicSizingEnabled=!this.dynamicSizingEnabled;if(this.dynamicSizingEnabled){this.selection.enableResize()}else{this.selection.disableResize()}},selectSize:function(s){this.config.clickHandler(s,this.currentSize)},getCurruentSize:function(){return this.currentSize}});e.DynamicSizer.PreviewTable=e.Class.create({$const:{DEFAULT_TD_STYLE:{},DEFAULT_TABLE_PROPERTY:{cellpadding:"0",cellspacing:"1"},MAX_SIZE:{COL:10,ROW:10}},initialize:function(t){this.config=t;this.elTable=c;this.elTable=this.generateTable("tx-event");this.elSelection=tx.div({className:"tx-selection"},this.generateTable("tx-selection"));var u=this.generateTable("tx-panel");this.eventBinding();t.parentEl.appendChild(this.elTable);t.parentEl.appendChild(this.elSelection);t.parentEl.appendChild(u);var v=k.getPosition(this.elTable);var s=e.DynamicSizer.PreviewTable.MAX_SIZE;this.cellSize={width:Math.round((v.width-v.x)/s.COL),height:(v.height-v.y)/s.ROW}},generateTable:function(w){var u=tx.tbody(); var t=e.DynamicSizer.PreviewTable;for(var v=0;v0){s=s+((s.indexOf("?")>-1)?"&":"?")+t}v.open(r.toUpperCase(),s,u);v.setRequestHeader("X-Requested-With","XMLHttpRequest");v.send(c)}if(!u){A()}return w}catch(x){return c}}});l.Responder={callbacks:{},process:function(){},newKey:function(){var e="exe_"+Math.floor(Math.random()*100000);if(this[e]){return this.newKey()}else{return e}},register:function(r){var e=this.newKey();this.callbacks[e]=function(s){r.apply(this,Array.prototype.slice.call(arguments,0));this.callbacks[e]=c}.bind(this);return e}};l.I.JSRequester=l.Faculty.create({importScript:function(t,w,v,y){if(t==c&&t!=""){return c}w=w||"utf-8";v=v||n;try{var u=v.getElementsByTagName("head")[0]||v.documentElement; var s=v.createElement("script");s.type="text/javascript";s.charset=w;s.src=t;var r=q;s.onload=s.onreadystatechange=function(){if(!r&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){r=b;if(y){y()}s.onload=s.onreadystatechange=c;if(u&&s.parentNode){u.removeChild(s)}}};u.insertBefore(s,u.firstChild)}catch(x){}}});h.$stop={};h.$propagate={};l.I.JobObservable=l.Faculty.create({jobObservers:{},observeJob:function(r,e){if(!this.jobObservers[r]){this.jobObservers[r]=[]}this.jobObservers[r].push(e)},reserveJob:function(t,r,s){s=s||500;if(!this.jobObservers[t]){this.jobObservers[t]=[]}var e=this;this.jobObservers[t].push(function(){var u=$A(arguments);setTimeout(function(){r.apply(e,u)},s)})},removeJob:function(e,s){if(!this.jobObservers[e]){return}if(!s){this.jobObservers[e].length=0}else{for(var r=0;r0){var w=this.getPositionByNode(t);x.each(function(e){e.apply(r,[t,w])})}if(k.isBody(t)){break}t=k.parent(t)}}catch(v){if(v!=$stop){throw v}}this.runMouseoverFailHandler()},runMouseoverFailHandler:function(){var r=[];for(var e in this.mouseoverObservers){if(!this.mouseoverObservers[e].flag){r.push(this.mouseoverObservers[e]["fail"]) }}r.flatten().each(function(s){s()})},collectMouseoverObserver:function(w){var x=[];var s=w.className||"";var r=w.tagName;if(r){r=r.toLowerCase();if(this.mouseoverObservers[r]){x.push(this.mouseoverObservers[r]["success"]);this.mouseoverObservers[r]["flag"]=b}}if(s!=""){var t=s.split(" ");for(var v=0,e=t.length;v0){this.isRunning=b;(this.threads.shift())();this.isRunning=q}},putThread:function(e,r){if(r){this.threads.unshift(e)}else{this.threads.push(e)}}});h.autoResizeHeight=function(s,r){var x=window.top; if(typeof s=="number"){var C=50;var e=30;var t=300;if(!r){r=0}var w=self.document.documentElement;var B={},A={x:0,y:0};var v=(x.screenLeft)?x.screenLeft:x.screenX;var z=(x.screenTop)?x.screenTop:x.screenY;x.resizeTo(s,t);var y=(w.clientHeight==w.scrollHeight&&w.scrollHeight!=w.offsetHeight)?w.offsetHeight:w.scrollHeight;var u=(w.clientWidth==w.scrollWidth&&w.scrollWidth!=w.offsetWidth)?w.offsetWidth:w.scrollWidth;if(y>w.clientHeight){B.height=y-w.clientHeight}else{B.width=8;B.height=w.clientHeight-y+35}A.y=Math.min(screen.availHeight-y-z-C,0);A.x=Math.min(screen.availWidth-u-v-e,0);if(A.x||A.y){if(!g.chrome){x.moveBy(A.x,A.y)}x.resizeTo(s,t)}setTimeout(function(){x.resizeBy(0,B.height+r)},20)}else{setTimeout(function(){var J=s;if(!J){J=document.getElementsByTagName("HTML")[0]}var I=document.getElementsByTagName("HTML")[0];var H=I.clientWidth||I.scrollWidth;var D=I.clientHeight||I.scrollHeight;var E=J.offsetWidth||J.scrollWidth;var G=J.offsetHeight||J.scrollHeight;var F=E-H;var K=G-D;if(F||K){x.resizeBy(F,K) }},100)}};h.Querystring=function(v){this.params=new Object();this.get=function(y,x){if(x==c){x=c}var z=this.params[y];if(z==c){z=x}return z};this.getUTF8=function(y,x){if(x==c){x=c}var z=unescape(this.params[y]);if(z==c){z=x}return z};var e;if(v){e=v}else{e=location.search.substring(1,location.search.length)}if(e.length==0){return}e=e.replace(/\+/g," ");var s=e.split("&");for(var t=0;t]+>/gi,"")};h.getAttacher=function(e){return PopupUtil.getOpener().Editor.getSidebar().getAttacher(e)};h.getEmbeder=function(e){return PopupUtil.getOpener().Editor.getSidebar().getEmbeder(e)};h.registerAction=function(e){if(!e){return}window.execAttach=e.attachHandler };h.registerSearch=function(e){if(!e){return}window.execSearch=e.insertHandler};h.registerEmded=function(e){if(!e){return}window.execEmbed=e.embedHandler};h.modifyResult=function(){};h.completeAttach=function(){};h.existEntry=function(e){if(!e){return q}return e.existEntry()};h.getFirstEntryData=function(e){if(!e){return q}return e.getFirstEntryData()};h.getAttrOfElement=function(r,t){var s=new RegExp(t+"=['\"]?([^\"'>]*)[\"' ]","i");var e=s.exec(r);if(e){return e[1]}else{return c}};h.getParamValOfObjectTag=function(u,t){var r=new RegExp("]*)name=['\"]"+t+"['\"]([^>]*)>","gi");var e=r.exec(u,"gi");var s=c;if(e){r=new RegExp("value=['\"]([^>'\"]*)['\"]","gi");s=r.exec(e[0]);if(s){return s[1]}}return c};h.PopupUtil={getOpener:function(){var e;if(opener&&opener.Editor){e=opener}else{if(parent.opener&&parent.opener.Editor){e=parent.opener}else{if(opener.opener&&opener.opener.Editor){e=opener.opener}}}return e}};h.getDateFormat=function(t,w){t=t?t.trim():"";if((t.length!=8)||(t.indexOf("0")==0)){return"" }var u=t.substr(0,4)+(w||"\ub144 ");var s=(t.substr(4,2).indexOf("0")==0)?t.substr(5,1):t.substr(4,2);var e=(t.substr(6,2).indexOf("0")==0)?t.substr(7,1):t.substr(6,2);var v=(s!="0")?s+(w||"\uc6d4 "):"";var r=(e!="0")?(e+(w?"":"\uc77c")):"";return u+v+r};h.getDashedDateFormat=function(r){r=r.trim();if(r.length!=8||r.indexOf("00")==0){return""}var t=removeZero(r.substr(0,4),"");var s=removeZero(r.substr(4,2),"-");var e=removeZero(r.substr(6,2),"-");return t+s+e};h.removeZero=function(r,e){return(r.indexOf("00")==0)?"":e+r};h.getYearFormat=function(e){e=e.trim()||"";if(e.length!=8){return""}return e.substr(0,4)+"\ub144 "};h.getDayFormat=function(s){try{s=s.trim();if(s.length!=8){return s}var u=new Date(s.substr(0,4),s.substr(4,2)-1,s.substr(6,2));var r=["\uc77c","\uc6d4","\ud654","\uc218","\ubaa9","\uae08","\ud1a0"];return r[u.getDay()]}catch(t){}return""};h.stripBracket=function(s){var r=s.trim().split(",");var e=[];r.each(function(t){e.push(t.replace(/\[\[[\w]*\]\]/,""))});return e.join(", ") };h.getFieldJson=function(e,r){if(r){return{name:e,value:r.stripTags()}}return c};if(typeof Editor!=="undefined"){Editor.version="7.4.32"}try{EditorJSLoader.readyState="complete";EditorJSLoader.finish()}catch(m){}})();