<!--

/*
  This JavaScript code, and all associated software and file structures, calling or called 
  by this code, are copyrighted material, and may not be copied or duplicated in any manner 
  whatsoever without prior written authorization.  All applicable trademarks, registrations, 
  & copyrights are property of Phil Astrella, Registry Enterprises.
*/


salesTaxAZ	= 8.30 ;  // updated from 8.10% as of 11/1/07 per City of Phoenix notice dated 9/21/07

shipChargeMin	= 8.95 ;

shipAddCanada	= 15.00 ; 
shipAddHawaii	= 15.00 ; 
shipAddAlaska	= 15.00 ;

shipCharges = new Array(

  // Original charges: "30::4.95", "50::5.95", "70::6.95", "120::8.95", "120+3.0::9.95",
  // New charges as of 7/10/01 per Viki email:
  //	"30::6.20", "50::7.45", "70::8.70", "90::9.95", "120::11.20", "120+3.0::12.45",
  // New charges as of 5/15/05 per Viki email:

	"30::8.95", "70::10.95", "100::12.95", "100+5.0::15.95",

	/* encoded on config form as:
		  30	 8.95
		  70	10.95
		 100	12.95
		1000	10.95P.05  (10.95 + 5% of order subtot, equiv to $15.95 + 5% of amt over $100)
	*/

	"");


fasterShipOptions = new Array(

  /*
    Original format:
	"3-Day Delivery:&nbsp; Add $7.00 to order"	,
	"2-Day Delivery:&nbsp; Add $20.00 to order"	,
	"Overnight Delivery:&nbsp; Add $25.00 to order"	,
    New format:
  */
	"3 Days::15.00", "2 Days::20.00", "Overnight::25.00",

	"");





prodStatus	= new Array(

//   start date :: stop date :: group :: product :: size :: status text :: status flag (1 = OK to order)

	"06/09/2006 00:01::07/18/2006 23:59::Body::Body Balm Moisturizer::35 oz (1 Liter) Bottle (back-ordered)"
	+ "::Liter size temporarily out-of-stock<br>(availability expected by end of July &#146;06)."
	+ "<br>Feel free to order now, and we will ship<br>as soon as our new stock is received<br>"
	+"(your credit card will not be charged<br>until your order is ready for shipment).::1",

	"03/22/2007 00:01::08/31/2007 23:59::Face::Nighttime Refining Moisturizer::Next Generation Packaging"
	+ "::<b>Temporarily out of stock</b>::0",

	"08/02/2007 00:01::08/28/2007 23:59::Hair::Mountain Moisture Shampoo::35 oz. (1 Liter) Bottle w/pump"
	+ "::<b>Temporarily out of stock</b>::0",

	"01/15/2008 00:01::06/15/2008 23:59::Face::Sedona Red Mineral Facial::6 oz. Box (12 0.5 oz. packets)"
	+ "::<b>Temporarily out of stock</b>::0",

	"03/28/2008 00:01::06/30/2008 23:59::Hair::Maximum Body Shampoo::8 oz. Bottle"
	+ "::<b>Temporarily out of stock</b>::0",

	"04/22/2008 00:01::06/30/2008 23:59::Face::Wildberry Facial Moisturizer::2 oz. Jar"
	+ "::<b>Temporarily out of stock</b>::0",

	"06/10/2008 00:01::10/31/2008 23:59::Hair::Mountain Moisture Shampoo::35 oz. (1 Liter) Bottle w/pump"
	+ "::<b>Temporarily out of stock</b>::0",
    
//	"06/10/2008 00:01::10/31/2008 23:59::Body::Body Balm Moisturizer::8 oz. Bottle"
//	+ "::<b>Call for Availability</b>::1",


	"01/01/1970 00:01::06/30/2009 23:59::Body::Body Balm Moisturizer::8 oz. Bottle"
	+ "::<b><u>Temporarily out of stock</u></b><br>::0",

//	"01/01/1970 00:01::12/12/2008 23:59::Body::Body Balm Moisturizer::35 oz. (1 Liter) Bottle w/pump"
//	+ "::<b>Temporarily out of stock</b><br><u>(OK to order - available 12/12/2008)</u><br>::1",

	"01/01/1970 00:01::12/17/2008 23:59::Body::Body Balm Moisturizer::35 oz. (1 Liter) Bottle w/pump"
	+ "::<b>Temporarily out of stock</b><br><u>(available soon - call to backorder)</u><br>::0",

	"01/01/1970 00:01::06/30/2009 23:59::Hair::Mountain Moisture Shampoo::35 oz. (1 Liter) Bottle w/pump"
	+ "::<b>Temporarily out of stock</b>::0",

	"11/23/2009 00:01::12/10/2009 23:59::Hair::Mountain Moisture Shampoo::8 oz. Bottle"
	+ "::<b>Expected Arrival: December 11th</b>::1",

	"12/03/2009 00:01::12/14/2009 23:59::Body::Body Balm Moisturizer::35 oz. (1 Liter) Bottle w/pump"
	+ "::<b>Expected Arrival: December 17th</b>::1",


	"");



