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

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='A&B 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(../../../../hards/"+folder+"/n-"+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(../../../../hards/"+folder+"/n-"+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 navbar(path)
    {
     document.write( "  <div id='navbar'>");
     document.write( "  <h3>");
     document.write( "   <a href='top_lvl.html'>Hardware Land</a><br/>&nbsp;</br>");
     document.write( "   <ul>");
     document.write ( "   <li><a href='"+path+"acorn_computers.html'>ACORN COMPUTERS</a></li>");
     document.write ( "   <li><a href='"+path+"acp_pres.html'>ACP/PRES</a></li>");
     document.write ( "   <li><a href='"+path+"andyk.html'>ANDYK LTD</a></li>");
     document.write ( "   <li><a href='"+path+"bt.html'>BRITISH&nbsp;TELECOM</a></li>");
     document.write ( "   <li><a href='"+path+"bud_computers.html'>BUD COMPUTERS</a></li>");
     document.write ( "   <li><a href='"+path+"complex.html'>COMPLEX SOUND SYSTEMS</a></li>");
     document.write ( "   <li><a href='"+path+"cumana.html'>CUMANA DISC DYSTEMS</a></li>");
     document.write ( "   <li><a href='"+path+"database.html'>DATABASE ELECTRONICS</a></li>");
     document.write ( "   <li><a href='"+path+"first_byte.html'>FIRST BYTE</a></li>");
     document.write ( "   <li><a href='"+path+"jafa.html'>JAFA SYSTEMS</a></li>");
     document.write ( "   <li><a href='"+path+"kortink.html'>JOHN KORTINK</a></li>");
     document.write ( "   <li><a href='"+path+"hybrid.html'>HYBRID<br/>TECHNOLOGY</a></li>");
     document.write ( "   <li><a href='"+path+"lindy.html'>LINDY</a></li>");
     document.write ( "   <li><a href='"+path+"millsgrade.html'>MILLSGRADE</a></li>");
     document.write ( "   <li><a href='"+path+"morley.html'>MORLEY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>ELECTRONICS</a></li>");
     document.write ( "   <li><a href='"+path+"mushroom.html'>MUSHROOM</a></li>");
     document.write ( "   <li><a href='"+path+"niddvalley.html'>NIDD VALLEY</a></li>");
     document.write ( "   <li><a href='"+path+"pace.html'>PACE</a></li>");
     document.write ( "   <li><a href='"+path+"pms.html'>PERMANENT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>MEMORY SYSTEMS</a></li>");
     document.write ( "   <li><a href='"+path+"power.html'>POWER</a></li>");
     document.write ( "   <li><a href='"+path+"pe.html'>PROJECT&nbsp;&nbsp;&nbsp;<br/>EXPANSIONS</a></li>");
     document.write ( "   <li><a href='"+path+"ram.html'>RAM ELECTRONICS</a></li>");
     document.write ( "   <li><a href='"+path+"slogger.html'>SLOGGER</a></li>");
     document.write ( "   <li><a href='"+path+"solidisk.html'>SOLIDISK</a></li>");
     document.write ( "   <li><a href='"+path+"sonmax.html'>SONMAX</a></li>");
     document.write ( "   <li><a href='"+path+"vulcan.html'>VULCAN<br/>ELECTRONICS</a></li>");
     document.write ( "   <li><a href='"+path+"wizard.html'>WIZARD</a></li>");
     document.write ( "   <li><a href='"+path+"dust_covers.html'>DUST COVERS</a></li>");
     document.write( "   </ul>");
     document.write( "  </h3>");
     document.write( "  </div>");
    }

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

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(../../../../hards/"+folder+"/n-"+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 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 hardware( folder, 
                   abbName,
                   fullName,
                   connectsTo,
                   supplier,
                   connectsTo,
                   demoInfo,
                   otherInfo) {

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

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

  document.write( "<div id='prof'>");
  document.write( "<center><a name='"+abbName+"'></a>");
  document.write( "<table border='0' width='650'>");
  document.write( " <tr valign='top'>");
  document.write( "  <td width='200' valign='middle'>");
  document.write( "   <div style='width:162px; height:130px; float:left; margin: 6px 6px 6px 6px; text-align: left;");
  document.write( "               font-size: 80%; ");
  document.write( "               background-image: url(../../photos/"+folder+"/n-"+abbName+"a.jpg); ");
  document.write( "               background-repeat: no-repeat; ");
  document.write( "               background-position: center; ");
  document.write( "               padding:0px 0px 0px 0px'></td>");
  document.write( "  <td width='*'>");
  document.write( "   <table border='0' style='font-family: Arial; font-size: 80%; color: white;' width='100%'>");
  document.write( "    <tr>");
  document.write( "     <td align='center' style='font-size: 12'>");
  document.write( "      <b style='font-size: 200%'>"+fullName+"</b></td>");
  document.write( "    </tr><tr>");
  document.write( "     <td align='left' valign='top' style='font-size: 12' height='68'>Information:<br/>");

  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='Further Information'></a>");
    }

  // Should Links To Anything Else Appear?

  for (x in infoArray) 
    { if (infoArray[x] == "Review (AAB)")  
     { document.write( "      <a href='../../mags/aab/revs/" + folder+ "/r-" +abbName+ ".html'>");  
       document.write( "      <img src='../../icns/aab.gif' ");
       document.write( "      width='50' height='50' border='0' alt='Review by A&B Computing'></a>"); 
     }
    { if (infoArray[x] == "Review (AU)")  
     { document.write( "      <a href='../../mags/au/revs/" + folder+ "/r-" +abbName+ ".html'>");  
       document.write( "      <img src='../../icns/au.gif' ");
       document.write( "      width='50' height='50' border='0' alt='Review by Acorn User'></a>"); 
     }
    else 
    { if (infoArray[x] == "Review (Elbug)")  
     { document.write( "      <a href='../../mags/elbug/revs/" + folder+ "/r-" +abbName+ ".html'>");  
       document.write( "      <img src='../../icns/elbug.gif' ");
       document.write( "      width='50' height='50' border='0' alt='Review by Elbug'></a>"); 
     }
    else 
    { 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] == "Review (PCN)")  
            { document.write( "      <a href='../../mags/pcn/revs/" + folder+ "/r-" +abbName+ ".html'>");  
              document.write( "      <img src='../../icns/pcn.gif' ");
              document.write( "      width='50' height='50' border='0' alt='Review by PCN'></a>"); 
            }
        }
        } 
      }
    }
    }
    }
    }

  document.write( "     </td>");
  document.write( "    </tr>");
  document.write( "   </table>");
  document.write( "  </td>");
  document.write( "  <td width='200' valign='middle'>");
  document.write( "   <div style='width:162px; height:130px; float: right; color: white; margin: 6px 6px 6px 6px; text-align: left;");
  document.write( "               font-size: 80%; ");
  document.write( "               background-image: url(../../photos/"+folder+"/n-"+abbName+"b.jpg); ");
  document.write( "               background-repeat: no-repeat; ");
  document.write( "               background-position: center; ");
  document.write( "               padding:0px 0px 0px 0px'>");
  document.write( " </tr><tr valign='top'>");
  document.write( "  <td><table border='0' style='font-size: 80%; color: white;'>");
  document.write( "       <tr valign='top'>");
  document.write( "        <td>Connects To:<br/>"+connectsTo+"</td>");
  document.write( "       </tr><tr valign='top'>");
  document.write( "        <td>Supplier:<br/>"+supplier+"</td>");
  document.write( "       </tr>");
  document.write( "      </table></td>");
  document.write( "  <td><table border='0' style='font-size: 80%; color: white;'>");
  document.write( "       <tr valign='top'>");
  document.write( "        <td>Release Information:<br/>"+demoInfo+"</td>");
  document.write( "       </tr>");
  document.write( "      </table></td>");
  document.write( "  <td><table border='0' style='font-size: 80%; color: white;'>");
  document.write( "       <tr valign='top'>");
  document.write( "        <td>Other Links:<br/>");

  // Should Links To Anything Else Appear?

  for (x in infoArray) 
   { if (infoArray[x] != "Review (AAB)") 
    { if (infoArray[x] != "Review (AU)") 
     { if (infoArray[x] != "Review (EU)") 
      { if (infoArray[x] != "Review (EUG)") 
       { if (infoArray[x] != "Review (Impact)") 
       { if (infoArray[x] != "Review (Elbug)") 
       { if (infoArray[x] != "Review (PCN)") 
        { if (infoArray[x] != "Solution (EU)") 
         { if (infoArray[x] != "Solution (EUG)") 
                 { if (infoArray[x] == "Cover Art")
                     { document.write("<a href='../../covs/"+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>");
  document.write( "       </tr> ");
  document.write( "      </table></td>");
  document.write( " </tr>");
  document.write( "</table>");
  document.write( "</center>");
  document.write( "</div>");
  document.write( "<br clear='right'/>&nbsp;");
}
