function getDownFreeCoupon (k)
{
	//
	$.post("../inc/ajax_lib/domain_freecoupon.php", { kind : k }, 
		function () {
		}, "script" );
}

/**************************
	ÆË¾÷·¹ÀÌ¾î ¶ç¿ì±â
***************************/
var coupon_detail_01 = "";
var coupon_detail_02 = "";
function showCouponDetail (url, g, t)
{
	//
	var obj = document.getElementById("layer_coupon_detail");
	var now_width = window.document.body.clientWidth/2;

	if ( (g == "1" && coupon_detail_01 == "") || (g == "2" && coupon_detail_02 == "") )
	{
		$("#layer_coupon_detail").load(url, function(data) {
			if (g == "1")
			{
				coupon_detail_01 = data;
			}
			else if (g == "2")
			{
				coupon_detail_02 = data;
			}
		});
	}
	else
	{
		if (g == "1")
		{
			$("#layer_coupon_detail").html(coupon_detail_01);
		}
		else if (g == "2")
		{
			$("#layer_coupon_detail").html(coupon_detail_02);
		}
	}

	obj.style.left = now_width + 15;
	obj.style.top = t;
	$("#layer_coupon_detail").show();
}
//
function hideCouponDetail ()
{
	//
	var obj = document.getElementById("layer_coupon_detail");

	//
	obj.style.left = 0;
	obj.style.top = 0;
	$("#layer_coupon_detail").html("");
	$("#layer_coupon_detail").hide();
}

function EndFreeCoupon ()
{
	alert("ÀÌº¥Æ®°¡ Á¾·áµÇ¾ú½À´Ï´Ù.");
	return false;
}