jQuery(document).ready(function(){function e(e,l){if(void 0!==l&&l){var t=jQuery('.level_select option[value="'+e+'"]');jQuery(t).prop("selected",!0)}var i=jQuery('.idc_lightbox:visible select[name="level_select"] :selected').data("desc"),c=jQuery('.idc_lightbox:visible select[name="level_select"] :selected').data("price");jQuery(".idc_lightbox:visible .text p").html(i),jQuery(".idc_lightbox:visible span.total").data("value",c).text(c)}var l;jQuery(document).bind("idc_lightbox_general",function(t){l=jQuery('.idc_lightbox:visible select[name="level_select"]').val(),e(l)}),jQuery(document).bind("idc_lightbox_level_select",function(t,i){l=jQuery('.idc_lightbox:visible select[name="level_select"] option[data-order="'+i+'"]').val(),e(l)}),jQuery('.idc_lightbox select[name="level_select"]').change(function(t){jQuery(this).has(":visible")&&(l=jQuery(this).val(),e(l,!1))})});