
//the dollData object constructor
function doll(htmlFile, gifFile, description, price)
{
  this.htmlFile = htmlFile;
  this.gifFile = gifFile;
  this.description = description;
  this.price = price;
  return this;
}


// creates a table containing variable number of Thumbnails of whichdoll
function createBigThumbNailTable(dollIndex,numThumbnails)
{
  var i;
  document.write("<tr>");
  for (i=dollIndex; i<dollIndex+numThumbnails;i++)
  {
     displayBigThumbnail(whichDoll[i]);
  }
  document.write("</tr>");
  dollIndex += numThumbnails;
  return numThumbnails;
}


// table data with doll html, gif, and description for a doll
function displayBigThumbnail(whichDoll)
{
  document.write("<td width='145' height='225' valign='top'>");
  document.write("  <table align='center'>");
  document.write("    <tr>");
  document.write("      <td align='center'>");
  document.write("        <a title='Click here to see our Adorable Doll Clothes' href="+escape(whichDoll.htmlFile)+">");
  document.write("          <img src="+escape(whichDoll.gifFile) + "></a>");
  document.write("      </td>");
  document.write("    </tr>");
  document.write("    <tr>");
  document.write("      <td align='center'>");
  document.write("        <a title='Click here to see our Adorable Doll Clothes' href="+escape(whichDoll.htmlFile)+">" + whichDoll.description+ "<br/>" + whichDoll.price + "</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>");
}
