/* --------------- STUDIO CONNECTIONS EXTERNAL JAVASCRIPT FILE -------------- */
/*                                                                            */
/*    Description: Database for Shopping system.                              */
/*         Client: Cloud Studios - info@cloudstudios.com                      */
/*        Website: www.cloudstudios.com                                       */
/*         Author: Colin Abrahams - colin@studioconnections.net.au            */
/*      Copyright: 2008 Colin Abrahams, Studio Connections                    */
/*       Location: Wyong, NSW, Australia                                      */
/*        Version: SC-5.8                                                     */
/*   Last Updated: 2008-11-28                                                 */


// Shopping List
ShopList = new Array();

// Shopping List item constructor function
function ShopItem(ItemType, ItemDesc, ItemPict, ItemCost) {
  this.Type = ItemType;                                      // Product category
  this.Desc = ItemDesc;                                      // Item description
  this.Pict = ItemPict;                                  // 150x150 Item Picture
  this.Cost = ItemCost;                        // Item sale price, including GST
  this.Quan = 0;                                             // Quantity ordered
}

// Shopping List data
i = 0;
ShopList[i++] = new ShopItem("CD",
                             "Amsterjam - Amsterjam EP CD",
                             "Site/Shop/Images/CD-Amsterjam.jpg",
                             "10.00");
ShopList[i++] = new ShopItem("CD",
                             "Andrew Clermont &amp; Parris Macleod - "
                             + "Dance Of The Good Life CD",
                             "Site/Shop/Images/CD-GoodLife.jpg",
                             "29.95");
ShopList[i++] = new ShopItem("CD",
                             "Andrew Clermont &amp; Parris Macleod - "
                             + "Flat Out Like A Lizard Drinking EP CD",
                             "Site/Shop/Images/CD-Lizard.jpg",
                             "5.00");
ShopList[i++] = new ShopItem("CD",
                             "Andrew Clermont &amp; Parris Macleod - "
                             + "Happy As Larry CD",
                             "Site/Shop/Images/CD-Happy.jpg",
                             "25.00");
ShopList[i++] = new ShopItem("CD",
                             "Andrew Clermont &amp; Parris Macleod - "
                             + "Reeling In The Big One EP CD",
                             "Site/Shop/Images/CD-BigOne.jpg",
                             "5.00");
ShopList[i++] = new ShopItem("CD",
                             "Opal Road - Didge Odyssey CD",
                             "Site/Shop/Images/CD-Odyssey.jpg",
                             "25.00");
ShopList[i++] = new ShopItem("CD",
                             "Gail Page - Colours That Run CD",
                             "Site/Shop/Images/CD-Colours.jpg",
                             "29.95");
ShopList[i++] = new ShopItem("CD",
                             "Joe Robinson - Birdseed CD",
                             "Site/Shop/Images/CD-Birdseed.jpg",
                             "29.95");
ShopList[i++] = new ShopItem("CD",
                             "The Reason To Breathe - The Reason To Breathe CD",
                             "Site/Shop/Images/CD-RTB.jpg",
                             "29.95");
ShopList[i++] = new ShopItem("CD",
                             "Wu Pu-Yu - Chromatic Fantasy CD",
                             "Site/Shop/Images/CD-Fantasy.jpg",
                             "25.00");
ShopList[i++] = new ShopItem("TShirt",
                             "Cloud Studios T-Shirt - Size M",
                             "Site/Shop/Images/CloudTShirt.jpg",
                             "25.00");
ShopList[i++] = new ShopItem("TShirt",
                             "Cloud Studios T-Shirt - Size L",
                             "Site/Shop/Images/CloudTShirt.jpg",
                             "25.00");
ShopList[i++] = new ShopItem("TShirt",
                             "Cloud Studios T-Shirt - Size XL",
                             "Site/Shop/Images/CloudTShirt.jpg",
                             "25.00");
ShopList[i++] = new ShopItem("TShirt",
                             "Cloud Studios T-Shirt - Size XXL",
                             "Site/Shop/Images/CloudTShirt.jpg",
                             "25.00");
ShopList[i++] = new ShopItem("TShirt",
                             "Cloud Studios T-Shirt - Size XXXL",
                             "Site/Shop/Images/CloudTShirt.jpg",
                             "25.00");