function checkProdStatus(cpsGroup,cpsProd,cpsSize,cpsCount)
  {
    var psShow		= ((!cpsCount) || (isNaN(cpsCount)) || (cpsCount < 2)) ? 0 : 1 ;
    var psNow		= new Date();
    var psNowMS		= psNow.getTime();

    var psRec, psStart, psStop, psGroup, psProd, psSize, psText, psFlag, 
	psStartMS, psStopMS, psString="" ;

    for (ps = 0 ; ps < prodStatus.length ; ps++)
      {
	if (prodStatus[ps].indexOf("::") == -1) { continue };
	psRec		= prodStatus[ps].split("::");
	psStart		= psRec[0];
	psStop		= psRec[1];
	psGroup		= psRec[2];
	psProd		= psRec[3];
	psSize		= psRec[4];
	psText		= psRec[5];
	psFlag		= psRec[6];

	if ((psGroup.toLowerCase() == cpsGroup.toLowerCase()) && (psProd == cpsProd) && (psSize == cpsSize))
	  {
	    psStart	= (psStart.length > 9) ? new Date(psStart) : 0 ;
	    psStop	= (psStop.length > 9)  ? new Date(psStop)  : 0 ;

	    psStartMS	= (psStart > 0) ? psStart.getTime() : 0 ;
	    psStopMS	= (psStop > 0)  ? psStop.getTime()  : 0 ;

	    if (((psStartMS < 1) || (psStopMS < 1)) || 
		((psStartMS < psNowMS) && (psStopMS > psNowMS)))
	      {
		psString += (psString.length > 0) ? "<hr size=2 color='brown'>" : "" ;

		psString += (psShow) 
			  ? (psProd.length > 30)
			    ? "<span style='font-weight:normal; font-style:normal'><nobr>"
			      + "<span style='font-size:8pt; color:#000080'>"+psProd+"</span><br>"
			      + "<span style='font-size:9pt'>"+psSize+"</span></nobr></span><br>"
			      + "<span style='font-size:11pt'><u>"+psText+"</u></span><br>" 
			    : "<span style='font-weight:normal; font-style:normal'><nobr>"
			      + "<span style='font-size:9pt; color:#008080'>"+psProd+"</span><br>"
			      + "<span style='font-size:9pt'>"+psSize+"</span></nobr></span><br>"
			      + "<span style='font-size:11pt'><u>"+psText+"</u></span><br>" 
			  : psText ;

		psString += "::"+psFlag;
	      }
	  }
      }
    return psString
  }





// prodList Adjustments

function prodListAdjust()
  {
    // SET ADJUSTMENT TIMEFRAME (auto start & auto stop [ MM/DD/YYYY HH:MM  or  Month Day, Year HH:MM ] )

	var paStartDate	= new Date("September 10, 2008 00:01");
	var paStopDate	= new Date("September 30, 2008 23:59");

    var paStartDateMS	= paStartDate.getTime();
    var paStopDateMS	= paStopDate.getTime();
    var paNowDate	= new Date();
    var paNowDateMS	= paNowDate.getTime();

    var paRec, paKey, paGroup, paNumber, paName, paSize, paPrice, 
	paTaxExcep, paShipExcep, paRelated, paIngred;

    for (pa = 0 ; pa < prodList.length ; pa++)
      {
	if (prodList[pa].indexOf("::") == -1) { continue };
	paRec		= prodList[pa].split("::");
	paKey		= paRec[0];
	paGroup		= paKey.substring(0,paKey.indexOf("_"));
	paNumber	= paKey.substring(paKey.indexOf("_")+1,paKey.length);
	paName		= paRec[1];
	paSize		= paRec[2];
	paPrice		= paRec[3];
	paTaxExcep	= paRec[4];
	paShipExcep	= paRec[5];
	paRelated	= paRec[6];
	paIngred	= paRec[7];

	// ADJUST SELECTED RECORDS

	    /*
		if ((paGroup == "Body")					&& 
		    (paName == "Body Balm Moisturizer")			&&
		    (paSize == "35 oz. (1 Liter) Bottle w/pump")	&&
		    ((paStartDateMS < paNowDateMS) && (paStopDateMS > paNowDateMS)))
		  { 
		    prodList[pa]	= paKey		+ "::"
					+ paName	+ "::"
 					+ "35 oz (1 Liter) Bottle (back-ordered)"	+ "::"
 					+ paPrice	+ "::"
 					+ paTaxExcep	+ "::"
 					+ paShipExcep	+ "::"
					+ paRelated	+ "::"
 					+ paIngred	;
		  }
	    */

	    /*

		if ((paGroup == "Gift")					&& 
		    (paName.indexOf("Holiday Season Gift ~ ") == 0)	&& 
		    ((paStartDateMS > paNowDateMS) || (paStopDateMS < paNowDateMS)))
		  { 
		    prodList[pa]	= " ";
		  }
	    */

	    /*
		if ((paGroup == "Gift")					&& 
		    (paName.lastIndexOf("Basket") == (paName.length-6))	&& 
		    ((paStartDateMS < paNowDateMS) && (paStopDateMS > paNowDateMS)))
		  { 
		    paPrice		= ""+discountPrice(paPrice,25);
		    prodList[pa]	= paKey		+ "::"
					+ paName	+ "::"
					+ paSize	+ "::"
					+ paPrice	+ "::"
					+ paTaxExcep	+ "::"
					+ paShipExcep	+ "::"
					+ paRelated	+ "::"
					+ paIngred	;
		  }
	    */

	    /*
		if ((paStartDateMS < paNowDateMS) && (paStopDateMS > paNowDateMS))
		  { 
		    paShipExcep		= "0.00";
		    prodList[pa]	= paKey		+ "::"
					+ paName	+ "::"
					+ paSize	+ "::"
					+ paPrice	+ "::"
					+ paTaxExcep	+ "::"
					+ paShipExcep	+ "::"
					+ paRelated	+ "::"
					+ paIngred	;
		  }
	    */

      }
  }




