var menu_options = new Array();
var max_menu_options = 10;
var max_menu_levels = 9;
for (i=0;i<max_menu_levels;i++)
{
	menu_options[i] = new Array();
	for (j=0;j<max_menu_options;j++)
	{
		menu_options[i][j] = new Array();
		menu_options[i][j][0] = "";
		menu_options[i][j][1] = "";
	}
}

//training level
menu_options[-2] = new Array();
for (j=0;j<max_menu_options;j++)
{
	menu_options[-2][j] = new Array();
	menu_options[-2][j][0] = "";
	menu_options[-2][j][1] = "";
}

menu_options[1][0][0] = "What is this place?";
menu_options[1][0][1] = "AddText(\" Davis: Looks like a normal military base.  Until you activate more consoles, I won't be able to tell you much more.\", \"12122211211112\");";

menu_options[1][1][0] = "Why should I look for consoles?";
menu_options[1][1][1] = "AddText(\" Davis: This place is more or less shut down, along with its computer systems.  If you turn more of them on, I can access them and get more information for you.  Right now, I don't have that much.\", \"12122211211112 1221212221\");";

menu_options[1][2][0] = "How can I get more ammo?";
menu_options[1][2][1] = "AddText(\" Davis: Just look around, there's got to be some left there.\", \"12122211211112        12\"); AddText(\" Leigh: Yeah, but what the hell do I do if I run out?\");  AddText(\" Davis: Umm... Run?\");AddText(\"\");";

menu_options[3][0][0] = "Where's the control room?";
menu_options[3][0][1] = "AddText(\" Davis: From the floor plans I have, it looks to be just ahead.  Shouldn't be too hard to find.\", \"111111  111112    211111\");";

menu_options[3][1][0] = "What about the door ahead?";
menu_options[3][1][1] = "AddText(\" Davis: What about it?  Do you need me to try and hack something?\", \"121   1111111122\");";

menu_options[3][2][0] = "What have you learned so far?";
menu_options[3][2][1] = "AddText(\" Davis: Not much more that you'd care about.  Just some of the computer system configurations of this place.  I should have something for you soon.\", \"1111212   1111222222111   1112111\");";


menu_options[4][0][0] = "Have you hacked this yet?";
menu_options[4][0][1] = "AddText(\" Davis:  You tell me, dumbass.\", \"11121\");";

menu_options[4][1][0] = "Do you actually do anything?";
menu_options[4][1][1] = "AddText(\" Davis:  Other than always save your ass?  Not really.\", \"11112  12\");";


menu_options[5][0][0] = "So what about this place?";
menu_options[5][0][1] = "AddText(\" Davis: Well, as I said before, it's a military base, particularly for weapons and defense research.  Might be able to get your hands on some fancy guns down there, but don't get too excited.\", \"1  1112 1121  2112112   1111121111211112\");";

menu_options[5][1][0] = "What's ahead?";
menu_options[5][1][1] = "AddText(\" Davis: Right now, just the same as what you saw before.  In the hangar area though there'll be a way opened up going down to the lower levels.\", \"11  12   11211111121211122\");";

menu_options[5][2][0] = "I'm running low on ammo here...";
menu_options[5][2][1] = "AddText(\" Davis: Hmm... can't say I can be of much help in that department.  There won't be that many reworks here, but there's always some coming out of the woodwork.  I know it goes against your nature here, but conserve the ammo you can and run.\", \"11  12   11211111121211122\");";


menu_options[7][0][0] = "Where to now?";
menu_options[7][0][1] = "AddText(\" Davis: Well, mainly just go down...  After you go down a bit, there'll be a point where you can go either left or right.  Going right will be a detour, but there's an ammo storage room there.  Going left will take you further down.\", \"2   2111    211111 211111112111  2111121112211  2111121\");";

menu_options[7][1][0] = "So have you read anything?";
menu_options[7][1][1] = "AddText(\" Davis: Hey hey, calm down.  It takes time to read massive piles of documents.  From what I've read, the kind of research this place did was mainly in nanotech.  Nanites didn't prove to be as practical as first hoped, so development switched over to research on 'sprites,' which I'm about to read into now.\", \"11 11  111112112  1111111211112121  21112111 122112121121111\");";




menu_options[8][0][0] = "Where am I now?";
menu_options[8][0][1] = "AddText(\" Davis: Hmm, looks like some kind of laboratory area.  Just keep going straight ahead.\", \"2  11111211  11121\");";

