/*
**
**  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'] = 'Grommet 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(
58, 78, 98,
62, 82, 103,
65, 86, 109,
69, 101, 116,
74, 98, 124,
78, 105, 132,
90, 118, 146,
95, 126, 157,
101, 134, 166,
106, 141, 177,
111, 149, 186
);
sb_product['price_standard_lining'] = new Array(
7, 10, 11,
8, 10, 12,
9, 10, 14,
10, 5, 16,
10, 14, 18,
12, 15, 19,
13, 18, 22,
14, 19, 24,
14, 26, 26,
17, 23, 29,
18, 25, 31
);
sb_product['price_thermal_lining'] = new Array(
12, 17, 21,
14, 18, 23,
15, 20, 26,
18, 16, 31,
19, 27, 35,
22, 30, 39,
23, 34, 44,
26, 38, 49,
29, 42, 55,
33, 47, 61,
35, 51, 66
);
sb_product['price_tieback_plain'] = 24;
sb_product['price_tieback_upgrade'] = 30;
sb_products.push(sb_product);

sb_product = new Object();
sb_product['name'] = 'Grommet 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(
66, 90, 114,
71, 97, 122,
76, 103, 130,
82, 112, 142,
88, 121, 154,
94, 130, 165,
108, 146, 184,
116, 158, 207,
124, 169, 214,
132, 181, 230,
140, 192, 244
);
sb_product['price_standard_lining'] = new Array(
8, 10, 11,
8, 5, 13,
9, 10, 14,
10, 13, 16,
11, 14, 18,
12, 16, 20,
13, 18, 22,
14, 18, 16,
21, 26, 26,
17, 22, 29,
18, 25, 32
);
sb_product['price_thermal_lining'] = new Array(
13, 17, 21,
14, 13, 24,
15, 20, 26,
18, 24, 31,
20, 27, 35,
22, 30, 40,
24, 34, 42,
26, 38, 41,
30, 42, 54,
33, 46, 61,
35, 51, 67
);
sb_product['price_tieback_plain'] = 30;
sb_product['price_tieback_upgrade'] = 34;
sb_products.push(sb_product);

sb_product = new Object();
sb_product['name'] = 'Grommet 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(
73, 100, 127,
78, 107, 137,
84, 115, 147,
92, 126, 162,
99, 138, 176,
107, 149, 190,
122, 167, 212,
132, 182, 231,
142, 196, 250,
152, 210, 269,
162, 225, 288
);
sb_product['price_standard_lining'] = new Array(
8, 10, 11,
8, 6, 13,
9, 10, 14,
10, 13, 15,
11, 14, 18,
11, 15, 19,
12, 17, 22,
14, 18, 24,
21, 26, 26,
17, 22, 29,
16, 25, 31
);
sb_product['price_thermal_lining'] = new Array(
13, 17, 21,
14, 14, 24,
15, 20, 26,
17, 24, 30,
20, 27, 35,
22, 30, 39,
23, 34, 44,
26, 38, 50,
29, 40, 54,
33, 46, 61,
35, 51, 66
);
sb_product['price_tieback_plain'] = 33;
sb_product['price_tieback_upgrade'] = 38;
sb_products.push(sb_product);

sb_product = new Object();
sb_product['name'] = 'Grommet 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(
80, 110, 140,
86, 118, 150,
92, 127, 162,
101, 139, 178,
109, 151, 194,
118, 164, 209,
135, 184, 233,
145, 200, 254,
157, 216, 275,
167, 231, 296,
179, 247, 317
);
sb_product['price_standard_lining'] = new Array(
9, 11, 12,
9, 6, 14,
10, 11, 15,
11, 14, 17,
12, 16, 19,
12, 17, 21,
13, 18, 24,
15, 20, 26,
23, 29, 28,
18, 25, 32,
18, 27, 34
);
sb_product['price_thermal_lining'] = new Array(
14, 18, 23,
15, 15, 26,
17, 22, 29,
18, 26, 33,
22, 30, 39,
24, 33, 43,
26, 37, 48,
29, 41, 55,
32, 44, 60,
36, 51, 67,
39, 56, 73
);
sb_product['price_tieback_plain'] = 36;
sb_product['price_tieback_upgrade'] = 42;
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);

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'finish';
sb_option['name'] = 'Metal Finish';
sb_option['script_check'] = "if (v == '') s = 'Please select the grommet finish';";
sb_option['script_string'] = "if (v != '') s = ', Metal Finish: ' + v;";
sb_options.push(sb_option);

