function borders(path) 
{ document.write( " <div id='container'>");
  document.write( "  <div id='header'><a name='top'></a>");
  document.write( "  <center>");
  document.write( "  <table width='800' border='0'>");
  document.write( "   <tr><td>");
  document.write( "     <img src='"+path+"images/maintitle.gif' width='353' height='19'");
  document.write( "   </td>");
  document.write( "   <td><h3>");
  document.write( "   <ul>");
  document.write( "    <li><a href='"+path+"c-home.html'>Home</a></li>");
  document.write( "    <li><a href='"+path+"c-faqs.html'>FAQs</a></li>");
  document.write( "    <li><a href='"+path+"c-library.html'>Library</a></li>");
  document.write( "    <li><a href='"+path+"c-dvd.html'>DVD</a></li>");
  document.write( "   </ul>");
  document.write( "  </h3></td>");
  document.write( "  </tr></table>");
  document.write( "  </div>");
  document.write( "  </center>");
  document.write( "  <br clear='all'/>");
}

// ========================================================================================================================

function closesite(path) 
{ 
  var now = new Date();
  var year = now.getYear(); 
  document.write( "<div id='footer' width='100%' style='float: bottom'>");
  document.write( "<p align='left'>");
  document.write( "<span>");
  document.write( "<a href='"+path+"c-copyright.html'>");
  document.write("(c) 2001-");
  document.write("2011");
  document.write(" Acorn Electron World</a></span>");
  document.write("<a href='"+path+"c-home.html'>Home</a>");
  document.write(" | <a href='"+path+"c-faqs.html'>FAQs</a>");
  document.write(" | <a href='"+path+"c-library.html'>Library</a>");
  document.write(" | <a href='"+path+"c-dvd.html'>DVD</a>");
  document.write( "</div>");
  document.write( "</div>");
}


// ========================================================================================================================

function header (  cat,
                   title,
                   fulltitle,
                   fullsofthouse,
                   info,
                   mainlypublishes,
                   titlesreleased,
                   titlesavailable,
                   status) {

  document.write( " <div id='prof'>");
  document.write( " <table><tr valign='top'><td>");
  document.write( " <div style='width:162px; height:160px; float:left; margin: 0;");
  document.write( "             background-image: url(../../logos/"+cat+".jpg); ");
  document.write( "             background-repeat: no-repeat; ");
  document.write( "             background-position: center; ");
  document.write( "             padding:0px 0px 0px 0px'>");
  document.write( " </div>");
  document.write( " </td>");
  document.write( " <td>");
  document.write( " <p style='float: left'><center>");
  document.write( " <h6>"+fullsofthouse+"</h6>");
  document.write( " <h6 style='font-size: 100%'>"+info+"</h6>");
  document.write( " <table width='100%' border='0' style='display: inline'>");
  document.write( "  <tr>");
  document.write( "   <td>Mainly publishes:</td> ");
  document.write( "   <td align='right'>"+mainlypublishes+"</td>");
  document.write( "  </tr><tr valign='top'>");
  document.write( "   <td>Best Known Game:</td> ");
  document.write( "   <td align='right'><b>"+fulltitle+"</b></td>");
  document.write( "  </tr><tr valign='top'>");
  document.write( "   <td>Number of titles released by this publisher:</td> ");
  document.write( "   <td align='right'>"+titlesreleased+"</td>");
  document.write( "  </tr><tr valign='top'>");
  document.write( "   <td>Number of titles currently available:</td> ");
  document.write( "   <td align='right'>"+titlesavailable+"</td>");
  document.write( "  </tr><tr valign='top'>");
  document.write( "   <td>Archive Status:</td> ");
  document.write( "   <td align='right'>"+status+"</td>");
  document.write( "  </tr>");
  document.write( " </table>");
  document.write( " </center></p>");
  document.write( " </td>");
  document.write( " <td>");
  document.write( " <div style='width:162px; height:160px; float: right; color: white; margin: 3px 3px 3px 3px;");
  document.write( "             background-image: url(../../loads/"+cat+"/n-"+title+".gif); ");
  document.write( "             background-repeat: no-repeat; ");
  document.write( "             background-position: center; ");
  document.write( "             padding:0px 0px 0px 0px'>");
  document.write( " </div>");
  document.write( " </td>");
  document.write( "</tr>");
  document.write( "</table>");
  document.write( "</div>");
  }

// ========================================================================================================================

