',iframe:'",error:'
The requested content cannot be loaded.
Please try again later.
- Example Patient
', className: '', image: '', alt: '', url: '', crumbContent: '' }, { title: '', content: 'This is where rotating reviews can go. Three to five lines will be fine. The reviews will auto rotate every few seconds or so. This is where rotating reviews can go. Three to five lines will be fine. The reviews will auto rotate every few seconds or so. This is where rotating reviews can go. Three to five lines will be fine.”- Example Patient
', className: '', image: '', alt: '', url: '', crumbContent: '' }, { title: '', content: 'This is where rotating reviews can go. Three to five lines will be fine. The reviews will auto rotate every few seconds or so. This is where rotating reviews can go. Three to five lines will be fine. The reviews will auto rotate every few seconds or so. This is where rotating reviews can go. Three to five lines will be fine.”- Example Patient
', className: '', image: '', alt: '', url: '', crumbContent: '' } ]; var startNumber = Math.round(Math.random() * (optionsArray.length - 1)); var spotlight = new bpApp.slideShow('reviews', '', false, startNumber); spotlight.duration = 7000; spotlight.setup(optionsArray); }, setupSlideshow4: function() { var optionsArray = [ { title: '', content: '', className: '', image: 'ORL1.jpg', alt: '', url: '', crumbContent: '' }, { title: '', content: '', className: '', image: 'ORL2.jpg', alt: '', url: '', crumbContent: '' }, { title: '', content: '', className: '', image: 'ORL3.jpg', alt: '', url: '', crumbContent: '' } ]; var startNumber = Math.round(Math.random() * (optionsArray.length - 1)); var spotlight4 = new bpApp.slideShow('orlando', '/images/orlando/', false, 0); spotlight4.duration = 7000; spotlight4.setup(optionsArray); }, setupSlideshow5: function() { var optionsArray = [ { title: '', content: '', className: '', image: 'CL4.jpg', alt: '', url: '', crumbContent: '' }, { title: '', content: '', className: '', image: 'CL5.jpg', alt: '', url: '', crumbContent: '' }, { title: '', content: '', className: '', image: 'CL1.jpg', alt: '', url: '', crumbContent: '' }, { title: '', content: '', className: '', image: 'CL2.jpg', alt: '', url: '', crumbContent: '' }, { title: '', content: '', className: '', image: 'CL3.jpg', alt: '', url: '', crumbContent: '' } ]; var startNumber = Math.round(Math.random() * (optionsArray.length - 1)); var spotlight5 = new bpApp.slideShow('clermont', '/images/clermont/', false, 0); spotlight5.duration = 7000; spotlight5.setup(optionsArray); }, addVideoPanels: function(attrName) { attrName = attrName || 'data-video-src'; var self = this; var elements = jQuery('[' + attrName + ']').each(function(index, element) { element = jQuery(element); var src = element.attr('data-video-src'); if(src) { var title = element.attr('data-title'); element.on('click', function() { self.viewVideo(title, src); }); } }); }, viewVideo: function(title, src) { var vid = { title: title, source: src }; var panel = new bpApp.videoPanel(vid, '', document.body); panel.setup(); panel.display(); }, setupFancyBox: function() { jQuery(".pics").fancybox({ openEffect:'elastic', closeEffect:'elastic', helpers: { overlay : { locked: false } } }); jQuery(".videos").click(function() { jQuery.fancybox({ openEffect:'elastic', closeEffect:'elastic', helpers: { overlay : { locked: false } }, 'padding' : 0, 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none', 'title' : this.title, 'width' : 680, 'height' : 495, 'href' : this.href.replace(new RegExp("watch\?v=", "i"), 'v/'), 'type' : 'swf', 'swf' : { 'wmode' : 'transparent', 'allowfullscreen' : 'true' } }); return false; }); }, setupMinifyNavigation: function() { var scroller = new bpApp.scrollHeader('navarea', 'sticky', 400); }, setupAutoScroll: function() { var exceptions = ['myModal']; var pattern = /^\//; jQuery('a[href*="#"]:not([href="#"])').click(function() { if (location.pathname.replace(pattern,'') === this.pathname.replace(pattern,'') && location.hostname === this.hostname) { var hash = this.hash.slice(1), index = jQuery.inArray(hash, exceptions); if(index === -1) { var target = jQuery(this.hash); target = target.length ? target : jQuery('[id=' + hash +']'); if (target.length) { jQuery('html,body').animate({ scrollTop: target.offset().top }, 800); return false; } } } }); }, setupServicesIframe: function() { var IframeLoader = function(id) { this.id = id; this.element = null; this.document = null; }; IframeLoader.prototype = { constructor: IframeLoader, setup: function() { this.element = document.getElementById(this.id); if(this.element) { this.addEvents(); } }, getDocument: function() { var ifrm = this.element; if(this.document === null && ifrm) { this.document = ifrm.contentDocument? ifrm.contentDocument : ifrm.contentWindow.document; } return this.document; }, setHeight: function() { var getHeight = function(doc) { var body = doc.body, html = doc.documentElement; var height = Math.max( body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight ); return height; }; var ifrm = this.element; var doc = this.getDocument(); if(doc) { ifrm.style.visibility = 'hidden'; ifrm.style.height = getHeight(doc) + "px"; ifrm.style.visibility = 'visible'; } window.setTimeout(function() { ifrm.style.height = getHeight(doc) + "px"; }, 120); }, resetHeight: function() { var ifrm = this.element; ifrm.style.height = 'auto'; }, addEvents: function() { var self = this; jQuery(this.element).on('load', function() { self.setHeight(); }); jQuery(window).on('resize', function() { self.resetHeight(); self.setHeight(); }); } }; var iframeLoader = new IframeLoader('servicesIframe'); iframeLoader.setup(); }, newStickyFooter: function () { jQuery(function($) { var windowHeight = $(window).height(); var bodyHeight = $('body').height(); if (bodyHeight <= windowHeight) { var missHeight = windowHeight - bodyHeight; var contentHeight = missHeight + $('#main').height(); $('#main').css('min-height', contentHeight); } }); }, setupGoogleMaps: function(attrName) { var setupMaps = function() { attrName = attrName || 'data-map-src'; var elements = jQuery('iframe[' + attrName + ']').each(function(index, element) { element = jQuery(element); var src = element.attr(attrName); if(src) { element.addClass('fadeIn'); element.attr('src', src); } }); }; window.setTimeout(setupMaps, 5000); }, setupCoolMap: function() { jQuery('.map-overlay').click(function() { jQuery(this).fadeOut(); }); jQuery('.map-area').mouseleave(function() { jQuery('.map-overlay').fadeIn(); }); }, modalFormReset: function() { jQuery('body').click(function() { if (!jQuery('.modal').hasClass('in')) { jQuery('.modal input').removeClass('error_val'); jQuery('.modal textarea').removeClass('error_val'); jQuery('.modal input').removeClass('success_val'); jQuery('.modal textarea').removeClass('success_val'); document.getElementById("custom_form2").reset(); jQuery('#custom_form2').removeClass('form_failure'); } }); }, formCheckBoxYes: function() { jQuery("input.toggle").val("No"); jQuery('input.toggle').on('change', function() { if ( jQuery(this).is(':checked') ) { jQuery("input.toggle").val('Yes'); } else { jQuery("input.toggle").val("No"); } }); }, setupPeekThrough: function() { jQuery('section[data-type="background"]').each(function(){ var $bgobj = jQuery(this); jQuery(window).scroll(function() { var yPos = -(jQuery(window).scrollTop() / $bgobj.data('speed')); var coords = '50% '+ yPos + 'px'; $bgobj.css({ backgroundPosition: coords }); }); }); }, setupNavEvents: function() { var self = this; var button = jQuery('#main-nav-toggle'); button.on('click', function(){ self.toggleNav(); }); }, navHidden: true, toggleNav: function() { var header = jQuery('.top-banner-row'), button = jQuery('#main-nav-toggle'), nav = jQuery('#main-nav-container'), footBar = jQuery('.bottom-bar'), address = jQuery('.bottom-bar.inner'); if(this.navHidden === true) { this.navHidden = false; header.addClass('opened nav-d'); nav.addClass('open'); button.addClass('nav-close'); footBar.addClass('nav-d'); if(jQuery(window).width() < 767) { address.css({'bottom': '60px', 'position': 'fixed'}); } else { address.css('position', 'fixed'); } appNav.groups.selectPrimaryGroup(); } else { this.navHidden = true; header.removeClass('opened nav-d'); nav.removeClass('open'); button.removeClass('nav-close'); footBar.removeClass('nav-d'); address.css({'position': 'relative', 'bottom': '0px'}); } }, addNewPublication: function() { $=jQuery; var publicationBox = $('#publicationBox'), publicationCount = 1, newPubBtn = $('#newPubBtn'); newPubBtn.on('click', function() { publicationCount++; var newPublication = ''; publicationBox.append(newPublication); }); }}; var appNav = new bpApp.navigation('nav-scroll-container', 'main-nav-container'); appNav.setup(); jQuery(function($) { if(wpPageID === '2') { } else { } if(wpPageID === '156') { bpMain.addNewPublication(); } if(wpPageID === '176') { bpMain.enableSlideShow('orlando'); } if(wpPageID === '172') { bpMain.enableSlideShow('clermont'); } bpMain.enableSlideShow('controller'); bpMain.setupCoolMap(); var lazyAnimator = new bpApp.lazyAnimator(); bpMain.setupAppDefault(); var distance = $('.headerarea').offset().top, $window = $(window), fixedHeader = false; $window.on('scroll', function() { var scrolltop = $window.scrollTop(); if ( distance <= scrolltop && fixedHeader === false ) { $('.headerarea').addClass('fixed'); fixedHeader = true; } else if(distance >= scrolltop && fixedHeader === true) { $('.headerarea').removeClass('fixed'); fixedHeader = false; } }); });