<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ page import="cmm.util.CmmUtil" %>
<style>

@CHARSET "UTF-8";
/*info 지역*/
 .depth-2-info{
    display: none;
}
.depth-2-info > li{
    display: none;
}filter-category


/*좌측*/
#picklistForm .filter .check input[type="checkbox"]:checked + label{
    color:#333;
}
#numberlistForm .filter .check input[type="checkbox"]:checked + label{
    color:#333;
}
#storylistForm .filter .check input[type="checkbox"]:checked + label{
    color:#333;
}
#referencelistForm .filter .check input[type="checkbox"]:checked + label{
    color:#333;
}
#infolistForm .filter .check input[type="checkbox"]:checked + label{
    color:#333;
}

/* 링크 밑줄 없애기 */
#infolistForm .filter .check input[type="checkbox"] + label:focus, .filter .check input[type="checkbox"] + label:hover{
    text-decoration: none;
}

#referencelistForm .filter .check input[type="checkbox"] + label:focus, .filter .check input[type="checkbox"] + label:hover{
    text-decoration: none;
}

#storylistForm .filter .check input[type="checkbox"] + label:focus, .filter .check input[type="checkbox"] + label:hover{
    text-decoration: none;
}

#numberlistForm .filter .check input[type="checkbox"] + label:focus, .filter .check input[type="checkbox"] + label:hover{
    text-decoration: none;
}

#picklistForm .filter .check input[type="checkbox"] + label:focus, .filter .check input[type="checkbox"] + label:hover{
    text-decoration: none;
}

/*최근검색어*/
.mykeyword_width{
    /* width: auto !important; /*calc(100% - 60px)*/
}




</style>
<form name="listForm" id="referencelistForm"  action="/sch/totalSearchList.do"   method="post">
    <input type="hidden" name="collection" value="<c:out value='${searchVO.collection}'/>" /> 
    <input type="hidden" name="sortField" value="<c:out value='${searchVO.sortField}'/>" />
    <input type="hidden" name="searchField" value="<c:out value='${searchVO.searchField}'/>" />
    <input type="hidden" name="query"  value="${searchVO.query}" />
    <input type="hidden" name="exactQuery" value='${searchVO.exactQuery}'/>
    <input type="hidden" name="andQuery" value='${searchVO.andQuery}' />
    <input type="hidden" name="notQuery" value='${searchVO.notQuery}' />
    <input type="hidden" name="viewCount" value='${searchVO.viewCount}' />
    <input type="hidden" name="startCount" value='${searchVO.startCount}' />
    
    <input type="hidden" name="series" value='${searchVO.series}' />
    <input type="hidden" name="theme" value='${searchVO.theme}' />
    <input type="hidden" name="mgnt_no" value='${searchVO.mgnt_no}' />
    <input type="hidden" name="trs_age" value='${searchVO.trs_age}' />
    
    <input type="hidden" name="chronological_start" value='${searchVO.chronological_start}' />
    <input type="hidden" name="chronological_end" value='${searchVO.chronological_end}' />
    <input type="hidden" name="genyear_start" value='${searchVO.genyear_start}' />
    <input type="hidden" name="genyear_end" value='${searchVO.genyear_end}' />
    
    <input type="hidden" name="search_area_council_info" value='${searchVO.search_area_council_info}' />                
    <input type="hidden" name="content_type" value='${searchVO.content_type}' />
    
    <input type="hidden"  name="all_totalCount" value='${all_totalCount}' />
    <input type="hidden"  name="gubun" value='2' />
    
    <input type="hidden"  name="filter_class" />
    <input type="hidden"  name="filter_sido"  />
    <input type="hidden"  name="filter_thema"  />
    <input type="hidden"  name="filter_category" />
    <input type="hidden"  name="filter_info_sido" />
    <input type="hidden"  name="filter_info_type" />
      
    <input type="hidden"  name="filter_mylist"  id="filter_mylist"  value="${searchVO.filter_mylist}" />
    <input type="hidden"  name="filter_info_mylist"  id="filter_info_mylist"  value="${searchVO.filter_info_mylist}" />
    
    <input type="hidden"  name="gubun_ajax" value="2"/>
                      
