",{onload:"this.width = this.naturalWidth; this.height = this.naturalHeight",src:a.attr("data-thumb"),alt:a.attr("alt")})),""!==a.attr("data-thumb-alt")&&t.attr("alt",a.attr("data-thumb-alt")),"thumbnails"===s.vars.controlNav&&!0===s.vars.thumbCaptions){var l=a.attr("data-thumbcaption");if(""!==l&&undefined!==l){var d=e("").addClass(o+"caption").text(l);t.append(d)}}var v=e("
The requested content cannot be loaded.
Please try again later.
- Example Patient
' ), this.createSlideOption('', '', '', '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
' ), this.createSlideOption('', '', '', '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
' ) ]; this.createSlideShow('reviews', '', false, optionsArray); }}; var appNav = new bpApp.navigation('nav-scroll-container', 'main-nav-container'); appNav.setup(); jQuery(function() { if(wpPageID === '2') { } else { } bpMain.setupCoolMap(); var lazyAnimator = new bpApp.lazyAnimator(); bpMain.setupAppDefault(); });jQuery(function(){ "use strict"; function track(event, name) { if(typeof _gaq !== 'undefined') { _gaq.push(['_trackEvent', event, name]); } } jQuery("a[href^='tel:']").click(function() { track('Mobile', 'Click to Call'); });});jQuery(document).ready(function(){ var pattern = /(iphone|android|ipod|ipad|blackberry)/i; if((navigator.userAgent.match(pattern))) { jQuery('li.menu-item > a, li.page_item > a').each(function() { if (jQuery(this).parent('li').find('ul.sub-menu, ul.children').length) { jQuery(this).click(function(){ if(!jQuery(this).hasClass('hover-menu-expanded')) { jQuery('.hover-menu-expanded').removeClass('hover-menu-expanded'); jQuery(this).parent('li').trigger('hover'); jQuery(this).addClass('hover-menu-expanded'); return false; } }); } }); } });var BpFormValidator = null; jQuery(function(){ var Validator = { errorClass: 'error_val', acceptedClass: 'success_val', isValidEmail: function(email) { var regExp = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; return regExp.test(email); }, isValidField: function(val) { if(typeof val !== 'undefined' && val != '') { return true; } return false; }, isValidPhone: function(phone) { var pattern = /[^0-9]/g; phone = phone.toString().replace(pattern, ''); if(!isNaN(phone)) { if(phone.substr(0, 1) === '1') { phone = phone.substring(1); } if(phone.length === 10 && phone.substr(0, 3) !== '555') { return true; } } return false; }, updateElement: function($field, isValid) { if(isValid == true) { $field.removeClass(this.errorClass); $field.addClass(this.acceptedClass); return true; } else { $field.addClass(this.errorClass); $field.removeClass(this.acceptedClass); return false; } }, resetElement: function($field) { $field.removeClass(this.errorClass); $field.removeClass(this.acceptedClass); }, validateElement: function($element) { var valid = true; var value = $element.val(); if(value === null || value === "" || value === $element.attr('alt')) { this.updateElement($element, false); valid = false; } else if($element.hasClass('field_email')) { if(this.isValidEmail(value)) { this.updateElement($element, true); } else { this.updateElement($element, false); valid = false; } } else { this.updateElement($element, true); } return valid; }, validateForm: function(form) { var error = 0; var self = this; form.find('.val').each(function(i) { var element = jQuery(this); if(self.validateElement(element) === false) { error++; } }); return error; } }; BpFormValidator = { validator: Validator, monitor: function(form) { this.setupEvents(form); if(form) { var self = this; form.submit(function() { form.removeClass('form_failure'); var valid = self.validate(form); if(valid === true) { return self.submit(form); } form.addClass('form_failure'); return false; }); } }, setupEvents: function(form) { if(form) { var validator = this.validator; form.find("input, textarea").each(function() { var element = jQuery(this); var alt = element.attr('alt'); var original_text = alt? alt: ''; element.focus(function() { validator.resetElement(element); if(this.value === original_text) { this.value = ""; } }); element.blur(function() { if(this.value === original_text || this.value === "" || this.value === null) { this.value = original_text; } }); }); } }, validate: function(form) { var errors = this.validator.validateForm(form); return (errors > 0)? false : true; }, trackAction: function(form, action) { var name = form.find('input[name=bpi_form_name]').val(); if (!name) { name = 'Contact Form'; } if(typeof gtag === 'function') { gtag('event', action); } else if(typeof _gaq !== 'undefined') { _gaq.push(['_trackEvent', action, name]); } }, submit: function(form) { form.addClass('form_submitting'); this.trackAction(form, 'Click Tracking'); var name = form.find('input[name=bpi_form_name]').val(); console.log(name); var file_upload = form.find('input[type=file]').length; if (!file_upload) { var self = this; var data = this.getFormData(form); jQuery.post(ajax_url, data, function(e) { var elements = form.find("input[type=text], select, textarea"); elements.val(""); elements.removeClass(self.validator.acceptedClass); if (e.match(/1/)) { form.addClass('form_success'); if (name.match(/appointment[\s-_]?request/i)) { self.trackAction(form, 'appointment_request'); } else { self.trackAction(form, 'form_submission'); } } else if (e.match(/^alert:/)) { alert(e.replace(/^alert:/,'')); } else if (e.match(/(^\/\w+|http)/)) { window.location = e; } else { form.addClass('form_failure'); } }); return false; } form.append(''); return true; }, getFormData: function(form) { var data = { action: 'form_submittion', reason: form.find('input[name=bpi_form_id]').val(), data: form.serialize() }; form.find('[type="time"]').each(function(){ var element = jQuery(this), value = element.val(); var $type = element.attr('type'); var newValue = value; if($type == 'time') { var hour = parseInt(value); if(hour > 12){ hour = hour-12; var minute = value.split(':'); minute = parseInt(minute[1]); if(hour < 10) { hour = '0'+hour; } if(minute < 10) { minute = '0'+minute; } newValue = hour+'%3A'+minute+'+PM'; } else { newValue = value+'+AM'; } } value = value.replace(':','%3A'); data.data = data.data.replace(value,newValue); }); return data; } }; jQuery("form input[name=bpi_form_id]").each(function() { var form = jQuery(this).parents('form'); BpFormValidator.monitor(form); });});