/*
**
**  Copyright (c) 1997-2003 by Sniglets, Inc., all rights reserved.
**
**  Usage, duplication, and/or modification of this program, its
**  representation, or its results without written permission from
**  Sniglets, Inc. is expressly prohibited.
**
**  Id: woven.js,v 1.3 2003/03/08 17:13:17 john Exp john 
**
*/

var sb_config_drop_down, sb_products, sb_product, sb_option, sb_options;

sb_config = new Object();
sb_config['label'] = 'shutters';
sb_config['name'] = 'Plantation Shutters';
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'] = 'Premium Wood Shutter - Normandy Paints';
sb_product['url'] = 'http://www.homeblindz.com/';
sb_product['width_minimum'] = 6;
sb_product['width_maximum'] = 999;
sb_product['length_minimum'] = 10;
sb_product['length_maximum'] = 133;
sb_product['sqft_price'] = 20.5;
sb_product['colors'] = new Array(
'ND001 Pure White', '#000000', '#ffffff',
'ND003 Silk White', '#000000', '#ffffff',
'ND004 Bright White', '#000000', '#ffffff',
'ND006 Pearl', '#000000', '#ffffff',
'ND011 Cameo', '#000000', '#ffffff',
'ND013 Bisque', '#000000', '#ffffff'
);
sb_products.push(sb_product);


