// ライトボックス関連


// ライブラリのロード
document.write('<script type="text/javascript" src="/js/prototype.js"></script>');
document.write('<script type="text/javascript" src="/js/PrototypeWindowClass/window.js"></script>');
document.write('<link href="/js/PrototypeWindowClass/themes/default.css" rel="stylesheet" type="text/css">');


// 送料表示
function showShippingCost( Id, Height ) {
	if( ! Height ) Height = 400;
	var wobj = new Window( 'sub_shipping_cost', {
		title:			'送料一覧',
		zIndex:			100,
		width:			420,
		height:			Height,
		closable:		true,
		resizable:		false,
		minimizable:	false,
		maximizable:	false,
		draggable:		true,
		url:			"/s.cgi/item/shipping_cost.html?id=" + Id
	});
	wobj.setDestroyOnClose();
	wobj.showCenter( true );
}

// カート数量
function setCounts( ItemId, VariationId ) {
	var wobj = new Window( 'sub_set_counts', {
		title:			'数量変更',
		zIndex:			100,
		width:			420,
		height:			250,
		closable:		true,
		resizable:		false,
		minimizable:	false,
		maximizable:	false,
		draggable:		true,
		url:			"/s.cgi/order/set_counts.html?item_id=" + ItemId + '&variation_id=' + VariationId
	});
	wobj.setDestroyOnClose();
	wobj.showCenter( true );
}
// カート数量
function setCountsDonation( ItemId, VariationId ) {
	var wobj = new Window( 'sub_set_counts', {
		title:			'数量変更',
		zIndex:			100,
		width:			420,
		height:			250,
		closable:		true,
		resizable:		false,
		minimizable:	false,
		maximizable:	false,
		draggable:		true,
		url:			"/s.cgi/donation/set_counts.html?item_id=" + ItemId + '&variation_id=' + VariationId
	});
	wobj.setDestroyOnClose();
	wobj.showCenter( true );
}

