/*
**
**  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'] = 'Board Mounted Valances';
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'] = 'Riviera Valance Group $';
sb_product['url'] = 'http://www.dantehill.com/';
sb_product['width_minimum'] = 30;
sb_product['width_maximum'] = 180;
sb_product['length_minimum'] = 36;
sb_product['length_maximum'] = 108;
sb_product['colors'] = colors_A;
sb_product['widths'] = new Array(
44, 66, 90, 138, 180
);
sb_product['lengths'] = new Array(
36, 63, 84, 96, 108
);
sb_product['prices'] = new Array(
208, 280, 353, 495, 635,
249, 321, 394, 537, 676,
283, 354, 427, 570, 708,
301, 373, 446, 588, 727,
320, 391, 464, 610, 746
);
sb_product['price_edge_36'] = new Array(31, 41, 52, 71, 90);
sb_product['price_edge_63'] = new Array(36, 47, 57, 76, 95);
sb_product['price_edge_84'] = new Array(41, 51, 62, 81, 99);
sb_product['price_edge_96'] = new Array(44, 54, 64, 83, 102);
sb_product['price_edge_108'] = new Array(47, 57, 68, 86, 105);
sb_products.push(sb_product);

sb_product = new Object();
sb_product['name'] = 'Riviera Valance Group $$';
sb_product['url'] = 'http://www.dantehill.com/';
sb_product['width_minimum'] = 30;
sb_product['width_maximum'] = 180;
sb_product['length_minimum'] = 36;
sb_product['length_maximum'] = 108;
sb_product['colors'] = colors_B;
sb_product['widths'] = new Array(
44, 66, 90, 138, 180
);
sb_product['lengths'] = new Array(
36, 63, 84, 96, 108
);
sb_product['prices'] = new Array(
253, 334, 415, 580, 739,
313, 395, 478, 640, 799,
360, 442, 525, 688, 847,
387, 469, 552, 715, 873,
414, 496, 579, 741, 900
);
sb_product['price_edge_36'] = new Array(31, 41, 52, 71, 90);
sb_product['price_edge_63'] = new Array(36, 47, 57, 76, 95);
sb_product['price_edge_84'] = new Array(41, 51, 62, 81, 99);
sb_product['price_edge_96'] = new Array(44, 54, 64, 83, 102);
sb_product['price_edge_108'] = new Array(47, 57, 68, 86, 105);
sb_products.push(sb_product);

sb_product = new Object();
sb_product['name'] = 'Riviera Valance Group $$$';
sb_product['url'] = 'http://www.dantehill.com/';
sb_product['width_minimum'] = 30;
sb_product['width_maximum'] = 180;
sb_product['length_minimum'] = 36;
sb_product['length_maximum'] = 108;
sb_product['colors'] = colors_C;
sb_product['widths'] = new Array(
44, 66, 90, 138, 180
);
sb_product['lengths'] = new Array(
36, 63, 84, 96, 108
);
sb_product['prices'] = new Array(
323, 425, 527, 729, 927,
407, 509, 611, 813, 1010,
473, 573, 676, 878, 1076,
509, 610, 713, 914, 1112,
546, 648, 751, 951, 1149
);
sb_product['price_edge_36'] = new Array(31, 41, 52, 71, 90);
sb_product['price_edge_63'] = new Array(36, 47, 57, 76, 95);
sb_product['price_edge_84'] = new Array(41, 51, 62, 81, 99);
sb_product['price_edge_96'] = new Array(44, 54, 64, 83, 102);
sb_product['price_edge_108'] = new Array(47, 57, 68, 86, 105);
sb_products.push(sb_product);

sb_product = new Object();
sb_product['name'] = 'Riviera Valance Group $$$$';
sb_product['url'] = 'http://www.dantehill.com/';
sb_product['width_minimum'] = 30;
sb_product['width_maximum'] = 180;
sb_product['length_minimum'] = 36;
sb_product['length_maximum'] = 108;
sb_product['colors'] = colors_D;
sb_product['widths'] = new Array(
44, 66, 90, 138, 180
);
sb_product['lengths'] = new Array(
36, 63, 84, 96, 108
);
sb_product['prices'] = new Array(
356, 468, 581, 802, 1020,
448, 560, 673, 894, 1111,
520, 631, 744, 966, 1184,
561, 672, 785, 1006, 1224,
601, 713, 826, 1047, 1265
);
sb_product['price_edge_36'] = new Array(31, 41, 52, 71, 90);
sb_product['price_edge_63'] = new Array(36, 47, 57, 76, 95);
sb_product['price_edge_84'] = new Array(41, 51, 62, 81, 99);
sb_product['price_edge_96'] = new Array(44, 54, 64, 83, 102);
sb_product['price_edge_108'] = new Array(47, 57, 68, 86, 105);
sb_products.push(sb_product);


sb_options = new Array();

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'returns';
sb_option['name'] = 'Valance Returns';
sb_option['script_check'] = "if (v == '') s = 'Please select size of valance returns';";
sb_option['script_string'] = "if (v != '') s = ', Valance returns: ' + v;";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'edge';
sb_option['name'] = 'Decorative trim';
sb_option['script_price'] = "if (v != '') { if (product_length == 36) p = Math.floor(sb_product['price_edge_36'][i_w] * 100); else if (product_length == 63) p = Math.floor(sb_product['price_edge_63'][i_w] * 100); else if (product_length == 84) p = Math.floor(sb_product['price_edge_84'][i_w] * 100); else if (product_length == 96) p = Math.floor(sb_product['price_edge_96'][i_w] * 100); else if (product_length == 108) p = Math.floor(sb_product['price_edge_108'][i_w] * 100);}";
sb_option['script_string'] = "if (v != '') s = ', Decorative trim: ' + v;";
sb_options.push(sb_option);

