/////////////////////////////////////////////////////////////////////////=
////////////////////////////
  // product_data.js

  // product comes from product_data.js
  function Product(name, plan, type, price, dim){
	  this.name = name;
	  this.plan = plan;
	  this.type = type;
	  this.price= Number(price);
	  this.id   = plan+' '+type;
	  this.dim  = dim;
  }
  var products = Array();
  var product_lookup = new Object();

 
/////////////////////////////////////////////////////////////////////////=
////////////////////////////
  // product_data.js

  var w_opening_cost = 150.00;
  var r_opening_cost = 250.00;


// add dimensions as an extra argument - notice theres one product for each floor plan x wall pair

  // raw data
  // Victorian
  products[products.length] = new Product('Victorian', 'V1', 'dwarf', 1810.00, '3078x2775');
  products[products.length] = new Product('Victorian', 'V1', 'glass to grnd',  2114.00, '3078x2775');
  products[products.length] = new Product('Victorian', 'V2', 'dwarf', 2267.00, '3078x3375');
  products[products.length] = new Product('Victorian', 'V2', 'glass to grnd',  2581.00, '3078x3375');
  products[products.length] = new Product('Victorian', 'V3', 'dwarf', 2733.00, '3078x3975');
  products[products.length] = new Product('Victorian', 'V3', 'glass to grnd',  3048.00, '3078x3975');
 
  // Edwardian
  products[products.length] = new Product('Edwardian', 'E1', 'dwarf', 2429.00, '3180x2377');
  products[products.length] = new Product('Edwardian', 'E1', 'glass to grnd',  2733.00, '3180x2377');
  products[products.length] = new Product('Edwardian', 'E2', 'dwarf', 2733.00, '3180x3127');
  products[products.length] = new Product('Edwardian', 'E2', 'glass to grnd',  3048.00, '3180x3127');
  products[products.length] = new Product('Edwardian', 'E3', 'dwarf', 3200.00, '3180x3877');
  products[products.length] = new Product('Edwardian', 'E3', 'glass to grnd',  3508.00, '3180x3877');
 
  // Luxury Edwardian
  products[products.length] = new Product('Luxury Edwardian', 'L1', 'dwarf', 3408.00 ,'3180x2377');
  products[products.length] = new Product('Luxury Edwardian', 'L2', 'dwarf', 3872.00, '3180x3127');
  products[products.length] = new Product('Luxury Edwardian', 'L3', 'dwarf', 4339.00, '3180x3877');
  products[products.length] = new Product('Luxury Edwardian', 'L4', 'dwarf', 4806.00, '3180x4627');
  products[products.length] = new Product('Luxury Edwardian', 'L5', 'dwarf', 4034.00, '3580x3527');
  products[products.length] = new Product('Luxury Edwardian', 'L6', 'dwarf', 4653.00, '3580x4377');
  products[products.length] = new Product('Luxury Edwardian', 'L7', 'dwarf', 4501.00, '4680x3127');
  products[products.length] = new Product('Luxury Edwardian', 'L8', 'dwarf', 5272.00, '4680x3877');
 
  // Luxury Victorian
  products[products.length] = new Product('Luxury Victorian', 'K1', 'dwarf', 3100.00, '3319x2341');
  products[products.length] = new Product('Luxury Victorian', 'K2', 'dwarf', 3253.00, '3319x2991');
  products[products.length] = new Product('Luxury Victorian', 'K3', 'dwarf', 3719.00, '3319x3641');
  products[products.length] = new Product('Luxury Victorian', 'K4', 'dwarf', 4183.00, '3319x4291');
  products[products.length] = new Product('Luxury Victorian', 'K5', 'dwarf', 3253.00, '3801x2687');
  products[products.length] = new Product('Luxury Victorian', 'K6', 'dwarf', 3872.00, '3801x3437');
  products[products.length] = new Product('Luxury Victorian', 'K7', 'dwarf', 4339.00, '3801x4187');
  products[products.length] = new Product('Luxury Victorian', 'K8', 'dwarf', 4958.00, '3801x4937');
 
 
  // Traditional Lean-To
  products[products.length] = new Product('Traditional-Lean-To', 'LT1', 'dwarf', 1495.00, '2430x2377');
  products[products.length] = new Product('Traditional-Lean-To', 'LT2', 'dwarf', 1962.00, '3180x2377');
  products[products.length] = new Product('Traditional-Lean-To', 'LT3', 'dwarf', 2267.00, '3930x2377');
  products[products.length] = new Product('Traditional-Lean-To', 'LT1', 'glass to grnd',   1647.00, '2430x2377');
  products[products.length] = new Product('Traditional-Lean-To', 'LT2', 'glass to grnd',   2114.00, '3180x2377');
  products[products.length] = new Product('Traditional-Lean-To', 'LT3', 'glass to grnd',   2429.00, '3930x2377');
 

  // end raw data


  for(var i=0;i<products.length;i++){
	  var p = products[i];
	  product_lookup[p.id] = p;
  }


  // EOF: product_data.js
 
/////////////////////////////////////////////////////////////////////////////////////////////////////



