
$(window).scroll(function(){
	$('#shopping_cart_content').css("top", $(window).height() + $(window).scrollTop() - $('#shopping_cart_content').height() - 10 + "px");
	$('#shopping_cart_content').css("left", $(window).width() + $(window).scrollLeft() - $('#shopping_cart_content').width() - 10 + "px");
});

$(window).resize(function(){
	$('#shopping_cart_content').css("top", $(window).height() + $(window).scrollTop() - $('#shopping_cart_content').height() - 10 + "px");
	$('#shopping_cart_content').css("left", $(window).width() + $(window).scrollLeft() - $('#shopping_cart_content').width() - 10 + "px");
});

/*
$('#close_message').click(function(){
	$('#shopping_cart_content').animate({ top:"+=15px",opacity:0 }, "slow");
});
*/

function init1(){
	$('#shopping_cart_content').css("top", $(window).height() + $(window).scrollTop() - $('#shopping_cart_content').height() - 10 + "px");
	$('#shopping_cart_content').css("left", $(window).width() + $(window).scrollLeft() - $('#shopping_cart_content').width() - 10 + "px");
};

// 取得購物車內容
function ajax_cart_content()
{
	$.ajax({
		type: 'GET',
		url: '/ajax/ajax_cart_content.php',
		dataType: 'html',
		success: function (sMsg){
			$('#cart_table').html(sMsg);
		},
		error: function (sMsg1, sMsg2){
			//
		},
		complete: function (sMsg1, sMsg2){
			//
		}
	});

	return false;
}

