/*! Copyright (C) NAVER <http://www.navercorp.com> */ /**! * @concat modernizr.js + common.js + js_app.js + xml2json.js + xml_handler.js + xml_js_filter.js * @brief XE Common JavaScript **/ function xSleep(a){a/=1e3;for(var b=new Date,c=new Date;c.getTime()-b.getTime()<a;)c=new Date}function isDef(){for(var a=0;a<arguments.length;++a)if("undefined"==typeof arguments[a])return!1;return!0}function winopen(a,b,c){"undefined"!=typeof xeVid&&a.indexOf(request_uri)>-1&&!a.getQuery("vid")&&(a=a.setQuery("vid",xeVid));try{"_blank"!=b&&winopen_list[b]&&(winopen_list[b].close(),winopen_list[b]=null)}catch(d){}"undefined"==typeof b&&(b="_blank"),"undefined"==typeof c&&(c="");var e=window.open(a,b,c);e.focus(),"_blank"!=b&&(winopen_list[b]=e)}function popopen(a,b){"undefined"==typeof b&&(b="_blank"),"undefined"!=typeof xeVid&&a.indexOf(request_uri)>-1&&!a.getQuery("vid")&&(a=a.setQuery("vid",xeVid)),winopen(a,b,"width=800,height=600,scrollbars=yes,resizable=yes,toolbars=no")}function sendMailTo(a){location.href="mailto:"+a}function move_url(a,b){return a?("undefined"==typeof b&&(b="N"),b="N"!=b,/^\./.test(a)&&(a=request_uri+a),b?winopen(a):location.href=a,!1):!1}function displayMultimedia(a,b,c,d){var e=_displayMultimedia(a,b,c,d);e&&document.writeln(e)}function _displayMultimedia(a,b,c,d){0===a.indexOf("files")&&(a=request_uri+a);var e={wmode:"transparent",allowScriptAccess:"never",quality:"high",flashvars:"",autostart:!1},f=jQuery.extend(e,d||{}),g=f.autostart&&"false"!=f.autostart?"true":"false";delete f.autostart;var h="",i="",j="";if(/\.(gif|jpg|jpeg|bmp|png)$/i.test(a))j='<img src="'+a+'" width="'+b+'" height="'+c+'" />';else if(/\.flv$/i.test(a)||/\.mov$/i.test(a)||/\.moov$/i.test(a)||/\.m4v$/i.test(a))j='<embed src="'+request_uri+'common/img/flvplayer.swf" allowfullscreen="true" allowscriptaccess="never" autostart="'+g+'" width="'+b+'" height="'+c+'" flashvars="&file='+a+"&width="+b+"&height="+c+"&autostart="+g+'" wmode="'+f.wmode+'" />';else if(/\.swf/i.test(a)){h="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",i="undefined"!=typeof enforce_ssl&&enforce_ssl?"https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0":"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0",j='<object classid="'+h+'" codebase="'+i+'" width="'+b+'" height="'+c+'" flashvars="'+f.flashvars+'">',j+='<param name="movie" value="'+a+'" />';for(var k in f)"undefined"!=f[k]&&""!==f[k]&&(j+='<param name="'+k+'" value="'+f[k]+'" />');j+='<embed src="'+a+'" allowscriptaccess="never" autostart="'+g+'" width="'+b+'" height="'+c+'" flashvars="'+f.flashvars+'" wmode="'+f.wmode+'"></embed></object>'}else(jQuery.browser.mozilla||jQuery.browser.opera)&&(g=f.autostart&&"false"!=f.autostart?"1":"0"),j='<embed src="'+a+'" allowscriptaccess="never" autostart="'+g+'" width="'+b+'" height="'+c+'"',"transparent"==f.wmode&&(j+=' windowlessvideo="1"'),j+="></embed>";return j}function zbxe_folder_open(a){jQuery("#folder_open_"+a).hide(),jQuery("#folder_close_"+a).show(),jQuery("#folder_"+a).show()}function zbxe_folder_close(a){jQuery("#folder_open_"+a).show(),jQuery("#folder_close_"+a).hide(),jQuery("#folder_"+a).hide()}function setFixedPopupSize(){var a,b,c,d,e,f=jQuery,g=f(window),h=f("body>.popup");e=h.css({overflow:"scroll"}).offset(),a=h.width(10).height(1e4).get(0).scrollWidth+2*e.left,b=h.height(10).width(1e4).get(0).scrollHeight+2*e.top,800>a&&(a=800+2*e.left),c=g.width(),d=g.height(),a!=c&&window.resizeBy(a-c,0),b!=d&&window.resizeBy(0,b-d),h.width(a-2*e.left).css({overflow:"",height:""})}function doCallModuleAction(a,b,c){var d={target_srl:c,cur_mid:current_mid,mid:current_mid};exec_xml(a,b,d,completeCallModuleAction)}function completeCallModuleAction(a,b){"success"!=a.message&&alert(a.message),location.reload()}function completeMessage(a){alert(a.message),location.reload()}function doChangeLangType(a){if("string"==typeof a)setLangType(a);else{var b=a.options[a.selectedIndex].value;setLangType(b)}location.href=location.href.setQuery("l","")}function setLangType(a){var b=new Date;b.setTime(b.getTime()+6048e8),setCookie("lang_type",a,b,"/")}function doDocumentPreview(a){for(var b=a;"FORM"!=b.nodeName;)b=b.parentNode;if("FORM"==b.nodeName){var c=b.getAttribute("editor_sequence"),d=editorGetContent(c),e=(window.open("","previewDocument","toolbars=no,width=700px;height=800px,scrollbars=yes,resizable=yes"),jQuery("#previewDocument"));e.length?e=e[0]:(jQuery('<form id="previewDocument" target="previewDocument" method="post" action="'+request_uri+'"><input type="hidden" name="module" value="document" /><input type="hidden" name="act" value="dispDocumentPreview" /><input type="hidden" name="content" /></form>').appendTo(document.body),e=jQuery("#previewDocument")[0]),e&&(e.content.value=d,e.submit())}}function doDocumentSave(a){var b=a.form.getAttribute("editor_sequence"),c=editorRelKeys[b].content.value;if("undefined"!=typeof b&&b&&"undefined"!=typeof editorRelKeys&&"function"==typeof editorGetContent){var d=editorGetContent(b);editorRelKeys[b].content.value=d}var e={},f=["error","message","document_srl"],g=(a.form.elements,jQuery(a.form).serializeArray());return jQuery.each(g,function(a,b){var c=jQuery.trim(b.value);return c?(/\[\]$/.test(b.name)&&(b.name=b.name.replace(/\[\]$/,"")),void(e[b.name]?e[b.name]+="|@|"+c:e[b.name]=b.value)):!0}),exec_xml("document","procDocumentTempSave",e,completeDocumentSave,f,e,a.form),editorRelKeys[b].content.value=c,!1}function completeDocumentSave(a){jQuery("input[name=document_srl]").eq(0).val(a.document_srl),alert(a.message)}function doDocumentLoad(a){objForSavedDoc=a.form,popopen(request_uri.setQuery("module","document").setQuery("act","dispTempSavedList"))}function doDocumentSelect(a,b){if(!opener||!opener.objForSavedDoc)return void window.close();switch(void 0===b&&(b="document"),b){case"page":var c=opener.current_url;c=c.setQuery("document_srl",a),c="dispPageAdminMobileContentModify"===c.getQuery("act")?c.setQuery("act","dispPageAdminMobileContentModify"):c.setQuery("act","dispPageAdminContentModify"),opener.location.href=c;break;default:opener.location.href=opener.current_url.setQuery("document_srl",a).setQuery("act","dispBoardWrite")}window.close()}function viewSkinInfo(a,b){popopen("./?module=module&act=dispModuleSkinInfo&selected_module="+a+"&skin="+b,"SkinInfo")}function doAddDocumentCart(a){var b=a.value;addedDocument[addedDocument.length]=b,setTimeout(function(){callAddDocumentCart(addedDocument.length)},100)}function callAddDocumentCart(a){if(!(addedDocument.length<1||a!=addedDocument.length)){var b=[];b.srls=addedDocument.join(","),exec_xml("document","procDocumentAddCart",b,null),addedDocument=[]}}function transRGB2Hex(a){if(!a)return a;if(a.indexOf("#")>-1)return a.replace(/^#/,"");if(a.toLowerCase().indexOf("rgb")<0)return a;a=a.replace(/^rgb\(/i,"").replace(/\)$/,""),value_list=a.split(",");for(var b="",c=0;c<value_list.length;c++){var d=parseInt(value_list[c],10).toString(16);1==d.length&&(d="0"+d),b+=d}return b}function toggleSecuritySignIn(){var a=location.href;/https:\/\//i.test(a)?location.href=a.replace(/^https/i,"http"):location.href=a.replace(/^http/i,"https")}function reloadDocument(){location.reload()}function toggleDisplay(a){jQuery("#"+a).toggle()}function svc_folder_open(a){jQuery("#_folder_open_"+a).hide(),jQuery("#_folder_close_"+a).show(),jQuery("#_folder_"+a).show()}function svc_folder_close(a){jQuery("#_folder_open_"+a).show(),jQuery("#_folder_close_"+a).hide(),jQuery("#_folder_"+a).hide()}function open_calendar(a,b,c){"undefined"==typeof b&&(b="");var d="./common/tpl/calendar.php?";a&&(d+="fo_id="+a),b&&(d+="&day_str="+b),c&&(d+="&callback_func="+c),popopen(d,"Calendar")}function createPopupMenu(){}function chkPopupMenu(){}function displayPopupMenu(a,b,c){XE.displayPopupMenu(a,b,c)}function GetObjLeft(a){return jQuery(a).offset().left}function GetObjTop(a){return jQuery(a).offset().top}function replaceOuterHTML(a,b){jQuery(a).replaceWith(b)}function getOuterHTML(a){return jQuery(a).html().trim()}function setCookie(a,b,c,d){var e=a+"="+escape(b)+(c?"; expires="+c.toGMTString():"")+"; path="+(d?d:"/");document.cookie=e}function getCookie(a){var b=document.cookie.match(new RegExp(a+"=(.*?)(?:;|$)"));return b?unescape(b[1]):void 0}function is_def(a){return"undefined"!=typeof a}function ucfirst(a){return a.charAt(0).toUpperCase()+a.slice(1)}function get_by_id(a){return document.getElementById(a)}function filterAlertMessage(a){var b=(a.error,a.message),c=a.act,d=a.redirect_url,e=location.href;"undefined"!=typeof b&&b&&"success"!=b&&alert(b),"undefined"!=typeof c&&c?e=current_url.setQuery("act",c):"undefined"!=typeof d&&d&&(e=d),e==location.href&&(e=e.replace(/#(.*)$/,"")),location.href=e}function procFilter(a,b){return b(a),!1}function legacy_filter(a,b,c,d,e,f,g,h){var i=xe.getApp("Validator")[0],j=jQuery,k=[];return i?(b.elements._filter||j(b).prepend('<input type="hidden" name="_filter" />'),b.elements._filter.value=a,k[0]=a,k[1]=function(a){var i={},k=(a.elements,j(a).serializeArray());return j.each(k,function(a,b){var c=j.trim(b.value),d=b.name;return c&&d?(h[d]&&(d=h[d]),/\[\]$/.test(d)&&(d=d.replace(/\[\]$/,"")),void(i[d]?i[d]+="|@|"+c:i[d]=b.value)):!0}),g&&!confirm(g)?!1:void exec_xml(c,d,i,e,f,i,b)},i.cast("ADD_CALLBACK",k),i.cast("VALIDATE",[b,a]),!1):!1}window.Modernizr=function(a,b,c){function d(a){t.cssText=a}function e(a,b){return d(x.join(a+";")+(b||""))}function f(a,b){return typeof a===b}function g(a,b){return!!~(""+a).indexOf(b)}function h(a,b){for(var d in a){var e=a[d];if(!g(e,"-")&&t[e]!==c)return"pfx"==b?e:!0}return!1}function i(a,b,d){for(var e in a){var g=b[a[e]];if(g!==c)return d===!1?a[e]:f(g,"function")?g.bind(d||b):g}return!1}function j(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+z.join(d+" ")+d).split(" ");return f(b,"string")||f(b,"undefined")?h(e,b):(e=(a+" "+A.join(d+" ")+d).split(" "),i(e,b,c))}function k(){o.input=function(c){for(var d=0,e=c.length;e>d;d++)E[c[d]]=!!(c[d]in u);return E.list&&(E.list=!(!b.createElement("datalist")||!a.HTMLDataListElement)),E}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),o.inputtypes=function(a){for(var d,e,f,g=0,h=a.length;h>g;g++)u.setAttribute("type",e=a[g]),d="text"!==u.type,d&&(u.value=v,u.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(e)&&u.style.WebkitAppearance!==c?(q.appendChild(u),f=b.defaultView,d=f.getComputedStyle&&"textfield"!==f.getComputedStyle(u,null).WebkitAppearance&&0!==u.offsetHeight,q.removeChild(u)):/^(search|tel)$/.test(e)||(d=/^(url|email)$/.test(e)?u.checkValidity&&u.checkValidity()===!1:u.value!=v)),D[a[g]]=!!d;return D}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var l,m,n="2.8.3",o={},p=!0,q=b.documentElement,r="modernizr",s=b.createElement(r),t=s.style,u=b.createElement("input"),v=":)",w={}.toString,x=" -webkit- -moz- -o- -ms- ".split(" "),y="Webkit Moz O ms",z=y.split(" "),A=y.toLowerCase().split(" "),B={svg:"http://www.w3.org/2000/svg"},C={},D={},E={},F=[],G=F.slice,H=function(a,c,d,e){var f,g,h,i,j=b.createElement("div"),k=b.body,l=k||b.createElement("body");if(parseInt(d,10))for(;d--;)h=b.createElement("div"),h.id=e?e[d]:r+(d+1),j.appendChild(h);return f=["­",'<style id="s',r,'">',a,"</style>"].join(""),j.id=r,(k?j:l).innerHTML+=f,l.appendChild(j),k||(l.style.background="",l.style.overflow="hidden",i=q.style.overflow,q.style.overflow="hidden",q.appendChild(l)),g=c(j,a),k?j.parentNode.removeChild(j):(l.parentNode.removeChild(l),q.style.overflow=i),!!g},I=function(){function a(a,e){e=e||b.createElement(d[a]||"div"),a="on"+a;var g=a in e;return g||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(a,""),g=f(e[a],"function"),f(e[a],"undefined")||(e[a]=c),e.removeAttribute(a))),e=null,g}var d={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return a}(),J={}.hasOwnProperty;m=f(J,"undefined")||f(J.call,"undefined")?function(a,b){return b in a&&f(a.constructor.prototype[b],"undefined")}:function(a,b){return J.call(a,b)},Function.prototype.bind||(Function.prototype.bind=function(a){var b=this;if("function"!=typeof b)throw new TypeError;var c=G.call(arguments,1),d=function(){if(this instanceof d){var e=function(){};e.prototype=b.prototype;var f=new e,g=b.apply(f,c.concat(G.call(arguments)));return Object(g)===g?g:f}return b.apply(a,c.concat(G.call(arguments)))};return d}),C.flexbox=function(){return j("flexWrap")},C.flexboxlegacy=function(){return j("boxDirection")},C.canvas=function(){var a=b.createElement("canvas");return!(!a.getContext||!a.getContext("2d"))},C.canvastext=function(){return!(!o.canvas||!f(b.createElement("canvas").getContext("2d").fillText,"function"))},C.webgl=function(){return!!a.WebGLRenderingContext},C.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:H(["@media (",x.join("touch-enabled),("),r,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=9===a.offsetTop}),c},C.geolocation=function(){return"geolocation"in navigator},C.postmessage=function(){return!!a.postMessage},C.websqldatabase=function(){return!!a.openDatabase},C.indexedDB=function(){return!!j("indexedDB",a)},C.hashchange=function(){return I("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},C.history=function(){return!(!a.history||!history.pushState)},C.draganddrop=function(){var a=b.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},C.websockets=function(){return"WebSocket"in a||"MozWebSocket"in a},C.rgba=function(){return d("background-color:rgba(150,255,150,.5)"),g(t.backgroundColor,"rgba")},C.hsla=function(){return d("background-color:hsla(120,40%,100%,.5)"),g(t.backgroundColor,"rgba")||g(t.backgroundColor,"hsla")},C.multiplebgs=function(){return d("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(t.background)},C.backgroundsize=function(){return j("backgroundSize")},C.borderimage=function(){return j("borderImage")},C.borderradius=function(){return j("borderRadius")},C.boxshadow=function(){return j("boxShadow")},C.textshadow=function(){return""===b.createElement("div").style.textShadow},C.opacity=function(){return e("opacity:.55"),/^0.55$/.test(t.opacity)},C.cssanimations=function(){return j("animationName")},C.csscolumns=function(){return j("columnCount")},C.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";return d((a+"-webkit- ".split(" ").join(b+a)+x.join(c+a)).slice(0,-a.length)),g(t.backgroundImage,"gradient")},C.cssreflections=function(){return j("boxReflect")},C.csstransforms=function(){return!!j("transform")},C.csstransforms3d=function(){var a=!!j("perspective");return a&&"webkitPerspective"in q.style&&H("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=9===b.offsetLeft&&3===b.offsetHeight}),a},C.csstransitions=function(){return j("transition")},C.fontface=function(){var a;return H('@font-face {font-family:"font";src:url("https://")}',function(c,d){var e=b.getElementById("smodernizr"),f=e.sheet||e.styleSheet,g=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"";a=/src/i.test(g)&&0===g.indexOf(d.split(" ")[0])}),a},C.generatedcontent=function(){var a;return H(["#",r,"{font:0/0 a}#",r,':after{content:"',v,'";visibility:hidden;font:3px/1 a}'].join(""),function(b){a=b.offsetHeight>=3}),a},C.video=function(){var a=b.createElement("video"),c=!1;try{(c=!!a.canPlayType)&&(c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),c.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(d){}return c},C.audio=function(){var a=b.createElement("audio"),c=!1;try{(c=!!a.canPlayType)&&(c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),c.mp3=a.canPlayType("audio/mpeg;").replace(/^no$/,""),c.wav=a.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),c.m4a=(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(d){}return c},C.localstorage=function(){try{return localStorage.setItem(r,r),localStorage.removeItem(r),!0}catch(a){return!1}},C.sessionstorage=function(){try{return sessionStorage.setItem(r,r),sessionStorage.removeItem(r),!0}catch(a){return!1}},C.webworkers=function(){return!!a.Worker},C.applicationcache=function(){return!!a.applicationCache},C.svg=function(){return!!b.createElementNS&&!!b.createElementNS(B.svg,"svg").createSVGRect},C.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==B.svg},C.smil=function(){return!!b.createElementNS&&/SVGAnimate/.test(w.call(b.createElementNS(B.svg,"animate")))},C.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(w.call(b.createElementNS(B.svg,"clipPath")))};for(var K in C)m(C,K)&&(l=K.toLowerCase(),o[l]=C[K](),F.push((o[l]?"":"no-")+l));return o.input||k(),o.addTest=function(a,b){if("object"==typeof a)for(var d in a)m(a,d)&&o.addTest(d,a[d]);else{if(a=a.toLowerCase(),o[a]!==c)return o;b="function"==typeof b?b():b,"undefined"!=typeof p&&p&&(q.className+=" modernizr-"+(b?"":"no-")+a),o[a]=b}return o},d(""),s=u=null,function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=s.elements;return"string"==typeof a?a.split(" "):a}function e(a){var b=r[a[p]];return b||(b={},q++,a[p]=q,r[q]=b),b}function f(a,c,d){if(c||(c=b),k)return c.createElement(a);d||(d=e(c));var f;return f=d.cache[a]?d.cache[a].cloneNode():o.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!f.canHaveChildren||n.test(a)||f.tagUrn?f:d.frag.appendChild(f)}function g(a,c){if(a||(a=b),k)return a.createDocumentFragment();c=c||e(a);for(var f=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)f.createElement(h[g]);return f}function h(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return s.shivMethods?f(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(s,b.frag)}function i(a){a||(a=b);var d=e(a);return!s.shivCSS||j||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),k||h(a,d),a}var j,k,l="3.7.0",m=a.html5||{},n=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,o=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,p="_html5shiv",q=0,r={};!function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",j="hidden"in a,k=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){j=!0,k=!0}}();var s={elements:m.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:l,shivCSS:m.shivCSS!==!1,supportsUnknownElements:k,shivMethods:m.shivMethods!==!1,type:"default",shivDocument:i,createElement:f,createDocumentFragment:g};a.html5=s,i(b)}(this,b),o._version=n,o._prefixes=x,o._domPrefixes=A,o._cssomPrefixes=z,o.hasEvent=I,o.testProp=function(a){return h([a])},o.testAllProps=j,o.testStyles=H,q.className=q.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(p?" modernizr-js modernizr-"+F.join(" modernizr-"):""),o}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==q.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=r.shift();s=1,a?a.t?o(function(){("c"==a.t?m.injectCss:m.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):s=0}function i(a,c,d,e,f,i,j){function k(b){if(!n&&g(l.readyState)&&(t.r=n=1,!s&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&o(function(){v.removeChild(l)},50);for(var d in A[c])A[c].hasOwnProperty(d)&&A[c][d].onload()}}var j=j||m.errorTimeout,l=b.createElement(a),n=0,q=0,t={t:d,s:c,e:f,a:i,x:j};1===A[c]&&(q=1,A[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,q)},r.splice(e,0,t),"img"!=a&&(q||2===A[c]?(v.insertBefore(l,u?null:p),o(k,j)):A[c].push(l))}function j(a,b,c,d,f){return s=0,b=b||"j",e(a)?i("c"==b?x:w,a,b,this.i++,c,d,f):(r.splice(this.i++,0,a),1==r.length&&h()),this}function k(){var a=m;return a.loader={load:j,i:0},a}var l,m,n=b.documentElement,o=a.setTimeout,p=b.getElementsByTagName("script")[0],q={}.toString,r=[],s=0,t="MozAppearance"in n.style,u=t&&!!b.createRange().compareNode,v=u?n:p.parentNode,n=a.opera&&"[object Opera]"==q.call(a.opera),n=!!b.attachEvent&&!n,w=t?"object":n?"script":"img",x=n?"script":w,y=Array.isArray||function(a){return"[object Array]"==q.call(a)},z=[],A={},B={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}};m=function(a){function b(a){var b,c,d,a=a.split("!"),e=z.length,f=a.pop(),g=a.length,f={url:f,origUrl:f,prefixes:a};for(c=0;g>c;c++)d=a[c].split("="),(b=B[d.shift()])&&(f=b(f,d));for(c=0;e>c;c++)f=z[c](f);return f}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(A[i.url]?i.noexec=!0:A[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),A[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(l=function(){var a=[].slice.call(arguments);m.apply(this,a),n()}),g(a,l,b,0,j);else if(Object(a)===a)for(i in h=function(){var b,c=0;for(b in a)a.hasOwnProperty(b)&&c++;return c}(),a)a.hasOwnProperty(i)&&(!c&&!--h&&(d(l)?l=function(){var a=[].slice.call(arguments);m.apply(this,a),n()}:l[i]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),n()}}(m[i])),g(a[i],l,b,i,j))}else!c&&n()}var h,i,j=!!a.test,k=a.load||a.both,l=a.callback||f,m=l,n=a.complete||f;c(j?a.yep:a.nope,!!k),k&&c(k)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(y(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):y(j)?m(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},m.addPrefix=function(a,b){B[a]=b},m.addFilter=function(a){z.push(a)},m.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",l=function(){b.removeEventListener("DOMContentLoaded",l,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k,l,n=b.createElement("script"),e=e||m.errorTimeout;n.src=a;for(l in d)n.setAttribute(l,d[l]);c=j?h:c||f,n.onreadystatechange=n.onload=function(){!k&&g(n.readyState)&&(k=1,c(),n.onload=n.onreadystatechange=null)},o(function(){k||(k=1,c(1))},e),i?n.onload():p.parentNode.insertBefore(n,p)},a.yepnope.injectCss=function(a,c,d,e,g,i){var j,e=b.createElement("link"),c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(p.parentNode.insertBefore(e,p),o(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},jQuery&&jQuery.noConflict(),function(a){var b=navigator.userAgent.toLowerCase();a.os={Linux:/linux/.test(b),Unix:/x11/.test(b),Mac:/mac/.test(b),Windows:/win/.test(b)},a.os.name=a.os.Windows?"Windows":a.os.Linux?"Linux":a.os.Unix?"Unix":a.os.Mac?"Mac":"",window.XE={loaded_popup_menus:[],addedDocument:[],checkboxToggleAll:function(b){is_def(b)||(b="cart");var c,d={wrap:null,checked:"toggle",doClick:!1};switch(arguments.length){case 1:"string"==typeof arguments[0]?b=arguments[0]:(a.extend(d,arguments[0]||{}),b="cart");break;case 2:b=arguments[0],a.extend(d,arguments[1]||{})}d.doClick===!0&&(d.checked=null),"string"==typeof d.wrap&&(d.wrap="#"+d.wrap),c=d.wrap?a(d.wrap).find('input[name="'+b+'"]:checkbox'):a('input[name="'+b+'"]:checkbox'),"toggle"==d.checked?c.each(function(){a(this).attr("checked",!a(this).attr("checked"))}):d.doClick===!0?c.click():c.attr("checked",d.checked)},displayPopupMenu:function(b,c,d){var e=(d.target_srl,d.menu_id),f=b.menus,g="";if(this.loaded_popup_menus[e])g=this.loaded_popup_menus[e];else{if(f){var h=f.item;if(("undefined"==typeof h.length||h.length<1)&&(h=new Array(h)),h.length)for(var i=0;i<h.length;i++){var j=h[i].url,k=h[i].str,l=(h[i].icon,h[i].target),m="",n="";switch(l){case"popup":n="onclick=\"popopen(this.href, '"+l+"'); return false;\"";break;case"javascript":n='onclick="'+j+'; return false; "',j="#";break;default:n='target="_blank"'}g+="<li "+m+'><a href="'+j+'" '+n+">"+k+"</a></li> "}}this.loaded_popup_menus[e]=g}if(g){var o=a("#popup_menu_area").html("<ul>"+g+"</ul>"),p={top:d.page_y,left:d.page_x};o.outerHeight()+p.top>a(window).height()+a(window).scrollTop()&&(p.top=a(window).height()-o.outerHeight()+a(window).scrollTop()),o.outerWidth()+p.left>a(window).width()+a(window).scrollLeft()&&(p.left=a(window).width()-o.outerWidth()+a(window).scrollLeft()),o.css({top:p.top,left:p.left}).show().focus()}}}}(jQuery),jQuery(function(a){a.browser.msie&&a("select").each(function(a,b){for(var c=!1,d=[],e=0;e<b.options.length;e++)b.options[e].disabled?(b.options[e].style.color="#CCCCCC",c=!0):d[a]=d[a]>-1?d[a]:e;c&&(b.oldonchange=b.onchange,b.onchange=function(){this.options[this.selectedIndex].disabled?this.selectedIndex=d[a]:this.oldonchange&&this.oldonchange()},b.selectedIndex>=0&&b.options[b.selectedIndex].disabled&&b.onchange())});var b=a(".xe_content .fold_button");if(b.size()){var c=a("div.fold_container",b);a("button.more",b).click(function(){a(this).hide().next("button").show().parent().next(c).show()}),a("button.less",b).click(function(){a(this).hide().prev("button").show().parent().next(c).hide()})}jQuery('input[type="submit"],button[type="submit"]').click(function(a){var b=jQuery(a.currentTarget);setTimeout(function(){return function(){b.attr("disabled","disabled")}}(),0),setTimeout(function(){return function(){b.removeAttr("disabled")}}(),3e3)})}),function(){function a(a,b){return a.replace(/#.*$/,"")===b.replace(/#.*$/,"")}var b=Array.isArray||function(a){return"[object Array]"==Object.prototype.toString.call(a)};String.prototype.getQuery=function(b){var c=a(this,window.location.href)?current_url:this,d=c.indexOf("?");if(-1==d)return null;var e=c.substr(d+1,this.length),f={};e.replace(/([^=]+)=([^&]*)(&|$)/g,function(){f[arguments[1]]=arguments[2]});var g=f[b];return"undefined"==typeof g&&(g=""),g},String.prototype.setQuery=function(c,d){var e,f,g,h,i,j=a(this,window.location.href)?current_url:this,k=j.indexOf("?"),l=j.replace(/#$/,"");if("undefined"==typeof d&&(d=""),-1!=k){var m={},n=[];i=l.substr(k+1,j.length),l=j.substr(0,k),i.replace(/([^=]+)=([^&]*)(&|$)/g,function(a,b,c){m[b]=c}),m[c]=d;for(var o in m)m.hasOwnProperty(o)&&(g=String(m[o]).trim())&&n.push(o+"="+decodeURI(g));i=n.join("&"),l+=i?"?"+encodeURI(i):""}else String(d).trim()&&(i="?"+c+"="+d,l+=encodeURI(i));var p=!!window.enforce_ssl;if(!p&&b(window.ssl_actions)&&(e=l.getQuery("act")))for(var q=0,r=ssl_actions.length;r>q;q++)if(ssl_actions[q]===e){p=!0;break}return f=/https?:\/\/([^:\/]+)(:\d+|)/i,p&&f.test(l)&&(h="https://"+RegExp.$1,window.https_port&&443!=https_port&&(h+=":"+https_port),l=l.replace(f,h)),!p&&f.test(l)&&(h="http://"+RegExp.$1,window.http_port&&80!=http_port&&(h+=":"+http_port),l=l.replace(f,h)),l=l.replace(/\/(index\.php)?\?/,"/index.php?")},String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")}}();var winopen_list=[],objForSavedDoc=null,addedDocument=[],Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(a){var b,c,d,e,f,g,h,i="",j=0;for(a=Base64._utf8_encode(a);j<a.length;)b=a.charCodeAt(j++),c=a.charCodeAt(j++),d=a.charCodeAt(j++),e=b>>2,f=(3&b)<<4|c>>4,g=(15&c)<<2|d>>6,h=63&d,isNaN(c)?g=h=64:isNaN(d)&&(h=64),i=i+this._keyStr.charAt(e)+this._keyStr.charAt(f)+this._keyStr.charAt(g)+this._keyStr.charAt(h);return i},decode:function(a){var b,c,d,e,f,g,h,i="",j=0;for(a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");j<a.length;)e=this._keyStr.indexOf(a.charAt(j++)),f=this._keyStr.indexOf(a.charAt(j++)),g=this._keyStr.indexOf(a.charAt(j++)),h=this._keyStr.indexOf(a.charAt(j++)),b=e<<2|f>>4,c=(15&f)<<4|g>>2,d=(3&g)<<6|h,i+=String.fromCharCode(b),64!=g&&(i+=String.fromCharCode(c)),64!=h&&(i+=String.fromCharCode(d));return i=Base64._utf8_decode(i)},_utf8_encode:function(a){a=a.replace(/\r\n/g,"\n");for(var b="",c=0;c<a.length;c++){var d=a.charCodeAt(c);128>d?b+=String.fromCharCode(d):d>127&&2048>d?(b+=String.fromCharCode(d>>6|192),b+=String.fromCharCode(63&d|128)):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128),b+=String.fromCharCode(63&d|128))}return b},_utf8_decode:function(a){for(var b="",c=0,d=0,e=0,f=0;c<a.length;)d=a.charCodeAt(c),128>d?(b+=String.fromCharCode(d),c++):d>191&&224>d?(e=a.charCodeAt(c+1),b+=String.fromCharCode((31&d)<<6|63&e),c+=2):(e=a.charCodeAt(c+1),f=a.charCodeAt(c+2),b+=String.fromCharCode((15&d)<<12|(63&e)<<6|63&f),c+=3);return b}};"undefined"==typeof resizeImageContents&&(window.resizeImageContents=function(){}),"undefined"==typeof activateOptionDisabled&&(window.activateOptionDisabled=function(){}),objectExtend=jQuery.extend;var loaded_popup_menus=XE.loaded_popup_menus;jQuery(function(a){a(document).on("click",function(b){var c=a("#popup_menu_area");c.length||(c=a('<div id="popup_menu_area" tabindex="0" style="display:none;z-index:9999" />').appendTo(document.body)),c.hide();var d=a(b.target).filter("a,div,span");if(d.length||(d=a(b.target).closest("a,div,span")),d.length){var e,f=d.attr("class");if(f&&(e=f.match(new RegExp("(?:^| )((document|comment|member)_([1-9]\\d*))(?: |$)",""))),e){if(void 0===b.pageX||void 0===b.pageY){var g=b.originalEvent.touches[0];void 0===g&&g||(g=b.originalEvent.changedTouches[0]),b.pageX=g.pageX,b.pageY=g.pageY}var h="get"+ucfirst(e[2])+"Menu",i={mid:current_mid,cur_mid:current_mid,menu_id:e[1],target_srl:e[3],cur_act:current_url.getQuery("act"),page_x:b.pageX,page_y:b.pageY},j="error message menus".split(" ");if(b.preventDefault(),b.stopPropagation(),is_def(window.xeVid)&&(i.vid=xeVid),is_def(XE.loaded_popup_menus[i.menu_id]))return XE.displayPopupMenu(i,j,i);show_waiting_message=!1,exec_xml("member",h,i,XE.displayPopupMenu,j,i),show_waiting_message=!0}}}),a("a._xe_popup").click(function(){var b,c=a(this),d=c.attr("name"),e=c.attr("href");return d||(d="_xe_popup_"+Math.floor(1e3*Math.random())),b=window.open(e,d,"left=10,top=10,width=10,height=10,resizable=no,scrollbars=no,toolbars=no"),b&&b.focus(),!1}),a.datepicker&&a.datepicker.setDefaults({dateFormat:"yy-mm-dd"})}),function(a){function b(){var b=function(){var b=this;a.isArray(this._plugins)&&(this._plugins=[]),this._messages?this._messages={}:this._binded_fn={},a.each(this,function(c,d){if(!a.isFunction(d))return!0;if(!/^API_([A-Z0-9_]+)$/.test(c))return!0;var e=RegExp.$1,f=function(a,d){return b[c](a,d)};b._messages?b._messages[e]=[f]:b._binded_fn[e]=f}),a.isFunction(this.init)&&this.init.apply(this,arguments)};return b}var c,d,e,f=[];c={getName:function(){return"Core"},createApp:function(c,e){var f=b();return a.extend(f.prototype,d,e),f.prototype.getName=function(){return c},f},createPlugin:function(c,d){var f=b();return a.extend(f.prototype,e,d),f.prototype.getName=function(){return c},f},getApps:function(){return a.makeArray(f)},getApp:function(a){return a=(a||"").toLowerCase(), "undefined"!=typeof f[a]?f[a]:null},registerApp:function(b){var c=b.getName().toLowerCase();f.push(b),a.isArray(f[c])||(f[c]=[]),f[c].push(b),b.parent=this,a.isFunction(b.activate)&&b.activate()},unregisterApp:function(b){var c=b.getName().toLowerCase(),d=a.inArray(b,f);d>=0&&(f=f.splice(d,1)),a.isArray(f[c])&&(d=a.inArray(b,f[c]),d>=0&&(f[c]=f[c].splice(d,1))),a.isFunction(b.deactivate)&&b.deactivate()},broadcast:function(a,b){this._broadcast(this,a,b)},_broadcast:function(a,b,c){for(var d=0;d<f.length;d++)f[d]._cast(a,b,c);this._cast(a,b,c)}},d={_plugins:[],_messages:{},getPlugin:function(b){return b=b.toLowerCase(),a.isArray(this._plugins[b])?this._plugins[b]:[]},registerPlugin:function(b){var c=this,d=b.getName().toLowerCase();return a.inArray(b,this._plugins)>=0?!1:(this._plugins.push(b),a.isArray(this._plugins[d])||(this._plugins[d]=[]),this._plugins[d].push(b),a.each(b._binded_fn,function(a,b){c.registerHandler(a,b)}),b.oApp=this,a.isFunction(b.activate)&&b.activate(),!0)},registerHandler:function(b,c){var d=this._messages;b=b.toUpperCase(),a.isArray(d[b])||(d[b]=[]),d[b].push(c)},cast:function(a,b){return this._cast(this,a,b||[])},broadcast:function(a,b,c){this.parent&&this.parent._broadcast&&this.parent._broadcast(a,b,c)},_cast:function(b,c,d){var e,f=this._messages;if(c=c.toUpperCase(),f["BEFORE_"+c]||this["API_BEFORE_"+c]){var g=this._cast(b,"BEFORE_"+c,d);if(!g)return}var h=[];if(a.isArray(f[c]))for(e=0;e<f[c].length;e++)h.push(f[c][e](b,d));return h.length<2&&(h=h[0]),(f["AFTER_"+c]||this["API_AFTER_"+c])&&this._cast(b,"AFTER_"+c,d),/^(?:AFTER|BEFORE)_/.test(c)?a.isArray(h)?a.inArray(!1,h)<0:"undefined"==typeof h?!0:!!h:h}},e={oApp:null,cast:function(a,b){return this.oApp&&this.oApp._cast?this.oApp._cast(this,a,b||[]):void 0},broadcast:function(a,b){this.oApp&&this.oApp.broadcast&&this.oApp.broadcast(this,mag,b||[])}},window.xe=a.extend(d,c),window.xe.lang={},a(function(){xe.broadcast("ONREADY")}),a(window).load(function(){xe.broadcast("ONLOAD")})}(jQuery),function(a,b){"function"==typeof define&&define.amd?define([],b):"object"==typeof exports?module.exports=b():a.X2JS=b()}(this,function(){return function(a){"use strict";function b(){void 0===a.escapeMode&&(a.escapeMode=!0),a.attributePrefix=a.attributePrefix||"_",a.arrayAccessForm=a.arrayAccessForm||"none",a.emptyNodeForm=a.emptyNodeForm||"text",void 0===a.enableToStringFunc&&(a.enableToStringFunc=!0),a.arrayAccessFormPaths=a.arrayAccessFormPaths||[],void 0===a.skipEmptyTextNodesForObj&&(a.skipEmptyTextNodesForObj=!0),void 0===a.stripWhitespaces&&(a.stripWhitespaces=!0),a.datetimeAccessFormPaths=a.datetimeAccessFormPaths||[],void 0===a.useDoubleQuotes&&(a.useDoubleQuotes=!1),a.xmlElementsFilter=a.xmlElementsFilter||[],a.jsonPropertiesFilter=a.jsonPropertiesFilter||[],void 0===a.keepCData&&(a.keepCData=!1)}function c(){}function d(a){var b=a.localName;return null==b&&(b=a.baseName),null!=b&&""!=b||(b=a.nodeName),b}function e(a){return a.prefix}function f(a){return"string"==typeof a?a.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):a}function g(a,b,c,d){for(var e=0;e<a.length;e++){var f=a[e];if("string"==typeof f){if(f==d)break}else if(f instanceof RegExp){if(f.test(d))break}else if("function"==typeof f&&f(b,c,d))break}return e!=a.length}function h(b,c,d){switch(a.arrayAccessForm){case"property":b[c]instanceof Array?b[c+"_asArray"]=b[c]:b[c+"_asArray"]=[b[c]]}!(b[c]instanceof Array)&&a.arrayAccessFormPaths.length>0&&g(a.arrayAccessFormPaths,b,c,d)&&(b[c]=[b[c]])}function i(a){var b=a.split(/[-T:+Z]/g),c=new Date(b[0],b[1]-1,b[2]),d=b[5].split(".");if(c.setHours(b[3],b[4],d[0]),d.length>1&&c.setMilliseconds(d[1]),b[6]&&b[7]){var e=60*b[6]+Number(b[7]),f=/\d\d-\d\d:\d\d$/.test(a)?"-":"+";e=0+("-"==f?-1*e:e),c.setMinutes(c.getMinutes()-e-c.getTimezoneOffset())}else-1!==a.indexOf("Z",a.length-1)&&(c=new Date(Date.UTC(c.getFullYear(),c.getMonth(),c.getDate(),c.getHours(),c.getMinutes(),c.getSeconds(),c.getMilliseconds())));return c}function j(b,c,d){if(a.datetimeAccessFormPaths.length>0){var e=d.split(".#")[0];return g(a.datetimeAccessFormPaths,b,c,e)?i(b):b}return b}function k(b,c,d,e){return c==z.ELEMENT_NODE&&a.xmlElementsFilter.length>0?g(a.xmlElementsFilter,b,d,e):!0}function l(b,c){if(b.nodeType==z.DOCUMENT_NODE){for(var f=new Object,g=b.childNodes,i=0;i<g.length;i++){var m=g.item(i);if(m.nodeType==z.ELEMENT_NODE){var n=d(m);f[n]=l(m,n)}}return f}if(b.nodeType==z.ELEMENT_NODE){var f=new Object;f.__cnt=0;for(var g=b.childNodes,i=0;i<g.length;i++){var m=g.item(i),n=d(m);if(m.nodeType!=z.COMMENT_NODE){var o=c+"."+n;k(f,m.nodeType,n,o)&&(f.__cnt++,null==f[n]?(f[n]=l(m,o),h(f,n,o)):(null!=f[n]&&(f[n]instanceof Array||(f[n]=[f[n]],h(f,n,o))),f[n][f[n].length]=l(m,o)))}}for(var p=0;p<b.attributes.length;p++){var q=b.attributes.item(p);f.__cnt++,f[a.attributePrefix+q.name]=q.value}var r=e(b);return null!=r&&""!=r&&(f.__cnt++,f.__prefix=r),null!=f["#text"]&&(f.__text=f["#text"],f.__text instanceof Array&&(f.__text=f.__text.join("\n")),a.stripWhitespaces&&(f.__text=f.__text.trim()),delete f["#text"],"property"==a.arrayAccessForm&&delete f["#text_asArray"],f.__text=j(f.__text,n,c+"."+n)),null!=f["#cdata-section"]&&(f.__cdata=f["#cdata-section"],delete f["#cdata-section"],"property"==a.arrayAccessForm&&delete f["#cdata-section_asArray"]),0==f.__cnt&&"text"==a.emptyNodeForm?f="":1==f.__cnt&&null!=f.__text?f=f.__text:1!=f.__cnt||null==f.__cdata||a.keepCData?f.__cnt>1&&null!=f.__text&&a.skipEmptyTextNodesForObj&&(a.stripWhitespaces&&""==f.__text||""==f.__text.trim())&&delete f.__text:f=f.__cdata,delete f.__cnt,!a.enableToStringFunc||null==f.__text&&null==f.__cdata||(f.toString=function(){return(null!=this.__text?this.__text:"")+(null!=this.__cdata?this.__cdata:"")}),f}return b.nodeType==z.TEXT_NODE||b.nodeType==z.CDATA_SECTION_NODE?b.nodeValue:void 0}function m(b,c,d,e){var g="<"+(null!=b&&null!=b.__prefix?b.__prefix+":":"")+c;if(null!=d)for(var h=0;h<d.length;h++){var i=d[h],j=b[i];a.escapeMode&&(j=f(j)),g+=" "+i.substr(a.attributePrefix.length)+"=",g+=a.useDoubleQuotes?'"'+j+'"':"'"+j+"'"}return g+=e?"/>":">"}function n(a,b){return"</"+(null!=a.__prefix?a.__prefix+":":"")+b+">"}function o(a,b){return-1!==a.indexOf(b,a.length-b.length)}function p(b,c){return!!("property"==a.arrayAccessForm&&o(c.toString(),"_asArray")||0==c.toString().indexOf(a.attributePrefix)||0==c.toString().indexOf("__")||b[c]instanceof Function)}function q(a){var b=0;if(a instanceof Object)for(var c in a)p(a,c)||b++;return b}function r(b,c,d){return 0==a.jsonPropertiesFilter.length||""==d||g(a.jsonPropertiesFilter,b,c,d)}function s(b){var c=[];if(b instanceof Object)for(var d in b)-1==d.toString().indexOf("__")&&0==d.toString().indexOf(a.attributePrefix)&&c.push(d);return c}function t(b){var c="";return null!=b.__cdata&&(c+="<![CDATA["+b.__cdata+"]]>"),null!=b.__text&&(c+=a.escapeMode?f(b.__text):b.__text),c}function u(b){var c="";return b instanceof Object?c+=t(b):null!=b&&(c+=a.escapeMode?f(b):b),c}function v(a,b){return""===a?b:a+"."+b}function w(a,b,c,d){var e="";if(0==a.length)e+=m(a,b,c,!0);else for(var f=0;f<a.length;f++)e+=m(a[f],b,s(a[f]),!1),e+=x(a[f],v(d,b)),e+=n(a[f],b);return e}function x(a,b){var c="",d=q(a);if(d>0)for(var e in a)if(!p(a,e)&&(""==b||r(a,e,v(b,e)))){var f=a[e],g=s(f);if(null==f||void 0==f)c+=m(f,e,g,!0);else if(f instanceof Object)if(f instanceof Array)c+=w(f,e,g,b);else if(f instanceof Date)c+=m(f,e,g,!1),c+=f.toISOString(),c+=n(f,e);else{var h=q(f);h>0||null!=f.__text||null!=f.__cdata?(c+=m(f,e,g,!1),c+=x(f,v(b,e)),c+=n(f,e)):c+=m(f,e,g,!0)}else c+=m(f,e,g,!1),c+=u(f),c+=n(f,e)}return c+=u(a)}var y="1.2.0";a=a||{},b(),c();var z={ELEMENT_NODE:1,TEXT_NODE:3,CDATA_SECTION_NODE:4,COMMENT_NODE:8,DOCUMENT_NODE:9};this.parseXmlString=function(a){var b=window.ActiveXObject||"ActiveXObject"in window;if(void 0===a)return null;var c;if(window.DOMParser){var d=new window.DOMParser,e=null;if(!b)try{e=d.parseFromString("INVALID","text/xml").getElementsByTagName("parsererror")[0].namespaceURI}catch(f){e=null}try{c=d.parseFromString(a,"text/xml"),null!=e&&c.getElementsByTagNameNS(e,"parsererror").length>0&&(c=null)}catch(f){c=null}}else 0==a.indexOf("<?")&&(a=a.substr(a.indexOf("?>")+2)),c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(a);return c},this.asArray=function(a){return void 0===a||null==a?[]:a instanceof Array?a:[a]},this.toXmlDateTime=function(a){return a instanceof Date?a.toISOString():"number"==typeof a?new Date(a).toISOString():null},this.asDateTime=function(a){return"string"==typeof a?i(a):a},this.xml2json=function(a){return l(a)},this.xml_str2json=function(a){var b=this.parseXmlString(a);return null!=b?this.xml2json(b):null},this.json2xml_str=function(a){return x(a,"")},this.json2xml=function(a){var b=this.json2xml_str(a);return this.parseXmlString(b)},this.getVersion=function(){return y}}});var show_waiting_message=!0;!function(a){function b(b,c){var d="xeTmpIframe",e="xeVirtualForm";a("#"+d).length||a('<iframe name="%id%" id="%id%" style="position:absolute;left:-1px;top:1px;width:1px;height:1px"></iframe>'.replace(/%id%/g,d)).appendTo(document.body),a("#"+e).remove();var f=a('<form id="%id%"></form>'.replace(/%id%/g,e)).attr({id:e,method:"post",action:b,target:d});c.xeVirtualRequestMethod="xml",c.xeRequestURI=location.href.replace(/#(.*)$/i,""),c.xeVirtualRequestUrl=request_uri,a.each(c,function(b,c){a('<input type="hidden">').attr("name",b).attr("value",c).appendTo(f)}),f.appendTo(document.body).submit()}function c(a){var b={};for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b}function d(){return""}var e=new X2JS;a.exec_xml=window.exec_xml=function(d,f,g,h,i,j,k){function l(b,c,g){var l,m=a(b).find("response")[0],n="",o={},p={};if(x.css("display","none").trigger("cancel_confirm"),!m)return alert(v.responseText),null;if(l=e.xml2json(b).response,"undefined"==typeof l){o.error=-1,o.message="Unexpected error occured.";try{"undefined"!=typeof(n=m.childNodes[0].firstChild.data)&&(o.message+="\r\n"+n)}catch(q){}return o}return a.each(i,function(a,b){p[b]=!0}),p.redirect_url=!0,p.act=!0,a.each(l,function(a,b){p[a]&&(o[a]=b)}),"0"!=o.error?a.isFunction(a.exec_xml.onerror)?a.exec_xml.onerror(d,f,o,h,i,j,k):(alert((o.message||"An unknown error occured while loading ["+d+"."+f+"]").replace(/\\n/g,"\n")),null):o.redirect_url?(location.href=o.redirect_url.replace(/&/g,"&"),null):void(a.isFunction(h)&&h(o,i,j,k))}var m=request_uri+"index.php";if(g||(g={}),a.isArray(g)&&(g=c(g)),g.module=d,g.act=f,"undefined"!=typeof xeVid&&(g.vid=xeVid),"undefined"==typeof i||i.length<1?i=["error","message"]:i.push("error","message"),a.isArray(ssl_actions)&&g.act&&a.inArray(g.act,ssl_actions)>=0){var n=default_url||request_uri,o=window.https_port||443,p=a("<a>").attr("href",n)[0],q="https://"+p.hostname.replace(/:\d+$/,"");443!=o&&(q+=":"+o),"/"!=p.pathname[0]&&(q+="/"),q+=p.pathname,m=q.replace(/\/$/,"")+"/index.php"}var r=a("<a>").attr("href",location.href)[0],s=a("<a>").attr("href",m)[0];if(r.protocol!=s.protocol||r.port!=s.port)return b(m,g);var t=[],u=function(b){var c=[];return a.isArray(b)?a.each(b,function(a,b){c.push('<value type="array">'+u(b)+"</value>")}):a.isPlainObject(b)?a.each(b,function(a,b){c.push("<"+a+">"+u(b)+"</"+a+">")}):a.isFunction(b)||c.push(String(b).replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")),c.join("\n")};t.push('<?xml version="1.0" encoding="utf-8" ?>'),t.push("<methodCall>"),t.push("<params>"),t.push(u(g)),t.push("</params>"),t.push("</methodCall>");var v=null;v&&0!==v.readyState&&v.abort();try{a.ajax({url:m,type:"POST",dataType:"xml",data:t.join("\n"),contentType:"text/plain",beforeSend:function(a){v=a},success:l,error:function(a,b){x.css("display","none");var c="";if("parsererror"==b){if(c="The result is not valid XML :\n-------------------------------------\n",""===a.responseText)return;c+=a.responseText.replace(/<[^>]+>/g,"")}else c=b;try{console.log(c)}catch(d){}}})}catch(w){return void alert(w)}var x=a(".wfsr");if(show_waiting_message&&x.length){var y=a(".wfsr").data("timeout_id");y&&clearTimeout(y),a(".wfsr").css("opacity",0),a(".wfsr").data("timeout_id",setTimeout(function(){a(".wfsr").css("opacity","")},1e3)),x.html(waiting_message).show()}},a.exec_json=window.exec_json=function(b,c,d,e){if("undefined"==typeof c&&(c={}),b=b.split("."),2==b.length){var f=a(".wfsr").data("timeout_id");f&&clearTimeout(f),a(".wfsr").css("opacity",0),a(".wfsr").data("timeout_id",setTimeout(function(){a(".wfsr").css("opacity","")},1e3)),show_waiting_message&&a(".wfsr").html(waiting_message).show(),a.extend(c,{module:b[0],act:b[1]}),"undefined"!=typeof xeVid&&a.extend(c,{vid:xeVid});try{a.ajax({type:"POST",dataType:"json",url:request_uri,contentType:"application/json",data:a.param(c),success:function(b){return a(".wfsr").hide().trigger("cancel_confirm"),"0"!=b.error&&b.error>-1e3?-1==b.error&&"msg_is_not_administrator"==b.message?(alert("You are not logged in as an administrator"),void(a.isFunction(e)&&e(b))):(alert(b.message),void(a.isFunction(e)&&e(b))):void(a.isFunction(d)&&d(b))},error:function(b,c){a(".wfsr").hide();var d="";if("parsererror"==c){if(d="The result is not valid JSON :\n-------------------------------------\n",""===b.responseText)return;d+=b.responseText.replace(/<[^>]+>/g,"")}else d=c;try{console.log(d)}catch(e){}}})}catch(g){return void alert(g)}}},a.fn.exec_html=function(b,c,d,e,f){"undefined"==typeof c&&(c={}),a.inArray(d,["html","append","prepend"])||(d="html");var g=a(this);if(b=b.split("."),2==b.length){var h=a(".wfsr").data("timeout_id");h&&clearTimeout(h),a(".wfsr").css("opacity",0),a(".wfsr").data("timeout_id",setTimeout(function(){a(".wfsr").css("opacity","")},1e3)),show_waiting_message&&a(".wfsr").html(waiting_message).show(),a.extend(c,{module:b[0],act:b[1]});try{a.ajax({type:"POST",dataType:"html",url:request_uri,data:a.param(c),success:function(b){a(".wfsr").hide().trigger("cancel_confirm"),g[d](b),a.isFunction(e)&&e(f)},error:function(b,c){a(".wfsr").hide();var d="";if("parsererror"==c){if(d="The result is not valid page :\n-------------------------------------\n",""===b.responseText)return;d+=b.responseText.replace(/<[^>]+>/g,"")}else d=c;try{console.log(d)}catch(e){}}})}catch(i){return void alert(i)}}},a(function(a){a(document).ajaxStart(function(){a(window).bind("beforeunload",d)}).bind("ajaxStop cancel_confirm",function(){a(window).unbind("beforeunload",d)})})}(jQuery),function(a){function b(a){var b=[];return a.is(":radio")?a.filter(":checked").val():a.is(":checkbox")?(a.filter(":checked").each(function(){b.push(this.value)}),b.join("|@|")):a.val()}function c(a){if(a+="",!a.length)return 0;a=encodeURI(a);var b=a.split("%").length-1;return a.length-2*b}var d=[],e=[],g={},h=[],i={},j=xe.createApp("Validator",{init:function(){var a=/^[\w-]+((?:\.|\+|\~)[\w-]+)*@[\w-]+(\.[\w-]+)+$/;this.cast("ADD_RULE",["email",a]),this.cast("ADD_RULE",["email_address",a]);var b=/^[a-z]+[\w-]*[a-z0-9_]+$/i;this.cast("ADD_RULE",["userid",b]),this.cast("ADD_RULE",["user_id",b]);var c=/^(https?|ftp|mms):\/\/[0-9a-z-]+(\.[_0-9a-z-]+)+(:\d+)?/;this.cast("ADD_RULE",["url",c]),this.cast("ADD_RULE",["homepage",c]);var d=new RegExp("^[ê°€-힣]*$");this.cast("ADD_RULE",["korean",d]);var e=new RegExp("^[ê°€-힣0-9]*$");this.cast("ADD_RULE",["korean_number",e]);var f=/^[a-z]*$/i;this.cast("ADD_RULE",["alpha",f]);var g=/^[a-z][a-z0-9_]*$/i;this.cast("ADD_RULE",["alpha_number",g]);var h=/^[0-9]*$/;this.cast("ADD_RULE",["number",h]);var i=/^\d+(\.\d+)?$/;this.cast("ADD_RULE",["float",i])},run:function(a){var b="";a._filter&&(b=a._filter.value);var c=[a,b],d=this.cast("VALIDATE",c);return"undefined"==typeof d&&(d=!1),d},API_ONREADY:function(){var b=this;a("form").each(function(){this.onsubmit&&(this["xe:onsubmit"]=this.onsubmit,this.onsubmit=null)}).submit(function(c){var d=this["xe:onsubmit"],e=a.isFunction(d),f=e?d.apply(this):b.run(this);return f||c.stopImmediatePropagation(),f})},API_VALIDATE:function(d,e){function j(a){return a.replace(/([\.\+\-\[\]\{\}\(\)\\])/g,"\\$1")}var k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H=!0,I=e[0],J=I.elements;if(J.ruleset?k=I.elements.ruleset.value:J._filter&&(k=I.elements._filter.value),!k)return!0;for(a.isFunction(h[k])&&(m=h[k]),k=a.extend({},g[k.toLowerCase()]||{},i),n=[],C=0,D=I.elements.length;D>C;C++)q=J[C],p=q.name,p&&J[p]&&(J[p].length&&J[p][0]!==q||n.push(p));n=n.join("\n"),l={};for(p in k)if(k.hasOwnProperty(p)&&(o=[],"^"==p.substr(0,1))){for(o=n.match(new RegExp("^"+j(p.substr(1))+".*$","gm")),o||(o=[]),C=0,D=o.length;D>C;C++)l[o[C]]=k[p];k[p]=null,delete k[p]}k=a.extend(k,l);for(p in k)if(k.hasOwnProperty(p)&&(f=k[p],q=J[p],q||(q=J[p+"[]"]),r=q?a.trim(b(a(q))):"",s=(f.modifier||"")+",",q&&!q.disabled)){if(f["if"])for(a.isArray(f["if"])||(f["if"]=[f["if"]]),C=0;C<f["if"].length;C++)F=f["if"][C],G=new Function("el","return !!("+F.test.replace(/\$(\w+)/g,"(jQuery('[name=$1]').is(':radio, :checkbox') ? jQuery('[name=$1]:checked').val() : jQuery('[name=$1]').val())")+")"),G(J)?f[F.attr]=F.value:delete f[F.attr];if(r){if(w=parseInt(f.minlength)||0,v=parseInt(f.maxlength)||0,y=/b$/.test(f.minlength||""),x=/b$/.test(f.maxlength||""),t=r.length,(y||x)&&(u=c(r)),w&&w>(y?u:t)||v&&(x?u:t)>v)return this.cast("ALERT",[I,p,"outofrange",w,v])&&!1;if(f.equalto&&(A=J[f.equalto],B=A?a.trim(b(a(A))):"",A&&B!==r))return this.cast("ALERT",[I,p,"equalto"])&&!1;for(z=(f.rule||"").split(","),C=0,D=z.length;D>C;C++)if((E=z[C])&&(H=this.cast("APPLY_RULE",[E,r]),s.indexOf("not,")>-1&&(H=!H),!H))return this.cast("ALERT",[I,p,"invalid_"+E])&&!1}else if(f["default"]&&(r=f["default"]),f.required)return this.cast("ALERT",[I,p,"isnull"])&&!1}return a.isFunction(m)?m(I):!0},API_ADD_RULE:function(a,b){var c=b[0].toLowerCase();e[c]=b[1]},API_DEL_RULE:function(a,b){var c=b[0].toLowerCase();delete e[c]},API_GET_RULE:function(a,b){var c=b[0].toLowerCase();return e[c]?e[c]:null},API_ADD_FILTER:function(a,b){var c=b[0].toLowerCase(),d=b[1];g[c]=d},API_DEL_FILTER:function(a,b){var c=b[0].toLowerCase();delete g[c]},API_GET_FILTER:function(a,b){var c=b[0].toLowerCase();return g[c]?g[c]:null},API_ADD_EXTRA_FIELD:function(a,b){var c=b[0].toLowerCase(),d=b[1];i[c]=d},API_GET_EXTRA_FIELD:function(a,b){var c=b[0].toLowerCase();return i[c]},API_DEL_EXTRA_FIELD:function(a,b){var c=b[0].toLowerCase();delete i[c]},API_APPLY_RULE:function(b,c){var d=c[0],f=c[1];return"undefined"==typeof e[d]?!0:a.isFunction(e[d])?e[d](f):e[d]instanceof RegExp?e[d].test(f):a.isArray(e[d])?a.inArray(f,e[d])>-1:!0},API_ALERT:function(b,c){var d=c[0],e=c[1],f=c[2],g=c[3],h=c[4],i=this.cast("GET_MESSAGE",[e]),j=this.cast("GET_MESSAGE",[f]);j!=f&&(j=j.indexOf("%s")<0?i+j:j.replace("%s",i)),(g||h)&&(j+="("+(g||"")+"~"+(h||"")+")"),this.cast("SHOW_ALERT",[j]),a(d.elements[e]).focus()},API_SHOW_ALERT:function(a,b){alert(b[0])},API_ADD_MESSAGE:function(a,b){var c=b[0],e=b[1];d[c]=e},API_GET_MESSAGE:function(a,b){var c=b[0];return d[c]||c},API_ADD_CALLBACK:function(a,b){var c=b[0],d=b[1];h[c]=d},API_REMOVE_CALLBACK:function(a,b){var c=b[0];delete h[c]}}),k=new j;xe.registerApp(k);var l=xe.createPlugin("editor_stub",{API_BEFORE_VALIDATE:function(a,b){var c=b[0],d=c.getAttribute("editor_sequence");if(d&&"object"==typeof d&&(d=d.value),d)try{editorRelKeys[d].content.value=editorRelKeys[d].func(d)||""}catch(e){}}});k.registerPlugin(new l)}(jQuery);