$"+n.GlassPrice+"")):$("#dvmarblediscount").hide();n.FreeShipping?$("#isFreeShipping").show():(console.log("free shipping bottom"),$("#isFreeShipping").hide());var t=n.Price.toString().split("."),i=n.EachPrice.toString().split(".");t[1]!=undefined?t[1].length==1?$("#spPrice").text("$"+n.Price+"0"):$("#spPrice").text("$"+n.Price):$("#spPrice").text("$"+n.Price);i[1]!=undefined?i[1].length==1?$("#spEachPrice").text("$"+n.EachPrice+"0"):$("#spEachPrice").text("$"+n.EachPrice):$("#spEachPrice").text("$"+n.EachPrice);displayAjaxLoading(!1)},error:function(){displayAjaxLoading(!1)}})}function CalledPlus(n){var t=$("#"+n).parent("div").prev("div").find("input"),i=parseInt(t.val());t.val(i+1);parseInt(t.val())==t.attr("max")&&$(this).attr("disabled",!0)}function Calledmin(n){var t=$("#"+n).parent("div").next("div").find("input"),i=parseInt(t.val());i>t.attr("min")&&t.val(i-1).change();parseInt(t.val())==t.attr("min")&&$(this).attr("disabled",!0)}var subscribed=!1,duration=0,AutoShipEnabled=!1;$(function(){subscribed=$("input[name='subscriptionCheckBox']:checked").val();duration=$("#subsduration").val();$("input[type=radio][name=subscriptionCheckBox]").change(function(){this.value=="true"?($("#subsduration").prop("disabled",!1),AutoShipEnabled=!0):($("#subsduration").prop("disabled",!0),AutoShipEnabled=!1)});$("#tabs-nav li:first-child").addClass("active");$(".tab-content").hide();$(".tab-content:first").show();$("#tabs-nav li").click(function(){$("#tabs-nav li").removeClass("active");$(this).addClass("active");$(".tab-content").hide();var n=$(this).find("a").attr("href");return $(n).fadeIn(),!1});$("#isFreeShipping").hide();AddProductToCart();$("#drpGlassPandents").change(function(){var n=$(this).children("option:selected").text();$("#hdNacklacType").val(n)});$("#drpPricing").change(function(){var n=this.value;n!=0?GetProductPrice(n):($("#spPrice").text(""),$("#spEachPrice").text(""))});$("#dvmarblediscount").hide()});$(function(){$(".input-number").change(function(){minValue=parseInt($(this).attr("min"));maxValue=parseInt($(this).attr("max"));valueCurrent=parseInt($(this).val());name=$(this).attr("name");valueCurrent>=minValue?$(".btn-number[data-type='minus'][data-field='"+name+"']").removeAttr("disabled"):(alert("Sorry, the minimum value was reached"),$(this).val($(this).data("oldValue")));valueCurrent<=maxValue?$(".btn-number[data-type='plus'][data-field='"+name+"']").removeAttr("disabled"):(alert("Sorry, the maximum value was reached"),$(this).val($(this).data("oldValue")))});$(".input-number").keydown(function(n){$.inArray(n.keyCode,[46,8,9,27,13,190])!==-1||n.keyCode==65&&n.ctrlKey===!0||n.keyCode>=35&&n.keyCode<=39||(n.shiftKey||n.keyCode<48||n.keyCode>57)&&(n.keyCode<96||n.keyCode>105)&&n.preventDefault()})})