"use strict";var store_backup_change=function(e){void 0===e&&(e="ae_tbstore");var c=[];c.tbhome=[29,29,29,29,29,29],c.tbwork=new Array(39,39,39,39,39,39),c.tbserver=new Array(199,199,199,199,199,199),c.tbaserver=new Array(299,299,299,299,299,299),c.tbt=new Array(999,1399),c.ebc_work=new Array(79,79,79,79,79,79),c.ebc_server=new Array(299,299,299,299,299,299),c.ebc_aserver=new Array(399,399,399,399,399,399),c.dm_server=new Array(45,45,45,45,45,45),c.dm_work=new Array(12,12,12,12,12,12);var s=[];s.tbhome="16514-39",s.tbwork="16514-34",s.tbserver="16514-35",s.tbaserver="16514-43",s.tbt=new Array("16514-81","16514-82"),s.ebc_work="16514-106",s.ebc_server="16514-105",s.ebc_aserver="16514-108",s.dm_server="16514-73",s.dm_work="16514-74",{gos:function(){for(var e=this,r="",t=0;t<=35;t++)r+='<option value="'+t+'">'+t+"</option>";$(".store_table .number").html(r),$(".store_table .number").change(function(){e.get_all_price(),e.set_link()}),$(".store_table .change_number").change(function(){$(this).parents("ul").find(".price_a").html("$"+c[$(this).parent().find(".number").attr("name")][this.value].toFixed(2)),e.get_all_price(),e.set_link()})},get_all_price:function(){var s=0,o=0,l=0;$(".store_table .number").each(function(){if(0!=this.value){l++;var e=$(this).parents("ul"),r=this.name,t=Number(this.value),a=0,n=0;if("tbt"==r){var i=Number($(this).parent().find(".change_number").val());a=c[r][i],n=c[r][i]}else a=t<=1?c[r][0]:t<=5?c[r][1]:t<=10?c[r][2]:t<=20?c[r][3]:t<=50?c[r][4]:c[r][5],n=c[r][0];e.find(".price_a").html("$"+a.toFixed(2)),e.find(".price_b").html("$"+(t*a).toFixed(2)),s+=t*a,o+=t*n}}),2<=l&&(s*=.8);var e=o-s;$("#all_price").html("$"+s.toFixed(2)),$("#all_old_price").html("$"+o.toFixed(2)),$("#all_save_price").html("$"+e.toFixed(2))},set_link:function(){var a="https://shopper.mycommerce.com/checkout/cart/new",n="",i=0;$(".store_table .number").each(function(){if(0!=this.value){i++;var e=Number(this.value),r=this.name;if("tbt"==r){var t=Number($(this).parent().find(".change_number").val());a+="/"+s[r][t],n+="quantity_"+s[r][t]+"="+e+"&"}else a+="/"+s[r],n+="quantity_"+s[r]+"="+e+"&"}}),0==i?a="javascript:void(0)":1==i?a=(a+="?"+n+"linkid="+e).replace(/quantity.*?[=]/g,"quantity="):a+="?"+n+"ss_coupon=MULT-JTFC&linkid="+e,$("#buy_now").attr({href:a})}}.gos()};