var changeTimeout;
var changeTimeoutS;

function WOpen(oURL, iWidth, iHeight) {
	var iLeft = (screen.width - iWidth) / 2;
	var iTop = (screen.height - iHeight) / 2;

	var sOptions = "toolbar=yes, status=no, resizable=no, dependent=yes, scrollbars=yes";
	sOptions += ",width=" + iWidth;
	sOptions += ",height=" + iHeight;
	sOptions += ",left=" + iLeft;
	sOptions += ",top=" + iTop;

	var oWindow = window.open(oURL, '', sOptions);

	return true;
}

function iOpen(oURL, iWidth, iHeight, dTitle) {
	var iLeft = (screen.width - iWidth) / 2;
	var iTop = (screen.height - iHeight) / 2;
	var sOptions = "toolbar=no, status=no, resizable=no, dependent=yes, scrollbars=no";
	sOptions += ",width=" + iWidth;
	sOptions += ",height=" + iHeight;
	sOptions += ",left=" + iLeft;
	sOptions += ",top=" + iTop;

	var oWindow = window.open('', '', sOptions);

	oWindow.document.open();
	oWindow.document.write('<html><head><title>' + dTitle
			+ '</title></head><body bgcolor="#FFFFFF"><img src="' + oURL
			+ '"></body></html>');
	oWindow.document.close();

	return oWindow;
}

function filterChange(thisObj) {
//	if ($(window).width() > 768) {}
	if ($( window ).width() > 1170) {
		$('.filter_rest').submit();
	}
}

function mobile_filterChange(thisObj) {
	$('.filter_rest').submit();
}

