/*
**
**  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-1/2" Routed Wood ShutterBlinds';
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(
'100 Bright White', '#000000', '#ffffff',
'101 Pure White', '#000000', '#ffffff', 
'102 Bone', '#000000', '#ffffff',
'103 Antique White', '#000000', '#ffffff',
'108 Light Oak', '#000000', '#ffffff',
'109 Sugar Maple', '#000000', '#ffffff',
'110 Golden Oak', '#000000', '#ffffff',
'111 Pecan', '#000000', '#ffffff',
'117 Mahogany', '#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(
28.07, 29.49, 34.40, 36.85, 39.32, 44.22, 51.60, 58.97, 66.34, 73.71, 81.09, 88.46, 95.83, 103.20, 110.57, 117.94,
33.97, 35.38, 41.28, 44.22, 47.18, 53.07, 61.92, 70.77, 79.61, 88.46, 97.30, 106.15, 114.99, 123.84, 132.68, 141.53,
36.56, 37.97, 44.30, 47.47, 50.64, 56.97, 66.46, 75.96, 85.45, 94.94, 104.44, 113.93, 123.43, 132.92, 142.41, 151.91,
41.99, 43.40, 50.64, 54.25, 57.87, 65.10, 75.96, 86.81, 97.65, 108.50, 119.36, 130.21, 141.06, 151.91, 162.76, 173.61,
45.29, 46.71, 54.49, 58.38, 62.27, 70.06, 81.74, 93.41, 105.09, 116.77, 128.44, 140.12, 151.80, 163.47, 175.15, 186.82,
50.48, 51.90, 60.54, 64.87, 69.20, 77.84, 90.81, 103.78, 116.77, 129.74, 142.71, 155.68, 168.65, 181.63, 194.61, 207.58,
51.80, 53.21, 62.08, 66.52, 70.95, 79.82, 93.13, 106.43, 119.74, 133.02, 146.33, 159.64, 172.94, 186.25, 199.54, 212.85,
53.11, 54.53, 63.61, 68.16, 72.71, 81.79, 95.42, 109.05, 122.69, 136.32, 149.95, 163.59, 177.22, 190.85, 204.48, 218.12,
56.85, 58.27, 67.97, 72.83, 77.68, 87.40, 101.96, 116.53, 131.09, 145.66, 160.22, 174.79, 189.36, 203.92, 218.49, 233.05,
61.33, 62.75, 73.20, 78.43, 83.66, 94.12, 109.81, 125.49, 141.18, 156.86, 172.55, 188.24, 203.92, 219.61, 235.30, 250.98,
65.81, 67.22, 78.43, 84.03, 89.63, 100.84, 117.65, 134.46, 151.26, 168.06, 184.87, 201.68, 218.49, 235.30, 252.10, 268.90,
70.29, 71.71, 83.66, 89.63, 95.61, 107.56, 125.49, 143.42, 161.34, 179.27, 197.20, 215.12, 233.05, 250.98, 268.90, 286.83,
74.78, 76.19, 88.89, 95.24, 101.59, 114.28, 133.33, 152.38, 171.43, 190.48, 209.52, 228.58, 247.62, 266.67, 285.71, 304.76,
79.25, 80.68, 94.12, 100.84, 107.56, 121.00, 141.18, 161.34, 181.52, 201.68, 221.85, 242.02, 262.18, 282.36, 302.52, 322.69,
83.74, 85.15, 99.35, 106.44, 113.54, 127.74, 149.02, 170.31, 191.59, 212.89, 234.17, 255.46, 276.75, 298.04, 319.33, 340.61,
88.22, 89.63, 104.58, 112.05, 119.51, 134.46, 156.86, 179.27, 201.68, 224.09, 246.50, 268.90, 291.32, 313.73, 336.14, 358.54
);

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'; else if ((v == 'outside') && (f.elements.form_spacer[1].checked)) s = 'Spacer Blocks must be used on an outside mount blind to allow the slats to hang straight';";
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 == 'wand') && (product_width > 9)) s = 'Wand Tilt Not Available unless width is less than 9\"';";
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'] = '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'; if ((product_width*product_length)/144 > 45) s = 'Motorized Tilt Kit not available for these dimensions';}";
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'; if ((product_width*product_length)/144 > 45) s = 'Remote Control not available for these dimensions';}";
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'] = '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";
}