var extDIR = new Array( "/bin/",
                        "/home/",
                        "/home/aboutme/",
                        "/home/haiku/",
                        "/home/anime/",
                        "/home/files/" );

//////////////////////////////////////////////////////////////////////
// commands/programs

var extCMD = new Array( "/bin/hello_world",
                        "/bin/load_image" );

function _bin_hello_world()
{
  output("hello world!");
}

var _bin_load_image_var;
function _bin_load_image()
{
  var img = new Image();
  img.src = "noglass.jpg";
  img.onload = _bin_load_image_done;

  _bin_load_image_var = img;
}

function _bin_load_image_done()
{
  var x, y;
  var img = _bin_load_image_var;
  x = img.width;
  y = img.height;

  window.open(img.src, "image", "location=no,directories=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no,height=" + (y + 20) + ",width=" + (x + 20));

  _bin_load_image_var = null;
}

//////////////////////////////////////////////////////////////////////
// files go here

var extFILE = new Array( "/home/_index.txt",
                         "/home/_updates.txt",

                         "/home/aboutme/_index.txt",
                         "/home/aboutme/resume.txt",
                         "/home/aboutme/hobbies.txt",
                         "/home/aboutme/programming.txt",

                         "/home/haiku/_index.txt" );


/***************************************************************************
 * home / _index.txt                                                       *
 * - index and brief introduction to my site                               *
 ***************************************************************************/

var _home__index$txt = new Array(
">> Welcome! <<",
"",
"  Welcome to my web page. Although it may seem a bit odd to you, this site is",
"designed to emulate a unix shell console. It may mark me as a geek, but who",
"really cares. Enjoy!",
"",
"  - aboutme/  - contains information about me",
"  - anime/    - anime stuff",
"  - haiku/    - some poetry",
"  - rants/    - rants and stuff",
"" );

/***************************************************************************
 * home / _updates.txt                                                     *
 * - listing of the last few updates to content                            *
 ***************************************************************************/

var _home__updates$txt = new Array(
">> Updates <<",
"",
"  - 2001.12.08:0248 - Wow. When I start typing, I pretty much end up",
"                      ranting. Lots of text.",
"  - 2001.12.08:0021 - Filling of content",
"  - 2001.12.06:1100 - Initial design of site and various fleshing-out",
"" );

/***************************************************************************
 * home / aboutme / _index.txt                                             *
 * - index to the about me section                                         *
 ***************************************************************************/

var _home_aboutme__index$txt = new Array(
">> About Me <<",
"",
"  - hobbies.txt     - my hobbies",
"  - programming.txt - recreational development",
"  - resume.txt      - my resume",
"" );

/***************************************************************************
 * home / aboutme / resume.txt                                             *
 * - my resume                                                             *
 ***************************************************************************/

var _home_aboutme_resume$txt = new Array(
">> About Me - Resume <<",
"",
" [[ to be inputted at a future date ]] ",
"" );

/***************************************************************************
 * home / aboutme / hobbies.txt                                            *
 * - my hobbies                                                            *
 ***************************************************************************/

var _home_aboutme_hobbies$txt = new Array(
">> About Me - My Hobbies <<",
"",
"  I have a wide variety of hobbies and activities, mostly centered on",
"computers and electronics. I'm a techie; what else could you expect?",
"",
"  At the present, I'm mostly fiddling with video. Adobe Premiere, Adobe",
"After Effects, and VirtualDub. All very useful tools, each with their own",
"specialities. The DivX codec (http://www.divx.com) is a very nice MPEG-4",
"implementation, which has come a long way since the original DivX 3.11a",
"hack. I look forward to the video format that vorbis is making. If it's",
"anything like what they've done with the ogg vorbis audio format, it'll be",
"great. In relation with my other big hobby, anime, is Anime Music Videos.",
"",
"  I've only really started in the whole design and creation of AMVs, mostly",
"as a tool for learning more about video editing and timing. Not an easy",
"process, as you _really_ need to know your music and anime to even start.",
"As music isn't something I'm very into (it's mostly just background for me",
"to help me work and to ease the silence) but some people have really pushed",
"my horizons in what is out there (Thanks Donovan :).",
"",
"  Now anime (aka Japanese Animation, from the French term) has been one of",
"my hobbies since... before High School. From watching Doremon (or in",
"Mandarin, shio ding dong) and the original DragonBall on Taiwanese",
"television, and Robotech and the assorted other 'Americanized' anime in my",
"early childhood. In my upper-education days, I found the classic Studio",
"Ghibli works, and from then on I've been hooked. (Damn you Pete! :)",
"",
"  I recently cataloged my anime genre likes, and it seems I've broadened",
"a lot since then. The usual mecha and action (all part of the shonen group",
"applied, but as the years went on, more and more of the shoujo group came",
"into my viewing habits. Dramas, romances, and others. Now, I usually just",
"watch for the content and story, instead of action and 'flashiness'.",
"",
"  Let's see, what else do I do?",
"",
"  As a Computer Scientist (and Electrical Engineer), I'm much into the whole",
"programming and Open Source thing. Recreational Programming is a large part",
"of my down-time, when I find motivation (and the television doesn't distract",
"me). More about programming is in the 'programming.txt' file. I like to",
"tinker around with new technologies, and do things with stuff that no one",
"has done before (hence this web site). I can't seem to stick with a project",
"long enough to finish one, it seems. That's the life of a tinker.",
"",
"Well, I've run out of steam. More later.... maybe.",
"" );

