var nMaxVars = 0;
var sVarLine = "";
var sName = new Array();
var sValue = new Array();

function getMaxVars() { return nMaxVars; }
function getVarString() { return sVarLine; }
function getNameArray() { return sName; }
function getValueArray() { return sValue; }
   
function parseCallingURL(sCallingURL) {
   //Get the calling URL and parse out variables
   sCallingURL = String(sCallingURL);
   
   if(sCallingURL.length == 0)
      return;
      
   // Check if there are any variables
   if(sCallingURL.indexOf('?') != -1) {
      sVarLine = 
         String(sCallingURL.substring(sCallingURL.indexOf('?') + 1,
                                      sCallingURL.length));
   }
   else {   // No variables
      return;
   }
   
   var nPos = 0;
   var sChar = "";
   var sWord = "";
   nMaxVars = 0;
   
   // Parse
   while(nPos < sVarLine.length) {
      sChar = sVarLine.substring(nPos, nPos + 1);
      
      if(sChar == "=") {
         sName[nMaxVars] = sWord;
         sWord = "";
         
      }
      else if(sChar == "&") {
         sValue[nMaxVars] = sWord;
         sWord = "";
         nMaxVars++;
         
      }
      else if(nPos == sVarLine.length - 1) {
         sWord += sVarLine.substring(nPos,nPos + 1);
         sValue[nMaxVars] = sWord;
         sWord = "";
         nMaxVars++;
         
      }
      else {
         sWord += sChar;
      }
      nPos++;
   }
}

var homePage                = 'p001';
var companyPage             = 'p002';
var pressReleasePage        = 'p003';
var cabooseMarkersPage15    = 'p100';
var locomotiveMarkersPage15 = 'p101';
var switchLampsPage15       = 'p102';
var switchStandsPage15      = 'p103';
var cabooseMarkersPage25    = 'p104';
var locomotiveMarkersPage25 = 'p105';
var chandeliersPage15       = 'p106';
var finishesPage            = 'p200';
var lensColorsPage          = 'p201';
var lightingKitsPage        = 'p202';
var mountingStrapsPage      = 'p300';
var wallBracketsPage        = 'p301';
var madeeKKidKarKitsPage    = 'p400';
var madeeKHopperPage        = 'p401';
var madeeKGondolaPage       = 'p402';
var madeeKBoxCarPage        = 'p403';
var madeeKCaboosePage       = 'p404';
var madeeKChassisPage       = 'p405';
var trackLinksPage          = 'p801';
var informationLinksPage    = 'p802';
var periodicalLinksPage     = 'p803';
var supplierLinksPage       = 'p804';
var webLinksPage            = 'p805';
var photoGalleryPage        = 'p901';
var priceListPage           = 'p902';
var contactUsPage           = 'p903';
var adminPage               = 'p999';

var page2  = 0;
var pages2 = new Array();
pages2[page2++] = 
   new oPage('p001','Home','Home');  // homePage
pages2[page2++] = 
   new oPage('p002','Company','Company');  // companyPage
pages2[page2++] = 
   new oPage('p003','Press Release','Press Release');  // pressReleasePage
pages2[page2++] = 
   new oPage('p100','Caboose Markers','1.5" Caboose Markers');  // cabooseMarkersPage15
pages2[page2++] = 
   new oPage('p101','Locomotive Markers','1.5" Locomotive Markers');  // locomotiveMarkersPage15
pages2[page2++] = 
   new oPage('p102','Switch Lamps','1.5" Switch Lamps');  // switchLampsPage15
pages2[page2++] = 
   new oPage('p103','Switch Stands','1.5" Switch Stands');  // switchStandsPage15
pages2[page2++] = 
   new oPage('p104','Caboose Markers','2.5" Caboose Markers');  // cabooseMarkersPage25
pages2[page2++] = 
   new oPage('p105','Locomotive Markers','2.5" Locomotive Markers');  // locomotiveMarkersPage25
pages2[page2++] = 
   new oPage('p106','Chandeliers','1.5" Chandeliers');  // chandeliersPage15
pages2[page2++] = 
   new oPage('p200','Finishes','Finishes');  // finishesPage
pages2[page2++] = 
   new oPage('p201','Lens Colors','Lens Colors');  // lensColorsPage
pages2[page2++] = 
   new oPage('p202','Lighting Kits','Lighting Kits');  // lightingKitsPage
pages2[page2++] = 
   new oPage('p300','Mounting Straps','Mounting Straps');  // mountingStrapsPage
pages2[page2++] = 
   new oPage('p301','Wall Brackets','Wall Brackets');  // wallBracketsPage
pages2[page2++] = 
   new oPage('p400','Madee K Kid Kar Kits','Madee K Kid Kar Kits');  // madeeKKidKarKitsPage
pages2[page2++] = 
   new oPage('p401','Madee K Hopper','Madee K Hopper');  // madeeKHopperPage
pages2[page2++] = 
   new oPage('p402','Madee K Gondola','Madee K Gondola');  // madeeKGondolaPage
pages2[page2++] = 
   new oPage('p403','Madee K Box Car','Madee K Box Car');  // madeeKBoxCarPage
pages2[page2++] = 
   new oPage('p404','Madee K Caboose','Madee K Caboose');  // madeeKCaboosePage
pages2[page2++] = 
   new oPage('p405','Madee K Chassis','Madee K Chassis');  // madeeKChassisPage
pages2[page2++] = 
   new oPage('p801','Tracks','Tracks');  // trackLinksPage
pages2[page2++] = 
   new oPage('p802','Information','Information');  // informationLinksPage
pages2[page2++] = 
   new oPage('p803','Periodicals','Periodicals');  // periodicalLinksPage
pages2[page2++] = 
   new oPage('p804','Suppliers','Suppliers');  // supplierLinksPage
pages2[page2++] = 
   new oPage('p805','Web Pages','Web Pages');  // webLinksPage
pages2[page2++] = 
   new oPage('p901','Photo Gallery','Photo Gallery');  // photoGalleryPage
pages2[page2++] = 
   new oPage('p902','Price List','Price List');  // priceListPage
pages2[page2++] = 
   new oPage('p903','Contact Us','Contact Us');  // contactUsPage
pages2[page2++] = 
   new oPage('p999','Admin','Admin');  // adminPage

var clubLinks        = 'clubs';
var informationLinks = 'information';
var periodicalLinks  = 'periodicals';
var supplierLinks    = 'suppliers';
var webLinks         = 'web';

var away   = false;
var active = 0;
var e1     = 0;
var e2     = 0;
var page   = homePage;

try {
   var queryString = parent.location;
   parseCallingURL(queryString);
   var arguments = getVarString();

   var variables = arguments.split("&");

   for(var x=0; x<variables.length; x++) {
      var pair = variables[x].split("=");
      if(pair[0] == 'p') {
         var page = pair[1];
      }
   } 
}
catch(e) {
   alert(e.toString());
}

// Part information
var captions          = new Array();
var description       = '';
var pages             = new Array();
var previousOtherView = -1;
var specs             = new Array();
var title             = getTitle(page,2);