prodList = new Array(

  // Prod ID :: Prod Name :: Unit/Size :: Unit Price :: Tax Exception % :: Ship Cost Exception :: Related Products :: Ingredients
     // Prod ID:  Group_Number
     // Prod Name:  any text
     // Unit/Size:  any text
     // Unit Price:  nnn.nn
     // Tax Exception:  nn.nn
     // Ship Excep:  nnn.nn
     // Related:  Group_Name;Group_Name;...
     // Ingredients:  file type (.txt, .doc, .rtf, .jpg, .gif, .pdf, etc)

  // List product entries in the order desired to appear on product home pages, 
  // keeping like product variations (matching product names) together.


  // FACE:


	"Face_4500::Sedona Red Mineral Facial::6 oz. Jar::24.95::?::?::"
		+ "Gift_5 Piece Travel Pack;"
		+ "Body_Honey And Almond Bath Salts;"
		+ "Face_Firming Anti-Wrinkle Eye Cream"
	      + "::.gif",

  /*
	"Face_4501::Sedona Red Mineral Facial::6 oz. Box (12 0.5 oz. packets)::24.95::?::?::"
		+ "Gift_5 Piece Travel Pack;"
		+ "Body_Honey And Almond Bath Salts;"
		+ "Face_Firming Anti-Wrinkle Eye Cream"
	      + "::.gif",
  */

	"Face_2700::Advanced Daily Cleanser::8 oz. Bottle::17.95::?::?::"
		+ "Face_Refreshing Facial Toner;"
		+ "Body_Sedona Red Mineral Soap;"
		+ "Face_Wildberry Facial Moisturizer"
	      + "::.gif",

	"Face_2800::Refreshing Facial Toner::8 oz. Bottle::13.95::?::?::"
		+ "Face_Advanced Daily Cleanser;"
		+ "Face_Hydrating Facial Moisturizer;"
		+ "Face_Firming Anti-Wrinkle Eye Cream"
	      + "::.gif",


	"Face_6100::Wildberry Facial Moisturizer::1.7 oz. Jar::23.95::?::?::"
		+ "Face_Nighttime Refining Moisturizer;"
		+ "Body_Body Balm Moisturizer;"
		+ "Face_Firming Anti-Wrinkle Eye Cream"
	      + "::.gif",


	"Face_2900::Hydrating Facial Moisturizer::2 oz. Jar::23.95::?::?::"
		+ "Face_Lip Balm SPF 30+;"
		+ "Face_Advanced Daily Cleanser;"
		+ "Hair_Mountain Moisture Shampoo"
	      + "::.gif",

	"Face_3800::Nighttime Refining Moisturizer::2 oz. Airless pump dispenser::34.95::?::?::"
		+ "Face_Wildberry Facial Moisturizer;"
		+ "Face_Sedona Red Mineral Facial;"
		+ "Body_Body Balm Moisturizer"
	      + "::.gif",

  /* OLD DATA
	"Face_7500::Firming Anti-Wrinkle Eye Cream::0.5 oz. Jar::45.95::?::?::"
		+ "Hair_Mountain Moisture Shampoo;"
		+ "Body_Peace Rose Bath Salts;"
		+ "Face_Refreshing Facial Toner"
	      + "::.gif",
  */

	"Face_7500::Firming Anti-Wrinkle Eye Cream::0.5 oz. Airless pump dispenser::48.95::?::?::"
		+ "Hair_Mountain Moisture Shampoo;"
	//	+ "Hair_Gold Shaping Gel;"
		+ "Hair_Botanical Sculpting Spray;"
		+ "Face_Refreshing Facial Toner"
	      + "::.gif",

	"Face_3000::Lip Balm SPF 30+::Capped dispensing stick (Vanilla)::3.95::?::?::"
		+ "Face_Advanced Daily Cleanser;"
		+ "Face_Firming Anti-Wrinkle Eye Cream;"
		+ "Body_Body Balm Moisturizer"
	      + "::?",

	"Face_3010::Lip Balm SPF 30+::Capped dispensing stick (Fresh Mint)::3.95::?::?::"
		+ "Face_Advanced Daily Cleanser;"
		+ "Face_Firming Anti-Wrinkle Eye Cream;"
		+ "Body_Body Balm Moisturizer"
	      + "::?",


  // HAIR:

	"Hair_1310::Mountain Moisture Shampoo::2 oz. Bottle::2.50::?::?::"
		+ "Hair_Mountain Moisture Conditioner;"
		+ "Face_Hydrating Facial Moisturizer;"
		+ "Face_Advanced Daily Cleanser"
	      + "::.gif",

	"Hair_1300::Mountain Moisture Shampoo::8 oz. Bottle::8.95::?::?::"
		+ "Hair_Mountain Moisture Conditioner;"
		+ "Face_Hydrating Facial Moisturizer;"
		+ "Face_Advanced Daily Cleanser"
	      + "::.gif",


  /* removed 12/18/08 per Viki email
	"Hair_1330::Mountain Moisture Shampoo::35 oz. (1 Liter) Bottle w/pump::26.95::?::?::"
		+ "Hair_Mountain Moisture Conditioner;"
		+ "Face_Hydrating Facial Moisturizer;"
		+ "Face_Advanced Daily Cleanser"
	      + "::.gif",
  */

  /* added 1/5/09 per Mia email:
     removed 9/3/09 per Viki email
	"Hair_1305::Mountain Moisture Shampoo::40 oz. (8 oz. 5-Pack)::26.95::?::?::"
		+ "Hair_Mountain Moisture Conditioner;"
		+ "Face_Hydrating Facial Moisturizer;"
		+ "Face_Advanced Daily Cleanser"
	      + "::.gif",
  */

	"Hair_2310::Mountain Moisture Conditioner::2 oz. Bottle::2.50::?::?::"
		+ "Hair_Mountain Moisture Shampoo;"
		+ "Face_Hydrating Facial Moisturizer;"
		+ "Body_Sea Kelp Soap"
	      + "::.gif",

	"Hair_2300::Mountain Moisture Conditioner::5 oz. Tube::11.95::?::?::"
		+ "Hair_Mountain Moisture Shampoo;"
		+ "Face_Hydrating Facial Moisturizer;"
		+ "Body_Sea Kelp Soap"
	      + "::.gif",


  /* removed 10/14/09 per Viki email
	"Hair_2330::Mountain Moisture Conditioner::35 oz. (1 Liter) Bottle w/pump::39.95::?::?::"
		+ "Hair_Mountain Moisture Shampoo;"
		+ "Face_Hydrating Facial Moisturizer;"
		+ "Body_Sea Kelp Soap"
	      + "::.gif",
  */

  /*
	"Hair_2400::Maximum Body Shampoo::8 oz. Bottle::8.95::?::?::"
		+ "Hair_Maximum Body Conditioner;"
	//	+ "Body_Spa Shower Gel;"
		+ "Gift_5 Piece Travel Pack"
	      + "::.gif",
  */

  /*
	"Hair_2500::Maximum Body Conditioner::5 oz. Tube::11.95::?::?::"
		+ "Face_Firming Anti-Wrinkle Eye Cream;"
		+ "Face_Sedona Red Mineral Facial;"
		+ "Face_Nighttime Refining Moisturizer"
	      + "::.gif",
  */

  /*
	"Hair_2600::Gold Shaping Gel::5 oz. Tube::9.95::?::?::"
		+ "Face_Lip Balm SPF 30+;"
		+ "Gift_5 Piece Travel Pack;"
		+ "Face_Sedona Red Mineral Facial"
	      + "::.gif",
  */

	"Hair_2610::Gold Shaping Gel::8 oz. Bottle w/pump::10.95::?::?::"
		+ "Face_Lip Balm SPF 30+;"
		+ "Gift_5 Piece Travel Pack;"
		+ "Face_Sedona Red Mineral Facial"
	      + "::.gif",

	"Hair_5000::Botanical Sculpting Spray::8 oz. Spray::13.95::?::?::"
		+ "Gift_Nylon Hanging Travel Pouch;"
		+ "Body_Sedona Red Mineral Soap;"
		+ "Face_Refreshing Facial Toner"
	      + "::.gif",

	"Hair_5010::Botanical Sculpting Spray::2 oz. Spray::5.95::?::?::"
		+ "Gift_Nylon Hanging Travel Pouch;"
		+ "Body_Sedona Red Mineral Soap;"
		+ "Face_Refreshing Facial Toner"
	      + "::.gif",


  // BODY:

	"Body_6410::Sedona Red Mineral Soap::3.5 oz. Bar::5.95::?::?::"
		+ "Face_Sedona Red Mineral Facial;"
	//	+ "Hair_Maximum Body Shampoo;"
		+ "Face_Firming Anti-Wrinkle Eye Cream;"
		+ "Face_Advanced Daily Cleanser"
	      + "::.gif",

  /*
	"Body_7400::Sea Kelp Soap::3.5 oz. Bar::5.95::?::?::"
		+ "Face_Advanced Daily Cleanser;"
		+ "Gift_5 Piece Travel Pack;"
		+ "Face_Wildberry Facial Moisturizer"
	      + "::?",
  */

	"Body_7420::Sea Kelp Soap::Package of two 1.75 oz. Bars::5.95::?::?::"
		+ "Face_Advanced Daily Cleanser;"
		+ "Gift_5 Piece Travel Pack;"
		+ "Face_Hydrating Facial Moisturizer"
	      + "::.gif",


  /* removed 2/3/09 per Viki email
	"Body_7000::Spa Shower Gel::8 oz. Bottle::15.95::?::?::"
		+ "Hair_Mountain Moisture Shampoo;"
		+ "Hair_Mountain Moisture Conditioner;"
		+ "Body_Body Balm Moisturizer"
	      + "::.gif",
  */

  /* removed 10/14/09 per Viki email
	"Body_7330::Spa Shower Gel::35 oz. (1 Liter) Bottle w/pump::45.95::?::?::"
		+ "Hair_Mountain Moisture Shampoo;"
		+ "Hair_Mountain Moisture Conditioner;"
		+ "Body_Body Balm Moisturizer"
	      + "::.gif",
  */

	"Body_4010::Body Balm Moisturizer::2 oz. Bottle::2.95::?::?::"
		+ "Face_Wildberry Facial Moisturizer;"
		+ "Body_Honey And Almond Bath Salts;"
		+ "Face_Firming Anti-Wrinkle Eye Cream"
	      + "::.gif",


  /* removed 12/18/08 per Viki email
	"Body_4000::Body Balm Moisturizer::8 oz. Bottle::13.95::?::?::"
	//	+ "Body_Spa Shower Gel;"
		+ "Body_Honey And Almond Bath Salts;"
		+ "Face_Firming Anti-Wrinkle Eye Cream"
	      + "::.gif",
  */

	"Body_4330::Body Balm Moisturizer::35 oz. (1 Liter) Bottle w/pump::39.95::?::?::"
		+ "Face_Wildberry Facial Moisturizer;"
		+ "Body_Honey And Almond Bath Salts;"
		+ "Face_Firming Anti-Wrinkle Eye Cream"
	      + "::.gif",

  /*
	"Body_6900::Sun Care SPF 15::4 oz. Bottle::12.00::?::?::"
		+ "Face_Hydrating Facial Moisturizer;"
		+ "Face_Lip Balm SPF 30+;"
		+ "Hair_Mountain Moisture Shampoo"
	      + "::?",
  */

  /* Discontinued per Mia email 10/18/07
	"Body_9300::Peace Rose Bath Salts::16 oz. Round Lucite Jar::15.95::?::?::"
		+ "Body_Body Balm Moisturizer;"
		+ "Hair_Mountain Moisture Shampoo;"
		+ "Gift_Specialty Gift Basket"
	      + "::.gif",
  */

  /* Removed per Viki email 8/7/09
	"Body_9310::Honey Almond Bath Salts::Trapezoidal Bottle (26 oz)::18.95::?::?::"
		+ "Face_Sedona Red Mineral Facial;"
		+ "Body_Honey And Almond Bath Salts;"
		+ "Body_Body Balm Moisturizer"

	      + "::?",
  */

	"Body_9710::Honey And Almond Bath Salts::Cello Bag (32 oz)::9.95::?::?::"

	  //	+ "Face_Nighttime Refining Moisturizer;"
	  //	+ "Body_Jojoba Foot Balm;"
	  //	+ "Face_Lip Balm SPF 30+"

		+ "Face_Nighttime Refining Moisturizer;"
		+ "Body_Honey Almond Bath Salts;"
		+ "Body_Jojoba Foot Balm"

	      + "::?",


  /* Deleted per Mia Martori phone message - 3/4/05
	"Body_9100::Mineral Bath Crystals - China Rain::13 oz. Conical Bottle::18.00::?::?::"
		+ "Gift_Nylon Hanging Travel Pouch;"
	//	+ "Body_Spa Shower Gel;"
		+ "Face_Sedona Red Mineral Facial"
	      + "::?",

	"Body_9110::Mineral Bath Crystals - China Rain::2 oz. Packet::5.00::?::?::"
		+ "Gift_Nylon Hanging Travel Pouch;"
	//	+ "Body_Spa Shower Gel;"
		+ "Face_Sedona Red Mineral Facial"
	      + "::?",
  */

  /* Deleted per Mia Martori phone discussion - 11/9/04
	"Body_9000::Mineral Bath Crystals - Jasmine::16 oz. Hexagonal Bottle::18.00::?::?::"
		+ "Gift_Nylon Hanging Travel Pouch;"
	//	+ "Body_Spa Shower Gel;"
		+ "Face_Sedona Red Mineral Facial"
	      + "::?",

	"Body_9010::Mineral Bath Crystals - Jasmine::2 oz. Packet::5.00::?::?::"
		+ "Gift_Nylon Hanging Travel Pouch;"
	//	+ "Body_Spa Shower Gel;"
		+ "Face_Sedona Red Mineral Facial"
	      + "::?",
  */

  /* Deleted per Mia Martori phone message - 3/4/05
	"Body_9200::Mineral Bath Crystals - Vanilla Crème::15 oz. Trapezoidal Bottle::18.00::?::?::"
		+ "Gift_Nylon Hanging Travel Pouch;"
	//	+ "Body_Spa Shower Gel;"
		+ "Face_Sedona Red Mineral Facial"
	      + "::?",

	"Body_9210::Mineral Bath Crystals - Vanilla Crème::2 oz. Packet::5.00::?::?::"
		+ "Gift_Nylon Hanging Travel Pouch;"
	//	+ "Body_Spa Shower Gel;"
		+ "Face_Sedona Red Mineral Facial"
	      + "::?",
  */

	"Body_1000::Jojoba Foot Balm::4 oz. Jar::15.95::?::?::"
		+ "Body_Body Balm Moisturizer;"
		+ "Face_Advanced Daily Cleanser;"
		+ "Body_Sedona Red Mineral Soap"
	      + "::.gif",



  // GIFT:

	"Gift_7700::Shop For A Cause Gift Set::Coffee Toned Chiffon Bag::28.95::?::?::?::?",

	//"Gift_9720::Mothers Day Special Gift::Lavender Organza Pouch::17.95::?::?::?::?",

	// "Gift_8100::Specialty Gift Basket::w/Maximum Body Shampoo::29.95::?::8.95::?::?",
	// Viki email 9/4/08: Please remove the option for Maximum Body Shampoo for the Specialty Gift Basket as we do not have MaxBod Shampoo.

	//"Gift_8200::Specialty Gift Basket::w/Mountain Moisture Shampoo::29.95::?::8.95::?::?",

	//"Gift_8300::Invigorating Body Therapy Basket::Stained wicker basket::49.95::?::10.95::?::?",

	//"Gift_8500::Spa Basket::w/Mountain Moisture Shampoo &amp; Conditioner::109.95::?::?::?::?",
	//"Gift_8510::Spa Basket::w/Maximum Body Shampoo &amp; Conditioner::109.95::?::?::?::?",

	//"Gift_8400::Sanctuary Basket::Natural wicker basket::249.95::?::25.00::?::?",

	//"Gift_8610::Spa Picnic Basket::wicker, w/Hydrating Facial Moisturizer::89.95::?::?::?::?",
	//"Gift_8600::Spa Picnic Basket::wicker, w/Wildberry Facial Moisturizer::89.95::?::?::?::?",
	//"Gift_8600::Spa Picnic Basket::wicker::89.95::?::12.95::?::?",


	"Gift_8620::Essential Radiance Gift Set::Wicker Tray::129.95::?::17.45::?::?",
	"Gift_9900::Canyon Retreat Gift Set::Wicker Tray::64.95::?::10.95::?::?",

	// without shipping exception:
	//	"Gift_8620::Essential Radiance Gift Set::Wicker Tray::129.95::?::?::?::?",
	//	"Gift_9900::Canyon Retreat Gift Set::Wicker Tray::64.95::?::?::?::?",


	"Gift_9800::Desert Oasis Gift Set::Copper Organza Bag::29.95::?::?::?::?",
	"Gift_9850::Sedona Sparkle Gift Set::Gift Box::34.95::?::?::?::?",

	"Gift_8000::5 Piece Travel Pack::Clear vinyl pouch::19.95::?::?::?::?",
	"Gift_9701::Nylon Hanging Travel Pouch::Zippered pouch w/hanger::29.95::?::?::?::?",
	//"Gift_8700::Herbal Pillows - Healing (Eucalyptus)::5&quot; x 8&quot;::14.00::?::?::?::?",
	//"Gift_8800::Herbal Pillows - Energy (Rosemary/Spearmint)::5&quot; x 8&quot;::14.00::?::?::?::?",
	//"Gift_8900::Herbal Pillows - Relaxation (Lavender)::5&quot; x 8&quot;::14.00::?::?::?::?",
	//"Gift_0010::Aromatherapy Candles - Relaxation::Pillar::10.00::?::?::?::?",
	//"Gift_0011::Aromatherapy Candles - Romance::Pillar::10.00::?::?::?::?",
	//"Gift_0012::Aromatherapy Candles - Energizing::Pillar::10.00::?::?::?::?",
	//"Gift_0013::Aromatherapy Candles - Relaxation::Votive (2-pack)::4.00::?::?::?::?",
	//"Gift_0014::Aromatherapy Candles - Romance::Votive (2-pack)::4.00::?::?::?::?",
	//"Gift_0015::Aromatherapy Candles - Energizing::Votive (2-pack)::4.00::?::?::?::?",
	"Gift_9600::Sedona Red Rock Talisman::Each is unique::5.95::?::?::?::?",
	"Gift_9400::Red Sandstone Soap Dish::Each is unique pattern::17.95::?::?::?::?",
	//"Gift_9500::Handthrown Stoneware Dispenser::7&quot; high, holds 10&#177; oz, unique design::24.50::?::?::?::?",

	//"Gift_9700::Holiday Season Gift ~ Celebrate::Limited Special Package::49.95::?::?::?::?",
	//"Gift_9705::Holiday Season Gift ~ Spa Holiday::Limited Special Package::39.95::?::?::?::?",
	//"Gift_9720::Holiday Season Gift ~ Honey and Almond Bath Salts::Trapezoidal Bottle::18.95::?::?::?::?",
	//"Gift_9721::Holiday Season Gift ~ Honey and Almond Bath Salts::Hexagonal Bottle::18.95::?::?::?::?",

	//"Gift_9722::Honey and Almond Bath Salts::Trapezoidal Bottle (26 oz)::18.95::?::?::?::?",
	//"Gift_9723::Honey and Almond Bath Salts::Hexagonal Bottle (26 oz)::18.95::?::?::?::?",

	//"Gift_9730::Holiday Season Gift ~ Tis The Season::Limited Special Package::109.95::?::?::?::?",
	//"Gift_9740::Holiday Season Gift ~ Jingle Bells::Limited Special Package::59.95::?::?::?::?",
	//"Gift_9750::Holiday Season Gift ~ Deck The Halls::Limited Special Package::34.95::?::?::?::?",
	//"Gift_9760::Holiday Season Gift ~ Mrs Claus Beauty Secrets::Limited Special Package::49.95::?::?::?::?",

	//"Gift_9901::Sedona In A Box::Special package::79.95::?::?::?::?",


	"Gift_C025::Gift Certificate - $25::8&#189;&quot; x 11&quot;::25.00::0::2.50::?::?",
	"Gift_C050::Gift Certificate - $50::8&#189;&quot; x 11&quot;::50.00::0::2.50::?::?",
	"Gift_C075::Gift Certificate - $75::8&#189;&quot; x 11&quot;::75.00::0::2.50::?::?",
	"Gift_C100::Gift Certificate - $100::8&#189;&quot; x 11&quot;::100.00::0::2.50::?::?",

	// without shipping exception:
	//	"Gift_C025::Gift Certificate - $25::8&#189;&quot; x 11&quot;::25.00::0::?::?::?",
	//	"Gift_C050::Gift Certificate - $50::8&#189;&quot; x 11&quot;::50.00::0::?::?::?",
	//	"Gift_C075::Gift Certificate - $75::8&#189;&quot; x 11&quot;::75.00::0::?::?::?",
	//	"Gift_C100::Gift Certificate - $100::8&#189;&quot; x 11&quot;::100.00::0::?::?::?",


	"");


