PageSourceSearch

https://brownbagcoffee.co.kr/ind-script/optimizer_user.php?filenam…1a80b6f35dc1675d99d91d5&t=1755822973&user=T

js brownbagcoffee.co.kr collected 2026-10-06 13:48:58 UTC 43,626 bytes, 817 lines download raw bytes

1
2/* 관리자 분류 리스트 표시 설정에 대한 대응 */
3
4$(function(){ 
5    if($(".xans-product-displaycategory").length==14){ /* 카테고리 갯수가 15개면 미출력 - 한글자음갯수  */
6         $(".brand_list").hide();
7    };
8});
9
10
11$(function(){ 
12    if($(".xans-product-displaycategory").length==26){ /* 카테고리 갯수가 26개면 미출력 - 알파벳갯수  */
13         $(".brand_list").hide();
14    };
15});
16
17
18/**
19 * 카테고리 리스트 상품 정렬
20 */
21var aUrl = location.href.split('?');
22var sQueryString = aUrl[1];
23
24/**
25 * 파라미터가 있을경우에만 처리
26 */
27$(document).ready(function(){
28    // URL에 sort_method 파라미터가 있을 경우, 현재 정렬 상태를 selectbox에 표시합니다.
29    // ID 대신 클래스 선택자를 사용하여 PC와 모바일 모두에 적용되도록 합니다.
30    if (sQueryString && sQueryString.indexOf('sort_method') > -1) {
31        $('.product-sort-select').each(function() { // PC, 모바일 정렬 select를 모두 순회
32            var $currentSelect = $(this);
33            $currentSelect.find('option').each(function() { // 각 select의 option들을 순회
34                if ($(this).val().indexOf(sQueryString) > -1) {
35                    // prop()을 사용하는 것이 더 표준적인 방법입니다.
36                    $(this).prop('selected', true);
37                    return false; // 일치하는 것을 찾으면 내부 루프를 종료하여 효율성을 높입니다.
38                }
39            });
40        });
41    }
42});
43
44// 정렬 옵션을 변경했을 때의 동작
45// ID 대신 클래스 선택자를 사용합니다.
46$('.product-sort-select').change(function() {
47    // event가 발생한 바로 그 요소를 가리키는 $(this)를 사용합니다.
48    // 이렇게 하면 PC에서 변경하든, 모바일에서 변경하든 정확하게 동작합니다.
49    var selectedUrl = $(this).val();
50    if (selectedUrl) {
51        location.href = selectedUrl;
52    }
53});
54
55/**
56 * 이 함수는 ID를 사용하지 않으므로 수정할 필요가 없습니다.
57 */
58function goThumg(url) {
59    location.href = url+'?'+sQueryString;
60}
61
62/*
63$(function() {
64$("#main_review #p_review .dj-board-p > ul > li:first-child .writer").replaceWith("<p class='writer'>김**</p>");   
65$("#main_review #p_review .dj-board-p > ul > li:nth-child(2) .writer").replaceWith("<p class='writer'>안**</p>");   
66$("#main_review #p_review .dj-board-p > ul > li:nth-child(3) .writer").replaceWith("<p class='writer'>ê³ **</p>");   
67});
68*/
69
70
71$(document).ready(function(){
72    $("body").ready(function(){
73        $(".slider_2_top").fadeIn();
74        $("#div2").fadeIn("slow");
75        $("#div3").fadeIn(3000);
76    });
77});
78
79$(document).ready(function(){
80    $(".item_list").mouseenter(function(){
81    $(".item_list").addClass("img_on");
82    });
83    $(".item_list").mouseleave(function(){
84    $(".img_on").removeClass("img_on");
85    });
86});
87
88
89
90(function(){
91      var $this_btn = $('.dj-pop-btn');
92      $this_btn.bind('click',function(e){
93      e.stopPropagation();
94		if($(this).hasClass('on')){
95	       $(this).removeClass('on')
96		}else{
97		$(this).addClass('on')
98	    }
99   });         
100})(jQuery);
101    
102
103(function(){
104      var $this_btn = $('#all_menu');
105      $this_btn.bind('click',function(e){
106      e.stopPropagation();
107		if($(this).hasClass('on')){
108	       $(this).removeClass('on')
109		}else{
110		$(this).addClass('on')
111	    }
112   });         
113})(jQuery);
114    
115
116
117jQuery(document).ready(function ($) {
118	$("#find_btn").click(function () {
119		$("#find_btn").toggleClass("up");
120        $("#find_view").toggleClass("up")
121	});
122	$("#find_btn2").click(function () {
123		$("#find_btn").removeClass("up");
124        $("#find_view").removeClass("up")
125	})
126});
127
128
129$(document).ready(function(){ 
130  $('#top_top').click(function(){
131      $("html, body").animate({ scrollTop: 0 }, 300);
132      return false;
133  });
134  $('#bottom_bottom').click(function(){
135      $("html, body").animate({scrollTop:$(document).height()}, '300');
136      return false;
137  });
138});
139
140
141
142   $(document).ready(function(){
143	   $(window).bind('scroll', function() {
144	   var djHeight = $( window ).height() - 5;
145			 if ($(window).scrollTop() > 10) {
146				 $('#header').addClass('header_scroll_fixed');
147			 }
148			 else {
149				 $('#header').removeClass('header_scroll_fixed');
150			 }
151		});
152	});
153
154
155   $(document).ready(function(){
156	   $(window).bind('scroll', function() {
157	   var djHeight = $( window ).height() - 5;
158			 if ($(window).scrollTop() > 10) {
159				 $('#top_banner_zone').addClass('t_banner_scroll_fixed');
160			 }
161			 else {
162				 $('#top_banner_zone').removeClass('t_banner_scroll_fixed');
163			 }
164		});
165	});
166
167
168	$(function(){
169		$('.menuCategory_class_display a').filter(function(){return this.href==location.href}).parent().addClass('active').siblings().removeClass('active')
170		$('.menuCategory_class_display a').click(function(){
171			$(this).parent().addClass('active').siblings().removeClass('active')	
172		})
173	})
174
175
176	$(function(){
177		$('.xans-layout-category a').filter(function(){return this.href==location.href}).parent().addClass('active').siblings().removeClass('active')
178		$('.xans-layout-category a').click(function(){
179			$(this).parent().addClass('active').siblings().removeClass('active')	
180		})
181	})
182
183
184
185	$(function(){
186		$('#p_review .icon_select a').filter(function(){return this.href==location.href}).parent().addClass('active').siblings().removeClass('active')
187		$('#p_review .icon_select a').click(function(){
188			$(this).parent().addClass('active').siblings().removeClass('active')	
189		})
190	})
191
192
193	$(function(){
194        $('#p_review .icon_select .gallery').click(function () {
195            $('#p_review .dj-board-p > ul').removeClass('list');
196            $('#p_review .dj-board-p > ul').addClass('gallery');
197		})
198            $('#p_review .icon_select .list').click(function () {
199            $('#p_review .dj-board-p > ul').removeClass('gallery');
200            $('#p_review .dj-board-p > ul').addClass('list');
201		})    
202	})
203
204
205
206    jQuery('#footer .company_name').click(function(){
207        jQuery(this).toggleClass('open');
208		if(jQuery('#footer .company_name').hasClass('open')){
209			jQuery('#footer .company_info').slideDown('slow');
210		} else {
211			jQuery('#footer .company_info').slideUp('slow');
212		}
213    });
214
215
216
217
218
219
220$(document).ready(function(){
221    // 토글
222    $('div.eToggle .title').click(function(){
223        var toggle = $(this).parent('.eToggle');
224        if(toggle.hasClass('disable') == false){
225            $(this).parent('.eToggle').toggleClass('selected')
226        }
227    });
228
229    $('dl.eToggle dt').click(function(){
230        $(this).toggleClass('selected');
231        $(this).next('dd').toggleClass('selected');
232    });
233
234    //장바구니 페이지 수량폼 Type 변경
235    $('[id^="quantity"]').each(function() {
236        $(this).get(0).type = 'tel';
237    });
238
239    // 모바일에서 공급사 테이블 th 강제조절
240    $('.xans-mall-supplyinfo, .supplyInfo').find('table > colgroup').find('col').eq(0).width(98);
241    $('.xans-mall-supplyinfo, .supplyInfo').find('th, td').css({padding:'13px 10px 12px'});
242
243    /**
244     *  메인카테고리 toggle
245     */
246    $('.xans-product-listmain h2').toggle(function(){
247        $(this).css('background-image', 'url("//img.echosting.cafe24.com/skin/mobile_ko_KR/layout/bg_title_open.gif")');
248        $(this).siblings().hide();
249        $(this).parent().find('div.paginate').hide();
250        $(this).parent().next('div.xans-product-listmore').hide();
251    }, function() {
252        $(this).css('background-image', 'url("//img.echosting.cafe24.com/skin/mobile_ko_KR/layout/bg_title_close.gif")');
253        $(this).siblings().show();
254        $(this).parent().find('div.paginate').show();
255        $(this).parent().next('div.xans-product-listmore').show();
256    });
257
258    /**
259     *  구매버튼
260     */
261    var globalBuyBtnScrollFunc = function() {
262        // 구매버튼 관련변수
263        var sFixId = $('#orderFixItem').size() > 0  ? 'orderFixItem' : 'fixedActionButton',
264            $area = $('#orderFixArea'),
265            $item = $('#' + sFixId + '').not($area);
266
267        $(window).scroll(function(){
268            try {
269                 // 구매버튼 관련변수
270                var iCurrentHeightPos = $(this).scrollTop() + $(this).height(),
271                    iButtonHeightPos = $item.offset().top;
272
273                if (iCurrentHeightPos > iButtonHeightPos || iButtonHeightPos < $(this).scrollTop() + $item.height()) {
274                    if (iButtonHeightPos < $(this).scrollTop() - $item.height()) {
275                        $area.fadeIn('fast');
276                    } else {
277                        $area.hide();
278                    }
279                } else {
280                    $area.fadeIn('fast');
281                }
282            } catch(e) { }
283        });
284    };
285
286    globalBuyBtnScrollFunc();
287});
288
289
290
291
292
293
294
295eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('6 7(){$(\'.7\').j(6(){5 2=$(k);5 1=2.8(\'d-1\');2.9(\'d-1\');5 4=2.8(\'d-4\');2.9(\'d-4\');1=a(1.b(/,/g,\'\'));4=a(4.b(/,/g,\'\'));5 3=0;c(!e(1)&&!e(4)&&0<1){3=f.l((1-4)/1*m)}2.n(\'<h o="p-q-r-s-t">\'+3+\'%</h>\');3=f.u(3/i)*i;2.v(\'3\'+3);c(3>0){2.w()}})};$(x).y(6(){7()});',35,35,'|price|sale|dj_count|custom|var|function|custom_pro|attr|removeAttr|parseInt|replace|if||isNaN|Math||span|10|each|this|round|100|html|class|dj|mov|fade|in|out2|ceil|addClass|show|document|ready'.split('|'),0,{}))
296
297//window popup script
298function winPop(url) {
299    window.open(url, "popup", "width=300,height=300,left=10,top=10,resizable=no,scrollbars=no");
300}
301/**
302 * document.location.href split
303 * return array Param
304 */
305function getQueryString(sKey)
306{
307    var sQueryString = document.location.search.substring(1);
308    var aParam       = {};
309
310    if (sQueryString) {
311        var aFields = sQueryString.split("&");
312        var aField  = [];
313        for (var i=0; i<aFields.length; i++) {
314            aField = aFields[i].split('=');
315            aParam[aField[0]] = aField[1];
316        }
317    }
318
319    aParam.page = aParam.page ? aParam.page : 1;
320    return sKey ? aParam[sKey] : aParam;
321};
322
323$(document).ready(function(){
324    // tab
325    $.eTab = function(ul){
326        $(ul).find('a').click(function(){
327            var _li = $(this).parent('li').addClass('selected').siblings().removeClass('selected'),
328                _target = $(this).attr('href'),
329                _siblings = '.' + $(_target).attr('class');
330            $(_target).show().siblings(_siblings).hide();
331            return false
332        });
333    }
334    if ( window.call_eTab ) {
335        call_eTab();
336    };
337});
338(function($){
339$.fn.extend({
340    center: function() {
341        this.each(function() {
342            var
343                $this = $(this),
344                $w = $(window);
345            $this.css({
346                position: "absolute",
347                top: ~~(($w.height() - $this.outerHeight()) / 2) + $w.scrollTop() + "px",
348                left: ~~(($w.width() - $this.outerWidth()) / 2) + $w.scrollLeft() + "px"
349            });
350        });
351        return this;
352    }
353});
354$(function() {
355    var $container = function(){/*
356<div id="modalContainer">
357    <iframe id="modalContent" scroll="0" scrolling="no" frameBorder="0"></iframe>
358</div>');
359*/}.toString().slice(14,-3);
360    $('body')
361    .append($('<div id="modalBackpanel"></div>'))
362    .append($($container));
363    function closeModal () {
364        $('#modalContainer').hide();
365        $('#modalBackpanel').hide();
366    }
367    $('#modalBackpanel').click(closeModal);
368    zoom = function ($piProductNo, $piCategoryNo, $piDisplayGroup) {
369        var $url = '/product/image_zoom.html?product_no=' + $piProductNo + '&cate_no=' + $piCategoryNo + '&display_group=' + $piDisplayGroup;
370        $('#modalContent').attr('src', $url);
371        $('#modalContent').bind("load",function(){
372            $(".header .close",this.contentWindow.document.body).bind("click", closeModal);
373        });
374        $('#modalBackpanel').css({width:$("body").width(),height:$("body").height(),opacity:.4}).show();
375        $('#modalContainer').center().show();
376    }
377});
378})(jQuery);
379
380jQuery(document).ready(function ($) {
381	$("#add-cate.add1").click(function () {
382        $("#sub_page.sub1").toggleClass("open")
383        $("#sub_page.sub2" ).removeClass("open");
384        $("#sub_page.sub3" ).removeClass("open");
385        $("#sub_page.sub4" ).removeClass("open");   
386        $("#sub_page.sub5" ).removeClass("open");
387	});
388    $("#add-cate.add2").click(function () {
389		$("#sub_page.sub2").toggleClass("open")
390        $("#sub_page.sub1" ).removeClass("open");
391        $("#sub_page.sub3" ).removeClass("open");
392        $("#sub_page.sub4" ).removeClass("open");
393        $("#sub_page.sub5" ).removeClass("open");
394	});
395    $("#add-cate.add3").click(function () {
396		$("#sub_page.sub3").toggleClass("open")
397        $("#sub_page.sub1" ).removeClass("open");
398        $("#sub_page.sub2" ).removeClass("open");
399        $("#sub_page.sub4" ).removeClass("open");
400        $("#sub_page.sub5" ).removeClass("open");
401	});
402    $("#add-cate.add4").click(function () {
403		$("#sub_page.sub4").toggleClass("open")
404        $("#sub_page.sub1" ).removeClass("open");
405        $("#sub_page.sub2" ).removeClass("open");
406        $("#sub_page.sub3" ).removeClass("open");
407        $("#sub_page.sub5" ).removeClass("open");
408	});
409     $("#add-cate.add5").click(function () {
410		$("#sub_page.sub5").toggleClass("open")
411        $("#sub_page.sub1" ).removeClass("open");
412        $("#sub_page.sub2" ).removeClass("open");
413        $("#sub_page.sub3" ).removeClass("open");
414        $("#sub_page.sub4" ).removeClass("open");
415	});
416        $(".on_off1").click(function () {
417		$(".on_off1").toggleClass("add")
418	});
419        $(".on_off2").click(function () {
420		$(".on_off2").toggleClass("add")
421	});
422        $(".on_off3").click(function () {
423		$(".on_off3").toggleClass("add")
424	});
425        $(".on_off4").click(function () {
426		$(".on_off4").toggleClass("add")
427	});
428     $(".on_off5").click(function () {
429		$(".on_off5").toggleClass("add")
430	})
431})
432
433
434
435
436/**
437 * 모바일쇼핑몰 슬라이딩메뉴 */
438var aCategory = [];
439$(function(){
440    $('#header').append('<div id="dimmedSlider"></div>');
441    var methods = {
442        aCategory    : [],
443        aSubCategory : {},
444        get: function()
445        {
446             $.ajax({
447                url : '/exec/front/Product/SubCategory',
448                dataType: 'json',
449                success: function(aData) {
450                    if (aData == null || aData == 'undefined') {
451                        methods.checkSub();
452                        return;
453                    }
454                    for (var i=0; i<aData.length; i++)
455                    {
456                        var sParentCateNo = aData[i].parent_cate_no;
457                        var sCateNo = aData[i].cate_no;
458                        if (!methods.aSubCategory[sParentCateNo]) {
459                            methods.aSubCategory[sParentCateNo] = [];
460                        }
461                        if (!aCategory[sCateNo]) {
462                            aCategory[sCateNo] = [];
463                        }
464                        methods.aSubCategory[sParentCateNo].push( aData[i] );
465                        aCategory[sCateNo] = aData[i];
466                    }
467                    methods.checkSub();
468                    methods.getMyCateList();
469                }
470            });
471        },
472        getParam: function(sUrl, sKey) {
473            if (typeof sUrl !== 'string') return;
474            var aUrl         = sUrl.split('?');
475            var sQueryString = aUrl[1];
476            var aParam       = {};
477            if (sQueryString) {
478                var aFields = sQueryString.split("&");
479                var aField  = [];
480                for (var i=0; i<aFields.length; i++) {
481                    aField = aFields[i].split('=');
482                    aParam[aField[0]] = aField[1];
483                }
484            }
485            return sKey ? aParam[sKey] : aParam;
486        },
487
488        show: function(overNode, iCateNo) {
489             var oParentNode = overNode;
490            var aHtml = [];
491            var sMyCateList = localStorage.getItem("myCateList");
492            if (methods.aSubCategory[iCateNo] != undefined) {
493                aHtml.push('<ul class="slideSubMenu">');
494                $(methods.aSubCategory[iCateNo]).each(function() {
495                    var sNextParentNo = this.cate_no;
496                    var sCateSelected = (checkInArray(sMyCateList, this.cate_no) == true) ? ' selected' : '';
497                    if (methods.aSubCategory[sNextParentNo] == undefined) {
498                        aHtml.push('<li class="noChild" id="cate'+this.cate_no+'">');
499                        var sHref = '/product/list.html'+this.param;
500                    } else {
501                        aHtml.push('<li id="cate'+this.cate_no+'">');
502                        var sHref = '#none';
503                    }
504                    aHtml.push('<a href="'+sHref+'" class="cate" cate="'+this.param+'" onclick="subMenuEvent(this);">'+this.name+'</a>');
505                    if (methods.aSubCategory[sNextParentNo] != undefined)  aHtml.push('<a href="/product/list.html'+this.param+'" class="view">상품보기</a>');
506                    aHtml.push('<button type="button" class="icoBookmark'+sCateSelected+'" id="icoBookmark">즐겨찾기 추가</button>');
507
508                    if (methods.aSubCategory[sNextParentNo] != undefined) {
509                        aHtml.push('<ul>');
510                        $(methods.aSubCategory[sNextParentNo]).each(function() {
511                            var sNextParentNo2 = this.cate_no;
512                            var sCateSelected = (checkInArray(sMyCateList, this.cate_no) == true) ? ' selected' : '';
513                            if (methods.aSubCategory[sNextParentNo2] == undefined) {
514                                aHtml.push('<li class="noChild" id="cate'+this.cate_no+'">');
515                                var sHref = '/product/list.html'+this.param;
516                            } else {
517                                aHtml.push('<li id="cate'+this.cate_no+'">');
518                                var sHref = '#none';
519                            }
520                            aHtml.push('<a href="'+sHref+'" class="cate" cate="'+this.param+'" onclick="subMenuEvent(this);">'+this.name+'</a>');
521                            if (methods.aSubCategory[sNextParentNo] != undefined)  aHtml.push('<a href="/product/list.html'+this.param+'" class="view">상품보기</a>');
522                            aHtml.push('<button type="button" class="icoBookmark'+sCateSelected+'" id="icoBookmark">즐겨찾기 추가</button>');
523
524                            if (methods.aSubCategory[sNextParentNo2] != undefined) {
525                                aHtml.push('<ul>');
526
527                                $(methods.aSubCategory[sNextParentNo2]).each(function() {
528                                    aHtml.push('<li class="noChild" id="cate'+this.cate_no+'">');
529                                    var sCateSelected = (checkInArray(sMyCateList, this.cate_no) == true) ? ' selected' : '';
530                                    aHtml.push('<a href="/product/list.html'+this.param+'" class="cate" cate="'+this.param+'" onclick="subMenuEvent(this);">'+this.name+'</a>');
531                                    aHtml.push('<button type="button" class="icoBookmark'+sCateSelected+'" id="icoBookmark">즐겨찾기 추가</button>');
532                                    aHtml.push('</li>');
533                                });
534                                aHtml.push('</ul>');
535                            }
536                            aHtml.push('</li>');
537                        });
538                        aHtml.push('</ul>');
539                    }
540                    aHtml.push('</li>');
541                });
542                aHtml.push('</ul>');
543            }
544            $(oParentNode).append(aHtml.join(''));
545        },
546        close: function() {
547            $('.slideSubMenu').remove();
548        },
549        checkSub: function() {
550            $('.cate').each(function(){
551                var sParam = $(this).attr('cate');
552                if (!sParam) return;
553                var iCateNo = Number(methods.getParam(sParam, 'cate_no'));
554                var result = methods.aSubCategory[iCateNo];
555                if (result == undefined) {
556                    if ($(this).closest('#slideProjectList').length) {
557                        var sHref = '/product/project.html'+sParam;
558                    } else {
559                        var sHref = '/product/list.html'+sParam;
560                    }
561
562                    $(this).attr('href', sHref);
563                    $(this).parent().attr('class', 'noChild');
564                }
565            });
566        },
567        getMyCateList :function() {
568            var sMyCateList = localStorage.getItem("myCateList");
569            if (sMyCateList != null && sMyCateList != "") {
570                var aTempList = sMyCateList.split("|");
571                var aHtml = [];
572                for (var i = 0; i < aTempList.length; i++) {
573                    if (aTempList[i] != "") {
574                        var iCateNo = aTempList[i];
575                        var sCateName = aCategory[iCateNo].name;
576                        var sCateParam = aCategory[iCateNo].param;
577                        aHtml.push('<li id="bookmark'+iCateNo+'"><a href="/product/list.html'+sCateParam+'" book_mark="'+iCateNo+'">'+sCateName+'</a><button type="button" class="icoBookmark selected" onclick="setMyCateList('+iCateNo+');">즐겨찾기 삭제</button></li>');
578                        $("#cate"+iCateNo+" #icoBookmark").addClass("selected");
579                    }
580                }
581                $('#bookmartCateArea').append('<ul>'+aHtml.join('')+'</ul>');
582            }
583            chkMyCateList();
584        }
585    };
586
587    var offCover = {
588        init : function() {
589            $(function() {
590                 $('#wrap').append('<a href="#container" id="btnFoldLayout"><img src="/web/upload/_dj/img/btnFoldLayout_close_btn.png"></a>');
591                offCover.resize();
592                $(window).on('resize', function(){
593                    offCover.resize();
594                });
595            });
596        },
597        layout : function(){
598            if ($('html').hasClass('expand')) {
599                $('#btnFoldLayout').show();
600                $('#aside').css({'position':'fixed', 'display':'block'});
601                $('html, body').css({"overflow-x":""})
602
603                setTimeout(function(){
604                    $('#btnFoldLayout').css({'background':'rgba(0,0,0,0.5)'});
605                }, 350);
606            } else {
607                $('#btnFoldLayout').hide();
608                $('#aside').css({'z-index':0});
609                setTimeout(function(){
610                    $('#aside').css({'visibility':'', 'display':'none'});
611                }, 300);
612            }
613            $('#aside').css({'visibility':'visible'});
614        }
615    };
616    methods.get();
617    offCover.init();
618
619
620    $('#header .fold, #aside .btnClose').on('click', function(e){
621        $('#dimmedSlider').toggle();
622        $('html').toggleClass('expand');
623        offCover.layout();
624        e.preventDefault();
625    });
626
627    $(document).on('click', '#btnFoldLayout', function(e) {
628        $('#header .fold').trigger('click');
629        e.preventDefault();
630    });
631
632    $('#slideCateList a.cate').on('click', function(e) {
633        var sParam = $(this).attr('cate');
634        if (!sParam) return;
635        var iCateNo = Number(methods.getParam(sParam, 'cate_no'));
636        if ($(this).parent().attr('class') == 'xans-record- selected') {
637            methods.close();
638        } else {
639            if (!iCateNo) return;
640            $('#aside #slideCateList li').removeClass('selected');
641            methods.close();
642            methods.show(this.parentNode, iCateNo);
643        }
644    });
645
646    $('#aside a.cate').on('click', function(e){
647            $(this).parent().find('li').removeClass('selected3');
648            $(this).parent().toggleClass('selected3');
649            if (!$(this).parent('li').hasClass('noChild')){
650                e.preventDefault();
651            }
652    });
653
654
655    $('#slideCateList h2').on('click', function() {
656        var oParentId = $(this).parent().attr('id');
657        if (oParentId == 'slideCateList' || oParentId == 'slideMultishopList' || oParentId == 'slideProjectList') {
658            ($(this).attr('class') == 'selected') ? $(this).next().hide() : $(this).next().show();
659        } else if (oParentId == 'bookmarkCategory') {
660            if ($(this).attr('class') == 'selected') {
661                $(this).parent().find('#bookmarkEmpty').hide();
662                $(this).parent().find('#bookmartCateArea').hide();
663            } else {
664                chkMyCateList();
665                $(this).parent().find('#bookmartCateArea').show();
666            }
667        }
668        $(this).toggleClass('selected');
669    });
670});
671function subMenuEvent(obj) {
672    $(obj).parent().find('li').removeClass('selected');
673    $(obj).parent().toggleClass('selected');
674}
675function setMyCateList(iCateNo, oObj) {
676    $(oObj).toggleClass('selected');
677    var sMyCateList = localStorage.getItem("myCateList");
678    var aCateList = [];
679    if (checkInArray(sMyCateList, iCateNo) == true) {
680        var aTemp = sMyCateList.split("|");
681        for (var i = 0 ; i < aTemp.length ; i++) {
682            if (aTemp[i] != iCateNo) {
683                aCateList.push(aTemp[i]);
684            }
685        }
686        var sCateList = aCateList.join('|');
687        localStorage.setItem("myCateList" , sCateList);
688        $('#bookmartCateArea #bookmark'+iCateNo).remove();
689        if (aCateList.length == 0) {
690             $('#bookmarkCategory #bookmartCateArea').find('ul').remove();
691        }
692        $("#cate"+iCateNo+" > #icoBookmark").removeClass("selected");
693    } else {
694        var sCateName = aCategory[iCateNo].name;
695        var sCateParam = aCategory[iCateNo].param;
696        var sHtml = '';
697        if (sMyCateList == null || sMyCateList == '') {
698            sHtml = '<ul><li id="bookmark'+iCateNo+'"><a href="/product/list.html'+sCateParam+'" book_mark="'+iCateNo+'">'+sCateName+'</a><button type="button" class="icoBookmark selected" onclick="setMyCateList('+iCateNo+');">즐겨찾기 삭제</button></li></ul>'
699            $('#bookmarkCategory #bookmartCateArea').append(sHtml);
700        } else {
701            sHtml = '<li id="bookmark'+iCateNo+'"><a href="/product/list.html'+sCateParam+'" book_mark="'+iCateNo+'">'+sCateName+'</a><button type="button" class="icoBookmark selected" onclick="setMyCateList('+iCateNo+');">즐겨찾기 삭제</button></li>'
702            $('#bookmarkCategory #bookmartCateArea ul').append(sHtml);
703        }
704        $(this).addClass('selected');
705        if (sMyCateList == null || sMyCateList == '') {
706            localStorage.setItem('myCateList' , iCateNo);
707        } else {
708            localStorage.setItem('myCateList' , sMyCateList + '|' + iCateNo);
709        }
710    }
711    chkMyCateList();
712}
713function checkInArray(sBookmarkList, iCateNo) {
714    if (sBookmarkList == null) return false;
715    var aBookmarkList = sBookmarkList.split("|");
716    for (var i = 0; i < aBookmarkList.length; i++) {
717        if (aBookmarkList[i] == iCateNo) {
718            return true;
719        }
720    }
721    return false;
722}
723function chkMyCateList() {
724    var sMyCateList = localStorage.getItem("myCateList");
725    if (sMyCateList == null || sMyCateList == '') {
726        $('#bookmarkEmpty').show();
727    } else {
728        $('#bookmarkEmpty').hide();
729    }
730}
731var _0x8939=["\x2F\x65\x78\x65\x63\x2F\x66\x72\x6F\x6E\x74\x2F\x50\x72\x6F\x64\x75\x63\x74\x2F\x53\x75\x62\x43\x61\x74\x65\x67\x6F\x72\x79","\x6A\x73\x6F\x6E","\x75\x6E\x64\x65\x66\x69\x6E\x65\x64","\x6C\x65\x6E\x67\x74\x68","\x70\x61\x72\x65\x6E\x74\x5F\x63\x61\x74\x65\x5F\x6E\x6F","\x61\x53\x75\x62\x43\x61\x74\x65\x67\x6F\x72\x79","\x70\x75\x73\x68","\x61\x6A\x61\x78","\x3F","\x73\x70\x6C\x69\x74","\x26","\x3D","\x2E\x73\x75\x62\x5F","\x69\x73\x45\x6D\x70\x74\x79\x4F\x62\x6A\x65\x63\x74","\x3C\x75\x6C\x3E","\x3C\x6C\x69\x20\x69\x64\x3D\x22","\x6E\x61\x6D\x65","\x22\x3E\x3C\x61\x20\x68\x72\x65\x66\x3D\x22\x2F","\x64\x65\x73\x69\x67\x6E\x5F\x70\x61\x67\x65\x5F\x75\x72\x6C","\x70\x61\x72\x61\x6D","\x22\x3E","\x3C\x2F\x61\x3E\x3C\x2F\x6C\x69\x3E","\x65\x61\x63\x68","\x3C\x2F\x75\x6C\x3E","\x3C\x64\x69\x76\x20\x63\x6C\x61\x73\x73\x3D\x22\x73\x75\x62\x5F\x69\x6D\x67\x22\x3E","\x68\x74\x6D\x6C","\x3C\x2F\x64\x69\x76\x3E","\x6F\x66\x66\x73\x65\x74","\x6F\x76\x65\x72","\x72\x65\x6D\x6F\x76\x65\x43\x6C\x61\x73\x73","\x72\x65\x6D\x6F\x76\x65","\x2E\x73\x75\x62\x32","\x66\x69\x6E\x64","\x6D\x6F\x75\x73\x65\x6C\x65\x61\x76\x65","\x61\x64\x64\x43\x6C\x61\x73\x73","\x68\x72\x65\x66","\x61\x74\x74\x72","\x61","\x63\x61\x74\x65\x5F\x6E\x6F","\x67\x65\x74\x50\x61\x72\x61\x6D","\x6E\x6F\x77\x32","\x6D\x6F\x75\x73\x65\x65\x6E\x74\x65\x72","\x6C\x69","","\x6A\x6F\x69\x6E","\x61\x70\x70\x65\x6E\x64\x54\x6F","\x66\x61\x64\x65\x49\x6E","\x73\x74\x6F\x70","\x3C\x64\x69\x76\x20\x63\x6C\x61\x73\x73\x3D\x22\x73\x75\x62\x2D\x63\x61\x74\x65\x67\x6F\x72\x79\x22\x3E\x3C\x2F\x64\x69\x76\x3E","\x3C\x6C\x69\x3E\x3C\x61\x20\x68\x72\x65\x66\x3D\x22\x2F","\x6D\x6F\x75\x73\x65\x6F\x75\x74","\x6D\x6F\x75\x73\x65\x6F\x76\x65\x72","\x3C\x64\x69\x76\x20\x63\x6C\x61\x73\x73\x3D\x22\x73\x75\x62\x32\x22\x3E\x3C\x2F\x64\x69\x76\x3E","\x2E\x73\x75\x62\x2D\x63\x61\x74\x65\x67\x6F\x72\x79","\x67\x65\x74","\x6F\x6E","\x63\x6C\x6F\x73\x65","\x76\x69\x65\x77","\x2E\x78\x61\x6E\x73\x2D\x6C\x61\x79\x6F\x75\x74\x2D\x63\x61\x74\x65\x67\x6F\x72\x79\x20\x6C\x69","\x72\x65\x61\x64\x79","\x62\x3A","\x3C\x75\x6C\x20\x63\x6C\x61\x73\x73\x3D\x22\x73\x75\x62\x5F\x6D\x22\x3E","\x23\x73\x75\x62\x5F\x6D\x20\x6C\x69","\x61\x6C\x6C\x5F\x63\x61\x74\x65\x5F\x53\x75\x62","\x23\x61\x6C\x6C\x5F\x63\x61\x74\x65\x20\x6C\x69","\x73\x75\x62\x5F\x63\x61\x74\x65\x5F","\x5F\x73\x6C\x69\x73\x74","\x3C\x75\x6C\x20\x63\x6C\x61\x73\x73\x3D\x22","\x3C\x6C\x69\x20\x63\x6C\x61\x73\x73\x3D\x22","\x3C\x2F\x61\x3E","\x3C\x2F\x6C\x69\x3E","\x73\x68\x6F\x77","\x2E\x78\x61\x6E\x73\x2D\x6C\x61\x79\x6F\x75\x74\x2D\x63\x61\x74\x65\x67\x6F\x72\x79\x20\x75\x6C\x2E\x43\x61\x74\x65\x67\x6F\x72\x79\x5F\x4C\x69\x73\x74\x20\x6C\x69"];$(document)[_0x8939[59]](function(){var _0xd085x1={aCategory:[],aSubCategory:{},get:function(){$[_0x8939[7]]({url:_0x8939[0],dataType:_0x8939[1],success:function(_0xd085x2){if(_0xd085x2== null|| _0xd085x2== _0x8939[2]){return};for(var _0xd085x3=0;_0xd085x3< _0xd085x2[_0x8939[3]];_0xd085x3++){var _0xd085x4=_0xd085x2[_0xd085x3][_0x8939[4]];if(!_0xd085x1[_0x8939[5]][_0xd085x4]){_0xd085x1[_0x8939[5]][_0xd085x4]= []};_0xd085x1[_0x8939[5]][_0xd085x4][_0x8939[6]](_0xd085x2[_0xd085x3])}}})},getParam:function(_0xd085x5,_0xd085x6){var _0xd085x7=_0xd085x5[_0x8939[9]](_0x8939[8]);var _0xd085x8=_0xd085x7[1];var _0xd085x9={};if(_0xd085x8){var _0xd085xa=_0xd085x8[_0x8939[9]](_0x8939[10]);var _0xd085xb=[];for(var _0xd085x3=0;_0xd085x3< _0xd085xa[_0x8939[3]];_0xd085x3++){_0xd085xb= _0xd085xa[_0xd085x3][_0x8939[9]](_0x8939[11]);_0xd085x9[_0xd085xb[0]]= _0xd085xb[1]}};return _0xd085x6?_0xd085x9[_0xd085x6]:_0xd085x9},view:function(_0xd085xc,_0xd085xd){if($(_0x8939[12]+ _0xd085xd)[_0x8939[3]]== 0&& $[_0x8939[13]](_0xd085x1[_0x8939[5]][_0xd085xd])== true){return};var _0xd085xe=[];_0xd085xe[_0x8939[6]](_0x8939[14]);$(_0xd085x1[_0x8939[5]][_0xd085xd])[_0x8939[22]](function(){_0xd085xe[_0x8939[6]](_0x8939[15]+ this[_0x8939[16]]+ _0x8939[17]+ this[_0x8939[18]]+ this[_0x8939[19]]+ _0x8939[20]+ this[_0x8939[16]]+ _0x8939[21])});_0xd085xe[_0x8939[6]](_0x8939[23]);_0xd085xe[_0x8939[6]](_0x8939[24]);_0xd085xe[_0x8939[6]]($(_0x8939[12]+ _0xd085xd)[_0x8939[25]]());_0xd085xe[_0x8939[6]](_0x8939[26]);var _0xd085xf=$(_0xd085xc)[_0x8939[27]]();$(_0x8939[48])[_0x8939[47]]()[_0x8939[46]](0)[_0x8939[45]](_0xd085xc)[_0x8939[25]](_0xd085xe[_0x8939[44]](_0x8939[43]))[_0x8939[32]](_0x8939[42])[_0x8939[41]](function(_0xd085x10){$this= $(this)[_0x8939[34]](_0x8939[28]);var _0xd085x11=Number(_0xd085x1[_0x8939[39]]($this[_0x8939[32]](_0x8939[37])[_0x8939[36]](_0x8939[35]),_0x8939[38]));if(!_0xd085x11){return};_0xd085x1[_0x8939[40]]($this,_0xd085x11)})[_0x8939[33]](function(_0xd085x10){$(this)[_0x8939[29]](_0x8939[28]);$(this)[_0x8939[32]](_0x8939[31])[_0x8939[30]]()})},view2:function(_0xd085xc,_0xd085xd){if(_0xd085x1[_0x8939[5]][_0xd085xd][_0x8939[3]]== 0){return};var _0xd085x12=[];_0xd085x12[_0x8939[6]](_0x8939[14]);$(_0xd085x1[_0x8939[5]][_0xd085xd])[_0x8939[22]](function(){_0xd085x12[_0x8939[6]](_0x8939[49]+ this[_0x8939[18]]+ this[_0x8939[19]]+ _0x8939[20]+ this[_0x8939[16]]+ _0x8939[21])});_0xd085x12[_0x8939[6]](_0x8939[23]);$(_0x8939[52])[_0x8939[45]](_0xd085xc)[_0x8939[25]](_0xd085x12[_0x8939[44]](_0x8939[43]))[_0x8939[32]](_0x8939[42])[_0x8939[51]](function(_0xd085x10){$(this)[_0x8939[34]](_0x8939[28])})[_0x8939[50]](function(_0xd085x10){$(this)[_0x8939[29]](_0x8939[28])})},close:function(){$(_0x8939[53])[_0x8939[30]]()}};_0xd085x1[_0x8939[54]]();$(_0x8939[58])[_0x8939[41]](function(_0xd085x10){var _0xd085x13=$(this)[_0x8939[34]](_0x8939[55]),_0xd085xd=Number(_0xd085x1[_0x8939[39]](_0xd085x13[_0x8939[32]](_0x8939[37])[_0x8939[36]](_0x8939[35]),_0x8939[38]));if(!_0xd085xd){return};_0xd085x1[_0x8939[57]](_0xd085x13,_0xd085xd)})[_0x8939[33]](function(_0xd085x10){$(this)[_0x8939[29]](_0x8939[55]);_0xd085x1[_0x8939[56]]()})});$(document)[_0x8939[59]](function(){var _0xd085x1={aCategory:[],aSubCategory:{},get:function(){$[_0x8939[7]]({url:_0x8939[0],dataType:_0x8939[1],success:function(_0xd085x2){if(_0xd085x2== null|| _0xd085x2== _0x8939[2]){return};for(var _0xd085x3=0;_0xd085x3< _0xd085x2[_0x8939[3]];_0xd085x3++){var _0xd085x4=_0xd085x2[_0xd085x3][_0x8939[4]];if(!_0xd085x1[_0x8939[5]][_0xd085x4]){_0xd085x1[_0x8939[5]][_0xd085x4]= []};_0xd085x1[_0x8939[5]][_0xd085x4][_0x8939[6]](_0xd085x2[_0xd085x3])};_0xd085x1.Category_Menu_Print();_0xd085x1.Category_All_Print()}})},getParam:function(_0xd085x5,_0xd085x6){var _0xd085x7=_0xd085x5[_0x8939[9]](_0x8939[8]);var _0xd085x8=_0xd085x7[1];var _0xd085x9={};if(_0xd085x8){var _0xd085xa=_0xd085x8[_0x8939[9]](_0x8939[10]);var _0xd085xb=[];for(var _0xd085x3=0;_0xd085x3< _0xd085xa[_0x8939[3]];
731_0xd085x3++){_0xd085xb= _0xd085xa[_0xd085x3][_0x8939[9]](_0x8939[11]);_0xd085x9[_0xd085xb[0]]= _0xd085xb[1]}};return _0xd085x6?_0xd085x9[_0xd085x6]:_0xd085x9},show:function(_0xd085xc,_0xd085xd){if(_0xd085x1[_0x8939[5]][_0xd085xd][_0x8939[3]]== 0){alert(_0x8939[60]+ _0xd085xd);return};var _0xd085xe=[];_0xd085xe[_0x8939[6]](_0x8939[14]);$(_0xd085x1[_0x8939[5]][_0xd085xd])[_0x8939[22]](function(){_0xd085xe[_0x8939[6]](_0x8939[49]+ this[_0x8939[18]]+ this[_0x8939[19]]+ _0x8939[20]+ this[_0x8939[16]]+ _0x8939[21])});_0xd085xe[_0x8939[6]](_0x8939[23]);var _0xd085xf=$(_0xd085xc)[_0x8939[27]]();$(_0x8939[48])[_0x8939[45]](_0xd085xc)[_0x8939[25]](_0xd085xe[_0x8939[44]](_0x8939[43]))[_0x8939[32]](_0x8939[42])[_0x8939[51]](function(_0xd085x10){$(this)[_0x8939[34]](_0x8939[28])})[_0x8939[50]](function(_0xd085x10){$(this)[_0x8939[29]](_0x8939[28])})},close:function(){$(_0x8939[53])[_0x8939[30]]()},Category_Menu_Print:function(){$(_0x8939[62])[_0x8939[22]](function(){var _0xd085xd=Number(_0xd085x1[_0x8939[39]]($(this)[_0x8939[32]](_0x8939[37])[_0x8939[36]](_0x8939[35]),_0x8939[38]));var _0xd085x14=$(_0xd085x1[_0x8939[5]][_0xd085xd])[_0x8939[3]];if(_0xd085x14== 0){return};var _0xd085xe=[];_0xd085xe[_0x8939[6]](_0x8939[61]);$(_0xd085x1[_0x8939[5]][_0xd085xd])[_0x8939[22]](function(){_0xd085xe[_0x8939[6]](_0x8939[49]+ this[_0x8939[18]]+ this[_0x8939[19]]+ _0x8939[20]+ this[_0x8939[16]]+ _0x8939[21])});_0xd085xe[_0x8939[6]](_0x8939[23]);$(_0xd085xe[_0x8939[44]](_0x8939[43]))[_0x8939[45]](this)})},Category_All_Print:function(){$(_0x8939[64])[_0x8939[22]](function(){var _0xd085xe=[];var _0xd085x15=2;var _0xd085xd=Number(_0xd085x1[_0x8939[39]]($(this)[_0x8939[32]](_0x8939[37])[_0x8939[36]](_0x8939[35]),_0x8939[38]));var _0xd085x14=$(_0xd085x1[_0x8939[5]][_0xd085xd])[_0x8939[3]];$(this)[_0x8939[34]](_0x8939[63]);if(_0xd085x14> 0){_0xd085xe= _0xd085x1.Category_All_Call(_0xd085xe,_0xd085x15,_0xd085xd);$(_0xd085xe[_0x8939[44]](_0x8939[43]))[_0x8939[45]](this)}else {return}})},Category_All_Call:function(_0xd085xe,_0xd085x15,_0xd085xd){var _0xd085x16=_0x8939[65]+ _0xd085x15;var _0xd085x17=_0x8939[65]+ _0xd085x15+ _0x8939[66];_0xd085xe[_0x8939[6]](_0x8939[67]+ _0xd085x16+ _0x8939[20]);$(_0xd085x1[_0x8939[5]][_0xd085xd])[_0x8939[22]](function(){var _0xd085x18=this[_0x8939[38]];var _0xd085x14=$(_0xd085x1[_0x8939[5]][_0xd085x18])[_0x8939[3]];_0xd085xe[_0x8939[6]](_0x8939[68]+ _0xd085x17+ _0x8939[17]+ this[_0x8939[18]]+ this[_0x8939[19]]+ _0x8939[20]+ this[_0x8939[16]]+ _0x8939[69]);if(_0xd085x14> 0&& _0xd085x15< 2){_0xd085x15= _0xd085x15+ 1;_0xd085xe= _0xd085x1.Category_All_Call(_0xd085xe,_0xd085x15,_0xd085x18);_0xd085x15= _0xd085x15- 1};_0xd085xe[_0x8939[6]](_0x8939[70])});_0xd085xe[_0x8939[6]](_0x8939[23]);return _0xd085xe}};_0xd085x1[_0x8939[54]]();$(_0x8939[72])[_0x8939[41]](function(_0xd085x10){var _0xd085x13=$(this)[_0x8939[34]](_0x8939[55]),_0xd085xd=Number(_0xd085x1[_0x8939[39]](_0xd085x13[_0x8939[32]](_0x8939[37])[_0x8939[36]](_0x8939[35]),_0x8939[38]));if(!_0xd085xd){return};_0xd085x1[_0x8939[71]](_0xd085x13,_0xd085xd)})[_0x8939[33]](function(_0xd085x10){$(this)[_0x8939[29]](_0x8939[55]);_0xd085x1[_0x8939[56]]()})})
732$(document).ready(function(){
733    if (typeof(EC_SHOP_MULTISHOP_SHIPPING) != "undefined") {
734        var sShippingCountryCode4Cookie = 'shippingCountryCode';
735        var bShippingCountryProc = false;
736
737        // 배송국가 선택 설정이 사용안함이면 숨김
738        if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) {
739            $('.xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist').hide();
740            $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptioncountry').hide();
741        } else {
742            $('.thumb .xans-layout-multishoplistitem').hide();
743            var aShippingCountryCode = document.cookie.match('(^|;) ?'+sShippingCountryCode4Cookie+'=([^;]*)(;|$)');
744            if (typeof(aShippingCountryCode) != 'undefined' && aS
744hippingCountryCode != null && aShippingCountryCode.length > 2) {
745                var sShippingCountryValue = aShippingCountryCode[2];
746            }
747
748            // query string으로 넘어 온 배송국가 값이 있다면, 그 값을 적용함
749            var aHrefCountryValue = decodeURIComponent(location.href).split("/?country=");
750
751            if (aHrefCountryValue.length == 2) {
752                var sShippingCountryValue = aHrefCountryValue[1];
753            }
754
755            // 메인 페이지에서 국가선택을 안한 경우, 그 외의 페이지에서 셋팅된 값이 안 나오는 현상 처리
756            if (location.href.split("/").length != 4 && $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()) {
757                $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join(""));
758
759                if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) {
760                    $("#f_country").val($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val());
761                }
762            }
763            if (typeof(sShippingCountryValue) != "undefined" && sShippingCountryValue != "" && sShippingCountryValue != null) {
764                sShippingCountryValue = sShippingCountryValue.split("#")[0];
765                var bShippingCountryProc = true;
766
767                $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue);
768                $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join(""));
769                var expires = new Date();
770                expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30일간 쿠키 유지
771                document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString();
772                if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) {
773                    $("#f_country").val(sShippingCountryValue).change();;
774                }
775            }
776        }
777        // 언어선택 설정이 사용안함이면 숨김
778        if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingLanguageSelection === false) {
779            $('.xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist').hide();
780            $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptionlanguage').hide();
781        } else {
782            $('.thumb .xans-layout-multishoplistitem').hide();
783        }
784
785        // 배송국가 및 언어 설정이 둘 다 사용안함이면 숨김
786        if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShipping === false) {
787            $(".xans-layout-multishopshipping").hide();
788            $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption').hide();
789        } else if (bShippingCountryProc === false && location.href.split("/").length == 4) { // 배송국가 값을 처리한 적이 없고, 메인화면일 때만 선택 레이어를 띄움
790            var sShippingCountryValue = $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val();
791            $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue);
792            $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join(""));
793            // 배송국가 선택을 사용해야 레이어를 보이게 함
794            if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === true) {
795                $(".xans-layout-multishopshipping").show();
796            }
797        }
798
799        $(".xans-layout-multishopshipping .close").bind("click", function() {
800            $(".xans-layout-multishopshipping").hide();
801        });
802
803        $(".xans-layout-multishopshipping .ec-base-button a").bind("click", function() {
804            var expires = new Date();
805            expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30일간 쿠키 유지
806            document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString();
807
808            // 도메인 문제로 쿠키로 배송국가 설정이 안 되는 경우를 위해 query string으로 배송국가 값
808을 넘김
809            var sQuerySting = (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) ? "" : "/?country="+encodeURIComponent($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val());
810
811            location.href = '//'+$(".xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist").val()+sQuerySting;
812        });
813        $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a").bind("click", function() {
814            $(".xans-layout-multishopshipping").show();
815        });
816    }
817});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.