// Home
if(page == homePage) {
   description = 
      '<table>' + 
      '  <tr><td class="gap10" nowrap="1"/></tr>' + 
      '  <tr>' + 
      '  <td width="100%">' + 
      '  <table width="100%">' + 
      '    <tr>' + 
      '    <td class="imageLeft">' + 
      '    <table cellpadding="0" cellspacing="0">' + 
      '      <tr>' + addProductPhoto('p100-1',200,200) + '</tr>' + 
      '      <tr>' + 
      '      <td class="caption">&#x2022;&nbsp;Caboose Markers</td></tr>' + 
      '    </table></td>' + 
      '    <td valign="middle">"Bryte Rails" is now ' + 
      '      manufacturing caboose markers, locomotive markers and switch ' + 
      '      lamps previously produced, for many years, by Maumee Model Car ' + 
      '      and Foundry in Maumee, Ohio.  The caboose and ' + 
      '      locomotive markers are representative of the kerosene lamps ' + 
      '      produced by Adam Westlake (Adlake) and the Dressel companies ' + 
      '      in the later half of the 1800\'s and the first few decades of ' + 
      '      the 1900\'s.</td>' + 
      '    <td class="gap20" nowrap="1"/></tr>' + 
      '  </table></td></tr>' + 
      '  <tr>' + 
      '  <td width="100%">' + 
      '  <table width="100%">' + 
      '    <tr>' + 
      '    <td class="gap20" nowrap="1"/>' + 
      '    <td valign="middle">' + 
      '    <table>' + 
      '      <tr>' + 
      '      <td><img src="images/new.gif"/></td>' + 
      '      <td><font color="#0000ff">Now available, ' + 
      '        <a href="index.htm?p=p400" target="_top">Madee K Line of Kid ' + 
      '        Kar Kits</a>.  For more information, visit the "Madee K Kid ' + 
      '        Kar Kits" page or call Dave at ' + 
      '        (865) 456-7869.</font></td></tr></table><br/>' + 
      '        The lanterns are available in a natural brass ' + 
      '        finish, with or without lighting kits, and with a variety of ' + 
      '        lens color combinations.<br/>&nbsp;<br/>' + 
      '        Dave Mattox, formerly of Bryte, CA, has recently moved and ' + 
      '        relocated the business to Tennessee, and can be reached at ' + 
      formatEmailLink() + ' or (865) 456-7869 and ask for Dave.</td>' + 
      '    <td class="imageRight">' + 
      '    <table cellpadding="0" cellspacing="0">' + 
      '      <tr>' + addProductPhoto('p101-1',200,200) + '</tr>' + 
      '      <tr>' + 
      '      <td class="caption">&#x2022;&nbsp;Locomotive Markers</td></tr>' + 
      '    </table></td></tr>' + 
      '  </table></td></tr>' + 
      '  <tr><td class="gap30" nowrap="1"/></tr>' + 
      '  <tr><td>' + 
      '  <table>' + 
      '    <tr><td valign="top">' + 
      '    <table cellpadding="2" cellspacing="2">' + 
      '      <tr><td colspan="6">Below are photos of products now ' + 
      '        available:</td></tr>' + 
      '      <tr><td class="gap5" nowrap="1"/></tr>' + 
      '      <tr>' + 
      '      ' + addProductPhoto('p100-1',50,50) + 
      '      ' + addProductPhoto('p100-2',50,50) + 
      '      ' + addProductPhoto('p100-3',50,50) + 
      '      ' + addProductPhoto('p100-4',50,50) + '</tr>' + 
      '      <tr>' + 
      '      <td class="caption" colspan="4" valign="top">' + 
      '      &#x2022;&nbsp;Caboose Markers</td></tr>' + 
      '      <tr><td class="gap5" nowrap="1"/></tr>' + 
      '      <tr>' + 
      '      ' + addProductPhoto('p101-1',50,50) + 
      '      ' + addProductPhoto('p101-2',50,50) + 
      '      ' + addProductPhoto('p101-3',50,50) + 
      '      ' + addProductPhoto('p101-4',50,50) + 
      '      ' + addProductPhoto('p101-5',50,50) + '</tr>' + 
      '      <tr>' + 
      '      <td class="caption" colspan="5" valign="top">' + 
      '      &#x2022;&nbsp;Locomotive Markers</td></tr>' + 
      '      <tr><td class="gap5" nowrap="1"/></tr>' + 
      '      <tr>' + 
      '      ' + addProductPhoto('p102-1',50,50) + 
      '      ' + addProductPhoto('p102-2',50,50) + 
      '      ' + addProductPhoto('p102-3',50,50) + 
      '      ' + addProductPhoto('p102-4',50,50) + 
      '      ' + addProductPhoto('p102-5',50,50) + '</tr>' + 
      '      <tr>' + 
      '      <td class="caption" colspan="6" valign="top">' + 
      '      &#x2022;&nbsp;Switch Lamps</td></tr>' + 
      '      <tr><td class="gap5" nowrap="1"/></tr>' + 
      '      <tr>' + 
      '      ' + addProductPhoto('p106-1',50,50) + 
      '      ' + addProductPhoto('p106-2',50,50) + 
      '      ' + addProductPhoto('p106-3',50,50) + 
      '      ' + addProductPhoto('p106-4',50,50) + '</tr>' + 
      '      <tr>' + 
      '      <td class="caption" colspan="4" valign="top">' + 
      '      &#x2022;&nbsp;Chandeliers</td></tr>' + 
      '    </table></td>' + 
      '    <td class="gap50" nowrap="1"/>' + 
      '    <td valign="top">' + 
      '    <table>' + 
      '      <tr>' + 
      '      <td colspan="3">Our ad can be seen in both ' + 
      '      <a href="http://www.homerailwayjournal.com/" target="hrj">' + 
      '        Home Railway Journal</a> and ' + 
      '        <a href="http://www.livesteam.net/" target="ls">' + 
      '        Live Steam and Outdoor Railroading</a>.</td></tr>' + 
      '      <tr><td class="gap10" nowrap="1"/></tr>' + 
      '      <tr>' + 
      '      <td>' + 
      addImageLink('homerailwayjournal.jpg',
                   'http://www.homerailwayjournal.com/',0,0) + '</td>' + 
      '      <td class="gap10" nowrap="1"/>' + 
      '      <td>' + 
      addImageLink('livesteam.jpg',
                   'http://www.livesteam.net/',0,0) + '</td></tr>' + 
      '      <tr>' + 
      '      <td class="footer">Home Railway Journal</td>' + 
      '      <td/>' + 
      '      <td class="footer">Live Steam and Outdoor Railroading</td>' + 
      '    </table></td></tr>' + 
      '  </table></td></tr>' + 
      '</table>';
}
else if(page == companyPage) {
   description = 
      '<table>' + 
      '  <tr><td class="gap10" nowrap="1"/></tr>' + 
      '  <tr>' + 
      '  <td valign="top"><img src="images/markers.jpg"/></td>' + 
      '  <td class="gap10" nowrap="1"/>' + 
      '  <td valign="top">"Bryte Rails" is currently manufacturing caboose ' + 
      '    and locomotive ' + 
      '    marker lamps previously produced, for many years, by Maumee Model ' + 
      '    Car and Foundry in Maumee, Ohio.</td></tr>' + 
      '  <tr><td class="gap10" nowrap="1"/></tr>' + 
      '  <tr>' + 
      '  <td colspan="3">The 1 1/2" scale caboose and locomotive markers ' + 
      '    are representative of the kerosene lamps produced by Adam ' + 
      '    Westlake (Adlake) and the Dressel companies in the later half of ' + 
      '    the 1800\'s and the first few decades of the 1900\'s. Currently, ' + 
      '    the lanterns are available in natural brass or matte black ' + 
      '    finish, with or without lighting kits, and with a variety of ' + 
      '    lens colors.</td></tr>' + 
      '  <tr><td class="gap10" nowrap="1"/></tr>' + 
      '  <tr>' + 
      '  <td colspan="3">Dave Mattox, formerly of Bryte, CA, has ' + 
      '    recently moved and relocated the business to Tennessee, and can ' + 
      '    be reached at ' + formatEmailLink() + ' or ' + 
      '    (865) 456-7869.</td></tr>' + 
      '</table>';
}
else if(page == pressReleasePage) {
   description = 
      '<table>' + 
      '  <tr><td class="gap10" nowrap="1"/></tr>' + 
      '  <tr>' + 
      '  <td valign="top"><img src="images/markers.jpg"/></td>' + 
      '  <td class="gap10" nowrap="1"/>' + 
      '  <td valign="top">"Bryte Rails" is currently manufacturing caboose ' + 
      '    and locomotive ' + 
      '    marker lamps previously produced, for many years, by Maumee Model ' + 
      '    Car and Foundry in Maumee, Ohio.</td></tr>' + 
      '  <tr><td class="gap10" nowrap="1"/></tr>' + 
      '  <tr>' + 
      '  <td colspan="3">The 1 1/2" scale caboose and locomotive markers ' + 
      '    are representative of the kerosene lamps produced by Adam ' + 
      '    Westlake (Adlake) and the Dressel companies in the later half of ' + 
      '    the 1800\'s and the first few decades of the 1900\'s. Currently, ' + 
      '    the lanterns are available in natural brass or matte black ' + 
      '    finish, with or without lighting kits, and with a variety of ' + 
      '    lens colors.</td></tr>' + 
      '  <tr><td class="gap10" nowrap="1"/></tr>' + 
      '  <tr>' + 
      '  <td colspan="3">Dave Mattox, formerly of Bryte, CA, has ' + 
      '    recently moved and relocated the business to Tennessee, and can ' + 
      '    be reached at ' + formatEmailLink() + ' or (865) 456-7869. ' + 
      '    Please check our new web page at BryteRails.com.</td></tr>' + 
      '</table>';
}
else if(page == cabooseMarkersPage15) {
   e1 = 0;
   captions[e1++] = new oCaption('Front view');
   captions[e1++] = new oCaption('Side view');
   captions[e1++] = new oCaption('Top view with top open');
   captions[e1++] = new oCaption('Bottom view');

   description = 
      'These 1 1/2" scale lanterns represent the kerosene marker lamps ' + 
      'typical of the late 1800\'s and early 1900\'s and still found in ' + 
      'service on some smaller lines and excursion trains around the ' + 
      'country. These are approximately 1 3/4" tall and come standard with ' + 
      'one red lens and three green lenses.  Each pair of lanterns come with ' + 
      'two ' + formatURLLink(mountingStrapsPage,'mounting straps') + ' and ' + 
      'four ' + formatURLLink(wallBracketsPage,'wall brackets') + '. The ' + 
      'method of mounting the wall brackets will be left to you depending ' + 
      'on your particular construction material and personal skill level.';

   e1 = 0;
   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = 3;
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('1 1/2" Specs (1/8 scale)&90&35');
   specs[e1][e2++] = 'Marker height&1 3/4"';
   specs[e1][e2++] = 'Marker diameter&3/4"';
   specs[e1][e2++] = 'Lens diameter&1/2"';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Options& & ');
// specs[e1][e2++] = formatURLLink(finishesPage,'') + '& ';
   specs[e1][e2++] = formatURLLink(lensColorsPage,'') + '& ';
   specs[e1][e2++] = formatURLLink(lightingKitsPage,'') + '& ';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Additional Hardware& & ');
   specs[e1][e2++] = formatURLLink(mountingStrapsPage,'') + '& ';
   specs[e1][e2++] = formatURLLink(wallBracketsPage,'') + '& ';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Prices& & ');
   specs[e1][e2++] = formatURLLink(priceListPage,'') + '& ';
   e1++;
}
else if(page == locomotiveMarkersPage15) {
   e1 = 0;
   captions[e1++] = new oCaption('Front view');
   captions[e1++] = new oCaption('Side view');
   captions[e1++] = new oCaption('Top view with top open (1)');
   captions[e1++] = new oCaption('Top view with top open (2)');
   captions[e1++] = new oCaption('Bottom view');
   captions[e1++] = new oCaption('Back view of hinge');

   description = 
      'These 1 1/2" scale lamps represent the kerosene markers typical of ' + 
      'the late 1800\'s and early 1900\'s prior to the onset of steam ' + 
      'generators and electrical lighting. These are approximately 1 7/16" ' + 
      'tall and each marker comes standard with one green lens and one clear ' + 
      'lens. No mounting hardware is included since every locomotive ' + 
      'manufacturer and rail line seemed to have their particular position ' + 
      'and style depending on the actual locomotive.';

   e1 = 0;
   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = 3;
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('1 1/2" Specs (1/8 scale)&90&35');
   specs[e1][e2++] = 'Marker height&1 7/16"';
   specs[e1][e2++] = 'Marker diameter&3/4"';
   specs[e1][e2++] = 'Lens diameter&1/2"';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Options& & ');
// specs[e1][e2++] = formatURLLink(finishesPage,'') + '& ';
   specs[e1][e2++] = formatURLLink(lensColorsPage,'') + '& ';
   specs[e1][e2++] = formatURLLink(lightingKitsPage,'') + '& ';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Additional Hardware& & ');
   specs[e1][e2++] = formatURLLink(mountingStrapsPage,'') + '& ';
   specs[e1][e2++] = formatURLLink(wallBracketsPage,'') + '& ';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Prices& & ');
   specs[e1][e2++] = formatURLLink(priceListPage,'') + '& ';
   e1++;
}
else if(page == switchLampsPage15) {
   e1 = 0;
   captions[e1++] = new oCaption('Angled view');
   captions[e1++] = new oCaption('Angled view with hinge');
   captions[e1++] = new oCaption('Top view with top closed');
   captions[e1++] = new oCaption('Top view with top open');
   captions[e1++] = new oCaption('Bottom view');

   description = 
      'These are typical of the switch lamps before the days of electrical ' + 
      'signal lights. They are approximately 2" tall and come standard with ' + 
      'two red and two green lenses, a square mounting lug on the bottom ' + 
      'with a 1/8" hole for mounting on a post, and the large "day targets" ' + 
      'mounted around the lenses.';

   e1 = 0;
   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = 3;
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('1 1/2" Specs (1/8 scale)&110&95');
   specs[e1][e2++] = 'Height&1 3/4"';
   specs[e1][e2++] = 'Diameter&3/4"';
   specs[e1][e2++] = 'Width across lenses&1"';
   specs[e1][e2++] = 'Reflector pads&1 1/8" and 1 1/4"';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Options& & ');
// specs[e1][e2++] = formatURLLink(finishesPage,'') + '& ';
   specs[e1][e2++] = formatURLLink(lensColorsPage,'') + '& ';
   specs[e1][e2++] = formatURLLink(lightingKitsPage,'') + '& ';
   e1++;

   e2 = 0;
// specs[e1]       = new Array();
// specs[e1][e2++] = new oSpecTitle('Additional Hardware& & ');
// e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Prices& & ');
   specs[e1][e2++] = formatURLLink(priceListPage,'') + '& ';
   e1++;
}
else if(page == switchStandsPage15) {
   e1 = 0;
   captions[e1++] = new oCaption('Side view with green lens');
   captions[e1++] = new oCaption('Angled view with red lens');
   captions[e1++] = new oCaption('Angled view with green lens');
   captions[e1++] = new oCaption('Angled view with red lens');
   captions[e1++] = new oCaption('View from the top with top open');
   captions[e1++] = new oCaption('View from the bottom');

   description = 
      'These switch stands are primarily used to act as switch throws. When ' + 
      'used with the \'<a href="' + formatURL(switchLampsPage15) + 
      '">Switch Lamps</a>\', the direction that the switch is positioned is ' + 
      'reflected in the color of the lamp that is visible.';

   e1 = 0;
   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = 3;
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('1 1/2" Specs (1/8 scale)&90&35');
   specs[e1][e2++] = 'Height&Unknown';
   specs[e1][e2++] = 'Diameter&Unknown';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Prices& & ');
   specs[e1][e2++] = formatURLLink(priceListPage,'') + '& ';
   e1++;
}
else if(page == cabooseMarkersPage25) {
   e1 = 0;
   captions[e1++] = new oCaption('Front view');
   captions[e1++] = new oCaption('Angled view with tops open');
   captions[e1++] = new oCaption('Front view with scale');
   captions[e1++] = new oCaption('Top view with top open');

   description = 
      'These 2 1/2" scale lanterns represent the kerosene marker lamps ' + 
      'typical of the late 1800\'s and early 1900\'s and still found in ' + 
      'service on some smaller lines and excursion trains around the ' + 
      'country. These are approximately 3" tall and come standard with ' + 
      'one red lens and three green lenses.  Each pair of lanterns come with ' + 
      'two ' + formatURLLink(mountingStrapsPage,'mounting straps') + '.  The ' + 
      'lanterns can be mounted with the use of a 6-32 machine screw through ' + 
      'the car body and into the drilled and tapped end of the mounting ' + 
      'strap.';

   e1 = 0;
   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = 3;
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('2 1/2" Specs&90&35');
   specs[e1][e2++] = 'Marker height&3"';
   specs[e1][e2++] = 'Marker diameter&1 1/4"';
   specs[e1][e2++] = 'Lens diameter&7/8"';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Options& & ');
// specs[e1][e2++] = formatURLLink(finishesPage,'') + '& ';
   specs[e1][e2++] = formatURLLink(lensColorsPage,'') + '& ';
   specs[e1][e2++] = formatURLLink(lightingKitsPage,'') + '& ';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Additional Hardware& & ');
   specs[e1][e2++] = formatURLLink(mountingStrapsPage,'') + '& ';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Prices& & ');
   specs[e1][e2++] = formatURLLink(priceListPage,'') + '& ';
   e1++;
}
else if(page == locomotiveMarkersPage25) {
   e1 = 0;
   captions[e1++] = new oCaption('Front view');
   captions[e1++] = new oCaption('Top view with top open (1)');
   captions[e1++] = new oCaption('Top view with top open (2)');
   captions[e1++] = new oCaption('Bottom view');
   captions[e1++] = new oCaption('Front view with scale');

   description = 
      'These 2 1/2" scale lamps represent the kerosene markers typical of ' + 
      'the late 1800\'s and early 1900\'s prior to the onset of steam ' + 
      'generators and electrical lighting. These are approximately 2 3/4" ' + 
      'tall and each marker comes standard with one green lens and one clear ' + 
      'lens. No mounting hardware is included since every locomotive ' + 
      'manufacturer and rail line seemed to have their particular position ' + 
      'and style depending on the actual locomotive.';

   e1 = 0;
   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = 3;
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('2 1/2" Specs&90&35');
   specs[e1][e2++] = 'Marker height&2 3/4"';
   specs[e1][e2++] = 'Marker diameter&1 1/4"';
   specs[e1][e2++] = 'Lens diameter&7/8"';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Options& & ');
// specs[e1][e2++] = formatURLLink(finishesPage,'') + '& ';
   specs[e1][e2++] = formatURLLink(lensColorsPage,'') + '& ';
   specs[e1][e2++] = formatURLLink(lightingKitsPage,'') + '& ';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Additional Hardware& & ');
   specs[e1][e2++] = formatURLLink(mountingStrapsPage,'') + '& ';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Prices& & ');
   specs[e1][e2++] = formatURLLink(priceListPage,'') + '& ';
   e1++;
}
else if(page == chandeliersPage15) {
   e1 = 0;
   captions[e1++] = new oCaption('Hanging 1');
   captions[e1++] = new oCaption('Hanging 2');
   captions[e1++] = new oCaption('Hanging 3');
   captions[e1++] = new oCaption('Bottom view');

   description = 
      'These chandeliers are typical of those used for passenger and parlor ' + 
      'cars around the turn of the century (late 1800\'s to early 1900\'s) ' + 
      'during the transition from kerosene or gas lighting to electric ' + 
      'lights.  The top round is 3 1/2" diameter and the overall height is ' + 
      'about 3" from the ceiling location to the bottom.  They mount with a ' + 
      'single 3/8" stud in the center and are set up with 12 vdc. grain of ' + 
      'wheat bulbs ready to connect to your 12vdc. train power or a "gel ' + 
      'cell" type battery of your choice.<br/>&nbsp;<br/>' + 
      'These will give your train that perfect "glow" for night time running.';

   e1 = 0;
   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = 3;
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('1 1/2" Specs (1/8 scale)&90&80');
   specs[e1][e2++] = 'Top round&3 1/2" diameter';
   specs[e1][e2++] = 'Overall height&3"';
   specs[e1][e2++] = 'Mount&3/8" stud';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Power Supply& & ');
   specs[e1][e2++] = '12 vdc.& ';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Prices& & ');
   specs[e1][e2++] = formatURLLink(priceListPage,'') + '& ';
   e1++;
}
else if(page == finishesPage) {
   e1 = 0;
   captions[e1++] = new oCaption('Natural brass');
   captions[e1++] = new oCaption('Matte black');

   description = 
      'All lanterns come standard with natural brass finish.  A matte black ' + 
      'finish is available and needs to be selected when ordering lanterns.';

   e1 = 0;
   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = 3;
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Prices& & ');
   specs[e1][e2++] = formatURLLink(priceListPage,'') + '& ';
   e1++;
}
else if(page == lensColorsPage) {
   e1 = 0;
   captions[e1++] = new oCaption('Green lens');
   captions[e1++] = new oCaption('Red lens');
   captions[e1++] = new oCaption('Clear lens');
   captions[e1++] = new oCaption('Blue lens');
   captions[e1++] = new oCaption('White lens');
   captions[e1++] = new oCaption('Yellow lens');
   captions[e1++] = new oCaption('All colors');
   captions[e1++] = new oCaption('With light');

   description = 
      'The selection of lens colors available is:' + 
      '<br/>&nbsp;<br/>' + 
      '<table cellpadding="0" cellspacing="0">' + 
      '<tr><td class="description" valign="top">' + 
      '1 1/2" colors (1/8 scale)<br/>' + 
      '<li>green</li>' + 
      '<li>red</li>' + 
      '<li>clear</li>' + 
      '<li>blue</li>' + 
      '<li>white</li>' + 
      '<li>yellow</li>' + 
      '</td>' + 
      '<td nowrap="1" width="50"/>'+ 
      '<td class="description" valign="top">' + 
      '2 1/2" colors<br/>' + 
      '<li>green</li>' + 
      '<li>red</li>' + 
      '<li>clear</li>' + 
      '</td></tr>' + 
      '</table>' + 
      '<br/>&nbsp;<br/>' + 
      'These can be attached with a cyanoacrylate (C.A.), crazy glue, super ' + 
      'glue or similar cement (not included).' + 
      '<br/>&nbsp;<br/>' + 
      '<table bgcolor="#f0f0f0">' + 
      '<tr><td>&nbsp;&nbsp;' + 
      'Please note that the lens colors may vary slightly from the pictures ' + 
      'above.&nbsp;&nbsp;</td></tr>' + 
      '</table>';

   e1 = 0;
   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = 3;
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('1 1/2" Specs (1/8 scale)&70&35');
   specs[e1][e2++] = 'Diameter&1/2"';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('2 1/2" Specs&70&35');
   specs[e1][e2++] = 'Diameter&7/8"';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Prices& & ');
   specs[e1][e2++] = formatURLLink(priceListPage,'') + '& ';
   e1++;
}
else if(page == lightingKitsPage) {
   e1 = 0;
   captions[e1++] = new oCaption('View (1)');
   captions[e1++] = new oCaption('View (2)');

   description = 
      'Kits consist of one bulb and mounting tube.  The bulb is "grain of ' + 
      'wheat" style with 6" leads suitable for 6 to 12 vdc. power supply. ' + 
      'These need to be mounted inside lamps with an appropriate cement ' + 
      '(not supplied). Tops on all lamps open for installation of lighting ' + 
      'kits if desired. When lamp is mounted using center hole in bottom ' + 
      'an additional hole will be required for the wiring.  This lighting ' + 
      'kit works well with both 1 1/2" and 2 1/2" scale lamps.';

   e1 = 0;
   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = 3;
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Power Supply& & ');
   specs[e1][e2++] = '6 to 12 vdc.& ';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Prices& & ');
   specs[e1][e2++] = formatURLLink(priceListPage,'') + '& ';
   e1++;
}
else if(page == mountingStrapsPage) {
   e1 = 0;
   captions[e1++] = new oCaption('View (1)');
   captions[e1++] = new oCaption('View (2)');

   description = 
      'Available hardware options include mounting straps to go around ' + 
      'lantern bodies (standard on caboose markers) and extra wall brackets ' + 
      'for relocating and moving lanterns to other cars.  Wall brackets are ' + 
      'available for 1 1/2" only.';

   e1 = 0;
   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = 3;
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('1 1/2" Specs (1/8 scale)&85&35');
   specs[e1][e2++] = 'Strap diameter&3/4"';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('2 1/2" Specs&85&35');
   specs[e1][e2++] = 'Strap diameter&1 1/4"';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Prices& & ');
   specs[e1][e2++] = formatURLLink(priceListPage,'') + '& ';
   e1++;
}
else if(page == wallBracketsPage) {
   e1 = 0;
   captions[e1++] = new oCaption('Top view');

   description = 
      'Available hardware options include mounting straps to go around ' + 
      'lantern bodies (standard on caboose markers) and extra wall brackets ' + 
      'for relocating and moving lanterns to other cars.  Wall brackets are ' + 
      'available for 1 1/2" only.';

   e1 = 0;
   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = 3;
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('1 1/2" Specs (1/8 scale)&70&35');
   specs[e1][e2++] = 'Height&3/8"';
   specs[e1][e2++] = 'Width&1/2"';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Prices& & ');
   specs[e1][e2++] = formatURLLink(priceListPage,'') + '& ';
   e1++;
}
else if(page == madeeKKidKarKitsPage) {
   description = 
      '<table cellpadding="20" cellspacing="20" width="100%">' + 
      '<tr><td class="gap10" nowrap="1"/></tr>' + 

      '<tr>' + 
      '<td width="100%">' + 
      '<table cellpadding="0" cellspacing="2" width="100%">' + 
      '<tr>' + 
      '<td class="gap20" nowrap="1"/>' + 
      '<td width="100%">' + 
      'The Madee K series of "kid kar kits" got started because a six year ' + 
      'old named "Madee" asked for a hopper car for Christmas, but rather ' + 
      'than just give her a hopper car - she got a hopper car kit so she ' + 
      'could build it herself.  She loves it and uses it a lot.  So many ' + 
      'people wanted one, we decided to put out kits for the public.' + 
      '</td>' + 
      '<td class="gap20" nowrap="1"/>' + 
      '<td>' + 
      '<table cellpadding="0" cellspacing="0">' + 
      '<tr>' + addProductPhoto('p401-1',200,200) + '</tr>' + 
      '<tr>' + 
      '<td>&#x2022;&nbsp;' + formatURLLink(madeeKHopperPage,'') + '</td></tr>' + 
      '</table></td>' + 
      '<td class="gap20" nowrap="1"/></tr>' + 
      '</table></td></tr>' + 
      '<tr><td class="gap20" nowrap="1"/></tr>' + 

      '<tr>' + 
      '<td width="100%">' + 
      '<table cellpadding="0" cellspacing="2" width="100%">' + 
      '<tr>' + 
      '<td>' + 
      '<table cellpadding="0" cellspacing="0">' + 
      '<tr>' + addProductPhoto('p402-1',200,200) + '</tr>' + 
      '<tr>' + 
      '<td>&#x2022;&nbsp;' + formatURLLink(madeeKGondolaPage,'') + '</td></tr>' + 
      '</table></td>' + 
      '<td class="gap20" nowrap="1"/>' + 
      '<td width="100%">' + 
      'All of the cars are the same basic size and fit the same 31" four ' + 
      'wheel "bobber" style chassis which we are selling separately.  All ' + 
      'of the kits come as precut pieces with all pilot holes for ' + 
      'starting the nails predrilled, and parts are labeled with color coded ' + 
      'numbered dots that correspond to the directions for easy assembly.  ' + 
      '</td>' + 
      '<td class="gap20" nowrap="1"/></tr>' + 
      '</table></td></tr>' + 
      '<tr><td class="gap20" nowrap="1"/></tr>' + 

      '<tr>' + 
      '<td width="100%">' + 
      '<table cellpadding="0" cellspacing="2" width="100%">' + 
      '<tr>' + 
      '<td class="gap20" nowrap="1"/>' + 
      '<td width="100%">' + 
      'Most children should be able to complete these with minimal ' + 
      'assistance.  All nails and bolts are supplied - hammer, wrench, glue ' + 
      'and the child to assemble are not included.' + 
      '</td>' + 
      '<td class="gap20" nowrap="1"/>' + 
      '<td>' + 
      '<table cellpadding="0" cellspacing="0">' + 
      '<tr>' + addProductPhoto('p403-1',200,200) + '</tr>' + 
      '<tr>' + 
      '<td>&#x2022;&nbsp;' + formatURLLink(madeeKBoxCarPage,'') + '</td></tr>' + 
      '</table></td>' + 
      '<td class="gap20" nowrap="1"/></tr>' + 
      '</table></td></tr>' + 
      '<tr><td class="gap20" nowrap="1"/></tr>' + 

      '<tr>' + 
      '<td width="100%">' + 
      '<table cellpadding="0" cellspacing="2" width="100%">' + 
      '<tr>' + 
      '<td>' + 
      '<table cellpadding="0" cellspacing="0">' + 
      '<tr>' + addProductPhoto('p404-1',200,200) + '</tr>' + 
      '<tr>' + 
      '<td>&#x2022;&nbsp;' + formatURLLink(madeeKCaboosePage,'') + '</td></tr>' + 
      '</table></td>' + 
      '<td class="gap20" nowrap="1"/>' + 
      '<td width="100%">' + 
      'We also did not include couplers or drawbars, since we felt some may ' + 
      'want to use drawbars too eliminate the need for safety chains while ' + 
      'more experienced operators may want to be able to couple/uncouple ' + 
      'cars in their consist.' + 
      '</td>' + 
      '<td class="gap20" nowrap="1"/></tr>' + 
      '</table></td></tr>' + 
      '<tr><td class="gap20" nowrap="1"/></tr>' + 

      '<tr>' + 
      '<td width="100%">' + 
      '<table cellpadding="0" cellspacing="2" width="100%">' + 
      '<tr>' + 
      '<td class="gap20" nowrap="1"/>' + 
      '<td width="100%">' + 
      'These kits meet all requirements for being compatible with the ' + 
      'standards widely accepted in the hobby - coupler height, wheel ' + 
      'profiles, gauge, etc.  The chassis is not included with the car body ' + 
      'and all car kits will fit the same chassis.  You may purchase as ' + 
      'many chassis as you would like or just one and change cars as ' + 
      'desired depending on funding and available storage space.' + 
      '</td>' + 
      '<td class="gap20" nowrap="1"/>' + 
      '<td>' + 
      '<table cellpadding="0" cellspacing="0">' + 
      '<tr>' + addProductPhoto('p405-1',200,200) + '</tr>' + 
      '<tr>' + 
      '<td>&#x2022;&nbsp;' + formatURLLink(madeeKChassisPage,'') + '</td></tr>' + 
      '</table></td>' + 
      '<td class="gap20" nowrap="1"/></tr>' + 
      '</table></td></tr>' + 

      '<tr><td height="20" nowrap="1"/></tr>' + 

      '<tr>' + 
      '<td width="100%">' + 
      '<table cellpadding="0" cellspacing="2" width="100%">' + 
      '<tr>' + 
      '<td class="gap20" nowrap="1"/>' + 
      '<td>' + 
      '<table cellpadding="0" cellspacing="0">' + 
      addProductPhoto('p401-5',188,250) + 
      '<td class="gap20" nowrap="1"/>' + 
      '<td valign="top" width="100%">' + 
      'The pictures to the left and below are pictures of the hopper car in ' + 
      'action at Blue Ridge Live Steamers outside of Roanoke, Virgina.</td>' + 
      '</table></td>' + 
      '<td class="gap20" nowrap="1"/></tr>' + 
      '</table></td></tr>' + 

      '<tr><td height="20" nowrap="1"/></tr>' + 

      '<tr>' + 
      '<td width="100%">' + 
      '<table cellpadding="0" cellspacing="2" width="100%">' + 
      '<tr>' + 
      '<td class="gap20" nowrap="1"/>' + 
      addProductPhoto('p401-6',188,250) + 
      '<td class="gap20" nowrap="1"/>' + 
      '<td>' + 
      '<table cellpadding="0" cellspacing="0">' + 
      addProductPhoto('p401-7',250,188) + 
      '</table></td>' + 
      '<td class="gap20" nowrap="1"/></tr>' + 
      '</table></td></tr>' + 

//    '<tr><td class="gap20" nowrap="1"/></tr>' + 

//    '<tr><td>' + 
//    '<object width="320" height="265">' + 
//    '<param name="movie" value="http://www.youtube.com/v/VCV7mxLaXd0&hl=en&fs=1&rel=0&color1=0x234900&color2=0x4e9e00"></param>' + 
//    '<param name="allowFullScreen" value="true"></param>' + 
//    '<param name="allowscriptaccess" value="always"></param>' + 
//    '<embed src="http://www.youtube.com/v/VCV7mxLaXd0&hl=en&fs=1&rel=0&color1=0x234900&color2=0x4e9e00" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="320" height="265">' + 
//    '</embed>' + 
//    '</object></td></tr>' + 

      '</table>';
}
else if(page == madeeKHopperPage) {
   e1 = 0;
   captions[e1++] = new oCaption('Side view');

   description = 
      'This car is just that – a single dump (non working) hopper which is ' + 
      'large enough for a child to ride in.  There are several detail parts ' + 
      'to be put on this car which really make it a good looking hopper.  ' + 
      'The construction and directions are simple and easy to follow, the ' + 
      'use of a good exterior grade carpenter\'s glue is recommended for ' + 
      'all kits and a small amount of measuring is required.';

   e1 = 0;
   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = 3;
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('1 1/2" Specs (1/8 scale)&90&35');
   specs[e1][e2++] = 'Height&10"';
   specs[e1][e2++] = 'Width&14 3/4"';
   specs[e1][e2++] = 'Length&30"';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Other Kid Kar Kits& & ');
   specs[e1][e2++] = formatURLLink(madeeKGondolaPage,'') + '& ';
   specs[e1][e2++] = formatURLLink(madeeKBoxCarPage,'') + '& ';
   specs[e1][e2++] = formatURLLink(madeeKCaboosePage,'') + '& ';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Prices& & ');
   specs[e1][e2++] = 'Hopper Car Kit&$150';
   specs[e1][e2++] = formatURLLink(madeeKChassisPage,'Chassis') + '&$250';
   e1++;
}
else if(page == madeeKGondolaPage) {
   e1 = 0;
   captions[e1++] = new oCaption('Side view');
   captions[e1++] = new oCaption('Kit view');
   captions[e1++] = new oCaption('Side panel');
   captions[e1++] = new oCaption('Angle view');

   description = 
      'This is an open box style car suitable for a child to sit in or ' + 
      'carry important cargo.  The detailing is very simple, but gives a ' + 
      'nice looking car that can be used as is or detailed to suit the ' + 
      'owner\'s taste.  As in all of the kits, we recommend that all joints ' + 
      'are glued and nailed and there is a minor amount of measuring that ' + 
      'may need to be done, such as, part location or overhang on the ends ' + 
      'of trim pieces.';

   e1 = 0;
   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = 3;
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('1 1/2" Specs (1/8 scale)&90&35');
   specs[e1][e2++] = 'Height&6"';
   specs[e1][e2++] = 'Width&14 3/4"';
   specs[e1][e2++] = 'Length&30"';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Other Kid Kar Kits& & ');
   specs[e1][e2++] = formatURLLink(madeeKHopperPage,'') + '& ';
   specs[e1][e2++] = formatURLLink(madeeKBoxCarPage,'') + '& ';
   specs[e1][e2++] = formatURLLink(madeeKCaboosePage,'') + '& ';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Prices& & ');
   specs[e1][e2++] = 'Gondola Car Kit&$100';
   specs[e1][e2++] = formatURLLink(madeeKChassisPage,'Chassis') + '&$250';
   e1++;
}
else if(page == madeeKBoxCarPage) {
   e1 = 0;
   captions[e1++] = new oCaption('Side view');
   captions[e1++] = new oCaption('Kit view');
   captions[e1++] = new oCaption('Building view');
   captions[e1++] = new oCaption('Angle view');
   captions[e1++] = new oCaption('Kit view');

   description = 
      'This box car is a very simple box construction with non-operating ' + 
      'doors and no end trim.  The roof is designed to be removable, but ' + 
      'can be more permanently mounted with hinges if desired (hinges are ' + 
      'not included).  We recommend the use of a good exterior grade ' + 
      'carpenter\'s glue on all joints when this kit is assembled and there ' + 
      'is a little measuring needed to place the trim on the sides of the ' + 
      'box.';

   e1 = 0;
   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = 3;
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('1 1/2" Specs (1/8 scale)&90&35');
   specs[e1][e2++] = 'Height&13"';
   specs[e1][e2++] = 'Width&14 3/4"';
   specs[e1][e2++] = 'Length&30"';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Other Kid Kar Kits& & ');
   specs[e1][e2++] = formatURLLink(madeeKHopperPage,'') + '& ';
   specs[e1][e2++] = formatURLLink(madeeKGondolaPage,'') + '& ';
   specs[e1][e2++] = formatURLLink(madeeKCaboosePage,'') + '& ';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Prices& & ');
   specs[e1][e2++] = 'Box Car Kit&$200';
   specs[e1][e2++] = formatURLLink(madeeKChassisPage,'Chassis') + '&$250';
   e1++;
}
else if(page == madeeKCaboosePage) {
   e1 = 0;
   captions[e1++] = new oCaption('Side view');
   captions[e1++] = new oCaption('Kit view');
   captions[e1++] = new oCaption('Building view');
   captions[e1++] = new oCaption('Building view');
   captions[e1++] = new oCaption('Building view');

   description = 
      'This caboose is styled after the old four wheel “bobber” caboose and ' + 
      'the builder has the choice of putting the cupola over either end or ' + 
      'the center as they wish making a very unique “personal” car.  The ' + 
      'roof is designed to be completely removable or can be more ' + 
      'permanently mounted with hinges (not supplied).';

   e1 = 0;
   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = 3;
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('1 1/2" Specs (1/8 scale)&90&35');
   specs[e1][e2++] = 'Height&15"';
   specs[e1][e2++] = 'Width&14 3/4"';
   specs[e1][e2++] = 'Length&30"';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Other Kid Kar Kits& & ');
   specs[e1][e2++] = formatURLLink(madeeKHopperPage,'') + '& ';
   specs[e1][e2++] = formatURLLink(madeeKGondolaPage,'') + '& ';
   specs[e1][e2++] = formatURLLink(madeeKBoxCarPage,'') + '& ';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Prices& & ');
   specs[e1][e2++] = 'Caboose Kit&$250';
   specs[e1][e2++] = formatURLLink(madeeKChassisPage,'Chassis') + '&$250';
   e1++;
}
else if(page == madeeKChassisPage) {
   e1 = 0;
   captions[e1++] = new oCaption('Side view');

   description = 
      'This chassis is a four wheeled “bobber” style which fits all the car ' + 
      'kits and is mounted with just two bolts (the coupler / drawbar ' + 
      'mounting bolts).  All four wheels are softly sprung for a smooth ' + 
      'ride when the car is empty and have stops built in so the car will ' + 
      'carry the weight of a child riding in the car.  These chassis is ' + 
      'designed to have the couple pockets compatible with the standards ' + 
      'most trains in the hobby follow and are set to 7 1/2” gauge (they can ' + 
      'be ordered at 7 1/4” if desired).';

   e1 = 0;
   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = 3;
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('1 1/2" Specs (1/8 scale)&90&35');
   specs[e1][e2++] = 'Length&31"';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Madee K Kid Kar Kits& & ');
   specs[e1][e2++] = formatURLLink(madeeKHopperPage,'') + '& ';
   specs[e1][e2++] = formatURLLink(madeeKGondolaPage,'') + '& ';
   specs[e1][e2++] = formatURLLink(madeeKBoxCarPage,'') + '& ';
   specs[e1][e2++] = formatURLLink(madeeKCaboosePage,'') + '& ';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = new oSpecTitle('Prices& & ');
   specs[e1][e2++] = 'Chassis&$250';
   e1++;
}
else if(page == photoGalleryPage) {
   description = 
      '<table>' + 

      '<tr><td>&nbsp;<br/>Photo submitted by Bill Bryan</td></tr>' + 
      '<tr><td height="5" nowrap="1"/></tr>' + 
      '<tr>' + addPhoto('billb','Photo sumitted by Bill Bryan',334,445) + '</tr>' + 
      '<tr><td height="10" nowrap="1"/></tr>' + 

      '<tr><td>&nbsp;<br/>Photos submitted by Norm Warfield</td></tr>' + 
      '<tr><td height="5" nowrap="1"/></tr>' + 
      '<tr>' + addPhoto('normw','Photo sumitted by Norm Warfield',332,445) + '</tr>' + 
      '<tr>' + addPhoto('normw2','Photo sumitted by Norm Warfield',334,445) + '</tr>' + 
      '<tr><td height="10" nowrap="1"/></tr>' + 

      '<tr><td>&nbsp;<br/>Photo submitted by Leo Younglow</td></tr>' + 
      '<tr><td height="5" nowrap="1"/></tr>' + 
      '<tr>' + addPhoto('leoy','Photo sumitted by Leo Younglow',593,445) + '</tr>' + 
      '<tr><td height="10" nowrap="1"/></tr>' + 

      '<tr><td>&nbsp;<br/>Photo submitted by Doug Pyatt</td></tr>' + 
      '<tr><td height="5" nowrap="1"/></tr>' + 
      '<tr>' + addPhoto('dougp','Photo sumitted by Doug Pyatt',334,445) + '</tr>' + 
      '<tr><td height="10" nowrap="1"/></tr>' + 

      '<tr><td>&nbsp;<br/>Photo submitted by Jon Hollahan</td></tr>' + 
      '<tr><td height="5" nowrap="1"/></tr>' + 
      '<tr>' + addPhoto('jonh','Photo sumitted by Jon Hollahan',296,445) + '</tr>' + 
      '<tr><td height="10" nowrap="1"/></tr>' + 

      '<tr><td>&nbsp;<br/>Photo submitted by Milon Thorley</td></tr>' + 
      '<tr><td height="5" nowrap="1"/></tr>' + 
      '<tr>' + addPhoto('milon','Photo sumitted by Milon Thorley',295,445) + '</tr>' + 
      '<tr><td height="10" nowrap="1"/></tr>' + 

      '<tr><td>&nbsp;<br/>Photo submitted by Mike M.</td></tr>' + 
      '<tr><td height="5" nowrap="1"/></tr>' + 
      '<tr>' + addPhoto('mikem','Photo sumitted by Mike M.',346,445) + '</tr>' + 
      '<tr><td height="10" nowrap="1"/></tr>' + 

      '<tr><td>&nbsp;<br/>Photo submitted by Bill G.</td></tr>' + 
      '<tr><td height="5" nowrap="1"/></tr>' + 
      '<tr>' + addPhoto('billg1','Photo sumitted by Bill G.',344,445) + '</tr>' + 
      '<tr><td height="10" nowrap="1"/></tr>' + 
      '<tr>' + addPhoto('billg2','Photo sumitted by Bill G.',344,445) + '</tr>' + 
      '</table>';
}
else if(page == priceListPage) {
   e1 = 0;
   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = cabooseMarkersPage15;
   specs[e1][e2++] = 'p100-1.jpg';
   specs[e1][e2++] = '';
   specs[e1][e2++] = '$100.00 / pair';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = locomotiveMarkersPage15;
   specs[e1][e2++] = 'p101-1.jpg';
   specs[e1][e2++] = '';
   specs[e1][e2++] = '$85.00 / pair';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = switchLampsPage15;
   specs[e1][e2++] = 'p102-1.jpg';
   specs[e1][e2++] = '';
   specs[e1][e2++] = '$65.00 / each';
   e1++;

   e2 = 0;
// specs[e1]       = new Array();
// specs[e1][e2++] = switchStandsPage15;
// specs[e1][e2++] = 'p103-1.jpg';
// specs[e1][e2++] = '';
// specs[e1][e2++] = '$0.00 / pair';
// e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = chandeliersPage15;
   specs[e1][e2++] = 'p106-1.jpg';
   specs[e1][e2++] = 
      'wired with two 12vdc. grain of wheat bulbs installed';
   specs[e1][e2++] = '$50.00 / each&$45.00 / each (3 or more)';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = cabooseMarkersPage25;
   specs[e1][e2++] = 'p104-1.jpg';
   specs[e1][e2++] = '';
   specs[e1][e2++] = '$215.00 / pair';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = locomotiveMarkersPage25;
   specs[e1][e2++] = 'p105-1.jpg';
   specs[e1][e2++] = '';
   specs[e1][e2++] = '$185.00 / pair';
   e1++;

   e2 = 0;
// specs[e1]       = new Array();
// specs[e1][e2++] = finishesPage;
// specs[e1][e2++] = 'p200-1.jpg';
// specs[e1][e2++] = 'natural brass<br/>&nbsp;&nbsp;matte black';
// specs[e1][e2++] = '&nbsp;<br/>&nbsp;&nbsp;No charge<br/>&nbsp;&nbsp;To be determined';
// e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = lensColorsPage;
   specs[e1][e2++] = 'p201-7.jpg';
   specs[e1][e2++] = 'Green, red, clear, white, blue and yellow.';
   specs[e1][e2++] = '$.50 / each (1.5")&$.75 / each (2.5")';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = lightingKitsPage;
   specs[e1][e2++] = 'p202-1.jpg';
   specs[e1][e2++] = '6 to 12 vdc kit for illuminating lamps';
   specs[e1][e2++] = '$3.50 / each';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = mountingStrapsPage;
   specs[e1][e2++] = 'p300-1.jpg';
   specs[e1][e2++] = '';
   specs[e1][e2++] = '$12.50 / each';
   e1++;

   e2 = 0;
   specs[e1]       = new Array();
   specs[e1][e2++] = wallBracketsPage;
   specs[e1][e2++] = 'p301-1.jpg';
   specs[e1][e2++] = '';
   specs[e1][e2++] = '$2.50 / each';
   e1++;
}
else if(page == trackLinksPage) {
   description = 
      '<table cellspacing="2" height="100%" width="100%">' + 
      '  <tr>' + 
      '  <td height="100%" valign="top" width="100%">' + 
      '  <table cellspacing="5" height="100%" width="100%">' + 
      '    <tr><td height="100%" valign="top" width="100%">' + 
      addLinkPageLink(
         'Chatanoga Society of Model Engineers',
         'http://csme.livesteamtrains.com/',
         'The Eagle Point Railroad<br/>Dunlap, TN','','','') + 
      addLinkPageLink(
         'Maricopa Live Steamers','http://maricopalivesteamers.com/',
         'Pinnacle Peak Road<br/>22822 North 43rd Avenue<br/>Phoenix, AZ 85310',
         '','','') + 
      addLinkPageLink(
         'Mid-South Live Steamers','http://www.midsouthlivesteamers.org/',
         'Maury County Park<br/>Columbia, TN','','',
         'webmaster@midsouthlivesteamers.org') + 
      addLinkPageLink(
         'Sacramento Valley Live Steamers','http://www.svlsrm.org/',
         'Hagan Community Park<br/>PO Box 273<br/>Rancho Cordova, CA 95741',
         '(916) 361-7140','','info@svlsrm.org') + 
      addLinkPageLink(
         'Triad Live Steamers','http://www.triadlivesteamers.org/',
         'Farmington Motor Sports Park<br/>Farmington, NC','','',
         'info@triadlivesteamers.org') + 
      '    </td></tr>' + 
      '  </table></td></tr>' + 
      '</table></td></tr>';
}
else if(page == informationLinksPage) {
   description = 
      '<table cellspacing="2" height="100%" width="100%">' + 
      '  <tr>' + 
      '  <td height="100%" valign="top" width="100%">' + 
      '  <table cellspacing="5" height="100%" width="100%">' + 
      '    <tr><td height="100%" valign="top" width="100%">' + 
      addLinkPageLink('IBLS Wheel Standards','ibls.htm','','','','') + 
      '    </td></tr>' + 
      '  </table></td></tr>' + 
      '</table></td></tr>';
}
else if(page == periodicalLinksPage) {
   description = 
      '<table cellspacing="2" height="100%" width="100%">' + 
      '  <tr>' + 
      '  <td height="100%" valign="top" width="100%">' + 
      '  <table cellspacing="5" height="100%" width="100%">' + 
      '    <tr><td height="100%" valign="top" width="100%">' + 
      addLinkPageLink(
         'The 7+ Railroader','http://www.7plusrailroader.com/','','','','') + 
      addLinkPageLink(
         'Home Railway Journal','http://www.homerailwayjournal.com/',
         '9647 Folsom Blvd, #106<br/>Sacramento, CA 95827','(916) 363-6620','',
         'matt@homerailwayjournal.com') + 
      addLinkPageLink(
         'Live Steam and Outdoor Railroading','http://www.livesteam.net/',
         'PO Box 1810<br/>Traverse City, MI 49685-1810','(800) 447-7367','',
         'circulation@villagepress.com') + 
      '    </td></tr>' + 
      '  </table></td></tr>' + 
      '</table></td></tr>';
}
else if(page == supplierLinksPage) {
   description = 
      '<table cellspacing="2" height="100%" width="100%">' + 
      '  <tr>' + 
      '  <td height="100%" valign="top" width="100%">' + 
      '  <table cellspacing="5" height="100%" width="100%">' + 
      '    <tr><td height="100%" valign="top" width="100%">' + 
      addLinkPageLink(
         'Allen Models','','Goleta, CA 93117-1808','(805) 967-2095','','') + 
      addLinkPageLink(
         'Branchline Products','http://www.hollyhockfarms.com/branchline/','',
         '(970) 535-4936','','') + 
      addLinkPageLink(
         'Bryte Rails','http://bryterails.com/','Strawberry Plains, TN',
         '(865) 456-7869','','Dave@BryteRails.com') + 
      addLinkPageLink(
         'Cannonball, Ltd','http://www.cannonballltd.com/',
         '11501 East Waterloo Road<br/>Arcadia, OK 73007','(405) 524-4400',
         '(405) 396-8335','trains@cannonballltd.com') + 
      addLinkPageLink(
         'Carr\'s Locomotives','http://www.carrslocomotives.com/',
         '1638 Industrial Avenue<br/>Port Coquitlam, British Columbia ' + 
         'V3C 6N3','(604) 464-6098','(604) 464-6018','carrmach@axionet.com') + 
      addLinkPageLink(
         'Coles\' Power Models, Inc.','http://www.colespowermodels.com/',
         'PO Box 623<br/>Warren, TX 77664','(409) 547-3400','(409) 547-3444',
         '') + 
      addLinkPageLink(
         'E&amp;S Lines','http://eslinesfl.com/',
         'A912 Central Avenue<br/>PO Box 656<br/>Ellenton, FL 34222',
         '(800) 258-2879','(941) 722-1311','rreese@tampabay.rr.com') + 
      addLinkPageLink(
         'Hickory Ridge Locomotive &amp; Supply Company',
         '', // 'http://www.hickoryridgeloco.com/',
         'PO Box 212<br/>Kimberton, PA 19442','(610) 935-6123','','') + 
      addLinkPageLink(
         'Miracle Railroad Products','http://www.miraclerailroadproducts.com/',
         '2834 Midway Road<br/>Shady Dale, GA 31085','(770) 987-5982','',
         'connie@miraclerailroadproducts.com') + 
      addLinkPageLink(
         'Mountain Car Company','http://www.mountaincar.com/',
         '219 Rowan Street<br/>PO Box 1073<br/>Salem, VA 24153',
         '(540) 387-0124 or (800) 780-0124','(540) 387-4372',
         'mcc@mountaincar.com') + 
      addLinkPageLink(
         'Online Metals','http://www.onlinemetals.com/',
         '1138 West Ewing<br/>Seattle, WA 98119',
         '(800) 704-2157 or (206) 285-8603','(800) 533-6350 or (206) 285-7836', 
         'sales@onlinemetals.com') + 
      addLinkPageLink(
         'Precision Steel Car','http://www.precisionsteelcar.com/','',
         '(513) 571-5739 or (513) 759-0636','','info@precisionsteelcar.com') + 
      addLinkPageLink(
         'Rail Rider Supply','http://www.railridersupply.com/',
         'Santa Fe Springs, CA 90670','(562) 945-2985','',
         'info@railridersupply.com') + 
      addLinkPageLink(
         'Rail Systems','http://www.railsystemsco.com/',
         'Sutherlin, OR 97479','(541) 459-3809','',
         'trainguys@peoplepc.com') + 
      addLinkPageLink(
         'Real Trains','http://www.realtrains.com/',
         '32215-D Dunlap Boulevard<br/>Yucaipa, CA 92399','(909) 446-0600',
         '(909) 795-9320','info@realtrains.com') + 
      addLinkPageLink(
         'Rio Grande Associates','http://www.riograndeassociates.com/',
         '11129 Nantucket<br/>Wichita, KS 67212','(316) 250-9249',
         '(316) 721-0317','riogrand@southwind.net') + 
      addLinkPageLink(
         'Roll Models, Inc','http://www.rmirailworks.com/','Fresno, CA 93725',
         '(559) 441-8686','','info@rmirailworks.com') + 
      addLinkPageLink(
         'Scale Products Company','http://www.trainsignals.com/',
         '7054 CR 521<br/>Bayfield, CO 81122','(970) 946-4180','',
         'dennis@trainsignals.com') + 
      addLinkPageLink(
         'Shay Locomotives','http://www.geocities.com/shay_locomotive/',
         'Ken Schroeder<br/>1016 Irma Lane<br/>Gardnerville, NV 89410',
         '(775) 265-3632','','shaylocomotives@charter.net') + 
      addLinkPageLink(
         'Super Scale','','Grover Beach, CA 93433','','','') + 
      addLinkPageLink(
         'The Locomotive Works','http://www.littleengines.com/',
         'Little Engines Of California<br/>131 La Grande Avenue<br/>' + 
         'Moss Beach, CA 94038','(650) 728-1852','(650) 728-8050',
         'locoworks@aol.com') + 
      addLinkPageLink(
         'The Locomotive Works','http://www.littleengines.com/',
         'Little Engines Of New Jersey<br/>2503 Saylors Pond Road<br/>' + 
         'Wrightstown, NJ 08562','(609) 723-LENJ (5365)','',
         'highiron@aol.com') + 
      addLinkPageLink(
         'The Passenger Car Company','http://www.thepasscar.com/',
         '11709 Nambe NE<br/>Albuquerque, NM 87123','(505) 239-5218','',
         'passcarco@aol.com') + 
      '    </td></tr>' + 
      '  </table></td></tr>' + 
      '</table></td></tr>';
}
else if(page == webLinksPage) {
   description = 
      '<table cellspacing="2" height="100%" width="100%">' + 
      '  <tr>' + 
      '  <td height="100%" valign="top" width="100%">' + 
      '  <table cellspacing="5" height="100%" width="100%">' + 
      '    <tr><td height="100%" valign="top" width="100%">' + 
      '    </td></tr>' + 
      '  </table></td></tr>' + 
      '</table></td></tr>';
}
else if(page == contactUsPage) {
   description = 
      '&nbsp;<br/>' + 
      '<form action="http://www.directcon.net/cgi-bin/FormMail.pl" ' + 
      '  method="POST">' + 
      '<table>' + 
      '  <tr><td nowrap="1">Subject:</td></tr>' + 
      '  <tr><td><select name="subject">' + 
      '    <option>My Order</option>' + 
      '    <option>My Comments</option>' + 
      '    <option>My Suggestions</option>' + 
      '    <option>Others</option>' + 
      '  </select></td></tr>' + 
      '  <tr><td height="10" nowrap="1"/></tr>' + 

      '  <tr><td nowrap="1">Your Name:</td></tr>' + 
      '  <tr><td><input name="realname" size="30" type="text"/></td></tr>' + 
      '  <tr><td height="10" nowrap="1"/></tr>' + 

      '  <tr><td nowrap="1">Your Email Address:</td></tr>' + 
      '  <tr><td><input name="email" size="30" type="text"/></td></tr>' + 
      '  <tr><td height="10" nowrap="1"/></tr>' + 

      '  <tr><td nowrap="1">Your Phone:</td></tr>' + 
      '  <tr><td><input name="phone" size="30" type="text"/> ' + 
      '    (not required)</td></tr>' + 
      '  <tr><td height="10" nowrap="1"/></tr>' + 

      '  <tr><td nowrap="1">Message:</td></tr>' + 
      '  <tr><td><textarea cols="60" name="comments" rows="10"></textarea>' + 
      '    </td></tr>' + 
      '  <tr><td height="10" nowrap="1"/></tr>' + 

      '  <tr><td>' + 
      '  <input name="recipient" type="hidden" value="davem@directcon.net"/>' + 
      '  <input type="submit" value="Send"/>' + 
      '  <input type="reset" value="Start over"/>' + 
      '  <input name="required" type="hidden" value="email,realname">' + 
      '  <input name="env_report" type="hidden" ' + 
      '    value="REMOTE_HOST,REMOTE_ADDR,REMOTE_USER,HTTP_USER_AGENT"/>' + 
      '  <input name="print_config" type="hidden" value="realname,email"/>' + 
      '  <input name="sort" type="hidden" value="order:phone,comments"/>' + 
      '  <input name="title" type="hidden" value="Thank you for your email"/>' + 
      '  <input name="bgcolor" type="hidden" value="#ffffff"/>' + 
      '  <input name="text_color" type="hidden" value="#000000"/>' + 
      '  <input name="link_color" type="hidden" value="#ff0000"/>' + 
      '  <input name="vlink_color" type="hidden" value="#0000ff"/>' + 
      '  <input name="return_link_url" type="hidden" ' + 
      '    value="http://www.bryterails.com/"/>' + 
      '  <input name="return_link_title" type="hidden" value="Home">' + 
      '</table>' + 
      '</form>';
}

