jQuery(function() {
	Cufon.replace('#menu A', { hover: true, fontSize: '24px' });
	Cufon.replace('.flyer .price', { fontSize: '22px' });
	Cufon.replace('.flyer .noprice', { fontSize: '20px' });
	Cufon.replace('H1,H3', { fontSize: '36px' });
	Cufon.replace('H2, .flypage .price', { fontSize: '30px' });
});

function addtocart(id) {
	// раскомментировать
	AddIntoCart('/catalog/', id, 1);
	var img = jQuery('#img_'+id), pos = img.offset();
	var tr = $('<div class="effect-transfer"/>').appendTo('body').append(img.clone())
		.css({ top: pos.top, left: pos.left, height: img.outerHeight(), width: img.outerWidth() });

	var cart = jQuery('#cart A'), pos = cart.offset();
	tr.animate({ top: pos.top, left: pos.left, height: cart.outerHeight(), width: cart.outerWidth()	}, 1000, function() {
		jQuery.noticeAdd({
			text: '<h5>Корзина</h5>Товар добавлен в корзину!<br /><a href="/catalog/cart/"><b>Перейти</b></a> для оформления заказа.',
			stay: false,
			inEffectDuration: 250,
			stayTime: 2000
		});
		$(this).remove();
	});
	return!1;
}

function showbigimg(obj, id) {
	$('#img_'+id).attr('src', $(obj).attr('href'));
	return!1;
}

