// IMPORTANT:  all HTML code should use single-quotes (') rather than double-quotes(")
//             within this file, so as to not disrupt the javascript.
//             (double-quotes are allowed, but make sure to use backslash,
//              i.e. \" instead of just ")

var version = "Prizm Viewer Documentation";
var lastUpdate = "October 26 2005";
var headerGraphic = "graphics/pzc_70doc_tab.gif";

var titleArr = new Array;
titleArr[0] = "Introduction";
titleArr[1] = "Installing the PrizmŽ Viewer";
titleArr[2] = "Uninstalling the PrizmŽ Viewer";
titleArr[3] = "Using the Toolbar";
titleArr[4] = "Using the Pop-up Menu";
titleArr[5] = "Setting Preferences";
titleArr[6] = "Printing";
titleArr[7] = "Sample Images";
titleArr[8] = "About the PrizmŽ Viewer";
titleArr[9] = "New Features";
titleArr[10] = "Customizing the Viewer";
titleArr[11] = "Creating HTML";
titleArr[12] = "Creating List Files";
titleArr[13] = "Frequently Asked Questions";
titleArr[14] = "Images and MIME Types";
titleArr[15] = "Server Facts";
titleArr[16] = "Making Annotations Work";
titleArr[17] = "Printing without Viewing";
titleArr[18] = "Batch Downloading";
titleArr[19] = "Web Server Extensions";
titleArr[20] = "Installation Errors";
titleArr[21] = "Technical Support";
titleArr[22] = "Contact Us";
titleArr[23] = "Pegasus'Web Site";

var filenames = new Array;
filenames[0] = "intro.htm";
filenames[1] = "install.htm";
filenames[2] = "uninstall.htm";
filenames[3] = "toolbar.htm";
filenames[4] = "menu.htm";
filenames[5] = "prefs1.htm";
filenames[6] = "print1.htm";
filenames[7] = "samples.htm";
filenames[8] = "about.htm";
filenames[9] = "new.htm";
filenames[10] = "custom-view.htm";
filenames[11] = "create-html.htm";
filenames[12] = "list-files.htm";
filenames[13] = "faq.htm";
filenames[14] = "mime-type.htm";
filenames[15] = "servers.htm";
filenames[16] = "annotate.htm";
filenames[17] = "print-wo.htm";
filenames[18] = "batch-downld.htm";
filenames[19] = "web-server.htm";
filenames[20] = "errors.htm";
filenames[21] = "http://www.pegasusimaging.com/generalinfo.htm";
filenames[22] = "http://www.pegasusimaging.com/contact.htm";
filenames[23] = "http://www.pegasusimaging.com/index.htm";

function HTMLhead(pagetitle){
  //use document.write to write head tags and info

  document.write("<HEAD>\n");
  document.write("<TITLE>" + version + " - " + pagetitle + "</TITLE>\n");
  document.write("<link href='style.css' rel='stylesheet' type='text/css'>");
  document.write("</HEAD>\n");

}//end function HTMLhead

function bodyheader(pagetitle){
  //uses document.write to generate header bar at top of page

  document.write("<TR BGCOLOR='#0810E7'>\n");
  document.write("<TD COLSPAN=3>\n<IMG SRC='graphics/pixel.gif' WIDTH=1 HEIGHT=3 ALIGN=BOTTOM>\n</TD>\n</TR>\n");
  document.write("<TR BGCOLOR='#E7E7FF'>\n");
  document.write("<TD WIDTH=200 VALIGN=TOP>\n<P><IMG BORDER=0 SRC='" + headerGraphic + "' WIDTH=200 HEIGHT=57></P>\n</TD>\n");
  document.write("<TD WIDTH=11 VALIGN=TOP></TD>\n");
  document.write("<TD><FONT SIZE='+2' FACE='Verdana, Arial, Helvetica, sans-serif'><B>\n");
  document.write(pagetitle + "</B></FONT>\n</TD>\n</TR>\n");
  document.write("<TR BGCOLOR='#FFFFFF'><TD COLSPAN=3>&nbsp;</TD></TR>\n");
}//end function bodyheader

