function hideOption()
{
	var liftType = document.order_form.form_lift_type.selectedIndex;
	if (liftType >= 2) {
		document.getElementById("rowLift").style.display = "";
	}
	else {
		document.getElementById("rowLift").style.display = "none";
	}
}
/*
**
**  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'] = 'solar';
sb_config['name'] = 'Solar Shades';
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'] = 'Solar Shades';
sb_product['url'] = 'http://www.dantehill.com/';
sb_product['width_minimum'] = 12;
sb_product['width_maximum'] = 127;
sb_product['length_minimum'] = 12;
sb_product['length_maximum'] = 120;
sb_product['colors'] = new Array(
/*								 
'Ariel-Bark',
'Ariel-Black',
'Ariel-Burlap',
'Ariel-Oatmeal',
'Ariel-Pearl',
'Ariel-Tan',
*/
'Ariel/Tabby-Bark',
'Ariel/Tabby-Linen',
'Ariel/Tabby-Mist',
'Ariel/Tabby-Onyx',
'Ariel/Tabby-Pewter',
'Ariel/Tabby-Platinum',
'Ariel/Tabby-Tan',
'Ariel/Tabby-White',
'Venus/Hop Sack-Bark',
'Venus/Hop Sack-Platinum',
'Venus/Hop Sack-Steel',
//'Venus-Linen',
//'Venus-Tan',
'Venus/Hop Sack-White',
//'Mars-Steel',
//'Mars-Taupe',
'Mars/Leno-White'
);
sb_product['widths'] = new Array(
37, 46, 55, 73, 78, 83, 91, 103, 109, 127
);
sb_product['lengths'] = new Array(
36, 48, 60, 72, 84, 96, 108, 120
);
sb_product['prices'] = new Array(
63, 75, 101, 142, 157, 206, 244, 278, 319, 383,
66, 80, 108, 148, 168, 222, 251, 301, 344, 425,
73, 87, 113, 156, 181, 239, 270, 323, 374, 464,
76, 92, 120, 168, 194, 256, 294, 351, 403, 497,
80, 98, 126, 173, 207, 273, 319, 374, 433, 537,
87, 103, 132, 179, 222, 289, 347, 405, 473, 572,
94, 109, 140, 194, 238, 308, 377, 445, 511, 611,
102, 117, 150, 210, 256, 328, 416, 483, 549, 653
);
sb_product['price_continuous_roller'] = new Array(
5, 6, 7, 8, 9, 9, 10, 11, 11, 14
);
sb_product['price_cassette'] = new Array(
41, 52, 60, 80, 86, 91, 0, 0, 0, 0
);
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'] = 'select';
sb_option['label'] = 'lift_type';
sb_option['name'] = 'Lift Type';
sb_option['script_check'] = "if (!v) s = 'Please select a lift type.';";
sb_option['script_price'] = "if ((si == 1) || (si == 2)) p = Math.floor(sb_product['price_continuous_roller'][i_w] * 100); else if (si == 3)  p = Math.floor(sb_product['price_cassette'][i_w] * 100);";
sb_option['script_string'] = "s = ', Lift Type: ' + v;";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'radio';
sb_option['label'] = 'lift_position';
sb_option['name'] = 'Lift position';
//sb_option['script_check'] = "if (!v) s = 'Please select a lift position.';";
sb_option['script_string'] = "if (f.elements['form_lift_type'].selectedIndex >= 2) s = ', lift on the ' + v;";
sb_options.push(sb_option);

/*
sb_option = new Object();
sb_option['type'] = 'checkbox';
sb_option['label'] = 'auto_stop';
sb_option['name'] = 'Auto Stop Spring Roller';
sb_option['script_string'] = "if (v == 'yes') s = ', Auto Stop Spring Roller';";
sb_option['script_check'] = "if (v == 'yes') { if ((product_width < 22) || (product_width > 78) || (product_length > 88)) s = 'Auto Stop Spring Roller not available for these dimensions.'; if (f.elements['form_continuous_roller'].checked) s = 'Auto Stop Spring Roller not available with Continuous Loop Clutch Roller.'; if (f.elements['form_cassette'].checked) s = 'Auto Stop Spring Roller not available with Cassette System.';}";
sb_option['script_price'] = "if (v == 'yes') p = 900;";
sb_options.push(sb_option);
*/

