/*
**
**  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 1';
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(
'10101 Dynasty Natural', '#000000', '#ffffff',
'10102 Yunnan Natural', '#000000', '#ffffff',
'10103 Dali Natural', '#000000', '#ffffff',
'10104 Leshan Natural', '#000000', '#ffffff',
'10105 Sichuan Natural', '#000000', '#ffffff',
'10106 Tai Pan Natural', '#000000', '#ffffff',
'10107 Bamboo Natural', '#000000', '#ffffff',
'10108 Petite Rustic', '#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(
29.57, 34.16, 37.45, 39.42, 43.36, 48.62, 57.82, 72.27, 86.72, 101.18,
31.54, 36.79, 39.42, 41.39, 46.65, 52.56, 62.42, 78.84, 95.27, 111.69,
32.85, 41.39, 42.05, 43.36, 51.25, 57.82, 65.04, 82.13, 99.21, 116.29,
34.82, 43.36, 45.99, 47.96, 54.53, 59.79, 69.64, 91.32, 113.00, 134.69,
37.45, 46.65, 50.59, 52.56, 57.16, 63.73, 76.21, 93.29, 110.38, 127.46,
40.73, 47.96, 53.22, 55.19, 60.44, 68.33, 82.78, 102.49, 122.20, 141.91,
43.36, 50.59, 55.19, 58.47, 65.70, 72.93, 86.72, 110.38, 134.03, 157.68,
44.02, 52.56, 57.82, 60.44, 68.33, 77.53, 91.98, 115.63, 139.28, 162.94,
46.65, 55.85, 59.79, 63.73, 74.24, 81.47, 98.55, 120.23, 141.91, 163.59,
48.62, 58.47, 62.74, 66.69, 76.87, 84.42, 103.15, 128.12, 153.08, 178.05,
50.59, 61.10, 65.70, 69.64, 79.50, 87.38, 107.75, 136.00, 164.25, 192.50
);
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(
  19.37, 24.15, 25.76, 28.93, 33.70, 38.74, 48.29, 57.85, 67.67, 77.22
);
sb_product['price_blackout_liner'] = new Array(
  21.31, 26.56, 28.33, 31.81, 37.07, 42.62, 53.13, 63.64, 74.43, 84.94
);
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";
}