/*
**
**  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'] = 'Rod Pocket 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(
47, 65, 78,
51, 70, 84,
54, 75, 91,
59, 52, 99,
63, 89, 108,
68, 95, 117,
80, 111, 134,
86, 120, 146,
92, 128, 157,
98, 137, 169,
104, 146, 180
);
sb_product['price_standard_lining'] = new Array(
9, 11, 14,
9, 8, 15,
10, 12, 16,
11, 45, 19,
12, 16, 21,
13, 19, 23,
14, 20, 25,
15, 22, 28,
16, 31, 31,
17, 27, 33,
18, 29, 37
);
sb_product['price_thermal_lining'] = new Array(
14, 20, 26,
15, 18, 29,
17, 24, 32,
19, 58, 37,
22, 32, 42,
24, 37, 47,
26, 40, 52,
29, 44, 58,
32, 50, 65,
35, 55, 71,
37, 60, 78
);
sb_product['price_tieback_plain'] = 30;
sb_product['price_tieback_upgrade'] = 37;
sb_products.push(sb_product);

sb_product = new Object();
sb_product['name'] = 'Rod Pocket 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(
57, 80, 99,
62, 87, 108,
66, 94, 117,
73, 105, 130,
80, 115, 143,
86, 125, 157,
101, 144, 178,
109, 157, 195,
118, 170, 213,
126, 183, 230,
135, 197, 248
);
sb_product['price_standard_lining'] = new Array(
8, 11, 13,
9, 8, 15,
10, 13, 17,
11, 15, 19,
11, 17, 21,
13, 18, 23,
13, 20, 26,
15, 22, 29,
22, 31, 31,
18, 27, 34,
19, 28, 36
);
sb_product['price_thermal_lining'] = new Array(
14, 20, 25,
15, 19, 29,
17, 25, 32,
18, 29, 42,
21, 32, 42,
24, 36, 47,
26, 40, 52,
29, 45, 59,
32, 50, 65,
35, 55, 72,
38, 59, 77
);
sb_product['price_tieback_plain'] = 37;
sb_product['price_tieback_upgrade'] = 43;
sb_products.push(sb_product);

sb_product = new Object();
sb_product['name'] = 'Rod Pocket 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(
76, 110, 137,
83, 121, 151,
89, 131, 164,
99, 147, 184,
109, 162, 204,
118, 177, 224,
137, 203, 254,
150, 222, 280,
162, 242, 306,
175, 262, 332,
187, 282, 359
);
sb_product['price_standard_lining'] = new Array(
10, 14, 16,
10, 9, 18,
12, 15, 20,
13, 18, 23,
14, 20, 25,
15, 22, 28,
16, 24, 30,
17, 27, 34,
27, 37, 37,
20, 32, 41,
22, 35, 44
);
sb_product['price_thermal_lining'] = new Array(
16, 24, 31,
18, 22, 34,
20, 29, 39,
23, 34, 45,
25, 39, 51,
28, 44, 56,
31, 47, 62,
34, 54, 70,
38, 60, 78,
41, 66, 86,
45, 72, 93
);
sb_product['price_tieback_plain'] = 41;
sb_product['price_tieback_upgrade'] = 48;
sb_products.push(sb_product);

sb_product = new Object();
sb_product['name'] = 'Rod Pocket 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(
84, 121, 151,
91, 133, 166,
98, 144, 180,
109, 162, 202,
120, 178, 224,
130, 195, 246,
151, 223, 279,
165, 244, 308,
178, 266, 337,
193, 288, 365,
206, 310, 395
);
sb_product['price_standard_lining'] = new Array(
11, 15, 18,
11, 10, 20,
13, 17, 22,
14, 20, 25,
15, 22, 28,
17, 24, 31,
18, 26, 33,
19, 30, 37,
30, 41, 41,
22, 35, 45,
24, 39, 48
);
sb_product['price_thermal_lining'] = new Array(
18, 26, 34,
20, 24, 37,
22, 32, 43,
25, 37, 50,
28, 43, 56,
31, 48, 62,
34, 52, 68,
37, 59, 77,
42, 66, 86,
45, 73, 95,
50, 79, 102
);
sb_product['price_tieback_plain'] = 45;
sb_product['price_tieback_upgrade'] = 53;
sb_products.push(sb_product);


sb_options = new Array();

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'header';
sb_option['name'] = 'Rod Pocket/Header';
sb_option['script_string'] = "if (v != '') s = ', Rod Pocket/Header option: ' + v;";
sb_options.push(sb_option);

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);

