jQuery(function(){var e=jQuery("body");if(!(e.length<1)){e.on("expand",".expandable:not(.expanded)",function(e){if(e.currentTarget==e.target){var t=jQuery(e.target);t.find(".expandable-content").first().slideDown("fast"),t.addClass("expanded")}}),e.on("collapse",".expandable.expanded",function(e){if(e.currentTarget==e.target){var t=jQuery(e.target);t.find(".expandable-content").first().slideUp("fast"),t.removeClass("expanded")}}),e.on("toggle",".expandable",function(e){if(e.currentTarget==e.target){var t=jQuery(e.target);t.is(".expanded")?t.trigger("collapse"):t.trigger("expand")}}),e.on("click",".expandable-switch",function(e){var t=jQuery(e.target);if(t.is("a, button")||(t=t.closest("a, button")),!(t.length<1)){e.preventDefault(),e.stopPropagation();var n=t.closest(".expandable"),a=!n.is(".expanded");if(n.trigger("toggle"),t.is("a")){var r=n.attr("data-hash"),i=r?window.location.href:t.attr("href"),o=i.split("#")[0],d=r?o+"#"+r:i,l=a?d:o;jQuery(window).trigger("urlchange",l)}}}),e.on("contentloaded",function(e){jQuery(e.target).find(".expandable-switch").not("a, button").each(function(){var e=jQuery(this),t=jQuery("<button />").attr("type","button").attr("class",e.attr("class")).text(e.text());e.replaceWith(t)})});var t=function(){var t=document.location.hash.replace(/^#/,"");t.length<1||e.find(".expandable#"+t+', .expandable[data-hash="'+t+'"]').first().trigger("expand")};jQuery(window).on("hashchange",function(e){t()}),t()}}),function(){"use strict";jQuery(document).on("contentloaded",function(e){var t=jQuery(e.target),n=t.find(".expandable-text");n.each(function(){var e=jQuery(this),t=e.text();if(!(t.length<150)){var n=t.slice(0,150),a=t.slice(150,t.length),r=e.attr("data-text-more")||"More",i=e.attr("data-text-less")||"Less";e.html(n+'<span>&hellip;&nbsp;</span><a href="#" class="more">'+r+'</a><span style="display: none;">'+a+' <a href="#" class="less">'+i+"</a></span>")}}),jQuery("a.more",n).click(function(e){e.preventDefault(),jQuery(this).hide().prev().hide(),jQuery(this).next().show()}),jQuery("a.less",n).click(function(e){e.preventDefault(),jQuery(this).parent().hide().prev().show().prev().show()})})}(),function(){"use strict";var e=jQuery(document);e.on("layoutchange",function(){e.find(".expandable").trigger("collapse")}),e.on("contentloaded",function(e){var t=jQuery(e.target);t.find(".field[data-trigger]").each(function(e,n){var a=jQuery(n),r=a.attr("data-trigger"),i=a.find("input"),o=t.find("[data-trigger-name="+r+"]");if(i.length&&o.length){var d=function(){o.removeClass("selected");var e=i.filter(":checked").val()||0;o.find("input:checked").prop("checked",!1).change(),o.filter('[data-trigger-value="'+e+'"]').addClass("selected"),o.filter('[data-trigger-value="'+e+'"]').find('input[type="radio"]').first().trigger("click"),roundAllRadioControls()};i.on("change",d),d()}})}),e.on("contentloaded",function(t){var n=(jQuery(t.target),e.find("#risk-group-dialog-standard, #risk-group-dialog-individual"));e.find(".risk-group > .row > .column.title .has-dialog").on("click",function(){var t=jQuery(this),a=t.closest(".risk-group"),r=a.find(".details").clone().removeAttr("style").removeClass("expandable-content");n.find("h1.title").html(t.text()),r.length>0?(n.find(".details").replaceWith(r),n.find(".has-dialog").each(function(){var n=jQuery(this);n.on("click",function(){e.data("triggerId",t.attr("id"))}),n.trigger("dialog:attach")})):n.find(".details").html("")})}),e.on("contentloaded",function(t){var n=jQuery(t.target),a=n.find('.summary .button[type="submit"]');a.length&&a.on("click",function(t){t.preventDefault(),e.trigger("dialog:open",{source:".dialog.price-change"})})}),e.on("contentloaded",function(t){var n=jQuery(t.target),a=n.find(".column.amount .price");if(a.length){var r,i=function(e){var t=e.parent().width(),n=e.find(".integer");n.css("font-size","");for(var a=parseInt(n.css("font-size"),10),i=a;e.outerWidth()>t;)n.css("font-size",--i);a>i&&(!r||r>i)&&(r=i)},o=function(){r=null,a.each(function(){i(jQuery(this))}),a.find(".integer").css("font-size",r)};e.on("resizeend",o),o()}})}();