function addAllViews() {
   var z = 0;

   if(page >= cabooseMarkersPage15 && page < trackLinksPage && 
      page != madeeKKidKarKitsPage) {
      w('<tr>' + 
        '<td>' + 
        '<table>' + 
        '  <tr>' + 
        '  <td class="section" valign="top">' + title + '</td>' + 
        '  <td nowrap="1" width="5"/>' + 
        '  <td class="section">Other Views</td></tr>' + 
        '  <tr>' + 
        '  <td valign="top">' + 
        '  <table height="400" width="400">' + 
        '    <tr>' + 
        '    <td height="400" width="400">' + 
        '    <img id="mainImage" src="images/products/' + page + 
        '-1.jpg" width="400"/></td></tr>' + 
        '    <tr>' + 
        '    <td class="caption" id="mainCaption"></td></tr>' + 
        '  </table></td>' + 
        '  <td nowrap="1" width="2"/>' + 
        '  <td valign="top">' + 
        '  <table>' + 
        '    <tr>' + 
        '    <td>' + 
        '    <table>');

      for(var x=0; x<captions.length; x++) {
         if(z == 0) {
            w('    <tr>');
         }

         var image = 'images/products/' + page + '-' + (x + 1) + '.jpg';

         w('      <td height="85" onclick="changeImage(' + x + ',\'' + image + 
           '\',\'' + captions[x].text + '\');" onmouseover="doMouseOver(this);" ' + 
           'onmouseout="doMouseOut(this);" valign="top" width="85">' + 
           '      <table bgcolor="#e2ecd4" border="1" height="100%" ' + 
           'id="otherView' + x + '" width="100%">' + 
           '        <tr>' + 
           '        <td height="100%" valign="top">' + 
           '        <table bgcolor="#e2ecd4" height="100%" width="100%">' + 
           '          <tr>' + 
           '          <td height="3" nowrap="1"/></tr>' + 
           '          <tr>' + 
           '          <td nowrap="1" rowspan="2" width="3"/>' + 
           '          <td colspan="2" height="75" width="75">' + 
           '          <img height="75" src="' + image + 
           '" title="Click to view" width="75"/></td>' + 
           '          <td nowrap="1" rowspan="2" width="3"/></tr>' + 
           '          <tr>' + 
           '          <td class="caption" height="100%" valign="top">' + 
           '          &#x2022;&nbsp;</td>' + 
           '          <td class="caption" height="100%" valign="top">' + 
           captions[x].text + '</td></tr>' + 
           '          <tr><td colspan="2" height="100%" nowrap="1"/></tr>' + 
           '        </table></td></tr>' + 
           '      </table></td>');

         if(++z > 1) {
            w('  </tr>' + 
              '  <tr><td height="4" nowrap="1"/></tr>');
            z = 0;
         }
         else {
            w('  <td nowrap="1" width="4"/>');
         }
      }

      w('    </table></td></tr>' + 
        '  </table></td></tr>' + 
        '</table></td></tr>' + 
        '<tr><td height="10" nowrap="1"/></tr>');
   }
}

