var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opens = _____WB$wombat$assign$function_____("opens");
/**
* 상품상세 사용후기
*/
$(document).ready(function(){
$('.xans-product-review a').click(function(e) {
e.preventDefault();
var no = $(this).attr('href').replace(/(\S*)no=(\d+)(\S*)/g, '$2');
var $obj = $('#product-review-read_'+no);
//로드된 엘리먼트 존재 체크
if ($obj.length > 0) {
if ($obj.css('display') =='none') {
$obj.show();
} else {
$obj.hide();
}
return;
}
REVIEW.getReadData($(this));
});
});
var PARENT = '';
var OPEN_REVIEW = '';
var REVIEW = {
getReadData : function(obj, eType)
{
if (obj != undefined) {
PARENT = obj;
var sHref = obj.attr('href');
var pNode = obj.parents('tr');
var pass_check = '&pass_check=F';
} else {
var sHref = PARENT.attr('href');
var pNode = PARENT.parents('tr');
var pass_check = '&pass_check=T';
}
var sQuery = sHref.split('?');
var sQueryNo = sQuery[1].split('=');
if (OPEN_REVIEW == sQueryNo[1]) {
$('#product-review-read').remove();
OPEN_REVIEW = '';
return false;
} else {
OPEN_REVIEW = sQueryNo[1];
}
$.ajax({
url : '/exec/front/board/product/4?'+sQuery[1]+pass_check,
dataType: 'json',
success: function(data) {
$('#product-review-read').remove();
var sPath = document.location.pathname;
var sPattern = /^\/product\/(.+)\/([0-9]+)(\/.*)/;
var aMatchResult = sPath.match(sPattern);
if (aMatchResult) {
var iProductNo = aMatchResult[2];
} else {
var iProductNo = getQueryString('product_no');
}
var aHtml = [];
//읽기 권한 체크
if (false === data.read_auth && eType == undefined) {
alert(decodeURIComponent(data.alertMSG));
//로그인페이지 이동
if (data.returnUrl != undefined) {
location.replace("/member/login.html?returnUrl=" + data.returnUrl);
}
return false;
}
if (data.is_secret == true) {
// 비밀글 비밀번호 입력 폼
aHtml.push('
');
} else {
// 글 내용
if (data.read['content_image'] != null) {
var sImg = data.read['content_image'];
} else {
var sImg = '';
}
aHtml.push('');
aHtml.push('
'+data.read['content']+'
');
aHtml.push('
'+sImg+'
');
aHtml.push('
');
if (data.write_auth == true) {
aHtml.push('
');
}
aHtml.push('
');
aHtml.push('
');
// 댓글리스트
if (data.comment != undefined && data.comment.length != undefined) {
aHtml.push('');
}
// 댓글쓰기
if (data.comment_write != undefined) {
aHtml.push('');
}
// 댓글의 댓글쓰기
if (data.comment_reply != undefined) {
aHtml.push('');
}
// 비밀댓글 확인
if (data.comment_secret != undefined) {
aHtml.push('');
}
}
$(pNode).after('| '+aHtml.join('')+' |
');
// 평점기능 사용안함일 경우 보여지는 td를 조절하기 위한 함수
PRODUCT_COMMENT.comment_colspan(pNode);
if (data.comment_write != undefined && data.comment_write['use_comment_size'] == '') PRODUCT_COMMENT.comment_byte(4, data.key);
if (data.comment_reply != undefined && data.comment_write['use_comment_size'] == '') PRODUCT_COMMENT.comment_byte(4, data.key, 'commentReplyWriteForm');
}
});
},
END : function() {}
};
/**
* 상품상세 Q&A
*/
$(document).ready(function(){
$('.xans-product-qna a').click(function(e) {
e.preventDefault();
var no = $(this).attr('href').replace(/(\S*)no=(\d+)(\S*)/g, '$2');
var $obj = $('#product-qna-read_'+no);
//로드된 엘리먼트 존재 체크
if ($obj.length > 0) {
if ($obj.css('display') =='none') {
$obj.show();
} else {
$obj.hide();
}
return;
}
QNA.getReadData($(this));
});
});
var PARENT = '';
var OPEN_QNA = '';
var QNA = {
getReadData : function(obj, eType)
{
if (obj != undefined) {
PARENT = obj;
var sHref = obj.attr('href');
var pNode = obj.parents('tr');
var pass_check = '&pass_check=F';
} else {
var sHref = PARENT.attr('href');
var pNode = PARENT.parents('tr');
var pass_check = '&pass_check=T';
}
var sQuery = sHref.split('?');
var sQueryNo = sQuery[1].split('=');
if (OPEN_QNA == sQueryNo[1]) {
$('#product-qna-read').remove();
OPEN_QNA = '';
return false;
} else {
OPEN_QNA = sQueryNo[1];
}
$.ajax({
url : '/exec/front/board/product/6?'+sQuery[1]+pass_check,
dataType: 'json',
success: function(data) {
$('#product-qna-read').remove();
var sPath = document.location.pathname;
var sPattern = /^\/product\/(.+)\/([0-9]+)(\/.*)/;
var aMatchResult = sPath.match(sPattern);
if (aMatchResult) {
var iProductNo = aMatchResult[2];
} else {
var iProductNo = getQueryString('product_no');
}
var aHtml = [];
//읽기 권한 체크
if (false === data.read_auth && eType == undefined) {
alert(decodeURIComponent(data.alertMSG));
//로그인페이지 이동
if (data.returnUrl != undefined) {
location.replace("/member/login.html?returnUrl=" + data.returnUrl);
}
return false;
}
if (data.is_secret == true) {
// 비밀글 비밀번호 입력 폼
aHtml.push('');
} else {
// 글 내용
if (data.read['content_image'] != null) {
var sImg = data.read['content_image'];
} else {
var sImg = '';
}
aHtml.push('');
aHtml.push('
'+data.read['content']+'
');
aHtml.push('
'+sImg+'
');
aHtml.push('
');
if (data.write_auth == true) {
aHtml.push('
');
}
aHtml.push('
');
aHtml.push('
');
// 댓글리스트
if (data.comment != undefined && data.comment.length != undefined) {
aHtml.push('');
}
// 댓글쓰기
if (data.comment_write != undefined) {
aHtml.push('');
}
// 댓글의 댓글쓰기
if (data.comment_reply != undefined) {
aHtml.push('');
}
// 비밀댓글 확인
if (data.comment_secret != undefined) {
aHtml.push('');
}
}
$(pNode).after('| '+aHtml.join('')+' |
');
// 평점기능 사용안함일 경우 보여지는 td를 조절하기 위한 함수
PRODUCT_COMMENT.comment_colspan(pNode);
if (data.comment_write != undefined && data.comment_write['use_comment_size'] == '') PRODUCT_COMMENT.comment_byte(6, data.key);
if (data.comment_reply != undefined && data.comment_write['use_comment_size'] == '') PRODUCT_COMMENT.comment_byte(6, data.key, 'commentReplyWriteForm');
}
});
},
END : function() {}
};
/**
* 움직이는 배너 Jquery Plug-in
* @author cafe24
*/
;(function($){
$.fn.floatBanner = function(options) {
options = $.extend({}, $.fn.floatBanner.defaults , options);
return this.each(function() {
var aPosition = $(this).position();
var node = this;
$(window).scroll(function() {
var _top = $(document).scrollTop();
_top = (aPosition.top < _top) ? _top : aPosition.top;
setTimeout(function () {
$(node).stop().animate({top: _top}, options.animate);
}, options.delay);
});
});
};
$.fn.floatBanner.defaults = {
'animate' : 500,
'delay' : 500
};
})(jQuery);
/**
* 문서 구동후 시작
*/
/**
* 썸네일 이미지 엑박일경우 기본값 설정
*/
$(window).load(function() {
$("img.thumb,img.ThumbImage,img.BigImage").each(function($i,$item){
var $img = new Image();
$img.onerror = function () {
$item.src="http://img.echosting.cafe24.com/thumb/img_product_big.gif";
}
$img.src = this.src;
});
});
//window popup script
function winPop(url) {
window.open(url, "popup", "width=300,height=300,left=10,top=10,resizable=no,scrollbars=no");
}
/**
* document.location.href split
* return array Param
*/
function getQueryString(sKey)
{
var sQueryString = document.location.search.substring(1);
var aParam = {};
if (sQueryString) {
var aFields = sQueryString.split("&");
var aField = [];
for (var i=0; i'+sPage+'');
} else {
var sHref = $(this).attr('href');
$(this).parent().html(''+sPage+'');
}
});
}
$(document).ready(function(){
// tab
$.eTab = function(ul){
$(ul).find('a').click(function(){
var _li = $(this).parent('li').addClass('selected').siblings().removeClass('selected'),
_target = $(this).attr('href'),
_siblings = '.' + $(_target).attr('class');
$(_target).show().siblings(_siblings).hide();
return false
});
}
if ( window.call_eTab ) {
call_eTab();
};
});
$.fn.extend({
center: function() {
this.each(function() {
var
$this = $(this),
$w = $(window);
$this.css({
position: "absolute",
top: ~~(($w.height() - $this.outerHeight()) / 2) + $w.scrollTop() + "px",
left: ~~(($w.width() - $this.outerWidth()) / 2) + $w.scrollLeft() + "px"
});
});
return this;
}
});
$(function() {
var $container = function(){/*
');
*/}.toString().slice(14,-3);
$('body')
.append($(''))
.append($($container));
function closeModal () {
$('#modalContainer').hide();
$('#modalBackpanel').hide();
}
$('#modalBackpanel').click(closeModal);
zoom = function ($piProductNo, $piCategoryNo, $piDisplayGroup) {
var $url = '/product/image_zoom.html?product_no=' + $piProductNo + '&cate_no=' + $piCategoryNo + '&display_group=' + $piDisplayGroup;
$('#modalContent').attr('src', $url);
$('#modalContent').bind("load",function(){
$(".header .close",this.contentWindow.document.body).bind("click", closeModal);
});
$('#modalBackpanel').css({width:$("body").width(),height:$("body").height(),opacity:.4}).show();
$('#modalContainer').center().show();
}
});
/*! Sidr - v1.1.1 - 2013-03-14
* https://github.com/artberri/sidr
* Copyright (c) 2013 Alberto Varela; Licensed MIT */
(function(e){var t=!1,i=!1,o={isUrl:function(e){var t=RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i");return t.test(e)?!0:!1},loadContent:function(e,t){e.html(t)},addPrefix:function(e){var t=e.attr("id"),i=e.attr("class");"string"==typeof t&&""!==t&&e.attr("id",t.replace(/([A-Za-z0-9_.\-]+)/g,"sidr-id-$1")),"string"==typeof i&&""!==i&&"sidr-inner"!==i&&e.attr("class",i.replace(/([A-Za-z0-9_.\-]+)/g,"sidr-class-$1")),e.removeAttr("style")},execute:function(o,n,s){"function"==typeof n?(s=n,n="sidr"):n||(n="sidr");var a,d,l,c=e("#"+n),f=e(c.data("body")),u=e("html"),p=c.outerWidth(!0),y=c.data("speed"),v=c.data("side");if("open"===o||"toogle"===o&&!c.is(":visible")){if(c.is(":visible")||t)return;if(i!==!1)return r.close(i,function(){r.open(n)}),void 0;t=!0,"left"===v?(a={left:p+"px"},d={left:"0px"}):(a={right:p+"px"},d={right:"0px"}),l=u.scrollTop(),u.css("overflow-x","hidden").scrollTop(l),f.css({width:f.width(),position:"absolute"}).animate(a,y),c.css("display","block").animate(d,y,function(){t=!1,i=n,"function"==typeof s&&s(n)})}else{if(!c.is(":visible")||t)return;t=!0,"left"===v?(a={left:0},d={left:"-"+p+"px"}):(a={right:0},d={right:"-"+p+"px"}),l=u.scrollTop(),u.removeAttr("style").scrollTop(l),f.animate(a,y),c.animate(d,y,function(){c.removeAttr("style"),f.removeAttr("style"),e("html").removeAttr("style"),t=!1,i=!1,"function"==typeof s&&s(n)})}}},r={open:function(e,t){o.execute("open",e,t)},close:function(e,t){o.execute("close",e,t)},toogle:function(e,t){o.execute("toogle",e,t)}};e.sidr=function(t){return r[t]?r[t].apply(this,Array.prototype.slice.call(arguments,1)):"function"!=typeof t&&"string"!=typeof t&&t?(e.error("Method "+t+" does not exist on jQuery.sidr"),void 0):r.toogle.apply(this,arguments)},e.fn.sidr=function(t){var i=e.extend({name:"sidr",speed:300,side:"left",source:null,renaming:!0,body:"body"},t),n=i.name,s=e("#"+n);if(0===s.length&&(s=e("").attr("id",n).appendTo(e("body"))),s.addClass("sidr").addClass(i.side).data({speed:i.speed,side:i.side,body:i.body}),"function"==typeof i.source){var a=i.source(n);o.loadContent(s,a)}else if("string"==typeof i.source&&o.isUrl(i.source))e.get(i.source,function(e){o.loadContent(s,e)});else if("string"==typeof i.source){var d="",l=i.source.split(",");if(e.each(l,function(t,i){d+=''+e(i).html()+"
"}),i.renaming){var c=e("").html(d);c.find("*").each(function(t,i){var r=e(i);o.addPrefix(r)}),d=c.html()}o.loadContent(s,d)}else null!==i.source&&e.error("Invalid Sidr Source");return this.each(function(){var t=e(this),i=t.data("sidr");i||(t.data("sidr",n),t.click(function(e){e.preventDefault(),r.toogle(n)}))})}})(jQuery);
$(document).ready(function() {
$('#simple-menu').sidr();
});
}
/*
FILE ARCHIVED ON 13:31:09 Feb 15, 2019 AND RETRIEVED FROM THE
INTERNET ARCHIVE ON 20:24:51 Apr 07, 2026.
JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
SECTION 108(a)(3)).
*/
/*
playback timings (ms):
capture_cache.get: 0.464
captures_list: 0.478
exclusion.robots: 0.017
exclusion.robots.policy: 0.008
esindex: 0.008
cdx.remote: 43.649
LoadShardBlock: 76.478 (3)
PetaboxLoader3.datanode: 84.027 (4)
load_resource: 952.189
PetaboxLoader3.resolve: 883.689
*/