/*
**
**  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'] = 'blinds';
sb_config['name'] = 'Wood Blinds';
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'] = '2" Sandblasted Wood Blinds';
sb_product['url'] = 'http://www.homeblindz.com/';
sb_product['width_minimum'] = 9.5;
sb_product['width_maximum'] = 120;
sb_product['length_minimum'] = 10;
sb_product['length_maximum'] = 120;
sb_product['markup_multiplier'] = 1.25;
sb_product['colors'] = new Array(
'200-Bright White', '#000000', '#ffffff',
'201-Pure White', '#000000', '#ffffff',
'202-Bone', '#000000', '#ffffff',
'203-Antique White', '#000000',
'205-Alabaster', '#000000', '#ffffff',
'206-Bleached', '#000000', '#ffffff'
);
sb_product['widths'] = new Array(
18, 24, 28, 30, 32, 36, 42, 48, 54, 60, 66, 72, 78, 84, 90, 96
);
sb_product['lengths'] = new Array(
30, 36, 42, 48, 54, 60, 66, 73, 78, 84, 90, 96, 102, 108, 114, 120
);
sb_product['prices'] = new Array(
29.65, 31.25, 36.45, 39.06, 41.67, 46.87, 54.69, 62.50, 70.31, 78.12, 85.94, 93.75, 101.56, 109.37, 117.19, 125.00,
35.90, 37.50, 43.75, 46.87, 50.01, 56.25, 65.63, 71.15, 82.22, 93.75, 100.49, 102.40, 120.32, 129.57, 137.03, 144.23,
42.16, 43.75, 51.04, 54.69, 58.33, 65.63, 73.62, 79.65, 93.39, 106.57, 109.51, 116.11, 134.90, 147.24, 155.65, 163.78,
48.40, 50.01, 57.58, 62.50, 65.82, 73.08, 80.77, 87.18, 102.40, 116.99, 125.17, 130.77, 150.01, 163.78, 175.48, 184.62,
54.65, 56.25, 63.95, 69.41, 72.12, 78.97, 88.34, 95.20, 113.58, 128.01, 138.82, 147.12, 168.75, 181.73, 194.71, 204.81,
60.90, 62.50, 69.18, 75.32, 77.99, 85.34, 95.36, 104.17, 124.40, 138.22, 149.84, 158.66, 182.29, 196.32, 210.34, 221.16,
67.15, 68.75, 75.07, 80.43, 84.62, 92.55, 101.80, 114.59, 134.86, 152.04, 164.83, 174.52, 200.53, 215.95, 231.37, 243.27,
73.40, 75.00, 80.77, 86.54, 89.75, 98.08, 111.06, 125.00, 147.12, 163.46, 174.52, 187.51, 212.51, 228.85, 245.19, 261.54,
77.57, 79.17, 82.64, 88.54, 91.67, 101.56, 114.85, 129.17, 150.01, 169.28, 180.47, 200.00, 226.83, 247.92, 257.82, 275.00,
82.54, 84.13, 89.00, 95.36, 98.72, 107.69, 121.72, 139.10, 159.01, 173.88, 194.36, 215.39, 240.63, 263.06, 277.65, 291.68,
88.54, 90.14, 95.36, 100.66, 104.17, 113.58, 130.41, 146.64, 167.67, 183.29, 204.94, 227.17, 253.91, 277.65, 297.48, 312.51,
91.99, 93.59, 98.72, 102.56, 107.69, 117.31, 134.61, 153.85, 175.97, 195.52, 218.59, 242.32, 266.67, 296.16, 312.51, 328.22,
96.48, 98.08, 101.71, 108.97, 114.43, 124.64, 143.03, 163.46, 186.97, 211.14, 232.25, 257.45, 287.77, 314.66, 332.04, 348.73,
100.80, 102.40, 107.69, 113.58, 119.23, 129.81, 151.45, 173.08, 197.96, 216.35, 245.91, 268.28, 304.69, 328.13, 351.57, 369.24,
105.13, 106.73, 113.67, 118.20, 124.04, 134.98, 159.86, 182.69, 208.95, 221.56, 259.58, 279.09, 321.62, 341.59, 371.10, 389.75,
109.46, 111.06, 119.66, 122.80, 128.85, 140.15, 168.28, 192.31, 219.95, 226.77, 273.24, 289.91, 338.55, 355.05, 390.63, 410.26
);
sb_product['price_rollease'] = new Array(
25.00, 25.00, 25.00, 25.00, 25.00, 25.00, 25.00, 25.00, 38.00, 38.00, 38.00, 38.00, 38.00, 38.00, 38.00, 38.00
);

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'] = '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'] = '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'] = 'select';
sb_option['label'] = 'headrail';
sb_option['name'] = 'Blinds on one headrail';
sb_option['script_price'] = "if (v == 'one') p = 0; else if (v != 'one') p = Math.floor(price * 0.15);";
sb_option['script_check'] = "if ((v == 'one') && (product_width >= 96)) s = 'Blinds over 96\" 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 of each blind and position of the tilt and lift controls. If you do not enter the width of each blind, we will assume that they are equal in size'; 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 of each blind and position of the tilt and lift controls. If you do not enter the width of each blind, we will assume that they are equal in size';";
sb_option['script_string'] = "if (v == 'one') s = ''; else if (v != 'one') s = ', ' + v + ' blinds on one headrail';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'radio';
sb_option['label'] = 'rollease';
sb_option['name'] = 'RollEase';
sb_option['script_check'] = "if (v == 'yes') { if (f.elements.form_routeless[0].checked) s = 'RollEase cannot be combined with Routeless'; else if (f.elements.form_motorized[0].checked) s = 'RollEase cannot be combined with Motorized Tilt Kit'; else if (f.elements.form_remote[0].checked) s = 'RollEase cannot be combined with Remote Control'; else if ((f.elements['form_standard_tape'].value != 'none') || (f.elements['form_deluxe_tape'].value != 'none')) s = 'RollEase cannot be combined with Decorative Tape'; else if (f.elements['form_headrail'].value == 'three') s = 'RollEase not available as 3-on-1 option'; }";
sb_option['script_string'] = "if (v == 'yes') s = ', Roll-Ease';";
sb_option['script_price'] = "if (v == 'yes') p = Math.floor(sb_product['price_rollease'][i_w] * 100);";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'radio';
sb_option['label'] = 'routeless';
sb_option['name'] = 'Routeless';
sb_option['script_check'] = "if (v == 'yes') { if (f.elements.form_motorized[0].checked) s = 'Routeless cannot be combined with Motorized Tilt Kit'; else if (f.elements.form_remote[0].checked) s = 'Routeless cannot be combined with Remote Control'; else if ((f.elements['form_standard_tape'].value != 'none') || (f.elements['form_deluxe_tape'].value != 'none')) s = 'Routeless cannot be combined with Decorative Tape'; }";
sb_option['script_string'] = "if (v == 'yes') s = ', Routeless';";
sb_option['script_price'] = "if (v == 'yes') p = 1200;";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'radio';
sb_option['label'] = 'motorized';
sb_option['name'] = 'Motorized Tilt Kit';
sb_option['script_check'] = "if (v == 'yes') { if (f.elements['form_headrail'].value == 'three') s = 'Motorized Tilt Kit not available as 3-on-1 option'; else if ((f.elements['form_standard_tape'].value != 'none') || (f.elements['form_deluxe_tape'].value != 'none')) s = 'Motorized Tilt Kit cannot be combined with Decorative Tape'; }";
sb_option['script_string'] = "if (v == 'yes') s = ', Motorized Tilt Kit';";
sb_option['script_price'] = "if (v == 'yes') p = 7600;";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'radio';
sb_option['label'] = 'remote';
sb_option['name'] = 'Remote Control';
sb_option['script_check'] = "if (v == 'yes') { if (f.elements['form_headrail'].value == 'three') s = 'Remote Control not available as 3-on-1 option'; else if ((f.elements['form_standard_tape'].value != 'none') || (f.elements['form_deluxe_tape'].value != 'none')) s = 'Remote Control cannot be combined with Decorative Tape'; }";
sb_option['script_string'] = "if (v == 'yes') s = ', Remote Control';";
sb_option['script_price'] = "if (v == 'yes') p = 1500;";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'standard_tape';
sb_option['name'] = 'Standard Twill Decorative tape';
sb_option['script_check'] = "if ((v != 'none') && (f.elements['form_deluxe_tape'].value != 'none')) s = 'Both cloth tape types cannot be selected at the same time. You must select only one cloth tape type';";
sb_option['script_price'] = "if (v != 'none') p = Math.floor(price * 0.20);";
sb_option['script_string'] = "if (v != 'none') s = ', ' + v + ' color decorative tape';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'deluxe_tape';
sb_option['name'] = 'Deluxe Decorative tape';
sb_option['script_check'] = "if ((v != 'none') && (f.elements['form_standard_tape'].value != 'none')) s = 'Both cloth tape types cannot be selected at the same time. You must select only one cloth tape type';";
sb_option['script_price'] = "if (v != 'none') p = Math.floor(price * 0.30);";
sb_option['script_string'] = "if (v != 'none') s = ', ' + v + ' color decorative 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";
}