/*
**
**  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'] = 'Solar 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'] = 'Solar Shades Phifer SheerWeave Style 5000 (10 percent open)';
sb_product['url'] = 'http://www.homeblindz.com/';
sb_product['width_minimum'] = 6;
sb_product['width_maximum'] = 168;
sb_product['length_minimum'] = 10;
sb_product['length_maximum'] = 192;
sb_product['markup_multiplier'] = 1.70;
sb_product['colors'] = new Array(
'P59 Bamboo/Whitewash', '#000000', '#ffffff',
'P60 Bamboo/Birch', '#000000', '#ffffff',
'Q48 Bark/Cedar', '#000000', '#ffffff',
'Q53 Honeycomb/Brown Sugar', '#000000', '#ffffff'
);
sb_product['widths'] = new Array(
36, 42, 48, 54, 60, 72, 84, 96, 108, 120, 132, 144, 156, 168
);
sb_product['lengths'] = new Array(
36,	48,	60,	72,	84,	96, 108, 120, 132, 144,	156, 168, 180, 192
);
sb_product['prices'] = new Array(
58.99, 60.26, 61.79, 62.88, 64.14, 74.49, 112.64, 126.90, 197.28, 218.31, 278.97, 299.72, 323.33, 348.81,
69.20, 70.47, 72.00, 73.09, 74.35, 85.84, 113.65, 127.90, 236.05, 261.09, 326.33, 349.79, 377.35, 407.09,
79.41, 80.59, 82.21, 83.30, 84.56, 98.39, 115.76, 128.81, 247.50, 309.87, 412.45, 436.48, 470.88, 507.99,
89.62, 90.80, 92.42, 93.51, 95.98, 109.73, 124.31, 143.38, 263.81, 325.04, 422.04, 453.94, 489.71, 622.69,
99.74, 101.01, 102.54, 104.92, 106.19, 121.08, 125.92, 145.49, 265.38, 326.61, 585.37, 635.58, 686.49, 741.42,
109.95, 111.22, 113.96, 115.13, 116.40, 132.42, 127.62, 188.86, 395.10, 472.64, 587.80, 638.16, 689.27, 744.41,
120.16, 122.63, 124.17, 125.34, 126.61, 143.77, 167.28, 190.07, 397.24, 475.07, 590.23, 640.59, 691.90, 747.24,
130.37, 132.75, 134.38, 135.55, 136.82, 155.11, 168.48, 207.74, 429.43, 477.50, 592.81, 643.02, 0.00, 0.00,
140.49, 142.96, 144.59, 145.76, 146.94, 166.46, 173.10, 208.94, 431.15, 479.93, 595.24, 645.60, 0.00, 0.00,
151.91, 153.17, 154.80, 155.97, 157.24, 177.80, 212.86, 253.92, 516.27, 574.50, 597.67, 648.03, 0.00, 0.00,
158.12, 159.44, 161.13, 162.35, 163.66, 185.05, 306.82, 349.53, 537.34, 0.00, 0.00, 0.00, 0.00, 0.00,
164.58, 165.95, 167.71, 168.98, 170.35, 267.11, 318.43, 362.84, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00,
171.30, 172.72, 174.55, 175.88, 177.30, 274.95, 330.51, 376.70, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00,
178.29, 179.77, 181.67, 183.05, 187.94, 283.10, 343.07, 391.10, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00
);
sb_product['price_fascia'] = new Array(
16.66, 17.89, 19.11, 20.37, 21.58, 24.01, 26.48, 28.96, 31.43, 33.86, 36.33, 38.81, 41.83, 44.31
);
sb_product['price_fascia_wrapped'] = new Array(
39.21, 43.74, 46.61, 49.52, 52.93, 60.31, 67.18, 74.61, 80.38, 87.76, 96.83, 104.26, 113.12, 122.45
);
sb_product['price_galaxy_clutch'] = new Array(
25.00, 26.00, 27.00, 28.00, 29.00, 30.00, 31.00, 32.00, 32.00, 33.00, 34.00, 35.00, 36.00, 37.00
);
sb_product['price_cassette'] = new Array(
20.00, 21.50, 23.00, 28.00, 37.00, 40.00, 42.00, 46.00, 51.00, 56.00, 0.00, 0.00, 0.00, 0.00
);
sb_products.push(sb_product);

sb_product = new Object();
sb_product['name'] = 'Solar Shades Phifer SheerWeave Style 5000 (7 percent open)';
sb_product['url'] = 'http://www.homeblindz.com/';
sb_product['width_minimum'] = 6;
sb_product['width_maximum'] = 168;
sb_product['length_minimum'] = 10;
sb_product['length_maximum'] = 192;
sb_product['markup_multiplier'] = 1.70;
sb_product['colors'] = new Array(
'Q45 Moire/Leather', '#000000', '#ffffff',
'Q46 Bamboo/Wheat', '#000000', '#ffffff',
'Q47 Moire/Mocha', '#000000', '#ffffff',
'Q49 Rattan/Umber', '#000000', '#ffffff',
'Q52 Marble/Slate', '#000000', '#ffffff',
'Q93 Cane/Golden Straw', '#000000', '#ffffff',
'Q96 Thatch/Wheatgrass', '#000000', '#ffffff'
);
sb_product['widths'] = new Array(
36, 42, 48, 54, 60, 72, 84, 96, 108, 120, 132, 144, 156, 168
);
sb_product['lengths'] = new Array(
36,	48,	60,	72,	84,	96, 108, 120, 132, 144,	156, 168, 180, 192
);
sb_product['prices'] = new Array(
58.99, 60.26, 61.79, 62.88, 64.14, 74.49, 112.64, 126.90, 197.28, 218.31, 278.97, 299.72, 323.33, 348.81,
69.20, 70.47, 72.00, 73.09, 74.35, 85.84, 113.65, 127.90, 236.05, 261.09, 326.33, 349.79, 377.35, 407.09,
79.41, 80.59, 82.21, 83.30, 84.56, 98.39, 115.76, 128.81, 247.50, 309.87, 412.45, 436.48, 470.88, 507.99,
89.62, 90.80, 92.42, 93.51, 95.98, 109.73, 124.31, 143.38, 263.81, 325.04, 422.04, 453.94, 489.71, 622.69,
99.74, 101.01, 102.54, 104.92, 106.19, 121.08, 125.92, 145.49, 265.38, 326.61, 585.37, 635.58, 686.49, 741.42,
109.95, 111.22, 113.96, 115.13, 116.40, 132.42, 127.62, 188.86, 395.10, 472.64, 587.80, 638.16, 689.27, 744.41,
120.16, 122.63, 124.17, 125.34, 126.61, 143.77, 167.28, 190.07, 397.24, 475.07, 590.23, 640.59, 691.90, 747.24,
130.37, 132.75, 134.38, 135.55, 136.82, 155.11, 168.48, 207.74, 429.43, 477.50, 592.81, 643.02, 0.00, 0.00,
140.49, 142.96, 144.59, 145.76, 146.94, 166.46, 173.10, 208.94, 431.15, 479.93, 595.24, 645.60, 0.00, 0.00,
151.91, 153.17, 154.80, 155.97, 157.24, 177.80, 212.86, 253.92, 516.27, 574.50, 597.67, 648.03, 0.00, 0.00,
158.12, 159.44, 161.13, 162.35, 163.66, 185.05, 306.82, 349.53, 537.34, 0.00, 0.00, 0.00, 0.00, 0.00,
164.58, 165.95, 167.71, 168.98, 170.35, 267.11, 318.43, 362.84, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00,
171.30, 172.72, 174.55, 175.88, 177.30, 274.95, 330.51, 376.70, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00,
178.29, 179.77, 181.67, 183.05, 187.94, 283.10, 343.07, 391.10, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00
);
sb_product['price_fascia'] = new Array(
16.66, 17.89, 19.11, 20.37, 21.58, 24.01, 26.48, 28.96, 31.43, 33.86, 36.33, 38.81, 41.83, 44.31
);
sb_product['price_fascia_wrapped'] = new Array(
39.21, 43.74, 46.61, 49.52, 52.93, 60.31, 67.18, 74.61, 80.38, 87.76, 96.83, 104.26, 113.12, 122.45
);
sb_product['price_galaxy_clutch'] = new Array(
25.00, 26.00, 27.00, 28.00, 29.00, 30.00, 31.00, 32.00, 32.00, 33.00, 34.00, 35.00, 36.00, 37.00
);
sb_product['price_cassette'] = new Array(
20.00, 21.50, 23.00, 28.00, 37.00, 40.00, 42.00, 46.00, 51.00, 56.00, 0.00, 0.00, 0.00, 0.00
);
sb_products.push(sb_product);

sb_product = new Object();
sb_product['name'] = 'Solar Shades Phifer SheerWeave Style 5000 (5 percent open)';
sb_product['url'] = 'http://www.homeblindz.com/';
sb_product['width_minimum'] = 6;
sb_product['width_maximum'] = 168;
sb_product['length_minimum'] = 10;
sb_product['length_maximum'] = 192;
sb_product['markup_multiplier'] = 1.70;
sb_product['colors'] = new Array(
'Q43 Marble/Sand', '#000000', '#ffffff',
'Q50 Bark/Tiger Oak', '#000000', '#ffffff',
'Q51 Wicker Mushroom', '#000000', '#ffffff',
'Q94 Tweed/Oatmeal', '#000000', '#ffffff',
'Q95 Tweed/Buckeye', '#000000', '#ffffff'
);
sb_product['widths'] = new Array(
36, 42, 48, 54, 60, 72, 84, 96, 108, 120, 132, 144, 156, 168
);
sb_product['lengths'] = new Array(
36,	48,	60,	72,	84,	96, 108, 120, 132, 144,	156, 168, 180, 192
);
sb_product['prices'] = new Array(
58.99, 60.26, 61.79, 62.88, 64.14, 74.49, 112.64, 126.90, 197.28, 218.31, 278.97, 299.72, 323.33, 348.81,
69.20, 70.47, 72.00, 73.09, 74.35, 85.84, 113.65, 127.90, 236.05, 261.09, 326.33, 349.79, 377.35, 407.09,
79.41, 80.59, 82.21, 83.30, 84.56, 98.39, 115.76, 128.81, 247.50, 309.87, 412.45, 436.48, 470.88, 507.99,
89.62, 90.80, 92.42, 93.51, 95.98, 109.73, 124.31, 143.38, 263.81, 325.04, 422.04, 453.94, 489.71, 622.69,
99.74, 101.01, 102.54, 104.92, 106.19, 121.08, 125.92, 145.49, 265.38, 326.61, 585.37, 635.58, 686.49, 741.42,
109.95, 111.22, 113.96, 115.13, 116.40, 132.42, 127.62, 188.86, 395.10, 472.64, 587.80, 638.16, 689.27, 744.41,
120.16, 122.63, 124.17, 125.34, 126.61, 143.77, 167.28, 190.07, 397.24, 475.07, 590.23, 640.59, 691.90, 747.24,
130.37, 132.75, 134.38, 135.55, 136.82, 155.11, 168.48, 207.74, 429.43, 477.50, 592.81, 643.02, 0.00, 0.00,
140.49, 142.96, 144.59, 145.76, 146.94, 166.46, 173.10, 208.94, 431.15, 479.93, 595.24, 645.60, 0.00, 0.00,
151.91, 153.17, 154.80, 155.97, 157.24, 177.80, 212.86, 253.92, 516.27, 574.50, 597.67, 648.03, 0.00, 0.00,
158.12, 159.44, 161.13, 162.35, 163.66, 185.05, 306.82, 349.53, 537.34, 0.00, 0.00, 0.00, 0.00, 0.00,
164.58, 165.95, 167.71, 168.98, 170.35, 267.11, 318.43, 362.84, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00,
171.30, 172.72, 174.55, 175.88, 177.30, 274.95, 330.51, 376.70, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00,
178.29, 179.77, 181.67, 183.05, 187.94, 283.10, 343.07, 391.10, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00
);
sb_product['price_fascia'] = new Array(
16.66, 17.89, 19.11, 20.37, 21.58, 24.01, 26.48, 28.96, 31.43, 33.86, 36.33, 38.81, 41.83, 44.31
);
sb_product['price_fascia_wrapped'] = new Array(
39.21, 43.74, 46.61, 49.52, 52.93, 60.31, 67.18, 74.61, 80.38, 87.76, 96.83, 104.26, 113.12, 122.45
);
sb_product['price_galaxy_clutch'] = new Array(
25.00, 26.00, 27.00, 28.00, 29.00, 30.00, 31.00, 32.00, 32.00, 33.00, 34.00, 35.00, 36.00, 37.00
);
sb_product['price_cassette'] = new Array(
20.00, 21.50, 23.00, 28.00, 37.00, 40.00, 42.00, 46.00, 51.00, 56.00, 0.00, 0.00, 0.00, 0.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'] = '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'] = 'cord_loop';
sb_option['name'] = 'Cord Loop';
sb_option['script_check'] = "if (!v) s = 'Please select a lift cord loop'; else if ((v == 'steel') && (f.elements.form_galaxy_clutch[0].checked)) s = 'Steel Cord is not available with Galaxy Clutch system';";
sb_option['script_string'] = "s = ', ' + v + ' cord loop';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'radio';
sb_option['label'] = 'fascia';
sb_option['name'] = 'Fascia';
sb_option['script_check'] = "if (v == 'yes') { if (f.elements.form_fascia_wrapped[0].checked) s = 'Fascia cannot be combined with Fabric Wrapped Fascia'; if (f.elements.form_reverse_roll[0].checked) s = 'Fascia cannot be combined with Reverse Roll'; if (f.elements.form_cassette[0].checked) s = 'Fascia cannot be combined with Cassette System';}";
sb_option['script_string'] = "if (v == 'yes') s = ', Fascia';";
sb_option['script_price'] = "if (v == 'yes') p = Math.floor(sb_product['price_fascia'][i_w] * 100);";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'fasciaColor';
sb_option['name'] = 'Fascia Color';
sb_option['script_string'] = "if (f.elements.form_fascia[0].checked) s = ' Color: ' + v;";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'radio';
sb_option['label'] = 'fascia_wrapped';
sb_option['name'] = 'Fabric Wrapped Fascia';
sb_option['script_check'] = "if (v == 'yes') { if (f.elements.form_reverse_roll[0].checked) s = 'Fabric Wrapped Fascia cannot be combined with Reverse Roll'; if (f.elements.form_cassette[0].checked) s = 'Fabric Wrapped Fascia cannot be combined with Cassette System';}";
sb_option['script_string'] = "if (v == 'yes') s = ', Fabric Wrapped Fascia';";
sb_option['script_price'] = "if (v == 'yes') p = Math.floor(sb_product['price_fascia_wrapped'][i_w] * 100);";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'radio';
sb_option['label'] = 'hembar';
sb_option['name'] = 'External Hembar';
sb_option['script_string'] = "if (v == 'yes') s = ', External Hembar';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'hembarColor';
sb_option['name'] = 'Hembar Color';
sb_option['script_string'] = "if (f.elements.form_hembar[0].checked) s = ' Color: ' + v;";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'radio';
sb_option['label'] = 'galaxy_clutch';
sb_option['name'] = 'Galaxy Clutch';
sb_option['script_check'] = "if ((v == 'yes') && (f.elements.form_cassette[0].checked)) s = 'Galaxy Clutch cannot be combined with Cassette System';";
sb_option['script_string'] = "if (v == 'yes') s = ', Galaxy Clutch';";
sb_option['script_price'] = "if (v == 'yes') p = Math.floor(sb_product['price_galaxy_clutch'][i_w] * 100);";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'radio';
sb_option['label'] = 'reverse_roll';
sb_option['name'] = 'Reverse Roll';
sb_option['script_string'] = "if (v == 'yes') s = ', Reverse Roll';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'radio';
sb_option['label'] = 'cassette';
sb_option['name'] = 'Cassette System';
sb_option['script_check'] = "if (v == 'yes') { if (product_width > 120) s = 'Cassette System is not available for shades over 120\" wide'; if  (product_length > 120) s = 'Cassette System is not available for shades over 120\" long'; if (f.elements.form_reverse_roll[0].checked) s = 'Cassette System is not available with Reverse Roll';}";
sb_option['script_string'] = "if (v == 'yes') s = ', Cassette System';";
sb_option['script_price'] = "if (v == 'yes') p = Math.floor(sb_product['price_cassette'][i_w] * 100);";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'cassetteColor';
sb_option['name'] = 'Cassette System Color';
sb_option['script_string'] = "if (f.elements.form_cassette[0].checked) s = ' Color: ' + v;";
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";
}