function addBody() {
   if(page == priceListPage) {
      addPriceList();

      w('<tr><td height="10" nowrap="1"/></tr>' + 
        '<tr><td>' + 
        'The cost of shipping and handling will be determined at time of ' + 
        'order.  Please feel free to contact us.</td></tr>');
   }
   else {
      addAllViews();

      w('<tr><td class="description" valign="top" width="100%">');
      w(description + '</td></tr>');
      w('<tr><td height="10" nowrap="1"/></tr>');

      w('<tr><td width="100%">');
      w('<table class="sectionBorder" width="100%">');
      addSpecs();
      w('</table></td></tr>');
   }

   w('<tr><td height="10" nowrap="1"/></tr>' + 
     '<tr><td align="center" class="description" valign="top">' + 
     'Just <a href="' + formatEmail() + '">email</a> me or give me a call ' + 
     'at (865) 456-7869 if there\'s something you would like to purchase. ' + 
     'I\'ll send you an invoice via email. The invoice will include payment ' + 
     'instructions for PayPal, credit cards and personal checks/money ' + 
     'orders.</td></tr>');

   w('<tr><td height="10" nowrap="1"/></tr>');
   w('<tr><td align="right" class="description">Contact the ' + 
     '<a href="mailto:support@bryterails.com">webmaster</a></td></tr>' + 
     '<tr><td class="description">All rights reserved.  Copyright 2008, 2009 ' + 
     'Dale King</td></tr>');
}

