/*
**
**  Copyright (c) 1986-2008, Accent Blinds and Shades. All rights reserved.
**
**  Usage, duplication, and/or modification of this program, its
**  representation, or its results without written permission from
**  Accent Blinds and Shades is expressly prohibited.
**
*/

var sb_config_drop_down, sb_products, sb_product, sb_option, sb_options;

sb_config = new Object();
sb_config['label'] = 'shades';
sb_config['name'] = 'Woven 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'] = 'Bamboo Woven Group 4';
sb_product['url'] = 'http://www.homeblindz.com/';
sb_product['width_minimum'] = 10;
sb_product['width_maximum'] = 94;
sb_product['length_minimum'] = 12;
sb_product['length_maximum'] = 144;
sb_product['markup_multiplier'] = 1.25;
sb_product['colors'] = new Array(
'10401 Osaka White', '#000000', '#ffffff',
'10403 Mesh Camel', '#000000', '#ffffff',
'10405 Mandalay Tea', '#000000', '#ffffff',
'10406 Mongolia Umber', '#000000', '#ffffff',
'10407 Mongolia Herb', '#000000', '#ffffff'
);
sb_product['widths'] = new Array(
24, 30, 32, 36, 42, 48, 60, 72, 84, 96
);
sb_product['lengths'] = new Array(
36, 42, 48, 54, 60, 66, 72, 78, 84, 90, 96
);
sb_product['prices'] = new Array(
41.25, 50.10, 54.43, 57.52, 64.94, 70.51, 87.21, 108.24, 124.32, 140.40,
43.91, 53.19, 57.52, 60.61, 68.04, 74.84, 91.54, 112.57, 130.50, 148.18,
49.48, 55.05, 61.23, 64.32, 74.22, 79.17, 97.10, 120.61, 139.78, 161.20,
51.95, 60.61, 66.18, 69.27, 79.17, 83.50, 103.29, 132.36, 152.15, 183.52,
54.43, 65.56, 71.75, 74.84, 83.50, 95.87, 114.42, 139.78, 163.90, 184.76,
58.76, 69.27, 76.08, 79.17, 90.92, 99.58, 123.70, 152.15, 173.80, 198.74,
61.85, 72.98, 81.64, 84.73, 97.10, 108.86, 133.60, 162.67, 186.79, 214.52,
65.56, 76.69, 87.83, 90.92, 103.29, 115.66, 139.16, 174.42, 199.78, 236.84,
68.04, 80.41, 91.54, 94.63, 108.86, 122.46, 147.82, 181.84, 212.15, 241.18,
71.44, 84.73, 95.87, 98.96, 114.73, 128.65, 156.17, 191.43, 222.66, 252.96,
74.84, 89.06, 100.20, 103.29, 120.61, 134.83, 164.52, 201.01, 233.17, 264.74
);
sb_product['price_duofold'] = new Array(
  25.00, 25.00, 25.00, 25.00, 25.00, 25.00, 25.00, 25.00, 25.00, 25.00
);
sb_product['price_rollease'] = new Array(
  35.00, 35.00, 35.00, 35.00, 35.00, 35.00, 40.00, 40.00, 40.00, 45.00
);
sb_product['price_privacy_liner'] = new Array(
  27.38, 34.13, 36.40, 40.88, 47.63, 54.75, 68.25, 81.75, 95.63, 109.13
);
sb_product['price_blackout_liner'] = new Array(
  30.11, 37.54, 40.04, 44.96, 52.39, 60.23, 75.08, 89.93, 105.19, 120.04
);
sb_product['price_edge_binding'] = new Array(
  47.63, 50.63, 51.62, 53.63, 56.63, 59.25, 61.88, 71.25, 78.00, 85.88
);
sb_product['rollease_width_minimum'] = 24;
sb_product['rollease_width_maximum'] = 96;
sb_product['rollease_length__minimum'] = 12;
sb_product['rollease_length__maximum'] = 96;
sb_product['duofold_width_minimum'] = 12;
sb_product['duofold_width_maximum'] = 72;
sb_product['duofold_length__minimum'] = 12;
sb_product['duofold_length__maximum'] = 96;

