function show_js_links(calling_page) {

var link_0;
var link_1;
var link_2;
var link_3;
var link_4;
var link_5;
var link_6;
var link_7;
var link_8;
var link_9;
var link_10;

// link strings should be in the form
// {page title (displayed to user),URL (relative to the APPLET not the calling page),target window (normally _self)}

link_0="{JavaScript home,../javascript/index.html,_self}";
link_1="{Open a new window,../javascript/javascript_open_window.html,_self}";
link_2="{Cookies,../javascript/javascript_cookies.html,_self}";
link_3="{Show text in the status bar,../javascript/javascript_show_text.html,_self}";
link_4="{How to tell what browser is being used,../javascript/javascript_browser.html,_self}";
link_5="{Disable right-clicking,../javascript/javascript_disable_right_click.html,_self}";
link_6="{Change images using a dissolve effect,../javascript/javascript_image_dissolve.html,_self}";
link_7="{Make images change onMouseOver,../javascript/javascript_image_change.html,_self}";
link_8="{Game - Meme,../javascript/javascript_game_meme.html,_self}";
link_9="{Game - Battleships,../javascript/battleships/javascript_game_battleships.html,_self}";
link_10="{Game - Same,../javascript/same/javascript_game_same.html,_self}";

document.write('<DIV ALIGN=CENTER>');

//the Battleships and Same games are in sub-folders, so need a longer path to the applet
if ((calling_page=="link_9") || (calling_page=="link_10")) {
	document.write('<APPLET CODE=apChoiceMenu CODEBASE=../../java ARCHIVE=apChoiceMenu.jar WIDTH=220 HEIGHT=22>');
	}
else { document.write('<APPLET CODE=apChoiceMenu CODEBASE=../java ARCHIVE=apChoiceMenu.jar WIDTH=220 HEIGHT=22>'); }

document.write('<PARAM NAME="Copyright" VALUE="Apycom Software - www.apycom.com">');

//the Same game page has a black background, the rest are white
if (calling_page=="link_10") {
	document.write('<PARAM NAME="backColor" VALUE="000000">');
	}
else { document.write('<PARAM NAME="backColor" VALUE="FFFFFF">'); }

document.write('<PARAM NAME="font" VALUE="Arial,11,0">');
document.write('<PARAM NAME="menuItems" VALUE="');

var loop;
for (loop=0; loop < 11; loop++) {
	display="link_"+loop;
	if ((display) == (calling_page)) {
		continue;
	}
	else {
		document.write(eval(display));
		}
	}

document.write('   {---,_,_}');
document.write('   {Style sheets,../javascript/style_sheets.html,_self}');
document.write('   {Queensryche,../queensryche/index.html,_self}');
document.write('   {Jokes,../jokes/index.html,_self}');
document.write('   {Links,../links.html,_self}');
document.write('   {Sitemap,../sitemap.html,_self}');
document.write('   {Home page,../index.html,_self}');
document.write('   {---,_,_}');
document.write('   {Contact Me,mailto:bigoleg@totalise.co.uk,_self}');
document.write('   ">');
document.write('</APPLET>');
document.write('</DIV>');
}