prodListAdjust();



function uListProducts(lpGroup)
  {
    var prodRec, pxDesc, pxDesc1, pxDesc2, pxSize, pxDescVars="", pxDescSave="", pxSizeSave="", 
	pxString="<ul type='circle' style='margin: 5px 10px 5px 25px'>" ;
    for (px = 0 ; px < prodList.length ; px++)
      {
	if (prodList[px].indexOf("::") == -1) { continue };
	prodRec	= prodList[px].split("::");
	if (prodRec[0].toLowerCase().indexOf(lpGroup.toLowerCase()) != 0) { continue };
	pxDesc	= prodRec[1];
	pxDesc1	= (pxDesc.indexOf(" - ") == -1) ? ""+pxDesc : pxDesc.substring(0,pxDesc.indexOf(" - ")) ;
	pxDesc2	= (pxDesc.indexOf(" - ") == -1) ? "" : pxDesc.substring(pxDesc.indexOf(" - ")+3,pxDesc.length) ;
	pxSize	= prodRec[2];
	if (pxDesc1 == pxDescSave) 
	  {
	    if (pxSizeSave.indexOf(pxSize) == -1)  { pxSizeSave += "<br><nobr>"+pxSize+"</nobr>" }
	    if ((pxDesc2.length > 0) && (pxDescVars.indexOf(pxDesc2) == -1)) 
	      { pxDescVars += (pxDescVars.length > 0) ? ", "+pxDesc2 : pxDesc2 }
	  } else
	  { 
	    if (pxDescSave.length > 0) 
	      {
		pxDescVars = (pxDescVars.length > 0) ? " ("+pxDescVars+")" : "" ;
		pxString  += "<li style='margin: 0px 0px 5px 0px; line-height:0.95em'><b>"+pxDescSave+"</b>"+pxDescVars+pxSizeSave;
	      }
	    pxDescVars = pxDesc2;
	    pxSizeSave = "<br><nobr>"+pxSize+"</nobr>";
	  }
	pxDescSave = pxDesc1;
      }
    pxDescVars 	= (pxDescVars.length > 0) ? " ("+pxDescVars+")" : "" ;
    pxString   += "<li style='margin: 0px 0px 5px 0px; line-height:0.95em'><b>"+pxDescSave+"</b>"+pxDescVars+pxSizeSave+"</ul>";
    return pxString
  }



