function GameDay()
{
	var m_content = document.getElementById("content_GameDay");
	var m_programList = new ProgramList(5);
	var m_initialized = false;
	var m_lastConsoleState = null;
	
	this.display = function()
		{
			if(!m_initialized)
			{
				this.getGameDays();
				m_initialized = true;
				m_lastConsoleState=_console.m_consoleMode;
			}
			else
			{
				if (m_lastConsoleState!=_console.m_consoleMode)
				{
					m_lastConsoleState=_console.m_consoleMode;
					this.reload();
				}
			}
			_console.lastReloadComponent = this;
		}
		
	this.reload = function()
		{
			m_lastConsoleState=_console.m_consoleMode;
			this.getGameDays();
		}
		
	this.getGameDays = function(pn)
		{
			if(pn==null)
				pn = 1;
			var args = new Object();
			m_programList.setURLParams(args, pn);
			if(Console.MODE_LARGE==_console.m_consoleMode)
				args.large = "true"
			_console.getComponentContent("gameday", args, this.getGameDaysCallBack);
		}
		
	this.getGameDaysCallBack = function(result)
		{
			m_content.innerHTML = result;
			trackBrowse(["Game Day"]);
		}
}


