/*
**
**  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'] = 'Parisian Pleat Drapery Panels Group $';
sb_product['url'] = 'http://www.dantehill.com/';
sb_product['width_minimum'] = 18;
sb_product['width_maximum'] = 84;
sb_product['length_minimum'] = 24;
sb_product['length_maximum'] = 120;
sb_product['colors'] = colors_A;
sb_product['widths'] = new Array(
24, 36, 48, 60, 72, 84
);
sb_product['lengths'] = new Array(
24, 30, 36, 45, 54, 63, 72, 84, 96, 108, 120
);
sb_product['prices'] = new Array(
53, 73, 89, 130, 145, 161,
57, 79, 96, 140, 157, 175,
61, 85, 103, 151, 169, 188,
66, 93, 114, 164, 185, 207,
71, 101, 125, 179, 202, 226,
77, 110, 136, 193, 218, 245,
87, 124, 152, 218, 246, 276,
94, 134, 166, 236, 268, 301,
101, 145, 181, 255, 290, 326,
107, 216, 195, 274, 311, 352,
115, 167, 209, 292, 333, 377
);
sb_product['price_standard_lining'] = new Array(
8, 12, 14, 21, 23, 27,
9, 9, 16, 23, 17, 21,
10, 14, 19, 25, 28, 32,
11, 17, 21, 29, 33, 38,
13, 19, 24, 32, 38, 43,
14, 21, 27, 36, 41, 48,
15, 23, 29, 40, 46, 53,
16, 26, 34, 44, 52, 59,
18, 29, 37, 49, 57, 66,
20, 32, 41, 53, 62, 73,
22, 46, 45, 58, 68, 79
);
sb_product['price_thermal_lining'] = new Array(
15, 23, 29, 40, 46, 53,
17, 22, 34, 44, 44, 51,
19, 29, 38, 50, 57, 66,
22, 34, 44, 58, 68, 79,
25, 39, 51, 66, 78, 90,
28, 44, 58, 74, 88, 101,
31, 49, 64, 82, 97, 112,
34, 55, 73, 93, 110, 127,
38, 61, 81, 104, 122, 142,
43, 58, 89, 114, 135, 157,
46, 74, 98, 125, 148, 172
);
sb_product['price_tieback_plain'] = 24;
sb_product['price_tieback_upgrade'] = 30;
sb_products.push(sb_product);

sb_product = new Object();
sb_product['name'] = 'Parisian Pleat Drapery Panels Group $$';
sb_product['url'] = 'http://www.dantehill.com/';
sb_product['width_minimum'] = 18;
sb_product['width_maximum'] = 84;
sb_product['length_minimum'] = 24;
sb_product['length_maximum'] = 120;
sb_product['colors'] = colors_B;
sb_product['widths'] = new Array(
24, 36, 48, 60, 72, 84
);
sb_product['lengths'] = new Array(
24, 30, 36, 45, 54, 63, 72, 84, 96, 108, 120
);
sb_product['prices'] = new Array(
65, 92, 113, 161, 183, 205,
70, 101, 125, 176, 200, 225,
76, 109, 136, 191, 217, 245,
84, 122, 152, 212, 243, 274,
92, 134, 169, 234, 286, 304,
100, 147, 186, 256, 293, 333,
113, 166, 208, 288, 329, 373,
123, 182, 230, 316, 363, 412,
133, 199, 252, 344, 396, 451,
144, 215, 274, 372, 430, 490,
154, 232, 296, 400, 463, 528
);
sb_product['price_standard_lining'] = new Array(
8, 11, 14, 21, 23, 26,
9, 8, 16, 23, 17, 20,
10, 14, 18, 25, 28, 32,
11, 17, 21, 29, 33, 38,
12, 19, 24, 32, 19, 43,
14, 21, 26, 36, 41, 48,
14, 23, 30, 40, 46, 53,
17, 26, 34, 44, 52, 59,
19, 28, 37, 49, 57, 66,
20, 31, 41, 53, 62, 72,
22, 34, 44, 58, 68, 79
);
sb_product['price_thermal_lining'] = new Array(
15, 23, 29, 40, 45, 53,
17, 22, 34, 44, 43, 51,
19, 28, 38, 50, 57, 66,
22, 34, 44, 58, 68, 79,
25, 39, 51, 66, 59, 90,
28, 44, 57, 74, 87, 101,
30, 48, 64, 82, 97, 113,
34, 55, 132, 92, 110, 127,
38, 61, 80, 104, 122, 142,
42, 67, 89, 114, 135, 157,
46, 74, 98, 125, 148, 172
);
sb_product['price_tieback_plain'] = 30;
sb_product['price_tieback_upgrade'] = 34;
sb_products.push(sb_product);

sb_product = new Object();
sb_product['name'] = 'Parisian Pleat Drapery Panels Group $$$';
sb_product['url'] = 'http://www.dantehill.com/';
sb_product['width_minimum'] = 18;
sb_product['width_maximum'] = 84;
sb_product['length_minimum'] = 24;
sb_product['length_maximum'] = 120;
sb_product['colors'] = colors_C;
sb_product['widths'] = new Array(
24, 36, 48, 60, 72, 84
);
sb_product['lengths'] = new Array(
24, 30, 36, 45, 54, 63, 72, 84, 96, 108, 120
);
sb_product['prices'] = new Array(
73, 106, 145, 203, 232, 262,
80, 117, 161, 224, 256, 289,
87, 128, 176, 244, 280, 317,
97, 144, 200, 274, 315, 358,
107, 160, 223, 304, 350, 398,
117, 176, 246, 333, 385, 439,
132, 197, 275, 375, 433, 492,
145, 218, 305, 413, 479, 546,
158, 239, 336, 452, 525, 599,
171, 260, 187, 491, 571, 653,
184, 281, 397, 530, 617, 707
);
sb_product['price_standard_lining'] = new Array(
8, 11, 16, 23, 26, 29,
8, 9, 18, 25, 19, 23,
10, 14, 20, 28, 30, 35,
11, 16, 23, 32, 36, 42,
13, 19, 26, 35, 41, 47,
14, 20, 29, 40, 46, 53,
15, 23, 32, 43, 50, 58,
16, 26, 37, 49, 56, 65,
19, 29, 41, 54, 62, 73,
20, 31, 43, 59, 69, 80,
22, 34, 49, 64, 75, 88
);
sb_product['price_thermal_lining'] = new Array(
16, 23, 32, 43, 50, 58,
17, 22, 37, 49, 48, 56,
19, 28, 42, 55, 62, 73,
22, 33, 49, 64, 75, 86,
25, 39, 56, 71, 85, 99,
28, 43, 63, 82, 96, 111,
31, 49, 70, 90, 106, 124,
34, 55, 80, 102, 121, 140,
38, 81, 89, 114, 134, 157,
42, 68, 278, 125, 149, 173,
46, 74, 108, 137, 163, 190
);
sb_product['price_tieback_plain'] = 33;
sb_product['price_tieback_upgrade'] = 38;
sb_products.push(sb_product);

sb_product = new Object();
sb_product['name'] = 'Parisian Pleat Drapery Panels Group $$$$';
sb_product['url'] = 'http://www.dantehill.com/';
sb_product['width_minimum'] = 18;
sb_product['width_maximum'] = 84;
sb_product['length_minimum'] = 24;
sb_product['length_maximum'] = 120;
sb_product['colors'] = colors_D;
sb_product['widths'] = new Array(
24, 36, 48, 60, 72, 84
);
sb_product['lengths'] = new Array(
24, 30, 36, 45, 54, 63, 72, 84, 96, 108, 120
);
sb_product['prices'] = new Array(
81, 117, 160, 224, 255, 288,
88, 129, 177, 246, 282, 318,
96, 141, 194, 269, 308, 348,
107, 158, 220, 301, 347, 393,
117, 176, 245, 334, 385, 438,
129, 193, 271, 366, 424, 483,
145, 216, 303, 413, 476, 541,
160, 240, 336, 455, 527, 601,
174, 263, 370, 498, 578, 659,
188, 286, 205, 541, 628, 719,
203, 309, 437, 583, 679, 777
);
sb_product['price_standard_lining'] = new Array(
9, 13, 18, 25, 28, 32,
9, 10, 20, 28, 21, 25,
11, 15, 22, 31, 33, 38,
12, 18, 26, 36, 40, 46,
14, 20, 29, 39, 45, 52,
15, 22, 32, 44, 50, 58,
17, 25, 36, 48, 55, 64,
18, 28, 41, 53, 62, 71,
20, 32, 45, 59, 69, 80,
22, 34, 48, 65, 76, 88,
24, 38, 54, 71, 83, 96
);
sb_product['price_thermal_lining'] = new Array(
17, 25, 36, 48, 55, 63,
18, 24, 41, 54, 53, 62,
20, 31, 46, 61, 69, 80,
24, 36, 53, 71, 83, 95,
27, 43, 62, 78, 94, 109,
30, 48, 69, 90, 106, 122,
34, 53, 77, 99, 117, 136,
38, 61, 88, 112, 133, 154,
42, 89, 98, 125, 148, 172,
46, 75, 306, 138, 164, 190,
51, 82, 119, 151, 179, 209
);
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);

