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>

<\/div>

<\/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="