PageSourceSearch

https://www.wmaniac.com/ind-script/optimizer_user.php?filename=lZC…410028615a6e0744981830e&t=1534813201&user=T

js wmaniac.com collected 2026-10-05 07:50:01 UTC 44,920 bytes, 785 lines download raw bytes

1/**
2 * 움직이는 배너 Jquery Plug-in
3 * @author  cafe24
4 */
5
6(function($){
7
8    $.fn.floatBanner = function(options) {
9        options = $.extend({}, $.fn.floatBanner.defaults , options);
10
11        return this.each(function() {
12            var aPosition = $(this).position();
13            var jbOffset = $(this).offset();
14            var node = this;
15
16            $(window).scroll(function() {
17                var _top = $(document).scrollTop();
18                _top = (aPosition.top < _top) ? _top : aPosition.top;
19
20                setTimeout(function () {
21                    var newinit = $(document).scrollTop();
22
23                    if ( newinit > jbOffset.top ) {
24                        _top -= jbOffset.top;
25                        var container_height = $("#wrap").height();
26                        var quick_height = $(node).height();
27                        var cul = container_height - quick_height;
28                        if(_top > cul){
29                            _top = cul;
30                        }
31                    }else {
32                        _top = 0;
33                    }
34
35                    $(node).stop().animate({top: _top}, options.animate);
36                }, options.delay);
37            });
38        });
39    };
40
41    $.fn.floatBanner.defaults = {
42        'animate'  : 500,
43        'delay'    : 500
44    };
45
46})(jQuery);
47
48/**
49 * 문서 구동후 시작
50 */
51$(document).ready(function(){
52    $('#banner:visible, #quick:visible').floatBanner();
53
54    //placeholder
55    $(".ePlaceholder input, .ePlaceholder textarea").each(function(i){
56        var placeholderName = $(this).parents().attr('title');
57        $(this).attr("placeholder", placeholderName);
58    });
59    /* placeholder ie8, ie9 */
60    $.fn.extend({
61        placeholder : function() {
62            //IE 8 버전에는 hasPlaceholderSupport() 값이 false를 리턴
63           if (hasPlaceholderSupport() === true) {
64                return this;
65            }
66            //hasPlaceholderSupport() 값이 false 일 경우 아래 코드를 실행
67            return this.each(function(){
68                var findThis = $(this);
69                var sPlaceholder = findThis.attr('placeholder');
70                if ( ! sPlaceholder) {
71                   return;
72                }
73                findThis.wrap('<label class="ePlaceholder" />');
74                var sDisplayPlaceHolder = $(this).val() ? ' style="display:none;"' : '';
75                findThis.before('<span' + sDisplayPlaceHolder + '>' + sPlaceholder + '</span>');
76                this.onpropertychange = function(e){
77                    e = event || e;
78                    if (e.propertyName == 'value') {
79                        $(this).trigger('focusout');
80                    }
81                };
82                //공통 class
83                var agent = navigator.userAgent.toLowerCase();
84                if (agent.indexOf("msie") != -1) {
85                    $(".ePlaceholder").css({"position":"relative"});
86                    $(".ePlaceholder span").css({"position":"absolute", "padding":"0 4px", "color":"#878787"});
87                    $(".ePlaceholder label").css({"padding":"0"});
88                }
89            });
90        }
91    });
92
93    $(':input[placeholder]').placeholder(); //placeholder() 함수를 호출
94
95    //클릭하면 placeholder 숨김
96    $('body').delegate('.ePlaceholder span', 'click', function(){
97        $(this).hide();
98    });
99
100    //input창 포커스 인 일때 placeholder 숨김
101    $('body').delegate('.ePlaceholder :input', 'focusin', function(){
102        $(this).prev('span').hide();
103    });
104
105    //input창 포커스 아웃 일때 value 가 true 이면 숨김, false 이면 보여짐
106    $('body').delegate('.ePlaceholder :input', 'focusout', function(){
107        if (this.value) {
108            $(this).prev('span').hide();
109        } else {
110            $(this).prev('span').show();
111        }
112    });
113
114    //input에 placeholder가 지원이 되면 true를 안되면 false를 리턴값으로 던져줌
115    function hasPlaceholderSupport() {
116        if ('placeholder' in document.createElement('input')) {
117            return true;
118        } else {
119            return false;
120        }
121    }
122});
123
124/**
125 *  썸네일 이미지 엑박일경우 기본값 설정
126 */
127$(window).load(function() {
128    $("img.thumb,img.ThumbImage,img.BigImage").each(function($i,$item){
129        var $img = new Image();
130        $img.onerror = function () {
131                $item.src="//img.echosting.cafe24.com/thumb/img_product_big.gif";
132        }
133        $img.src = this.src;
134    });
135});
136//window popup script
137function winPop(url) {
138    window.open(url, "popup", "width=300,height=300,left=10,top=10,resizable=no,scrollbars=no");
139}
140/**
141 * document.location.href split
142 * return array Param
143 */
144function getQueryString(sKey)
145{
146    var sQueryString = document.location.search.substring(1);
147    var aParam       = {};
148
149    if (sQueryString) {
150        var aFields = sQueryString.split("&");
151        var aField  = [];
152        for (var i=0; i<aFields.length; i++) {
153            aField = aFields[i].split('=');
154            aParam[aField[0]] = aField[1];
155        }
156    }
157
158    aParam.page = aParam.page ? aParam.page : 1;
159    return sKey ? aParam[sKey] : aParam;
160};
161
162$(document).ready(function(){
163    // tab
164    $.eTab = function(ul){
165        $(ul).find('a').click(function(){
166            var _li = $(this).parent('li').addClass('selected').siblings().removeClass('selected'),
167                _target = $(this).attr('href'),
168                _siblings = '.' + $(_target).attr('class');
169            $(_target).show().siblings(_siblings).hide();
170            return false
171        });
172    }
173    if ( window.call_eTab ) {
174        call_eTab();
175    };
176});
177(function($){
178$.fn.extend({
179    center: function() {
180        this.each(function() {
181            var
182                $this = $(this),
183                $w = $(window);
184            $this.css({
185                position: "absolute",
186                top: ~~(($w.height() - $this.outerHeight()) / 2) + $w.scrollTop() + "px",
187                left: ~~(($w.width() - $this.outerWidth()) / 2) + $w.scrollLeft() + "px"
188            });
189        });
190        return this;
191    }
192});
193$(function() {
194    var $container = function(){/*
195<div id="modalContainer">
196    <iframe id="modalContent" scroll="0" scrolling="no" frameBorder="0"></iframe>
197</div>');
198*/}.toString().slice(14,-3);
199    $('body')
200    .append($('<div id="modalBackpanel"></div>'))
201    .append($($container));
202    function closeModal () {
203        $('#modalContainer').hide();
204        $('#modalBackpanel').hide();
205    }
206    $('#modalBackpanel').click(closeModal);
207    zoom = function ($piProductNo, $piCategoryNo, $piDisplayGroup) {
208        var $url = '/product/image_zoom.html?product_no=' + $piProductNo + '&cate_no=' + $piCategoryNo + '&display_group=' + $piDisplayGroup;
209        $('#modalContent').attr('src', $url);
210        $('#modalContent').bind("load",function(){
211            $(".header .close",this.contentWindow.document.body).bind("click", closeModal);
212        });
213        $('#modalBackpanel').css({width:$("body").width(),height:$("body").height(),opacity:.4}).show();
214        $('#modalContainer').center().show();
215    }
216});
217})(jQuery);
218/**
219 * @name		Jquery Top Banner
220 * @version		1.0
221 * @desc		이미지를 등록하면 팝업으로 나타났다 설정에 따라 일정시간 후 사라집니다. 
222 * @author		esujin morenvy.com
223 * @date		2015-09-01
224 * @example		
225				$('#selecterID').topbanner({
226					'firstpop' : "open", // open: 처음에 열림. close: 닫혀 있음. 
227					'openspeed' : "slow", // 팝열리는 빠르기 
228					'closespeed' : "fast", // 팝닫히는 빠르기  
229					'topbanner' : '.topbanner',// 탑배너 선택자 
230					'openbtn' : '.openbtn', // 열림버튼 선택자 
231					'closebtn' : '.closebtn' // 닫힘버튼 선택자  
232				});
233**/
234
235;(function($){
236
237    $.fn.topbanner = function( options ) {
238        var opts = $.extend( {}, $.fn.topbanner.defaults, options ), popStatus = 0, selectorID = this.selector;
239 
240		if(( getCookie( "topbancookie" + selectorID ) != "closed") && (opts.firstpop == "open") ) {
241			pop();
242			popStatus = 1;
243		} else {
244			$(selectorID + " " +opts.closebtn).css({"display":"none"});
245			$(selectorID + " " +opts.openbtn).css({"display":"block"});
246
247		}
248		
249		$(selectorID + " " +opts.closebtn).click(function(e) {
250			e.preventDefault();
251			close();
252 		}); 
253
254		$(selectorID + " " +opts.openbtn).click(function(e) {
255			e.preventDefault();
256			pop();		
257 		});
258
259 
260		function pop() {
261
262			if(popStatus == 1) return false; 
263			
264			$(selectorID + " " +opts.topbanner).slideDown(opts.openspeed);
265
266			$(selectorID + " " +opts.openbtn).css({"display":"none"});
267			$(selectorID + " " +opts.closebtn).css({"display":"block"});
268			popStatus = 1;
269
270			/* 열기버튼 누르면, 쿠키삭제 */
271			setCookie( "topbancookie" + selectorID , 'closed', 0);
272		}
273
274		function close() {
275			
276			if(popStatus == 0) return false;
vendor: 4,446 bytes, lines 277-346
277
278			$(selectorID + " " +opts.topbanner).slideUp(opts.closespeed);
279			$(selectorID + " " +opts.closebtn).css({"display":"none"});
280			$(selectorID + " " +opts.openbtn).css({"display":"block"});
281			popStatus = 0;
282
283			/* 닫기버튼 누르면, 쿠키세팅 */
284			setCookie( "topbancookie" + selectorID , 'closed', 1);
285		}
286		
287		function setCookie(cName, cValue, cDay){
288			var expire = new Date();
289			expire.setDate(expire.getDate() + cDay);
290			cookies = cName + '=' + escape(cValue) + '; path=/ '; // 한글 깨짐을 막기위해 escape(cValue)를 합니다.
291			if(typeof cDay != 'undefined') cookies += ';expires=' + expire.toGMTString() + ';';
292			document.cookie = cookies;
293		 }
294
295		function getCookie(cName) {
296			cName = cName + '=';
297			var cookieData = document.cookie;
298			var start = cookieData.indexOf(cName);
299			var cValue = '';
300			if(start != -1){
301				start += cName.length;
302				var end = cookieData.indexOf(';', start);
303				if(end == -1)end = cookieData.length;
304				cValue = cookieData.substring(start, end);
305			}
306			return unescape(cValue);
307		 }		
308    };
309
310    $.fn.topbanner.defaults  = {
311        'firstpop' : "open", /* open: 처음에 열림. close: 닫혀 있음.*/
312        'openspeed' : "slow", /* 팝열리는 빠르기 */
313        'closespeed' : "fast", /* 팝닫히는 빠르기 */
314        'topbanner' : '.topbanner',/* 탑배너 선택자 */
315        'openbtn' : '.openbtn', /* 열림버튼 선택자 */
316        'closebtn' : '.closebtn' /* 닫힘버튼 선택자 */
317    };
318
319})(jQuery); 
320/*
321 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
322 *
323 * Uses the built in easing capabilities added In jQuery 1.1
324 * to offer multiple easing options
325 *
326 * TERMS OF USE - jQuery Easing
327 * 
328 * Open source under the BSD License. 
329 * 
330 * Copyright © 2008 George McGinley Smith
331 * All rights reserved.
332 * 
333 * Redistribution and use in source and binary forms, with or without modification, 
334 * are permitted provided that the following conditions are met:
335 * 
336 * Redistributions of source code must retain the above copyright notice, this list of 
337 * conditions and the following disclaimer.
338 * Redistributions in binary form must reproduce the above copyright notice, this list 
339 * of conditions and the following disclaimer in the documentation and/or other materials 
340 * provided with the distribution.
341 * 
342 * Neither the name of the author nor the names of contributors may be used to endorse 
343 * or promote products derived from this software without specific prior written permission.
344 *
345*/
346jQuery.easing['jswing']=jQuery.easing['swing'];jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;
346if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b}});
347/** 
348 *  Slider Kit v1.9.2 (packed)
349 *  http://www.kyrielles.net/sliderkit
350 *  
351 *  Copyright (c) 2010-2012 Alan Frog
352 *  Licensed under the GNU General Public License
353 */
354eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};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}('(7($){2p=7(){p n=3;3.2q=7(c,d){3.4=$.3r({},3.2r,d);3.8={1c:3.4.u+"-1c",1d:3.4.u+"-1d",w:3.4.u+"-w",B:3.4.u+"-1d-3s",T:3.4.u+"-1d-3t",U:3.4.u+"-w-3u",v:3.4.u+"-v",P:3.4.u+"-v-3v",2s:3.4.u+"-v-1e",16:3.4.u+"-v-2t",17:3.4.u+"-v-2u",C:3.4.u+"-1e-3w",1f:3.4.u+"-3x-1e",2v:3.4.u+"-1T-2t",2w:3.4.u+"-1T-2u",J:3.4.u+"-3y-1e",V:3.4.u+"-1T-1e"};3.q=$(c);3.w=$("."+3.8.1d,3.q);3.s=3.w.K();3.v=$("."+3.8.v,3.q);3.P=$("."+3.8.P,3.v);3.G=3.s>0?1:0;3.1C=3.P.K()>0?1:0;6(!3.G&&!3.1C){3.L("1D #3z",3.4.M,1)}3.1g=3.q.H();3.1h=3.q.I();6(!3.1g&&!3.4.1E){3.1g=3.4.H;3.q.x(\'H\',3.1g);3.L("1D #2x",3.4.M,0)}6(!3.1h){3.1h=3.4.I;3.q.x(\'I\',3.1h);3.L("1D #2x",3.4.M,0)}3.q.x(\'2y\',\'3A\');3.o=0;3.W=0;3.1i=0;3.Q=r;3.1U=0;3.2z=0;3.1j=1;3.1k=0;3.X=r;3.3B=9;3.3C=1;3.2A=9;3.2B=1l 1F;3.2C=1l 1F;3.2D=1l 1F;3.2E=1l 1F;3.1V=3.v;6(3.1C){3.2F()}3.2G();6(3.G){3.1W=$("."+3.8.w,3.q);6(3.4.1G=="1H"){3.2H()}}3.1I=!3.G?1:0;6(3.4.1X){3.q.1X(7(a,b){b>0?n.1J():n.1m();y 9})}6(3.4.2I){3.q.3D(7(a){6(a.2J==37){n.1J()}z 6(a.2J==39){n.1m()}})}6(3.4.2K&&3.G){3.1W.Y(7(){n.1m();y 9})}3.2L=3.4.1K>=3.s?3.s-1:3.4.1K<0?0:3.4.1K;6(3.4.2M){1L{3.3E()}1M(R){3.L(R,3.4.M,0)}}6(3.2N){1L{3.2N()}1M(R){3.L(R,3.4.M,0)}}6(3.4.1Y){1L{3.3F(3.4.1Y)}1M(R){3.L(R,3.4.M,0)}}3.1N(3.2L,r);6(3.4.1n){3.1o();3.2O()}6(3.4.1Z){1L{3.3G(3.4.1Z)}1M(R){3.L(R,3.4.M,0)}}6(3.G&&!3.4.2P){3.1V=3.q.3H(\'.\'+3.8.w,\'.\'+3.8.v)}y 3};3.2r={u:"20",I:3I,H:3J,1K:0,1n:t,2Q:3K,1O:9,1X:9,2I:9,1p:9,N:5,2R:9,2S:9,2T:9,21:9,2U:t,2V:"1H",22:7(){},23:7(){},O:r,2W:3L,2X:r,1G:"24",1P:3M,25:r,2Y:"1q",26:7(){},27:7(){},2Z:9,2K:9,D:9,30:9,31:9,1E:9,2P:t,2M:9,1Y:9,1Z:9,3N:9,M:9};3.L=7(a,b,c){6(b){3O("3P 3Q 3R!\\3S = "+a+" (3T 3U 3V 3W)\\32 33 = "+3.q.34("33")+"\\32 28 = "+3.q.34("28"))}6(c){y 9}};3.2O=7(){6(!3.1Q&&!3.4.1O){3.q.35(7(){6(n.X!=r){n.1r()}},7(){n.1o()})}6(3.4.1O){3.q.3X(7(){6(n.X==r){n.1o()}})}};3.2F=7(){3.S=$("3Y",3.P);3.E=$("29",3.S);3.1s=3.E.K();6(3.G&&(3.1s!=3.s)&&3.v.K()==1){3.L("1D #3Z",3.4.M,1)}6(3.4.31){3.4.N=3.s}z{7 1t(a){2a=n.E.x(a);6(2a!="1n"&&a!=""&&a!="40"){y 36(2a)}z y 0}p c=3.4.D?3.v.H():3.v.I();p d=3.E.41(t);p e=3.E.42(t);p f=1t("1u-Z")+1t("1u-43");p g=1t("1u-10")+1t("1u-44");3.s=3.1s;6(3.4.N>3.s){3.4.N=3.1s}3.11=3.4.D?e:d;3.2b=3.11*3.1s;3.1v=(3.4.N*3.11)-(3.4.D?g:f);3.1R=3.4.D?"10":"Z";p h=3.4.D?"H":"I";p i=3.4.D?"I":"H";3.E.x({I:3.E.I(),H:3.E.H()});3.S.x(h,3.2b+"2c");3.P.x({I:3.4.D?d:3.1v,H:3.4.D?3.1v:e});6(3.4.2S){3.P.x(3.1R,(c-3.1v)/2).x("1u","0")}6(3.s>3.4.N){3.1k=t;6(3.4.O==r||3.4.O<0||3.4.O>3.s){3.4.O=3.4.N}}3.18=$(\'.\'+3.8.2s,3.v);6(3.18.K()>0){3.38()}}6(3.4.2R&&3.G){3.E.2d(7(){n.1N(2e(3,"29"),$(3))})}z 6(3.G||3.4.21){3.E.Y(7(){n.1N(2e(3,"29"),$(3));y 9})}7 2e(a,b){y $(b,$(a).2f()).45(a)}};3.38=7(){6(3.1k){3.3a=t;3.19=$("."+3.8.16,3.v);3.1w=$("."+3.8.17,3.v);3.18.F(3.8.C);3.19.Y(7(){n.16();y 9});3.1w.Y(7(){n.17();y 9});6(3.4.2T){3.19.2d(7(){n.16(t)});3.1w.2d(7(){n.17(t)});3.18.46(7(){n.3b()})}6(!3.4.1p){3.19.A(3.8.C)}}z{3.18.A(3.8.C)}};3.2g=7(){3.1a=3.4.D?3.S.2h().10:3.S.2h().Z;3.12=13.47(13.1x(3.1a)/3.11);
3543.14=13.48((3.2b-13.1x(3.1a)-3.1v)/3.11);6(3.14<0){3.14=0}};3.2G=7(){3.J=$("."+3.8.J,3.q);3.1b=$("."+3.8.V,3.q);3.1Q=3.J.K()>0?1:0;3.V=3.1b.K()>0?1:0;6(3.1Q){6(3.4.1n){3.J.A(3.8.1f)}3.J.Y(7(){6(n.J.1S(n.8.1f)){n.2i()}z{n.3c()}y 9})}6(3.V){3.2j=$("."+3.8.2v,3.q);3.2k=$("."+3.8.2w,3.q);6(3.4.2Z){3.1b.1y();$("."+3.8.w,3.q).35(7(){n.1b.3d()},7(){n.1b.49()})}3.2j.Y(7(){n.1J($(3));y 9});3.2k.Y(7(){n.1m($(3));y 9})}};3.2H=7(){6($(\'.\'+3.8.U,3.q).K()==0){3.w.4a(\'<3e 28="\'+3.8.U+\'"></3e>\');3.U=$(\'.\'+3.8.U,3.1W);3.U.x(\'2h\',\'4b\')}};3.15=7(a,b,c,d,e){6(e&&3.X!=r){6(3.1Q){3.2i()}6(3.4.1O){n.1r()}}6(a){6(a.1S(3.8.C)){y 9}}p f=0;p g=$(\':4c\',3.1V).K()>0?1:0;6(!g&&!3.2A){3.W=3.o;6(c==r&&!d){3.o=b=="-="?3.o+1:3.o-1}z 6(c!=r){c=36(c);3.o=c<0?0:c>3.s-1?3.s-1:c;p h=a?a.2f().2f().1S(3.8.P)?9:t:t}6(3.V){3.1b.F(3.8.C)}6(!3.4.1p){6(3.o==-1){3.o=0;f=1}6(3.o==0&&3.V){3.2j.A(3.8.C)}6(3.o==3.s){3.o=3.s-1;f=1}6(3.o==3.s-1){6(3.4.1n){3.1r()}6(3.V){3.2k.A(3.8.C)}}}z 6(!3.1k){6(3.o==3.s){3.o=0}6(3.o==-1){3.o=3.s-1}}6(3.1k&&!f){3.3f(d,b,h)}6(3.1C){3.3g(3.o)}6(!(d&&!3.4.2U)){6(3.G){3.3h(3.o,b)}}6(3.1j){3.1j=0}}};3.3f=7(a,b,c){3.2g();p d=a?t:9;p e=0;6(!a){p f=13.1x(3.o+1-3.12);p g=3.4.N-f+1;p h=3.o==0||3.o==3.s-1?1:0;6((3.4.21&&(g==1||f==1))&&!3.1j&&!h){e=3.4.O-1;d=t}6(g==0||f==0){d=t}6(c){6(g<0){g=0}b=3.W<3.o?\'-=\':\'+=\';p i=13.1x(3.W-3.o);6((i-1>g&&b==\'-=\')||(i>f&&b==\'+=\')){e=i;d=t}}6(b==""){6(3.W==3.o&&!h){b=3.3i=="-="?"+=":"-="}z{b=3.W<3.o?"-=":"+="}}3.3i=b}6(d){p j=e>0?e:3.4.O;p k=b=="-="?3.14:3.12;p l=k<j?k:j;p m=l*3.11;3.1i=b=="-="?3.12+l:3.12-l+3.4.N-1;6((b=="-="&&3.1i>3.o)||(b=="+="&&3.1i<3.o)){3.o=3.1i}6(3.4.1p){6(3.12<=0&&b=="+="){b="-=";3.o=3.s-1;m=(3.14/3.4.O)*(3.11*3.4.O)}z 6(3.14==0&&b=="-="){b="+=";3.o=0;m=13.1x(3.1a)}}3.3j(b,m)}};3.3h=7(a,b){3.Q=3.w.2l(a);3.2z=3.w.2l(3.W);p c=7(){6($.1z(n.4.27)){n.4.27()}n.1A(n.2C)};6(!3.Q.1S(3.8.B)){6(3.1j){3.2m=3.4.2Y;p d=1}z{p e=3.4.1E&&3.4.1G=="24"?"3k":"1q";3.2m=3.4.1E?e:3.4.1G}6($.1z(n.4.26)){n.4.26()}3.1A(3.2B);3.3l[3.2m](b,d,c)}};3.3j=7(a,b){p c=7(){6(!n.4.1p&&n.3a){n.18.F(n.8.C);n.2g();6(n.12<=0){n.19.A(n.8.C)}z 6(n.14<=0){n.1w.A(n.8.C)}}6(n.1B){4d(7(){n.1B=="-="?n.16():n.17()},0)}z 6($.1z(n.4.23)){n.4.23()}n.1A(n.2E)};6($.1z(n.4.22)){n.4.22()}n.1A(n.2D);3.3m[3.4.2V](a,b,c)};3.1A=7(c){$.3n(c,7(a,b){6($.1z(b)){b()}})};3.4e=7(a){a.4f=0};3.3l={1q:7(a,b,c){n.w.F(n.8.B).1y();n.Q.A(n.8.B).2n();c()},1H:7(a,b,c){6(a==""){a=n.1U<n.o?"-=":"+="}n.1U=n.o;p d=a=="-="?"+":"-";p e=n.4.30?"10":"Z";p f=n.4.D?n.1g:n.1h;p g=e=="10"?{10:a+f}:{Z:a+f};n.3o=$("."+n.8.T,n.q);n.3p=$("."+n.8.B,n.q);n.w.x(e,"0");n.3o.F(n.8.T).1y();n.3p.F(n.8.B).A(n.8.T);n.Q.A(n.8.B).x(e,d+f+"2c").2n();n.U.3q(t,t).x(e,"0").2o(g,n.4.1P,n.4.25,7(){c()})},24:7(a,b,c){6(b){n.w.1y()}z{n.Q.x("2y","1q")}$("."+n.8.T,n.q).F(n.8.T);$("."+n.8.B,n.q).3q(t,t).F(n.8.B).A(n.8.T);n.Q.A(n.8.B).2o({"4g":"2n"},n.4.1P,n.4.25,7(){c()})},3k:7(a,b,c){n.w.F(n.8.B).1y();n.Q.3d(n.4.1P,7(){c()})}};3.3m={1q:7(a,b,c){p d=a=="-="?n.1a-b:n.1a+b;n.S.x(n.1R,d+"2c");c()},1H:7(a,b,c){n.S.2o(n.1R=="Z"?{Z:a+b}:{10:a+b},n.4.2W,n.4.2X,7(){c()})}};3.2i=7(){3.J.F(3.8.1f);3.1r()};3.3c=7(){3.J.A(n.8.1f);3.1o()};3.1o=7(){p a=3;3.X=4h(7(){a.15(r,"-=",r,a.1I,r)},a.4.2Q)};3.1r=7(){4i(3.X);3.X=r};3.1N=7(a,b){3.15(b,"",a,0,1)};3.1J=7(a){3.15(a,"+=",r,n.1I,1)};3.1m=7(a){3.15(a,"-=",r,n.1I,1)};3.16=7(c){6(c){n.1B="-="}3.15(3.19,"+=",r,1,1)};3.17=7(c){6(c){n.1B="+="}3.15(3.1w,"-=",r,1,1)};3.3b=7(){n.1B=""};3.3g=7(a){$("."+3.8.1c,3.S).F(3.8.1c);3.E.2l(a).A(3.8.1c)}};$.4j.20=7(a){y 3.3n(7(){$(3).4k("20",1l 2p().2q(3,a))})}})(4l);',62,270,'|||this|options||if|function|cssNames|false|||||||||||||||currId|var|domObj|null|allItems|true|cssprefix|nav|panels|css|return|else|addClass|panelActive|btnDisable|verticalnav|navLI|removeClass|arePanels|height|width|playBtn|size|_errorReport|debug|shownavitems|scroll|navClip|currPanel|err|navUL|panelOld|panelsWrapper|goBtns|prevId|isPlaying|click|left|top|navLIsize|LIbefore|Math|LIafter|_change|navPrev|navNext|navBtns|navBtnPrev|navPos|gBtns|selected|panel|btn|btnPause|domObjHeight|domObjWidth|newId|firstTime|scrollActive|new|stepForward|auto|autoScrollStart|circular|none|autoScrollStop|navLINum|getLImargin|margin|navClipSize|navBtnNext|abs|hide|isFunction|_runCallBacks|scrollcontinue|isNavClip|Error|freeheight|Array|panelfx|sliding|lineScrollDo|stepBackward|start|try|catch|changeWithId|autostill|panelfxspeed|isPlayBtn|cssPosAttr|hasClass|go|prevPanel|runningScope|panelsBag|mousewheel|delaycaptions|timer|sliderkit|navscrollatend|navfxbefore|navfxafter|fading|panelfxeasing|panelfxbefore|panelfxafter|class|li|attrVal|navULSize|px|mouseover|getIndex|parent|_getNavPos|position|playBtnPause|goBtnPrev|goBtnNext|eq|panelTransition|show|animate|SliderKit|_init|_settings|navBtn|prev|next|goPrev|goNext|02|display|prevPanelStill|animating|panelAnteFns|panelPostFns|navAnteFns|navPostFns|_buildNav|_buildControls|_wrapPanels|keyboard|keyCode|panelclick|startId|counter|imageFx|_autoScrollHoverStop|fastchange|autospeed|navitemshover|navclipcenter|navcontinuous|navpanelautoswitch|navfx|scrollspeed|scrolleasing|panelfxfirst|panelbtnshover|verticalslide|tabs|nElement|id|attr|hover|parseInt||_buildNavButtons||scrollBtns|navStopContinuous|playBtnStart|fadeIn|div|_setNavScroll|selectThumbn
354ail|_animPanel|scrollWay|_animNav|tabsfading|_panelTransitions|_navTransitions|each|oldPanel|activePanel|stop|extend|active|old|wrapper|clip|disable|pause|play|01|block|changeOngoing|currLine|keyup|Counter|DelayCaptions|Timer|find|500|350|4000|600|700|imagefx|alert|Slider|Kit|error|nMessage|see|doc|for|details|mouseleave|ul|03|0px|outerWidth|outerHeight|right|bottom|index|mouseout|ceil|floor|fadeOut|wrapAll|relative|animated|setTimeout|_clearCallBacks|length|opacity|setInterval|clearTimeout|fn|data|jQuery'.split('|'),0,{}))
355/**
356 * jCarouselLite - jQuery plugin to navigate images/any content in a carousel style widget.
357 * @requires jQuery v1.2 or above
358 *
359 * http://gmarwaha.com/jquery/jcarousellite/
360 *
361 * Copyright (c) 2007 Ganeshji Marwaha (gmarwaha.com)
362 * Dual licensed under the MIT and GPL licenses:
363 * http://www.opensource.org/licenses/mit-license.php
364 * http://www.gnu.org/licenses/gpl.html
365 *
366 * Version: 1.0.1
367 * Note: Requires jquery 1.2 or above from version 1.0.1
368 * modified : esujin morenvy.com 2016-12-09
369 */
370
371!function(a){a.fn.mslidejCarouselLitePause=function(b){return b=a.extend({btnPrev:null,btnNext:null,btnGo:null,mouseWheel:!1,auto:null,speed:200,easing:null,vertical:!1,circular:!0,visible:3,start:0,startRandom:!1,scroll:1,pauseOnHover:!0,liheight:100,liwidth:100,beforeStart:null,afterEnd:null},b||{}),this.each(function(){function s(){return m.slice(o).slice(0,j)}function t(e){if(!c&&!k){if(b.beforeStart&&b.beforeStart.call(this,s()),b.circular)e<=b.start-j-1?(g.css(d,-((n-2*j)*p)+"px"),o=e==b.start-j-1?n-2*j-1:n-2*j-b.scroll):e>=n-j+1?(g.css(d,-(j*p)+"px"),o=e==n-j+1?j+1:j+b.scroll):o=e;else{if(e<0||e>n-j)return;o=e}c=!0,g.animate("left"==d?{left:-(o*p)}:{top:-(o*p)},b.speed,b.easing,function(){b.afterEnd&&b.afterEnd.call(this,s()),c=!1}),b.circular||(a(b.btnPrev+","+b.btnNext).removeClass("disabled"),a(o-b.scroll<0&&b.btnPrev||o+b.scroll>n-j&&b.btnNext||[]).addClass("disabled"))}return!1}var c=!1,d=b.vertical?"top":"left",e=b.vertical?"height":"width",f=a(this),g=a("ul",f),h=a("li",g),i=h.length,j=b.visible,k=0,l=document.body.clientWidth;1==b.startRandom&&(b.start=Math.floor(Math.random()*i+1)),b.circular&&(g.prepend(h.slice(i-j-1+1).clone()).append(h.slice(0,j).clone()),b.start+=j),b.pauseOnHover?g.hover(function(){k=1},function(){k=0}):"";var m=a("li",g),n=m.length,o=b.start;f.css("visibility","visible"),m.css({overflow:"hidden",float:b.vertical?"none":"left"}),g.css({margin:"0",padding:"0",position:"relative","list-style-type":"none","z-index":"1"}),f.css({overflow:"hidden",position:"relative","z-index":"2",left:"0px"});var p=b.vertical?b.liheight:b.liwidth,q=p*n,r=p*j;if(m.css({height:b.liheight}),g.css(e,q+"px").css(d,-(o*p)),!b.vertical){var p=l,q=l*n,r=l*j;m.css({width:l}),g.css(e,q+"px").css(d,-(o*p))}f.css(e,r+"px"),b.btnPrev&&a(b.btnPrev).click(function(){return t(o-b.scroll)}),b.btnNext&&a(b.btnNext).click(function(){return t(o+b.scroll)}),b.btnGo&&a.each(b.btnGo,function(c,d){a(d).click(function(){return t(b.circular?b.visible+c:c)})}),b.mouseWheel&&f.mousewheel&&f.mousewheel(function(a,c){return t(c>0?o-b.scroll:o+b.scroll)}),b.auto&&setInterval(function(){t(o+b.scroll)},b.auto+b.speed)})}}(jQuery);
372/**
373 * desc : 전체카테고리 트리구조 출력 및 배너추가
374 * auth : esujin morenvy.com
375 * date : 2017-04-17
376 * copyright @morenvy.com : 저작권있음
377 */
378
379
380$(document).ready(function(){
381
382	// 전체카테고리 html을 만들어서 리턴한다.
383    function makeAllHTML( aData, parent_no, depth, classname ) {
384		
385		var HTML = "";
386		var subHTML = "";
387		var imgHTML = "";
388		var cate_no = "";
389		depth++;
390
391		for (index in aData){
392			if( aData[index]["parent_cate_no"] == parent_no ) {
393				HTML = HTML + "\n<li cate='"+aData[index]["cate_no"]+"'    value='"+aData[index]["cate_no"]+"'   ><a href='"+aData[index]["link_product_list"]+"' "+classname+" >" + aData[index]["name"] +"</a>"; 
394				cate_no = aData[index]["cate_no"];                                                                       
395				delete aData[index];
396				if (aData.length > 0) subHTML = makeAllHTML( aData, cate_no, depth, classname );
397
398				if ( subHTML != "" ) subHTML = "\n<div class='sub uldepth"+depth+"' ><ul class='depth"+depth+"' >"+subHTML+"\n</ul></div><div class='sub_cate_on_arrow'></div>"; 
399 
400
401				HTML = HTML + subHTML + "</li>";
402			}
403		}
404		return HTML;
405	}
406 	
407	//addBanner : 첫번째 인자의 class에 두번째 인자의 (배너)내용을 넣어준다.
408	function addBanner( cateSelector,  bannerSelector  ) {
409		var com_HTML = "";
410		var banObj = new Object();
411		$(bannerSelector + " li").each(function( index ) {
412			banObj[$( this ).attr("cateno")] = $( this ).html();
413
414			var findLI = $(cateSelector + " li[cate='"+$( this ).attr("cateno")+"']");
415			var findDIV = $(cateSelector + " li[cate='"+$( this ).attr("cateno")+"']").find(">div");
416
417            if (findLI.length > 0) { // 배너가 들어갈(해당하는) li 분류가 있는 경우
418                 
419                //배너영역 추가 가로폭 계산
420                var addedW = 0;
421                var addedH = 0;
422                addedW = $( this ).find(".banarea").outerWidth();
423                addedH = $( this ).find(".banarea").outerHeight();
424                
425                 if (findDIV.length > 0) { // ul중분류가 존재한다면 끝에 붙여넣기
426                    //원래 중분류 가로폭 계산
427                    var orginalW = findDIV.outerWidth();
428                    var orginalH = findDIV.outerHeight();
429                    
430                    //console.log( findDIV.css("width"));
431                    findDIV.css("width",orginalW + addedW);
432                    findDIV.css("height", Math.max(orginalH,  addedH));
433                    findDIV.append($( this ).html());
434                 } else { // ul 중분류가 없다면 새로 만들어 넣어주기
435                    var uldep = findLI.parent("ul").attr("class");
436                    uldep = parseInt(uldep.replace("depth", ""));
437                    findLI.append("<div class='sub uldepth"+(uldep+1)+"' ><div class='arrow'></div>"+$( this ).html()+"</ul>");
438
439                    findLI.find(".sub").css("width", addedW);
440                    findLI.find(".sub").css("height", addedH);
441                  }
442			}
443 		});
444
445 
446 	}
447 
448     
449    //원하는 depth까지만 남겨두고 삭제한다. 함수자체를 사용하지 않으면 전체카테고리로 출력한다.
450	function removeUnderDepth( htmlSelector,  depth  ) {
451        $(htmlSelector).find(".uldepth"+(depth+1)).remove();
452        return $(htmlSelector).html();
453    }
454
455 
456     var m_method = {
457        get: function()
458        {
459             $.ajax({
460                url : '/exec/front/Product/SubCategory',
461                dataType: 'json',
462                success: function(aData) {
463                    if (aData == null || aData == 'undefined') return;
464
465                    // 전체카테고리 html을 만들어서 보관한다.
466					var morenvyAllHTML = "<ul class='depth1'>"+makeAllHTML( aData, 1, 1, " " )+"</ul>";
467					$(".morenvyAllCategory").html( morenvyAllHTML ); 
468                    
469                    // ★ 상단메뉴 여기서부터
470                    //표현할 class에 html을 넣고
471					$(".category_list_box").html( morenvyAllHTML ); 
472                    //addBanner : 첫번째 인자의 class에 두번째 인자의 내용을 넣어준다.
473					addBanner(".category_list_box", ".openCateBannerArea");
474                    //원하는 depth까지만 남겨두고 삭제한다. 함수자체를 사용하지 않으면 전체카테고리로 출력한다.
475                    removeUnderDepth( ".category_list_box", 5 );
476                    
477                    // 마우스 오버 아웃
478                    $('.category_list_box ul>li , .morenvyAllCategory .depth2 > li , , .morenvyAllCategory .depth3 > li').mouseenter(function(e) {
479                        $(this).find(">div.sub").css("display","inline");
480						$("> a", this).addClass('sub_mouse_hover');
481                    }).mouseleave(function(e) {
482                      $(this).find(">div.sub").css("display","none");
483					  $("> a", this).removeClass('sub_mouse_hover');
484                    });     
485                    // 상단메뉴 여기까지 ★
486                    
487					/* morenvy.com 상단 카테고리 소분류 */
488					$('.category_list_box .depth2 > li , .morenvyAllCategory .depth2 > li').mouseenter(function(e) {
489						$(this).find('> .sub_cate_on_arrow').addClass('rotateon');
490					}).mouseleave(function(e) {
491						$(this).find('> .sub_cate_on_arrow').removeClass('rotateon');
492					});
493
494					/* morenvy.com 상단 카테고리 하위분류 */
495					$('.category_list_box .depth3 > li , .morenvyAllCategory .depth3 > li').mouseenter(function(e) {
496						$(this).find('> .sub_cate_on_arrow').addClass('rotateon');
497					}).mouseleave(function(e) {
498						$(this).find('> .sub_cate_on_arrow').removeClass('rotateon');
499					});
500                    // morenvyAllHTML을 이용하여 전체카테고리 또는 왼쪽메뉴 카테고리를 추가로 더 만들어 사용할 수 있다.
501                }
502
503            });
504        } 
505    };
506
507    m_method.get();
508    
509
510	
511});
512
513
514jQuery(document).ready(function() {
515	/* morenvy.com 최상단 배너 */
516	jQuery('.m_onoffmulti_top .mslide').mslidejCarouselLitePause({
517		btnNext: '.m_onoffmulti_top .next',
518		btnPrev: '.m_onoffmulti_top .prev',
519		auto: 3000,
520		speed: 500,
521		visible: 1,
522		vertical: true,
523		liheight: 70,
524		liwidth: 1200,
525		easing: 'swing'
526	});
527
528	jQuery('.m_onoffmulti_top').topbanner({
529		'topbanner' : '.onoffarea', 
530		'firstpop' : 'open',  
531		'openspeed' : 'fast',  
532		'closespeed' : 'fast'  
533	});
534
535	/* 상단로고우측 2단배너 */
536	jQuery(".contentslider-std").sliderkit({
537		auto:1, /* 0 : 클릭하면 동작, 1 : 자동 동작 */
538		tabs:1,
539		circular:1,
540		navitemshover:true,
541		panelfx:"sliding", // fading , sliding, none 사용가능
542		panelfxfirst:"none",
543		panelfxeasing:"easeInOutExpo",
544		fastchange:0,
545		keyboard:1,
546		verticalslide:true,
547		verticalnav:true,
548		autospeed: 5000
549	});
550
551	/* morenvy.com 상단 전체카테고리 */
552	jQuery('#header .section3 .all_cate_cursor').mouseenter(function(){
553		jQuery("div:first").is(":hidden")
554		jQuery("#all_cate_area").fadeIn("fast");
555	}).mouseleave(function(){
556		jQuery("div:first").is(":hidden")
557		jQuery("#all_cate_area").fadeOut("fast");
558	});
559
560	/* 카테고리 오버시 색상유지 */
561	jQuery( ".category_list li" ).mouseover(function() {
562		jQuery(".category_list_box", this).css('display', 'block');
563		jQuery("> a", this).css('box-shadow','0 2px 0 0  rgba(0,0,0,1) inset');
564		jQuery("> a", this).css('color','#222');
565		});
566		jQuery( ".category_list li" ).mouseout(function() {
567		jQuery(".category_list_box", this).css('display', 'block');
568		jQuery("> a", this).css('box-shadow','0 0px 0 0  rgba(0,0,0,1) inset');
569		jQuery("> a", this).css('color','#222');
570	});
571
572	/* morenvy.com 하단 은행링크 */
573	jQuery('#mfooter .section1 .inner .left_brand').mouseenter(function() {
574		jQuery(this).find('#brandmenu').css("display","block");
575	}).mouseleave(function() {
576		jQuery(this).find("#brandmenu").css("display","none");
577	});
578
579
580	/* morenvy.com 상품 할인율 */
581	jQuery( ".salebox" ).each(function( index ) {
582
583 		var product_custom = jQuery(this).children( ".hidden_pcustom" ).text();
584		var product_price = jQuery(this).children( ".hidden_pprice" ).text();
585		var sale_cnt = "";
586
587		if (product_custom == "" )  product_custom = 0;
588		else product_custom =  parseInt(product_custom.replace(",",""));
589
590		if (product_price == "" )  product_price = 0;
591		else product_price =  parseInt(product_price.replace(",",""));
592
593		if(  ( product_custom > 0 )  && ( product_price > 0 )  && ( product_custom > product_price  ) ) {
594
595			sale_cnt = Math.round(  ( product_custom - product_price ) / product_custom * 100 );
596			jQuery( this ).find('.sale_text').text(sale_cnt + '%');
597			jQuery( this ).find('.sale_text').css("display", "block");
598		} else {
599			jQuery( this ).find('.sale_text').css("display", "none");
600		}
601	});
602	 /* morenvy.com 퀵메뉴 배너 */
603	 jQuery(".contentslider-quick").sliderkit({
604		auto:1,
605		tabs:1,
606		circular:1,
607		panelfx:"sliding",
608		panelfxfirst:"none",
609		panelfxeasing:"easeInCubic",
610		fastchange:0,
611		keyboard:1,
612		autospeed:3000
613	});
614
615
616
617	/* morenvy.com 우측 퀵메뉴 */
618    jQuery("#right_bn_wrap").show();
619
620    function smdelCookieCpa(cookie_name) {
621        var _today = new Date();
622        var value = '';
623        _today.setDate(_today.getDate() - 1);
624        document.cookie = cookie_name + "=" + value + '; path=/;' + "; expires=" + _today.toGMTString();
625    }
626    jQuery(".quick_bn_box").click(function() {
627        if (jQuery("#right_bn_wrap").css("margin-right") != "-189px") {
628			jQuery(".page_up").animate({
629				"margin-right": 0 + "px"
630            }, 300, "linear", function() {});
631            jQuery("#right_bn_wrap").animate({
632                "margin-right": -189 + "px"
633            }, 300, "linear", function() {})
634			jQuery(".quick_bn_text").fadeIn("slow");
635
636            setCookieCpa("smcookie", "smcookie", 1);
637        } else {
638			jQuery(".page_up").animate({
639				"margin-right": 150 + "px"
640            }, 300, "linear", function() {});
641            jQuery("#right_bn_wrap").animate({
642                "margin-right": 0 + "px"
643            }, 300, "linear", function() {
644
645            });
646			jQuery(".quick_bn_text").fadeOut("slow");
647            smdelCookieCpa("smcookie");
648        }
649    });
650	 /* 화면오픈 후, 5초 이후 자동으로 사이드메뉴 닫기 */
651    var side_close = function sideClose() {
652        if (jQuery("#right_bn_wrap").css("margin-right") != "-189px") $( ".quick_bn_box" ).trigger( "click" );
653		jQuery(".quick_bn_text").fadeIn("slow");
654    }   
655    setTimeout( side_close ,5000); 
656    /* 화면오픈 후, 5초 이후 자동으로 사이드메뉴 닫기 */
657    
658    if (getCookiefss("smcookie")) {
659        jQuery("#right_bn_wrap").css({
660            "margin-right": -189 + "px"
661        });
662    }
663
664});
665
666/* morenvy.com 쿠키 스크립트 */
667function setCookieCpa(cookie_name, cookie_value, expire_date) {
668    var today = new Date();
669    var expire = new Date();
670    expire.setTime(today.getTime() + 3600000 * 24 * expire_date);
671    cookies = cookie_name + '=' + cookie_value + '; path=/;';
672    if (expire_date != 0) cookies += 'expires=' + expire.toGMTString();
673    document.cookie = cookies;
674}
675
676function delCookieCpa(cookie_name) {
677    var _today = new Date();
678    var value = '';
679
680    _today.setDate(_today.getDate() - 1);
681
682    document.cookie = cookie_name + "=" + value + "; expires=" + _today.toGMTString();
683}
684
685function getCookiefss(name) {
686    lims = document.cookie;
687    var index = lims.indexOf(name + "=");
688    if (index == -1) {
689        return null;
690    }
691    index = lims.indexOf("=", index) + 1; // first character
692    var endstr = lims.indexOf(';', index);
693    if (endstr == -1) {
694        endstr = lims.length; // last character
695    }
696    return unescape(lims.substring(index, endstr));
697}
698
699
700$(document).ready(function(){
701    if (typeof(EC_SHOP_MULTISHOP_SHIPPING) != "undefined") {
702        var sShippingCountryCode4Cookie = 'shippingCountryCode';
703        var bShippingCountryProc = false;
704
705        // 배송국가 선택 설정이 사용안함이면 숨김
706        if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) {
707            $('.xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist').hide();
708            $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptioncountry').hide();
709        } else {
710            $('.thumb .xans-layout-multishoplistitem').hide();
711            var aShippingCountryCode = document.cookie.match('(^|;) ?'+sShippingCountryCode4Cookie+'=([^;]*)(;|$)');
712            if (typeof(aShippingCountryCode) != 'undefined' && aShippingCountryCode != null && aShippingCountryCode.length > 2) {
713                var sShippingCountryValue = aShippingCountryCode[2];
714            }
715
716            // query string으로 넘어 온 배송국가 값이 있다면, 그 값을 적용함
717            var aHrefCountryValue = decodeURIComponent(location.href).split("/?country=");
718
719            if (aHrefCountryValue.length == 2) {
720                var sShippingCountryValue = aHrefCountryValue[1];
721            }
722
723            // 메인 페이지에서 국가선택을 안한 경우, 그 외의 페이지에서 셋팅된 값이 안 나오는 현상 처리
724            if (location.href.split("/").length != 4 && $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()) {
725                $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join(""));
726
727                if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) {
728                    $("#f_country").val($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val());
729                }
730            }
731            if (typeof(sShippingCountryValue) != "undefined" && sShippingCountryValue != "" && sShippingCountryValue != null) {
732                sShippingCountryValue = sShippingCountryValue.split("#")[0];
733                var bShippingCountryProc = true;
734
735                $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue);
736                $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join(""));
737                var expires = new Date();
738                expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30일간 쿠키 유지
739                document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString();
740                if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) {
741                    $("#f_country").val(sShippingCountryValue).change();;
742                }
743            }
744        }
745        // 언어선택 설정이 사용안함이면 숨김
746        if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingLanguageSelection === false) {
747            $('.xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist').hide();
748            $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptionlanguage').hide();
749        } else {
750            $('.thumb .xans-layout-multishoplistitem').hide();
751        }
752
753        // 배송국가 및 언어 설정이 둘 다 사용안함이면 숨김
754        if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShipping === false) {
755            $(".xans-layout-multishopshipping").hide();
756            $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption').hide();
757        } else if (bShippingCountryProc === false && location.href.split("/").length == 4) { // 배송국가 값을 처리한 적이 없고, 메인화면일 때만 선택 레이어를 띄움
758            var sShippingCountryValue = $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val();
759            $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue);
760            $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join(""));
761            // 배송국가 선택을 사용해야 레이어를 보이게 함
762            if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === true) {
763                $(".xans-layout-multishopshipping").show();
764            }
765        }
766
767        $(".xans-layout-multishopshipping .close").bind("click", function() {
768            $(".xans-layout-multishopshipping").hide();
769        });
770
771        $(".xans-layout-multishopshipping .ec-base-button a").bind("click", function() {
772            var expires = new Date();
773            expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30일간 쿠키 유지
774            document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString();
775
776            // 도메인 문제로 쿠키로 배송국가 설정이 안 되는 경우를 위해 query string으로 배송국가 값
776을 넘김
777            var sQuerySting = (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) ? "" : "/?country="+encodeURIComponent($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val());
778
779            location.href = '//'+$(".xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist").val()+sQuerySting;
780        });
781        $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a").bind("click", function() {
782            $(".xans-layout-multishopshipping").show();
783        });
784    }
785});

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.