function laypop_bak(n,t,i,r,u,f,e){function v(){$("html, body").animate({scrollTop:s+"px"},function(){$(".gnbMenu li").on("mouseover",function(){var n=$(this).attr("class");$(".gnb2DepthBox").hide();$(".d2"+n).show()})})}var h,o,c,l,a;r&&(h="
<\/p>
<\/a><\/p><\/div><\/div>");$("body").append(h);o="POST";r!=null&&r.indexOf(".html")>0&&(o="GET");c=function(){$.ajax({type:o,url:r,cache:!1,success:function(t){var s,h,u,r,o;if(typeof t=="object"&&t.rsCd=="LOGIN"){s=document.location.href.replace(/^[^:]+:\/\/[^/]+/,"").replace(/#.*/,"");location.href="/sg/Home/Account/Login?rpage="+encodeURIComponent(s);$(".layPopWp."+n).find(".laypX, .popExit").trigger("click");return}$(".laypC."+n).append(t);h=$("."+n+" .ctnbody").innerHeight();u=i-60;f?$(".laypC."+n).css({overflow:"scroll","overflow-x":"hidden",height:u}):$(".laypC."+n).css({height:u});$(".popExit").on("click",function(){$(".layPopWp").remove();$("body").css({overflow:"auto"});$(".gnbMenu li").on("mouseover",function(){$(".gnb2DepthBox").hide()});v()});r=$.extend({},{initFuncName:"",initFuncArgs:null,rtnFunc:null},e);typeof r.initFuncName=="string"&&r.initFuncName.length>0&&window[r.initFuncName](r.initFuncArgs);typeof r.rtnFunc=="function"&&(window.rtnFunc=r.rtnFunc);o=$(".layPopWp."+n);atomy.PopGuide();atomy.Count(o);atomy.AlertProduct(o);atomy.Popup_ProductZoom();atomy.PriceComma();atomy.PriceView();atomy.PricePaper1();atomy.PricePaper2()}})};$("."+n+" .layPop").animate({width:t},300,c);$("."+n+" .layPop").css({height:i});$(".layPopWp."+n).find(".laypT").append(u);u==""&&$(".laypT").css({margin:"0"});var y=$(window).innerHeight(),p=$(document).innerHeight(),s=$(window).scrollTop();$("html, body").animate({scrollTop:s+"px"});l=$("."+n+" .layPop").innerHeight()/2-s;a=y/2-l;$("body").css({overflow:"auto"});$(".layPopWp."+n).css({height:p});$("."+n+" .layPop").css({"margin-top":a});$(".laypX, .popExit").on("click",function(){n=="one"&&$("body").css({overflow:"auto"});$("."+n).remove();$(".gnbMenu li").on("mouseover",function(){$(".gnb2DepthBox").hide()});v()})}function laypop(n,t,i,r,u,f,e){$.ajax({type:"GET",url:r,dataType:"html",cache:!1,success:function(r){function b(){$("html, body").animate({scrollTop:h+"px"},function(){$(".gnbMenu li").on("mouseover",function(){var n=$(this).attr("class");$(".gnb2DepthBox").hide();$(".d2"+n).show()})})}var v=" <\/p> <\/a><\/p><\/div><\/div>",y,s,l,a,o,c;$("body").append(v);y=$("."+n+" .ctnbody").innerHeight();s=i-60;f?$(".laypC."+n).css({overflow:"scroll","overflow-x":"hidden",height:s}):$(".laypC."+n).css({height:s});$("."+n+" .layPop").css({width:t,height:i});$(".layPopWp."+n).find(".laypT").append(u);u==""&&$(".laypT").css({margin:"0"});var p=$(window).innerHeight(),w=$(document).innerHeight(),h=$(window).scrollTop();$("html, body").animate({scrollTop:h+"px"});l=$("."+n+" .layPop").innerHeight()/2-h;a=p/2-l;$("body").css({overflow:"auto"});$(".layPopWp."+n).css({height:w});$("."+n+" .layPop").css({"margin-top":a});$(".laypX, .popExit").on("click",function(){n=="one"&&$("body").css({overflow:"auto"});$("."+n).remove();$(".gnbMenu li").on("mouseover",function(){$(".gnb2DepthBox").hide()});b()});$(".laypC."+n).append(r);$(".layPopWp."+n).show();$(".popExit").unbind("click");$(".popExit").on("click",function(){$(".laypX").trigger("click")});o=$.extend({},{initFuncName:"",initFuncArgs:null,rtnFunc:null},e);typeof o.initFuncName=="string"&&o.initFuncName.length>0&&window[o.initFuncName](o.initFuncArgs);typeof o.rtnFunc=="function"&&(window.rtnFunc=o.rtnFunc);c=$(".layPopWp."+n);atomy.PopGuide();atomy.Count(c);atomy.AlertProduct(c);atomy.Popup_ProductZoom();atomy.PriceComma();atomy.PriceView();atomy.PricePaper1();atomy.PricePaper2()},error:function(n){try{if(n!=null&&n.status==401){var t=document.location.href.replace(/^[^:]+:\/\/[^/]+/,"").replace(/#.*/,"");location.href="/sg/Home/Account/Login?rpage="+encodeURIComponent(t);return}alert(n);$("#errMstLayer").empty().append("시스템 장애가 발생하였습니다.
고객센터로 문의해 주시기 바랍니다.
["+n.status+"] "+n.statusText);$("#errDialog").dialog({modal:!0,title:"안내",buttons:{Ok:function(){$(this).dialog("close");$("#errMstLayer").empty()}},zIndex:200001})}catch(i){alert("시스템 장애가 발생하였습니다.\r\n고객센터로 문의해 주시기 바랍니다")}}})}var atomy=atomy||{},Calendar;atomy={Site:function(){$(".site").on("click",function(){$(this).next().show();$(".ftList").on("mouseleave",function(){$(this).hide()})})},Pguide:function(){$(".pguide2").on("click",function(){$(this).next().show();$(this).parent().next().show();tcopy("emailCopy");var n=$(this).next().width()/3;$(".palt img").css({left:n+"px"})});$(".pguide,.pguide2").on("mouseout",function(){$(this).next().hide();$(this).parent().parent().find(".palt").hide()})},PriceComma:function(n){var t=$("body");n&&(t=$(n));t.find(".numberic:not(input)").each(function(n,t){var i=$(t).text();i=i.replace(/[^0-9.]/g,"");i=i.split(/(?=(?:\d{3})+(?:\.|$))/g).join(",");$(t).text(i)});t.find("input.disabled, select.disabled, textarea.disabled").attr("disabled","disabled");t.find("input.disabled, select.disabled, textarea.disabled").css({background:"#f5f5f5"})},Gnb2Depth:function(){$(".gnbMenu li").on("mouseover",function(){var n=$(this).attr("class");$(".gnb2DepthBox").hide();$(".d2"+n).show()});$(".top2Part, .gnbAll").on("mouseover",function(){$(".gnb2DepthBox").hide()});$(".gnb2DepthBox").on("mouseleave",function(){$(".gnbAllBoxScroll").hide();$(".gnb2DepthBox").hide()})},Sub1Depth:function(){$(".pSubMenu li").on("mouseover",function(){$(".pSubMenu a").removeClass("active");$(this).find("> a").addClass("active");$(".pSubMenu ul").hide();$(this).find("ul").show()});$(".pSubMenu ul, .pSubMenu").on("mouseleave",function(){$(".pSubMenu a").removeClass("active");$(".pSubMenu ul").hide()})},GnbAll:function(){$(".gnbAll").on("click",function(){});$(".gnbAllClose").on("click",function(){})},FlyGNB:function(){var n=function(){var n=$("#nav .gnbPos").position().top+0,t=$(document).scrollTop(),i=n-t;i<=0?$("#nav .gnbPartWrap").css({position:"fixed",top:"0",left:"0",width:"100%",height:"45px"}):$("#nav .gnbPartWrap").css({position:"absolute"})};$("#nav").size()!=0&&$(window).scroll(function(){n()})},SearchPlaceholder:function(){},MainSelect:function(){$(".mainProList .ListMenu li em").empty().html('')},Count:function(n){var t=$("body");n&&(t=$(n));t.find(".addition").on("click",function(){var o=$(this).parents().parents().parents().parents().attr("class"),s=$("."+o).index($(this).parents().parents().parents().parents()),h=$("."+o).eq(s).find("input").val(),f=Number(h)+1,t;if($("."+o).eq(s).find("input").val(f),$(this).parents(".tableStyle1").length>0){var i=$(".tableStyle1 .price"),r=$(".tableStyle1 .ttprice"),u=i.text().replace(/[^0-9.]/g,""),e=u*f,n=""+e;isNaN(n)||(n=""+Math.round(n*1e3)/1e3);t=new Number(n);r.text(t.toFixed(2))}else if($(this).parents(".tableStyle2").length>0){var i=$(".tableStyle2 .price"),r=$(".tableStyle2 .ttprice"),u=i.text().replace(/[^0-9.]/g,""),e=u*f,n=""+e;isNaN(n)||(n=""+Math.round(n*1e3)/1e3);t=new Number(n);r.text(t.toFixed(2))}else if($(this).parents(".tableStyle3").length>0){var i=$(this).parents("tr").eq(0).find(".price"),c=$(this).parents("tr").eq(0).find(".pv"),r=$(this).parents("tr").eq(0).find(".ttprice"),l=$(this).parents("tr").eq(0).find(".ttpv"),u=i.text().replace(/[^0-9.]/g,""),a=c.text().replace(/[^0-9.]/g,""),n=""+u*f,v=""+a*f;isNaN(n)||(n=""+Math.round(n*1e3)/1e3);t=new Number(n);r.text(t.toFixed(2));l.text(v.split(/(?=(?:\d{3})+(?:\.|$))/g).join(","))}else if($(this).parents(".DetailBase").length>0){var i=$(".DetailBase .price"),r=$(".DetailBase .ttprice"),u=i.text().replace(/[^0-9.]/g,""),e=u*f,n=""+e;isNaN(n)||(n=""+Math.round(n*1e3)/1e3);t=new Number(n);r.text(t.toFixed(2))}else if($(this).parents(".proVprice").length>0){var i=$(".proVlist .price"),r=$(".porVtotal .ttPrice"),u=i.text().replace(/[^0-9.]/g,""),e=u*f,n=""+e;isNaN(n)||(n=""+Math.round(n*1e3)/1e3);t=new Number(n);r.text(t.toFixed(2))}return!1});t.find(".subtraction").on("click",function(){var o=$(this).parents().parents().parents().parents().attr("class"),s=$("."+o).index($(this).parents().parents().parents().parents()),h=$("."+o).eq(s).find("input").val(),f,t;if(h>1){if(f=Number(h)-1,$("."+o).eq(s).find("input").val(f),$(this).parents(".tableStyle1").length>0){var i=$(".tableStyle1 .price"),r=$(".tableStyle1 .ttprice"),u=i.text().replace(/[^0-9.]/g,""),e=u*f,n=""+e;isNaN(n)||(n=""+Math.round(n*1e3)/1e3);t=new Number(n);r.text(t.toFixed(2))}else if($(this).parents(".tableStyle2").length>0){var i=$(".tableStyle2 .price"),r=$(".tableStyle2 .ttprice"),u=i.text().replace(/[^0-9.]/g,""),e=u*f,n=""+e;isNaN(n)||(n=""+Math.round(n*1e3)/1e3);t=new Number(n);r.text(t.toFixed(2))}else if($(this).parents(".tableStyle3").length>0){var i=$(this).parents("tr").eq(0).find(".price"),c=$(this).parents("tr").eq(0).find(".pv"),r=$(this).parents("tr").eq(0).find(".ttprice"),l=$(this).parents("tr").eq(0).find(".ttpv"),u=i.text().replace(/[^0-9.]/g,""),a=c.text().replace(/[^0-9.]/g,""),n=""+u*f,v=""+a*f;isNaN(n)||(n=""+Math.round(n*1e3)/1e3);t=new Number(n);r.text(t.toFixed(2));l.text(v.split(/(?=(?:\d{3})+(?:\.|$))/g).join(","))}else if($(this).parents(".DetailBase").length>0){var i=$(".DetailBase .price"),r=$(".DetailBase .ttprice"),u=i.text().replace(/[^0-9.]/g,""),e=u*f,n=""+e;isNaN(n)||(n=""+Math.round(n*1e3)/1e3);t=new Number(n);r.text(t.toFixed(2))}else if($(this).parents(".proVprice").length>0){var i=$(".proVlist .price"),r=$(".porVtotal .ttPrice"),u=i.text().replace(/[^0-9.]/g,""),e=u*f,n=""+e;isNaN(n)||(n=""+Math.round(n*1e3)/1e3);t=new Number(n);r.text(t.toFixed(2))}return!1}return $("."+o).eq(s).find("input").val("1"),!1});t.find(".price").each(function(n,t){var i=$(t).parents("tr"),f;if(i.length>0){var e=i.find(".price"),o=i.find(".pv"),s=i.find(".ttprice"),h=i.find(".ttpv"),c=i.find("input:text.numberic").val(),u=Number(c),l=e.text().replace(/[^0-9.]/g,""),a=o.text().replace(/[^0-9.]/g,""),r=""+l*u,v=""+a*u;isNaN(r)||(r=""+Math.round(r*1e3)/1e3);f=new Number(r);s.text(f.toFixed(2));h.text(v.split(/(?=(?:\d{3})+(?:\.|$))/g).join(","))}});t.find("input:text.numberic").on("change",function(){var t;if(this.value=this.value.replace(/[^0-9\.]/g,""),$(this).parents(".tableStyle1").length>0){var r=$(".tableStyle1 .price"),u=$(".tableStyle1 .ttprice"),i=$(this).val(),f=r.text().replace(/[^0-9.]/g,""),e=f*i,n=""+e;isNaN(n)||(n=""+Math.round(n*1e3)/1e3);t=new Number(n);u.text(t.toFixed(2))}else if($(this).parents(".tableStyle2").length>0){var r=$(".tableStyle2 .price"),u=$(".tableStyle2 .ttprice"),i=$(this).val(),f=r.text().replace(/[^0-9.]/g,""),e=f*i,n=""+e;isNaN(n)||(n=""+Math.round(n*1e3)/1e3);t=new Number(n);u.text(t.toFixed(2))}else if($(this).parents(".tableStyle3").length>0){var r=$(this).parents("tr").eq(0).find(".price"),o=$(this).parents("tr").eq(0).find(".pv"),u=$(this).parents("tr").eq(0).find(".ttprice"),s=$(this).parents("tr").eq(0).find(".ttpv"),i=$(this).val(),f=r.text().replace(/[^0-9.]/g,""),h=o.text().replace(/[^0-9.]/g,""),n=""+f*i,c=""+h*i;isNaN(n)||(n=""+Math.round(n*1e3)/1e3);t=new Number(n);u.text(t.toFixed(2));s.text(c.split(/(?=(?:\d{3})+(?:\.|$))/g).join(","))}else if($(this).parents(".DetailBase").length>0){var r=$(".DetailBase .price"),u=$(".DetailBase .ttprice"),i=$(this).val(),f=r.text().replace(/[^0-9.]/g,""),e=f*i,n=""+e;isNaN(n)||(n=""+Math.round(n*1e3)/1e3);t=new Number(n);u.text(t.toFixed(2))}else if($(this).parents(".proVprice").length>0){var r=$(".proVlist .price"),u=$(".porVtotal .ttPrice"),i=$(this).val(),f=r.text().replace(/[^0-9.]/g,""),e=f*i,n=""+e;isNaN(n)||(n=""+Math.round(n*1e3)/1e3);t=new Number(n);u.text(t.toFixed(2))}})},AlertProduct:function(n){var t=$("body");n&&(t=$(n));t.find(".pguide").on("mouseover",function(){if($(this).next().show(),$(this).parent().next().show(),$(this).next().length>0){var n=$(this).next().width()/3;$(".palt img").css({left:n+"px"})}});t.find(".pguide").on("mouseout",function(){$(this).next().hide();$(this).parent().parent().find(".palt").hide()})},AlertProductShow:function(n){var t=$(n),i;t.show();i=t.width()/3;t.find("img").css({left:i+"px"});t.find(".btnBlue2.pl7r10").on("click",function(){t.hide()})},AlertProductHide:function(n){var t=$(n);t.hide()},ProductPartOption:function(){$(".pAbox").on("click",function(){$(".proList").hide();$(".proBox").show();$(".pAbox").find("img").attr("src","/sg/Resource/Home/Mall/img/btn/boxBtn.gif");$(".pAlist").find("img").attr("src","/sg/Resource/Home/Mall/img/btn/listBtn.gif");$(this).find("img").attr("src","/sg/Resource/Home/Mall/img/btn/boxBtnOn.gif")});$(".pAlist").on("click",function(){$(".proList").show();$(".proBox").hide();$(".pAbox").find("img").attr("src","/sg/Resource/Home/Mall/img/btn/boxBtn.gif");$(".pAlist").find("img").attr("src","/sg/Resource/Home/Mall/img/btn/listBtn.gif");$(this).find("img").attr("src","/sg/Resource/Home/Mall/img/btn/listBtnOn.gif")})},Quick:function(){var n=function(){var n,t;n=$(".quick").attr("class")=="quick sub"?10:210;var u=$("#aside").position().top+n,f=$(document).scrollTop(),i=u-f;i<=0?($(".cctt").html(i),$(".fixed").css({position:"fixed","z-index":"20",top:"50px"})):$(".fixed").css({position:"absolute","z-index":"20",top:0});var e=$("#footer").position().top+50,o=$(".fixed").height(),r=e-o;$(document).scrollTop()>=r&&(t=$(".quick").attr("class")=="quick sub"?214:414,$(".fixed").css({position:"absolute","z-index":"20",top:r-t}))};$(".quick").size()!=0&&$(window).scroll(function(){n()})},Cross:function(){msieversion=function(){var n=window.navigator.userAgent,t=n.indexOf("MSIE ");return t>0?parseInt(n.substring(t+5,n.indexOf(".",t))):0};msieversion()==11&&$("body").addClass("ie11");msieversion()==10&&$("body").addClass("ie10");msieversion()==9&&$("body").addClass("ie9");msieversion()==8&&$("body").addClass("ie8")},Conutry:function(){$(".len").on("click",function(){$(this).next().show();$(".lenList").on("mouseleave",function(){$(this).hide()})})},Tab:function(){$(".proTab li").on("click",function(){var n=Number($(".proTab li").index(this))+1,t=Number($(".proTab li").index(this));return $(".proTab li").removeClass("active"),$(this).addClass("active"),$(".dVinfo").hide(),$(".dVinfo.dVinfo"+n).css({display:"block"}),!1})},PriceView:function(){$(".pVs input").on("click",function(){var t=$(this).attr("class"),n=t.substring(8,11);$(".pCntBox").hide();$(".pCntBox."+n).show();$(".pCntBox."+n).find("tr").each(function(t,i){var r=$(i).attr("class");r&&r.length>0&&(r.indexOf(n)>=0?$(i).show():$(i).hide())});$(".cardPrice").hide();$(".cardPrice."+n).show();$(".cardPrice tr").hide();$(".cardPrice tr."+n).show()})},PricePaper1:function(){$(".pbv input").on("click",function(){var n=$(this).attr("class"),t=n.substring(8,11);$(".pbBview").hide();n!="pb1"&&$(".pbBview."+t).show()})},PricePaper2:function(){$(".onPr1").change(function(){var n=$(this).val();$(".onPr2o1,.onPr2o2").hide();$(".onPr2o"+n).show();n==1&&($(".onPr2o1 option").eq(0).attr("selected","selected"),$(".op1r1,.op1r2,.op2r1").hide(),$(".op1r1").show());n==2&&($(".op1r1,.op1r2,.op2r1").hide(),$(".op2r1").show())})},PricePaper3:function(){$(".onPr2o1 select").change(function(){var n=$(this).val();$(".op1r1,.op1r2,.op2r1").hide();$(".op1r"+n).show()})},PopGuide:function(){$(".popGuide table .guideLink").on("click",function(){return $(".GuideView").hide(),$(this).parent().parent().next().show(),!1})},OrderInfo:function(n){var t=$("body");n&&(t=$(n));t.find(".porOt .infoV").each(function(){var n=$(this).parents().parents().next().attr("class");n!="orRinfo"&&$(this).hide()});t.find(".porOt .infoV").on("click",function(){return $(this).hasClass("infoX")?($(this).removeClass("infoX"),$(this).find("img").attr("src","/sg/Resource/Home/Mall/img/btn/plusBtn.gif"),$(this).find("img").attr("alt","정보보기"),$(this).parents("tr").next().hide()):($(this).addClass("infoX"),$(this).find("img").attr("src","/sg/Resource/Home/Mall/img/btn/minusBtn.gif"),$(this).find("img").attr("alt","삭제하기"),$(this).parents("tr").next().show()),!1})},Popup_Count:function(){},Popup_ProductZoom:function(){},DatePicker:function(n){var t=$("body");n&&(t=$(n));t.find("input:text.datepicker").datepicker({showOn:"both",buttonImage:"/sg/Resource/Home/Mall/img/icon/calendarIcon.gif",buttonImageOnly:!0}).next(".ui-datepicker-trigger").addClass("vm").css("padding-left","2px")}};$(function(){atomy.Site();atomy.Pguide();atomy.PriceComma();atomy.Gnb2Depth();atomy.Sub1Depth();atomy.GnbAll();atomy.FlyGNB();atomy.SearchPlaceholder();atomy.MainSelect();atomy.Count();atomy.AlertProduct();atomy.ProductPartOption();atomy.Quick();atomy.Cross();atomy.Conutry();atomy.Tab();atomy.PriceView();atomy.PricePaper1();atomy.PricePaper2();atomy.PricePaper3();atomy.DatePicker()});$(function(){$(".gnbAll, .gnbMenu > li > a").on("mouseover",function(){$(".gnb2Wrap").not(":animated").slideDown("fast")});$(".gnb2Wrap").on("mouseleave",function(){$(".gnb2Wrap").not(":animated").slideUp("fast")})}),function(n){var t={},r={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,wrapperClass:"bx-wrapper",touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",autoHover:!1,autoDelay:0,autoSlideForOnePage:!1,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){},onSliderResize:function(){}};n.fn.bxSlider=function(u){var f,e;if(this.length==0)return this;if(this.length>1)return this.each(function(){n(this).bxSlider(u)}),this;f={};e=this;t.el=this;var w=n(window).width(),b=n(window).height(),k=function(){f.settings=n.extend({},r,u);f.settings.slideWidth=parseInt(f.settings.slideWidth);f.children=e.children(f.settings.slideSelector);f.children.length