	$(document).ready(function(){
		$("#closeError").click(function () { 
			$("#message").fadeOut("normal");
		});

		$(".giftContent").click(function() {
			var GiftID = $(this).attr("id");
			$.ajax({
				type: "GET",
				async: true,
				data: 'GiftID=' + GiftID,
				url: "_Boxes/SelectInShop.php",
				success: function(data, textStatus){
					$("#PresentDetailed").show();
					$("#PresentDetailed > .present_details").html(data);
				},
				complete: function() {
					$("#CloseWindowTop").click(function () {
						$("#PresentDetailed").fadeOut("normal");
					});
					$("#CloseWindow").click(function () {
						$("#PresentDetailed").fadeOut("normal");
					});
				}
			});
			
			return false;
		});
	});
