/*
**
**  Copyright (c) 1997-2003 by Sniglets, Inc., all rights reserved.
**
**  Usage, duplication, and/or modification of this program, its
**  representation, or its results without written permission from
**  Sniglets, Inc. is expressly prohibited.
**
**  $Id: woven.js,v 1.3 2003/03/08 17:13:17 john Exp john $
**
*/

var sb_config_drop_down, sb_products, sb_product, sb_option, sb_options;

sb_config = new Object();
sb_config['label'] = 'valances';
sb_config['name'] = 'Custom Drapery Panels';
sb_config['product_type_list_box'] = 0;
sb_config['product_color_list_box'] = 0;


sb_products = new Array();

sb_product = new Object();
sb_product['name'] = 'Back Tab Drapery Panels Group $';
sb_product['url'] = 'http://www.dantehill.com/';
sb_product['width_minimum'] = 50;
sb_product['width_maximum'] = 100;
sb_product['length_minimum'] = 24;
sb_product['length_maximum'] = 120;
sb_product['colors'] = colors_A;
sb_product['widths'] = new Array(
50, 75, 100
);
sb_product['lengths'] = new Array(
24, 30, 36, 45, 54, 63, 72, 84, 96, 108, 120
);
sb_product['prices'] = new Array(
55, 69, 83,
59, 74, 89,
62, 79, 96,
67, 85, 104,
71, 92, 112,
77, 99, 121,
89, 113, 138,
96, 122, 149,
102, 130, 160,
108, 139, 171,
113, 148, 182
);
sb_product['price_standard_lining'] = new Array(
8, 9, 13,
8, 6, 14,
9, 11, 15,
11, 14, 17,
12, 15, 19,
13, 17, 21,
14, 18, 23,
15, 21, 25,
16, 23, 28,
17, 25, 32,
20, 26, 35
);
sb_product['price_thermal_lining'] = new Array(
14, 17, 22,
15, 15, 25,
16, 21, 27,
18, 26, 33,
21, 28, 38,
23, 33, 42,
26, 37, 47,
28, 41, 53,
30, 46, 60,
35, 51, 66,
39, 55, 72
);
sb_product['price_tieback_plain'] = 32;
sb_product['price_tieback_upgrade'] = 39;
sb_products.push(sb_product);

sb_product = new Object();
sb_product['name'] = 'Back Tab Drapery Panels Group $$';
sb_product['url'] = 'http://www.dantehill.com/';
sb_product['width_minimum'] = 50;
sb_product['width_maximum'] = 100;
sb_product['length_minimum'] = 24;
sb_product['length_maximum'] = 120;
sb_product['colors'] = colors_B;
sb_product['widths'] = new Array(
50, 75, 100
);
sb_product['lengths'] = new Array(
24, 30, 36, 45, 54, 63, 72, 84, 96, 108, 120
);
sb_product['prices'] = new Array(
65, 84, 103,
70, 91, 112,
75, 98, 121,
82, 108, 134,
89, 118, 147,
96, 128, 160,
111, 146, 181,
120, 159, 197,
129, 171, 219,
138, 184, 231,
147, 197, 248
);
sb_product['price_standard_lining'] = new Array(
8, 9, 13,
8, 5, 13,
9, 12, 15,
11, 14, 16,
12, 16, 19,
13, 16, 21,
14, 18, 23,
15, 20, 26,
21, 23, 23,
18, 25, 32,
19, 26, 34
);
sb_product['price_thermal_lining'] = new Array(
13, 17, 22,
14, 14, 24,
17, 21, 28,
19, 25, 33,
20, 29, 37,
23, 33, 42,
25, 36, 47,
28, 41, 54,
32, 46, 55,
35, 50, 66,
38, 55, 72
);
sb_product['price_tieback_plain'] = 39;
sb_product['price_tieback_upgrade'] = 45;
sb_products.push(sb_product);