function book2( abbLibrary,
                fullLibrary,
                abbName,
                fullName,
                bookType,
                YearRel,
                Author,
                isbn,
                olref,
                otherInfo
                        )
{

  var infoArray = otherInfo.split( "|");

  document.write( "<div id='prof'>");
  document.write( "<a name='" + abbName + "'></a>");
  document.write( "<table width='100%' border='0' style='font-family: Arial; font-size: 12; color: white;'>");
  document.write( " <tr>");
  document.write( "  <td rowspan='10' width='170'>");
  document.write( "   <div style='width:162px; height:160px; float:left; margin: 0;");
  document.write( "             background-image: url(../../covs/"+abbLibrary+"/sc-"+abbName+".jpg); ");
  document.write( "             background-repeat: no-repeat; ");
  document.write( "             background-position: center'>");
  document.write( "   </div>");
  document.write( "  </td>");
  document.write( "<td colspan='2' align='center'><b style='font-size: 200%'>" + fullName + "</b></td>");
  document.write( "</tr><tr valign='top'>");
  document.write( "  <td width='170'><i>Book Type:</i></td>");
  document.write( "  <td width='*'>" + bookType + "</td>");
  document.write( "</tr><tr valign='top'>");

  // check whether 'Author:' or 'Authors:' needs to be displayed

  var noofAuthors = 1;                                 
  var ampersandFound = Author.indexOf( "&");
  if (ampersandFound != -1) 
    { noofAuthors = 2;
    } else { noofAuthors = 1;
           }
  document.write( "  <td><i>Author");
  if (noofAuthors == 2) {
    document.write( "s");
    }
  document.write( ":</i></td>");

  document.write( "  <td>" + Author + "</td>");
  document.write( "</tr><tr valign='top'>");
  document.write( "  <td><i>Publisher:</i></td>");
  document.write( "  <td>" + fullLibrary + "</td>");
  document.write( "</tr><tr valign='top'>");
  document.write( "  <td><i>Release Information:</i></td>");
  document.write( "  <td>" + YearRel + ": " + fullName + ", " + fullLibrary + ", &#163;5.95</TD>");
  document.write( "</tr><tr valign='top'>");
  document.write( "  <td><i>ISBN (If Available):</i></td>");
  document.write( "  <td>");
  document.write( "<a style='color: white;' href='http://openlibrary.org/works/" + olref + "/' target='_top'>" + isbn + "</td>");
  document.write( "</tr><tr valign='top'>");
  document.write( "  <td><i>Other Information:</i></td>");
  document.write( "  <td>");
  for (x in infoArray) 
  { if (infoArray[x] == "Book (PDF Format)")
      { document.write("<a href='../../books/"+abbLibrary+"/bo-"+abbName+".zip'");
        document.write(">Book (PDF Format)</a><br/>");
      } else 
  { if (infoArray[x] == "Book (Word Format)")
      { document.write("<a href='../../books/"+abbLibrary+"/bo-"+abbName+".zip'");
        document.write(">Book (Word Format)</a><br/>");
      } else { if (infoArray[x] == "Cover Art")

              { document.write("");

//            These lines, when uncommented, add links to Cover Art if applicable

//            { document.write("<a href='../../covl/"+abbLibrary+"/lc-"+abbName+".jpg'");
//              document.write(">Large Cover Art</a><br/>");

              } else { if (infoArray[x] == "Review (EU)")
                      { document.write("<a href='../../mags/eu/revs/"+abbLibrary+"/r-"+abbName+".html'");
                        document.write(">Review (EU)</a><br/>");
                      } else { if (infoArray[x] == "Review (EUG)")
                                { document.write("<a href='../../eug/revs/"+abbLibrary+"/r-"+abbName+".html'");
                                  document.write(">Review (EUG)</a><br/>");
                                } else { if (infoArray[x] == "Review (AAB)")
                                        { document.write("<a href='../../mags/aab/revs/"+abbLibrary+"/r-"+abbName+".html'");
                                          document.write(">Review (A&amp;B Computing)</a><br/>");
                                       } else { if (infoArray[x] == "Review (AU)")
                                               { document.write("<a href='../../mags/au/revs/"+abbLibrary+"/r-"+abbName+".html'");
                                                 document.write(">Review (AU)</a><br/>");
                                               } else { document.write(infoArray[x]+"<br/>"); 
                                                      }
                                              }
                                       }
                     }
             }
    }
    }
    }
  document.write( "</tr>");
  document.write( "</table>");
  document.write( "</div>");
  document.write( "<br clear='right'/>");
  document.write( "<br clear='right'/>");
}

// =========================================================================================================================


