
//the dollData object constructor
function doll(htmlFile, gifFile, description, price, sale)
{
  this.htmlFile = htmlFile;
  this.gifFile = gifFile;
  this.description = description;
  this.price = price;
  this.sale = sale;
  return this;
}


// creates a table containing variable number of Thumbnails of whichdoll
function createThumbNailTable(dollIndex,numThumbnails)
{
  var i;

  document.write("<table width='730'>");
  document.write("  <tr>");

  for (i=dollIndex; i<dollIndex+numThumbnails;i++)
     displayThumbnail(whichDoll[i]);

  document.write("  </tr>");
  document.write("</table>");
  dollIndex += numThumbnails;

  return numThumbnails;
}


// table data with doll html, gif, and description for a doll
function displayThumbnail(whichDoll)
{
  document.write("    <td width='145' height='225' valign='top'>");
  document.write("  		<table align='center' height='100'>");
  document.write("        <tr>");
  document.write("          <td align='center'>");
  document.write("            <a href="+escape(whichDoll.htmlFile)+">");
  document.write("            <img border='0' src="+escape(whichDoll.gifFile) + "></a>");
  document.write("          </td>");
  document.write("        </tr>");
  document.write("        <tr>");
  document.write("          <td align='center'>");
//  document.write("            <a href="+escape(whichDoll.htmlFile)+">" + whichDoll.description+ "<br>" + whichDoll.price + "</a>");
  document.write("            <a href="+escape(whichDoll.htmlFile)+">" + whichDoll.description+ "<br>" + whichDoll.price +  "<span class='redFont'><center>" + whichDoll.sale + "<center></span></a>");

  document.write("          </td>");
  document.write("        </tr>");
  document.write("  		</table>");
  document.write("    </td>");
}


function ShippingCharges()
{
  document.write("<br>");
  document.write("<div align='center'>");
  document.write("<center>");
  document.write("<table border='0' width='640' cellpadding='4'>");
  document.write("  <tr>");
  document.write("    <td width='100%'>");
  document.write("      <table border='0' width='100%' cellpadding='4' cellspacing='0'>");
  document.write("        <tr>");
  document.write("          <td width='24%' align='center'><span class=bigPinkFont>Shipping Charges</span></td>");
  document.write("          <td width='76%'><span align='left' class=blueFont> $5.50 all orders up to $99.99<br></span>");
  document.write("            <span class=blueFont> $9.50 all orders $100.00 and over</span>");
  document.write("          </td>");
  document.write("      </table>");
  document.write("    </td>");
  document.write("  </tr>");
  document.write("</table>");
  document.write("</center>");
  document.write("</div>");
  document.write("<br>");
}
