
//the dollData object constructor
function doll(htmlFile, gifFile, description,saleText)
{
  this.htmlFile = htmlFile;
  this.gifFile = gifFile;
  this.description = description;
  this.saleText = saleText;
  return this;
}


// creates a table containing variable number of Thumbnails of whichdoll
function createThumbNailTable(dollIndex,numThumbnails)
{
  var i;

  document.write("<div align='center'>");
  document.write("  <center>");
  document.write("    <table border='0' width='640'>");
  document.write("      <tr>");

  for (i=dollIndex; i<dollIndex+numThumbnails;i++)
     displayThumbnail(whichDoll[i]);

  document.write("      </tr>");
  document.write("    </table>");
  document.write("  </center>");
  document.write("</div>");
  dollIndex += numThumbnails;

  return numThumbnails;
}


// table data with doll html, gif, and description for a doll
function displayThumbnail(whichDoll)
{
 document.write("        <td width='80' height='200' align='left' valign='top'>");
 document.write("          <a href="+escape(whichDoll.htmlFile)+">");
// document.write("          <img border='0' src="+escape(whichDoll.gifFile)+" alt="+whichDoll.description+"> <center>"+whichDoll.description+"<center> </a>");
 document.write("          <img border='0' src="+escape(whichDoll.gifFile)+" alt="+whichDoll.description+"> <center>"+whichDoll.description+"<span class='redFont'><center>"+whichDoll.saleText+"<center></span> </a>");

 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("<span class=pinkFont>Shipping Charges will be added upon checkout.</span>");
  document.write("<br>");

}