$(document).ready(function() {
	
	var client_w = $( window ).width();
	var client_h = $( window ).height();
	
	$.get( "/setresalution.php", { w: client_w, h: client_h } )
	.done(function( data ) {
		if (data == 'reload') {
			/*location.reload();*/
		}
	});
	
	$('a.reg-href').click(function() {
		$('#screen').hide();
		$('#screen-reg').show();
		return false;
	});

	$('#screen-subscribe a.close').click(function() {
		$('#screen-subscribe').hide();
	});

	$('#screen-reg a.close').click(function() {
		$('#screen-reg').hide();
	});

	$('.myico').parent().css('line-height', '28px');

	$('form.order_form').submit(function() {
		$.ajax({
			type : "POST",
			data : $(this).serialize(),
			success : function(data) {
				cartdata = JSON.parse(data);
				if (window.innerWidth < 1090) {
					$('.choose-size.catalog').hide();
					$('.screen-buy-mobile').show('slow');
					setTimeout(function(){
						$(".screen-buy-mobile").hide('slow');
					}, 2000);
				} else {
					$('.screen.buy').show();
					$('.price_j').text(cartdata.price + ' руб.');
					$('.count_j').text(cartdata.count + ' шт.');
					$('.header__backet-number').text(cartdata.count);
				}
				
				
			}
		});
		return false;
	})
    
    $(".btn-catalog-buy").click(function(){
    
      var countAll = (+0);
      
      $(this).parent().find("input[name='quantity[]']").each(function(){
        countAll += parseInt($(this).val());
      }); 

      if (countAll > 0){
        // Есть выбранный товар
        $(this).parents("form").submit();
				$('.header__backet-number').text(parseInt($('.header__backet-number').text())+parseInt(countAll));
      }else{
        // Ничего не выбрано
        $(this).parent().parent().find('.no-size-selected').css("z-index", 100);
		$(this).parent().parent().find('.no-size-selected').show();
		setTimeout("$('.no-size-selected').hide()", 3000);
		return false;            
      }
    });
	
	$('form[name="add_subscribe"]').submit(function() {
		$.ajax({
			url  : $(this).attr('action'),
			type : "POST",
			data : $(this).serialize(),
			success : function(data) {
				//data = JSON.parse(data);
				$('#screen-subscribe').show();
				$('form[name="add_subscribe"] input[name="email"]').val('');
				//setInterval( function () { $('#screen-subscribe').hide(); }, 2000);
			}
		});
		return false;
	})
	

	$('.big_a.close').click(function() {
		$('.screen.buy').css('display', 'none');
	});
	/*
	 * $('select[name="quantity"]').click(function() { var
	 * thisForm = $(this).parents("form"); $(thisForm).submit();
	 * });
	 * 
	 */
	
	
//					$('.choose-size a').click(
//							function() {
//								var metricAlias = $(this).attr('metric-alias');
//								$(this).parents('.choose-size').find(
//										'input[name="quantity"]').val(
//										metricAlias);
//								// console.log($(this).parents('.choose-size').find('input[name="quantity"]').val());
//								$(this).parents("form").submit();
//								return false;
//							});
	
	$('.choose-size a').click(function() {
		var metricAlias = $(this).attr('metric-alias');
		var sizeAlias = $(this).attr('size');
		$(this).parents('.choose-size').find(
				'input[name="quantity"]').val(
				metricAlias);
		
		$(this).parents('form.order_form').find(
				'input[name="size_alias"]').val(
				sizeAlias);

		$(this).parents("form").submit();
		return false;
	});
	
	$('.fast-search').click(function() {
		$(this).hide();
		$(this).next('.choose-size').find('a').each(function(){
			if ($(this).text().trim() == '') $(this).text('Без размера');
		});
		
		if ( !$(this).hasClass('gold_btn_buy') )
	//	$(this).parent().find('.choose-size').show('fast', function(){});
          $(this).parent().find('.choose-size').toggle('fast', function(){});
	})
	
	
	$('.gold_btn_buy').click(function() {
		if ( $(this).parent().find('.choose-size').find('a').length > 1
			|| ($(this).parent().find('.choose-size').find('a').length == 1
			&& $(this).parent().find('.choose-size').find('a').text() != ' без размера')){
			$(this).parent().find('.choose-size').show('fast', function(){});
		}
		
		if ( $(this).parent().find('.choose-size').find('a').length == 1
			&& $(this).parent().find('.choose-size').find('a').text() == ' без размера' ){
			var size_a = $(this).parent().find('.choose-size').find('a');
			var metricAlias = size_a.attr('metric-alias');
			var sizeAlias = size_a.attr('size');
			size_a.parents('.choose-size').find(
					'input[name="quantity"]').val(
					metricAlias);
			
			size_a.parents('form.order_form').find(
					'input[name="size_alias"]').val(
					sizeAlias);

			size_a.parents("form").submit();
			return false;
		}
	});

	$('.all-tovars li').hover(function() {
 //     $(this).find('.choose-size').show('fast');
	}, function() {
		$(this).find('.fast-search').show('fast');
		$(this).find('.choose-size').hide('fast');
	})
	
	// выбор активированной сортировки цены в фильтре GOLD START
	$.each(window.location.search.split('&'), function(key, index){
		if ( !index.indexOf('price') ) {
			range = index.split('=')[1];
			
			$('ul._price').find('li').each(function(){
				if ( $(this).find('.check-button').val() == range ) {
					cur = $(this).find('.check-button').prop("checked", true);
				}
			})
		}
	})
	// выбор активированной сортировки цены в фильтре GOLD END
	
	$('ul._price').find('.check-button').click(function(){
		cur.prop("checked", false);
	})

	$(function() {
		var pMin = parseInt($("#p_min").val());
		var pMax = parseInt($("#p_max").val());

		var rMin = parseInt($("#p_min").attr('min'));
		var rMax = parseInt($("#p_max").attr('max'));

		$("#price-range").slider({
			range : true,
			min : rMin,
			max : rMax,
			values : [ pMin, pMax ],
			slide : function(event, ui) {
				$("#p_min").val(ui.values[0]);
				$("#p_max").val(ui.values[1]);

				clearTimeout(changeTimeout);
				changeTimeout = setTimeout(function() {
					filterChange();
				}, 1000);
			}
		})
	});

	$('.cat-menu a').click(
			function() {
				var currentAnhore = $(this).attr('href')
						.replace('#', '');
				$('.cat-menu li').removeClass('act');
				$(this).parent().parent().addClass('act');
				$('.catalog_main_block').hide();
				$('#' + currentAnhore).show();
				return false;
			});
	$('.catalog_main_block').hide();
	/* $('.catalog_main_block').first().show(); */

	$("#opt_price").animate({
		marginTop : "-55px"
	}, 700);

	if (ishome)
		$('.marquee div').css('left', $('.marquee').width());

	$.ajax({
		type : "GET",
		async : false,
		url : "/cb-red.xml",
		dataType : "xml",
		success : XmlKurs
	});

	$.ajax({
		type : "GET",
		async : false,
		url : "/dm-red.xml",
		dataType : "xml",
		success : XmlMetall,
		complete : function(data) {
			if (ishome) {
				$('.marquee div').animate({
					'left' : '0'
				}, 1000);
			}
			;
		}
	});
	
	/*

	$('a#def_gimage').fancybox({
		'hideOnContentClick' : true
	});
	$('a.def_igroup').fancybox({
		'zoomSpeedIn' : 300,
		'zoomSpeedOut' : 300,
		'overlayShow' : true,
		'hideOnContentClick' : false
	});
	*/

	$('a.add_phone').click(function() {
		$('div.phone_form').show();
		return false;
	});
	$('input#close').click(function() {
		$('div.phone_form').hide();
	});
	
	$('input#send')
	.click(
			function() {
				var name = $('input#name').val();
				var phone = $('input#phone').val();
				var lastname = $('input#lastname')
						.val();
				var spam = $('input#spam').val();
				if (phone == '' || name == ''
						|| spam == '') {
				
					
					
					if(name == ''){
						$('.phone_form_name').show();
					}else{
						$('.phone_form_name').fadeOut(2);	
					}
					if(phone == ''){
						$('.phone_form_phone').show();
					}else{
						$('.phone_form_phone').fadeOut(2);
					}
				} else {
					$('#screen-1').hide();
					
					
					$
							.post(
									'/order_phone/',
									{
										'phone' : phone,
										'name' : name,
										'lastname' : lastname,
										'spam' : spam
									},
									function(data) {
										if (data == 'err.spam') {
											alert('Ошибка! Введите цифры!');
										} else {
											$('#screen-1').hide();
											$('.phone_form_succes').show();
						//setTimeout(gettm, 3000);
											//alert('Спасибо! Мы Вам обязательно перезвоним!');
											//$(
											//		'img#phone_1')
											//		.hide();
											//$(
											//		'a.add_phone')
											//		.hide();
										}
									});
				}
			});
//function gettm(){
//$('.phone_form_succes').hide();
//}
	$('div.more_response').hide();
	$('a.block').click(function() {
		$('div.more_response').hide();
		var id = $(this).attr('href');
		$('div#' + id).show();
		$('.short').show();
		$('.short_' + id).hide();
		return false;
	});

	$('form[name="cart-order"]')
			.submit(
					function() {

						if (minsumm > 0) {
							var cartsumm = parseInt($(
									'.b_price').text());
							if (isNaN(cartsumm))
								return false;
							if (minsumm > cartsumm) {
								alert('Сумма Вашего заказа меньше '
										+ minsumm
										+ ' руб., доберите пожалуйста заказ до нужной суммы!');
								return false;
							}
						}
					});

	$('a.stone_more').click(function() {
		var j = +$(this).attr('href');
		var count = $(this).attr('count');
		var id = $(this).attr('id');
		/*
		 * $('ul.stone').children().each(function(indx, element) {
		 * var m = +$(element).attr('number'); if (id == '1') {
		 * if (m > j) $(element).hide(); } else
		 * $(element).show(); });
		 */
		if (id == '1') {
			$('.moreStone').hide();
			$(this).attr('id', '');
			$(this).text('еще');
			$('html, body').animate({
				scrollTop : $("#kamenFilter").offset().top
			}, 1000);
		} else {
			$('.moreStone').show();
			$(this).attr('id', '1');
			$(this).text('свернуть');
		}

		return false;
	});

	$('a.kstone_more').click(function() {
		var j = +$(this).attr('href');
		var count = $(this).attr('count');
		var id = $(this).attr('id');

		$('ul.kstone').children().each(function(indx, element) {
			var m = +$(element).attr('id');
			if (id == '1') {
				if (m > j)
					$(element).hide();
			} else
				$(element).show();
		});
		if (id == '1') {
			$(this).attr('id', '');
			$(this).text('еще');
		} else {
			$(this).attr('id', '1');
			$(this).text('свернуть');
		}

		return false;
	});

	/*
	 * $('ul.size').children().each(function(indx, element) {
	 * var j = 8; var m = $(element).attr('id'); if (m > j)
	 * $(element).hide(); });
	 */

	$('a.size_more').click(function() {
		var j = +$(this).attr('href');
		var count = $(this).attr('count');
		var id = $(this).attr('id');
		/*
		 * $('ul.size').children().each(function(indx, element) {
		 * var m = +$(element).attr('number'); // alert( m ); if
		 * (id == '1') { if (m > j) $(element).hide(); } else
		 * $(element).show(); });
		 */
		if (id == '1') {
			$('.moreSize').hide();
			$(this).attr('id', '');
			$(this).text('еще');
			$('html, body').animate({
				scrollTop : $("#sizeFilter").offset().top
			}, 1000);
		} else {
			$('.moreSize').show();
			$(this).attr('id', '1');
			$(this).text('свернуть');
		}

		return false;
	});
	
	/*-------------------------------------------------------------*/
	/*Коллекции*/
	$('a.c_more').click(function() {
		var j = +$(this).attr('href');
		var count = $(this).attr('count');
		var id = $(this).attr('id');
		
		if (id == '1') {
			$('.more_c').hide();
			$(this).attr('id', '');
			$(this).text('еще ...');
			/*$('html, body').animate({
				scrollTop : $("#cFilter").offset().top
			}, 1000);*/
			$('.more_c').slideUp();
		} else {
			$('.more_c').show();
			$(this).attr('id', '1');
			$(this).text('свернуть');
		}
		return false;
		return false;
	});
	/*--------------------------------------------------------------*/
	/*Производители*/
	$('a.d_more').click(function() {
		var j = +$(this).attr('href');
		var count = $(this).attr('count');
		var id = $(this).attr('id');
		
		if (id == '1') {
			$('.more_d').hide();
			$(this).attr('id', '');
			$(this).text('еще ...');
			/*$('html, body').animate({
				scrollTop : $("#dFilter").offset().top
			}, 1000);*/
			$('.more_d').slideUp();
		} else {
			$('.more_d').show();
			$(this).attr('id', '1');
			$(this).text('свернуть');
		}
		return false;
	});
	/*--------------------------------------------------------------*/
	/*Группы*/
	$('a.g_more').click(function() {
		var j = +$(this).attr('href');
		var count = $(this).attr('count');
		var id = $(this).attr('id');
		
		if (id == '1') {
			$('.more_g').hide();
			$(this).attr('id', '');
			$(this).text('еще ...');
			/*$('html, body').animate({
				scrollTop : $("#gFilter").offset().top
			}, 1000);*/
			$('.more_g').slideUp();
		} else {
			$('.more_g').show();
			$(this).attr('id', '1');
			$(this).text('свернуть');
		}
		return false;
	});
	/*--------------------------------------------------------------*/
	/*Вставки*/
	$('a.v_more').click(function() {
		var j = +$(this).attr('href');
		var count = $(this).attr('count');
		var id = $(this).attr('id');
		
		if (id == '1') {
			$('.more_v').hide();
			$(this).attr('id', '');
			$(this).text('еще ...');
			/*$('html, body').animate({
				scrollTop : $("#vFilter").offset().top
			}, 1000);*/
			$('.more_v').slideUp();
		} else {
			$('.more_v').show();
			$(this).attr('id', '1');
			$(this).text('свернуть');
		}
		return false;
	});
	/*--------------------------------------------------------------*/
	/*Размеры*/
	$('a.s_more').click(function() {
		var j = +$(this).attr('href');
		var count = $(this).attr('count');
		var id = $(this).attr('id');
		
		if (id == '1') {
			$('.more_s').hide();
			$(this).attr('id', '');
			$(this).text('еще ...');
			/*$('html, body').animate({
				scrollTop : $("#sFilter").offset().top
			}, 1000);*/
			$('.more_s').slideUp();
		} else {
			$('.more_s').show();
			$(this).attr('id', '1');
			$(this).text('свернуть');
		}
		return false;
	});
	/*--------------------------------------------------------------*/

	$('ul.collect').children().each(function(indx, element) {
		var j = 8;
		var m = $(element).attr('id');
		if (m > j)
			$(element).hide();
	});

	$('a.collect_more').click(
			function() {
				var j = 7
				var count = $(this).attr('count');
				var id = $(this).attr('id');

				$('ul.collect').children().each(
						function(indx, element) {
							var m = +$(element).attr('number');
							// alert( m );
							if (id == '1') {
								if (m > j)
									$(element).hide();
							} else
								$(element).show();
						});

				if (id == '1') {
					$(this).attr('id', '');
					$(this).text('еще');
				} else {
					$(this).attr('id', '1');
					$(this).text('свернуть');
				}

				return false;
			});

	// $(".stone .check-button:checked").each(function(){
	// var n = $(this).attr('id');
	// $('.stone').prepend($('#'+n+'l'));
	// });

	// $(".size .check-button:checked").each(function(){
	// var n = $(this).attr('id');
	// $('.size').prepend($('#'+n+'l'));
	// });

	// $(".price .check-button:checked").each(function(){
	// var n = $(this).attr('id');
	// $('.price').prepend($('#'+n+'l'));
	// });

	// $(".category .check-button:checked").each(function(){
	// var n = $(this).attr('id');
	// $('.category').prepend($('#'+n+'l'));
	// });

	// $(".submenu .r_button:checked").each(function(){
	// var n = $(this).attr('id');
	// var id = $(this).parent().parent('ul').attr('id');
	// $('.submenu#'+id).prepend($('#'+n+'l'+id));
	// });

});

