(function($){})(window.jQuery);var obx=obx||{};obx.modify_cart=obx.modify_cart||{};obx.credit_card_logos=obx.credit_card_logos||{};obx.payment_type=obx.payment_type||{};obx.order_info_scroll=obx.order_info_scroll||{};obx.cart_items=obx.cart_items||{};obx.modify_cart={init:function()
{$('#btn-modify-cart').click(function(){if(confirm('Are you sure you want to leave the checkout?')){window.location="cart.html"}})}};obx.credit_card_logos={init:function()
{$('#credit-card-logos a').click(function(e){e.preventDefault();$('#credit-card-logos a').removeClass('active');$(this).addClass('active')})}};obx.cart_items={init:function()
{$('#cart-items.show-hide tr:gt(5)').addClass('hide');$('#expand-btn').unbind('click').click(function(e){e.preventDefault();$(this).toggleClass('active');if($(this).hasClass('active')){$(this).html('Hide Cart Items')}else{$(this).html('Expand Cart Items')};$('#cart-items.show-hide tr:gt(5)').toggleClass('hide');$('#cart-items.show-hide tr.hide').toggle('slow',function(){obx.order_info_scroll.setPosition($('.checkout-bar').offset().top)})})}};obx.order_info_scroll={position:0,setPosition:function(theOffset)
{obx.order_info_scroll.position=theOffset;var bottom=$('#footer-wrapper').offset().top-$('.checkout-bar').outerHeight()-50;if($(window).scrollTop()>=theOffset&&$(window).scrollTop()<=bottom){$('.checkout-bar').removeClass('absolute');$('.checkout-bar').addClass('fixed')}
else if($(window).scrollTop()<bottom){$('.checkout-bar').removeClass('fixed');$('.checkout-bar').addClass('absolute')}
else{$('.checkout-bar').removeClass('absolute');$('.checkout-bar').removeClass('fixed')}},init:function()
{var el=$('.checkout-row');obx.order_info_scroll.position=$(el).offset().top;$(window).scroll(function(){obx.order_info_scroll.setPosition($('.checkout-row').offset().top)})}};function disable_order_button(){$("#checkout\\:order-submit-btn").addClass("disabled")}
$(document).ready(function()
{if($('body').hasClass('page-checkout-login')){}
if($('body').hasClass('page-checkout')||$('body').hasClass('page-checkout-login')){}
if($('body').hasClass('page-checkout')||$('body').hasClass('page-checkout-confirm')){obx.cart_items.init()}
if($('body').hasClass('page-checkout')){obx.modify_cart.init();obx.order_info_scroll.init()}
if($('body').hasClass('page-account-billing')){}})