//Inpage $(function() { $(window).on('load', function(){ setTimeout(function(){ //$(".scroller").mCustomScrollbar({scrollButtons:{enable:true}}); $(".mCustomScrollbar").mCustomScrollbar({scrollButtons:{enable:true}}); }, 300); }); }); //$(document).ready(function(){ // $(".fancybox").fancybox(); //}); //$(document).ready(function() { // $(".various").fancybox({ // maxWidth : 550, // maxHeight : 500, // fitToView : true, // width : '100%', // height : '100%', // autoSize : true, // closeClick : false, // openEffect : 'none', // closeEffect : 'none' // }); // $(".qualityvideo").fancybox({ // maxWidth : 600, // maxHeight : 450, // fitToView : true, // width : '100%', // height : '100%', // autoSize : true, // closeClick : false, // openEffect : 'none', // closeEffect : 'none' // }); //}); $(function() { $(window).scroll(function() { if($(this).scrollTop() > 250) { $('#toTop').fadeIn(); } else { $('#toTop').fadeOut(); } }); $('#toTop').click(function() { $('body,html').animate({scrollTop:0},800); }); }); $(function() { $(window).scroll(function() { if($(this).scrollTop() > 250) { $('#toTop2').fadeIn(); } else { $('#toTop2').fadeOut(); } }); $('#toTop2').click(function() { $('body,html').animate({scrollTop:0},800); }); }); $(function() { $(window).scroll(function() { if($(this).scrollTop() > 250) { $('#physSearch').fadeIn(); } else { $('#physSearch').fadeOut(); } }); $('#physSearch').click(function() { $('#physSearch').fadeOut(); $('#physSearch').addClass('hide'); }); $('#frmFindPhysician').submit(function(){ if($('#lastname').val() == 'Last Name'){ $('#lastname').val(''); } }) }); $(window).resize(function() { if ($(window).width() > 750){ $('#mobilenav-search').hide(); $('#mobilenav-wrapper').hide(); $('#mobilenav-giving').hide(); } else { $('#smsocialbuttonswrapper').hide(); } }); GLOBAL = {}; GLOBAL.changeNavbarPosition = function(){ var scrollHeight = $(document).scrollTop(); if ($(window).width() > 750){ if (scrollHeight > 50){ $('#navwrapper').addClass('fixedNavbar'); } else { $('#navwrapper').removeClass('fixedNavbar'); } } } $(document).ready(function(){ // call changeNavbarPosition function $(window).scroll(function(){ GLOBAL.changeNavbarPosition(); }); $('#smsocialsearchsubmit').mouseover(function(e){ $('#smsocialsearchinput').fadeIn('fast'); }); $('#smsocialsearchsubmit').mouseout(function(e){ $('#smsocialsearchinput').fadeOut('fast'); }); $('#smsocialsearchinput').mouseover(function(e){ $('#smsocialsearchinput').fadeIn('fast'); }); $('#smsocialsearchinput').hide(); }); $(window).resize(function(){ // call changeNavbarPosition function $(window).scroll(function(){ GLOBAL.changeNavbarPosition(); }); }); $(document).ready(function(){ $(".ACRnavigation a").click(function(){ $(".current").removeClass("current"); $(this).addClass("current"); $(".ACRslide").eq($(this).index()).addClass("current"); }); }); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-PXQ73BD');