PageSourceSearch

https://brownbagcoffee.co.kr/ind-script/optimizer_user.php?filenam…8e1806304d541bfd8e6bf37&t=1750740760&user=T

js brownbagcoffee.co.kr collected 2026-10-06 13:48:55 UTC 44,418 bytes, 852 lines download raw bytes

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

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.