",{rel:"stylesheet",type:"text/css",href:"/dist/css/jquery-ui-1.9.2.custom.min.css"}).appendTo("head"),$.getScript("/dist/js/jquery-ui-1.9.2.custom.min.js",function(){devLog("Search Page Load"),o.event()})},this.event=function(){$.datepicker.setDefaults({dateFormat:"yymmdd",prevText:"이전 달",nextText:"다음 달",monthNames:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],monthNamesShort:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayNames:["일","월","화","수","목","금","토"],dayNamesShort:["일","월","화","수","목","금","토"],dayNamesMin:["일","월","화","수","목","금","토"],showMonthAfterYear:!0,yearSuffix:"년"});var t=$("#__NEWSBOX__start_date"),i=$("#__NEWSBOX__end_date");t.datepicker({dateFormat:"yy.mm.dd",showOtherMonths:!0,selectOtherMonths:!0}),i.datepicker({dateFormat:"yy.mm.dd",showOtherMonths:!0,selectOtherMonths:!0}),$("#__NEWSBOX__date_day").click(function(){$(".date_options").removeClass("on"),$(this).parent("li").addClass("on"),t.datepicker("setDate",moment().add("-1","day").toDate()),i.datepicker("setDate",moment().toDate())}),$("#__NEWSBOX__date_week").click(function(){$(".date_options").removeClass("on"),$(this).parent("li").addClass("on"),t.datepicker("setDate",moment().add("-1","week").toDate()),i.datepicker("setDate",moment().toDate())}),$("#__NEWSBOX__date_month").click(function(){$(".date_options").removeClass("on"),$(this).parent("li").addClass("on"),t.datepicker("setDate",moment().add("-1","month").toDate()),i.datepicker("setDate",moment().toDate())}),$("#__NEWSBOX__date_year").click(function(){$(".date_options").removeClass("on"),$(this).parent("li").addClass("on"),t.datepicker("setDate",moment().add("-1","year").toDate()),i.datepicker("setDate",moment().toDate())}),$("#__NEWSBOX__date_commit").click(function(){var e;(t.val()||i.val())&&(e=o.Helper.changeQueryString(o.search_url,{page:1,start_date:t.val().replace(/\./gi,"-")||null,end_date:i.val().replace(/\./gi,"-")||null},o.storage_prefix),location.href=e)}),this.Helper.$dom.find(".__NEWSBOX__sec_type").change(function(){$(this).parents(".view_sec_item").find(".__NEWSBOX__sec_press").prop("checked",$(this).prop("checked"))}),this.Helper.$dom.find(".__NEWSBOX__sec_press").change(function(){var e=$(this).parents(".view_sec_item");0===e.find(".__NEWSBOX__sec_press:checked").length?e.find(".__NEWSBOX__sec_type").prop("checked",!1):0