function book3( abbLibrary,
                fullLibrary,
                abbName,
                fullName,
                bookType,
                YearRel,
                Author,
                isbn,
                lang,
                olref,
                price,
                suitableFor,
                otherInfo
                        )
{

  var infoArray = otherInfo.split( "|");

  document.write("<div id='prof'>");
  document.write("<a name='" + abbName + "'></a>");
  document.write("<table width='100%' ");
  document.write("       cellpadding='0'");
  document.write("       cellspacing='0'");
  document.write("       border='0' style='font-family: Arial; font-size: 10pt; color: white;'>");
  document.write(" <tr>");
  document.write("  <td width='150' rowspan='2'>");
  document.write("   <div style='width:150px; height:160px; float:left; margin: 0;");
  document.write("             background-image: url(../../covs/"+abbLibrary+"/sc-" + abbName + ".jpg); ");
  document.write("             background-repeat: no-repeat; ");
  document.write("             background-position: center'>");
  document.write("   </div>");
  document.write("  </td>");
  document.write("  <td width='*'>");
  document.write("   <div style='text-align: center; font-size: 145%'>");
  document.write("    <b>"+fullName+"</b>");
  document.write("   </div>");
  document.write("  </td>");
  document.write("  <td width='150' rowspan='2' style='font-size: 8pt;'>");
  document.write("   <table width='100%'>");

  for (x in infoArray) 
  { if (infoArray[x] == "Book (Scan)")
      { document.write("    <tr valign='middle'>");
        document.write("     <td align='center'>");
        document.write("     <a href='../../c-dvd.html#book'>");
        document.write("     <img src='../../icns/scan.jpg' width='54' height='50' ");
        document.write("      border='0' alt='Scanned Text Version'></a>");
        document.write("     </td>");
        document.write("    </tr>");
      }	else 
       { if (infoArray[x] == "Book (PDF)")
        {   document.write("    <tr valign='middle'>");
            document.write("     <td align='center'>");
            document.write("     <a href='../../books/pdfs/" + abbLibrary + "/bo-" + abbName + ".zip'>");
            document.write("     <img src='../../icns/pdf.jpg' width='54' height='50' ");
            document.write("      border='0' alt='PDF Version'></a>");
            document.write("     </td>");
            document.write("    </tr>");
        } else
          { if (infoArray[x] == "Book (Word)")
            {  document.write("    <tr valign='middle'>");
               document.write("     <td align='center'>");
               document.write("     <a href='../../books/words/" + abbLibrary + "/bo-" + abbName + ".zip'>");
               document.write("     <img src='../../icns/word.jpg' width='54' height='50' ");
               document.write("      border='0' alt='Microsoft Word Version'></a>");
               document.write("     </td>");
               document.write("    </tr>");
            }
          }
    }
  }
  document.write("   </table>");
  document.write("  </td>");
  document.write("</tr><tr valign='top'>");
  document.write("  <td align='center'><div style='text-align: left; width: 275px; border: thin solid; padding: 4px;'><i>Information:</i>");
  document.write("      <br/>");
  document.write("      <a href='../../books/info/" + abbLibrary + "/i-" + abbName + ".html'>");
  document.write("      <img src='../../icns/info.gif'");
  document.write("           width='50' height='50' border='0'");
  document.write("           alt='Blurb (Back Cover)/Information Regarding This Book'></a>");

  for (x in infoArray) 
  { if (infoArray[x] == "Review (AAB)")
      { document.write("      <a href='../../mags/aab/revs/" + abbLibrary + "/r-" + abbName + ".html'>");
        document.write("      <img src='../../icns/aab.gif'");
        document.write("           width='50' height='50' border='0'");
        document.write("           alt='A&amp;B Computing Review'></a>");
      } else { if (infoArray[x] == "Review (AU)")
               { document.write("      <a href='../../mags/au/revs/" + abbLibrary + "/r-" + abbName + ".html'>");
                 document.write("      <img src='../../icns/au.gif'");
                 document.write("           width='50' height='50' border='0'");
                 document.write("           alt='Acorn User Review'></a>");
               } else { if (infoArray[x] == "Review (EU)")
                        { document.write("      <a href='../../mags/eu/revs/" + abbLibrary + "/r-" + abbName + ".html'>");
                          document.write("      <img src='../../icns/eu_rev.gif'");
                          document.write("           width='50' height='50' border='0'");
                          document.write("           alt='Electon User Review'></a>");
                        } else { if (infoArray[x] == "Review (EUG)")
                                 { document.write("      <a href='../../eug/revs/" + abbLibrary + "/r-" + abbName + ".html'>");
                                   document.write("      <img src='../../icns/eug_rev.gif'");
                                   document.write("           width='50' height='50' border='0'");
                                   document.write("           alt='EUG Review'></a>");
                                 }
                               }
                      }
             
             }
  }

  document.write("  </div></td>");
  document.write("</tr>");
  document.write("</table>");
  document.write("<table width='100%' ");
  document.write("       cellpadding='0'");
  document.write("       cellspacing='0'");
  document.write("       border='0' style='font-family: Arial; font-size: 10pt; color: white;'>");
  document.write(" <tr valign='top'>");
  document.write("  <td width='280'>");
  document.write("  <i>Book Type:</i>");
  document.write("  </td>");
  document.write("  <td width='*'>");
  document.write("  <i>Language:</i>");
  document.write("  </td>");
  document.write("  <td width='220'>");
  document.write("  <i>Suitable For Use With:</i> ");
  document.write("  </td>");
  document.write(" </tr>");
  document.write(" <tr valign='top'>");
  document.write("  <td><div style='margin-right: 4px;'>");
  document.write(bookType);
  document.write("  </div></td>");
  document.write("  <td>");
  document.write(lang);
  document.write("  </td>");
  document.write("  <td>");
  document.write(suitableFor);
  document.write("  </td>");
  document.write(" </tr><tr valign='top'>");
  document.write("  <td colspan='2'>&nbsp;</td>");
  document.write(" </tr><tr valign='top'>");
  document.write("  <td>");
  document.write("  <i>Book Author");

  // check whether 'Author:' or 'Authors:' needs to be displayed

  var noofAuthors = 1;                                 
  var ampersandFound = Author.indexOf( "&");
  if (ampersandFound != -1) 
    { noofAuthors = 2;
    } else { noofAuthors = 1;
           }

  if (noofAuthors == 2) 
    {
       document.write( "s");
    }

  document.write(":</i></td>");
  document.write("  <td>");
  document.write("  <i>ISBN:</i>");
  document.write("  </td>");
  document.write("  <td>");
  document.write("  <i>Other Links:</i>");
  document.write("  </td>");
  document.write(" </tr>");
  document.write(" <tr valign='top'>");
  document.write("  <td>");


  document.write(Author);
  document.write("  </td>");
  document.write("  <td>");
  document.write( isbn );
  document.write("  </td>");
  document.write("  <td rowspan='5'>");

  for (x in infoArray) 
  {  if (infoArray[x] != "Book (Scan)")
   {  if (infoArray[x] != "Book (PDF)")
    {  if (infoArray[x] != "Book (Word)")
     {  if (infoArray[x] != "Review (AU)")
      {  if (infoArray[x] != "Review (AAB)")
       {  if (infoArray[x] != "Review (EU)")
        {  if (infoArray[x] != "Review (EUG)")
         {  if (infoArray[x] == "Cover Art")
          {  document.write("  <a href='../../covl/" + abbLibrary + "/lc-" + abbName + ".jpg' target='_new'>");
             document.write("  Large Cover Art</a><br/>");
          } else { document.write(infoArray[x]+"<br/>");

                 }
         }
        }
       }
      }
     }
    }
   }
  }

  document.write("  </td>");
  document.write(" </tr><tr valign='top'>");
  document.write("  <td colspan='2'>&nbsp;</td>");
  document.write(" </tr><tr valign='top'>");
  document.write("  <td>");
  document.write("  <i>Book Information:</i>");
  document.write("  </td>");
  document.write("  <td>");
  document.write("  <i>Open Library:</i>");
  document.write("  </td>");
  document.write(" </tr>");
  document.write(" <tr valign='top'>");
  document.write("  <td><div style='margin-right: 4px;'>");
  document.write(YearRel + ": " + fullName + ", " + fullLibrary + ", &#163;" + price);
  document.write("  </div></td>");
  document.write("  <td>");
  document.write("  <a style='color: white;' ");
  document.write("     href='http://openlibrary.org/works/" + olref + "/' ");
  document.write("     target='_top'>");
  document.write( olref );
  document.write("  </td>");
  document.write("</tr>");
  document.write("</table>");
  document.write("</div>");
  document.write("<br clear='right'/>");
  document.write("<br clear='right'/>");

}

// =========================================================================================================================

