//
// product.js
//
// Include file to define product objects and related methods.
//
	var mm = ["1","1","1"];
//
// Define constructor for this class
//
function Product (d,p,h) {
	this.description = d;
 	this.price = p;
 	this.total = 0;
	this.qty = 0;
	this.tag = h;
}

//
// Declare constants for class
//


// 
// Declare methods for class
//
	Product.prototype.calcTotal = new Function ( "this.total = this.price * this.qty; return this.price;" )

//
// End of class declarations
//
	var prodList = new Array();
//
// Fruit and Veg products - Vegetable Only Boxes (0 - 4)
//
	prodList[prodList.length] = new Product('Mini Veg Box',9.99,'MiniVegBox');						// 0
	prodList[prodList.length] = new Product('Small Veg Box',12.79,'SmallVegBox');						// 1
	prodList[prodList.length] = new Product('Medium Veg Box',14.99,'MediumVegBox');					// 2
	prodList[prodList.length] = new Product('Large Veg Box',18.49,'LargeVegBox');						// 3
	prodList[prodList.length] = new Product('Mediterranean box',13.95,'SummerBox');							// 4
//
// Fruit and Veg products - Fruit Only Boxes (5 -7)
//
	prodList[prodList.length] = new Product('Small Fruit Box',10.99,'SmallFruitBox');					// 5
	prodList[prodList.length] = new Product('Standard Fruit Box',16.75,'StandardFruitBox');				// 6
	prodList[prodList.length] = new Product('Fruit Bag',8.99,'FruitBag');							// 7

//
// Fruit and Veg products - Mixed Fruit & Vegetable Boxes (8 - 11)
//
	prodList[prodList.length] = new Product('Small Fruit & Veg Box',11.99,'SmallFruitVegBox');				// 8
	prodList[prodList.length] = new Product('Medium Fruit & Veg Box',14.99,'MediumFruitVegBox');			// 9
	prodList[prodList.length] = new Product('Standard Fruit & Veg Box',16.75,'StandardFruitVegBox');		// 10
	prodList[prodList.length] = new Product('Large Fruit & Veg Box',21.99,'LargeFruitVegBox');			// 11

//
// Fruit and Veg products - Salad (12 - 13)
//
	prodList[prodList.length] = new Product('Salad Box',13.99,'SaladBox');							// 12
	prodList[prodList.length] = new Product('Salad Bag',8.99,'SaladBag');							// 13

//
// Christmas Veg Boxes (14 - 15)
//
	prodList[prodList.length] = new Product('NOT Currently available',NA,'XmasVegBox');		// 14
	prodList[prodList.length] = new Product('NOT Currently available',0.00,'XmasXtras');		// 15

//
// Organic Poultry (16 - 17)
//
	prodList[prodList.length] = new Product('Whole Organic Kelly Bronze Turkey NOT available',0.00,'KellyBronzeTurkey');	// 16
	prodList[prodList.length] = new Product('Whole Organic Chicken',7.95,'WholeChicken');		// 17

//
// Organic Beef (18 - 20)
//
	prodList[prodList.length] = new Product('Organic Beef Fore Rib per Kg (minimum 2 ribs)',22.05,'BeefRib');	// 18
	prodList[prodList.length] = new Product('Organic Beef Topside per Kg',15.95,'BeefTopside');					// 19
	prodList[prodList.length] = new Product('Organic Beef Serloin boned/rolled per Kg',33.12,'BeefSeloin');		// 20

//
// Organic Pork (21 - 25)
//
	prodList[prodList.length] = new Product('Ashlyns Organic Pork Chipolatas 400g pack (£9.95 p/kg)',3.99,'PorkChipolatas');	// 21
	prodList[prodList.length] = new Product('Ashlyns Organic Pork Sausages 400g pack (£9.95 p/Kg)',3.99,'PorkSausage');	// 22
	prodList[prodList.length] = new Product('Organic Pork Sausage Meat 1Kg pack',9.85,'SausageMeat');					// 23
	prodList[prodList.length] = new Product('NOT Currently available',0.00,'StreakyBacon');						// 24
	prodList[prodList.length] = new Product('NOT Currently available',0.00,'GammonJoint');					// 25

//
// Free Range Poultry (26 - 29)
//
	prodList[prodList.length] = new Product('NOT Currently available - 4-6 kg',0.00,'FRTurkey4_6');	// 26
	prodList[prodList.length] = new Product('NOT Currently available - 6-8 kg',0.00,'FRTurkey6_8');	// 27
	prodList[prodList.length] = new Product('NOT Currently available - 8 kg plus',0.00,'FRTurkey8Plus');	// 28
	prodList[prodList.length] = new Product('Free Range Chicken per Kg',6.65,'FRChicken');			// 29

//
// Free Range Pork (30 - 34)
//
	prodList[prodList.length] = new Product('Pork Chipolatas 400g pack (£8.55 p/kg)',3.65,'FRPorkChipolatas');	// 30
	prodList[prodList.length] = new Product('Pork Sausages 400g pack (£8.25 p/Kg)',3.45,'FRPorkSausage');	// 31
	prodList[prodList.length] = new Product('Sausage Meat 1Kg pack',8.25,'FRSausageMeat');		// 32
	prodList[prodList.length] = new Product('Smoked Back Bacon 300g pack',3.98,'FRBacon');						// 33
	prodList[prodList.length] = new Product('NOT Currently available',0.00,'FRGammonJoint');					// 34

//
// Free Range Beef (35 - 37)
//
	prodList[prodList.length] = new Product('Beef Fore Rib (bone in) per Kg)',14.55,'FRBeefRib');	// 35
	prodList[prodList.length] = new Product('Beef Topside per Kg',8.99,'FRBeefTopside');	// 36
	prodList[prodList.length] = new Product('Beef Sirloin boned & rolled per Kg',22.55,'FRBeefSerloin');// 37

//
// Pitfield Organic Ales (38 - 43)
//
	prodList[prodList.length] = new Product('NOT Currently available',0.00,'Lager');	// 38
	prodList[prodList.length] = new Product('NOT Currently available',0.00,'Bitter');	// 39
	prodList[prodList.length] = new Product('NOT Currently available',0.00,'Stout');		// 40
	prodList[prodList.length] = new Product('NOT Currently available',0.00,'EKG');						// 41
	prodList[prodList.length] = new Product('NOT Currently available',0.00,'EcoWarrior');// 42
	prodList[prodList.length] = new Product('NOT Currently available',0.00,'RedAle');// 43

//
// Christmas Goodies (44 - 45)
//
	prodList[prodList.length] = new Product('NOT Currently available',0.00,'Vouchers');							// 27
	prodList[prodList.length] = new Product('NOT Currently available',0.00,'XmasPudding454');			// 22
	prodList[prodList.length] = new Product('NOT Currently available',0.00,'XmasPudding910');			// 23
	prodList[prodList.length] = new Product('NOT Currently available',0.00,'XmasSauce');			// 24
	prodList[prodList.length] = new Product('NOT Currently available',0.00,'Chestnuts');									// 25
	prodList[prodList.length] = new Product('NOT Currently available',0.00,'MixedNuts');		// 26

//
// End of Product Declarations
//larations
//