var fcmenu = new Array(
	'home', 'http://www.freecell.net/f/c/index.html','Home page','home',
	'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',
	'game&nbsp;stats', 'http://www.freecell.net/f/c/gamestats.html', 'Statistics about individual deals', 'gamestats',
	'tournament', 'http://www.freecell.net/f/c/tour.html', 'Tournament information and scores', 'tour',
	'instructions', 'http://www.freecell.net/f/c/instructions.html', 'How to play', 'instructions',
	'discussion', 'http://www.freecell.net/f/c/discussion.html', 'Discussion forum', 'discussion',
	'problems', 'http://www.freecell.net/f/c/problems.html', 'Tips for getting the games to work properly', 'problems',
	'premium', 'http://www.freecell.net/f/c/premium.html', 'Premium ad-free access to this site', 'premium',
	'merchandise', 'http://www.fullfillmentcenter.com/f/cell/index.html', 'Freecell t-shirts, coffee mugs, etc', 'merchandise',
	'12&nbsp;steps', 'http://www.freecell.net/f/c/12step.html', '12 Step program for Freecell addiction', '12step',
	'pictures', 'http://www.freecell.net/f/c/pics.html', 'Share pictures with other Freecell players', 'pics',
	'about', 'http://www.freecell.net/f/c/about.html', 'Info about this site and Freecell in general', 'about',
	'privacy', 'http://www.freecell.net/f/c/privacy.html', 'Privacy policy', 'privacy' 
);


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();
