<!--
// Navigational Left Bar For All Pages
// Displayed via in-line JavaScript
// Dynamically placed red arrow follows user through the
// different pages.
// A "Next" button also dynamically links to the next page.
// The last page doesn't include a "Next" button.

var target = -1;

function page(url, desc) {
  this.url = url;
  this.desc = desc;
}

var pages = new Array;
pages[0] = new page("index", "About RealPlayer");
pages[1] = new page("sysreq", "System Requirements");
pages[2] = new page("uninstall", "Uninstall");
pages[3] = new page("download", "Download");
pages[4] = new page("install", "Install the Player");
pages[5] = new page("test", "Test the Player");
pages[6] = new page("faq", "FAQ");

for (var x = 0; x < pages.length; x++) {
  if (location.href.indexOf(pages[x].url) > -1) { target = x; break; }
}

// Cludge.
// Sometimes, index.html is assumed and not part of the URL.
// If all other matches fail, we must assume index.html.

if (target < 0) target = 0;

document.writeln('<TABLE WIDTH=100% BORDER=0 CELLPADDING=10 CELLSPACING=3><TR><TD class="sidebar">');
document.writeln('<FONT COLOR="#FFFFFF">RealPlayer Tasks:</font><br><br>');
for (x = 0; x < pages.length; x++) {
  if (target == x) {
    document.write('<IMG SRC="images/arrow-closed.gif" WIDTH=11 HEIGHT=11 BORDER=0>');
  } else {
    document.write('<IMG SRC="images/space.gif" WIDTH=11 HEIGHT=11" BORDER=0>');
  }
  document.writeln('<A HREF="' + pages[x].url + '.html">');
  document.writeln('<FONT COLOR="#FFFFFF">');
  document.writeln('<B>' + pages[x].desc + '</B></FONT></A><BR>');
}

if (target < pages.length-1) {
  document.write('<BR><IMG SRC="images/space.gif" WIDTH=11 HEIGHT=11" BORDER=0>');
  document.write('<A HREF="' + pages[target+1].url + '.html">');
  document.write('<FONT COLOR="#FFFFFF"><B>Next</B></FONT>');
  document.write('<IMG SRC="images/arrow-closed.gif" WIDTH=11 HEIGHT=11 BORDER=0>');
  document.write('<IMG SRC="images/arrow-closed.gif" WIDTH=11 HEIGHT=11 BORDER=0></A>');
}
document.writeln('</TD></TR></TABLE>');
//-->
