function lightLink2() { 
	if ( document.documentElement )
	{
	document.getElementById('pP').style.backgroundColor = "#ffffcc";
	document.getElementById('pP').style.color = "#0000ff";
	document.getElementById('pL').style.backgroundColor = "#ffffff";
	document.getElementById('pL').style.color = "#0000ff";
	}
	else { return false; }
}

function darkLink2() { 
	if ( document.documentElement )
	{
	document.getElementById('pP').style.backgroundColor = "#ccc";
	document.getElementById('pP').style.color = "#0000ff";
	document.getElementById('pL').style.backgroundColor = "#ccc";
	document.getElementById('pL').style.color = "#0000ff";
	}
	else { return false; }
}

document.onkeydown = keyHit;

if (document.layers) 
	{ 
	document.captureEvents(Event.KEYDOWN)
	ltArrow = 28;
	rtArrow = 29;
	}

else
	{
	ltArrow = 37;
	rtArrow = 39;
	}

function keyHit(evt) {
	if ( document.documentElement )
	{

		if (evt) { thisKey = evt.which }

		else { thisKey = window.event.keyCode; }

		var pPage = "";
		pPage = document.getElementById("pL").href; 


		var nPage = "";
		nPage = document.getElementById("nL").href; 
	
		if ( thisKey == ltArrow) {window.location.href = pPage; }
		else if ( thisKey == rtArrow) { window.location.href = nPage;} 
	}
}

function nextPage() { 
	if ( document.documentElement )
	{
	var nPage = "";
	nPage = document.getElementById("nL").href; 
	window.location.href = nPage;
	return false;
	}
	else { return true; }
}

function prePage() { 
	if ( document.documentElement )
	{
	var pPage = "";
	pPage = document.getElementById("pL").href; 
	window.location.href = pPage;
	return false;
	}
	else { return true; }
}

function dl() {
	if ( document.documentElement )
	{
document.write('<form id\=\"tab2\" action\=\"\">');
document.write("\x3C\x69\x6E\x70\x75\x74 ");
document.write("class\=\"tab0\" ");
document.write("type\=\"\x62\x75\x74\x74on\" title\=\"\x50\x72\x65\x76\x69\x6F\x75\x73\" onclick\=\"\x70\x72\x65\x50\x61\x67\x65\(\)\;\" value\=\"\&\#060\;\" \/> ");
document.write("\x3C\x69\x6E\x70\x75\x74 ");
document.write("class\=\"tab0\" ");
document.write("title\=\"\x4E\x65\x78\x74\" onclick\=\"\x6E\x65\x78\x74\x50\x61\x67\x65\(\)\;\" type\=\"\x62\x75\x74\x74on\" value\=\"\&\#062\;\" \/>");
document.write("<\/form>");
	}
	else { return false; }
}

function din() {

	if ( document.documentElement )
	{
document.write("<form id\=\"tab1\" action\=\"\">");
document.write("\x3C\x69\x6E\x70\x75\x74 ");
document.write("class\=\"tab0\" ");
document.write("title\=\"\x4E\x65\x78\x74\" onclick\=\"\x6E\x65\x78\x74\x50\x61\x67\x65\(\)\;\" type\=\"\x62\x75\x74\x74on\" value\=\"\&\#062\;\" \/>");
document.write("<\/form>");
	}
	else if ( document.layers )
	{
	document.write("<p>Hello. Welcome. It appears that you are using Netscape Navigator version 4 \(or something similar\).<\/p>");
	document.write("<p>You might find the <a href\=\"straight_text.html\">straight-text version<\/a> to be somewhat more colorful through your browser. ");
 	document.write("If you return with a more recent browser version, you may be surprised by the difference in appearance.<\/p>");
	document.write("<hr \/>");
	return;
	}

	else if ( ! document.images )
	{
	document.write("<p>Hello. Welcome. It appears that you are using early browser version.<\/p>");
	document.write("<p>If you return with a more recent browser version, you may be surprised by a difference in appearance ~ while the text-content remains exactly the same.<\/p>");
	document.write("<hr \/>");
	return;
	}
	else { return false; }
}

function dex() {

	if ( document.documentElement )
	{
document.write('<form id\=\"tab3\" action\=\"\">');
document.write("\x3C\x69\x6E\x70\x75\x74 ");
document.write("class\=\"tab0\" ");
document.write("type\=\"\x62\x75\x74\x74on\"  title\=\"\x50\x72\x65\x76\x69\x6F\x75\x73\" onclick\=\"\x70\x72\x65\x50\x61\x67\x65\(\)\;\" value\=\"\&\#060\;\" \/>");
document.write("<\/form>");
	}
	else { return false; }
}

function announcements()
{
	if ( document.documentElement )
	{
document.write("<div id\=\"announcement\">");
document.write("<img id\=\"bearA\" style\=\"width\:59px\; height\:96px\;border\:none\;\" ");
document.write("onclick\=\"hideBear\(\)\;\" onkeypress\=\"hideBear\(\)\;\" ");
document.write("class=\"cursX\" ");
document.write("src\=\"bear.gif\" title\=\"Let\'s learn\" alt\=\"\" \/><\/div>");
	}
	else { return false; }
}

function hideBear()
{
	if ( document.documentElement )
	{
document.getElementById('bearA').style.visibility='hidden';
	}
	else { return false; }
}


function hiA(e,f) { 
	if ( document.documentElement )
	{
	var a = document.getElementById(e);
	var b = document.getElementById(f);
	a.style.backgroundColor = "#ffffcc";
	a.style.color = "#0000ff";
	b.style.backgroundColor = "#ffffff";
	b.style.color = "#0000ff";
	}
	else { return false; }
}

function deA(g,h) { 
	if ( document.documentElement )
	{
	var c = document.getElementById(g);
	var d = document.getElementById(h);
	c.style.backgroundColor = "#ccc";
	c.style.color = "#0000ff";
	d.style.backgroundColor = "#ccc";
	d.style.color = "#0000ff";
	}
	else { return false; }
}

function hiB (e)
{
	if ( document.documentElement )
	{
	var a = document.getElementById(e);
	a.style.backgroundColor = "#ffffff";
	a.style.color = "#000000";
	a.style.fontStyle='italic';
	}
	else { return false; }
}

function deB (e)
{
	if ( document.documentElement )
	{
	var a = document.getElementById(e);
	a.style.backgroundColor = "#ffffff";
	a.style.color = "#000000";
	a.style.fontStyle='normal';
	}
	else { return false; }
}


function lightLink3() { 
	if ( document.documentElement )
	{
	document.getElementById('pP').style.backgroundColor = "#ffffcc";
	document.getElementById('pP').style.color = "#0000ff";
	document.getElementById('pL').style.backgroundColor = "#ffffff";
	document.getElementById('pL').style.color = "#0000ff";
	document.getElementsByTagName('H2').item(0).style.backgroundColor = "#eeeeee";
	document.getElementsByTagName('H2').item(0).style.color = "#000000";
	}
	else { return false; }
}

function darkLink3() { 
	if ( document.documentElement )
	{
	document.getElementById('pP').style.backgroundColor = "#eeeeee";
	document.getElementById('pP').style.color = "#0000ff";
	document.getElementById('pL').style.backgroundColor = "#eeeeee";
	document.getElementById('pL').style.color = "#0000ff";
	document.getElementsByTagName('H2').item(0).style.backgroundColor = "#ffffcc";
	document.getElementsByTagName('H2').item(0).style.color = "#000000";
	}
	else { return false; }
}