function showOurGuarantee()
  {
    document.write("<div align=center style='margin-top:8px'>"
	+ "<table border=1 cellspacing=0 cellpadding=4 "
	  + "borderColorLight=white borderColorDark=gray "
	  + "style='font-family:arial,tahoma,verdana; font-size:8pt; "
	  + "font-weight:normal; color:#333333'>"
	+ "<tr>"
	  + "<td><div align=justify><b>OUR GUARANTEE:</b>&nbsp; "
		+ "We strive to have every order exceed your expectations, however, if you are "
		+ "not completely satisfied, you may return Sedona Spa merchandise with proof "
		+ "of purchase within 30 days of purchase date for an exchange or full refund "
		+ "(excluding shipping).</div></td>"
	+ "</tr>"
	+ "</table>"
      + "</div>")
  }



function appendTestimonial(at1,at2)
  {
    var atLoc = ""+document.location;
    if ((!at1)||(at1.length<1)||(!at2)||(at2.length<1)||(atLoc.toLowerCase().indexOf("_products.html")==-1)) 
      { return "" } else
      { 
	return "<div align=left style='margin-top:10px; font-style:italic; color:#666699'>&#147;"+at1+"&#148;"
		+ "<div style='font-style:normal'>&#150; "+at2+"</div></div>"
      }
  }