<section id="contents" class="result-search">
    <div class="contents-frame inner-center">
        <div class="article-main">
            <div class="result-top">
                <dl>
                    <dt class="blind">검색결과 안내</dt>
                    <dd><em>'${searchVO.realQuery}'</em>에 대한 검색결과는 총 <strong><fmt:formatNumber value="${all_totalCount}" pattern="#,###" /></strong>건 입니다.</dd>
                </dl>
                <!-- <form> -->
                    <fieldset>
                        <legend>결과내 재검색</legend>
                        <div class="rescan-input ">
                            <input type="text" placeholder="결과내재검색" title="검색어 입력"  value="${searchVO.reQuery}" name="reQuery" onkeypress="util.setEnterkeyEnabled(event, fnRe_sch);">
                              <button  type="button"   onclick="fnRe_sch();">검색</button>
                        </div>
                    </fieldset>
                <!-- </form> -->
            </div>
            <nav class="search-tab-wrap">
                <h2 class="blind">검색결과 카테고리</h2>
                <div class="tab-box">
                    <ul class="tab-result">
                        <li <c:if test="${empty searchVO.collection or searchVO.collection eq 'ALL'}">class="on"</c:if>><a href="#" onclick="fnTabMove_sch('ALL');">통합검색 <span class="counts">(<fmt:formatNumber value="${totalCount}" pattern="#,###" />)</span> </a></li><!-- 활성화 class on 적용 -->
                        <li <c:if test="${searchVO.collection eq 'pick_Coll'}">class="on"</c:if>><a href="#" onclick="fnTabMove_sch('pick_Coll'); ">지역문화Pick <span class="counts">(<fmt:formatNumber value="${pick.totalCount}" pattern="#,###" />)</span></a></li>
                        <li <c:if test="${searchVO.collection eq 'culturePost_Coll'}">class="on"</c:if>><a href="#LINK" onclick="fnTabMove_sch('culturePost_Coll'); return false;">지역문화포스트  <span class="counts">(${culturePost.totalCount})</span></a></li>
                        <li <c:if test="${searchVO.collection eq 'story_Coll'}">class="on"</c:if>><a href="#LINK" onclick="fnTabMove_sch('story_Coll'); return false;">지역문화이야기 <span class="counts">(<fmt:formatNumber value="${story.totalCount}" pattern="#,###" />)</span></a></li>
                        <li <c:if test="${searchVO.collection eq 'reference_Coll'}">class="on"</c:if>><a href="#LINK" onclick="fnTabMove_sch('reference_Coll'); return false;">지방문화원자료 <span class="counts">(<fmt:formatNumber value="${reference.totalCount}" pattern="#,###" />)</span></a></li>
                        <li <c:if test="${searchVO.collection eq 'info_Coll'}">class="on"</c:if>><a href="#LINK" onclick="fnTabMove_sch('info_Coll'); return false;">지역문화정보 <span class="counts">(<fmt:formatNumber value="${info.totalCount}" pattern="#,###" />)</span> </a></li>
                        <li <c:if test="${searchVO.collection eq 'toon_Coll'}">class="on"</c:if>><a href="#LINK" onclick="fnTabMove_sch('toon_Coll'); return false;">지역문화툰 <span class="counts">(<fmt:formatNumber value="${toon.totalCount}" pattern="#,###" />)</span> </a></li>
                        <li <c:if test="${searchVO.collection eq 'number_Coll'}">class="on"</c:if>><a href="#LINK" onclick="fnTabMove_sch('number_Coll'); return false;">지역문화# <span class="counts">(<fmt:formatNumber value="${number.totalCount}" pattern="#,###" />)</span></a></li>
                    </ul>
                </div>
            </nav>
            
            <section class="list-box resources-box">
                <div class="title">
                    <h2>지방문화원자료</h2>
                    <span class="count">총 <em><fmt:formatNumber value="${reference.totalCount}" pattern="#,###" /></em>건</span>
                    <c:if test="${reference.totalCount > 0}">
                    <div class="list-search-wrap">
                        <ul class="tab-btn">
                            <li <c:if test="${empty searchVO.sortField or searchVO.sortField eq 'RANK/DESC'}">class="on"</c:if>><button onclick="doSorting('RANK/DESC','#referencelistForm'); return false;">정확도순</button></li>
                            <li <c:if test="${searchVO.sortField eq 'DATE/DESC'}">class="on"</c:if>><button onclick="doSorting('DATE/DESC','#referencelistForm'); return false;">최신순</button></li>
                            <li <c:if test="${searchVO.sortField eq 'DATE/ASC'}">class="on"</c:if>><button onclick="doSorting('DATE/ASC','#referencelistForm'); return false;">과거순</button></li>
                            <li <c:if test="${searchVO.sortField eq 'READ_CNT/DESC'}">class="on"</c:if>><button onclick="doSorting('READ_CNT/DESC','#referencelistForm'); return false;">인기순</button></li>
                        </ul>
                        <div class="list-select page-size">
                             <select name="orderCondition" id="orderCondition" title="리스트 개수 선택">
                                <option value="10" <c:if test="${searchVO.viewCount eq 10}">selected</c:if>>10개씩보기</option>
                                <option value="20" <c:if test="${searchVO.viewCount eq 20}">selected</c:if>>20개씩보기</option>
                                <option value="30" <c:if test="${searchVO.viewCount eq 30}">selected</c:if>>30개씩보기</option>
                                <option value="40" <c:if test="${searchVO.viewCount eq 40}">selected</c:if>>40개씩보기</option>
                            </select>
                        </div>
                    </div>
                    </c:if>
                </div>
               <div>
                 <c:if test="${searchVO.collection eq 'reference_Coll'}">
                    <c:choose>
                            <c:when test="${reference.totalCount == 0}">    
                                  <div class="empty-result">검색 결과가 없습니다.</div>
                              </c:when>     
                              <c:when test="${reference.totalCount > 0}">    
                                    <jsp:include page="/WEB-INF/jsp/nlib/collection/schResultReferenceList.jsp" flush="false" />
                    
                                    <%-- <ul class="paging">
                                        <ui:pagination paginationInfo="${paginationInfo}" type="image" jsFunction="linkPage_sch" />
                                    </ul> --%>
                             </c:when>    
                     </c:choose>        
                </c:if>       
                </div>
            </section><!-- //지방문화원자료 -->

        </div><!-- //article-main -->
        <div class="article-side">
            <section class="filter-wrap">
                <div class="filter-head">
                    <h2>검색결과 필터</h2>
                    <button type="button" class="btn-filter-reset" id="reference_filter_reset">초기화</button>
                </div>
                <div class="choice-condition">
                    <ul id="reference_fillter_append">
                    </ul>
                </div>
                <div class="filter-condition">
                    <div class="filter pop-culture-center">
                        <div class="filter-tit">
                            <h3>지역 / 문화원</h3>
                            <button type="button" class="btn-toggle">닫기</button>
                        </div>
                        <div class="pop-choice-condition">
                            <p>선택조건 <button type="button" class="reference_popup_reset">초기화</button></p>
                            <ul id="reference_council_append">
                            </ul>
                        </div>
                        <div class="filter-list">
                            <ul>
                                <c:forEach items="${couSidoList}" var="couSidoInfo" varStatus="sidoStatus" begin="0" end="5">
                                <li class="line-1">
                                    <div class="depth-1 <c:if test="${fn:contains(searchVO.filter_sido, couSidoInfo.code) }"> on</c:if>">
                                        <div class="check"><input type="checkbox" id="local-chk${sidoStatus.index+1}"    value="${couSidoInfo.code}" name="sido_name"  <c:if test="${fn:contains(searchVO.sido_name, couSidoInfo.code) }">checked= "checked" class="cmm-list-chk" </c:if>/><label for="local-chk${sidoStatus.index+1}">${couSidoInfo.codeNm}(<span>0</span>)</label></div>
                                        <button type="button" class="btn-toggle">닫기</button>
                                    </div>
                                    <ul class="depth-2">
                                        <c:forEach items="${councilList}" var="council" varStatus="couStatus">
                                        <c:if test="${couSidoInfo.code eq council.subCouncilCd}" >
                                        <li><div class="check"><input type="checkbox" value="${council.councilCd}" id="local-chk${sidoStatus.index+1}-${couStatus.index+1}"    name="sojang_council"  <c:if test="${fn:contains(searchVO.sojang_council, council.councilCd) }">checked= "checked" class="cmm-list-chk" </c:if>/><label for="local-chk${sidoStatus.index+1}-${couStatus.index+1}">${council.councilNm}(<span>0</span>)</label></div></li>
                                        </c:if>
                                        </c:forEach>
                                    </ul>
                                </li>
                                </c:forEach>
                                <c:forEach items="${couSidoList}" var="couSidoInfo" varStatus="sidoStatus" begin="6" end="11">
                                <li class="line-2">
                                    <div class="depth-1 <c:if test="${fn:contains(searchVO.filter_sido, couSidoInfo.code) }"> on</c:if>">
                                        <div class="check"><input type="checkbox" id="local-chk${sidoStatus.index+1}"    value="${couSidoInfo.code}" name="sido_name"  <c:if test="${fn:contains(searchVO.sido_name, couSidoInfo.code) }">checked= "checked" class="cmm-list-chk" </c:if>/><label for="local-chk${sidoStatus.index+1}">${couSidoInfo.codeNm}(<span>0</span>)</label></div>
                                        <button type="button" class="btn-toggle">닫기</button>
                                    </div>
                                    <ul class="depth-2">
                                        <c:forEach items="${councilList}" var="council" varStatus="couStatus">
                                        <c:if test="${couSidoInfo.code eq council.subCouncilCd}" >
                                        <li><div class="check"><input type="checkbox" value="${council.councilCd}" id="local-chk${sidoStatus.index+1}-${couStatus.index+1}"    name="sojang_council"  <c:if test="${fn:contains(searchVO.sojang_council, council.councilCd) }">checked= "checked" class="cmm-list-chk" </c:if>/><label for="local-chk${sidoStatus.index+1}-${couStatus.index+1}">${council.councilNm}(<span>0</span>)</label></div></li>
                                        </c:if>
                                        </c:forEach>
                                    </ul>
                                </li>
                                </c:forEach>
                                <c:forEach items="${couSidoList}" var="couSidoInfo" varStatus="sidoStatus" begin="12" end="${fn:length(couSidoList)}">
                                <li class="line-3">
                                    <div class="depth-1 <c:if test="${fn:contains(searchVO.filter_sido, couSidoInfo.code) }"> on</c:if>">
                                        <div class="check"><input type="checkbox" id="local-chk${sidoStatus.index+1}"    value="${couSidoInfo.code}" name="sido_name"  <c:if test="${fn:contains(searchVO.sido_name, couSidoInfo.code) }">checked= "checked" class="cmm-list-chk" </c:if>/><label for="local-chk${sidoStatus.index+1}">${couSidoInfo.codeNm}(<span>0</span>)</label></div>
                                        <button type="button" class="btn-toggle">닫기</button>
                                    </div>
                                    <ul class="depth-2">
                                        <c:forEach items="${councilList}" var="council" varStatus="couStatus">
                                        <c:if test="${couSidoInfo.code eq council.subCouncilCd}" >
                                        <li><div class="check"><input type="checkbox" value="${council.councilCd}" id="local-chk${sidoStatus.index+1}-${couStatus.index+1}"    name="sojang_council"  <c:if test="${fn:contains(searchVO.sojang_council, council.councilCd) }">checked= "checked" class="cmm-list-chk" </c:if>/><label for="local-chk${sidoStatus.index+1}-${couStatus.index+1}">${council.councilNm}(<span>0</span>)</label></div></li>
                                        </c:if>
                                        </c:forEach>
                                    </ul>
                                </li>
                                </c:forEach>
                            </ul>
                        </div>
                        <button type="button" class="btn-all-view"  id="btn-search-detail-reference">문화원 전체보기</button>
                        <div class="pop-btn-wrap">
                            <button type="button" class="btn btn-color reference_popup_reset_2" >초기화</button>
                            <!-- <button type="button" class="btn btn-color" onclick="fnFilterSch();">검색</button> -->
                            <button type="button" class="btn btn-gray">닫기</button>
                        </div>
                    </div>
                    <div class="filter">
                        <div class="filter-tit">
                            <h3>주제분야</h3>
                            <button type="button" class="btn-toggle">닫기</button>
                        </div>
                        <div class="filter-list">
                            <ul>
                                <c:forEach items="${firstCategoryList}" var="firstCategoryInfo" varStatus="fiStatus">
                                <li>
                                    <div class="depth-1"  <c:if test="${fn:contains(searchVO.filter_category, firstCategoryInfo.sCodeId) }"> on</c:if>>
                                        <div class="check"><input type="checkbox" value="${firstCategoryInfo.sCodeId}"  id="theme-chk${fiStatus.index+1}"  name="first_category"   <c:if test="${fn:contains(searchVO.first_category, firstCategoryInfo.sCodeId) }">checked="checked"</c:if>/><label for="theme-chk${fiStatus.index+1}">${firstCategoryInfo.sCodeNm}(<span>0</span>)</label></div>
                                        <button type="button" class="btn-toggle">닫기</button>
                                    </div>
                                    <ul class="depth-2">
                                        <c:forEach items="${schSecondCategoryList}" var="secondCategoryInfo" varStatus="seStatus">
                                        <c:if test="${firstCategoryInfo.sCodeId eq fn:substring(secondCategoryInfo.sCodeId,0,1)}" >
                                        <li><div class="check"><input type="checkbox" value="${secondCategoryInfo.sCodeId}" id="theme-chk${fiStatus.index+1}-${seStatus.index+1}" name="second_category"  <c:if test="${fn:contains(searchVO.second_category, secondCategoryInfo.sCodeId) }">checked="checked"</c:if>/><label for="theme-chk${fiStatus.index+1}-${seStatus.index+1}">${secondCategoryInfo.sCodeNm}(<span>0</span>)</label></div></li>
                                        </c:if>
                                        </c:forEach>
                                    </ul>
                                </li>
                                </c:forEach>
                            </ul>
                        </div>
                        <button type="button" class="btn-toggle-more filter-category">더보기</button>
                    </div>
                    <div class="filter">
                        <div class="filter-tit">
                            <h3>자료유형</h3>
                            <button type="button" class="btn-toggle">닫기</button>
                        </div>
                        <div class="filter-list">
                              <ul>
                                <li>
                                    <div class="depth-1">
                                       <%--  <div class="check"><input type="checkbox" id="data-type-chk" /><label for="data-type-chk">전체(<span>${second_class_cate.totalCount}</span>)</label></div> --%>
                                        <div class="check"><input type="checkbox" id="data-type-chk"  disabled="disabled"/><label for="data-type-chk">전체(<span><c:choose><c:when test="${empty  second_class_cate}">0</c:when><c:otherwise>${second_class_cate.totalCount}  </c:otherwise></c:choose></span>)</label></div>
                                    </div>
                                </li>
                                 <c:forEach items="${firstClassList}" var="firstClassInfo" varStatus="fcStatus">
                                <li>
                                    <div class="depth-1 <c:if test="${fn:contains(searchVO.filter_class, firstClassInfo.column1) }"> on</c:if>" >
                                        <div class="check"><input type="checkbox"  value="${firstClassInfo.column1}" name="first_class"  id="data-type-chk${fcStatus.index+1}"  <c:if test="${fn:contains(searchVO.first_class, firstClassInfo.column1) }">checked="checked"</c:if>/><label for="data-type-chk${fcStatus.index+1}">${firstClassInfo.sCodeNm}(<span>0</span>)</label></div>
                                        <button type="button" class="btn-toggle">닫기</button>
                                    </div>
                                    <ul class="depth-2">
                                        <c:forEach items="${secondClassList}" var="secondClassInfo" varStatus="seStatus">
                                        <c:if test="${firstClassInfo.column1 eq secondClassInfo.column2}" >
                                            <li><div class="check"><input type="checkbox" value="${secondClassInfo.sCodeId}"  name="second_class"  id="data-type-chk${fcStatus.index+1}-${seStatus.index+1}"   <c:if test="${fn:contains(searchVO.second_class, secondClassInfo.sCodeId) }">checked="checked"</c:if>/><label for="data-type-chk${fcStatus.index+1}-${seStatus.index+1}">${secondClassInfo.sCodeNm}(<span>0</span>)</label></div></li>
                                        </c:if>
                                        </c:forEach>
                                    </ul>
                                </li>
                                </c:forEach>
                            </ul>
                        </div>
                        <button type="button" class="btn-toggle-more filter-class" >더보기</button>
                    </div>
                </div>            
            </section>
        </div><!-- //article-side -->
    </div><!-- //contents-frame -->