menu_options[8][1][0] = "Eyeballs, what the hell?!";
menu_options[8][1][1] = "AddText(\" Davis: Eyeball reworks?  Can't say I heard of that before...  Are you sure?\", \"22  1112112    111           1 1111  11111 121211211\");AddText(\" Leigh: Yeah, I'm damn sure.  They have a nasty sting.\");AddText(\" Davis: Hey, it's new to me, but if they don't move, you should be able to just avoid them right?\");";

menu_options[8][2][0] = "Figure out anything new?";
menu_options[8][2][1] = "AddText(\" Davis: Working on it here...\", \"2111\");";


menu_options[-2][0][0] = "What's this place?";
menu_options[-2][0][1] = "AddText(\" Davis: This is just a combat test range.  There's ammo to your left, and enemies to your right.\", \"2  11111211  11121\");";

menu_options[-2][1][0] = "How does this work?";
menu_options[-2][1][1] = "AddText(\" Davis: Simple, just get some ammo, and go right.  Survive the wave of reworks, and get more ammo and repeat.\", \"2  11111211  11121\");";

menu_options[-2][2][0] = "What weapons are available?";
menu_options[-2][2][1] = "AddText(\" Davis: When you get a weapon in the regular game, you'll be able to use it here as well.  Likewise though, new enemies you encounter there will start appearing here as well. \", \"2  11111211  11121\");";


var weap_texts = new Array(10);
for (i=0;i<10;i++)
{
	weap_texts[i] = new Object();
}

function SetupWeaponTexts()
{

weap_texts[0].name = "9mm Pistol";
weap_texts[0].text = " Davis: Your standard firearm.  Carries "+ammo_array[0].maxclip+" to a clip.  Not that strong against reworks, so aim for the head.  You'll have one hand free, so if you're in a pinch you can try throwing a grenade.";

weap_texts[1].name = "Magnum";
weap_texts[1].text = " Davis: Good old six shooter.  Carries "+ammo_array[2].maxclip+" to a load.  It has to be reloaded a lot, but it's more powerful than the 9mm and you can throw grenades while holding it.";

weap_texts[2].name = "Shotgun";
weap_texts[2].text = " Davis: The C.O.D.A.D Auto Shotgun.  Carries up to "+ammo_array[3].maxclip+" shells in the barrel itself if they are pumped in beforehand, allowing for a short automatic burst.  Its electronic firing system however allows for the ability to fire off all shells in the barrel at once, making a big hole in whatever it was aimed at.";

weap_texts[3].name = "Assault Rifle";
weap_texts[3].text = " Davis: FN SCAR-L Assault Rifle.  Fires off 5.56mm rounds with automatic burst, and "+ammo_array[4].maxclip+" rounds to a clip.  While effective itself, it also comes with an attached 40mm grenade launcher.";

weap_texts[4].name = "Rocket Launcher";
weap_texts[4].text = " Davis: Though mainly an anti-tank weapon, the rocket launcher is useful for clearing large groups of reworks.  The rockets come in clusters of four, and can either be fired together for a powerful blast, or can be fired successively to give a wider spread and push back tougher targets.";

weap_texts[5].name = "Railgun";
weap_texts[5].text = " Davis: The C.O.D.A.D Electromagnetic gun.  Carries "+ammo_array[7].maxclip+" to a clip.  The tiny but high velocity bullets will pass through pretty much anything, striking multiple targets.  If needed, the electronic firing system also allows all the bullets currently chambered to be fired in quick succession, delivering massive damage.";

weap_texts[6].name = "Shrapnel Gun";
weap_texts[6].text = " Davis: This prototype shrapnel gun is one bad boy.  It fires one huge slug at a time, destroying anything in its path.  It can break up the slug on firing into smaller bits of exploding shrapnel, which can be used to ricochet off walls and around corners."

weap_texts[7].name = "Obliterator";
weap_texts[7].text = " Davis: Top secret prototype.  Apparently blows up anything nearby that can be blown up, no aiming required.  Also can enable some kind of force field around the user, preventing any attacks from getting through... Hey, hey, settle down.  You can try it later.  Keep in mind though that there probably isn't going to be that much ammo for that thing around.";

weap_texts[8].name = "Chain Gun";
weap_texts[8].text = " Davis: A compact, six-barrelled rotary cannon, firing 20mm shells at 2000rpm.  Delivers massive damage against pretty much anything, but needs to be winded-up first.  If you're in a pinch, the alt mode will let you fire a few shells instantly...Man how can you even *LIFT* that thing?";

weap_texts[9].name = "The Sword";
weap_texts[9].text = " Davis: Yeah, I have no idea what this thing is.  Slices reworks to tiny, extremely bloody bits, and can even fire off some kind of wave beam.\n\nYeah, I don't know man.  You know more about it than I do.";
}