// General Testimonials:

generalTestimonials = new Array(

    //				prod name :: testimonial text :: client name, location
    //	(or use a wildcard:		* :: testimonial text :: client name, location)


	"Hair::Recently, I purchased both your Maximum Body Shampoo and conditioner... I cannot "
	+ "begin to tell you how pleased and ecstatic I am with the results of this fabulous "
	+ "combination of products. I am so thrilled to finally find a product line that more "
	+ "than fulfills its duty and works way beyond expectations!"
	+ "::Mark and Jennifer, NY",

	"Body::Reasonable Prices, natural ingredients, no animal testing, body moisturizer not "
	+ "greasy, soap leaves face clean and clears impurities without outbreaks, simple "
	+ "packaging."
	+ "::Anonymous",

	"Gift::I visited Los Abrigados in 1996 and visited the spa. I was given a sample to "
	+ "try and have ordered ever since then. 2 years ago you donated a basket to a charity "
	+ "raffle event I was chairing."
	+ "::Karen, IL",

	"Gift::I spent a weekend at the Los Abrigados Lodge and tried some of your products "
	+ "and brought home some for gifts and my friend, who loved your products too."
	+ "::Elaine, SC",

    /*
	"*::Have been using your products since our first trip to Sedona in 1997. Love them, "
	+ "they are great!"
	+ "::Jacqueline, KY",

	"*::I am a Premiere owner at Los Abrigados and have used your Sedona Spa products while "
	+ "staying there. They are terrific!"
	+ "::Sheri, CA",

	"*::Your products are some of the best I&#146;ve ever used!"
	+ "::Janis, NV",

	"*::Having used Sedona Spa products for two and a half years, I am delighted to have "
	+ "the opportunity to tell you how pleased I am with all of the products and the warm, "
	+ "friendly and courteous service I have received with each order. I was particularly "
	+ "impressed with your concern and follow-up on an order that was delayed by the "
	+ "shipper. It was a nice surprise to find a handwritten note of appreciation tucked "
	+ "into one of my orders. There are not words to thank you for your wonderful products "
	+ "and superb service, so I guess I&#146;ll simply have to say Thank You for your "
	+ "wonderful dedication to your responsibilities and to your customers from which I "
	+ "have benefited greatly."
	+ "::Lois, PA",

	"*::Someone deserves a great big thank you! I&#146;ve tried all of the Sedona Spa "
	+ "products and I am sold. They are all great! I&#146;ve tried lots of products looking "
	+ "for the fountain of youth - never have I like so many products so much."
	+ "::Gen",

	"*::General Testimonial (generic for all testimonial pages) Pending"
	+ ":: ",
    */


    // The following entries are for the 4 general reviews that appear on the 
    // general reviews page (testimonials.html with no group specified), 
    // and they will each also appear on group-specific reviews pages:

	"Body"
	+ "::Through the years, I have used expensive, top name brands, but since I started "
	  + "using your moisturizers such as the Body Balm and Hydrating Facial Moisturizer, my "
	  + "skin looks and feels fantastic."
	+ "::Rosemary, NY",

	"Face"
	+ "::My husband and I honeymooned in Sedona eight years ago and I have been using your "
	  + "products ever since."
	+ "::Deborah, NY",

	"Hair"
	+ "::I am very impressed with your products after using some samples when I visited Sedona last year. "
	  + "Your shampoo and conditioner are the best I have ever tried. I also must remark on the courteous "
	  + "and personable staff you have answering your phones."
	+ "::Pat, FL",

	"Gift"
	+ "::I am delighted to tell you how pleased I am with all of the products and the warm, "
	  + "friendly and courteous service I have received with each order. It was a nice "
	  + "surprise to find a handwritten note of appreciation tucked into one of my orders... "
	  + "There are not words to thank you for your wonderful products and superb service."
	+ "::Lois, PA",

	"");