function tabulatE( caT,
                   tableColor,              // tableColor is no longer used as a TableColor but whether Alert displayed
                   imageExt,
                   abbName,                 // displays tabulated information with links to areas of web site
                   fullName, 
                   softwareHouse, 
                   gameAlias,
                   gameType, 
                   Author, 
                   imageWidth, 
                   imageHeight, 
                   singLinks,
                   compLinks,
                   tapeSpec,
                   discSpec,
                   discVersions,
                   gommc,
                   otherInfo) {
                   
  var nonImage = "../no_image.gif";

  var folder;                                 // check whether softwareHouse needs to be altered to correct folder name
  folder = softwareHouse.toLowerCase();

  if (gommc == "FC") 
    { gommc = "Fully Compatible"; }

  var discArray = discVersions.split( "|");
  var infoArray = otherInfo.split( "|");
  var singReleases = singLinks.split( "|");
  var compReleases = compLinks.split( "|");

  document.write( " <br clear='right'/>");
  document.write( " <br clear='right'/>");
  document.write( " <a name='"+abbName+"'>");
  document.write( " <div id='prof'>");
  document.write( " <div style='width:162px; height:130px; float:left; margin: 6px 6px 6px 6px;");
  document.write( "             font-size: 80%; ");
  document.write( "             {background: #000000 url(../../loads/"+folder+"/n-"+abbName+".gif) no-repeat center top}; ");
  document.write( "             padding:0px 0px 0px 0px'>");
  document.write( "&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>");
  document.write( "<table border='0'><tr valign='top'>");

  document.write( " <td>Game Type(s):<br/>"+gameType+"</td>");
  document.write( "</tr><tr valign='top'>");

  // check whether 'Author:' or 'Authors:' needs to be displayed
  var noofAuthors = "1";                                 
  var ampersandFound = Author.indexOf( "&");
  if (ampersandFound != -1) 
    { noofAuthors = 2;
    } else { noofAuthors = 1;
           }
  document.write( " <td>Game Author");
  if (noofAuthors == 2) {
    document.write( "s");
    }
  document.write( ":<br/>"+Author+"</td>");
  document.write( "</tr><tr>");
  document.write( " <td>Release Information:<br/>");
  var enTries = 0;                                            // This variable adds a break appropriately if necessary
  for (x in singReleases) {
     if (enTries > 0) { document.write( "<br/>"); }  
     document.write( singReleases[x]);
     enTries++;
    }
  document.write( "&nbsp;</td>");
  document.write( "</tr>");                                                                 // End of Release Information
  document.write( "</tr></table>");
  document.write( " </div>");
  document.write( " <div style='width:162px; height:130px; float: right; color: white; margin: 6px 6px 6px 6px;");
  document.write( "             font-size: 80%; ");
  document.write( "             {background: #000000 url(../../ills/"+folder+"/n-"+abbName+"b.gif) no-repeat center top}; ");
  document.write( "             padding:0px 0px 0px 0px'>");
  document.write( "&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>");
  document.write( "<table><tr valign='top'>");

  var compilation = fullName.indexOf( "c");
    if (compilation != -1) 
      { nameLength = (fullName.length - 1);
        fullName = fullName.substring( 0,nameLength); }

  document.write( "  <td>Compilation ");
    if (compilation == -1) {
    document.write( "Release(s)");
    } else {
    document.write( "Comprises");
    }
  document.write( ":<br/>");

  var enTries = 0;                                            // This variable adds a break appropriately if necessary
  for (x in compReleases) {
     if (enTries > 0) { document.write( "<br/>"); }  
     document.write( compReleases[x]);
     enTries++;
    }
  document.write( "&nbsp;</td>");
  document.write( "</tr>");
  document.write( "<tr><td>Other Links:<br/>");

  // Should Links To Anything Else Appear?

  for (x in infoArray) 
    { if (infoArray[x] != "Review (EU)") 
      { if (infoArray[x] != "Review (EUG)") 
       { if (infoArray[x] != "Review (Impact)") 
        { if (infoArray[x] != "Solution (EU)") 
          { if (infoArray[x] != "Solution (EUG)") 
                 { if (infoArray[x] == "Cover Art")
                     { document.write("<a href='../../covl/"+folder+"/lc-"+abbName+".jpg'");
                       document.write(" target='_top'>Large Cover Art</a><br/>");
                     } else  { if (infoArray[x] == "Screenshots")
                                { document.write("Screenshots:");
                                  document.write("<a href='../../loads/"+folder+"/s-"+abbName+".gif'>1</a>, ");
                                  document.write("<a href='../../ills/"+folder+"/s-"+abbName+"a.gif'>2</a>, ");
                                  document.write("<a href='../../ills/"+folder+"/s-"+abbName+"b.gif'>3</a><br/>");
                                } 
                                else { document.write(infoArray[x]+"<br/>"); 
                                     }
                             }
                 }
          }
        }
       }
      }
    }

  document.write( "</td></tr></table>");
  document.write( " </div>");
  document.write( " <div style='margin-top: 10px; width:300; ");
  document.write( "             height:100px; height:80px; ");
  document.write( "             {background: #000000 url(../../titles/"+folder+"/t-"+abbName+".gif) no-repeat center center}; ");
  document.write( "             padding:0px 0px 0px 0px'>");
  document.write( " </div>");
  document.write( " <div style='margin-top: 10px; width:300; ");
  document.write( "             height:100px; height:80px; text-align: left;");
  document.write( "             padding:0px 0px 0px 0px; color: #white'>");
  document.write( " <div id='grayarea'>");
  document.write( " Information:<br/>");
  if (tableColor != "green")
    { document.write( "      <a href='../../c-alert.html'>");
      document.write( "      <img src='../../icns/alert.gif' ");
      document.write( "      width='50' height='50' border='0' alt='This game is currently known about but an original copy of it is missing from our archives'></a>");
    }

  // Should A Link To Cover Art Appear?

  if (imageExt == "img") 
  { document.write( "      <a href='../../covl/"+caT+"/sc-"+abbName+".jpg' target='_new'>");
    document.write( "      <img src='../../covs/"+caT+"/t-"+abbName+".gif' ");
    document.write( "      width='50' height='50' border='0' alt='Box Cover Art - Further cover art may be available by following links under Release Info'></a>");
  }

  // Should A Link To Instructions Appear?

  var noIns = fullName.indexOf( "#");
  if (noIns != -1) {
    nameLength = (fullName.length - 1);
    fullName = fullName.substring( 0,nameLength);
    }
  if (noIns == -1) {
    document.write( "<a href='../../info/" + folder + "/i-" + abbName + ".html'>"); 
    document.write( "      <img src='../../icns/info.gif' ");
    document.write( "      width='50' height='50' border='0' alt='Playing Instructions &amp; Game Controls'></a>");
    }

  // Should Links To Anything Else Appear?

  for (x in infoArray) 
    { if (infoArray[x] == "Review (EU)")  
     { document.write( "      <a href='../../mags/eu/revs/" + folder+ "/r-" +abbName+ ".html'>");  
       document.write( "      <img src='../../icns/eu_rev.gif' ");
       document.write( "      width='50' height='50' border='0' alt='Review by Electron User'></a>"); 
     }
    else 
      { if (infoArray[x] == "Review (EUG)") 
        { document.write( "      <a href='../../eug/revs/" + folder+ "/r-" +abbName+".html'>");
          document.write( "      <img src='../../icns/eug_rev.gif' ");
          document.write( "      width='50' height='50' border='0' alt='Review by EUG'></a>");
        }
      else 
        { if (infoArray[x] == "Review (Impact)")  
          { document.write( "      <a href='../../impact/revs/" + folder+ "/r-" +abbName+".html'>");
            document.write( "      <img src='../../icns/impact.gif' "); 
            document.write( "      width='50' height='50' border='0' alt='Review by Impact Games Club'></a>");
          }
        else 
          { if (infoArray[x] == "Solution (EU)") 
            { document.write( "      <a href='../../eu/sols/" + folder+ "/s-" +abbName+".html'>");
              document.write( "      <img src='../../icns/solution.gif' ");
              document.write( "      width='50' height='50' border='0' alt='Solution by Electron User'></a>");
            }
          else { if (infoArray[x] == "Solution (EUG)")  
                 { document.write( "      <a href='../../eug/sols/" + folder+ "/s-" +abbName+".html'>");
                   document.write( "      <img src='../../icns/solution.gif' ");
                   document.write( "      width='50' height='50' border='0' alt='Solution by EUG'></a>");
                 }
               }
          }
        } 
      }
    }
  document.write( "  </li>");
  document.write( " </ul>");
  document.write( "</div>");

  document.write( " <div id='bluearea'>");
  document.write( "Downloads:<br/>");

  if (tapeSpec == "Available") 
    { document.write( "      <a href='../../uefs/"+folder+"/t-"+abbName+".zip'>");
      document.write( "      <img src='../../icns/tape.gif' ");
      document.write( "      width='50' height='50' border='0' alt='Tape'></a>");
    } 

  for (x in discArray) 
    { if (discArray[x] == "Haven ADFS") 
      { document.write( "      <a href='../../archive/"+folder+"/ha-"+abbName+".zip'>");
        document.write( "      <img src='../../icns/adfs.gif' ");
        document.write( "      width='50' height='50' border='0' alt='ADFS Disc (AEW)'></a>");
      } 
      else 
       { if (discArray[x] == "Haven DFS") 
         { document.write( "      <a href='../../archive/"+folder+"/hd-"+abbName+".zip'>");
           document.write( "      <img src='../../icns/dfs.gif' ");
           document.write( "      width='50' height='50' border='0' alt='DFS Disc (AEW)'></a>");
         } 
         else 
         { if (discArray[x] == "Prof ADFS") 
           { document.write( "      <a href='../../archive/"+folder+"/a-"+abbName+".zip'>");
             document.write( "      <img src='../../icns/adfs.gif' ");
             document.write( "      width='50' height='50' border='0' alt='ADFS Disc'></a>");
           } 
           else
           { if (discArray[x] == "Prof DFS")  
             { document.write( "      <a href='../../archive/"+folder+"/d-"+abbName+".zip'>");
               document.write( "      <img src='../../icns/dfs.gif' ");
               document.write( "      width='50' height='50' border='0' alt='DFS Disc'></a>");
             } 
           }
         }
       }
     }

  document.write( "  </li>");
  document.write( "  </ul>");
  document.write( " </div>");

  document.write( " </div>");

  document.write( "</div>");
  document.write( "</a>");
  }