// Item Categories
ShopCat = new Array();

// Item Categories item constructor function
function CatItem(CatType, CatWght) {
  this.Type = CatType;                                       // Product category
  this.Wght = CatWght;                                        // Weight per item
  this.Quan = 0;                                         // Quantity in category
}

// Item Categories data
j = 0;
                         // TYPE      WGHT
ShopCat[j++] = new CatItem("Trinket", "10");
ShopCat[j++] = new CatItem("TShirt",  "50");
ShopCat[j++] = new CatItem("CD",      "55");


// Packages
ShopPkg = new Array();

// Packages item constructor function
function PkgItem(PkgType, PkgRMin, PkgWght, PkgCost) {
  this.Type = PkgType;                                       // Product category
  this.RMin = PkgRMin;                                 // Minimum quantity range
  this.Wght = PkgWght;                                     // Weight per package
  this.Cost = PkgCost;                                           // Package cost
}

// Packages data
k = 0;
                         // TYPE     MIN QTY  WGHT    COST
ShopPkg[k++] = new PkgItem("Trinket",  "1",   "10",  "0.50");
ShopPkg[k++] = new PkgItem("TShirt",   "1",   "20",  "1.35");
ShopPkg[k++] = new PkgItem("CD",       "1",   "25",  "1.35");
ShopPkg[k++] = new PkgItem("CD",       "3",   "50",  "2.50");
ShopPkg[k++] = new PkgItem("CD",      "11",  "100",  "5.00");


// Postage Charges
ShopPost = new Array();

// Postage Charges item constructor function
function PostItem(PostWMax, PostAStd, PostOStd) {
  this.WMax = PostWMax;                                        // Maximum weight
  this.AStd = PostAStd;                      // Inside Australia Standard charge
  this.OStd = PostOStd;                              // Overseas Standard charge
}

// Postage Charges data
l = 0;
                          // WGHTMAX   AUST    OVERSEAS
ShopPost[l++] = new PostItem(  "49",  "0.50",   "8.80");
ShopPost[l++] = new PostItem( "250",  "3.15",   "8.80");
ShopPost[l++] = new PostItem( "500",  "4.00",  "14.35");
ShopPost[l++] = new PostItem( "750",  "6.00",  "19.90");
ShopPost[l++] = new PostItem("1000", "10.50",  "25.35");


// Postage Options
ShopPostOpt = new Array();

// Postage Options item constructor function
function PostOptItem(PostOptCode, PostOptDesc) {
  this.Code = PostOptCode;                          // Postage charge field name
  this.Desc = PostOptDesc;                           // Postage type description
}

// Postage Options data
m = 0;
ShopPostOpt[m++] = new PostOptItem("AStd", "Standard mail inside Australia");
ShopPostOpt[m++] = new PostOptItem("OStd", "Mail outside Australia");


// Payment Options
ShopPmtOpt = new Array();

// Payment Options item constructor function
function PmtOptItem(PmtOptDesc, PmtOptAbbr) {
  this.Desc = PmtOptDesc;                          // Payment Option description
  this.Abbr = PmtOptAbbr;                    // Payment option brief description
}

// Payment Options data
n = 0;
ShopPmtOpt[n++] = new PmtOptItem("I will transfer the money to your account "
                               + "and send you an email", "Bank Transfer");
ShopPmtOpt[n++] = new PmtOptItem("I will print the form and post it with a "
                               + "cheque to you", "Cheque");


// Shopping Centre Email address
SEAddr = "sales@cloudstudios.com"
SECC = "info@cloudstudios.com"

// Bank Details
SBN1 = "Sunba";
SBBA = "03";
SBA1 = "18";
SBB1 = "We";
SBN2 = "ll Pt";
SBST = "2-";
SBA2 = "70";
SBB2 = "stp";
SBN3 = "y Ltd";
SBBR = "528";
SBA3 = "92";
SBB3 = "ac";


// User details
SUCompany = "";
SUName = "";
SUPhone = "";
SUAddr1 = "";
SUAddr2 = "";
SUCity = "";
SUState = "";
SUPCode = "";
SUCountry = "Australia";
SUPmtOpt = "0";
SUPostOpt = "0";
SUEmail = "";
SUOptIn = false;
SUComments = "";