// Imports:

var fileID, groupID, pageID, queryFlag;

fileID		= ""+document.location;
fileID		= (fileID.indexOf("#") == -1) ? ""+fileID 
		: fileID.substring(0,fileID.indexOf("#")) ;
queryFlag	= (fileID.indexOf("?") != -1) ? 1 : 0 ;
fileID		= (queryFlag) ? fileID.substring(0,fileID.indexOf("?")) : ""+fileID ;
fileID		= fileID.substring(fileID.lastIndexOf("/")+1,fileID.length);
groupID		= ((fileID.indexOf("_") != -1) && (fileID.indexOf(".html") == fileID.length-5))
		? fileID.substring(0,fileID.indexOf("_")) : "" ;
pageID		= ((fileID.indexOf("_") != -1) && (fileID.indexOf(".html") == fileID.length-5))
		? fileID.substring(fileID.indexOf("_")+1,fileID.indexOf(".html")) : "" ;

if ((groupID == "body") || (groupID == "face") || (groupID == "gift") || (groupID == "hair"))
  {
    if ((pageID == "home") || (pageID == "products") || (pageID == "testimonials"))
      {
	document.write(""
	+ "<script language='JavaScript' type='text/JavaScript' "
	  + "src='script/"+groupID+"data.js'></script>"
	+ "<script language='JavaScript' type='text/JavaScript' "
	  + "src='script/"+pageID.substring(0,4)+"proc.js'></script>")
      }
  } else
if (((!queryFlag) && (fileID == "testimonials.html"))	|| 
    (fileID == "easyorder.html")			|| 
    (fileID == "specialoffers.html")			|| 
    (fileID == "brochure.html"))
  {
    document.write(""
     + "<script language='JavaScript' type='text/JavaScript' src='script/bodydata.js'></script>"
     + "<script language='JavaScript' type='text/JavaScript' src='script/facedata.js'></script>"
     + "<script language='JavaScript' type='text/JavaScript' src='script/giftdata.js'></script>"
     + "<script language='JavaScript' type='text/JavaScript' src='script/hairdata.js'></script>")
  } else
  {
    document.write("")
  }


//-->