// =======================================================================================================================

function navbar(path)
  {
  document.write( "  <div id='navbar'>");
  document.write( "  <h3>");
  document.write( "   <a href='top_lvl.html'>Books Archive</a><br/>&nbsp;</br>");
  document.write( "   <ul>");
  document.write( "    <li><a href='"+path+"acornsoft.html'>ACORNSOFT/ADDER</a></li>");
  document.write( "    <li><a href='"+path+"addison.html'>ADDISON-WESLEY</a></li>");
  document.write( "    <li><a href='"+path+"arrow.html'>ARROW BOOKS</a></li>");
  document.write( "    <li><a href='"+path+"babani.html'>BABANI BOOKS</a></li>");
  document.write( "    <li><a href='"+path+"bbcsoft.html'>BBC NEC</a></li>");
  document.write( "    <li><a href='"+path+"beaver.html'>BEAVER</a></li>");
  document.write( "    <li><a href='"+path+"cambridge.html'>CAMBRIDGE</a></li>");
  document.write( "    <li><a href='"+path+"century.html'>CENTURY</a></li>");
  document.write( "    <li><a href='"+path+"collins.html'>COLLINS</a></li>");
  document.write( "    <li><a href='"+path+"corgi.html'>CORGI</a></li>");
  document.write( "    <li><a href='"+path+"database.html'>DATABASE</a></li>");
  document.write( "    <li><a href='"+path+"dorling.html'>DORLING-KINDERSLEY</a></li>");
  document.write( "    <li><a href='"+path+"dp.html'>DP</a></li>");
  document.write( "    <li><a href='"+path+"dragon.html'>DRAGON</a></li>");
  document.write( "    <li><a href='"+path+"duckworth.html'>DUCKWORTH</a></li>");
  document.write( "    <li><a href='"+path+"edimicro.html'>EDIMICRO</a></li>");
  document.write( "    <li><a href='"+path+"fontana.html'>FONTANA</a></li>");
  document.write( "    <li><a href='"+path+"foulsham.html'>FOULSHAM</a></li>");
  document.write( "    <li><a href='"+path+"granada.html'>GRANADA</a></li>");
  document.write( "    <li><a href='"+path+"interface.html'>INTERFACE</a></li>");
  document.write( "    <li><a href='"+path+"john_wiley.html'>JOHN WILEY</a></li>");
  document.write( "    <li><a href='"+path+"kingfisher.html'>KINGFISHER</a></li>");
  document.write( "    <li><a href='"+path+"kluwer.html'>KLUWER</a></li>");
  document.write( "    <li><a href='"+path+"lifelong.html'>LIFELONG LEARNING</a></li>");
  document.write( "    <li><a href='"+path+"longman.html'>LONGMAN</a></li>");
  document.write( "    <li><a href='"+path+"macmillian.html'>MACMILLIAN</a></li>");
  document.write( "    <li><a href='"+path+"mcgraw.html'>MCGRAW HILL</a></li>");
  document.write( "    <li><a href='"+path+"melbourne.html'>MELBOURNE HOUSE</a></li>");
  document.write( "    <li><a href='"+path+"methuen.html'>METHUEN</a></li>");
  document.write( "    <li><a href='"+path+"micropress.html'>MICRO PRESS</a></li>");
  document.write( "    <li><a href='"+path+"pan.html'>PAN</a></li>");
  document.write( "    <li><a href='"+path+"penguin.html'>PENGUIN</a></li>");
  document.write( "    <li><a href='"+path+"pheonix.html'>PHEONIX</a></li>");
  document.write( "    <li><a href='"+path+"piccolo.html'>PICCOLO</a></li>");
  document.write( "    <li><a href='"+path+"pitman.html'>PITMAN</a></li>");
  document.write( "    <li><a href='"+path+"prentice.html'>PRENTICE HALL</a></li>");
  document.write( "    <li><a href='"+path+"shiva.html'>SHIVA</a></li>");
  document.write( "    <li><a href='"+path+"sigma.html'>SIGMA</a></li>");
  document.write( "    <li><a href='"+path+"slogger.html'>SLOGGER</a></li>");
  document.write( "    <li><a href='"+path+"superior.html'>SUPERIOR</a></li>");
  document.write( "    <li><a href='"+path+"sunshine.html'>SUNSHINE</a></li>");
  document.write( "    <li><a href='"+path+"thornes.html'>THORNES</a></li>");
  document.write( "    <li><a href='"+path+"usborne.html'>USBORNE</a></li>");
  document.write( "    <li><a href='"+path+"virgin.html'>VIRGIN GAMES</a></li>");
  document.write( "    <li><a href='"+path+"wolters.html'>WOLTERS-NOORDHOFF</a></li>");
  document.write( "    <li><a href='"+path+"zomba.html'>ZOMBA</a></li>");
  document.write( "   </ul>");
  document.write( "  </h3>");
  document.write( "  </div>");
  }

