var backbuttonjoint = false;
var buttons = 6;
var cache = new Array();
var names = new Array( "intro", "news", "services", "games", "contact", "help");
for( n=0; n<buttons; n++){
  cache[n] = new Image;
  cache[n].src = "b_"+names[n]+".gif";
  cache[n+buttons] = new Image;
  cache[n+buttons].src = "s_"+names[n]+".gif";
}

function Toggle( image, which){
	image.src = cache[which].src;
}

document.write( "<Img Src=top.gif Style=\"position:absolute; left:0; top:0; z-index:1\"><Table align=center Width=100% Cellspacing=0 Cellpadding=0 Border=0><TR><TD Align=TOP><center>");

if( document.name!="pow")
	document.write( "<A Style=\"background-color:transparent\" Href=index.html><Img Src=small_logo.gif hspace=0 vspace=0 Border=0 Style=\"position:relative; z-index:2; background-color:transparent\"><BR><BR></A>");
else
	document.write( "<Img Src=powlogo.gif Style=\"position:relative; z-index:2\"><BR><BR></A>");

for( n=0; n<buttons; n++){
	if( n>0){
		document.write( " <Img Src=button_joint.gif align=middle> ");
	}
	document.write( "<A Href=\""+names[n]+".html\" onMouseOut=\"Toggle( document.Image"+n+", "+n+")\"onMouseOver=\"Toggle( document.Image"+n+", "+(n+buttons)+")\"><Img Src="+cache[n].src+" Border=0Vspace=0 Hspace=0 align=middle Alt=\""+names[n]+"\" Name=Image"+n+"></A>");
}

document.write( "<P Class=Center>");

switch( document.name){
	case "pow_services":
	case "pow_web":
	case "laptop_memory":
	case "pow_programming":
		document.write( "<A class=menu Href=laptop_memory.html>Laptop Memory</A> <Img Src=button_joint.gif align=top> <A class=menu Href=webdesign.html>Web Design</A> <Img Src=button_joint.gif align=top> <A class=menu Href=programming.html>Contract Programming</A>");
		backbuttonjoint = true;
		break;
	case "powball_intro":
	case "powball_order":
		document.write( "<A class=menu Href=powball_index.html>Info</A> <Img Src=button_joint.gif align=top> <A class=menu Href=\"powball_index.html#screen_shots\">Screen Shots</A> <Img Src=button_joint.gif align=top> <A class=menu Href=\"powball_index.html#patches\">Patches</A> <Img Src=button_joint.gif align=top> <A class=menu Href=download/powballdx.exe>Download</A> <Img Src=button_joint.gif align=top> <A class=menu Href=powball_order.html>Buy Now</A>");
		backbuttonjoint = true;
		break;
	case "morkin2_intro":
		document.write( "<A class=menu Href=morkin2_index.html>Info</A> <Img Src=button_joint.gif align=top> <A class=menu Href=morkin2_index.html#shots>Screen Shots</A> <Img Src=button_joint.gif align=top> <A class=menu Href=morkin2_index.html#editor>Editor</A> <Img Src=button_joint.gif align=top> <A class=menu Href=download/morkin2.zip>Download</A>");
		backbuttonjoint = true;
		break;
	case "kon_index":
		document.write( "<A class=menu Href=download/kon.z80>Download</A>");
		backbuttonjoint = true;
		break;
	case "loft_index":
		document.write( "<A class=menu Href=download/loft.z80>Download</A>");
		backbuttonjoint = true;
		break;
	case "spidoid_index":
		document.write( "<A class=menu Href=download/spidoid.z80>Download</A>");
		backbuttonjoint = true;
		break;
	case "boogey2_index":
		document.write( "<A class=menu Href=download/boogeyman2.zip>Download</A>");
		backbuttonjoint = true;
		break;
};

if( document.backButton){
	if( backbuttonjoint!=false)
		document.write( " <Img Src=button_joint.gif Align=top> ");
	document.write( "<A class=menu Href=\"javascript:history.back(1)\">Go Back</A><BR>");
}