").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("");} $(".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("breadcrumbpost95210en"), 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;}});}} setTimeout(function(){$(document).trigger("afterready");},1);}); $(document).bind("afterready",function(){$("html").css("opacity","1"); if ($("#bodyheader").length) {$("#bodyheader").css("opacity","1");}}); $(function(){$("[data-toggle=popover]").popover();}); $("body").on("click",function(e){$("[data-toggle=popover]").each(function(){if (!$(this).is(e.target) && $(this).has(e.target).length===0 && $(".popover").has(e.target).length===0) {$(this).popover("hide");}});}); $(window).resize(function(){$("[data-toggle=popover]").popover("hide");}); $(window).resize(function(){resizeNav(false); modalScroll(""); modalButtons($(".modal-footer:visible")); if ($.isFunction(window.froalaHeight)) {froalaHeight();} $(".results, .modalresults, .message").each(function(){if ($(this).contents().has("title").length && !($(this).hasClass("message") && $(this).prev().hasClass("msginitial"))) {iframeSize($(this));}});}); $(function(){$("[href^='#']").not("[href~='#']").click(function(e){e.preventDefault(); $(window).scrollTop($("[id*='"+$(this).attr("href").split("#")[1]+"']").offset().top-68);});});