// ========================================================================================================================

function aabtab( abbr,
                 gameTitle,
                 softHouse,
                 folder,
                 downloads,
                 discCompat,
                 reviewer,
                 source,
                 revTitle,
                 gameType,
                 scores) 
{
    var scoresarray = scores.split( "|");
    var sourcefolder = source.charAt(0) + "_" + source.substring(2,4);

  document.write( "<div id='austyle'>");
  document.write( "<table border='0' width='100%' style='font-family: Arial; ");
  document.write( "                                      font-size: 8pt; ");
  document.write( "                                      color: black;  ");
  document.write( "                                      border: thin solid; "); 
  document.write( "                                      border-color: yellow;  ");
  document.write( "                                      border-width: 2px;  ");
  document.write( "                                      color: white; background-color: black'>");
  document.write( " <tr valign='middle'>");
  document.write( "  <td width='150' align='center' rowspan='2' valign='center'>");
  document.write( "   <img src='../../../../logos/aab.jpg' width='162' height='130' border='0' alt='EU logo'>");
  document.write( "  </td>");
  document.write( "  <td width='*' align='right' style='font-family: Arial Narrow; font-size: 18pt'>");
  document.write( "   <center><b><u>"+revTitle+"</b></u></center></td>");
  document.write( "  <td width='170' rowspan='2' valign='center'>");
  document.write( "  <div style='width:162px; height:160px; float: right; color: white; margin: 3px 3px 3px 3px;");
  document.write( "              background-image: url(../../../../covs/"+folder+"/sc-"+abbr+".jpg); ");
  document.write( "              background-repeat: no-repeat; ");
  document.write( "              background-position: center; ");
  document.write( "              padding:0px 0px 0px 0px'>");
  document.write( " </div>");
  document.write( "  </td>");
  document.write( " </tr><tr valign='bottom'>");
  document.write( " <td>");

    if (gameType == "Yes, Early Ratings") 
    {
    document.write( "  <table style='background-color: black; font family: Arial Narrow; font-size: 8pt; ");
    document.write( "border: thin solid; border-color: white; color: white; margin-right: 2px' border='0' width='120' align='right'>");
    document.write( "      <tr valign='top'>");
    document.write( "       <td>Sound<br/>Graphics<br/>Documentation<br/>Value for money<br/>Overall</td>");
    document.write( "       <td align='right'>"+scoresarray[0]+"<br>"+scoresarray[1]+"<br>"+scoresarray[2]+"<br>"+scoresarray[3]+"<br>"+scoresarray[4]+"</td>");
    document.write( "      </tr>");
    document.write( "     </table>");
    }

    if (gameType == "Yes, Arcade") 
    { 
    document.write( "  <table style='background-color: black; font family: Arial Narrow; font-size: 8pt; ");
    document.write( "border: thin solid; border-color: white; color: white; margin-right: 2px' border='0' width='120' align='right'>");
    document.write( "      <tr valign='top'>");
    document.write( "       <td>Sound<br>Graphics<br>Playability<br>Lifespan<br>Overall</td>");
    document.write( "       <td align='right'>"+scoresarray[0]+"<br>"+scoresarray[1]+"<br>"+scoresarray[2]+"<br>"+scoresarray[3]+"<br>"+scoresarray[4]+"</td>");
    document.write( "      </tr>");
    document.write( "     </table>");
    }
  document.write( "             &nbsp;<br>");
  document.write( "             Product: "+gameTitle+"<br>");
  document.write( "             Publisher: "+softHouse+"<br>");
  document.write( "             Compatibility: "+discCompat+"<br>");
  document.write( "             Reviewed by: "+reviewer+"<br><br><table align='right'>");
  document.write( "             <tr><td style='font family: Arial Narrow; font-size: 8pt; color: white'>");
  document.write( "Originally published in <!--<a href='../../../aab/cats/eu"+sourcefolder+".html'>-->A&amp;B Computing "+source+"</a></td>");
  document.write( "</td></table></td>");
  document.write( " </tr>");
  document.write( "</table>");
  document.write( "</div>");
  document.write( "<br clear='right'/>&nbsp;");
  document.write( "<br clear='right'/>");
  }