sb_product = new Object();
sb_product['name'] = 'Back Tab Drapery Panels Group $$$';
sb_product['url'] = 'http://www.dantehill.com/';
sb_product['width_minimum'] = 50;
sb_product['width_maximum'] = 100;
sb_product['length_minimum'] = 24;
sb_product['length_maximum'] = 120;
sb_product['colors'] = colors_C;
sb_product['widths'] = new Array(
50, 75, 100
);
sb_product['lengths'] = new Array(
24, 30, 36, 45, 54, 63, 72, 84, 96, 108, 120
);
sb_product['prices'] = new Array(
79, 103, 128,
85, 112, 141,
91, 122, 152,
101, 135, 170,
110, 149, 187,
120, 162, 205,
138, 184, 231,
150, 202, 254,
162, 219, 276,
173, 236, 299,
186, 265, 322
);
sb_product['price_standard_lining'] = new Array(
8, 12, 13,
9, 6, 14,
11, 12, 16,
12, 15, 18,
13, 16, 21,
14, 19, 22,
15, 20, 25,
16, 22, 27,
18, 24, 32,
20, 26, 34,
21, 18, 37
);
sb_product['price_thermal_lining'] = new Array(
14, 19, 24,
16, 16, 26,
18, 23, 30,
20, 27, 35,
23, 32, 41,
25, 36, 45,
28, 40, 50,
30, 44, 58,
35, 49, 65,
39, 55, 71,
41, 49, 78
);
sb_product['price_tieback_plain'] = 43;
sb_product['price_tieback_upgrade'] = 50;
sb_products.push(sb_product);

sb_product = new Object();
sb_product['name'] = 'Back Tab Drapery Panels Group $$$$';
sb_product['url'] = 'http://www.dantehill.com/';
sb_product['width_minimum'] = 50;
sb_product['width_maximum'] = 100;
sb_product['length_minimum'] = 24;
sb_product['length_maximum'] = 120;
sb_product['colors'] = colors_D;
sb_product['widths'] = new Array(
50, 75, 100
);
sb_product['lengths'] = new Array(
24, 30, 36, 45, 54, 63, 72, 84, 96, 108, 120
);
sb_product['prices'] = new Array(
87, 113, 141,
94, 124, 155,
100, 134, 167,
111, 149, 187,
121, 164, 206,
132, 178, 225,
151, 202, 254,
165, 222, 280,
178, 241, 304,
191, 260, 329,
204, 291, 355
);
sb_product['price_standard_lining'] = new Array(
9, 13, 14,
10, 7, 15,
12, 13, 17,
13, 16, 20,
14, 17, 23,
15, 21, 24,
16, 22, 28,
17, 24, 30,
20, 27, 35,
22, 29, 37,
23, 20, 40
);
sb_product['price_thermal_lining'] = new Array(
15, 21, 27,
17, 17, 29,
20, 25, 33,
22, 30, 38,
25, 35, 45,
28, 39, 50,
31, 44, 55,
33, 49, 64,
38, 54, 72,
43, 60, 79,
45, 54, 85
);
sb_product['price_tieback_plain'] = 47;
sb_product['price_tieback_upgrade'] = 55;
sb_products.push(sb_product);


sb_options = new Array();

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'lining';
sb_option['name'] = 'Lining';
sb_option['script_price'] = "if (v == 'Unlined') p = 0; else if (v == 'Standard') p = Math.floor(sb_product['price_standard_lining'][i] * 100); else if ((v == 'Thermal Sateen') || (v == 'Privacy')) p = Math.floor(sb_product['price_thermal_lining'][i] * 100);";
sb_option['script_string'] = "if (v != '') s = ', Lining: ' + v;";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'tieback';
sb_option['name'] = 'Contour Tiebacks';
sb_option['script_price'] = "if (v == '') p = 0; else if (v == 'Plain') p = Math.floor(sb_product['price_tieback_plain'] * 100); else if ((v != '') || (v != 'Plain')) p = Math.floor(sb_product['price_tieback_upgrade'] * 100);";
sb_option['script_string'] = "if (v != '') s = ', Contour Tiebacks: ' + v;";
sb_options.push(sb_option);

