document.write('<A HREF="home.html"><IMG BORDER="0" WIDTH="132" HEIGHT="64" SRC="gp2000.gif"></A><BR><BR>');
var c = {
	'blog' : {
		'title' : [
			'New zmac version',
			'trs80gp updated to 1.8',
			'4 Letter IP Addreses',
			'trs80gp updated to 1.5.1',
			'Double-wide Bug',
			'/CMD, .cas, .hex converter',
			'Beamhacking: Loose Ends',
			'Beamhacking: Blanking',
			'Beamhacking: Video Timing',
			'Beamhacking: Cycle Counting',
			'Beamhacking: Syncing',
			'Beamhacking Intro',
			'Dancing Demon Redux',
			'Breakthrough in TRS-80 Graphics'
		],
		'href' : [
			'zmac-update1.html',
			'emu-update2.html',
			'ip4.html',
			'emu-update1.html',
			'bug32.html',
			'cmdcashex.html',
			'beamhack6.html',
			'beamhack5.html',
			'beamhack4.html',
			'beamhack3.html',
			'beamhack2.html',
			'beamhack1.html',
			'dd2.html',
			'breakthrough.html'
		]
	},
	'info' : {
		'title' : [
			'George\'s Home Page',
			'How to Run a TRS-80 Program',
			'List Of All Pages'
		],
		'href' : [
			'home.html',
			'trsrun.html',
			'site.html'
		]
	},
	'software' : {
		'title' : [
			'128 x 192 Graphics on a TRS-80',
			'24 x 156 x 5 TRS-80 Graphics',
			'All 320 Characters',
			'Apple ][ BLOAD Simulacrum',
			'Blitz',
			'Bouncing Ball',
			'Doubled Dancing Demon',
			'Marquee Lights',
			'Star Fields',
			'trld - convert/combine TRS-80 executables',
			'trs80gp - A TRS-80 Model 3/4/1 Emulator',
			'zmac - Z-80 Macro Cross Assembler'
		],
		'href' : [
			'128x192.html',
			'24x156x5.html',
			'320char.html',
			'bload.html',
			'blitz.html',
			'ball.html',
			'dandem2.html',
			'marquee.html',
			'stars.html',
			'trld.html',
			'trs80gp.html',
			'zmac.html'
		]
	}
};
var cat = document.getElementsByName('keywords')[0].content.split(',')[0];
var p = document.location.pathname;
var page = p.substr(p.lastIndexOf('/') + 1).toLowerCase();
if (page == '') { page = 'home.html'; }
var isHome = page == 'home.html';

function toggle(id)
{
	var d = document.getElementById(id).style;
	if (d.display != 'none')
	{
		d.display = 'none';
	}
	else
	{
		d.display = 'block';
	}
}

document.write('<DIV ID="nav">');

for (ca in c)
{
	ct = c[ca];
	document.write('<A HREF="javascript:toggle(\'c_' + ca + '\');"><B>' + ca.substr(0, 1).toUpperCase() + ca.substr(1) + '</B></A><BR>');
	disp = ca == cat || (ca == 'blog' && isHome) ? 'block' : 'none';
	document.write('<DIV STYLE="display:' + disp + ';" ID="c_' + ca + '">');
	for (i = 0; i < ct.href.length; i++)
	{
		document.write('&nbsp;&nbsp;&nbsp;');
		if (ct.href[i] == page)
		{
			document.write(ct.title[i]);
		}
		else
		{
			document.write(ct.title[i].link(ct.href[i]));
		}
		document.write('<BR>');
	}
	document.write('</DIV>');
	document.write('<BR>');
}

document.write('<HR>');

document.write('</DIV>');

