	var bagShowTimerID = null;
	function showBag() {
		var bagShowLayer = document.getElementById("bagShowLayer");
		bagShowLayer.style.pixelTop = document.body.scrollTop;
		bagShowLayer.style.visibility = "visible";
		bagShowTimerID = setTimeout("closeBagShow()", 10000 );
	}
	function closeBagShow() {
		var bagShowLayer = document.getElementById("bagShowLayer");
		bagShowLayer.style.visibility = "hidden";
		clearTimeout(bagShowTimerID);
	}
	function addGood(id, cost) {
		bagShow.location.href = "/bag/insert?g" + id + "=" + cost + "&c" + id + "=1";
		var bs = document.getElementById("bagShow");
		if(typeof(bs.location) == "undefined")
			showBag();
		else
			bs.onload = showBag;
	}