function addButton(p,link) {
   var class1 = 'button1';
   var class2 = 'button2';
   var class3 = 'button3';

   if(link.length == 0) {
      link = "javascript:go('" + formatURL(p) + "');";
   }
   if(link == 'soon') {
      link = "javascript:alert('Coming soon!  Please check back.');";
   }

   w('<tr><td bgcolor="#92a285" width="100%">');
   w('<table cellpadding="2" width="100%">');
   w('  <tr>');

   if(p == page) {
      w('  <td width="100%">');
   }
   else {
      w('  <td onclick="' + link + 
        '" onmouseout="doMouseOut(this)" onmouseover="doMouseOver(this)" ' + 
        'width="100%">');
   }

   w('  <table width="100%">');
   w('    <tr>');

   if(p == page) {
      class1 = 'buttonActive1';
      class2 = 'buttonActive2';
      class3 = 'buttonActive3';
   }

   w('    <td class="' + class1 + '" nowrap="1"></td>');
   w('    <td class="' + class2 + '" nowrap="1">' + getTitle(p,1) + '</td>');
   w('    <td class="' + class3 + '" nowrap="1"></td></tr>');
   w('  </table></td></tr>');
   w('</table></td></tr>');
}

function addEmail(emailAddress) {
   return(
      '<img src="images/email.gif" title="Email Address"/>' + 
      '&nbsp;Email:&nbsp;&nbsp;' + '<a href="mailto:' + emailAddress + '">' + 
      emailAddress + '</a>');
}

