// changed player search to player summary - WRAC 8/19/2008
// added rank averages to menu - WRAC 8/20/2008
// added team competition to menu - WRAC 11/24/2011
// added team results to menu - WRAC 11/25/2011

var fcmenu = new Array(
	'Netcell', 'http://www.freecell.net/f/c/index.html','Netcell home page','netcell',
	'play', 'http://www.freecell.net/f/c/play.html', 'Play Freecell online', 'play',
	'scores', 'http://www.freecell.net/f/c/scores.html', 'Scores and streaks info', 'scores',
	'hotel', 'http://hotelnetcell.com', 'Discussion for Netcell Addicts', 'hotel netcell discussion',
	'discussion', 'http://www.freecell.net/f/c/discussion.html', 'Original Netcell discussion forum', 'discussion',
	'ratings home', 'http://hotelnetcell.com/ratings/', 'Main tournament ratings page', 'ratings home',
	'results', 'http://hotelnetcell.com/ratings/results.html', 'Complete results for selected tourney', 'results',
	'player summary', 'http://hotelnetcell.com/ratings/summary.html', 'Player rankings for each theme', 'summary',
	'rank averages', 'http://hotelnetcell.com/ratings/average.php', 'Average player ranks', 'averages',
	'schedule', 'http://hotelnetcell.com/schedule/tourney_schedule.html', 'Tournament schedule', 'schedule',
	'team comp', 'http://hotelnetcell.com/ratings/teamcomp.html', 'Team competition', 'team',
	'tourneys', 'http://www.freecell.net/f/c/tourinfo.html', 'Netcell tourney page', 'tourney home'
);

// 	'team results', 'http://hotelnetcell.com/ratings/teamres.html', 'Team results for selected tourney', 'results',

function drawMenu()
{
	var a = new Array();
	a.push( '<table cellpadding=0 cellspacing=0 align=center class=leftU>' );
	a.push( '<tr><td align=right class="colorAccent2 f12b">' );
	a.push( '<img src="/img/1c.gif" width=1 height=3><br>' );

	var i;
	for( i = 0; i < fcmenu.length; i += 4 )
	{
		var cls =  currentSection == fcmenu[i+3] ? 'accent2Link' : 'accentLink';
		var	linkStart = '';
		var	linkEnd = '';
		if( currentPage != fcmenu[i+3] )
		{
			linkStart = '<a class=' + cls + ' href="' + fcmenu[i+1] + '" title="' + fcmenu[i+2] + '">';
			linkEnd = '</a>';
		}
		a.push( linkStart + fcmenu[i] + linkEnd + '&nbsp;<br>' );
	}
	a.push( '<img src="/img/1c.gif" width=1 height=3><br>' );
	a.push( '</td></tr>' );
	a.push( '</td></tr></table>' );
	document.write( a.join( '\n' ) );
}

drawMenu();