function linkbar(pagetitle){
  //using the parameter, writes out the link bar,
  // coloring and NOT linking the current page
  document.write("<B>Using the PrizmŽ Viewer</B><br>\n");
  document.write("<FONT SIZE='-2' FACE='Verdana,Arial'>\n");

  var i = 0;


  while(i < 10){
    document.write("&nbsp;&nbsp;-");

    if(pagetitle == titleArr[i]){
      document.write("<FONT COLOR='#FF0000'><B>" + pagetitle + "</B></FONT><BR>\n");
    }
    else{
     document.write("<A CLASS='linkbar' HREF=" + filenames[i] + "><B>");
     document.write(titleArr[i] + "</B></A><BR>\n");
    }
    i = i + 1;
  }
  document.write("</FONT>\n");

  document.write("<B>Reference Information</B><br>\n");
  document.write("<FONT SIZE='-2' FACE='Verdana,Arial'>\n");

  while(i < 20){
    document.write("&nbsp;-");
    if(pagetitle == titleArr[i]){
      document.write("<FONT COLOR='#FF0000'><B>" + pagetitle + "</B></FONT><BR>\n");
    }
    else{
     document.write("<A CLASS='linkbar' HREF=" + filenames[i] + "><B>");
     document.write(titleArr[i] + "</B></A><BR>\n");
    }
    i = i + 1;
  }
  document.write("</FONT>\n");

  document.write("<B>Error Codes</B><br>\n");
  document.write("<FONT SIZE='-2' FACE='Verdana,Arial'>\n");

  while(i < 21){
    document.write("&nbsp;-");
    if(pagetitle == titleArr[i]){
      document.write("<FONT COLOR='#FF0000'><B>" + pagetitle + "</B></FONT><BR>\n");
    }
    else{
     document.write("<A CLASS='linkbar' HREF=" + filenames[i] + "><B>");
     document.write(titleArr[i] + "</B></A><BR>\n");
    }
    i = i + 1;
  }
  document.write("</FONT>\n");

document.write("<B>Online References</B><br>\n");
  document.write("<FONT SIZE='-2' FACE='Verdana,Arial'>\n");

  while(i < 24){
    document.write("&nbsp;-");
    if(pagetitle == titleArr[i]){
      document.write("<FONT COLOR='#FF0000'><B>" + pagetitle + "</B></FONT><BR>\n");
    }
    else{
     document.write("<A CLASS='linkbar' HREF=" + filenames[i] + "><B>");
     document.write(titleArr[i] + "</B></A><BR>\n");
    }
    i = i + 1;
  }
  document.write("</FONT>\n");

}//end function linkbar

function pageheader(pagetitle){
  //writes all HTML to page preceding content section.
  // NOTE: this function calls HTMLhead, bodyheader, and linkbar

  HTMLhead(pagetitle);

  document.write("<BODY BGCOLOR='#FFFFFF' VLINK='#444444'>\n");
  document.write("<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH='95%'>\n");

  bodyheader(pagetitle);

  //cell for link bar
  document.write("<TR><TD WIDTH=200 VALIGN=TOP>\n");
  document.write("<TABLE><TR><TD>\n");
  linkbar(pagetitle);
  document.write("</TD></TR></TABLE>\n");
  document.write("</TD>\n");

  //cell for vertical line
  document.write("<TD VALIGN=TOP BACKGROUND='graphics/vertical-line.gif'>&nbsp;</TD>\n");

  //beginning of cell for actual page content
  document.write("<TD VALIGN=TOP>\n");
  
}//end function pageheader

function footerdata(){
  // writes all text data (formatted in HTML) that belongs at the footer
  //  of HTML document.
  document.write("<FONT SIZE='-2' FACE='Arial'>Copyright 1997-2005, Pegasus Imaging Corporation.\n");
  document.write("All rights reserved.  Last update on " + lastUpdate + ".<BR>\n");
  document.write("<A HREF='about.htm'>The Prizm Viewer Software Copyright Notice\n");
  document.write("(click here)</A><BR>\n");
  
  document.write("<P><FONT SIZE='-2' FACE='Arial'>'IE' refers to Microsoft Internet\n");
  document.write("Explorer, which is a registered trademark of Microsoft Corporation.</FONT></P>\n");

}//end function footerdata

function pagefooter(){
  //writes post-content HTML to page.
  //NOTE:  this function calls footerdata

  document.write("</TD></TR>\n");
  document.write("<TR><TD COLSPAN=2>&nbsp;</TD>\n");
  document.write("<TD><HR SIZE=1 ALIGN=CENTER NOSHADE>\n");

  footerdata();

  document.write("</TD></TR></TABLE>\n</BODY>\n");
  
}//end function pagefooter