/***************************************************************************
 * home / aboutme / programming.txt                                        *
 * - my programming projects                                               *
 ***************************************************************************/

var _home_aboutme_programming$txt = new Array(
">> About Me - Programming <<",
"",
"  As a Computer Science graduate from Carnegie Mellon University, if I",
"didn't have programming projects for recreation, some people wouldn't be",
"very happy with me. :p",
"",
"  I've collaborated with many people on projects, gave advice and comments",
"on others, and started a few on my own. Most of the self-motivated projects",
"usually end up being put on hold, picked up later, or even forgotten",
"completely. Many of my friends joke that I have hundreds of these floating",
"around on various CDs, HDs, disks, web sites, and e-mails. I can't begin to",
"start trying to remember what has been put on hold.",
"",
"  Here's a list of stuff I can think of, and if possible a URL where you",
"can go and take a look, use it, or even contribute some code. If it's just",
"a name and description, just ask and I may even send you whatever design",
"specs and/or code I can find. Neglected code always needs a good home.",
"",
"  - Aetheric Internet Communication :",
"     A Java design of an instant messenger, which was originally thought",
"      up back when ICQ first started up. I actually started coding a few",
"      months ago just so I could get back into Java, and this time actually",
"      learn it. That, and the Eclipse IDE came about and was pretty cool.",
"",
"  - Compass : http://compass.sourceforge.net/",
"     A pager (virtual window manager) for Windows 95/98/NT/2k/ME/XP/etc.",
"      Very light-weight, and eventually will be theme-able.",
"",
"  - mp3srv :",
"     A C (or C++) based MP3 jukebox, originally designed to run with mySQL",
"      and the XAudio libraries. It's mostly a spec, as I never got around to",
"      doing much coding. But from ideas solicited from friends, the biggest",
"      feature would be the playlist/queue. Give it your mood, and it'll play",
"      accordingly. Or give it a pattern (songs between 1990 and 1992 that",
"      are a happy, bouncy mood). Stuff like that.",
"",
"  - Parasite Eve PSX savegame format :",
"     More of a 'learning process' than anything, this project was started",
"      to learn about how PSX savegames were stored, and how games were",
"      stored. Parasite Eve was just the handy game around.",
"",
"  - Shadowrun Character Generator :",
"     XML-based character generator, in which all the data (skills, weapons,",
"      spells, etc.) are stored in XML documents. Eventually, if I can figure",
"      out how to work it out, even rules will be stored, creating a Generic",
"      Character Generator, and maybe even a network-based pencil-and-paper",
"      RPG application so people no longer need to be in the same location",
"      for a good game.",
"",
"  - Misc Web Stuff :",
"     There are tons of this stuff floating around backed up, and on the",
"      web. This site, my original XML-web, a lot of Javascript from when",
"      IE4 first came out, among others... One that comes to mind was if IE4's",
"      DHTML implementation was powerful enough to create 'toolbars' in web",
"      pages. Well, I got the basic (and some additional) functionality done",
"      enough to say, yes it was. Quite amazing back then.",
"     With all the nifty-fangled-overused Flash and graphical pages out now",
"      I have pretty much given up the whole web thing. Back when I was using",
"      the original Mozilla as a web browser, and everyone coded HTML in a",
"      plain-text editor, the web was new and cool. If enough people ask,",
"      I'll dig up all my old projects and post 'em up somewhere.",
"",
"  I know I've left out many projects. Some are intentionally left out as",
"they're not really mine, or just not worth it. Enough ranting from me... :)",
"" );
