/*
**
**  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'] = 'wood';
sb_config['name'] = 'Wood Blinds';
sb_config['product_type_list_box'] = 0;
sb_config['product_color_list_box'] = 0;
sb_config['script_check'] = "if ((f.elements['form_routeless'].checked) && (f.elements['form_classic_tape'].value != 'none')) s = 'The Routeless option is not available with fabric tapes'; else if ((f.elements['form_routeless'].checked) && (f.elements['form_deluxe_tape'].value != 'none')) s = 'The Routeless option is not available with fabric tapes'; else if ((f.elements['form_classic_tape'].value != 'none') && (f.elements['form_deluxe_tape'].value != 'none')) s = 'Both fabric tape types cannot be selected at the same time. You must select only one fabric type';";


sb_products = new Array();

sb_product = new Object();
sb_product['name'] = '2" Wood Blinds';
sb_product['url'] = 'http://www.dantehill.com/';
sb_product['width_minimum'] = 12;
sb_product['width_maximum'] = 96;
sb_product['length_minimum'] = 12;
sb_product['length_maximum'] = 120;
sb_product['colors'] = new Array(
'Icecap White',
'Arctic White',
'White',
'Snow White',
'Linen White',
'Atrium White',
'Navajo White',
'Natural',
'Sugar Maple',
'Oak',
'Cottage Pine',
'Golden Oak',
'American Walnut',
'Warm Cherry',
'Cherry',
'Mahogany'
);
sb_product['widths'] = new Array(
	18, 24, 29, 32, 36, 42, 48, 54, 60, 66, 72, 78, 84, 90, 96
);
sb_product['lengths'] = new Array(
	30, 36, 42, 48, 54, 61, 66, 73, 78, 84, 90, 96, 102, 108, 114, 120
);
sb_product['prices'] = new Array(
29, 37, 43, 50, 55, 62, 72, 78, 87, 98, 104, 109, 115, 122, 132,
33, 43, 52, 55, 62, 69, 78, 85, 96, 111, 115, 120, 97, 130, 138,
41, 47, 56, 60, 67, 77, 87, 94, 105, 115, 120, 127, 137, 145, 155,
46, 50, 60, 64, 71, 82, 94, 98, 114, 128, 140, 145, 149, 159, 170,
49, 54, 64, 69, 78, 89, 101, 110, 120, 142, 153, 161, 168, 179, 186,
54, 58, 68, 75, 85, 95, 109, 122, 132, 149, 163, 175, 185, 192, 203,
58, 63, 71, 82, 91, 103, 117, 133, 147, 165, 175, 189, 199, 214, 227,
64, 68, 80, 85, 98, 112, 126, 145, 157, 179, 194, 203, 217, 238, 246,
66, 72, 85, 93, 102, 120, 134, 151, 162, 185, 204, 215, 234, 256, 0,
70, 76, 89, 100, 109, 126, 146, 161, 174, 205, 223, 231, 245, 0, 0,
73, 81, 94, 104, 116, 135, 153, 172, 189, 210, 229, 244, 0, 0, 0,
76, 86, 97, 106, 119, 142, 158, 178, 198, 219, 243, 252, 0, 0, 0,
80, 88, 99, 111, 124, 144, 165, 186, 207, 235, 254, 0, 0, 0, 0,
83, 93, 110, 117, 131, 153, 174, 199, 214, 249, 0, 0, 0, 0, 0,
87, 98, 113, 122, 137, 160, 177, 207, 226, 0, 0, 0, 0, 0, 0,
90, 103, 118, 128, 144, 168, 187, 213, 233, 0, 0, 0, 0, 0, 0
);
sb_product['price_classic_tape'] = new Array(
8, 10, 11, 12, 13, 14, 15, 16, 19, 20, 21, 22, 24, 26, 28
);
sb_product['price_deluxe_tape'] = new Array(
17, 22, 26, 29, 32, 33, 39, 45, 55, 62, 69, 75, 78, 84, 88
);
sb_products.push(sb_product);


sb_options = new Array();

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'mount_position';
sb_option['name'] = 'Mount position';
sb_option['script_check'] = "if (!v) s = 'Please select a mount position.';";
sb_option['script_price'] = "if (v == 'inside') p = 0; else if (v == 'outside') p = 0;";
sb_option['script_string'] = "s = ', Mount-' + v;";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'radio';
sb_option['label'] = 'tilter_style';
sb_option['name'] = 'Tilt Control';
sb_option['script_check'] = "if (!v) s = 'Please select a tilt control style';";
sb_option['script_string'] = "s = ', ' + v + '-style tilter ';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'radio';
sb_option['label'] = 'tilter_position';
sb_option['name'] = 'Tilt Position';
sb_option['script_check'] = "if (!v) s = 'Please select a tilt control position';";
sb_option['script_string'] = "s = 'on the ' + v;";
sb_options.push(sb_option);


sb_option = new Object();
sb_option['type'] = 'radio';
sb_option['label'] = 'cord_position';
sb_option['name'] = 'Lift position';
sb_option['script_check'] = "if (!v) s = 'Please select a lift position.';";
sb_option['script_string'] = "s = ', lift on the ' + v;";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'headrail';
sb_option['name'] = 'Blinds on one headrail';
sb_option['script_string'] = "if (v != 'one') s = ', ' + v + ' blinds on one headrail';";
sb_option['script_check'] = "if ((v == 'one') && (product_width >= 72)) s = 'Blinds over 72\" must be done as two or three on one headrail.'; else if ((v == 'two') && (f.elements.form_comments.value == '')) s = 'Note for 2-on-1 option you have selected: At the bottom of the page you will see a blank box for comments, notes or requests. Please use it to enter the width, tilt and lift position of each blind. If they are equal, just enter \"Equal blinds\" and position of tilt and lift controls for each blind';  else if ((v == 'three') && (f.elements.form_comments.value == '')) s = 'Note for 3-on-1 option you have selected: At the bottom of the page you will see a blank box for comments, notes or requests. Please use it to enter the width, tilt and lift position of each blind. If they are equal, just enter \"Equal blinds\" and position of tilt and lift controls for each blind';";
sb_option['script_price'] = "if (v != 'one') p = 1500;";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'checkbox';
sb_option['label'] = 'routeless';
sb_option['name'] = 'Routeless';
sb_option['script_string'] = "if (v == 'yes') s = ', Routeless';";
sb_option['script_check'] = "if ((v == 'yes') && (product_width < 24)) s = 'Continuous Cord Loop not available for this width.';";
sb_option['script_price'] = "if (v == 'yes') p = Math.floor(price * 0.1);";
sb_options.push(sb_option);


sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'classic_tape';
sb_option['name'] = 'Classic Fabric Tape';
sb_option['script_check'] = "if (!v) s = '';";
sb_option['script_string'] = "if (v != 'none') s = ', Classic Fabric Tape ' + v;";
sb_option['script_price'] = "if (v != 'none') p = Math.floor(sb_product['price_classic_tape'][i_w] * 100);";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'deluxe_tape';
sb_option['name'] = 'Deluxe Fabric Tape';
sb_option['script_check'] = "if (!v) s = '';";
sb_option['script_string'] = "if (v != 'none') s = ', Deluxe Fabric Tape ' + v;";
sb_option['script_price'] = "if (v != 'none') p = Math.floor(sb_product['price_deluxe_tape'][i_w] * 100);";
sb_options.push(sb_option);