function edit_input(object) {
	object.attr('type', 'password');
}

function XmlKurs(xml) {
	$(xml)
			.find("Valute")
			.each(
					function() {
						if ($(this).attr('ID') == 'R01235') {
							d = $(this).find("Value").text();
							$("j")
									.append(
											'<li><span>USD</span> ЦБ '
													+ d
													+ '</li>'
													+ '<li class="dot-k">'
													+ '<img src="http://silver-wings.ru/images/public/setup/blue/img/dot2.jpg" alt="" title=""></li>');
						}

						if ($(this).attr('ID') == 'R01239') {
							t = $(this).find("Value").text();
							$("j")
									.append(
											'<li><span>EUR</span> ЦБ '
													+ t
													+ '</li>'
													+ '<li class="dot-k">'
													+ '<img src="http://silver-wings.ru/images/public/setup/blue/img/dot2.jpg" alt="" title=""></li>');
						}

					});
}

function XmlMetall(xml) {
	$(xml)
			.find("Record")
			.each(
					function() {
						if ($(this).attr('Code') == '1') {
							z = $(this).find("Buy").text();
							$("j")
									.append(
											'<li><span>Au Золото</span> ЦБ '
													+ z
													+ '</li>'
													+ '<li class="dot-k">'
													+ '<img src="http://silver-wings.ru/images/public/setup/blue/img/dot2.jpg" alt="" title=""></li>');
						}

						if ($(this).attr('Code') == '2') {
							s = $(this).find("Buy").text();
							$("j")
									.append(
											'<li><span>Ag Серебро</span> ЦБ '
													+ s
													+ '</li>'
													+ '<li class="dot-k">'
													+ '<img src="http://silver-wings.ru/images/public/setup/blue/img/dot2.jpg" alt="" title=""></li>');
						}

						if ($(this).attr('Code') == '3') {
							pl = $(this).find("Buy").text();
							$("j")
									.append(
											'<li><span>Pt Платина</span> ЦБ '
													+ pl
													+ '</li>'
													+ '<li class="dot-k">'
													+ '<img src="http://silver-wings.ru/images/public/setup/blue/img/dot2.jpg" alt="" title=""></li>');
						}

						if ($(this).attr('Code') == '4') {
							pal = $(this).find("Buy").text();
							$("j").append(
									'<li><span>Pd Палладий</span> ЦБ ' + pal
											+ '</li>');
						}

					});
}