</section>
   
</form>  
<form name="detailForm" method="post">
    <input type="hidden" name="contentId"/>
</form> 


<script>
//<![CDATA[
    
    //자료유형-카테고리 cnt세팅
    <c:forEach items="${first_class_cate.searchResultList}" var="result">
        $("#referencelistForm input:checkbox[name='first_class']").each(function (index, item) {
            if($(this).val() == "${result.first_class_nm}" ){
                $(this).next('label').children().text('<fmt:formatNumber value="${result.first_class_cnt}" pattern="#,###" />');
            }
        });
        
    </c:forEach>
    

    <c:forEach items="${second_class_cate.searchResultList}" var="result">
            $("#referencelistForm input:checkbox[name='second_class']").each(function (index, item) {
                var second_class_nm_arr = "${result.second_class_nm}".split("^");
                if($(this).val() == second_class_nm_arr[1] ){
                    $(this).next('label').children().text('<fmt:formatNumber value="${result.second_class_cnt}" pattern="#,###" />');
                }
            });
    </c:forEach>
    
    //주제분야-카테고리 cnt세팅
    <c:forEach items="${first_category_cate.searchResultList}" var="result">
        $("#referencelistForm input:checkbox[name='first_category']").each(function (index, item) {
            if($(this).val() == "${result.first_category_nm}" ){
                $(this).next('label').children().text('<fmt:formatNumber value="${result.first_category_cnt}" pattern="#,###" />');
            }
        });
        
    </c:forEach>
    

    <c:forEach items="${second_category_cate.searchResultList}" var="result">
            $("#referencelistForm input:checkbox[name='second_category']").each(function (index, item) {
                var second_class_nm_arr = "${result.second_category_nm}".split("^");
                if($(this).val() == second_class_nm_arr[1] ){
                    $(this).next('label').children().text('<fmt:formatNumber value="${result.second_category_cnt}" pattern="#,###" />');
                }
            });
    </c:forEach>
    
    //지방문화원-카테고리cnt 세팅
    <c:forEach items="${first_council_cate.searchResultList}" var="result">
        $("#referencelistForm [name='sido_name']").each(function (index, item) {
            if($(this).val() == "${result.first_council_nm}" ){
                $(this).next('label').children().text('<fmt:formatNumber value="${result.first_council_cnt}" pattern="#,###" />');
            }
        });
        
    </c:forEach>
    
    <c:forEach items="${second_council_cate.searchResultList}" var="result">
        $("#referencelistForm [name='sojang_council']").each(function (index, item) {       
            var second_class_nm_arr = "${result.second_council_nm}".split("^");
            if($(this).val() == second_class_nm_arr[1] ){
                $(this).next('label').children().text('<fmt:formatNumber value="${result.second_council_cnt}" pattern="#,###" />');
            }
        });
    </c:forEach>
    

     //fnLabel_reference();
    
     filterFn();
    
     fnLabel_reference_detail();
     

     //sido-tab height 유지
    $('div.depth-1.on').each(function () {
        if($(this).find('input').attr('name')  == 'sido_name') {
            $(".pop-culture-center .line-1").data("idx", "1");
            $(".pop-culture-center .line-2").data("idx", "2");
            $(".pop-culture-center .line-3").data("idx", "3");
            
            target = $(".pop-filter li.line-" + $(this).find('input').parents("li").data("idx") + "");
            size = $(this).find('input').parents("div.depth-1").next().outerHeight() + 50 ;
            $(".line-1 , .line-2, .line-3").attr("style" , ''); 
            target.css("height" , size );
        }else   if($(this).find('input').attr('name')  == 'first_class') {
            if($(this).find('input').val() != 'A' &&  $(this).find('input').val() != 'B' && $(this).find('input').val() != 'C'){
                 $('.filter .filter-class.btn-toggle-more').text('접기');
                 $('.filter .filter-class.btn-toggle-more').siblings('.filter-list').children('ul').children('li').css('display', 'block');
            }
        } 
        else if($(this).find('input').attr('name')  == 'first_category') {
            if($(this).find('input').val() != 'A' &&  $(this).find('input').val() != 'B' && $(this).find('input').val() != 'C' && $(this).find('input').val() != 'D'){
                 $('.filter .filter-category.btn-toggle-more').text('접기');
                 $('.filter .filter-category.btn-toggle-more').siblings('.filter-list').children('ul').children('li').css('display', 'block');
            }
        } 
    });     

    mobileSearchResultTab();
//]]>
</script>
