// global vars
var activePage = '1';
var playername_def = '<img src="/images/index_gif_96.jpg" width="241" height="20">';

function rosterSwap(display_page)
{
	var i; pList = new Array();

	pList[0] = '1';
	pList[1] = '2';
	pList[2] = '3';
	pList[3] = '4';
	pList[4] = '5';
	pList[5] = '6';
	pList[6] = '7';
	pList[7] = '8';
	pList[8] = '9';
	pList[9] = '10';
	
	for (i = 0; i < pList.length; i++)
	{
		if (pList[i] == display_page)
		{
			activePage = display_page;
			document.getElementById('playershots' + pList[i]).style.display = 'block';
		}
		else
		{
			document.getElementById('playershots' + pList[i]).style.display = 'none';
		}
	}
}

function playerSwapOn(name, game, flag, nation)
{
	document.getElementById('player_name').innerHTML = "<img src='/images/nations/" + flag + "' alt='" + nation + "'> " + game + " | " + name + "";
}
function playerSwapOff(name, game, flag, nation)
{
	document.getElementById('player_name').innerHTML = playername_def;
}

function swaparticles(onoff)
{
	if(onoff==1)
	{
		document.getElementById('featuredarticle0').style.display = 'block';		
		document.getElementById('featuredarticle1').style.display = 'none';
	}
	if(onoff==0)
	{
		document.getElementById('featuredarticle0').style.display = 'none';
		document.getElementById('featuredarticle1').style.display = 'block';
	}
}
function swapmatches(onoff)
{
	if(onoff==1)
	{
		document.getElementById('featuredmatch0').style.display = 'block';		
		document.getElementById('featuredmatch1').style.display = 'none';
	}
	if(onoff==0)
	{
		document.getElementById('featuredmatch0').style.display = 'none';
		document.getElementById('featuredmatch1').style.display = 'block';
	}
}