define(["jquery","fly","superSlide","lazyload","parsley","cookie","com-exchange","com-ajax"],function(h,e,o,n,a,s){function l(e,t){var o=new Date,n=o.getTime(),a=864e5-(n-(new Date(o.toLocaleDateString()).getTime()-1)),i=new Date;i.setTime(a+n),document.cookie=e+"="+t+";expires="+i.toGMTString()+";path=/"}h.formatDateTime=function(e){var t=new Date;t.setTime(e);var o=t.getFullYear(),n=t.getMonth()+1;n=n<10?"0"+n:n;var a=t.getDate();return a=a<10?"0"+a:a,console.log(a),o+"-"+n+"-"+a},h(function(){h("form").parsley();h(".searchBox .searchCondition").text(h(".searchBox .conditionSelect").val()),h(".currency #currencyList").live("change",function(){h.exchange.get(h(this).find("option:selected").val())}),h("select.selectChange").each(function(){h(this).siblings("span").text(h(this).find("option:selected").text())}),h("select.selectChange").change(function(){h(this).siblings("span").text(h(this).find("option:selected").text())}),h(".searchBox .conditionSelect").change(function(){h(".searchBox .searchCondition").text(h(this).find("option:selected").text())}),h.exchange.ready(),h.ajax({url:"/Api/Ajax/cart_count",dataType:"json",success:function(e){!function(e){if(e.mem_lvl)var t='';else var t="";h(".shoppingCartCount").html(e.count);var o=h("#loginState").data(),n="";1==e.login?n='
'+e.name+t+'Sign out':0==e.login&&(n=' RegisterLog in'),h("#loginState").html(n)}(e),"US"!=e.country?(0")}),h(".zopim").eq(1).on("click",".close_chat",function(){h(".zopim").eq(1).css("display","none")}),h(".widhlistBtn").each(function(){h(this).on("click",function(){var t,e,o=h(this).parent().attr("skuid"),n=h(this);t=n,e=o,h.comajax({url:"/Api/Ajax/addCollection",type:"post",data:{sku:e},dataType:"json",success:function(e){"0001"==e.status?t.removeClass("redHeart"):"0002"==e.status?t.addClass("redHeart"):"9999"==e.status?alert(e.msg,"error"):"250"==e.status?isSure("Not logged in. Please log in to continue.",function(){location.href="/user/login.html"}):"251"==e.status&&alert("The account is not audited","error")}})})});var r=new function(l){var r=h("#searchInput"),c=h("#searchArea"),d="",u=function(){c.hide()},e=function(e){if("block"==c.css("display")&&38==e.keyCode||40==e.keyCode){var t=c.find("li.hover");if(38==e.keyCode)if(0").appendTo("body");var o=arguments[2];h("body").on("click",".deletePromptBox button",function(){o&&(location.href=o),h(".waitFor").remove()})},window.alertLocation=function(){arguments[2]="error"==arguments[2]?"Failed":arguments[2];var e="notice"==arguments[2]?"noticeIcon":"Failed"==arguments[2]?"Failed":"Succeed",t="notice"==arguments[2]?"noticeConfirmBtn":"Failed"==arguments[2]?"FailedBtn":"confirmBtn";h("").appendTo("body");var o=arguments[0];h("body").on("click",".deletePromptBox button",function(){o?location.href=o:h(".waitFor").remove()})},window.isSure=function(e,t){t?(h("body").append(""),h(".deletePromptBox button.noticeConfirmBtn").on("click",t),h(".deletePromptBox button.cancelBtn").on("click",function(){h(".waitFor").remove()})):(h("body").append(""),h(".deletePromptBox button.noticeConfirmBtn").on("click",function(){h(".waitFor").remove()}))},window.reChoose=function(e,t,o,n){var a="Succeed"==(n=n||"Succeed")?"confirmBtn":"noticeConfirmBtn";h("body").append(""),h(".deletePromptBox button:first").on("click",t),h(".deletePromptBox button:last").on("click",o)},window.getData=function(e){var t={};return h(e).each(function(){t[this.name]=this.value}),t},h(function(){var t=h(".slideBox .bd ul li img"),o=h(".cacuqStarProducts .bd ul li img");h(".brandsList .bd ul li img").each(function(){h(this).attr("src",h(this).attr("data-original"))}),h(".slideBox").slide({mainCell:".bd ul",autoPlay:!0,effect:"fold",delayTime:600,easing:"easeInQuad",interTime:6e3,startFun:function(e){h(t[e]).attr("src",h(t[e]).attr("data-original"))}}),h(".cacuqStarProducts").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:!0,effect:"leftLoop",autoPlay:!0,scroll:5,vis:5,interTime:1e4,startFun:function(e){for(var t=5*e;t<5*(e+1);t++)h(o).length>=t&&h(o[t]).attr("src",h(o[t]).attr("data-original"))}}),h(".voiceFromCustormers").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:!0,effect:"leftLoop",autoPlay:!0,scroll:1,vis:3,interTime:4e3,delayTime:1e3}),h(".message").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:!0,effect:"topLoop",autoPlay:!0,vis:4});var n=h(".slideBox_new .bd ul li img");h(".slideBox_new").slide({mainCell:".bd ul",autoPlay:!0,effect:"fold",delayTime:600,easing:"easeInQuad",interTime:6e3,startFun:function(e){h(n[e]).attr("src",h(n[e]).attr("data-original"))}}),h(".slideBox_us").slide({mainCell:".bd ul",autoPlay:!0,effect:"fold",delayTime:600,easing:"easeInQuad",interTime:6e3,startFun:function(e){h(n[e]).attr("src",h(n[e]).attr("data-original"))}}),h(".slideBox_voo").slide({mainCell:".bd ul",autoPlay:!0,effect:"fold",delayTime:600,easing:"easeInQuad",interTime:6e3,startFun:function(e){h(n[e]).attr("src",h(n[e]).attr("data-original"))}}),h(".slideBox_hot").slide({mainCell:".bd ul",autoPlay:!0,effect:"fold",delayTime:600,easing:"easeInQuad",interTime:6e3,startFun:function(e){h(n[e]).attr("src",h(n[e]).attr("data-original"))}})}),h("#loginState").on("click","#logout",function(){h.ajax({url:"/user/logout",data:{parameter:"parameter"},type:"post",dataType:"json",success:function(e){1==e.status&&(location.href="/user/login.html")}})}),h(function(){var e,t,o,n,a,i=document.createElement("script");i.src="//s4.cnzz.com/z_stat.php?id=1272877910&web_id=1272877910",document.getElementsByTagName("body")[0].appendChild(i),2==h("input[name='is_server']").val()&&(e=window,t=document,o="ga",e.GoogleAnalyticsObject=o,e.ga=e.ga||function(){(e.ga.q=e.ga.q||[]).push(arguments)},e.ga.l=1*new Date,n=t.createElement("script"),a=t.getElementsByTagName("script")[0],n.async=1,n.src="https://www.google-analytics.com/analytics.js",a.parentNode.insertBefore(n,a),ga("create","UA-103029462-1","auto"),ga("send","pageview"))}),window.onload=function(){var n=[];h("iframe").each(function(e,t){if(t.getAttribute("data-src")){var o=t.getAttribute("data-src");n[e]=o.lastIndexOf("/"),o=(o=o.substring(n[e]+1,o.length)).split("=")[1],-1!=t.getAttribute("data-src").indexOf("youtube")&&t.setAttribute("src","https://www.youtube.com/embed/"+o)}})},h("body").on("keyup",".enter-check",function(){var e=h(this).attr("data-enter-check-length").split(","),t=e[0],o=e[1],n="This value length is invalid. It should be between "+t+" and "+o+" characters long.",a=h(this).val().length;return 0!=a&&(a"+n+"")),!1):(h(this).removeClass("enter-check-input"),"check-msg"==h(this).next().attr("class")&&h(this).next().remove(),!0)}),window.pad=function(e,t){if(!e||e<=0)return"";for(var o=e.toString().length;o").addClass("tips-bg").html("");n.find("p.content").html(o),h("body").append(n);var a=t.offset().left-n.outerWidth()/2+t.outerWidth()/2,i=t.offset().top-n.outerHeight()-parseInt(n.find(".triangle-front").css("border-width"));n.css({left:a,top:i-10,display:"block"}),n.stop().animate({top:i,opacity:1},300),setTimeout(function(){var e=parseInt(n.css("top"));n.stop().animate({top:e-10,opacity:0},300,function(){n.remove(),sw=!1})},3e3)}}),h("body").on("click",".refresh",function(){history.go(0)}),h("body").on("click",".type-label-switch",function(){h(".type-label-box").is(":hidden")?(l("recommend","yes"),h(".type-label-box").animate({width:"show"}),h(".type-label-switch>div").removeClass().addClass("type-label-box-hidden")):(l("recommend","no"),h(".type-label-box").animate({width:"hide"}),h(".type-label-switch>div").removeClass().addClass("type-label-box-show"))}),null!=h.cookie("recommend")&&"yes"!=h.cookie("recommend")||h(".type-label-switch").click(),window.fMoney=function(e,o){o=0