// required entry to load the cookies (for older browsers)
  LoadIt ();               // force load of data - REQUIRED!
  if (root.xx_id == "") {  // REQUIRED!
// set-list for any cart-wide options here
// set cart display options, and internal PayPal options
    root.xx_cc   = off;   // display credit card line
    root.xx_cdmp = off;  // root diagnostic cookie dump (leave off)
    root.xx_chkbx= off;   // agreement checkbox
    root.xx_coup = off;   // ask for coupon code on cart page
    root.xx_cval = "xcoup1,xcoup2"; // coupon values
    root.xx_cdis = "10,0"; // corresponding coupon percent discounts
    root.xx_camt = "0,1";  // corresponding coupon amount discount
    root.xx_dadd = on;   // display cart when add-cart is clicked.
    root.xx_gwbx = off;   // gift wrapping checkbox
    root.xx_gwcg = 10;   // giftwrapping charge per item (if selected)
    root.xx_img  = on;   // show images in cart (SetImg)
    root.xx_mamt = 0;    // minimum amount of order, or zero.
    root.xx_mqty = 1;    // minimum quantity of order, or zero.
    root.xx_pc   = off;   // display product category in item list
    root.xx_prt  = off;   // Make mail/fax form available in cart
    root.xx_ship = off;   // ask user for shipping options
    root.xx_siz  = on;   // for img, on = resize, off = use orig size
    root.xx_sum  = off;   // display product cat summaries
    root.xx_tax  = off;   // ask user for tax options
    root.xx_uas  = off;  // UPS added air surcharge for fuel active
    root.xx_uasp = 9.5;  // UPS air surcharge percent (if active).
    root.xx_wt   = off;   // display weight totals
    root.xx_wtent= "";   // default entry = ounces, "gm" = grams.
    root.xx_wtrup= 10;   // rounding value - oz always up to lbs
                       //  gm rounds up to these grams.
// place for user-specific options
    root.xx_bn   = "";   // business code, or null
    root.xx_can  = "";   // place for PayPal cancel return path
    root.xx_cbt  = "";   // continue button text, or null
    root.xx_cur  = "USD";// enter default currency code (or null)
    root.xx_id   = "gifts@dambrewery.com";  // PayPal ID
    root.xx_lc   = "US"; // enter default country code (or null)
    root.xx_ret  = "http://www.dambrewery.com/retail/thanks.html";   // return
    root.xx_sty  = "";   // place for PayPal style
//SS added for special categories shipping rules

  /* DD:
   * I believe the way SetCartSH is supposed to work
   * is by entering SetCartSH($category, $number_of_items, $price)
   * so for example, gift certificates are in category 1,
   * so for 1 or more gcs we charge $5 for shipping.
   */
    SetCartSH (1, 1, 5);  // any number of cat-1 items, $1 to ship
		SetCartSH (2, 1, 5.25, 2, 7.35, 3, 9.50, 4, 11.55, 5, 13.65, 6, 15.75, 7, 17.85, 8, 19.95, 9, 22.25, 10, 24.25);  // cat-2 items, $5 first, +$2 each after

		SetCartSH (3, 1, 8.40, 2, 11, 3, 13.65, 4, 16.5, 5, 18.9, 6, 21.5, 7, 24.15, 8, 26.8, 9, 29.4, 10, 32.25);  // cat-3 items, $7 first, +$2.50 each after
		SetCartSH (4, 1, 10, 2, 16.5, 3, 22.75, 4, 28.95);  // cat-4 items, $9.50 first, +$6 each after
		SetCartSH (5, 1, 15.25, 2, 23.65, 3, 32, 4, 40.5);  // cat-5 items, 
		SetCartSH (6, 1, 8.4, 2, 14.5, 3, 14.5, 4, 17.75);  // cat-6 items caps
		SetCartSH (7, 1, 11.55, 2, 13.65, 3, 15.75, 4, 17.85);  // cat-7 items hoodies
		SetCartSH (8, 1, 9.5, 2, 11.55, 3, 13.65, 4, 15.75);  // cat-7 items cycling jersey
		/* DD:
		 * I believe the way SetAmtSH is supposed to work is the first number is 0, not sure why...
		 * The second value is the lowest amount that gets charged shipping
		 * the third is the rate for shipping (in our case $8), the additional numbers are pairs:
		 * for things that are over $20.01 we charge $10, for things that are $40.01 and more we charge 13.75 and so forth...
		 */
		SetAmtSH (0, .01, 9, 25.96, 11, 46.01, 12.75, 85.01, 15.75, 120.01, 18.00);
// required entry to store stuff off
    root.store ();       // required entry!!
  }                      // REQUIRED!