function addFax(phoneNumber) {
   return(
      '<img src="images/fax.gif" title="Fax Number"/>&nbsp;Fax:&nbsp;&nbsp;' + 
      phoneNumber);
}

function addImageLink(image,url,height,width) {
   var link = '';

   if(url.length == 0) {
      url = 'images/' + image;
   }

   link = '<img';
   if(height > 0) {
      link += ' height="' + height + '"';
   }
   link += 
      ' onclick="window.open(\'' + url + '\');"' + 
      ' onmouseover="this.style.cursor=\'Hand\';"' + 
      ' onmouseout="this.style.cursor=\'Auto\';" src="images/' + image + '"';
   if(width > 0) {
      link += ' width="' + width + '"';
   }
   link += '/>';

   return(link);
}

function addInformationPageLink(title,url,text) {
   var link = '';

   link = 
      '<table>' + 
      '  <tr>' + 
      '  <td valign="top"><font face="tahoma" size="2"><li/></font></td>' + 
      '  <td valign="top"><font face="tahoma" size="2">';
   if(url.length > 0) {
      link += '  <a href="' + url + '" target="link">';
   }
   link += title;
   if(url.length > 0) {
      link += '</a>';
   }
   link += '<br/>' + text + 
      '  </font></td></tr>' + 
      '</table>' + 
      '&nbsp;<br/>';

   return(link);
}

