/*
**
**  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'] = 'sheers';
sb_config['name'] = 'Sheers';
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'] = 'Sheer Rod Pocket Panel Voile';
sb_product['url'] = 'http://www.dantehill.com/';
sb_product['width_minimum'] = 58;
sb_product['width_maximum'] = 117;
sb_product['length_minimum'] = 24;
sb_product['length_maximum'] = 108;
sb_product['colors'] = new Array(
'Voile Snow',
'Voile Ivory'
);								 
sb_product['widths'] = new Array(
58, 87, 117
);
sb_product['lengths'] = new Array(
24, 30, 36, 45, 54, 63, 72, 84, 96, 102, 105, 106.5, 108
);
sb_product['prices'] = new Array(
30, 38, 45,
30, 38, 45,
31, 39, 46,
31, 39, 47,
32, 40, 48,
33, 41, 48,
39, 46, 54,
39, 47, 55,
40, 48, 55,
41, 49, 56,
41, 49, 56,
41, 49, 57,
41, 49, 57
);
sb_products.push(sb_product);

sb_product = new Object();
sb_product['name'] = 'Sheer Rod Pocket Panel Crepe';
sb_product['url'] = 'http://www.dantehill.com/';
sb_product['width_minimum'] = 58;
sb_product['width_maximum'] = 117;
sb_product['length_minimum'] = 24;
sb_product['length_maximum'] = 120;
sb_product['colors'] = new Array(
'Crepe Snow',
'Crepe Ivory'
);								 
sb_product['widths'] = new Array(
58, 87, 117
);
sb_product['lengths'] = new Array(
24, 30, 36, 45, 54, 63, 72, 84, 96, 108, 120
);
sb_product['prices'] = new Array(
30, 38, 45,
30, 39, 46,
31, 39, 47,
32, 40, 48,
34, 41, 49,
34, 42, 50,
41, 50, 58,
44, 53, 62,
46, 56, 66,
48, 59, 69,
50, 62, 73
);
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_check'] = "if ((v == '3 Pocket/3 Header') && (product_length > 102)) s = 'Max. length for 3\" Pocket/3\" Header is 102\"'; else if ((v == '3 Pocket/No Header') && (product_length > 105)) s = 'Max. length for 3\" Pocket/No Header is 105\"'; else if ((v == '1 1/2 Pocket/1 1/2 Header') && (product_length > 106.5)) s = 'Max. length for 1 1/2\" Pocket/1 1/2\" Header is 106.5\"'; else if ((v == '1 1/2 Pocket/No Header') && (product_length > 108)) s = 'Max. length for 1 1/2\" Pocket/1 1/2\" Header is 108\"';";
sb_option['script_string'] = "if (v != '') s = ', Rod Pocket/Header option: ' + v;";
sb_options.push(sb_option);
