
var currentPanel = null;
var readTheTodayPage = 0;
		
function Panel_Show(panelID,showInfo)
{
	var newPanel = this.GetElementByID(panelID);
	var infoPanel = this.GetElementByID("NicBaseInfoPanel");
	if(infoPanel.style.display == "")
	{
		if(showInfo == true) infoPanel.style.display = "none";
	}
	if (this.currentPanel != newPanel)
	{
		if (this.currentPanel != null)
		{
			this.currentPanel.style.display = "none";
		}
			
		if (panelID == "GameInfoPanel")
		{
			this.Board_ExecuteCommand("ContinueViewGame");
		}
		if (panelID == "TodayPanel")
		{
			if(readTheTodayPage == 0)
			{
				this.SearchPlayers_Execute();
				readTheTodayPage = 1;
			}
		}	
		this.currentPanel = newPanel;
		this.currentPanel.style.display = "";
	}
}
function Panel_ShowPlayer(playerID)
{
	var infoPanel = this.GetElementByID("NicBaseInfoPanel");
	infoPanel.style.display = "none";
	this.currentPlayer = playerID;	
}
function Panel_ShowGame(gameItems)
{
	var infoPanel = this.GetElementByID("NicBaseInfoPanel");
	infoPanel.style.display = "none";
	var re = "\'";
	this.searchGame = gameItems.replace('|',re);
}