(function($) {
	$(document).ready(function(e) {
		$('.mobile-dropdown-parent-js').click(function(){
//			if ($(this).hasClass('active')) {
//				$(this).removeClass('active');
//			} else {
//				$(this).addClass('active');
//			}
		});
		
		$('.footer_oneFilterSelect').click(function() {
			
			$('body,html').animate({scrollTop:0},150);
			$('.menu-block-mobile').show();
			
		    return false;
		})
		
		
		$('.a_oneFilterSelect').click(function() {
			$('#saleFilter').hide();
			$('#MetColorFilter').hide();
			$('#kamenFilter').hide();
			$('#pletFilter').hide();
			$('#sizeFilter').hide();
			$('#collectFilter').hide();
			$('#priceFilter').hide();
			
			$($(this).attr('href')).show();
			
			var filterBlock = $('.mobile-filter-block').parent();
			
			$(filterBlock).addClass('active');
			$(filterBlock).find('.btn-js').addClass('active');
			
			return false;
		})
		
		$('.mobile-filter-block button[type="reset"]').click( function() {
			window.location.href = "/catalogue/";
		}) 
			
		
		if (window.innerWidth <= 1169) {
			$('#saleFilter h5').text('sale');
			$(".tovar__icons").detach().appendTo('.tovar__pictures-block')
		}

		$('.btn-js').click(function(){
			
			if ($(this).hasClass('active')) {
				$(this).removeClass('active');
				$(this).parent().removeClass('active');
			} else {
				$('#saleFilter').show();
				$('#MetColorFilter').show();
				$('#kamenFilter').show();
				$('#pletFilter').show();
				$('#sizeFilter').show();
				$('#collectFilter').show();
				$('#priceFilter').show();
				
				
				$(this).addClass('active');
				$(this).parent().addClass('active')
			}
		});
		
		$('a.add-plus').each(function() {
			$(this).html($(this).html() + '<span>+</span>');
			$(this).find('img').load(function() {
				$(this).parent().css({
					'position' : 'relative',
					'display' : 'block',
					'width' : $(this).width(),
					'height' : $(this).height(),
					'float' : 'left'
				});
			});
		});

		$('a.add-plus span').css({
			'display' : 'block',
			'text-decoration' : 'none',
			'width' : '25px',
			'height' : '25px',
			'position' : 'absolute',
			'top' : '50%',
			'left' : '50%',
			'border' : 'solid 2px',
			'text-align' : 'center',
			'border-radius' : '50%',
			'font-size' : '25px',
			'font-weight' : 'bold',
			'line-height' : '25px',
			'background' : '#FFF',
			'font-family' : 'Arial',
			'font-style' : 'normal',
			'opacity' : 0.3,
			'margin-top' : -12.5,
			'margin-left' : -12.5
		}).hover(function() {
			$(this).css('opacity', 0.60);
		}, function() {
			$(this).css('opacity', 0.3);
		});
		;

		$('.slide').css({
			"position" : "absolute",
			"top" : '0',
			"left" : '0'
		}).hide().eq(0).show();

		$('a#def_gimage').next('.announce').css({
			'margin-left' : '120px'
		});

	});
if($(window).width() > 960){
	$('iframe#cdek_frame').load(function(){
	  var frime = $(this).contents().find('#city-cdek');
	  frime.bind('focus', function(){
	  	$('#cdek_frame').css({"minHeight": '200px', "height": "200px"})
	  })
	  frime.bind('blur', function(){
	  	$('#cdek_frame').css({"minHeight": '100px', "height": "100px"})
	  })
	});
}
 

})(jQuery);

