jQuery(document).ready(function(){ }); // end of document ready jQuery(document).ready(function(){ jQuery("#input-619WT-GTS3").change(function(){ if(jQuery("#input-619WT-GTS3").prop("checked")) { //alert("na_with here"); //alert("[id^=input-685]"); //alert(jQuery("[id^=input-685]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-685]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-685]").prop("checked")) { jQuery("[id^=input-685]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-685-619WT-GTS3]").length === 0) { jQuery("[id^=note-685]").append("
(N/A with 619WT-GTS3 - Mooring Cover)
"); } jQuery("[id^=input-685]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-685]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-685-619WT-GTS3]").remove(); jQuery("[id^=input-685]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-685]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-619WT-GTS3"); //alert(jQuery("[id^=input-619WT-GTS3]").attr("title")); //alert(jQuery("[id^=input-619WT-GTS3]").is(":checked")); // disable the includes and unchecks it jQuery("#input-619WT-GTS3").prop("disabled", true); // determine if checked if(jQuery("#input-619WT-GTS3").prop("checked")) { jQuery("#input-619WT-GTS3").removeAttr("checked").change(); } //console.log("if of reverse input-619WT-GTS3"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-619WT-GTS3-685]").length === 0) { jQuery("#note-619WT-GTS3").append("
(N/A with 685 )
"); } jQuery("[id^=input-619WT-GTS3]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-619WT-GTS3").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-619WT-GTS3-685]").remove(); jQuery("[id^=input-619WT-GTS3]").parent().parent().removeClass("byb_option_red"); } }); // end click listener jQuery("#input-560-GTS3").change(function(){ if(jQuery("#input-560-GTS3").prop("checked")) { //alert("na_with here"); //alert("[id^=input-636]"); //alert(jQuery("[id^=input-636]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-636]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-636]").prop("checked")) { jQuery("[id^=input-636]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-636-560-GTS3]").length === 0) { jQuery("[id^=note-636]").append("
(N/A with 560-GTS3 - Bowrider Filler Cushion)
"); } jQuery("[id^=input-636]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-636]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-636-560-GTS3]").remove(); jQuery("[id^=input-636]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-636]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-560-GTS3"); //alert(jQuery("[id^=input-560-GTS3]").attr("title")); //alert(jQuery("[id^=input-560-GTS3]").is(":checked")); // disable the includes and unchecks it jQuery("#input-560-GTS3").prop("disabled", true); // determine if checked if(jQuery("#input-560-GTS3").prop("checked")) { jQuery("#input-560-GTS3").removeAttr("checked").change(); } //console.log("if of reverse input-560-GTS3"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-560-GTS3-636]").length === 0) { jQuery("#note-560-GTS3").append("
(N/A with 636 )
"); } jQuery("[id^=input-560-GTS3]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-560-GTS3").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-560-GTS3-636]").remove(); jQuery("[id^=input-560-GTS3]").parent().parent().removeClass("byb_option_red"); } }); // end click listener jQuery("#input-560-GTS3").change(function(){ if(jQuery("#input-560-GTS3").prop("checked")) { //alert("na_with here"); //alert("[id^=input-637]"); //alert(jQuery("[id^=input-637]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-637]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-637]").prop("checked")) { jQuery("[id^=input-637]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-637-560-GTS3]").length === 0) { jQuery("[id^=note-637]").append("
(N/A with 560-GTS3 - Bowrider Filler Cushion)
"); } jQuery("[id^=input-637]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-637]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-637-560-GTS3]").remove(); jQuery("[id^=input-637]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-637]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-560-GTS3"); //alert(jQuery("[id^=input-560-GTS3]").attr("title")); //alert(jQuery("[id^=input-560-GTS3]").is(":checked")); // disable the includes and unchecks it jQuery("#input-560-GTS3").prop("disabled", true); // determine if checked if(jQuery("#input-560-GTS3").prop("checked")) { jQuery("#input-560-GTS3").removeAttr("checked").change(); } //console.log("if of reverse input-560-GTS3"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-560-GTS3-637]").length === 0) { jQuery("#note-560-GTS3").append("
(N/A with 637 )
"); } jQuery("[id^=input-560-GTS3]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-560-GTS3").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-560-GTS3-637]").remove(); jQuery("[id^=input-560-GTS3]").parent().parent().removeClass("byb_option_red"); } }); // end click listener jQuery("#input-594S-GTS3").change(function(){ if(jQuery("#input-594S-GTS3").prop("checked")) { //alert("na_with here"); //alert("[id^=input-685]"); //alert(jQuery("[id^=input-685]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-685]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-685]").prop("checked")) { jQuery("[id^=input-685]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-685-594S-GTS3]").length === 0) { jQuery("[id^=note-685]").append("
(N/A with 594S-GTS3 - Swim Platform Logo Mat - Slate)
"); } jQuery("[id^=input-685]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-685]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-685-594S-GTS3]").remove(); jQuery("[id^=input-685]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-685]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-594S-GTS3"); //alert(jQuery("[id^=input-594S-GTS3]").attr("title")); //alert(jQuery("[id^=input-594S-GTS3]").is(":checked")); // disable the includes and unchecks it jQuery("#input-594S-GTS3").prop("disabled", true); // determine if checked if(jQuery("#input-594S-GTS3").prop("checked")) { jQuery("#input-594S-GTS3").removeAttr("checked").change(); } //console.log("if of reverse input-594S-GTS3"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-594S-GTS3-685]").length === 0) { jQuery("#note-594S-GTS3").append("
(N/A with 685 )
"); } jQuery("[id^=input-594S-GTS3]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-594S-GTS3").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-594S-GTS3-685]").remove(); jQuery("[id^=input-594S-GTS3]").parent().parent().removeClass("byb_option_red"); } }); // end click listener jQuery("#input-594C-GTS3").change(function(){ if(jQuery("#input-594C-GTS3").prop("checked")) { //alert("na_with here"); //alert("[id^=input-685]"); //alert(jQuery("[id^=input-685]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-685]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-685]").prop("checked")) { jQuery("[id^=input-685]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-685-594C-GTS3]").length === 0) { jQuery("[id^=note-685]").append("
(N/A with 594C-GTS3 - Swim Platform Logo Mat - Cayenne)
"); } jQuery("[id^=input-685]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-685]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-685-594C-GTS3]").remove(); jQuery("[id^=input-685]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-685]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-594C-GTS3"); //alert(jQuery("[id^=input-594C-GTS3]").attr("title")); //alert(jQuery("[id^=input-594C-GTS3]").is(":checked")); // disable the includes and unchecks it jQuery("#input-594C-GTS3").prop("disabled", true); // determine if checked if(jQuery("#input-594C-GTS3").prop("checked")) { jQuery("#input-594C-GTS3").removeAttr("checked").change(); } //console.log("if of reverse input-594C-GTS3"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-594C-GTS3-685]").length === 0) { jQuery("#note-594C-GTS3").append("
(N/A with 685 )
"); } jQuery("[id^=input-594C-GTS3]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-594C-GTS3").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-594C-GTS3-685]").remove(); jQuery("[id^=input-594C-GTS3]").parent().parent().removeClass("byb_option_red"); } }); // end click listener jQuery("#input-704G-GTS3").change(function(){ if(jQuery("#input-704G-GTS3").prop("checked")) { //alert("na_with here"); //alert("[id^=input-594C]"); //alert(jQuery("[id^=input-594C]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-594C]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-594C]").prop("checked")) { jQuery("[id^=input-594C]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-594C-704G-GTS3]").length === 0) { jQuery("[id^=note-594C]").append("
(N/A with 704G-GTS3 - Snap-In Seadek Cockpit Flooring - Slate)
"); } jQuery("[id^=input-594C]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-594C]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-594C-704G-GTS3]").remove(); jQuery("[id^=input-594C]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-594C]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-704G-GTS3"); //alert(jQuery("[id^=input-704G-GTS3]").attr("title")); //alert(jQuery("[id^=input-704G-GTS3]").is(":checked")); // disable the includes and unchecks it jQuery("#input-704G-GTS3").prop("disabled", true); // determine if checked if(jQuery("#input-704G-GTS3").prop("checked")) { jQuery("#input-704G-GTS3").removeAttr("checked").change(); } //console.log("if of reverse input-704G-GTS3"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-704G-GTS3-594C]").length === 0) { jQuery("#note-704G-GTS3").append("
(N/A with 594C )
"); } jQuery("[id^=input-704G-GTS3]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-704G-GTS3").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-704G-GTS3-594C]").remove(); jQuery("[id^=input-704G-GTS3]").parent().parent().removeClass("byb_option_red"); } }); // end click listener jQuery("#input-704G-GTS3").change(function(){ if(jQuery("#input-704G-GTS3").prop("checked")) { //alert("na_with here"); //alert("[id^=input-594CEP]"); //alert(jQuery("[id^=input-594CEP]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-594CEP]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-594CEP]").prop("checked")) { jQuery("[id^=input-594CEP]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-594CEP-704G-GTS3]").length === 0) { jQuery("[id^=note-594CEP]").append("
(N/A with 704G-GTS3 - Snap-In Seadek Cockpit Flooring - Slate)
"); } jQuery("[id^=input-594CEP]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-594CEP]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-594CEP-704G-GTS3]").remove(); jQuery("[id^=input-594CEP]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-594CEP]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-704G-GTS3"); //alert(jQuery("[id^=input-704G-GTS3]").attr("title")); //alert(jQuery("[id^=input-704G-GTS3]").is(":checked")); // disable the includes and unchecks it jQuery("#input-704G-GTS3").prop("disabled", true); // determine if checked if(jQuery("#input-704G-GTS3").prop("checked")) { jQuery("#input-704G-GTS3").removeAttr("checked").change(); } //console.log("if of reverse input-704G-GTS3"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-704G-GTS3-594CEP]").length === 0) { jQuery("#note-704G-GTS3").append("
(N/A with 594CEP )
"); } jQuery("[id^=input-704G-GTS3]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-704G-GTS3").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-704G-GTS3-594CEP]").remove(); jQuery("[id^=input-704G-GTS3]").parent().parent().removeClass("byb_option_red"); } }); // end click listener jQuery("#input-704C-GTS3").change(function(){ if(jQuery("#input-704C-GTS3").prop("checked")) { //alert("na_with here"); //alert("[id^=input-594S]"); //alert(jQuery("[id^=input-594S]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-594S]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-594S]").prop("checked")) { jQuery("[id^=input-594S]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-594S-704C-GTS3]").length === 0) { jQuery("[id^=note-594S]").append("
(N/A with 704C-GTS3 - Snap-In Seadek Cockpit Flooring - Cayenne)
"); } jQuery("[id^=input-594S]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-594S]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-594S-704C-GTS3]").remove(); jQuery("[id^=input-594S]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-594S]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-704C-GTS3"); //alert(jQuery("[id^=input-704C-GTS3]").attr("title")); //alert(jQuery("[id^=input-704C-GTS3]").is(":checked")); // disable the includes and unchecks it jQuery("#input-704C-GTS3").prop("disabled", true); // determine if checked if(jQuery("#input-704C-GTS3").prop("checked")) { jQuery("#input-704C-GTS3").removeAttr("checked").change(); } //console.log("if of reverse input-704C-GTS3"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-704C-GTS3-594S]").length === 0) { jQuery("#note-704C-GTS3").append("
(N/A with 594S )
"); } jQuery("[id^=input-704C-GTS3]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-704C-GTS3").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-704C-GTS3-594S]").remove(); jQuery("[id^=input-704C-GTS3]").parent().parent().removeClass("byb_option_red"); } }); // end click listener jQuery("#input-704C-GTS3").change(function(){ if(jQuery("#input-704C-GTS3").prop("checked")) { //alert("na_with here"); //alert("[id^=input-594SEP]"); //alert(jQuery("[id^=input-594SEP]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-594SEP]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-594SEP]").prop("checked")) { jQuery("[id^=input-594SEP]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-594SEP-704C-GTS3]").length === 0) { jQuery("[id^=note-594SEP]").append("
(N/A with 704C-GTS3 - Snap-In Seadek Cockpit Flooring - Cayenne)
"); } jQuery("[id^=input-594SEP]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-594SEP]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-594SEP-704C-GTS3]").remove(); jQuery("[id^=input-594SEP]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-594SEP]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-704C-GTS3"); //alert(jQuery("[id^=input-704C-GTS3]").attr("title")); //alert(jQuery("[id^=input-704C-GTS3]").is(":checked")); // disable the includes and unchecks it jQuery("#input-704C-GTS3").prop("disabled", true); // determine if checked if(jQuery("#input-704C-GTS3").prop("checked")) { jQuery("#input-704C-GTS3").removeAttr("checked").change(); } //console.log("if of reverse input-704C-GTS3"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-704C-GTS3-594SEP]").length === 0) { jQuery("#note-704C-GTS3").append("
(N/A with 594SEP )
"); } jQuery("[id^=input-704C-GTS3]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-704C-GTS3").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-704C-GTS3-594SEP]").remove(); jQuery("[id^=input-704C-GTS3]").parent().parent().removeClass("byb_option_red"); } }); // end click listener jQuery("#input-796-GTS3").change(function(){ if(jQuery("#input-796-GTS3").prop("checked")) { //alert("na_with here"); //alert("[id^=input-693]"); //alert(jQuery("[id^=input-693]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-693]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-693]").prop("checked")) { jQuery("[id^=input-693]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-693-796-GTS3]").length === 0) { jQuery("[id^=note-693]").append("
(N/A with 796-GTS3 - Diamondback Board Racks - Swiveling)
"); } jQuery("[id^=input-693]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-693]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-693-796-GTS3]").remove(); jQuery("[id^=input-693]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-693]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-796-GTS3"); //alert(jQuery("[id^=input-796-GTS3]").attr("title")); //alert(jQuery("[id^=input-796-GTS3]").is(":checked")); // disable the includes and unchecks it jQuery("#input-796-GTS3").prop("disabled", true); // determine if checked if(jQuery("#input-796-GTS3").prop("checked")) { jQuery("#input-796-GTS3").removeAttr("checked").change(); } //console.log("if of reverse input-796-GTS3"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-796-GTS3-693]").length === 0) { jQuery("#note-796-GTS3").append("
(N/A with 693 )
"); } jQuery("[id^=input-796-GTS3]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-796-GTS3").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-796-GTS3-693]").remove(); jQuery("[id^=input-796-GTS3]").parent().parent().removeClass("byb_option_red"); } }); // end click listener jQuery("#input-687-GTS3BLK").change(function(){ if(jQuery("#input-687-GTS3BLK").prop("checked")) { //alert("na_with here"); //alert("[id^=input-688A]"); //alert(jQuery("[id^=input-688A]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-688A]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-688A]").prop("checked")) { jQuery("[id^=input-688A]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-688A-687-GTS3BLK]").length === 0) { jQuery("[id^=note-688A]").append("
(N/A with 687-GTS3BLK - Spare Tire Kit - Aluminum Wheel)
"); } jQuery("[id^=input-688A]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-688A]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-688A-687-GTS3BLK]").remove(); jQuery("[id^=input-688A]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-688A]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-687-GTS3BLK"); //alert(jQuery("[id^=input-687-GTS3BLK]").attr("title")); //alert(jQuery("[id^=input-687-GTS3BLK]").is(":checked")); // disable the includes and unchecks it jQuery("#input-687-GTS3BLK").prop("disabled", true); // determine if checked if(jQuery("#input-687-GTS3BLK").prop("checked")) { jQuery("#input-687-GTS3BLK").removeAttr("checked").change(); } //console.log("if of reverse input-687-GTS3BLK"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-687-GTS3BLK-688A]").length === 0) { jQuery("#note-687-GTS3BLK").append("
(N/A with 688A )
"); } jQuery("[id^=input-687-GTS3BLK]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-687-GTS3BLK").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-687-GTS3BLK-688A]").remove(); jQuery("[id^=input-687-GTS3BLK]").parent().parent().removeClass("byb_option_red"); } }); // end click listener jQuery("#input-687-GTS3BLK").change(function(){ if(jQuery("#input-687-GTS3BLK").prop("checked")) { //alert("na_with here"); //alert("[id^=input-688D]"); //alert(jQuery("[id^=input-688D]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-688D]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-688D]").prop("checked")) { jQuery("[id^=input-688D]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-688D-687-GTS3BLK]").length === 0) { jQuery("[id^=note-688D]").append("
(N/A with 687-GTS3BLK - Spare Tire Kit - Aluminum Wheel)
"); } jQuery("[id^=input-688D]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-688D]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-688D-687-GTS3BLK]").remove(); jQuery("[id^=input-688D]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-688D]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-687-GTS3BLK"); //alert(jQuery("[id^=input-687-GTS3BLK]").attr("title")); //alert(jQuery("[id^=input-687-GTS3BLK]").is(":checked")); // disable the includes and unchecks it jQuery("#input-687-GTS3BLK").prop("disabled", true); // determine if checked if(jQuery("#input-687-GTS3BLK").prop("checked")) { jQuery("#input-687-GTS3BLK").removeAttr("checked").change(); } //console.log("if of reverse input-687-GTS3BLK"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-687-GTS3BLK-688D]").length === 0) { jQuery("#note-687-GTS3BLK").append("
(N/A with 688D )
"); } jQuery("[id^=input-687-GTS3BLK]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-687-GTS3BLK").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-687-GTS3BLK-688D]").remove(); jQuery("[id^=input-687-GTS3BLK]").parent().parent().removeClass("byb_option_red"); } }); // end click listener }); // end of document ready jQuery(document).ready(function(){ jQuery("#input-971-GTS3").change(function(){ if(jQuery("#input-971-GTS3").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-971-GTS3]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require // lets make sure this option isnt already required. // this is a hack against two options requiring each other resulting in an infinite loop if(jQuery("[id^=note-single-required-by-SOLID_HULL-971-GTS3]").length === 0) { // check the required item // if this is not in an overwrite group //if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio") if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group")) { jQuery("[id^=input-SOLID_HULL]").prop("disabled", true); } if(!jQuery("[id^=input-SOLID_HULL]").prop("checked")) { jQuery("[id^=input-SOLID_HULL]").prop("checked", true).change(); } // run a price tally - wasnt calculating proper cost 2/6/13 - rusty checked_boxes_price_tally(); // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().addClass("byb_option_yellow"); // add a note stating why this option is checked jQuery("[id^=note-SOLID_HULL]").append("
(Required By: 971-GTS3-White Hull)
"); } } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-971-GTS3]").hide(); jQuery("[id^=note-single-required-by-971-GTS3]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-971-GTS3]").remove(); } }); // end click listener jQuery("#input-972-GTS3").change(function(){ if(jQuery("#input-972-GTS3").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-972-GTS3]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require // lets make sure this option isnt already required. // this is a hack against two options requiring each other resulting in an infinite loop if(jQuery("[id^=note-single-required-by-SOLID_HULL-972-GTS3]").length === 0) { // check the required item // if this is not in an overwrite group //if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio") if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group")) { jQuery("[id^=input-SOLID_HULL]").prop("disabled", true); } if(!jQuery("[id^=input-SOLID_HULL]").prop("checked")) { jQuery("[id^=input-SOLID_HULL]").prop("checked", true).change(); } // run a price tally - wasnt calculating proper cost 2/6/13 - rusty checked_boxes_price_tally(); // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().addClass("byb_option_yellow"); // add a note stating why this option is checked jQuery("[id^=note-SOLID_HULL]").append("
(Required By: 972-GTS3-White Hull)
"); } } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-972-GTS3]").hide(); jQuery("[id^=note-single-required-by-972-GTS3]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-972-GTS3]").remove(); } }); // end click listener jQuery("#input-974-GTS3").change(function(){ if(jQuery("#input-974-GTS3").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-974-GTS3]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require // lets make sure this option isnt already required. // this is a hack against two options requiring each other resulting in an infinite loop if(jQuery("[id^=note-single-required-by-SOLID_HULL-974-GTS3]").length === 0) { // check the required item // if this is not in an overwrite group //if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio") if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group")) { jQuery("[id^=input-SOLID_HULL]").prop("disabled", true); } if(!jQuery("[id^=input-SOLID_HULL]").prop("checked")) { jQuery("[id^=input-SOLID_HULL]").prop("checked", true).change(); } // run a price tally - wasnt calculating proper cost 2/6/13 - rusty checked_boxes_price_tally(); // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().addClass("byb_option_yellow"); // add a note stating why this option is checked jQuery("[id^=note-SOLID_HULL]").append("
(Required By: 974-GTS3-White Hull)
"); } } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-974-GTS3]").hide(); jQuery("[id^=note-single-required-by-974-GTS3]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-974-GTS3]").remove(); } }); // end click listener jQuery("#input-977-GTS3").change(function(){ if(jQuery("#input-977-GTS3").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-977-GTS3]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require // lets make sure this option isnt already required. // this is a hack against two options requiring each other resulting in an infinite loop if(jQuery("[id^=note-single-required-by-SOLID_HULL-977-GTS3]").length === 0) { // check the required item // if this is not in an overwrite group //if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio") if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group")) { jQuery("[id^=input-SOLID_HULL]").prop("disabled", true); } if(!jQuery("[id^=input-SOLID_HULL]").prop("checked")) { jQuery("[id^=input-SOLID_HULL]").prop("checked", true).change(); } // run a price tally - wasnt calculating proper cost 2/6/13 - rusty checked_boxes_price_tally(); // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().addClass("byb_option_yellow"); // add a note stating why this option is checked jQuery("[id^=note-SOLID_HULL]").append("
(Required By: 977-GTS3-White Hull)
"); } } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-977-GTS3]").hide(); jQuery("[id^=note-single-required-by-977-GTS3]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-977-GTS3]").remove(); } }); // end click listener jQuery("#input-956-GTS3").change(function(){ if(jQuery("#input-956-GTS3").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-956-GTS3]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require // lets make sure this option isnt already required. // this is a hack against two options requiring each other resulting in an infinite loop if(jQuery("[id^=note-single-required-by-904-956-GTS3]").length === 0) { // check the required item // if this is not in an overwrite group //if(jQuery("[id^=input-904]").prop("type") != "radio") if(jQuery("[id^=input-904]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group")) { jQuery("[id^=input-904]").prop("disabled", true); } if(!jQuery("[id^=input-904]").prop("checked")) { jQuery("[id^=input-904]").prop("checked", true).change(); } // run a price tally - wasnt calculating proper cost 2/6/13 - rusty checked_boxes_price_tally(); // set the parent div of the required option the yellow class jQuery("[id^=input-904]").parent().parent().addClass("byb_option_yellow"); // add a note stating why this option is checked jQuery("[id^=note-904]").append("
(Required By: 956-GTS3-Hull Side Gelcoat - White)
"); } } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-956-GTS3]").hide(); jQuery("[id^=note-single-required-by-956-GTS3]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-904]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-904]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-904-956-GTS3]").remove(); } }); // end click listener jQuery("#input-950-GTS3").change(function(){ if(jQuery("#input-950-GTS3").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-950-GTS3]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require // lets make sure this option isnt already required. // this is a hack against two options requiring each other resulting in an infinite loop if(jQuery("[id^=note-single-required-by-902-950-GTS3]").length === 0) { // check the required item // if this is not in an overwrite group //if(jQuery("[id^=input-902]").prop("type") != "radio") if(jQuery("[id^=input-902]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group")) { jQuery("[id^=input-902]").prop("disabled", true); } if(!jQuery("[id^=input-902]").prop("checked")) { jQuery("[id^=input-902]").prop("checked", true).change(); } // run a price tally - wasnt calculating proper cost 2/6/13 - rusty checked_boxes_price_tally(); // set the parent div of the required option the yellow class jQuery("[id^=input-902]").parent().parent().addClass("byb_option_yellow"); // add a note stating why this option is checked jQuery("[id^=note-902]").append("
(Required By: 950-GTS3-Hull Side Gelcoat - Black)
"); } } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-950-GTS3]").hide(); jQuery("[id^=note-single-required-by-950-GTS3]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-902]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-902]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-902-950-GTS3]").remove(); } }); // end click listener jQuery("#input-951-GTS3").change(function(){ if(jQuery("#input-951-GTS3").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-951-GTS3]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-951-GTS3]").hide(); jQuery("[id^=note-single-required-by-951-GTS3]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-902]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-902]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-902-950-GTS3]").remove(); } }); // end click listener jQuery("#input-952-GTS3").change(function(){ if(jQuery("#input-952-GTS3").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-952-GTS3]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-952-GTS3]").hide(); jQuery("[id^=note-single-required-by-952-GTS3]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-902]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-902]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-902-950-GTS3]").remove(); } }); // end click listener jQuery("#input-934-GTS3").change(function(){ if(jQuery("#input-934-GTS3").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-934-GTS3]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-934-GTS3]").hide(); jQuery("[id^=note-single-required-by-934-GTS3]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-902]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-902]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-902-950-GTS3]").remove(); } }); // end click listener jQuery("#input-980-GTS3").change(function(){ if(jQuery("#input-980-GTS3").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-980-GTS3]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-980-GTS3]").hide(); jQuery("[id^=note-single-required-by-980-GTS3]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-902]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-902]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-902-950-GTS3]").remove(); } }); // end click listener jQuery("#input-935-GTS3").change(function(){ if(jQuery("#input-935-GTS3").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-935-GTS3]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-935-GTS3]").hide(); jQuery("[id^=note-single-required-by-935-GTS3]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-902]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-902]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-902-950-GTS3]").remove(); } }); // end click listener jQuery("#input-925-GTS3").change(function(){ if(jQuery("#input-925-GTS3").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-925-GTS3]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require // lets make sure this option isnt already required. // this is a hack against two options requiring each other resulting in an infinite loop if(jQuery("[id^=note-single-required-by-SOLID_HULL-925-GTS3]").length === 0) { // check the required item // if this is not in an overwrite group //if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio") if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group")) { jQuery("[id^=input-SOLID_HULL]").prop("disabled", true); } if(!jQuery("[id^=input-SOLID_HULL]").prop("checked")) { jQuery("[id^=input-SOLID_HULL]").prop("checked", true).change(); } // run a price tally - wasnt calculating proper cost 2/6/13 - rusty checked_boxes_price_tally(); // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().addClass("byb_option_yellow"); // add a note stating why this option is checked jQuery("[id^=note-SOLID_HULL]").append("
(Required By: 925-GTS3-Gel Coated Entire Hull - Black)
"); } } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-925-GTS3]").hide(); jQuery("[id^=note-single-required-by-925-GTS3]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-925-GTS3]").remove(); } }); // end click listener jQuery("#input-926-GTS3").change(function(){ if(jQuery("#input-926-GTS3").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-926-GTS3]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require // lets make sure this option isnt already required. // this is a hack against two options requiring each other resulting in an infinite loop if(jQuery("[id^=note-single-required-by-SOLID_HULL-926-GTS3]").length === 0) { // check the required item // if this is not in an overwrite group //if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio") if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group")) { jQuery("[id^=input-SOLID_HULL]").prop("disabled", true); } if(!jQuery("[id^=input-SOLID_HULL]").prop("checked")) { jQuery("[id^=input-SOLID_HULL]").prop("checked", true).change(); } // run a price tally - wasnt calculating proper cost 2/6/13 - rusty checked_boxes_price_tally(); // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().addClass("byb_option_yellow"); // add a note stating why this option is checked jQuery("[id^=note-SOLID_HULL]").append("
(Required By: 926-GTS3-Gel Coated Entire Hull - Biscayne Blue)
"); } } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-926-GTS3]").hide(); jQuery("[id^=note-single-required-by-926-GTS3]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-926-GTS3]").remove(); } }); // end click listener jQuery("#input-927-GTS3").change(function(){ if(jQuery("#input-927-GTS3").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-927-GTS3]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require // lets make sure this option isnt already required. // this is a hack against two options requiring each other resulting in an infinite loop if(jQuery("[id^=note-single-required-by-SOLID_HULL-927-GTS3]").length === 0) { // check the required item // if this is not in an overwrite group //if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio") if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group")) { jQuery("[id^=input-SOLID_HULL]").prop("disabled", true); } if(!jQuery("[id^=input-SOLID_HULL]").prop("checked")) { jQuery("[id^=input-SOLID_HULL]").prop("checked", true).change(); } // run a price tally - wasnt calculating proper cost 2/6/13 - rusty checked_boxes_price_tally(); // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().addClass("byb_option_yellow"); // add a note stating why this option is checked jQuery("[id^=note-SOLID_HULL]").append("
(Required By: 927-GTS3-Gel Coated Entire Hull - Alloy Gray)
"); } } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-927-GTS3]").hide(); jQuery("[id^=note-single-required-by-927-GTS3]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-927-GTS3]").remove(); } }); // end click listener jQuery("#input-936-GTS3").change(function(){ if(jQuery("#input-936-GTS3").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-936-GTS3]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require // lets make sure this option isnt already required. // this is a hack against two options requiring each other resulting in an infinite loop if(jQuery("[id^=note-single-required-by-SOLID_HULL-936-GTS3]").length === 0) { // check the required item // if this is not in an overwrite group //if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio") if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group")) { jQuery("[id^=input-SOLID_HULL]").prop("disabled", true); } if(!jQuery("[id^=input-SOLID_HULL]").prop("checked")) { jQuery("[id^=input-SOLID_HULL]").prop("checked", true).change(); } // run a price tally - wasnt calculating proper cost 2/6/13 - rusty checked_boxes_price_tally(); // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().addClass("byb_option_yellow"); // add a note stating why this option is checked jQuery("[id^=note-SOLID_HULL]").append("
(Required By: 936-GTS3-Gel Coated Entire Hull - Ice Blue)
"); } } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-936-GTS3]").hide(); jQuery("[id^=note-single-required-by-936-GTS3]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-936-GTS3]").remove(); } }); // end click listener jQuery("#input-933-GTS3").change(function(){ if(jQuery("#input-933-GTS3").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-933-GTS3]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require // lets make sure this option isnt already required. // this is a hack against two options requiring each other resulting in an infinite loop if(jQuery("[id^=note-single-required-by-SOLID_HULL-933-GTS3]").length === 0) { // check the required item // if this is not in an overwrite group //if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio") if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group")) { jQuery("[id^=input-SOLID_HULL]").prop("disabled", true); } if(!jQuery("[id^=input-SOLID_HULL]").prop("checked")) { jQuery("[id^=input-SOLID_HULL]").prop("checked", true).change(); } // run a price tally - wasnt calculating proper cost 2/6/13 - rusty checked_boxes_price_tally(); // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().addClass("byb_option_yellow"); // add a note stating why this option is checked jQuery("[id^=note-SOLID_HULL]").append("
(Required By: 933-GTS3-Gel Coated Entire Hull - Atlas Blue)
"); } } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-933-GTS3]").hide(); jQuery("[id^=note-single-required-by-933-GTS3]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-933-GTS3]").remove(); } }); // end click listener jQuery("#input-937-GTS3").change(function(){ if(jQuery("#input-937-GTS3").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-937-GTS3]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require // lets make sure this option isnt already required. // this is a hack against two options requiring each other resulting in an infinite loop if(jQuery("[id^=note-single-required-by-SOLID_HULL-937-GTS3]").length === 0) { // check the required item // if this is not in an overwrite group //if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio") if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group")) { jQuery("[id^=input-SOLID_HULL]").prop("disabled", true); } if(!jQuery("[id^=input-SOLID_HULL]").prop("checked")) { jQuery("[id^=input-SOLID_HULL]").prop("checked", true).change(); } // run a price tally - wasnt calculating proper cost 2/6/13 - rusty checked_boxes_price_tally(); // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().addClass("byb_option_yellow"); // add a note stating why this option is checked jQuery("[id^=note-SOLID_HULL]").append("
(Required By: 937-GTS3-Gel Coated Entire Hull - Seafoam Green)
"); } } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-937-GTS3]").hide(); jQuery("[id^=note-single-required-by-937-GTS3]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-937-GTS3]").remove(); } }); // end click listener jQuery("#input-658-GTS3").change(function(){ if(jQuery("#input-658-GTS3").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-658-GTS3]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-658-GTS3]").hide(); jQuery("[id^=note-single-required-by-658-GTS3]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-937-GTS3]").remove(); } }); // end click listener jQuery("#input-636-GTS3").change(function(){ if(jQuery("#input-636-GTS3").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-636-GTS3]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-636-GTS3]").hide(); jQuery("[id^=note-single-required-by-636-GTS3]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-937-GTS3]").remove(); } }); // end click listener jQuery("#input-637-GTS3").change(function(){ if(jQuery("#input-637-GTS3").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-637-GTS3]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-637-GTS3]").hide(); jQuery("[id^=note-single-required-by-637-GTS3]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-937-GTS3]").remove(); } }); // end click listener jQuery("#input-638-GTS3").change(function(){ if(jQuery("#input-638-GTS3").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-638-GTS3]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-638-GTS3]").hide(); jQuery("[id^=note-single-required-by-638-GTS3]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-937-GTS3]").remove(); } }); // end click listener jQuery("#input-619WTEP-GTS3").change(function(){ if(jQuery("#input-619WTEP-GTS3").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-619WTEP-GTS3]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require // lets make sure this option isnt already required. // this is a hack against two options requiring each other resulting in an infinite loop if(jQuery("[id^=note-single-required-by-685-619WTEP-GTS3]").length === 0) { // check the required item // if this is not in an overwrite group //if(jQuery("[id^=input-685]").prop("type") != "radio") if(jQuery("[id^=input-685]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group")) { jQuery("[id^=input-685]").prop("disabled", true); } if(!jQuery("[id^=input-685]").prop("checked")) { jQuery("[id^=input-685]").prop("checked", true).change(); } // run a price tally - wasnt calculating proper cost 2/6/13 - rusty checked_boxes_price_tally(); // set the parent div of the required option the yellow class jQuery("[id^=input-685]").parent().parent().addClass("byb_option_yellow"); // add a note stating why this option is checked jQuery("[id^=note-685]").append("
(Required By: 619WTEP-GTS3-Mooring Cover)
"); } } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-619WTEP-GTS3]").hide(); jQuery("[id^=note-single-required-by-619WTEP-GTS3]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-685]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-685]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-685-619WTEP-GTS3]").remove(); } }); // end click listener jQuery("#input-594CEP-GTS3").change(function(){ if(jQuery("#input-594CEP-GTS3").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-594CEP-GTS3]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require // lets make sure this option isnt already required. // this is a hack against two options requiring each other resulting in an infinite loop if(jQuery("[id^=note-single-required-by-685-594CEP-GTS3]").length === 0) { // check the required item // if this is not in an overwrite group //if(jQuery("[id^=input-685]").prop("type") != "radio") if(jQuery("[id^=input-685]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group")) { jQuery("[id^=input-685]").prop("disabled", true); } if(!jQuery("[id^=input-685]").prop("checked")) { jQuery("[id^=input-685]").prop("checked", true).change(); } // run a price tally - wasnt calculating proper cost 2/6/13 - rusty checked_boxes_price_tally(); // set the parent div of the required option the yellow class jQuery("[id^=input-685]").parent().parent().addClass("byb_option_yellow"); // add a note stating why this option is checked jQuery("[id^=note-685]").append("
(Required By: 594CEP-GTS3-Swim Platform Logo Mat - Cayenne)
"); } } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-594CEP-GTS3]").hide(); jQuery("[id^=note-single-required-by-594CEP-GTS3]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-685]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-685]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-685-594CEP-GTS3]").remove(); } }); // end click listener jQuery("#input-594SEP-GTS3").change(function(){ if(jQuery("#input-594SEP-GTS3").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-594SEP-GTS3]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require // lets make sure this option isnt already required. // this is a hack against two options requiring each other resulting in an infinite loop if(jQuery("[id^=note-single-required-by-685-594SEP-GTS3]").length === 0) { // check the required item // if this is not in an overwrite group //if(jQuery("[id^=input-685]").prop("type") != "radio") if(jQuery("[id^=input-685]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group")) { jQuery("[id^=input-685]").prop("disabled", true); } if(!jQuery("[id^=input-685]").prop("checked")) { jQuery("[id^=input-685]").prop("checked", true).change(); } // run a price tally - wasnt calculating proper cost 2/6/13 - rusty checked_boxes_price_tally(); // set the parent div of the required option the yellow class jQuery("[id^=input-685]").parent().parent().addClass("byb_option_yellow"); // add a note stating why this option is checked jQuery("[id^=note-685]").append("
(Required By: 594SEP-GTS3-Swim Platform Logo Mat - Slate)
"); } } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-594SEP-GTS3]").hide(); jQuery("[id^=note-single-required-by-594SEP-GTS3]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-685]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-685]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-685-594SEP-GTS3]").remove(); } }); // end click listener }); // end of document ready jQuery(document).ready(function(){ option_group_data["971-GTS3"] = {}; option_group_data["971-GTS3"]["part_groups"] = new Array(); option_group_data["971-GTS3"]["part_groups"].push("11"); option_group_data["972-GTS3"] = {}; option_group_data["972-GTS3"]["part_groups"] = new Array(); option_group_data["972-GTS3"]["part_groups"].push("11"); option_group_data["974-GTS3"] = {}; option_group_data["974-GTS3"]["part_groups"] = new Array(); option_group_data["974-GTS3"]["part_groups"].push("11"); option_group_data["977-GTS3"] = {}; option_group_data["977-GTS3"]["part_groups"] = new Array(); option_group_data["977-GTS3"]["part_groups"].push("11"); option_group_data["956-GTS3"] = {}; option_group_data["956-GTS3"]["part_groups"] = new Array(); option_group_data["956-GTS3"]["part_groups"].push("12"); option_group_data["950-GTS3"] = {}; option_group_data["950-GTS3"]["part_groups"] = new Array(); option_group_data["950-GTS3"]["part_groups"].push("13"); option_group_data["951-GTS3"] = {}; option_group_data["951-GTS3"]["part_groups"] = new Array(); option_group_data["951-GTS3"]["part_groups"].push("14"); option_group_data["952-GTS3"] = {}; option_group_data["952-GTS3"]["part_groups"] = new Array(); option_group_data["952-GTS3"]["part_groups"].push("14"); option_group_data["934-GTS3"] = {}; option_group_data["934-GTS3"]["part_groups"] = new Array(); option_group_data["934-GTS3"]["part_groups"].push("14"); option_group_data["980-GTS3"] = {}; option_group_data["980-GTS3"]["part_groups"] = new Array(); option_group_data["980-GTS3"]["part_groups"].push("14"); option_group_data["935-GTS3"] = {}; option_group_data["935-GTS3"]["part_groups"] = new Array(); option_group_data["935-GTS3"]["part_groups"].push("14"); option_group_data["925-GTS3"] = {}; option_group_data["925-GTS3"]["part_groups"] = new Array(); option_group_data["925-GTS3"]["part_groups"].push("11"); option_group_data["926-GTS3"] = {}; option_group_data["926-GTS3"]["part_groups"] = new Array(); option_group_data["926-GTS3"]["part_groups"].push("11"); option_group_data["927-GTS3"] = {}; option_group_data["927-GTS3"]["part_groups"] = new Array(); option_group_data["927-GTS3"]["part_groups"].push("11"); option_group_data["936-GTS3"] = {}; option_group_data["936-GTS3"]["part_groups"] = new Array(); option_group_data["936-GTS3"]["part_groups"].push("11"); option_group_data["933-GTS3"] = {}; option_group_data["933-GTS3"]["part_groups"] = new Array(); option_group_data["933-GTS3"]["part_groups"].push("11"); option_group_data["937-GTS3"] = {}; option_group_data["937-GTS3"]["part_groups"] = new Array(); option_group_data["937-GTS3"]["part_groups"].push("11"); option_group_data["902-GTS3"] = {}; option_group_data["902-GTS3"]["available_with"] = new Array(); option_group_data["902-GTS3"]["available_with_compound"] = new Array(); option_group_data["902-GTS3"]["available_with"].push("13"); option_group_data["902-GTS3"]["available_with"].push("14"); option_group_data["904-GTS3"] = {}; option_group_data["904-GTS3"]["available_with"] = new Array(); option_group_data["904-GTS3"]["available_with_compound"] = new Array(); option_group_data["904-GTS3"]["available_with"].push("12"); option_group_data["904-GTS3"]["available_with"].push("14"); option_group_data["SOLID_HULL"] = {}; option_group_data["SOLID_HULL"]["available_with"] = new Array(); option_group_data["SOLID_HULL"]["available_with_compound"] = new Array(); option_group_data["SOLID_HULL"]["available_with"].push("11"); option_group_data["644-GTS3"] = {}; option_group_data["644-GTS3"]["part_groups"] = new Array(); option_group_data["644-GTS3"]["part_groups"].push("10"); option_group_data["658-GTS3"] = {}; option_group_data["658-GTS3"]["part_groups"] = new Array(); option_group_data["658-GTS3"]["part_groups"].push("10"); option_group_data["636-GTS3"] = {}; option_group_data["636-GTS3"]["part_groups"] = new Array(); option_group_data["636-GTS3"]["part_groups"].push("8"); option_group_data["637-GTS3"] = {}; option_group_data["637-GTS3"]["part_groups"] = new Array(); option_group_data["637-GTS3"]["part_groups"].push("9"); option_group_data["534-GTS3"] = {}; option_group_data["534-GTS3"]["part_groups"] = new Array(); option_group_data["534-GTS3"]["part_groups"].push("10"); option_group_data["638-GTS3"] = {}; option_group_data["638-GTS3"]["part_groups"] = new Array(); option_group_data["638-GTS3"]["part_groups"].push("10"); option_group_data["643-GTS3"] = {}; option_group_data["643-GTS3"]["part_groups"] = new Array(); option_group_data["643-GTS3"]["part_groups"].push("10"); option_group_data["STANDARD_ARCH"] = {}; option_group_data["STANDARD_ARCH"]["part_groups"] = new Array(); option_group_data["STANDARD_ARCH"]["part_groups"].push("5"); option_group_data["693-GTS3"] = {}; option_group_data["693-GTS3"]["part_groups"] = new Array(); option_group_data["693-GTS3"]["part_groups"].push("5"); option_group_data["652WT-GTS3BLK"] = {}; option_group_data["652WT-GTS3BLK"]["available_with"] = new Array(); option_group_data["652WT-GTS3BLK"]["available_with_compound"] = new Array(); option_group_data["652WT-GTS3BLK"]["available_with"].push("5"); option_group_data["652WT-GTS3SBL"] = {}; option_group_data["652WT-GTS3SBL"]["available_with"] = new Array(); option_group_data["652WT-GTS3SBL"]["available_with_compound"] = new Array(); option_group_data["652WT-GTS3SBL"]["available_with"].push("5"); option_group_data["652WT-GTS3BLU"] = {}; option_group_data["652WT-GTS3BLU"]["available_with"] = new Array(); option_group_data["652WT-GTS3BLU"]["available_with_compound"] = new Array(); option_group_data["652WT-GTS3BLU"]["available_with"].push("5"); option_group_data["619WT-GTS3"] = {}; option_group_data["619WT-GTS3"]["available_with"] = new Array(); option_group_data["619WT-GTS3"]["available_with_compound"] = new Array(); option_group_data["619WT-GTS3"]["available_with"].push("5"); option_group_data["619WTEP-GTS3"] = {}; option_group_data["619WTEP-GTS3"]["available_with"] = new Array(); option_group_data["619WTEP-GTS3"]["available_with_compound"] = new Array(); option_group_data["619WTEP-GTS3"]["available_with"].push("5"); option_group_data["560-GTS3"] = {}; option_group_data["560-GTS3"]["available_with"] = new Array(); option_group_data["560-GTS3"]["available_with_compound"] = new Array(); option_group_data["560-GTS3"]["available_with"].push("10"); option_group_data["560-GTS3LNR"] = {}; option_group_data["560-GTS3LNR"]["available_with"] = new Array(); option_group_data["560-GTS3LNR"]["available_with_compound"] = new Array(); option_group_data["560-GTS3LNR"]["available_with"].push("8"); option_group_data["560-GTS3SDW"] = {}; option_group_data["560-GTS3SDW"]["available_with"] = new Array(); option_group_data["560-GTS3SDW"]["available_with_compound"] = new Array(); option_group_data["560-GTS3SDW"]["available_with"].push("9"); option_group_data["685WT-GTS3"] = {}; option_group_data["685WT-GTS3"]["part_groups"] = new Array(); option_group_data["685WT-GTS3"]["part_groups"].push("62"); option_group_data["796B-GTS3"] = {}; option_group_data["796B-GTS3"]["available_with"] = new Array(); option_group_data["796B-GTS3"]["available_with_compound"] = new Array(); option_group_data["796B-GTS3"]["available_with"].push("5"); option_group_data["688AG-GTS3"] = {}; option_group_data["688AG-GTS3"]["part_groups"] = new Array(); option_group_data["688AG-GTS3"]["part_groups"].push("60"); option_group_data["688AA-GTS3"] = {}; option_group_data["688AA-GTS3"]["part_groups"] = new Array(); option_group_data["688AA-GTS3"]["part_groups"].push("61"); option_group_data["687-GTS3ALM"] = {}; option_group_data["687-GTS3ALM"]["available_with"] = new Array(); option_group_data["687-GTS3ALM"]["available_with_compound"] = new Array(); option_group_data["687-GTS3ALM"]["available_with"].push("61"); option_group_data["686-GTS3ALM"] = {}; option_group_data["686-GTS3ALM"]["available_with"] = new Array(); option_group_data["686-GTS3ALM"]["available_with_compound"] = new Array(); option_group_data["686-GTS3ALM"]["available_with"].push("60"); }); // end of document ready jQuery(document).ready(function(){ jQuery("#boat_build_form").validate({ rules: { name: { required: true, minlength: 2 }, email: { required: true, email: true }, zip: { required: true, minlength: 3 } }, messages: { name: " -Name Required ", email: " -Please enter a valid email address", zip: " -Zip/Postal Required" } }); // end validate });// end doc ready jQuery(document).ready(function(){ checked_boxes_price_tally(); checked_boxes_list_tally(); jQuery(".byb_checkbox:input").change(function(){ // if this is a single selection and if this option is checked if(jQuery(this).attr("single_selection_group") && jQuery(this).prop("checked")) { // loop thorugh all options and remove checks from this single selection group var single_selection_group = jQuery(this).attr("single_selection_group"); var single_selection_checked_option = jQuery(this).val(); jQuery("#boat_build_form input:checked").each(function(){ // if this option is in the single selection group AND it is NOT the same part number as selected above if(jQuery(this).attr("single_selection_group") == single_selection_group && jQuery(this).val() != single_selection_checked_option) { jQuery(this).prop("checked",false).change(); } }); } //includes(); apply_part_groups(); apply_graphics(); checked_boxes_price_tally(); checked_boxes_list_tally(); setCanvasColor(); setXtremeArchGraphics(); //alert(overwrite_group_total["msrp"]); }); }); function checked_boxes_price_tally(){ // here we get the volume discount to be used in the final tally price // these boats do NOT get volume discount applied to them ///////// !!!!!!!!!!! Volume discount has been moved to the line item !!!!!!!!!!!!!!!!!!!!///////// //if(item_id != "342" && item_id != "345") // { // var volume_discount = (100 - parseFloat(jQuery("#volume_discount-holder").val()-0))/100; // } //else // { // var volume_discount = 1; // } var dealer_installed_option_total = 0; // get msrp of dealer installed options jQuery(".dealer_installed_option_price").each(function(){ if(jQuery(this).val()) { dealer_installed_option_total = dealer_installed_option_total+parseFloat(jQuery(this).val()); } }); var checked_boxes_total = new Array(); checked_boxes_total["msrp"] = 0; checked_boxes_total["msrp_base"] = 0; checked_boxes_total["dealer_price"] = 0; checked_boxes_total["dealer_margin"] = 0; base_multiplier jQuery("#boat_build_form input:checked").each(function(){ //alert(this.id); //alert(jQuery("input").attr("disabled")); // if the checkbox is not disabled // this first line weeds out tbd pricing of 999999 //if(!jQuery(this).prop("disabled") && jQuery(this).attr("msrp") && jQuery(this).attr("is_tbd") != 1 && jQuery(this).attr("is_tbd") != "1") //if((!jQuery(this).prop("disabled") || jQuery(this).attr("is_required")) && jQuery(this).attr("msrp") && jQuery(this).val() != "NPPNPRICE22S" ) if(!jQuery(this).prop("included_option") && jQuery(this).attr("msrp")) { //alert(jQuery(this).attr("dealer_margin")); //alert(jQuery(this).attr("id")); // we have base if(jQuery(this).attr("overwrite_group") == 1){ checked_boxes_total["msrp_base"] = checked_boxes_total["msrp_base"] + (parseFloat(jQuery(this).attr("msrp"))*base_multiplier); } // we have option else{ checked_boxes_total["msrp_base"] = checked_boxes_total["msrp_base"] + (parseFloat(jQuery(this).attr("msrp"))*option_multiplier); } checked_boxes_total["msrp"] = checked_boxes_total["msrp"] + parseFloat(jQuery(this).attr("msrp")); checked_boxes_total["dealer_price"] = checked_boxes_total["dealer_price"] + parseFloat(jQuery(this).attr("dealer_cost")); checked_boxes_total["dealer_margin"] = checked_boxes_total["dealer_margin"] + parseFloat(jQuery(this).attr("dealer_margin")); } }); // end checked each // cycle through //alert(checked_boxes_total["msrp"]); // here we format the price // here we send the price to the page jQuery(".msrp_holder").html(checked_boxes_total["msrp_base"]+dealer_installed_option_total).formatCurrency({ roundToDecimalPlace:0 }); jQuery(".msrp_container").html(checked_boxes_total["msrp"]+dealer_installed_option_total).formatCurrency({ roundToDecimalPlace:0 }); jQuery(".dealer_price_container").html(checked_boxes_total["dealer_price"]).formatCurrency({ roundToDecimalPlace:0 }); jQuery(".dealer_margin_price_container").html(checked_boxes_total["dealer_margin"]+dealer_installed_option_total).formatCurrency({ roundToDecimalPlace:0 }); } function apply_graphics(){ // hide all the graphic overlays jQuery(".boat_builder_graphic_overlay").css("display","none"); jQuery(".byb_checkbox").each(function() { // if this option has an overlay if(jQuery(this).attr("graphic_id") !== 0) { // if this option is checked if(this.checked) { // possibly put overlays in csv to show more than one overlay per option..? jQuery("#boat_builder_graphic_overlay_"+jQuery(this).attr("graphic_id")).css("display","block"); //alert("#boat_builder_graphic_overlay_"+jQuery(this).attr("graphic_id")); } }// end if }); } function checked_boxes_list_tally(){ // empty the list container jQuery("#option_list_tally_table").empty(); jQuery("input:checked").each(function(){ //alert(this.id); //jQuery("#option_list_tally").append(this.next().child()); if(jQuery(this).attr("title") && jQuery(this).attr("option_group") != 16) { var price_msrp = jQuery(this).attr("msrp").replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,"); if(country == 226 || country == 138) { if ((jQuery(this).prop("included_option"))) { jQuery("#option_list_tally_table").append(''+jQuery(this).attr("title")+'$0'); } else { jQuery("#option_list_tally_table").append(''+jQuery(this).attr("title")+'$'+price_msrp+''); } } else { jQuery("#option_list_tally_table").append(''+jQuery(this).attr("title")+''); } } }); // end checked each // } function selectDefaultEngine(){ //alert('firing'); var min_price_engine = 999999999999999; var min_price_engine_id; jQuery('input:radio[name=overwrite_group-1]').each(function(){ var temp_msrp = parseInt(jQuery(this).attr('msrp')); // if this engine is less than the previous one we set it as the sel no if(temp_msrp < min_price_engine) { min_price_engine_id = jQuery(this).attr('id'); min_price_engine = temp_msrp; } }); // check the cheapest engine //alert(min_price_engine_id); jQuery('#'+min_price_engine_id).prop('checked',true).change(); } jQuery(document).ready(function(){ // click the package that is selected //jQuery('input:radio[name=overwrite_group-7]:checked').change(); //alert('here2'); // engine if(!jQuery('input:radio[name=overwrite_group-1]:checked').val()) { //alert('here'); selectDefaultEngine(); } else { //alert('here2'); jQuery('input:radio[name=overwrite_group-1]:checked').change(); } // kicker brand //jQuery('input:radio[name=overwrite_group-58]:checked').change(); //trailer brand //jQuery('input:radio[name=overwrite_group-60]:checked').change(); //accent color //jQuery('input:radio[name=overwrite_group-37]:checked').change(); //hull color //jQuery('input:radio[name=overwrite_group-11]:checked').change(); //canvas color //jQuery('input:radio[name=overwrite_group-12]:checked').change(); //jQuery('input:radio[name=overwrite_group-65]:checked').change(); jQuery('#boat_build_form input:checked').each(function(){ jQuery(this).change(); }); setXtremeArchGraphics() });