sb_products.push(sb_product);


sb_options = new Array();

sb_option = new Object();
sb_option['type'] = 'radio';
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_string'] = "s = ', Mount-' + 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 cord position';";
sb_option['script_string'] = "s = ', lift cord on the ' + v;";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'radio';
sb_option['label'] = 'duofold';
sb_option['name'] = 'Duofold Lift System';
sb_option['script_check'] = "if (v == 'yes') { if (f.elements.form_rollease[0].checked) s = 'Roll-Ease cannot be combined with the Duofold option.'; else if ((product_width < sb_product['duofold_width_minimum']) || (product_width > sb_product['duofold_width_maximum']) || (product_length < sb_product['duofold_length_minimum']) || (product_length > sb_product['duofold_length_maximum'])) s = 'Duofold Lift System is NOT available above 72-inches wide or below 12-inches wide.'; }";
sb_option['script_price'] = "if (v == 'yes') p = Math.floor(sb_product['price_duofold'][i_w] * 100);";
sb_option['script_string'] = "if (v == 'yes') s = ', Duofold Lift System';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'radio';
sb_option['label'] = 'rollease';
sb_option['name'] = 'Roll-Ease';
sb_option['script_check'] = "if (v == 'yes') { if (f.elements.form_duofold[0].checked) s = 'Roll-Ease cannot be combined with Duofold Lift System'; else if ((product_width < sb_product['rollease_width_minimum']) || (product_width > sb_product['rollease_width_maximum']) || (product_length < sb_product['rollease_length_minimum']) || (product_length > sb_product['rollease_length_maximum'])) s = 'Roll-Ease Lift is NOT available below 24-inches wide.'; }";
sb_option['script_price'] = "if (v == 'yes') p = Math.floor(sb_product['price_rollease'][i_w] * 100);";
sb_option['script_string'] = "if (v == 'yes') s = ', Roll-Ease';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'liner';
sb_option['name'] = 'Liner';
sb_option['script_price'] = "if (v == 'Privacy') p = Math.floor(sb_product['price_privacy_liner'][i_w] * 100); else if (v == 'Blackout') p = Math.floor(sb_product['price_blackout_liner'][i_w] * 100);";
sb_option['script_string'] = "if (v != 'none') s = ', ' + v + ' liner';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'edge_binding';
sb_option['name'] = 'Edge Binding Cloth Tape';
sb_option['script_price'] = "if (v != 'none') p = Math.floor(sb_product['price_edge_binding'][i_w] * 100);";
sb_option['script_string'] = "if (v != 'none') s = ', ' + v + ' edge binding tape';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'radio';
sb_option['label'] = 'hold_down';
sb_option['name'] = 'Hold down brackets';
sb_option['script_check'] = "if (!v) s = 'Please choose whether you need hold down brackets';";
sb_option['script_string'] = "if (v == 'yes') s = ', hold down brackets';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'radio';
sb_option['label'] = 'extension';
sb_option['name'] = 'Extension brackets';
sb_option['script_check'] = "if (!v) s = 'Please choose whether you need extension brackets';";
sb_option['script_string'] = "if (v == 'yes') s = ', extension brackets';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'radio';
sb_option['label'] = 'spacer';
sb_option['name'] = 'Spacer blocks';
sb_option['script_check'] = "if (!v) s = 'Please choose whether you need spacer blocks';";
sb_option['script_string'] = "if (v == 'yes') s = ', spacer blocks';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'room';
sb_option['name'] = 'Room';
sb_option['suffix'] = '(for your records)';
sb_option['script_string'] = "if (v != 'none') s = ', located in ' + v;";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'window';
sb_option['name'] = 'Window';
sb_option['suffix'] = '(for your records)';
sb_option['script_string'] = "if (v != 'none') s = ', window #' + v;";
sb_options.push(sb_option);


function showNote()
{
	var note = document.getElementById('hiddenNote');
	
	if (document.getElementById('form_headrail').value != 'one')
		note.style.display = "block";
	else
		note.style.display = "none";
}