/************网页登录,注销,改变货币是否更新信息************/
var IsRefresh=false;
/************是否属于顶级目录************/
var IsRootDir="false";
var ifInfo=$("ifInfo");	
var DivBG=$("DivBG");	
/**************导航页面改变****************/
function MenuChange(id,img,url)		
{
	var imgExchange = document.getElementById("imgExchange");
	var imgLuckyeDraw = document.getElementById("imgLuckyeDraw");
	var imgWinnerList = document.getElementById("imgWinnerList");
	imgExchange.src="../images/point/exchange.gif";
	imgLuckyeDraw.src="../images/point/luckydraw.gif";
	imgWinnerList.src="../images/point/winnerslist.gif";

	var MenuChangeID=document.getElementById(id);
	MenuChangeID.src="../images/point/"+img;
	var hidGameName=document.getElementById("hidGameName");
	var ifMenu=document.getElementById("ifMenu");
	var d = new Date();
	ifMenu.src=url+"?time="+d.getTime();
}
/******************隐藏积分商品信息************************/
function HiddenInfo()
{
	ifInfo.style.visibility="hidden";
	DivBG.style.visibility="hidden";
}
/*************************显示商品信息********************/
function Buy(ID,GoodsType)
{
	/*********************判断是否登录***********************/
	var result=gold.points.points.CheckCustomerID().value;
	if(result=="")
	{
		Logout();
		alert("Please sign in.");
		return;
	}	
	DivBG.style.width=document.body.scrollWidth;
	DivBG.style.height=document.body.scrollHeight;
	/**********************商品列表框ID**************************/
	var IfSell=document.getElementById("ifMenu");
	var MeTop = IfSell.offsetTop;
	var MeLeft = IfSell.offsetLeft;
	while (IfSell = IfSell.offsetParent)
	{
		MeTop+=IfSell.offsetTop;
		MeLeft+=IfSell.offsetLeft;
	}
	ifInfo.style.top=document.body.scrollTop+150;	
	ifInfo.style.left=MeLeft+120;
	ifInfo.style.visibility="visible";	
	DivBG.style.visibility="visible";
	
	var d = new Date();
	ifInfo.src="detail.aspx?ID="+ID+"&Type="+GoodsType+"&time="+d;				
	/*************************显示商品信息的定位********************/
	DivBG.style.width=document.body.scrollWidth;
	DivBG.style.height=document.body.scrollHeight;
	ifInfo.style.top=MeTop;
	ifInfo.style.left=MeLeft;
	ifInfo.style.visibility="visible";	
	DivBG.style.visibility="visible";				
}									