
var g_subjectNames = new Array();
var g_subjectPages = new Array();

g_subjectNames['subjectLiteracy'] = 'English&nbsp;&amp;&nbsp;Literacy';
g_subjectPages['subjectLiteracy'] = './prodlist.html';

g_subjectNames['subjectNumeracy'] = 'Maths&nbsp;&amp;&nbsp;Numeracy';
g_subjectPages['subjectNumeracy'] = './prodlist.html';

g_subjectNames['subjectMusic'] = 'Music';
g_subjectPages['subjectMusic'] = './prodlist.html';

var g_productTitles =
new Array('Scally\'s World of Verbs',
          'Scally\'s World: Numbers & Sums',
          'Speaking for Myself PLUS',
          'MusicBox 2');

var g_titleSubjects = new Array();
var g_titleSheets = new Array();
var g_titleParagraphs = new Array();
var g_titleBullets = new Array();
var g_titlePackshots = new Array();
var g_currentTitle;

g_currentTitle = g_productTitles[0];
g_titleSubjects[ g_currentTitle ] = 'subjectLiteracy';
g_titleSheets[ g_currentTitle] = './products/psheet_scallyverbs.html';
g_titleParagraphs[ g_currentTitle] =
'<p>Develop early Literacy and ICT skills with a whole world of verbs</p>';
g_titleBullets[ g_currentTitle] = new Array('Monkies','Sellotape');
g_titlePackshots[ g_currentTitle] = 'http://www.topologika.com/catalogue/images/sfmpack.gif';

g_currentTitle = g_productTitles[1];
g_titleSubjects[ g_currentTitle ] = 'subjectNumeracy' ;
g_titleSheets[ g_currentTitle ] = './products/psheet_scallyverbs.html';
g_titleParagraphs[ g_currentTitle ] =
'<p>Develop early Numeracy and ICT skills with a whole world of numbers</p>';
g_titleBullets[ g_currentTitle ] = new Array('Numbers up to 20','Basic addition and subtraction');
g_titlePackshots[ g_currentTitle ] = 'http://www.topologika.com/catalogue/images/sfmpack.gif';

g_currentTitle = g_productTitles[2];
g_titleSubjects[ g_currentTitle ] = 'subjectLiteracy';
g_titleSheets[ g_currentTitle ] = './products/psheet_scallyverbs.html';
g_titleParagraphs[ g_currentTitle ] =
'<p>Unique on-screen activities and printable resources to develop early language and computer skills.</p>';
g_titleBullets[ g_currentTitle ] = new Array('Two and three word stories','Glargle');
g_titlePackshots[ g_currentTitle ] = 'http://www.topologika.com/catalogue/images/sfmpack.gif';

g_currentTitle = g_productTitles[3];
g_titleSubjects[ g_currentTitle ] = 'subjectMusic';
g_titleSheets[ g_currentTitle ] = './products/psheet_scallyverbs.html';
g_titleParagraphs[ g_currentTitle ] =
'<p>Award-winning software that explores and nurtures pupils\' musical talents</p>';
g_titleBullets[ g_currentTitle ] = new Array('Noise','Tunes','Other Things');
g_titlePackshots[ g_currentTitle ] = 'http://www.topologika.com/catalogue/images/musicboxpack.gif';

function generateProductTable( productName )
{
  var writeString = '<!-- autgenerated -->\n';
  writeString += '<table width=\"100%\">\n';
  writeString += '  <tr class=\"' + g_titleSubjects[ productName ] + '\">\n<td>\n';
  writeString += '    <table border=\"0\" cellspacing=\"0\" width=\"100%\">\n';
  writeString += '      <tr>\n';
  writeString += '        <td width=\"100%\">\n';
  writeString += '        <a href=\"' + g_titleSheets[ productName ] + '\" class=\"productTitle\"><b>'
    + productName + '</b></a>\n';
  writeString += '        </td>\n';
  writeString += '        <td width=\"0*\" align=\"right\">';
  writeString += '        <a href=\"' + g_subjectPages[ g_titleSubjects[ productName ] ] + '\" class=\"productTitle\">'
    + g_subjectNames[ g_titleSubjects[ productName ] ] + '</a>\n';
  writeString += '        </td>\n';
  writeString += '      </tr>\n';
  writeString += '    </table>\n</td>\n';
  writeString += '  </tr>\n';
  writeString += '  <tr>\n';
  writeString += '    <td>\n';
  writeString += '      <table border=\"0\">\n';
  writeString += '        <tr>\n';
  writeString += '          <td width=\"128\" valign=\"top\">\n';
  writeString += '            <img src=\"' + g_titlePackshots[ productName ] + '\" border=\"0\">\n';
  writeString += '          </td>\n';
  writeString += '          <td width=\"100%\" valign=\"top\">\n';
  writeString += g_titleParagraphs[ productName ];
  writeString += '            <ul>\n';
  for(var ii=0; ii< g_titleBullets[ productName ].length; ii++)
    writeString += '<li>' + g_titleBullets[productName][ii] + '</li>\n';
  writeString += '            </ul>\n';
  writeString += '          </td>\n';
  writeString += '        </tr>\n';
  writeString += '      </table>\n';
  writeString += '    </td>\n';
  writeString += '  </tr>\n';
  writeString += '</table><br>\n';

  //alert( writeString );

  document.write(writeString);
}

