jQuery(document).ready(function(){ }); // end of document ready
jQuery(document).ready(function(){
jQuery("#input-910-OB4SSXWHT").change(function(){
if(jQuery("#input-910-OB4SSXWHT").prop("checked"))
{
//alert("na_with here");
//alert("[id^=input-950-OB4SSXWHT]");
//alert(jQuery("[id^=input-950-OB4SSXWHT]").attr("title"));
// disable the includes and unchecks it
jQuery("[id^=input-950-OB4SSXWHT]").prop("disabled", true);
// determine if already checked
if(jQuery("[id^=input-950-OB4SSXWHT]").prop("checked"))
{
jQuery("[id^=input-950-OB4SSXWHT]").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-950-OB4SSXWHT-910-OB4SSXWHT]").length === 0)
{
jQuery("[id^=note-950-OB4SSXWHT]").append("
(N/A with 910-OB4SSXWHT - Painted Metallic Hull Stripe - White)");
}
jQuery("[id^=input-950-OB4SSXWHT]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("[id^=input-950-OB4SSXWHT]").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-950-OB4SSXWHT-910-OB4SSXWHT]").remove();
jQuery("[id^=input-950-OB4SSXWHT]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
// reverse
jQuery("[id^=input-950-OB4SSXWHT]").change(function(){
if(jQuery(this).prop("checked"))
{
//alert("input-910-OB4SSXWHT");
//alert(jQuery("[id^=input-910-OB4SSXWHT]").attr("title"));
//alert(jQuery("[id^=input-910-OB4SSXWHT]").is(":checked"));
// disable the includes and unchecks it
jQuery("#input-910-OB4SSXWHT").prop("disabled", true);
// determine if checked
if(jQuery("#input-910-OB4SSXWHT").prop("checked"))
{
jQuery("#input-910-OB4SSXWHT").removeAttr("checked").change();
}
//console.log("if of reverse input-910-OB4SSXWHT");
//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-910-OB4SSXWHT-950-OB4SSXWHT]").length === 0)
{
jQuery("#note-910-OB4SSXWHT").append("
(N/A with 950-OB4SSXWHT )");
}
jQuery("[id^=input-910-OB4SSXWHT]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("#input-910-OB4SSXWHT").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-910-OB4SSXWHT-950-OB4SSXWHT]").remove();
jQuery("[id^=input-910-OB4SSXWHT]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
jQuery("#input-910-OB4SSXBLK").change(function(){
if(jQuery("#input-910-OB4SSXBLK").prop("checked"))
{
//alert("na_with here");
//alert("[id^=input-950-OB4SSXBLK]");
//alert(jQuery("[id^=input-950-OB4SSXBLK]").attr("title"));
// disable the includes and unchecks it
jQuery("[id^=input-950-OB4SSXBLK]").prop("disabled", true);
// determine if already checked
if(jQuery("[id^=input-950-OB4SSXBLK]").prop("checked"))
{
jQuery("[id^=input-950-OB4SSXBLK]").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-950-OB4SSXBLK-910-OB4SSXBLK]").length === 0)
{
jQuery("[id^=note-950-OB4SSXBLK]").append("
(N/A with 910-OB4SSXBLK - Painted Metallic Hull Stripe - Black)");
}
jQuery("[id^=input-950-OB4SSXBLK]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("[id^=input-950-OB4SSXBLK]").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-950-OB4SSXBLK-910-OB4SSXBLK]").remove();
jQuery("[id^=input-950-OB4SSXBLK]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
// reverse
jQuery("[id^=input-950-OB4SSXBLK]").change(function(){
if(jQuery(this).prop("checked"))
{
//alert("input-910-OB4SSXBLK");
//alert(jQuery("[id^=input-910-OB4SSXBLK]").attr("title"));
//alert(jQuery("[id^=input-910-OB4SSXBLK]").is(":checked"));
// disable the includes and unchecks it
jQuery("#input-910-OB4SSXBLK").prop("disabled", true);
// determine if checked
if(jQuery("#input-910-OB4SSXBLK").prop("checked"))
{
jQuery("#input-910-OB4SSXBLK").removeAttr("checked").change();
}
//console.log("if of reverse input-910-OB4SSXBLK");
//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-910-OB4SSXBLK-950-OB4SSXBLK]").length === 0)
{
jQuery("#note-910-OB4SSXBLK").append("
(N/A with 950-OB4SSXBLK )");
}
jQuery("[id^=input-910-OB4SSXBLK]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("#input-910-OB4SSXBLK").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-910-OB4SSXBLK-950-OB4SSXBLK]").remove();
jQuery("[id^=input-910-OB4SSXBLK]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
jQuery("#input-910-OB4SSXBLU").change(function(){
if(jQuery("#input-910-OB4SSXBLU").prop("checked"))
{
//alert("na_with here");
//alert("[id^=input-950-OB4SSXBLU]");
//alert(jQuery("[id^=input-950-OB4SSXBLU]").attr("title"));
// disable the includes and unchecks it
jQuery("[id^=input-950-OB4SSXBLU]").prop("disabled", true);
// determine if already checked
if(jQuery("[id^=input-950-OB4SSXBLU]").prop("checked"))
{
jQuery("[id^=input-950-OB4SSXBLU]").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-950-OB4SSXBLU-910-OB4SSXBLU]").length === 0)
{
jQuery("[id^=note-950-OB4SSXBLU]").append("
(N/A with 910-OB4SSXBLU - Painted Metallic Hull Stripe - Blue)");
}
jQuery("[id^=input-950-OB4SSXBLU]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("[id^=input-950-OB4SSXBLU]").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-950-OB4SSXBLU-910-OB4SSXBLU]").remove();
jQuery("[id^=input-950-OB4SSXBLU]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
// reverse
jQuery("[id^=input-950-OB4SSXBLU]").change(function(){
if(jQuery(this).prop("checked"))
{
//alert("input-910-OB4SSXBLU");
//alert(jQuery("[id^=input-910-OB4SSXBLU]").attr("title"));
//alert(jQuery("[id^=input-910-OB4SSXBLU]").is(":checked"));
// disable the includes and unchecks it
jQuery("#input-910-OB4SSXBLU").prop("disabled", true);
// determine if checked
if(jQuery("#input-910-OB4SSXBLU").prop("checked"))
{
jQuery("#input-910-OB4SSXBLU").removeAttr("checked").change();
}
//console.log("if of reverse input-910-OB4SSXBLU");
//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-910-OB4SSXBLU-950-OB4SSXBLU]").length === 0)
{
jQuery("#note-910-OB4SSXBLU").append("
(N/A with 950-OB4SSXBLU )");
}
jQuery("[id^=input-910-OB4SSXBLU]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("#input-910-OB4SSXBLU").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-910-OB4SSXBLU-950-OB4SSXBLU]").remove();
jQuery("[id^=input-910-OB4SSXBLU]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
jQuery("#input-557-OB4SSXBLK").change(function(){
if(jQuery("#input-557-OB4SSXBLK").prop("checked"))
{
//alert("na_with here");
//alert("[id^=input-639]");
//alert(jQuery("[id^=input-639]").attr("title"));
// disable the includes and unchecks it
jQuery("[id^=input-639]").prop("disabled", true);
// determine if already checked
if(jQuery("[id^=input-639]").prop("checked"))
{
jQuery("[id^=input-639]").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-639-557-OB4SSXBLK]").length === 0)
{
jQuery("[id^=note-639]").append("
(N/A with 557-OB4SSXBLK - Cockpit and Bow Cover)");
}
jQuery("[id^=input-639]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("[id^=input-639]").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-639-557-OB4SSXBLK]").remove();
jQuery("[id^=input-639]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
// reverse
jQuery("[id^=input-639]").change(function(){
if(jQuery(this).prop("checked"))
{
//alert("input-557-OB4SSXBLK");
//alert(jQuery("[id^=input-557-OB4SSXBLK]").attr("title"));
//alert(jQuery("[id^=input-557-OB4SSXBLK]").is(":checked"));
// disable the includes and unchecks it
jQuery("#input-557-OB4SSXBLK").prop("disabled", true);
// determine if checked
if(jQuery("#input-557-OB4SSXBLK").prop("checked"))
{
jQuery("#input-557-OB4SSXBLK").removeAttr("checked").change();
}
//console.log("if of reverse input-557-OB4SSXBLK");
//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-557-OB4SSXBLK-639]").length === 0)
{
jQuery("#note-557-OB4SSXBLK").append("
(N/A with 639 )");
}
jQuery("[id^=input-557-OB4SSXBLK]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("#input-557-OB4SSXBLK").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-557-OB4SSXBLK-639]").remove();
jQuery("[id^=input-557-OB4SSXBLK]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
jQuery("#input-557-OB4SSXBLK").change(function(){
if(jQuery("#input-557-OB4SSXBLK").prop("checked"))
{
//alert("na_with here");
//alert("[id^=input-692]");
//alert(jQuery("[id^=input-692]").attr("title"));
// disable the includes and unchecks it
jQuery("[id^=input-692]").prop("disabled", true);
// determine if already checked
if(jQuery("[id^=input-692]").prop("checked"))
{
jQuery("[id^=input-692]").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-692-557-OB4SSXBLK]").length === 0)
{
jQuery("[id^=note-692]").append("
(N/A with 557-OB4SSXBLK - Cockpit and Bow Cover)");
}
jQuery("[id^=input-692]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("[id^=input-692]").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-692-557-OB4SSXBLK]").remove();
jQuery("[id^=input-692]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
// reverse
jQuery("[id^=input-692]").change(function(){
if(jQuery(this).prop("checked"))
{
//alert("input-557-OB4SSXBLK");
//alert(jQuery("[id^=input-557-OB4SSXBLK]").attr("title"));
//alert(jQuery("[id^=input-557-OB4SSXBLK]").is(":checked"));
// disable the includes and unchecks it
jQuery("#input-557-OB4SSXBLK").prop("disabled", true);
// determine if checked
if(jQuery("#input-557-OB4SSXBLK").prop("checked"))
{
jQuery("#input-557-OB4SSXBLK").removeAttr("checked").change();
}
//console.log("if of reverse input-557-OB4SSXBLK");
//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-557-OB4SSXBLK-692]").length === 0)
{
jQuery("#note-557-OB4SSXBLK").append("
(N/A with 692 )");
}
jQuery("[id^=input-557-OB4SSXBLK]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("#input-557-OB4SSXBLK").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-557-OB4SSXBLK-692]").remove();
jQuery("[id^=input-557-OB4SSXBLK]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
jQuery("#input-557-OB4SSXBLU").change(function(){
if(jQuery("#input-557-OB4SSXBLU").prop("checked"))
{
//alert("na_with here");
//alert("[id^=input-639]");
//alert(jQuery("[id^=input-639]").attr("title"));
// disable the includes and unchecks it
jQuery("[id^=input-639]").prop("disabled", true);
// determine if already checked
if(jQuery("[id^=input-639]").prop("checked"))
{
jQuery("[id^=input-639]").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-639-557-OB4SSXBLU]").length === 0)
{
jQuery("[id^=note-639]").append("
(N/A with 557-OB4SSXBLU - Cockpit and Bow Cover)");
}
jQuery("[id^=input-639]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("[id^=input-639]").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-639-557-OB4SSXBLU]").remove();
jQuery("[id^=input-639]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
// reverse
jQuery("[id^=input-639]").change(function(){
if(jQuery(this).prop("checked"))
{
//alert("input-557-OB4SSXBLU");
//alert(jQuery("[id^=input-557-OB4SSXBLU]").attr("title"));
//alert(jQuery("[id^=input-557-OB4SSXBLU]").is(":checked"));
// disable the includes and unchecks it
jQuery("#input-557-OB4SSXBLU").prop("disabled", true);
// determine if checked
if(jQuery("#input-557-OB4SSXBLU").prop("checked"))
{
jQuery("#input-557-OB4SSXBLU").removeAttr("checked").change();
}
//console.log("if of reverse input-557-OB4SSXBLU");
//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-557-OB4SSXBLU-639]").length === 0)
{
jQuery("#note-557-OB4SSXBLU").append("
(N/A with 639 )");
}
jQuery("[id^=input-557-OB4SSXBLU]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("#input-557-OB4SSXBLU").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-557-OB4SSXBLU-639]").remove();
jQuery("[id^=input-557-OB4SSXBLU]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
jQuery("#input-557-OB4SSXBLU").change(function(){
if(jQuery("#input-557-OB4SSXBLU").prop("checked"))
{
//alert("na_with here");
//alert("[id^=input-692]");
//alert(jQuery("[id^=input-692]").attr("title"));
// disable the includes and unchecks it
jQuery("[id^=input-692]").prop("disabled", true);
// determine if already checked
if(jQuery("[id^=input-692]").prop("checked"))
{
jQuery("[id^=input-692]").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-692-557-OB4SSXBLU]").length === 0)
{
jQuery("[id^=note-692]").append("
(N/A with 557-OB4SSXBLU - Cockpit and Bow Cover)");
}
jQuery("[id^=input-692]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("[id^=input-692]").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-692-557-OB4SSXBLU]").remove();
jQuery("[id^=input-692]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
// reverse
jQuery("[id^=input-692]").change(function(){
if(jQuery(this).prop("checked"))
{
//alert("input-557-OB4SSXBLU");
//alert(jQuery("[id^=input-557-OB4SSXBLU]").attr("title"));
//alert(jQuery("[id^=input-557-OB4SSXBLU]").is(":checked"));
// disable the includes and unchecks it
jQuery("#input-557-OB4SSXBLU").prop("disabled", true);
// determine if checked
if(jQuery("#input-557-OB4SSXBLU").prop("checked"))
{
jQuery("#input-557-OB4SSXBLU").removeAttr("checked").change();
}
//console.log("if of reverse input-557-OB4SSXBLU");
//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-557-OB4SSXBLU-692]").length === 0)
{
jQuery("#note-557-OB4SSXBLU").append("
(N/A with 692 )");
}
jQuery("[id^=input-557-OB4SSXBLU]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("#input-557-OB4SSXBLU").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-557-OB4SSXBLU-692]").remove();
jQuery("[id^=input-557-OB4SSXBLU]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
jQuery("#input-557-OB4SSXSBL").change(function(){
if(jQuery("#input-557-OB4SSXSBL").prop("checked"))
{
//alert("na_with here");
//alert("[id^=input-639]");
//alert(jQuery("[id^=input-639]").attr("title"));
// disable the includes and unchecks it
jQuery("[id^=input-639]").prop("disabled", true);
// determine if already checked
if(jQuery("[id^=input-639]").prop("checked"))
{
jQuery("[id^=input-639]").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-639-557-OB4SSXSBL]").length === 0)
{
jQuery("[id^=note-639]").append("
(N/A with 557-OB4SSXSBL - Cockpit and Bow Cover)");
}
jQuery("[id^=input-639]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("[id^=input-639]").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-639-557-OB4SSXSBL]").remove();
jQuery("[id^=input-639]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
// reverse
jQuery("[id^=input-639]").change(function(){
if(jQuery(this).prop("checked"))
{
//alert("input-557-OB4SSXSBL");
//alert(jQuery("[id^=input-557-OB4SSXSBL]").attr("title"));
//alert(jQuery("[id^=input-557-OB4SSXSBL]").is(":checked"));
// disable the includes and unchecks it
jQuery("#input-557-OB4SSXSBL").prop("disabled", true);
// determine if checked
if(jQuery("#input-557-OB4SSXSBL").prop("checked"))
{
jQuery("#input-557-OB4SSXSBL").removeAttr("checked").change();
}
//console.log("if of reverse input-557-OB4SSXSBL");
//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-557-OB4SSXSBL-639]").length === 0)
{
jQuery("#note-557-OB4SSXSBL").append("
(N/A with 639 )");
}
jQuery("[id^=input-557-OB4SSXSBL]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("#input-557-OB4SSXSBL").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-557-OB4SSXSBL-639]").remove();
jQuery("[id^=input-557-OB4SSXSBL]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
jQuery("#input-557-OB4SSXSBL").change(function(){
if(jQuery("#input-557-OB4SSXSBL").prop("checked"))
{
//alert("na_with here");
//alert("[id^=input-692]");
//alert(jQuery("[id^=input-692]").attr("title"));
// disable the includes and unchecks it
jQuery("[id^=input-692]").prop("disabled", true);
// determine if already checked
if(jQuery("[id^=input-692]").prop("checked"))
{
jQuery("[id^=input-692]").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-692-557-OB4SSXSBL]").length === 0)
{
jQuery("[id^=note-692]").append("
(N/A with 557-OB4SSXSBL - Cockpit and Bow Cover)");
}
jQuery("[id^=input-692]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("[id^=input-692]").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-692-557-OB4SSXSBL]").remove();
jQuery("[id^=input-692]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
// reverse
jQuery("[id^=input-692]").change(function(){
if(jQuery(this).prop("checked"))
{
//alert("input-557-OB4SSXSBL");
//alert(jQuery("[id^=input-557-OB4SSXSBL]").attr("title"));
//alert(jQuery("[id^=input-557-OB4SSXSBL]").is(":checked"));
// disable the includes and unchecks it
jQuery("#input-557-OB4SSXSBL").prop("disabled", true);
// determine if checked
if(jQuery("#input-557-OB4SSXSBL").prop("checked"))
{
jQuery("#input-557-OB4SSXSBL").removeAttr("checked").change();
}
//console.log("if of reverse input-557-OB4SSXSBL");
//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-557-OB4SSXSBL-692]").length === 0)
{
jQuery("#note-557-OB4SSXSBL").append("
(N/A with 692 )");
}
jQuery("[id^=input-557-OB4SSXSBL]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("#input-557-OB4SSXSBL").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-557-OB4SSXSBL-692]").remove();
jQuery("[id^=input-557-OB4SSXSBL]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
jQuery("#input-560NCT-OB4SSXSDW").change(function(){
if(jQuery("#input-560NCT-OB4SSXSDW").prop("checked"))
{
//alert("na_with here");
//alert("[id^=input-650]");
//alert(jQuery("[id^=input-650]").attr("title"));
// disable the includes and unchecks it
jQuery("[id^=input-650]").prop("disabled", true);
// determine if already checked
if(jQuery("[id^=input-650]").prop("checked"))
{
jQuery("[id^=input-650]").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-650-560NCT-OB4SSXSDW]").length === 0)
{
jQuery("[id^=note-650]").append("
(N/A with 560NCT-OB4SSXSDW - Bowrider Filler Cushion)");
}
jQuery("[id^=input-650]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("[id^=input-650]").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-650-560NCT-OB4SSXSDW]").remove();
jQuery("[id^=input-650]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
// reverse
jQuery("[id^=input-650]").change(function(){
if(jQuery(this).prop("checked"))
{
//alert("input-560NCT-OB4SSXSDW");
//alert(jQuery("[id^=input-560NCT-OB4SSXSDW]").attr("title"));
//alert(jQuery("[id^=input-560NCT-OB4SSXSDW]").is(":checked"));
// disable the includes and unchecks it
jQuery("#input-560NCT-OB4SSXSDW").prop("disabled", true);
// determine if checked
if(jQuery("#input-560NCT-OB4SSXSDW").prop("checked"))
{
jQuery("#input-560NCT-OB4SSXSDW").removeAttr("checked").change();
}
//console.log("if of reverse input-560NCT-OB4SSXSDW");
//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-560NCT-OB4SSXSDW-650]").length === 0)
{
jQuery("#note-560NCT-OB4SSXSDW").append("
(N/A with 650 )");
}
jQuery("[id^=input-560NCT-OB4SSXSDW]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("#input-560NCT-OB4SSXSDW").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-560NCT-OB4SSXSDW-650]").remove();
jQuery("[id^=input-560NCT-OB4SSXSDW]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
jQuery("#input-560NCT-OB4SSXSLT").change(function(){
if(jQuery("#input-560NCT-OB4SSXSLT").prop("checked"))
{
//alert("na_with here");
//alert("[id^=input-650]");
//alert(jQuery("[id^=input-650]").attr("title"));
// disable the includes and unchecks it
jQuery("[id^=input-650]").prop("disabled", true);
// determine if already checked
if(jQuery("[id^=input-650]").prop("checked"))
{
jQuery("[id^=input-650]").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-650-560NCT-OB4SSXSLT]").length === 0)
{
jQuery("[id^=note-650]").append("
(N/A with 560NCT-OB4SSXSLT - Bowrider Filler Cushion)");
}
jQuery("[id^=input-650]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("[id^=input-650]").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-650-560NCT-OB4SSXSLT]").remove();
jQuery("[id^=input-650]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
// reverse
jQuery("[id^=input-650]").change(function(){
if(jQuery(this).prop("checked"))
{
//alert("input-560NCT-OB4SSXSLT");
//alert(jQuery("[id^=input-560NCT-OB4SSXSLT]").attr("title"));
//alert(jQuery("[id^=input-560NCT-OB4SSXSLT]").is(":checked"));
// disable the includes and unchecks it
jQuery("#input-560NCT-OB4SSXSLT").prop("disabled", true);
// determine if checked
if(jQuery("#input-560NCT-OB4SSXSLT").prop("checked"))
{
jQuery("#input-560NCT-OB4SSXSLT").removeAttr("checked").change();
}
//console.log("if of reverse input-560NCT-OB4SSXSLT");
//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-560NCT-OB4SSXSLT-650]").length === 0)
{
jQuery("#note-560NCT-OB4SSXSLT").append("
(N/A with 650 )");
}
jQuery("[id^=input-560NCT-OB4SSXSLT]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("#input-560NCT-OB4SSXSLT").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-560NCT-OB4SSXSLT-650]").remove();
jQuery("[id^=input-560NCT-OB4SSXSLT]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
jQuery("#input-560NCT-OB4SSXLNR").change(function(){
if(jQuery("#input-560NCT-OB4SSXLNR").prop("checked"))
{
//alert("na_with here");
//alert("[id^=input-650]");
//alert(jQuery("[id^=input-650]").attr("title"));
// disable the includes and unchecks it
jQuery("[id^=input-650]").prop("disabled", true);
// determine if already checked
if(jQuery("[id^=input-650]").prop("checked"))
{
jQuery("[id^=input-650]").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-650-560NCT-OB4SSXLNR]").length === 0)
{
jQuery("[id^=note-650]").append("
(N/A with 560NCT-OB4SSXLNR - Bowrider Filler Cushion)");
}
jQuery("[id^=input-650]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("[id^=input-650]").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-650-560NCT-OB4SSXLNR]").remove();
jQuery("[id^=input-650]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
// reverse
jQuery("[id^=input-650]").change(function(){
if(jQuery(this).prop("checked"))
{
//alert("input-560NCT-OB4SSXLNR");
//alert(jQuery("[id^=input-560NCT-OB4SSXLNR]").attr("title"));
//alert(jQuery("[id^=input-560NCT-OB4SSXLNR]").is(":checked"));
// disable the includes and unchecks it
jQuery("#input-560NCT-OB4SSXLNR").prop("disabled", true);
// determine if checked
if(jQuery("#input-560NCT-OB4SSXLNR").prop("checked"))
{
jQuery("#input-560NCT-OB4SSXLNR").removeAttr("checked").change();
}
//console.log("if of reverse input-560NCT-OB4SSXLNR");
//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-560NCT-OB4SSXLNR-650]").length === 0)
{
jQuery("#note-560NCT-OB4SSXLNR").append("
(N/A with 650 )");
}
jQuery("[id^=input-560NCT-OB4SSXLNR]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("#input-560NCT-OB4SSXLNR").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-560NCT-OB4SSXLNR-650]").remove();
jQuery("[id^=input-560NCT-OB4SSXLNR]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
jQuery("#input-560NCT-OB4SSXCYN").change(function(){
if(jQuery("#input-560NCT-OB4SSXCYN").prop("checked"))
{
//alert("na_with here");
//alert("[id^=input-650]");
//alert(jQuery("[id^=input-650]").attr("title"));
// disable the includes and unchecks it
jQuery("[id^=input-650]").prop("disabled", true);
// determine if already checked
if(jQuery("[id^=input-650]").prop("checked"))
{
jQuery("[id^=input-650]").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-650-560NCT-OB4SSXCYN]").length === 0)
{
jQuery("[id^=note-650]").append("
(N/A with 560NCT-OB4SSXCYN - Bowrider Filler Cushion)");
}
jQuery("[id^=input-650]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("[id^=input-650]").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-650-560NCT-OB4SSXCYN]").remove();
jQuery("[id^=input-650]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
// reverse
jQuery("[id^=input-650]").change(function(){
if(jQuery(this).prop("checked"))
{
//alert("input-560NCT-OB4SSXCYN");
//alert(jQuery("[id^=input-560NCT-OB4SSXCYN]").attr("title"));
//alert(jQuery("[id^=input-560NCT-OB4SSXCYN]").is(":checked"));
// disable the includes and unchecks it
jQuery("#input-560NCT-OB4SSXCYN").prop("disabled", true);
// determine if checked
if(jQuery("#input-560NCT-OB4SSXCYN").prop("checked"))
{
jQuery("#input-560NCT-OB4SSXCYN").removeAttr("checked").change();
}
//console.log("if of reverse input-560NCT-OB4SSXCYN");
//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-560NCT-OB4SSXCYN-650]").length === 0)
{
jQuery("#note-560NCT-OB4SSXCYN").append("
(N/A with 650 )");
}
jQuery("[id^=input-560NCT-OB4SSXCYN]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("#input-560NCT-OB4SSXCYN").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-560NCT-OB4SSXCYN-650]").remove();
jQuery("[id^=input-560NCT-OB4SSXCYN]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
jQuery("#input-704S-OB4SSX").change(function(){
if(jQuery("#input-704S-OB4SSX").prop("checked"))
{
//alert("na_with here");
//alert("[id^=input-638]");
//alert(jQuery("[id^=input-638]").attr("title"));
// disable the includes and unchecks it
jQuery("[id^=input-638]").prop("disabled", true);
// determine if already checked
if(jQuery("[id^=input-638]").prop("checked"))
{
jQuery("[id^=input-638]").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-638-704S-OB4SSX]").length === 0)
{
jQuery("[id^=note-638]").append("
(N/A with 704S-OB4SSX - Snap-In Seadek Cockpit Flooring - Slate)");
}
jQuery("[id^=input-638]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("[id^=input-638]").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-638-704S-OB4SSX]").remove();
jQuery("[id^=input-638]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
// reverse
jQuery("[id^=input-638]").change(function(){
if(jQuery(this).prop("checked"))
{
//alert("input-704S-OB4SSX");
//alert(jQuery("[id^=input-704S-OB4SSX]").attr("title"));
//alert(jQuery("[id^=input-704S-OB4SSX]").is(":checked"));
// disable the includes and unchecks it
jQuery("#input-704S-OB4SSX").prop("disabled", true);
// determine if checked
if(jQuery("#input-704S-OB4SSX").prop("checked"))
{
jQuery("#input-704S-OB4SSX").removeAttr("checked").change();
}
//console.log("if of reverse input-704S-OB4SSX");
//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-704S-OB4SSX-638]").length === 0)
{
jQuery("#note-704S-OB4SSX").append("
(N/A with 638 )");
}
jQuery("[id^=input-704S-OB4SSX]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("#input-704S-OB4SSX").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-704S-OB4SSX-638]").remove();
jQuery("[id^=input-704S-OB4SSX]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
jQuery("#input-579-OB4SSX").change(function(){
if(jQuery("#input-579-OB4SSX").prop("checked"))
{
//alert("na_with here");
//alert("[id^=input-800]");
//alert(jQuery("[id^=input-800]").attr("title"));
// disable the includes and unchecks it
jQuery("[id^=input-800]").prop("disabled", true);
// determine if already checked
if(jQuery("[id^=input-800]").prop("checked"))
{
jQuery("[id^=input-800]").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-800-579-OB4SSX]").length === 0)
{
jQuery("[id^=note-800]").append("
(N/A with 579-OB4SSX - Dual Battery Charger)");
}
jQuery("[id^=input-800]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("[id^=input-800]").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-800-579-OB4SSX]").remove();
jQuery("[id^=input-800]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
// reverse
jQuery("[id^=input-800]").change(function(){
if(jQuery(this).prop("checked"))
{
//alert("input-579-OB4SSX");
//alert(jQuery("[id^=input-579-OB4SSX]").attr("title"));
//alert(jQuery("[id^=input-579-OB4SSX]").is(":checked"));
// disable the includes and unchecks it
jQuery("#input-579-OB4SSX").prop("disabled", true);
// determine if checked
if(jQuery("#input-579-OB4SSX").prop("checked"))
{
jQuery("#input-579-OB4SSX").removeAttr("checked").change();
}
//console.log("if of reverse input-579-OB4SSX");
//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-579-OB4SSX-800]").length === 0)
{
jQuery("#note-579-OB4SSX").append("
(N/A with 800 )");
}
jQuery("[id^=input-579-OB4SSX]").parent().parent().addClass("byb_option_red");
}
// here we reverse out everything from above
else
{
// enable the na with
jQuery("#input-579-OB4SSX").prop("disabled",false);
// remove the option note
jQuery("[id^=note-single-na_with-579-OB4SSX-800]").remove();
jQuery("[id^=input-579-OB4SSX]").parent().parent().removeClass("byb_option_red");
}
}); // end click listener
}); // end of document ready
jQuery(document).ready(function(){ jQuery("#input-560CT-OB4SSXSLT").change(function(){
if(jQuery("#input-560CT-OB4SSXSLT").prop("checked"))
{
// set a note for this option that other options are required
jQuery("[id^=note-single-requires-560CT-OB4SSXSLT]").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-650-560CT-OB4SSXSLT]").length === 0)
{
// check the required item
// if this is not in an overwrite group
//if(jQuery("[id^=input-650]").prop("type") != "radio")
if(jQuery("[id^=input-650]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group"))
{
jQuery("[id^=input-650]").prop("disabled", true);
}
if(!jQuery("[id^=input-650]").prop("checked"))
{
jQuery("[id^=input-650]").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-650]").parent().parent().addClass("byb_option_yellow");
// add a note stating why this option is checked
jQuery("[id^=note-650]").append("
(Required By: 560CT-OB4SSXSLT-Bowrider Filler Cushion)");
}
}
// 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-560CT-OB4SSXSLT]").hide();
jQuery("[id^=note-single-required-by-560CT-OB4SSXSLT]").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-650]").parent().parent().removeClass("byb_option_yellow");
jQuery("[id^=input-650]").prop("disabled", false);
// add a note stating why this option is checked
jQuery("[id^=note-single-required-by-650-560CT-OB4SSXSLT]").remove();
}
}); // end click listener
jQuery("#input-560CT-OB4SSXSDW").change(function(){
if(jQuery("#input-560CT-OB4SSXSDW").prop("checked"))
{
// set a note for this option that other options are required
jQuery("[id^=note-single-requires-560CT-OB4SSXSDW]").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-650-560CT-OB4SSXSDW]").length === 0)
{
// check the required item
// if this is not in an overwrite group
//if(jQuery("[id^=input-650]").prop("type") != "radio")
if(jQuery("[id^=input-650]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group"))
{
jQuery("[id^=input-650]").prop("disabled", true);
}
if(!jQuery("[id^=input-650]").prop("checked"))
{
jQuery("[id^=input-650]").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-650]").parent().parent().addClass("byb_option_yellow");
// add a note stating why this option is checked
jQuery("[id^=note-650]").append("
(Required By: 560CT-OB4SSXSDW-Bowrider Filler Cushion)");
}
}
// 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-560CT-OB4SSXSDW]").hide();
jQuery("[id^=note-single-required-by-560CT-OB4SSXSDW]").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-650]").parent().parent().removeClass("byb_option_yellow");
jQuery("[id^=input-650]").prop("disabled", false);
// add a note stating why this option is checked
jQuery("[id^=note-single-required-by-650-560CT-OB4SSXSDW]").remove();
}
}); // end click listener
jQuery("#input-560CT-OB4SSXLNR").change(function(){
if(jQuery("#input-560CT-OB4SSXLNR").prop("checked"))
{
// set a note for this option that other options are required
jQuery("[id^=note-single-requires-560CT-OB4SSXLNR]").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-650-560CT-OB4SSXLNR]").length === 0)
{
// check the required item
// if this is not in an overwrite group
//if(jQuery("[id^=input-650]").prop("type") != "radio")
if(jQuery("[id^=input-650]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group"))
{
jQuery("[id^=input-650]").prop("disabled", true);
}
if(!jQuery("[id^=input-650]").prop("checked"))
{
jQuery("[id^=input-650]").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-650]").parent().parent().addClass("byb_option_yellow");
// add a note stating why this option is checked
jQuery("[id^=note-650]").append("
(Required By: 560CT-OB4SSXLNR-Bowrider Filler Cushion)");
}
}
// 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-560CT-OB4SSXLNR]").hide();
jQuery("[id^=note-single-required-by-560CT-OB4SSXLNR]").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-650]").parent().parent().removeClass("byb_option_yellow");
jQuery("[id^=input-650]").prop("disabled", false);
// add a note stating why this option is checked
jQuery("[id^=note-single-required-by-650-560CT-OB4SSXLNR]").remove();
}
}); // end click listener
jQuery("#input-560CT-OB4SSXCYN").change(function(){
if(jQuery("#input-560CT-OB4SSXCYN").prop("checked"))
{
// set a note for this option that other options are required
jQuery("[id^=note-single-requires-560CT-OB4SSXCYN]").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-650-560CT-OB4SSXCYN]").length === 0)
{
// check the required item
// if this is not in an overwrite group
//if(jQuery("[id^=input-650]").prop("type") != "radio")
if(jQuery("[id^=input-650]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group"))
{
jQuery("[id^=input-650]").prop("disabled", true);
}
if(!jQuery("[id^=input-650]").prop("checked"))
{
jQuery("[id^=input-650]").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-650]").parent().parent().addClass("byb_option_yellow");
// add a note stating why this option is checked
jQuery("[id^=note-650]").append("
(Required By: 560CT-OB4SSXCYN-Bowrider Filler Cushion)");
}
}
// 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-560CT-OB4SSXCYN]").hide();
jQuery("[id^=note-single-required-by-560CT-OB4SSXCYN]").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-650]").parent().parent().removeClass("byb_option_yellow");
jQuery("[id^=input-650]").prop("disabled", false);
// add a note stating why this option is checked
jQuery("[id^=note-single-required-by-650-560CT-OB4SSXCYN]").remove();
}
}); // end click listener
jQuery("#input-704C-OB4SSX").change(function(){
if(jQuery("#input-704C-OB4SSX").prop("checked"))
{
// set a note for this option that other options are required
jQuery("[id^=note-single-requires-704C-OB4SSX]").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-638-704C-OB4SSX]").length === 0)
{
// check the required item
// if this is not in an overwrite group
//if(jQuery("[id^=input-638]").prop("type") != "radio")
if(jQuery("[id^=input-638]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group"))
{
jQuery("[id^=input-638]").prop("disabled", true);
}
if(!jQuery("[id^=input-638]").prop("checked"))
{
jQuery("[id^=input-638]").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-638]").parent().parent().addClass("byb_option_yellow");
// add a note stating why this option is checked
jQuery("[id^=note-638]").append("
(Required By: 704C-OB4SSX-Snap-In Seadek Cockpit Flooring - 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-704C-OB4SSX]").hide();
jQuery("[id^=note-single-required-by-704C-OB4SSX]").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-638]").parent().parent().removeClass("byb_option_yellow");
jQuery("[id^=input-638]").prop("disabled", false);
// add a note stating why this option is checked
jQuery("[id^=note-single-required-by-638-704C-OB4SSX]").remove();
}
}); // end click listener
}); // end of document ready
jQuery(document).ready(function(){ option_group_data["532-OB4SSX"] = {}; option_group_data["532-OB4SSX"]["part_groups"] = new Array();
option_group_data["532-OB4SSX"]["part_groups"].push("20");
option_group_data["636-OB4SSX"] = {}; option_group_data["636-OB4SSX"]["part_groups"] = new Array();
option_group_data["636-OB4SSX"]["part_groups"].push("22");
option_group_data["637-OB4SSX"] = {}; option_group_data["637-OB4SSX"]["part_groups"] = new Array();
option_group_data["637-OB4SSX"]["part_groups"].push("24");
option_group_data["638-OB4SSX"] = {}; option_group_data["638-OB4SSX"]["part_groups"] = new Array();
option_group_data["638-OB4SSX"]["part_groups"].push("27");
option_group_data["639-OB4SSXBLK"] = {}; option_group_data["639-OB4SSXBLK"]["part_groups"] = new Array();
option_group_data["639-OB4SSXBLK"]["part_groups"].push("6");
option_group_data["639-OB4SSXBLU"] = {}; option_group_data["639-OB4SSXBLU"]["part_groups"] = new Array();
option_group_data["639-OB4SSXBLU"]["part_groups"].push("6");
option_group_data["639-OB4SSXSBL"] = {}; option_group_data["639-OB4SSXSBL"]["part_groups"] = new Array();
option_group_data["639-OB4SSXSBL"]["part_groups"].push("6");
option_group_data["692W-OB4SSXBLU"] = {}; option_group_data["692W-OB4SSXBLU"]["part_groups"] = new Array();
option_group_data["692W-OB4SSXBLU"]["part_groups"].push("17");
option_group_data["692W-OB4SSXSBL"] = {}; option_group_data["692W-OB4SSXSBL"]["part_groups"] = new Array();
option_group_data["692W-OB4SSXSBL"]["part_groups"].push("17");
option_group_data["692W-OB4SSXBLK"] = {}; option_group_data["692W-OB4SSXBLK"]["part_groups"] = new Array();
option_group_data["692W-OB4SSXBLK"]["part_groups"].push("17");
option_group_data["692B-OB4SSXBLU"] = {}; option_group_data["692B-OB4SSXBLU"]["part_groups"] = new Array();
option_group_data["692B-OB4SSXBLU"]["part_groups"].push("18");
option_group_data["692B-OB4SSXBLK"] = {}; option_group_data["692B-OB4SSXBLK"]["part_groups"] = new Array();
option_group_data["692B-OB4SSXBLK"]["part_groups"].push("18");
option_group_data["692B-OB4SSXSBL"] = {}; option_group_data["692B-OB4SSXSBL"]["part_groups"] = new Array();
option_group_data["692B-OB4SSXSBL"]["part_groups"].push("18");
option_group_data["765-OB4SSXBLK"] = {}; option_group_data["765-OB4SSXBLK"]["available_with"] = new Array();
option_group_data["765-OB4SSXBLK"]["available_with_compound"] = new Array();
option_group_data["765-OB4SSXBLK"]["available_with"].push("17");
option_group_data["765-OB4SSXBLK"]["available_with"].push("18");
option_group_data["765-OB4SSXWHT"] = {}; option_group_data["765-OB4SSXWHT"]["available_with"] = new Array();
option_group_data["765-OB4SSXWHT"]["available_with_compound"] = new Array();
option_group_data["765-OB4SSXWHT"]["available_with"].push("17");
option_group_data["765-OB4SSXWHT"]["available_with"].push("18");
option_group_data["735-OB4SSXBLK"] = {}; option_group_data["735-OB4SSXBLK"]["available_with"] = new Array();
option_group_data["735-OB4SSXBLK"]["available_with_compound"] = new Array();
option_group_data["735-OB4SSXBLK"]["available_with"].push("17");
option_group_data["735-OB4SSXBLK"]["available_with"].push("18");
option_group_data["735-OB4SSXWHT"] = {}; option_group_data["735-OB4SSXWHT"]["available_with"] = new Array();
option_group_data["735-OB4SSXWHT"]["available_with_compound"] = new Array();
option_group_data["735-OB4SSXWHT"]["available_with"].push("17");
option_group_data["735-OB4SSXWHT"]["available_with"].push("18");
option_group_data["557MTX-OB4SSXBLK"] = {}; option_group_data["557MTX-OB4SSXBLK"]["available_with"] = new Array();
option_group_data["557MTX-OB4SSXBLK"]["available_with_compound"] = new Array();
option_group_data["557MTX-OB4SSXBLK"]["available_with"].push("17");
option_group_data["557MTX-OB4SSXBLK"]["available_with"].push("18");
option_group_data["557BT-OB4SSXBLK"] = {}; option_group_data["557BT-OB4SSXBLK"]["available_with"] = new Array();
option_group_data["557BT-OB4SSXBLK"]["available_with_compound"] = new Array();
option_group_data["557BT-OB4SSXBLK"]["available_with"].push("6");
option_group_data["557MTX-OB4SSXBLU"] = {}; option_group_data["557MTX-OB4SSXBLU"]["available_with"] = new Array();
option_group_data["557MTX-OB4SSXBLU"]["available_with_compound"] = new Array();
option_group_data["557MTX-OB4SSXBLU"]["available_with"].push("17");
option_group_data["557MTX-OB4SSXBLU"]["available_with"].push("18");
option_group_data["557BT-OB4SSXBLU"] = {}; option_group_data["557BT-OB4SSXBLU"]["available_with"] = new Array();
option_group_data["557BT-OB4SSXBLU"]["available_with_compound"] = new Array();
option_group_data["557BT-OB4SSXBLU"]["available_with"].push("6");
option_group_data["557BT-OB4SSXSBL"] = {}; option_group_data["557BT-OB4SSXSBL"]["available_with"] = new Array();
option_group_data["557BT-OB4SSXSBL"]["available_with_compound"] = new Array();
option_group_data["557BT-OB4SSXSBL"]["available_with"].push("6");
option_group_data["557MTX-OB4SSXSBL"] = {}; option_group_data["557MTX-OB4SSXSBL"]["available_with"] = new Array();
option_group_data["557MTX-OB4SSXSBL"]["available_with_compound"] = new Array();
option_group_data["557MTX-OB4SSXSBL"]["available_with"].push("17");
option_group_data["557MTX-OB4SSXSBL"]["available_with"].push("18");
option_group_data["560NCT-OB4SSXSDW"] = {}; option_group_data["560NCT-OB4SSXSDW"]["available_with"] = new Array();
option_group_data["560NCT-OB4SSXSDW"]["available_with_compound"] = new Array();
option_group_data["560NCT-OB4SSXSDW"]["available_with"].push("24");
option_group_data["560NCT-OB4SSXSLT"] = {}; option_group_data["560NCT-OB4SSXSLT"]["available_with"] = new Array();
option_group_data["560NCT-OB4SSXSLT"]["available_with_compound"] = new Array();
option_group_data["560NCT-OB4SSXSLT"]["available_with"].push("20");
option_group_data["560NCT-OB4SSXLNR"] = {}; option_group_data["560NCT-OB4SSXLNR"]["available_with"] = new Array();
option_group_data["560NCT-OB4SSXLNR"]["available_with_compound"] = new Array();
option_group_data["560NCT-OB4SSXLNR"]["available_with"].push("22");
option_group_data["560NCT-OB4SSXCYN"] = {}; option_group_data["560NCT-OB4SSXCYN"]["available_with"] = new Array();
option_group_data["560NCT-OB4SSXCYN"]["available_with_compound"] = new Array();
option_group_data["560NCT-OB4SSXCYN"]["available_with"].push("27");
option_group_data["560CT-OB4SSXSLT"] = {}; option_group_data["560CT-OB4SSXSLT"]["available_with"] = new Array();
option_group_data["560CT-OB4SSXSLT"]["available_with_compound"] = new Array();
option_group_data["560CT-OB4SSXSLT"]["available_with"].push("20");
option_group_data["560CT-OB4SSXSDW"] = {}; option_group_data["560CT-OB4SSXSDW"]["available_with"] = new Array();
option_group_data["560CT-OB4SSXSDW"]["available_with_compound"] = new Array();
option_group_data["560CT-OB4SSXSDW"]["available_with"].push("24");
option_group_data["560CT-OB4SSXLNR"] = {}; option_group_data["560CT-OB4SSXLNR"]["available_with"] = new Array();
option_group_data["560CT-OB4SSXLNR"]["available_with_compound"] = new Array();
option_group_data["560CT-OB4SSXLNR"]["available_with"].push("22");
option_group_data["560CT-OB4SSXCYN"] = {}; option_group_data["560CT-OB4SSXCYN"]["available_with"] = new Array();
option_group_data["560CT-OB4SSXCYN"]["available_with_compound"] = new Array();
option_group_data["560CT-OB4SSXCYN"]["available_with"].push("27");
option_group_data["688BG-OB4SSX"] = {}; option_group_data["688BG-OB4SSX"]["part_groups"] = new Array();
option_group_data["688BG-OB4SSX"]["part_groups"].push("64");
option_group_data["688WG-OB4SSX"] = {}; option_group_data["688WG-OB4SSX"]["part_groups"] = new Array();
option_group_data["688WG-OB4SSX"]["part_groups"].push("64");
option_group_data["688AA-OB4SSX"] = {}; option_group_data["688AA-OB4SSX"]["part_groups"] = new Array();
option_group_data["688AA-OB4SSX"]["part_groups"].push("61");
option_group_data["688BA-OB4SSX"] = {}; option_group_data["688BA-OB4SSX"]["part_groups"] = new Array();
option_group_data["688BA-OB4SSX"]["part_groups"].push("63");
option_group_data["688WA-OB4SSX"] = {}; option_group_data["688WA-OB4SSX"]["part_groups"] = new Array();
option_group_data["688WA-OB4SSX"]["part_groups"].push("63");
option_group_data["686P-OB4SSX"] = {}; option_group_data["686P-OB4SSX"]["available_with"] = new Array();
option_group_data["686P-OB4SSX"]["available_with_compound"] = new Array();
option_group_data["686P-OB4SSX"]["available_with"].push("64");
option_group_data["687-OB4SSXALM"] = {}; option_group_data["687-OB4SSXALM"]["available_with"] = new Array();
option_group_data["687-OB4SSXALM"]["available_with_compound"] = new Array();
option_group_data["687-OB4SSXALM"]["available_with"].push("61");
option_group_data["687P-OB4SSX"] = {}; option_group_data["687P-OB4SSX"]["available_with"] = new Array();
option_group_data["687P-OB4SSX"]["available_with_compound"] = new Array();
option_group_data["687P-OB4SSX"]["available_with"].push("63");
}); // 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('