jQuery(function(b){var a=27;b(".form li").find('>input:text:not(".notmulti"),>input:password,>textarea').filter('input[value!=""],textarea:not(:empty)').prev("label").css("visibility","hidden").end().end().prev("label").addClass("overlap").css({top:"15px",left:"5px"}).next().focus(function(){var d=b(this).prev().stop().animate({opacity:0,left:"25px"},"fast",function(){d.css("visibility","hidden");});}).blur(function(){var e=b(this),d;if(b.trim(e.val())==""){d=e.prev().stop().css("visibility","visible").animate({opacity:1,left:"5px"},"fast");}}).end().parent().css("position","relative");b(".form th>input:checkbox").change(function(){var e=b(this),d=e.data("name");e.closest("table").find("input:checkbox").filter(function(){var f=b(this);return !f.prop("disabled")&&((f.attr("name")==d)||(f.data("name")==d));}).prop("checked",e.prop("checked")).end().end().trigger("update.checkbox",[d,this.checked]);});b.fn.xePagination=function(){this.not(".xe-pagination").addClass("xe-pagination").find("span.tgContent").css("whiteSpace","nowrap").end().find("a.tgAnchor").each(function(d){var e=b(this);e.after(b(e.attr("href")));}).end();return this;};b(".pagination").xePagination();b(".portlet .action").css({display:"none",position:"absolute"}).parent().mouseleave(function(){b(this).find(">.action").fadeOut(100);}).mouseenter(function(){b(this).find(">.action").fadeIn(100);}).focusin(function(){b(this).mouseenter();}).focusout(function(){var d=b(this),e;clearTimeout(d.data("timer"));e=setTimeout(function(){if(!d.find(":focus").length){d.mouseleave();}},10);d.data("timer",e);});b(window).resize(function(){if(b(document).width()<1300){b(".dashboard>.section>br").remove();b(".dashboard>.section>.portlet:odd").after('
');}else{b(".dashboard>.section>br").remove();b(".dashboard>.section>.portlet:eq(2),.dashboard>.section>.portlet:eq(5)").after('
');}});b(window).resize();b(".header>.siteTool>a.i").bind("before-open.tc",function(){b(this).addClass("active").next("div.tgContent").find(">.section:gt(0)").hide().end().find(">.btnArea>button").show();}).bind("after-close.tc",function(){b(this).removeClass("active");}).next("#siteMapList").find(">.section:last").after('

').find("+p>button").click(function(){b(this).hide().parent().prevAll(".section").show();});b.fn.xeMask=function(){this.each(function(){var d=b(this),f=d.text();var e=/^([\w\-\.]+?)@(([\w-]+\.)+[a-z]{2,})$/ig;if(e.test(f)){d.html(f.replace(/(@.+)$/,'...$1')).find(">.ellipsis").css({position:"absolute",zIndex:1}).hover(function(){b(this).next(".cover").mouseover();},function(){b(this).next(".cover").mouseout();}).end().find(">.cover").css({zIndex:2,opacity:0}).hover(function(){b(this).css("opacity",1).prev("span").css("visibility","hidden");},function(){b(this).css("opacity",0).prev("span").css("visibility","visible");}).end();}});};b(".masked").xeMask();});jQuery(function(a){a.fn.xeMenu=function(){this.attr("role","navigation").find(">.nav-gnb>li").attr("role","menuitem").filter(":has(>ul)").attr("aria-haspopup","true").end().end().find(">.nav-gnb").mouseover(function(){a(this).parent(".gnb").addClass("active").end().find(">li>ul").css("height","auto").end();}).mouseleave(function(){a(this).parent(".gnb").removeClass("active").end().find(">li>ul").css("height","0").end();}).focusout(function(){var b=a(this);setTimeout(function(){if(!b.find(":focus").length){b.mouseleave();}},1);}).delegate("a",{focus:function(){a(this).mouseover();}});};a("div.gnb").xeMenu();a(".gnb>.mnv").change(function(){window.location.href=a(this).find("option:selected").val();});});jQuery(function(a){var b=27;a.fn.xeModalWindow=function(){this.not(".xe-modal-window").addClass("xe-modal-window").each(function(){a(a(this).attr("href")).addClass("x").hide();}).click(function(){var g=a(this),d,f,e;d=a(g.attr("href"));if(!d.parent("body").length){f=a('');f.click(function(){d.data("anchor").trigger("close.mw");});d.prepend('').append('').find(">.fg").prepend(f).append(f.clone(true)).end().appendTo("body");}d.data("anchor",g);if(d.data("state")=="showing"){g.trigger("close.mw");}else{g.trigger("open.mw");}return false;}).bind("open.mw",function(){var g=a(this),d,e,f;d=a.Event("before-open.mw");g.trigger(d);if(d.isDefaultPrevented()){return false;}e=a(g.attr("href"));f=g.data("duration")||"fast";e.data("state","showing");a("html,body").addClass("modalContainer");function h(){g.trigger("after-open.mw");}a(document).bind("keydown.mw",function(j){if(j.which==b){g.trigger("close.mw");return false;}});e.fadeIn(f,h).find(">.bg").height(a(document).height()).end().find("button.modalClose:first").focus();}).bind("close.mw",function(){var g=a(this),d,e,f;d=a.Event("before-close.mw");g.trigger(d);if(d.isDefaultPrevented()){return false;}e=a(g.attr("href"));f=g.data("duration")||"fast";e.data("state","hiding");a("html,body").removeClass("modalContainer");function h(){g.trigger("after-close.mw");}e.fadeOut(f,h);g.focus();});};a("a.modalAnchor").xeModalWindow();a("div.modal").addClass("x").hide();});jQuery(function(b){var a=false;var d=27;b.fn.xeContentToggler=function(){this.not(".xe-content-toggler").addClass("xe-content-toggler").each(function(){var e=b(this);$layer=b(e.attr("href"));$layer.hide().not(".xe-toggling-content").addClass("xe-toggling-content").mousedown(function(f){a=true;}).focusout(function(f){setTimeout(function(){if(!a&&!$layer.find(":focus").length&&$layer.data("state")=="showing"){e.trigger("close.tc");}a=false;},1);});}).click(function(){var f=b(this),e;e=b(f.attr("href"));e.data("anchor",f);if(e.data("state")=="showing"){f.trigger("close.tc");}else{f.trigger("open.tc");}return false;}).bind("open.tc",function(){var j=b(this),f,g,h;f=b(j.attr("href"));g=j.data("effect");h=j.data("duration")||"fast";f.data("state","showing");j.trigger("before-open.tc");a=false;b(document).unbind("mousedown.tc keydown.tc").bind("mousedown.tc keydown.tc",function(l){if(l){if(l.type=="keydown"&&l.which!=d){return true;}if(l.type=="mousedown"){var m=b(l.target);if(m.is("html,.tgAnchor,.tgContent")||f.has(m).length){return true;}}}j.trigger("close.tc");return false;});function k(){j.trigger("after-open.tc");}switch(g){case"slide":f.slideDown(h,k);break;case"slide-h":var e=f.css({"overflow-x":"",width:""}).width();f.show().css({"overflow-x":"hidden",width:"0px"}).animate({width:e},h,function(){f.css({"overflow-x":"",width:""});k();});break;case"fade":f.fadeIn(h,k);break;default:f.show();j.trigger("after-open.tc");}}).bind("close.tc",function(){var h=b(this),e,f,g;b(document).unbind("mousedown.tc keydown.tc");e=b(h.attr("href"));f=h.data("effect");g=h.data("duration")||"fast";e.data("state","hiding");h.trigger("before-close.tc");function j(){h.trigger("after-close.tc");}switch(f){case"slide":e.slideUp(g,j);break;case"slide-h":e.animate({width:0},g,function(){e.hide();j();});break;case"fade":e.fadeOut(g,j);break;default:e.hide();h.trigger("after-close.tc");}});return this;};b("a.tgAnchor").xeContentToggler();});jQuery(function(a){a.fn.xeModuleFinder=function(){this.not(".xe-module-finder").addClass("xe-module-finder").find("a.tgAnchor.findsite").bind("before-open.tc",function(){var d,b,e;d=a(this);b=a(d.attr("href")).find(">ul");e=d.prev("input:text").val();function f(j){var l,h=j.site_list,g,k;b.empty();d.closest(".modulefinder").find(".moduleList,.moduleIdList").attr("disabled","disabled");if(j.error||!a.isArray(h)){d.trigger("close.tc");return;}for(g=0,k=h.length;g").appendTo(b);a('');f(this).append(g);g.click(function(){var j=f(this);var h=j.parent().nextUntil(".h2, .h3").not(".langEdit, .tgContent, .modal");if(j.parent().next().is(":hidden")){j.find("i").attr("class","icon-chevron-up");h.slideDown(200);}else{j.find("i").attr("class","icon-chevron-down");h.slideUp(200);}});});});