//-----------------------------------------------------------------------

function update_count( type, alias, max ) {
	
	if (window.innerWidth < 1090) {
		if (
			($('#'+alias).val()+1 > 0 && type == 'plus') ||
			$('#'+alias).val()-1 > 0 && type == 'minus'
		) {
			$('#'+alias).closest(".size-table__line").addClass("active");
		} else {
			$('#'+alias).closest(".size-table__line").removeClass("active");
		}
	}
	
	check = alias.split('/');
	if (check.length > 1){  
		var object = $('input.' + check[0]+'\\/'+check[1]),
		obv = $(object).val();
	} else {  
		var object = $('input.' + alias),
		obv = $(object).val();
	}

	if (type == 'plus') obv = (+obv) + 1;
	if (type == 'minus') obv = (+obv) - 1;	
		
    if (obv < 1){
		//	$('.goods-remove').find('input[name="goods-remove-alias"]').val(alias);
		//	$('.goods-remove').show();
			$(object).val(0);
	} else {
			if(obv > max){
				$(object).val(max);
                
                var maxAlert = $(object).parent().parent().find('.cart__param-sorry');
			    $(maxAlert).show();
			    setTimeout(function() {
				    $(maxAlert).hide();
			    }, 500);             
			
            }else
				$(object).val(obv);
                
           // var metric = $("input[id='" + alias + "']");;
           //   var metric = $(object).parent().find("#m_" + alias);                
            
    }        
		
	//	cartRecalc(object)
}

//-----------------------------------------------------------------------

