/*
**
**  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'] = 'Cellular 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'] = '1/2" Single Cell Translucent Cellular Shades';
sb_product['url'] = 'http://www.homeblindz.com/';
sb_product['width_minimum'] = 6;
sb_product['width_maximum'] = 120;
sb_product['length_minimum'] = 6;
sb_product['length_maximum'] = 144;
sb_product['markup_multiplier'] = 1.25;
sb_product['colors'] = new Array(
'1001 White Lace', '#000000', '#ffffff',
'1002 Shell White', '#000000', '#ffffff',
'1003 Creamy White', '#000000', '#ffffff',
'1004 Alabaster', '#000000', '#ffffff',
'1005 Beige', '#000000', '#ffffff',
'1006 Cottonwood', '#000000', '#ffffff',
'1007 Taupe', '#000000', '#ffffff',
'1008 Rattan', '#000000', '#ffffff',
'1009 Brandy', '#000000', '#ffffff',
'1010 Bouquet', '#000000', '#ffffff',
'1011 Cabernet', '#000000', '#ffffff',
'1012 Green Moss', '#000000', '#ffffff',
'1013 Olive', '#000000', '#ffffff',
'1014 Sky Blue', '#000000', '#ffffff',
'1015 Navy', '#000000', '#ffffff',
'1016 Deep Grey', '#000000', '#ffffff'
);
sb_product['widths'] = new Array(
24, 30, 36, 42, 48, 54, 60, 66, 72, 84, 96, 108, 120
);
sb_product['lengths'] = new Array(
36, 42, 48, 54, 60, 66, 72, 78, 84, 90, 96, 108, 120, 132, 144
);
sb_product['prices'] = new Array(
41.96, 47.53, 52.73, 59.79, 64.98, 72.04, 77.24, 84.67, 89.86, 103.23, 116.23, 136.88, 154.48,
44.56, 51.25, 56.82, 64.24, 70.93, 79.47, 85.41, 93.21, 98.78, 114.00, 128.48, 150.99, 170.82,
47.90, 54.22, 62.39, 69.81, 77.24, 85.04, 93.21, 100.63, 108.43, 123.66, 141.11, 161.57, 186.41,
51.25, 57.19, 66.84, 74.27, 83.18, 91.35, 100.26, 108.43, 117.34, 134.05, 152.62, 173.57, 200.52,
53.84, 60.90, 71.30, 79.47, 88.38, 98.03, 108.06, 116.97, 125.89, 144.08, 164.88, 186.27, 216.12,
56.07, 65.73, 75.01, 85.41, 94.69, 105.09, 114.37, 125.51, 134.43, 154.85, 175.64, 199.67, 228.75,
59.41, 68.70, 79.10, 89.86, 99.89, 112.15, 121.80, 133.31, 143.34, 165.25, 187.90, 213.08, 243.60,
62.39, 72.41, 82.81, 95.44, 106.20, 118.09, 128.86, 141.48, 151.51, 175.27, 199.04, 224.37, 257.71,
63.87, 76.13, 87.27, 99.15, 111.77, 123.66, 135.54, 147.79, 160.05, 183.81, 209.81, 234.95, 271.08,
66.84, 78.35, 92.46, 104.35, 117.34, 129.23, 142.97, 155.59, 168.59, 193.84, 222.06, 245.53, 285.93,
70.18, 82.07, 95.44, 108.06, 122.91, 135.17, 148.91, 162.65, 176.76, 202.75, 232.09, 256.82, 297.82,
75.01, 89.12, 103.60, 118.46, 132.94, 148.54, 162.65, 177.87, 192.36, 223.18, 254.00, 282.22, 325.30,
79.84, 96.18, 111.77, 128.86, 142.97, 161.91, 176.39, 193.10, 207.95, 243.60, 275.91, 307.62, 352.78,
84.67, 103.23, 119.94, 139.25, 152.99, 175.27, 190.13, 208.32, 223.55, 264.02, 297.82, 333.02, 380.25,
89.49, 110.29, 128.11, 149.65, 163.02, 188.64, 203.87, 223.55, 239.14, 284.45, 319.73, 358.42, 407.73
);
sb_product['price_cordless'] = new Array(
18.22, 19.35, 21.25, 22.39, 23.15, 23.91, 23.91, 26.57, 27.32, 28.84, 31.12, 33.40, 35.67
);
sb_product['price_easylift_bu'] = new Array(
16.70, 17.46, 19.35, 20.49, 21.25, 21.63, 22.01, 24.29, 24.67, 26.19, 28.08, 29.98, 31.88
);
sb_product['price_easylift_td'] = new Array(
36.25, 37.01, 38.90, 40.04, 40.80, 41.18, 41.56, 43.84, 44.22, 45.74, 47.63, 49.53, 51.43
);
sb_product['price_arch'] = new Array(
47.44, 53.89, 59.96, 67.93, 77.42, 87.29, 98.67, 110.06, 124.10, 152.18, 0, 0, 0
);

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 == 'side_mount') && (product_width > 46)) s = 'Side Mount is available only for widths up to 46\". Side mount brackets must be included in your order';";
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'] = 'cordless';
sb_option['name'] = 'Cordless Lift System';
sb_option['script_check'] = "if (v == 'yes') { if ((product_width < 18) || (product_width > 96) || (product_length < 12) || (product_length > 72)) s = 'Cordless Lift System is not available at these dimensions'; else if ((product_width*product_length)/144 > 60) s = 'Cordless Lift System is only available on shades up to 35 sq. ft'; if (f.elements['form_headrail'].value == 'two')  s = 'Cordless Lift System cannot be combined with 2-on-1 headrail option'; if (f.elements.form_tdbu[0].checked)  s = 'Cordless Lift System cannot be combined with Top Down/Bottom Up'; if (f.elements.form_easylift_bu[0].checked)  s = 'Cordless Lift System cannot be combined with EasyLift Bottom Up'; if (f.elements.form_easylift_td[0].checked)  s = 'Cordless Lift System cannot be combined with EasyLift Top Down';}";
sb_option['script_price'] = "if (v == 'yes') p = Math.floor(sb_product['price_cordless'][i_w] * 100);";
sb_option['script_string'] = "if (v == 'yes') s = ', Cordless Lift System';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'radio';
sb_option['label'] = 'tdbu';
sb_option['name'] = 'Top Down/Bottom Up';
sb_option['script_check'] = "if (v == 'yes') { if (f.elements['form_headrail'].value == 'two')  s = 'Top Down/Bottom Up cannot be combined with 2-on-1 headrail option'; if (f.elements.form_easylift_bu[0].checked)  s = 'Top Down/Bottom Up cannot be combined with EasyLift Bottom Up'; if (f.elements.form_easylift_td[0].checked)  s = 'Top Down/Bottom Up cannot be combined with EasyLift Top Down';}";
sb_option['script_price'] = "if (v == 'yes') p = 1955;";
sb_option['script_string'] = "if (v == 'yes') s = ', Top Down/Bottom Up';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'radio';
sb_option['label'] = 'easylift_bu';
sb_option['name'] = 'EasyLift Bottom Up';
sb_option['script_check'] = "if (v == 'yes') { if ((product_width < 10) || (product_width > 96) || (product_length > 84)) s = 'EasyLift Bottom Up is not available at these dimensions'; if (f.elements['form_headrail'].value == 'two')  s = 'EasyLift Bottom Up cannot be combined with 2-on-1 headrail option'; if (f.elements.form_tdbu[0].checked)  s = 'EasyLift Bottom Up cannot be combined with Top Down/Bottom Up'; if (f.elements.form_easylift_td[0].checked)  s = 'EasyLift Bottom Up cannot be combined with EasyLift Top Down';}";
sb_option['script_price'] = "if (v == 'yes') p = Math.floor(sb_product['price_easylift_bu'][i_w] * 100);";
sb_option['script_string'] = "if (v == 'yes') s = ', EasyLift Bottom Up';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'radio';
sb_option['label'] = 'easylift_td';
sb_option['name'] = 'EasyLift Top Down';
sb_option['script_check'] = "if (v == 'yes') { if ((product_width < 10) || (product_width > 96) || (product_length > 84)) s = 'EasyLift Top Down is not available at these dimensions'; if (f.elements['form_headrail'].value == 'two')  s = 'EasyLift Top Down cannot be combined with 2-on-1 headrail option'; if (f.elements.form_tdbu[0].checked)  s = 'EasyLift Top Down cannot be combined with Top Down/Bottom Up'; if (f.elements.form_easylift_bu[0].checked)  s = 'EasyLift Top Down cannot be combined with EasyLift Bottom Up';}";
sb_option['script_price'] = "if (v == 'yes') p = Math.floor(sb_product['price_easylift_td'][i_w] * 100);";
sb_option['script_string'] = "if (v == 'yes') s = ', EasyLift Top Down';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'radio';
sb_option['label'] = 'arch';
sb_option['name'] = 'Perfect Arch';
sb_option['script_check'] = "if (v == 'yes') { if (product_width > 84) s = 'Perfect Arch is not available for widths over 84\"';}";
sb_option['script_price'] = "if (v == 'yes') p = Math.floor(sb_product['price_arch'][i_w] * 100);";
sb_option['script_string'] = "if (v == 'yes') s = ', Perfect Arch';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'headrail';
sb_option['name'] = 'Shades 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 >= 84)) s = 'Shades over 84\" must be done as two on one spliced 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 shade. If you do not enter the width of each shade, we will assume that they are equal in size';";
sb_option['script_string'] = "if (v == 'one') s = ''; else if (v != 'one') s = ', ' + v + ' shades on one headrail';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'radio';
sb_option['label'] = 'side_mount';
sb_option['name'] = 'Side Mount brackets';
sb_option['script_check'] = "if (!v) s = 'Please choose whether you need side mount brackets';";
sb_option['script_string'] = "if (v == 'yes') s = ', side mount brackets';";
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";
}