function hidePaymentInformation(){node=$("#checkout_col_2")[0];for(var t=new RegExp("\\bpayment_information\\b"),o=node.getElementsByTagName("*"),e=0,n=o.length;eparseInt(t.attr("max"))?(t.addClass("maxStockQty"),o.addClass("maxStockAdc")):(t.removeClass("maxStockQty"),o.removeClass("maxStockAdc"))}function changeCurrency(){old_currency=sessionStorage.getItem("store_currency"),new_currency=$.trim(sessionStorage.getItem("global_currency")),$("#current_currency").text(new_currency),$("#current_currency").append(''),$(".post-prev-text.align-center").children().each((function(){amount=accounting.unformat($(this).text(),i18n_decimal_mark),$(this).text(accounting.formatMoney(fx.convert(amount,{from:old_currency,to:new_currency}),{symbol:{EUR:"\u20ac",GBP:"\u20a4"}[new_currency]}))})),product_amount=accounting.unformat($("#product-page-price").text(),i18n_decimal_mark),$("#product-page-price").text(accounting.formatMoney(fx.convert(product_amount,{from:old_currency,to:new_currency}),{symbol:{EUR:"\u20ac",GBP:"\u20a4"}[new_currency]})),0==$("#product-page-price-before").children().length&&0==$(".product-page-price-discount").length?(product_discount_amount=accounting.unformat($("#product-page-price-before").text(),i18n_decimal_mark),$("#product-page-price-before").text(accounting.formatMoney(fx.convert(product_discount_amount,{from:old_currency,to:new_currency}),{symbol:{EUR:"\u20ac",GBP:"\u20a4"}[new_currency]}))):(product_discount_amount=Math.abs(accounting.unformat($("#product-page-price-before").contents().get(0).nodeValue,i18n_decimal_mark)),$("#product-page-price-before").contents().get(0).nodeValue=accounting.formatMoney(fx.convert(product_discount_amount,{from:old_currency,to:new_currency}),{symbol:{EUR:"\u20ac",GBP:"\u20a4"}[new_currency]}),product_orig_amount=Math.abs(accounting.unformat($(".product-page-price").text(),i18n_decimal_mark)),$(".product-page-price").text(accounting.formatMoney(fx.convert(product_orig_amount,{from:old_currency,to:new_currency}),{symbol:{EUR:"\u20ac",GBP:"\u20a4"}[new_currency]}))),$(".cart-page-price-before").length>0&&($(".cart-page-price-before").each((function(){product_discount_amount=Math.abs(accounting.unformat($(this).contents().get(0).nodeValue,i18n_decimal_mark)),$(this).contents().get(0).nodeValue=accounting.formatMoney(fx.convert(product_discount_amount,{from:old_currency,to:new_currency}),{symbol:{EUR:"\u20ac",GBP:"\u20a4"}[new_currency]})})),product_orig_amount=Math.abs(accounting.unformat($(".cart-page-price-discount").text(),i18n_decimal_mark)),$(".cart-page-price-discount").text(accounting.formatMoney(fx.convert(product_orig_amount,{from:old_currency,to:new_currency}),{symbol:{EUR:"\u20ac",GBP:"\u20a4"}[new_currency]}))),$(".cart-unit-total").each((function(){cart_total_amount=accounting.unformat($(this).text(),i18n_decimal_mark),$(this).text(accounting.formatMoney(fx.convert(cart_total_amount,{from:old_currency,to:new_currency}),{symbol:{EUR:"\u20ac",GBP:"\u20a4"}[new_currency]}))})),subtotal_amount=accounting.unformat($(".order-subtotal").siblings().text(),i18n_decimal_mark),$(".order-subtotal").siblings().children().text(accounting.formatMoney(fx.convert(subtotal_amount,{from:old_currency,to:new_currency}),{symbol:{EUR:"\u20ac",GBP:"\u20a4"}[new_currency]})),shipping_amount=accounting.unformat($(".order-shipping").siblings().text(),i18n_decimal_mark),$(".order-shipping").siblings().children().text(accounting.formatMoney(fx.convert(shipping_amount,{from:old_currency,to:new_currency}),{symbol:{EUR:"\u20ac",GBP:"\u20a4"}[new_currency]})),tax_amount=accounting.unformat($(".order-tax").siblings().text(),i18n_decimal_mark),$(".order-tax").siblings().children().text(accounting.formatMoney(fx.convert(tax_amount,{from:old_currency,to:new_currency}),{symbol:{EUR:"\u20ac",GBP:"\u20a4"}[new_currency]})),discount_amount=accounting.unformat($(".order-discount").siblings().text(),i18n_decimal_mark),$(".order-discount").siblings().children().text(accounting.formatMoney(fx.convert(discount_amount,{from:old_currency,to:new_currency}),{symbol:{EUR:"\u20ac",GBP:"\u20a4"}[new_currency]})),total_amount=accounting.unformat($(".order-total").siblings().text(),i18n_decimal_mark),$(".order-total").siblings().children().text(accounting.formatMoney(fx.convert(total_amount,{from:old_currency,to:new_currency}),{symbol:{EUR:"\u20ac",GBP:"\u20a4"}[new_currency]})),$(".client-order-total > .client-details").each((function(){$(this).text(),client_order_total=accounting.unformat($(this).text(),i18n_decimal_mark),$(this).text(accounting.formatMoney(fx.convert(client_order_total,{from:old_currency,to:new_currency}),{symbol:{EUR:"\u20ac",GBP:"\u20a4"}[new_currency]}))})),$(".client-order-subtotal > .client-details").each((function(){$(this).text(),client_order_total=accounting.unformat($(this).text(),i18n_decimal_mark),$(this).text(accounting.formatMoney(fx.convert(client_order_total,{from:old_currency,to:new_currency}),{symbol:{EUR:"\u20ac",GBP:"\u20a4"}[new_currency]}))})),$("#estimates").find("dd").each((function(){"Error"!=$(this).text()&&(item_amount=accounting.unformat($(this).text(),i18n_decimal_mark),$(this).text(accounting.formatMoney(fx.convert(item_amount,{from:old_currency,to:new_currency}),{symbol:{EUR:"\u20ac",GBP:"\u20a4"}[new_currency]})))}))}$(document).ready((function(){$("#input-qty").on("keyup change click",(function(){verifyQuantity()}));var t=window.location.pathname;"/"==t||3==t.length||4==t.length?($("#topbar").addClass("js-transparent"),$("#topbar").addClass("transparent"),$("#topbar").css("box-shadow","none"),$("#store-logo > a").css("color","#fff"),$(".inner-nav ul li a").css("color","#fff"),$(".mobile-nav .fa").css("color","#fff"),$(window).scroll((function(){var t=$(window).scrollTop();t>0&&($("#store-logo > a").css("color","#000"),$(".inner-nav ul li a").css("color","#777"),$(".mobile-nav .fa").css("color","#000"),$("#store-logo").css("margin-top","12.5px")),0==t&&($("#store-logo > a").css("color","#fff"),$(".inner-nav ul li a").css("color","#3E3F3E"),$(".mobile-nav .fa").css("color","#fff"),$("#store-logo").css("margin-top","20px"))}))):$(".small-section").css("margin-top",$("#topbar").css("height")),$("form").addClass("form"),$(".form input[type=text], .form input[type=password], .form input[type=email], .form textarea, .form select, .form input[type=tel]").parent("div").addClass("form-group"),$(".form input[type=text]:not(.prod-options), .form input[type=password], .form input[type=email], .form textarea:not(.prod-options), .form select:not(.prod-options), .form input[type=tel]").removeClass().addClass("input-md round form-control"),$(".form input[type=text], .form input[type=password], .form textarea, .form input[type=email], .form input[type=tel]").css("text-transform","none"),$("form input[type=submit]").addClass("submit_btn btn btn-mod btn-medium btn-round"),$("form#contact_form p.required").length&&$("form#contact_form p.required").addClass("form-tip pt-20"),$(".google-map").click((function(){$(".google-map iframe").css("pointer-events","auto")})),$(".google-map").mouseleave((function(){$(".google-map iframe").css("pointer-events","none")})),$("#coupon_code").width("244px").addClass("input-sm mb-xs-10"),$("#set_coupon_code_button, #estimate_shipping_button, #set_shipping_button").addClass("btn btn-mod btn-round btn-gray btn-small mb-xs-10"),$("#coupon_form #set_coupon_code_button").removeClass("btn-medium"),$("#estimate_shipping_form select").addClass("input-md").wrap('
'),$("#estimate_shipping_postal").wrapAll('
'),$("#estimates").addClass("radio"),$("form#checkout").children(".actions").children("input[type=submit]").addClass("submit_btn btn btn-mod btn-medium btn-round"),$("form#checkout p.required").length&&$("form#checkout p.required").addClass("form-tip pt-20"),$("form#checkout").children("#contacts, #shipping_address, #billing_address, #shipping, #billing, #payments").addClass("mb-50").children("h2").addClass("font-alt").replaceWith((function(){return $("

",{class:this.className,html:$(this).html()})})),$("form#checkout").find("#payments_options, #shipping_options").children("ul").css("padding-left",0),$("form#checkout").append('
'),$("form#checkout").append('
'),$("form#checkout").children("#contacts, #shipping_address, #billing_address, .required, input[type=hidden]").appendTo($("#checkout_col_1")),$("form#checkout").children("#payments, #shipping, .actions").addClass("clearlist").appendTo($("#checkout_col_2")),$("#contacts_email, #credentials_email").addClass("form-group"),$("#order_customer_email, #order_customer_phone, #contact_email, #customer_email, #customer_phone").addClass("input-md round form-control"),$(".payment_information").css("margin-left","16px"),$("#checkout #other").insertAfter("#checkout #billing_address"),$("#contacts > div, #shipping_address div, #billing_address div, #other div").addClass("field form-group"),$("#checkout input[type='date']").addClass("input-md round form-control"),$("form#create_password input[type=password]").addClass("mb-10"),$("form#details input[type=text], form#details input[type=password]").addClass("mb-10"),$("form#details").find("h2").addClass("font-alt"),$("form#details #details_confirm_password, form#details #register_customer").css("margin-top","10px"),$("form#address input[type=text]").addClass("mb-10"),$("form#address").find("h2").addClass("font-alt"),$("#customer_address").find("[name^=additional_field]").parent().addClass("field").removeClass("col-sm-12"),$("form#login input[type=text], form#login input[type=password]").addClass("mb-10"),$("form#login input[type=submit]").css("float","left"),$("form#login").siblings("h2").addClass("font-alt"),$("form#login #submit_login").css("float","initial"),$("form#login #reset_password").addClass("reset-password"),$("form#login .error").css("margin-top","40px")})),$(document).ready((function(){"undefined"!=typeof open_exchange_rates_token&&Jumpseller.multiCurrency({token:open_exchange_rates_token,callback:changeCurrency})})),$(".product-description table, .page .small-section table").addClass("table table-bordered"),$("figure iframe").parent("figure").addClass("videoWrapper");