function showproductpage(cprod) {
  alert("This category currently contains no items.");
}


var plinkimg = 'link.gif';
var plinkimg_mo = 'link_mo.gif';
var nprodcount = 0;


function productrow(cprod) {
  var chtml;
  var cimgid;
  nprodcount++;
  var cprodid = 'prod_' + nprodcount;

  chtml = '<TR><TD id="' +cprodid+ '" class="prodlink">' +cprod+ '</TD>';
  document.write( chtml );

  cimgid = 'linkimg_' + cprodid + '_trad';
  chtml  = '<TD onmouseover="moverprod(' +cprodid+ ',prodtype_trad,' +cimgid+ ');"';
  chtml += '    onmouseout="moutprod(' +cprodid+ ',prodtype_trad,' +cimgid+ ');"';
  chtml += '    onclick="showproductpage(\'traditional ' +cprod.toLowerCase()+ '\');"';
  chtml += '    class="prodlinkbtn">';
  chtml += '<IMG id="' +cimgid+ '" src="' +plinkimg+ '" ';
  chtml += 'alt="click here to see traditional ' + cprod + ' index" ';
  chtml += 'height=15 width=15>';
  chtml += '</TD>';
  document.write( chtml );

  cimgid = 'linkimg_' + cprodid + '_cont';
  chtml  = '<TD onmouseover="moverprod(' +cprodid+ ',prodtype_cont,' +cimgid+ ');"';
  chtml += '    onmouseout="moutprod(' +cprodid+ ',prodtype_cont,' +cimgid+ ');"';
  chtml += '    onclick="showproductpage(\'contemporary ' +cprod.toLowerCase()+ '\');"';
  chtml += '    class="prodlinkbtn">';
  chtml += '<IMG id="' +cimgid+ '" src="' +plinkimg+ '" ';
  chtml += 'alt="click here to see contemporary ' + cprod + ' index" ';
  chtml += 'height=15 width=15>';
  chtml += '</TD>';
  document.write( chtml );

  document.write('</TR>');
}

function moverprod(prodcell,typecell,linkimg) {
  prodcell.className='prodlinkmo';
  typecell.className='prodlinkmo';
  linkimg.src=plinkimg_mo;
}

function moutprod(prodcell,typecell,linkimg) {
  prodcell.className='prodlink';
  typecell.className='prodlink';
  linkimg.src=plinkimg;
}


function mfclink(mfcname,imgsrc) {
  var chtml = '<TR><TD><IMG class="mfclink" ';
  chtml += 'src="' + imgsrc + '" ';
  chtml += 'alt="click here for ' + mfcname + ' index" ';
  chtml += 'onclick="showproductpage(\'' + mfcname.toLowerCase() + '\');" ></TD></TR>';
  document.write(chtml);
}