sb_options = new Array();

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);

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'provided_measurement';
sb_option['name'] = 'What did you measure';
sb_option['script_check'] = "if (v == '') s = 'Please tell us if the dimensions you provided are of the actual window opening or Max Frame to Frame - Please see instructions.';";
sb_option['script_string'] = "if (v == '1') s = ', Dimensions provided represent window size'; else if (v == '2') s = ', Dimensions provided represent Max Frame to Frame';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'window_molding';
sb_option['name'] = 'Existing Window Molding';
sb_option['script_check'] = "if (v == '') s = 'Please tell us whether or not your window has window molding and whether or not you intend to keep it.';";
sb_option['script_string'] = "if (v == '1') s = ', Window Molding: No Existing Molding'; else if (v == '2') s = ', Window Molding: Existing Molding-Will Stay'; else if (v == '3') s = ', Window Molding: Existing Molding-Will Be Removed';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'existing_window_sill';
sb_option['name'] = 'Existing Window Sill';
sb_option['script_check'] = "if (!v) s = 'Please tell us whether or not your window has an existing window sill and whether or not you intend to keep it.';";
sb_option['script_string'] = "if (v == '1') s = ', Window Sill: No Existing Sill'; else if (v == '2') s = ', Window Sill: Existing Sill-Will Stay'; else if (v == '3') s = ', Window Sill: Existing Sill-Will Be Removed';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'frame_style';
sb_option['name'] = 'Frame Style';
sb_option['script_check'] = "if (v == '') s = 'Please select your frame and if applicable your mounting depth';";
sb_option['script_string'] = "if (v == '1') s = ', 2-inch Camber Deco Frame - Outside Mount'; else if (v == '2') s = ', Beaded L-Frame - Outside Mount'; else if (v == '3') s = ', 2-inch Bel Air Z-Frame - Inside Mount - Less than 1-1/2-inch of mounting depth'; else if (v == '4') s = ', 2-inch Bel Air Z-Frame - Inside Mount - With at least 1-1/2-inch of mounting depth'; else if (v == '5') s = ', 2-inch Bel Air Z-Frame - Inside Mount - With at least 2-3/4-inch of mounting depth'; else if (v == '6') s = ', 1-inch Hanging Strips - Inside Mount - Less than 1-1/2-inch of mounting depth'; else if (v == '7') s = ', 1-inch Hanging Strips - Inside Mount - With at least 1-1/2-inch of mounting depth'; else if (v == '8') s = ', 1-inch Hanging Strips - Inside Mount - With at least 2-3/4-inch of mounting depth';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'frame_sides';
sb_option['name'] = 'No. Of Sides to Frame';
sb_option['script_check'] = "if (v == '') s = 'Please tell us how many sides to the frame you need. If you have a decorative header or protruding sill you would need a 2-Sided Frame. If you have a protruding sill that either you cannnot remove or simply do not want to remove - you need a 3-Sided Frame. If you have none of the above - 4-Sided Frame.';";
sb_option['script_string'] = "if (v == '1') s = ', 2-Sided Frame'; else if (v == '2') s = ', 3-Sided Frame'; else if (v == '3') s = ', 4-Sided Frame';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'panel_config';
sb_option['name'] = 'Panel Configuration';
sb_option['script_check'] = "if (v == '') s = 'Please configure your panels'; else if ((v == 'config-16') && (f.elements['form_1st_tpost_spot'].value == '')) s = 'Your panel configuration requires the use of one or more T-Posts. Please provide the location of the FIRST T-Post per the instructions provided'; else if ((v == 'config-8') && (f.elements['form_1st_tpost_spot'].value == '')) s = 'Your panel configuration requires the use of one or more T-Posts. Please provide the location of the FIRST T-Post per the instructions provided'; else if ((v == 'config-8') && (f.elements['form_2nd_tpost_spot'].value == '')) s = 'Your panel configuration requires the use of two T-Posts. Please provide the location of the SECOND T-Post per the instructions provided'; else if ((v == 'config-9') && (f.elements['form_1st_tpost_spot'].value == '')) s = 'Your panel configuration requires the use of one or more T-Posts. Please provide the location of the FIRST T-Post per the instructions provided'; else if ((v == 'config-9') && (f.elements['form_2nd_tpost_spot'].value == '')) s = 'Your panel configuration requires the use of two T-Posts. Please provide the location of the SECOND T-Post per the instructions provided'; else if ((v == 'config-10') && (f.elements['form_1st_tpost_spot'].value == '')) s = 'Your panel configuration requires the use of one or more T-Posts. Please provide the location of the FIRST T-Post per the instructions provided'; else if ((v == 'config-10') && (f.elements['form_2nd_tpost_spot'].value == '')) s = 'Your panel configuration requires the use of two T-Posts. Please provide the location of the SECOND T-Post per the instructions provided'; else if ((v == 'config-11') && (f.elements['form_1st_tpost_spot'].value == '')) s = 'Your panel configuration requires the use of one or more T-Posts. Please provide the location of the FIRST T-Post per the instructions provided'; else if ((v == 'config-11') && (f.elements['form_2nd_tpost_spot'].value == '')) s = 'Your panel configuration requires the use of two T-Posts. Please provide the location of the SECOND T-Post per the instructions provided'; else if ((v == 'config-13') && (f.elements['form_1st_tpost_spot'].value == '')) s = 'Your panel configuration requires the use of one or more T-Posts. Please provide the location of the FIRST T-Post per the instructions provided'; else if ((v == 'config-13') && (f.elements['form_2nd_tpost_spot'].value == '')) s = 'Your panel configuration requires the use of two T-Posts. Please provide the location of the SECOND T-Post per the instructions provided'; else if ((v == 'config-14') && (f.elements['form_1st_tpost_spot'].value == '')) s = 'Your panel configuration requires the use of one or more T-Posts. Please provide the location of the FIRST T-Post per the instructions provided'; else if ((v == 'config-14') && (f.elements['form_2nd_tpost_spot'].value == '')) s = 'Your panel configuration requires the use of two T-Posts. Please provide the location of the SECOND T-Post per the instructions provided'; else if ((v == 'config-15') && (f.elements['form_1st_tpost_spot'].value == '')) s = 'Your panel configuration requires the use of one or more T-Posts. Please provide the location of the FIRST T-Post per the instructions provided'; else if ((v == 'config-15') && (f.elements['form_2nd_tpost_spot'].value == '')) s = 'Your panel configuration requires the use of two T-Posts. Please provide the location of the SECOND T-Post per the instructions provided'; else if ((v == 'config-17') && (f.elements['form_1st_tpost_spot'].value == '')) s = 'Your panel configuration requires the use of one or more T-Posts. Please provide the location of the FIRST T-Post per the instructions provided'; else if ((v == 'config-17') && (f.elements['form_2nd_tpost_spot'].value == '')) s = 'Your panel configuration requires the use of two T-Posts. Please provide the location of the SECOND T-Post per the instructions provided'; else if ((v == 'config-18') && (f.elements['form_1st_tpost_spot'].value == '')) s = 'Your panel configuration requires the use of one or more T-Posts. Please provide the location of the FIRST T-Post per the instructions provided'; else if ((v == 'config-18') && (f.elements['form_2nd_tpost_spot'].value == '')) s = 'Your panel configuration requires the use of two T-Posts. Please provide the location of the SECOND T-Post per the instructions provided'; else if ((v == 'config-19') && (f.elements['form_1st_tpost_spot'].value == '')) s = 'Your panel configuration requires the use of one or more T-Posts. Please provide the location of the FIRST T-Post per the instructions provided'; else if ((v == 'config-19') && (f.elements['form_2nd_tpost_spot'].value == '')) s = 'Your panel configuration requires the use of two T-Posts. Please provide the location of the SECOND T-Post per the instructions provided'; else if ((v == 'config-20') && (f.elements['form_1st_tpost_spot'].value == '')) s = 'Your panel configuration requires the use of one or more T-Posts. Please provide the location of the FIRST T-Post per the instructions provided'; else if ((v == 'config-20') && (f.elements['form_2nd_tpost_spot'].value == '')) s = 'Your panel configuration requires the use of two T-Posts. Please provide the location of the SECOND T-Post per the instructions provided'; else if ((v == 'config-20') && (f.elements['form_3rd_tpost_spot'].value == '')) s = 'Your panel configuration requires the use of three T-Posts. Please provide the location of the THIRD T-Post per the instructions provided';";
sb_option['script_string'] = "if (v == 'config-1') s = ', Panel Config-Single Panel-Left (L)'; else if (v == 'config-2') s = ', Panel Config-Single Panel-Right (R)'; else if (v == 'config-3') s = ', Panel Config-Two Panel-Split (LR)'; else if (v == 'config-4') s = ', Panel Config-Two Panel Bi-Fold-Left (LL)'; else if (v == 'config-5') s = ', Panel Config-Two Panel BI-Fold-Right (RR)'; else if (v == 'config-6') s = ', Panel Config-Three Panel BI-Fold-Left Pair (LLR)'; else if (v == 'config-7') s = ', Panel Config-Three Panel BI-Fold-Right Pair (LRR)'; else if (v == 'config-8') s = ', Panel Config-Three Panel Individual-Left Pair (LTLTR), First T-post Spot From Left ' + f.elements['form_1st_tpost_spot'].value + ' inches, Second T-post Spot From Left ' + f.elements['form_2nd_tpost_spot'].value + ' inches'; else if (v == 'config-9') s = ', Panel Config-Three Panel Individual-Right Pair (LTRTR), First T-post Spot From Left ' + f.elements['form_1st_tpost_spot'].value + ' inches, Second T-post Spot From Left ' + f.elements['form_2nd_tpost_spot'].value + ' inches'; else if (v == 'config-10') s = ', Panel Config-Three Panel Individual-Left (LTLTL), First T-post Spot From Left ' + f.elements['form_1st_tpost_spot'].value + ' inches, Second T-post Spot From Left ' + f.elements['form_2nd_tpost_spot'].value + ' inches'; else if (v == 'config-11') s = ', Three Panel Individual-Right (RTRTR), First T-post Spot From Left ' + f.elements['form_1st_tpost_spot'].value + ' inches, Second T-post Spot From Left ' + f.elements['form_2nd_tpost_spot'].value + ' inches'; else if (v == 'config-12') s = ', Panel Config-Four Panel BI-Fold-Split (LLRR)'; else if (v == 'config-13') s = ', Panel Config-Four Panel BI-Fold-Center Pair Left (LTLLTR), First T-post Spot From Left ' + f.elements['form_1st_tpost_spot'].value + ' inches, Second T-post Spot From Left ' + f.elements['form_2nd_tpost_spot'].value + ' inches'; else if (v == 'config-14') s = ', Panel Config-Four Panel BI-Fold-Center Pair Right (LTRRTR), First T-post Spot From Left ' + f.elements['form_1st_tpost_spot'].value + ' inches, Second T-post Spot From Left ' + f.elements['form_2nd_tpost_spot'].value + ' inches'; else if (v == 'config-15') s = ', Panel Config-Four Panel Individual-Outside (LTLRTR), First T-post Spot From Left ' + f.elements['form_1st_tpost_spot'].value + ' inches, Second T-post Spot From Left ' + f.elements['form_2nd_tpost_spot'].value + ' inches'; else if (v == 'config-16') s = ', Panel Config-Four Panel Individual-Side By Side (LRTLR), T-post Spot From Left ' + f.elements['form_1st_tpost_spot'].value + ' inches'; else if (v == 'config-17') s = ', Panel Config-Six Panel BI-Fold-End Pairs (LLTLRTRR), First T-post Spot From Left ' + f.elements['form_1st_tpost_spot'].value + ' inches, Second T-post Spot From Left ' + f.elements['form_2nd_tpost_spot'].value + ' inches'; else if (v == 'config-18') s = ', Panel Config-Six Panel BI-Fold-Center Pairs (LTLLRRTR), First T-post Spot From Left ' + f.elements['form_1st_tpost_spot'].value + ' inches, Second T-post Spot From Left ' + f.elements['form_2nd_tpost_spot'].value + ' inches'; else if (v == 'config-19') s = ', Panel Config-Six Panel Individual-Side By Side (LRTLRTLR), First T-post Spot From Left ' + f.elements['form_1st_tpost_spot'].value + ' inches, Second T-post Spot From Left ' + f.elements['form_2nd_tpost_spot'].value + ' inches'; else if (v == 'config-20') s = ', Panel Config-Six Panel Individual-Center Pairs (LTLRTLRTR), First T-post Spot From Left ' + f.elements['form_1st_tpost_spot'].value + ' inches, Second T-post Spot From Left ' + f.elements['form_2nd_tpost_spot'].value + ' inches, Third T-post Spot From Left ' + f.elements['form_3rd_tpost_spot'].value + ' inches';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'louver_size';
sb_option['name'] = 'louver size';
sb_option['script_check'] = "if (v == '') s = 'Please select your louver size';";
sb_option['script_string'] = "if (v == '1') s = ', Louver Size= 2-1/2 inches'; else if (v == '2') s = ', Louver Size= 3-1/2 inches'; else if (v == '3') s = ', Louver Size= 4-1/2 inches';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'radio';
sb_option['label'] = 'cafe_style';
sb_option['name'] = 'Cafe Style';
sb_option['script_string'] = "if (v == 'yes') s = ', Cafe Style Shutter';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'radio';
sb_option['label'] = 'divider_rail';
sb_option['name'] = 'Divider Rail';
sb_option['script_check'] = "if ((f.elements.form_divider_rail[0].checked == '') && (product_length >= 72)) s = 'Panels over 72\" long must include a divider rails.';";
sb_option['script_string'] = "if (v == 'yes') s = ', Panel(s) To Have Divider Rail(s) Located Default Center';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'hinge_color';
sb_option['name'] = 'Hinge Color';
sb_option['script_check'] = "if (v == '') s = 'Please select your hinge color';";
sb_option['script_string'] = "if (v == '1') s = ', Hinge Color: Silk White'; else if (v == '2') s = ', Hinge Color: Bisque'; else if (v == '3') s = ', Hinge Color: Pearl'; else if (v == '4') s = ', Hinge Color: Antique Brass'; else if (v == '5') s = ', Hinge Color: Bright Brass'; else if (v == '6') s = ', Hinge Color: Black'; else if (v == '7') s = ', Hinge Color: Stainless Steel';";
sb_option['script_price'] = "if (v == '7') p = Math.floor(price * 0.05 + 0.5); else p = 0;";
sb_options.push(sb_option);
