function add_item(id) {
	$.post(
		'lib/update_cart.php',
		{ id: id },
		function(data) {
			$('#cart-quantity').html(data.quantity);
			$('#cart-subtotal').html(data.subtotal2);
		},
		'json'
	);
}

$(function() {
	$('#nav-'+page_id).removeClass('hover');
	$('.hover').each(function () {
		a = $(this).attr('src').replace(/\.(.+)$/i, '-on.$1');
		i = new Image();
		i.src = a;
	});
	$('.hover').hover(function () {
		s = $(this).attr('src');
		b = s.replace(/\.(.+)$/i, '-on.$1');
		$(this).attr('src', b);
	}, function() {
		$(this).attr('src', s);
	});
});


$('input.click').hover(function () {
							
	$(this).attr('src','images/checkout-hover.gif');

});