function addLink(text,link,target) {
   return(
      '<tr>' + 
      '<td class="borderMiddle1"/>' + 
      '<td class="links">' + 
      '<img src="images/bullet.gif"/>' + 
      '<a href="' + link + '" target="' + target + '">' + text + '</a></td>' + 
      '<td class="borderMiddle3"/></tr>');
}

function addLinkPageLink(title,url,address,phone,fax,email) {
   var link = '';

   link = 
      '<table>' + 
      '  <tr>' + 
      '  <td valign="top"><font face="tahoma" size="2"><li/></font></td>' + 
      '  <td valign="top">' + 
      '  <table>' + 
      '    <tr>' + 
      '    <td colspan="2" valign="top"><font face="tahoma" size="2">';
   if(url.length > 0) {
      link += '<a href="' + url + '" target="link">';
   }
   link += title;
   if(url.length > 0) {
      link += '</a>';
   }
   link += '</font></td></tr>';

   if(address.length > 0) {
      link += 
         '    <tr>' + 
         '    <td colspan="2" valign="top"><font face="tahoma" size="2">' + 
         address + '</font></td></tr>';
   }
   if(phone.length > 0 || fax.length > 0 || email.length > 0) {
      link += '<tr><td height="5" nowrap="1"/></tr>';
   }
   if(phone.length > 0) {
      link += 
         '    <tr>' + 
         '    <td nowrap="1" width="20"/>' + 
         '    <td valign="top"><font face="tahoma" size="2">' + 
         addPhone(phone) + '</font></td></tr>';
   }
   if(fax.length > 0) {
      link += 
         '    <tr>' + 
         '    <td nowrap="1" width="20"/>' + 
         '    <td valign="top"><font face="tahoma" size="2">' + 
         addFax(fax) + '</font></td></tr>';
   }
   if(email.length > 0) {
      link += 
         '    <tr>' + 
         '    <td nowrap="1" width="20"/>' + 
         '    <td valign="top"><font face="tahoma" size="2">' + 
         addEmail(email) + '</font></td></tr>';
   }
   link += 
      '  </table></td></tr>' + 
      '</table>' + 
      '&nbsp;<br/>';

   return(link);
}

function addPageTitle(page) {
   w('<td background="images/products/p000-0.jpg" bgcolor="white" ' + 
     '  height="100%" valign="top" width="75">');
   w('<img src="images/products/' + page + '-0.jpg"/></td>');
}

function addPhone(phoneNumber) {
   return(
      '<img src="images/phone.gif" title="Phone Number"/>' + 
      '&nbsp;Phone:&nbsp;&nbsp;' + phoneNumber);
}

function addPhoto(image,caption,height,width) {
   return(
      '<tr>' + 
      '<td align="center" height="' + height + '" nowrap="1" valign="middle"' + 
      ' width="' + width + '">' + 
      '<table bgcolor="white" cellpadding="0" cellspacing="0" height="100%"' + 
      ' width="100%">' + 
      '<tr>' + 
      '<td align="center" height="100%" nowrap="1" valign="middle"' + 
      ' width="100%">' + 
      '<a class="highslide" href="images/photos/' + image + '.jpg" id="thumb' + 
      image + '" onclick="return hs.expand(this)">' + 
      '<img alt="Highslide JS" height="' + height + '" src="images/photos/' + 
      image + '.jpg" title="' + caption + '" width="' + width + 
      '"/></a></td>' + 
      '</tr>' + 
      '<tr><td align="center">- Click to enlarge -</td></tr>' + 
      '</table></td>');
}

function addPriceList() {
   var contents = '';
   var height   = 75;

   w('<tr><td height="10" nowrap="1"/></tr>');
   w('<tr><td>');
   w('<table>');

   w('<tr>');
   addPriceListElement(1,0,0,true,'');
   addPriceListElement(1,0,5,true,'Product / Option');
   addPriceListElement(1,0,5,true,'Price');
   w('</tr>');

   for(var x=0; specs[x]!=null; x++) {
      contents = formatURLLink(specs[x][0],'');
      if(specs[x][2].length > 0) {
         contents += '&' + specs[x][2];
      }

      w('<tr>');
      addPriceListElement(
         1,height,0,true,
         '<a href="' + formatURL(specs[x][0]) + '">' + 
         '<img height="' + height + '" src="images/products/' + specs[x][1] + 
         '" width="75"/></a>');
      addPriceListElement(1,height,5,false,contents);
      addPriceListElement(1,height,5,false,specs[x][3]);
      w('</tr>');
   }

   w('</table>');
   w('</td></tr>');
}

