// Different sections of code in this file have different copyright status
// Parts of this file are © 1998, Infohiway, Inc
//The rest of the code is copyright © Creative Technology 2000.  All rights are reserved.
//This file deals with the hard-coded cookie called ct_basket, which has the format
// number_of_items | item_ordercode ^ quantity | item_ordercode ^ quantity (etc)

//JS Products file
//The structure is generic to all CT shopping sites, though details vary.

//Checkout redirection is in design.js - MUST INCLUDE https:// if reqd - used by checkout routine in cookies.js
//Target will normally be checkin.htm
shipping_uk = 18; //not used in code, only for info on pages
//Factors for shipping overseas - standard shipping is for UK, stored per product in Product records below
//Calculation routine is get_shipping_factor() in design.js
shipping_ec = 2.5;//parcel force standard rate - 10 working days ish £32
shipping_us = 3;//parcel force standard rate - 10 working days ish - £40
shipping_aus = 4;//Australia, NZ, Japan £44
shipping_other = 4;//Parcel Force rest of world £55



function MakeArray(n) {
   this.length = n;
   for (var i = 0; i <= n; i++) { 
     this[i] = 0 }
     return this
}

function Product(CatPage, OrderCode, Description, Price, Shipping) {
//constructor for products, called from ProductList array-maker below
this.CatPage = CatPage; //specifies the catalogue page - eg white_masks
this.OrderCode = OrderCode;
this.Description = Description;
this.Price = Price;
this.Shipping = Shipping
}

//This bit makes the ProductList array - store headings in [0] in case they're useful
ProductList = new MakeArray(9);
ProductList[0] = new Product("Catalogue Page", "Order Code","Description","Price", "Shipping");
ProductList[1] = new Product("clocks", "MCSCHO","School/Railway Clock", 119.00, 15.00);
ProductList[2] = new Product("options", "MCFINL","Light Oak Surround", 25.00, 0);
ProductList[3] = new Product("options", "MCFINM","Medium Oak Surround", 25.00, 0);
ProductList[4] = new Product("options", "MCFIND","Dark Oak Surround", 25.00, 0);
ProductList[5] = new Product("options", "MCFINN","Mahogany Surround", 25.00, 0);
ProductList[6] = new Product("options", "MCOPEN","Opening Bezel &amp; Winding Hole", 35.00, 0);







