").appendTo("body"); scrollbarWidth=scrollbarParent.children().innerWidth()-scrollbarParent.children().height(99).innerWidth(); if (userAgent.match(/(edge\/\d+|Edge\/\d+)/)) {scrollbarWidth=scrollbarWidth+4;} scrollbarParent.remove();} $(document).on("shown.bs.modal",function(){if (!isMobile) {$("body, #chat, .intercom-messenger-frame, .modal").css("margin-right",scrollbarWidth+"px"); $("#bodyheader, #intercom-container iframe").css("padding-right",scrollbarWidth+"px"); if (!$("#proxyscroll").length) {$("
").appendTo("body");}} $("body").css({"overflow-x":"hidden","overflow-y":"hidden"});}); $(document).on("hidden.bs.modal",function(){if (!$(".modal").is(":visible")) {if (!isMobile) {$("body, #chat, .intercom-messenger-frame, .modal").css("margin-right","0"); $("#bodyheader, #intercom-container iframe").css("padding-right","0"); $("#proxyscroll").remove();} $("body").css({"overflow-x":"visible","overflow-y":"scroll"});}}); if (isFF) {$("#bodyheader .badge").css("padding-bottom","5px");} if (isMobile) {$("head").append("");} if (userAgent.match(/(iphone|ipad|ipod)/)) {$("head").append("");} $(".navservices").click(function(){$("#servicesmodal").modal({backdrop:"static", keyboard:false, show:true});}); $(".navcontact").click(function(){$("#contactmodal").modal({backdrop:"static", keyboard:false, show:true});}); $("#contactsubmit").click(function(){$("#contactform").submit();}); $(".results, .modalresults").each(function(){$(this).attr("src","about:blank");}); $(".modalresults").parents(".modal").on("hidden.bs.modal",function(){$(".modalresults",this).css({"height":"0","margin-bottom":"0"}).attr("src","about:blank");}); $(".modal").on("hidden.bs.modal",function(){$(".modal-footer",this).addClass("modalbtnhide");}); $(window).on("shown.bs.modal",function(){$(".modal:visible").each(function(){var shownModal=$(this), checkFooter=setInterval(function(){var shownFooter=shownModal.find(".modal-footer").first(); if (shownFooter.length) {clearInterval(checkFooter); modalButtons(shownFooter);}},0);});}); $("#browsemodal, #setupprojectmodal, #paymentmodal").on("hidden.bs.modal",function(){$(this).find(".modal-content").empty(); $(this).removeData();}); resizeNav(true); setupHeader(); targetForm(""); modalScroll(""); modalPopover($("body")); $("a[data-toggle='popover']").on("shown.bs.popover",function(){modalPopover($(this).next());}); if (isMobile) {$(".modal-content").css("margin-bottom","30px");} else {$(".modal-scroll").scroll(function(){$("[data-toggle=popover]").popover("hide");});} $(".navsigninclient").click(function(){signinModal(true,false,"");}); $(".navsigninpro").click(function(){signinModal(false,false,"");}); $(".navsigninbusiness").click(function(){signinModal(false,true,"");}); $("#signinretrieve").click(function(){$("#signinretrieveform").toggle();}); $("#signinsubmit").click(function(){$("#signinform").submit();}); localDate(); if (typeof(Storage)!=="undefined") {var newBreadcrumbs=localStorage.getItem("breadcrumb38902en"), breadcrumbStart=$("#bodyfooter .breadcrumb li").first(), breadcrumbEnd=$("#bodyfooter .breadcrumb .active").first(), breadcrumbRemove=false; if (breadcrumbStart.length && breadcrumbEnd.length && newBreadcrumbs!=null && newBreadcrumbs!="") {$("#bodyfooter .breadcrumb li").each(function(){if ($(this).is(breadcrumbEnd)) {$(this).before(newBreadcrumbs); return false;} if (breadcrumbRemove) {$(this).remove();} if ($(this).is(breadcrumbStart)) {breadcrumbRemove=true;}});}} $("#summarylarge").find("h5").replaceWith(function(){return "