// ========================================================================================================================

function autab( abbr,
                gameTitle,
                softHouse,
                folder,
                downloads,
                discCompat,
                reviewer,
                source,
                revTitle,
                gameType,
                scores) 
{
    var scoresarray = scores.split( "|");
    var sourcefolder = source.charAt(0) + "_" + source.substring(2,4);

  document.write( "<div id='austyle'>");
  document.write( "<table border='0' width='100%' style='font-family: Arial; ");
  document.write( "                                      font-size: 8pt; ");
  document.write( "                                      color: black;  ");
  document.write( "                                      border: thin solid; "); 
  document.write( "                                      border-color: yellow;  ");
  document.write( "                                      border-width: 2px;  ");
  document.write( "                                      color: white; background-color: black'>");
  document.write( " <tr valign='middle'>");
  document.write( "  <td width='150' align='center' rowspan='2' valign='center'>");
  document.write( "   <img src='../../../../logos/au.jpg' width='162' height='130' border='0' alt='EU logo'>");
  document.write( "  </td>");
  document.write( "  <td width='*' align='right' style='font-family: Arial Narrow; font-size: 18pt'>");
  document.write( "   <center><b><u>"+revTitle+"</b></u></center></td>");
  document.write( "  <td width='170' rowspan='2' valign='center'>");
  document.write( "  <div style='width:162px; height:160px; float: right; color: white; margin: 3px 3px 3px 3px;");
  document.write( "              background-image: url(../../../../covs/"+folder+"/sc-"+abbr+".jpg); ");
  document.write( "              background-repeat: no-repeat; ");
  document.write( "              background-position: center; ");
  document.write( "              padding:0px 0px 0px 0px'>");
  document.write( " </div>");
  document.write( "  </td>");
  document.write( " </tr><tr valign='bottom'>");
  document.write( " <td>");

    if (gameType == "Yes, Adventure") 
    { 
    document.write( "  <table style='background-color: yellow; font family: Arial Narrow; font-size: 8pt; ");
    document.write( "border: thin solid; border-color: black; color: black; margin-right: 2px' border='0' align='right'>");
    document.write( "      <tr valign='top'>");
    document.write( "       <td>Presentation<br>Atmosphere<br>Frustration<br>Value for money<br>Overall</td>");
    document.write( "       <td align='right'>"+scoresarray[0]+"<br>"+scoresarray[1]+"<br>"+scoresarray[2]+"<br>"+scoresarray[3]+"<br>"+scoresarray[4]+"</td>");
    document.write( "      </tr>");
    document.write( "     </table>");
    }

    if (gameType == "Yes, Arcade") 
    { 
    document.write( "  <table style='background-color: yellow; font family: Arial Narrow; font-size: 8pt; ");
    document.write( "border: thin solid; border-color: black; color: black; margin-right: 2px' border='0' align='right'>");
    document.write( "      <tr valign='top'>");
    document.write( "       <td>Sound<br>Graphics<br>Playability<br>Value for money<br>Overall</td>");
    document.write( "       <td align='right'>"+scoresarray[0]+"<br>"+scoresarray[1]+"<br>"+scoresarray[2]+"<br>"+scoresarray[3]+"<br>"+scoresarray[4]+"</td>");
    document.write( "      </tr>");
    document.write( "     </table>");
    }
  document.write( "             &nbsp;<br>");
  document.write( "             Product: "+gameTitle+"<br>");
  document.write( "             Publisher: "+softHouse+"<br>");
  document.write( "             Compatibility: "+discCompat+"<br>");
  document.write( "             Reviewed by: "+reviewer+"<br><br><table align='right'>");
  document.write( "             <tr><td style='font family: Arial Narrow; font-size: 8pt; color: white'>");
  document.write( "Originally published in <!--<a href='../../../eu/cats/eu"+sourcefolder+".html'>-->Acorn User "+source+"</a></td>");
  document.write( "</td></table></td>");
  document.write( " </tr>");
  document.write( "</table>");
  document.write( "</div>");
  document.write( "<br clear='right'/>&nbsp;");
  document.write( "<br clear='right'/>");
  }

// =======================================================================================================================