function addPriceListElement(colspan,height,width,center,contents) {
   var borderColor  = '#7a88b5';
   var contentLines = '';

   w('<td height="' + height + '">');
   if(contents.length > 0) {
      w('<table height="100%" width="100%">' + 
        '  <tr><td bgcolor="white" colspan="3" height="3" nowrap="1" ' + 
        '    width="100%"/></tr>' + 
        '  <tr>' + 
        '  <td bgcolor="white" height="100%" nowrap="1" width="3"/>' + 
        '  <td height="100%" width="100%">' + 
        '  <table height="100%" width="100%">' + 
        '    <tr><td bgcolor="' + borderColor + '" colspan="3" height="1" ' + 
        '      nowrap="1"/></tr>' + 
        '    <tr>' + 
        '    <td bgcolor="' + borderColor + '" height="100%" nowrap="1" ' + 
        '      width="1"/>' + 
        '    <td align="' + ((center == true) ? 'center' : 'left') + '" ' + 
        '      height="100%" nowrap="1" width="100%">' + 
        '    <table cellpadding="0" cellspacing="0" height="100%">');

      contentLines = contents.split("&");
      for(var x=0; x<contentLines.length; x++) {
         w('<tr><td nowrap="1">&nbsp;&nbsp;' + contentLines[x] + 
           '&nbsp;&nbsp;</td></tr>');
      }

      w('    </table></td>' + 
        '    <td bgcolor="' + borderColor + '" height="100%" nowrap="1" ' + 
        '      width="1"/></tr>' + 
        '    <tr><td bgcolor="' + borderColor + '" colspan="3" height="1" ' + 
        '      nowrap="1"/></tr>' + 
        '  </table></td>' + 
        '  <td bgcolor="white" height="100%" nowrap="1" width="3"/></tr>' + 
        '  <tr><td bgcolor="white" colspan="3" height="3" nowrap="1"/></tr>' + 
        '</table>');
   }
   w('</td>');
}

function addProductPhoto(image,height,width) {
   return(
      '<td align="center" height="' + height + '" nowrap="1" valign="middle"' + 
      ' width="' + width + '">' + 
      '<table bgcolor="white" cellpadding="0" cellspacing="0" height="100%"' + 
      ' width="100%">' + 
      '<tr>' + 
      '<td align="center" height="100%" nowrap="1" valign="middle"' + 
      ' width="100%">' + 
      '<a class="highslide" href="images/products/' + image + '.jpg" ' + 
      'id="thumb' + image + '" onclick="return hs.expand(this)">' + 
      '<img alt="Highslide JS" height="' + height + '" src="images/products/' + 
      image + '.jpg" width="' + width + '"/></a></td>' + 
      '</tr>' + 
      '<tr><td class="footer" nowrap="1">Click to enlarge</td></tr>' + 
      '</table></td>');
}

function addSectionBorderBottom() {
   w('</table></td>' + 
     '<td class="sectionBorderRight" nowrap="1"/></tr>' + 
     '<tr>' + 
     '<td class="sectionBorderBottomLeft" nowrap="1"/>' + 
     '<td class="sectionBorderBottom" nowrap="1"/>' + 
     '<td class="sectionBorderBottomRight" nowrap="1"/></tr>');
}

function addSectionBorderTop() {
   w('<tr>' + 
     '<td class="sectionBorderTopLeft" nowrap="1"/>' + 
     '<td class="sectionBorderTop" nowrap="1"/>' + 
     '<td class="sectionBorderTopRight" nowrap="1"/></tr>' + 
     '<tr>' + 
     '<td class="sectionBorderLeft" nowrap="1"/>' + 
     '<td class="sectionBody">' + 
     '<table bgcolor="#efefef">');
}

function addSectionLink(link,title) {
   w('<tr>' + 
     '<td nowrap="1">' + 
     '<img src="images/link.gif">' + 
     '<a class="link" href="' + link + '">' + 
     title + '</a></td></tr>');
}

function addSpecs() {
   var maxZ   = 0;
   var spec   = new Array();
   var width0 = '';
   var width1 = '';
   var z      = 0;

   if(page >= cabooseMarkersPage15 && page < trackLinksPage && 
      page != madeeKKidKarKitsPage) {
      addSectionBorderTop();
      maxZ = specs[0][0];

      for(var x=1; specs[x]!=null; x++) {
         if(specs[x].length > 0) {
            if(z == 0) {
               w('<tr>');
            }

            spec   = specs[x][0].text.split('&');
            width0 = spec[1];
            width1 = spec[2];

            if(width0 == ' ') {
               width0 = '100%';
            }

            if(width1 == ' ') {
               width1 = '';
            }

            w('<td height="100%" valign="top" width="33%">' + 
              '<table class="section">' + 
              '<tr>' + 
              '<td class="sectionTopLeft" nowrap="1"/>' + 
              '<td class="sectionTop" nowrap="1"/>' + 
              '<td class="sectionTopRight" nowrap="1"/></tr>' + 
              '<tr>' + 
              '<td class="sectionLeft1" nowrap="1"/>' + 
              '<td class="specificationTitle" nowrap="1">' + spec[0] + 
              '</td>' + 
              '<td class="sectionRight1" nowrap="1"/></tr>' + 
              '<tr>' + 
              '<td class="sectionLeftDivider" nowrap="1"/>' + 
              '<td class="sectionDivider" nowrap="1"/>' + 
              '<td class="sectionRightDivider" nowrap="1"/></tr>' + 
              '<tr>' + 
              '<td class="sectionLeft2" nowrap="1"/>' + 
              '<td height="100%">' + 
              '<table bgcolor="#ffffff" height="100%" width="100%">');

            for(var y=1; y<specs[x].length; y++) {
               spec = specs[x][y].split('&');

               w('<tr><td nowrap="1">' + 
                 '<table>' + 
                 '<tr>' + 
                 '<td class="specification" nowrap="1"' + 
                 ((width0 == '') ? '' : ' width="' + width0 + '"') + '>' + 
                 '&#x2022;&nbsp;' + spec[0] + '</td>' + 
                 '<td nowrap="1" width="5"/>' + 
                 '<td align="right" class="specification" nowrap="1"' + 
                 ((width1 == '') ? '' : ' width="' + width1 + '"') + '>' + 
                 spec[1] + '</td></tr>' + 
                 '</table></td></tr>');
            }

            w('</table></td>' + 
              '<td class="sectionRight2" nowrap="1"/></tr>' + 
              '<tr>' + 
              '<td class="sectionBottomLeft" nowrap="1"/>' + 
              '<td class="sectionBottom" nowrap="1"/>' + 
              '<td class="sectionBottomRight" nowrap="1"/></tr>' + 
              '</table></td>');

            if(++z > maxZ) {
               w('</tr>');
               z = 0;
            }
         }
      }

      addSectionBorderBottom();
   }
}

function addSubTitle(subtitle) {
   w('<tr><td height="5" nowrap="1"/></tr>');
   w('<tr><td class="subtitle" nowrap="1">&nbsp;' + subtitle + '</td></tr>');
}

function changeImage(imageNumber) {
   var caption = null;
   var element = null;
   var image   = 'images/products/' + page + '-' + (imageNumber + 1) + '.jpg';

   if(page >= cabooseMarkersPage15 && page < trackLinksPage && 
      page != madeeKKidKarKitsPage) {
      caption = captions[imageNumber].text;

      if(imageNumber != previousOtherView) {
         if(element = document.getElementById('mainImage')) {
            element.src = image;
         }

         if(element = document.getElementById('mainCaption')) {
            deleteChildNodes(element);
            element.appendChild(document.createTextNode(caption));
         }

         if(element = document.getElementById('otherView' + imageNumber)) {
            element.style.backgroundColor = '#6cc22f';
         }

         if(previousOtherView >= 0) {
            if(element = 
               document.getElementById('otherView' + previousOtherView)) {
               element.style.backgroundColor = '#f0f0f0';
            }
         }

         previousOtherView = imageNumber;
      }
   }
}

function deleteChildNodes(node) {
   while(node.hasChildNodes() == true) {
      try {
         node.removeChild(node.firstChild);
      }
      catch(e) {
      }
   }
}

function doEmail() {
   parent.location = formatEmail();
}

function doMouseOut(element) {
	element.style.backgroundColor = '#92a285';
   element.style.cursor          = 'Auto';
}

function doMouseOver(element) {
	element.style.backgroundColor = '#ffffc0';
   element.style.cursor          = 'Hand';
}

function doOnLoad() {
   var element = null;
   var html    = '';

   // Links
   html = 
      '<table cellpadding="0" cellspacing="0">' + 
      '<tr>' + 
      '<td class="borderTop1" nowrap="1"/>' + 
      '<td class="borderTop2" nowrap="1">Support Links</td>' + 
      '<td class="borderTop3" onclick="doShowLinks(false);" nowrap="1"/></tr>' + 
      addLink('Distribution List','http://bryterails.com/Live Steam.msg','Dist') + 
      addLink('Statistics','http://bryterails.com/webalizer/','Statistics') + 
      addLink('WebMail','http://webmail.dndchosting.com/','WebMail') + 
      '<tr>' + 
      '<td class="borderMiddle1"/>' + 
      '<td align="center" class="links">' + 
      '<input onclick="doShowLinks(false);" type="button" value="close"/></td>' + 
      '<td class="borderMiddle3"/></tr>' + 
      '<tr>' + 
      '<td class="borderBottom1" nowrap="1"/>' + 
      '<td class="borderBottom2" nowrap="1"/>' + 
      '<td class="borderBottom3" nowrap="1"/></tr>' + 
      '</table>';
   if((element = document.getElementById("links")) != null) {
      element.innerHTML = html;
   }
}

function doShowLinks(show) {
   var element = null;

   if((element = document.getElementById('links')) != null) {
      element.style.display = ((show) ? 'block' : 'none');
   }
}

function formatEmail() {
   return('mailto:Dave@BryteRails.com');
}

function formatEmailLink() {
   return('<a href="' + formatEmail() + '">Dave@BryteRails.com</a>');
}

function formatURL(page) {
   return('index.htm?p=' + page);
}

function formatURLLink(page,title) {
   if(title.length == 0) {
      title = getTitle(page,2);
   }

   return('<a href="' + formatURL(page) + '">' + title + '</a>');
}

function getTitle(page,part) {
   var title = 'Unknown page (' + page + ')&Unknown page (' + page + ')';

   for(var x=0; x<pages2.length; x++) {
      if(pages2[x].id == page) {
         if(part == 1) {
            title = pages2[x].title1;
         }
         else if(part == 2) {
            title = pages2[x].title2;
         }
      }
   }

   return(title);
}

function go(url) {
   parent.location = url;
}

function goTracks() {
   go('http://livesteamtracks.info');
}

function goWindow(url) {
   window.open(url);
}

function goHome() {
   if(page != homePage) {
      go(formatURL(homePage));
   }
}

function oCaption(text) {
   var object = new Object();

   object.text = text;

   return(object);
}

function oPage(id,title1,title2) {
   var object = new Object();

   object.id     = id;
   object.title1 = title1;
   object.title2 = title2;

   return(object);
}

function oSpecTitle(text) {
   var object = new Object();

   object.text = text;

   return(object);
}

function w(text) {
   document.write(text);
}