function eutab( abbr,
                gameTitle,
                softHouse,
                folder,
                downloads,
                discCompat,
                reviewer,
                source,
                revTitle,
                gameType,
                scores) 
{
    var scoresarray = scores.split( "|");
    var sourcefolder = source.charAt(0) + "_" + source.substring(2,4);

  document.write( "<div id='eustyle'>");
  document.write( "<table border='0' width='100%' style='font-family: Arial; ");
  document.write( "                                      font-size: 8pt; ");
  document.write( "                                      color: black;  ");
  document.write( "                                      border: thin solid; "); 
  document.write( "                                      border-color: red;  ");
  document.write( "                                      border-width: 2px;  ");
  document.write( "                                      background-color: yellow'>");
  document.write( " <tr valign='middle'>");
  document.write( "  <td width='150' align='center' rowspan='2' valign='center'>");
  document.write( "   <img src='../../../../logos/eu.jpg' width='162' height='130' border='0' alt='EU logo'>");
  document.write( "  </td>");
  document.write( "  <td width='*' align='right' style='font-family: Arial Narrow; font-size: 18pt'>");
  document.write( "   <center><b><u>"+revTitle+"</b></u></center></td>");
  document.write( "  <td width='170' rowspan='2' valign='center'>");
  document.write( "  <div style='width:162px; height:160px; float: right; color: white; margin: 3px 3px 3px 3px;");
  document.write( "              background-image: url(../../../../covs/"+folder+"/sc-"+abbr+".jpg); ");
  document.write( "              background-repeat: no-repeat; ");
  document.write( "              background-position: center; ");
  document.write( "              padding:0px 0px 0px 0px'>");
  document.write( " </div>");
  document.write( "  </td>");
  document.write( " </tr><tr valign='bottom'>");
  document.write( " <td>");

    if (gameType == "Yes, Adventure") 
    { 
    document.write( "  <table style='background-color: yellow; font family: Arial Narrow; font-size: 8pt; ");
    document.write( "border: thin solid; border-color: black; color: black; margin-right: 2px' border='0' align='right'>");
    document.write( "      <tr valign='top'>");
    document.write( "       <td>Presentation<br>Atmosphere<br>Frustration<br>Value for money<br>Overall</td>");
    document.write( "       <td align='right'>"+scoresarray[0]+"<br>"+scoresarray[1]+"<br>"+scoresarray[2]+"<br>"+scoresarray[3]+"<br>"+scoresarray[4]+"</td>");
    document.write( "      </tr>");
    document.write( "     </table>");
    }

    if (gameType == "Yes, Arcade") 
    { 
    document.write( "  <table style='background-color: yellow; font family: Arial Narrow; font-size: 8pt; ");
    document.write( "border: thin solid; border-color: black; color: black; margin-right: 2px' border='0' align='right'>");
    document.write( "      <tr valign='top'>");
    document.write( "       <td>Sound<br>Graphics<br>Playability<br>Value for money<br>Overall</td>");
    document.write( "       <td align='right'>"+scoresarray[0]+"<br>"+scoresarray[1]+"<br>"+scoresarray[2]+"<br>"+scoresarray[3]+"<br>"+scoresarray[4]+"</td>");
    document.write( "      </tr>");
    document.write( "     </table>");
    }
  document.write( "             &nbsp;<br>");
  document.write( "             Product: "+gameTitle+"<br>");
  document.write( "             Publisher: "+softHouse+"<br>");
  document.write( "             Compatibility: "+discCompat+"<br>");
  document.write( "             Reviewed by: "+reviewer+"<br><br><table align='right'>");
  document.write( "             <tr><td style='font family: Arial Narrow; font-size: 8pt; color: black'>");
  document.write( "Originally published in <a href='../../../eu/cats/eu"+sourcefolder+".html'>Electron User "+source+"</a></td>");
  document.write( "</td></table></td>");
  document.write( " </tr>");
  document.write( "</table>");
  document.write( "</div>");
  document.write( "<br clear='right'/>&nbsp;");
  document.write( "<br clear='right'/>");
  }

// =========================================================================================================================

function pdstyle ( cat, shortName, longName, catalogueString) {

  var catalogueArray = catalogueString.split( ";");
  var totalLength = catalogueArray.length;

  if ((totalLength % 2) == 1)
    totalLength++;

  var halfLength = (totalLength / 2);

  document.write( "<center><a name='");
  document.write( shortName);
  document.write( "'>");
  document.write( "<table width='710' border='0' style='font-family: Arial; font-size: 10; color: white;' bgcolor='green'>");
  document.write( "<tr>");
  document.write( "  <td rowspan='2' width='162'>");
  document.write( "   <center>");
  document.write( "<a href='../../ills/" + cat + "/s-" + shortName + "a.gif' target='_new'>");
  document.write( "<img src='../../ills/" + cat + "/n-");
  document.write( shortName);
  document.write( "a.gif' width='162' height='130' style='border-color: black' border='1'></a></center>");
  document.write( "  </td>");
  document.write( "  <td align='CENTER' style='font-size: 12'>");
  document.write( "   <b>");
  document.write( longName);
  document.write( "</b><br>CDFS, <a href='../../archive/" + cat + "/d-");
  document.write( shortName);
  document.write( ".zip' target='_new'>DFS</a>");
  document.write( "  </td>");
  document.write( "  <td rowspan='2' width='162'>");
  document.write( "   <center>");
  document.write( "<a href='../../ills/" + cat + "/s-" + shortName + "b.gif' target='_new'>");
  document.write( "<img src='../../ills/" + cat + "/n-");
  document.write( shortName);
  document.write( "b.gif' width='162' height='130' border='0'></a></center>");
  document.write( "  </td>");
  document.write( " </tr>");
  document.write( " <tr>");
  document.write( "  <td valign='top' align='center'>");
  document.write( "   <table width='100%' style='font-family: Arial; font-size: 10; color: white' >");
  document.write( "    <tr valign='top'>");
  document.write( "    <td width='50%'>");

  for (x=0; x<halfLength; x++) {
      document.write( "&#" + (x+65) + ") " + catalogueArray[x] + "<br/>");
      }

  document.write( "    </td>");
  document.write( "    <td width='50%'>");

  for (x=halfLength; x<(catalogueArray.length); x++) {
      document.write( "&#" + (x+65) + ") " + catalogueArray[x] + "<br/>");
      }

  document.write( "    </td>");
  document.write( "    </tr>");
  document.write( "   </table>");
  document.write( "  </td>");
  document.write( " </tr>");
  document.write( "</table>");
  document.write( "</a></center>");
  document.write( "<br/>");
  }

// =======================================================================================================================
    
function box ( cat, shortName, longName, dateofIssue) {

  document.write( "<table width='178' border='0' style='font-family: Arial;");
  document.write( " font-size: 10; color: white; border-style: double;");
  document.write( " border-color: green' bgcolor='green'>");
  document.write( " <tr>");
  document.write( "  <td align='center'>");
  document.write( "  <a href='../../ills/"+cat+"/s-"+shortName+"a.gif'");
  document.write( " target='_blank'>");
  document.write( "<img src='../../ills/au/n-"+shortName+"a.gif' ");
  document.write( "width='162' height='130' alt='"+longName+"' border='0'>");
  document.write( "</a><br><br>"+longName+" ("+dateofIssue+")<br>CDFS, ");
  document.write( "<a style='text-decoration: none; color: yellow'");
  document.write( " href='../../archive/"+cat+"/d-"+shortName+".zip' target='_new'>DFS</a></td>");
  document.write( " </tr>");
  document.write( "</table>");
  
   }
   
function boxTableStart() {

  document.write( "<table width='710' border='0'><tr valign='top'>");
  document.write( "<td width='236' align='center'>");
  
   }
   
function boxTableCell() {

  document.write( "</td><td width='236' align='center'>");
  
   }
   
function boxTableEnd () {

  document.write( "</td></tr></table>");
  
   }
  
   
