'; $('.' + $myFancyGalleryName + ' #gal-img-box').append($imgBox); $('.' + $myFancyGalleryName + ' .horizontal-slider .inner').append($imgThumb); $imgCount ++; }; addFancyPhoto('vernal14-1.jpg'); addFancyPhoto('vernal15-1.jpg'); addFancyPhoto('vernal16.jpg'); addFancyPhoto('vernal1-1.jpg'); addFancyPhoto('vernal2-1.jpg'); addFancyPhoto('vernal3-1.jpg'); addFancyPhoto('vernal4-1.jpg'); addFancyPhoto('vernal5-1.jpg'); addFancyPhoto('vernal6-1.jpg'); addFancyPhoto('vernal7-1.jpg'); addFancyPhoto('vernal8-1.jpg'); addFancyPhoto('vernal10-1.jpg'); addFancyPhoto('vernal11-1.jpg'); addFancyPhoto('vernal12-1.jpg'); addFancyPhoto('vernal13-1.jpg'); $('.' + $myFancyGalleryName + ' .thumb-box').removeClass('active'); $('.' + $myFancyGalleryName + ' .inner div:nth-child(3)').addClass('active'); $('.' + $myFancyGalleryName + ' .galCase').removeClass('active'); $('.' + $myFancyGalleryName + ' #gal-img-box div:nth-child(3)').addClass('active'); this.setupFancyGallery($myFancyGalleryName); }; var setupFancyPhotoTwo = function($myFancyGalleryName) { $ = jQuery; var $imgCount = 0, $imageLocat = "/wp-content/themes/charlie-child/images/my-gallery/"; function addFancyPhoto($photoName){ var $imgBox = '
', $imgThumb = ''; $('.' + $myFancyGalleryName + ' #gal-img-box').append($imgBox); $('.' + $myFancyGalleryName + ' .horizontal-slider .inner').append($imgThumb); $imgCount ++; } addFancyPhoto('Heber2.jpg'); addFancyPhoto('Heber3.jpg'); addFancyPhoto('Heber4.jpg'); addFancyPhoto('Heber6.jpg'); addFancyPhoto('Heber1.jpg'); addFancyPhoto('Heber2.jpg'); addFancyPhoto('Heber3.jpg'); addFancyPhoto('Heber4.jpg'); addFancyPhoto('Heber6.jpg'); addFancyPhoto('Heber1.jpg'); $('.' + $myFancyGalleryName + ' .thumb-box').removeClass('active'); $('.' + $myFancyGalleryName + ' .inner div:nth-child(3)').addClass('active'); $('.' + $myFancyGalleryName + ' .galCase').removeClass('active'); $('.' + $myFancyGalleryName + ' #gal-img-box div:nth-child(3)').addClass('active'); this.setupFancyGallery($myFancyGalleryName); }; var setupFancyPhotoThree = function($myFancyGalleryName) { $ = jQuery; var $imgCount = 0, $imageLocat = "/wp-content/themes/charlie-child/images/my-gallery/"; function addFancyPhoto($photoName){ var $imgBox = ''; $imgThumb = ''; $('.' + $myFancyGalleryName + ' #gal-img-box').append($imgBox); $('.' + $myFancyGalleryName + ' .horizontal-slider .inner').append($imgThumb); $imgCount ++; } addFancyPhoto('1.jpg'); addFancyPhoto('2.jpg'); addFancyPhoto('3.jpg'); addFancyPhoto('4.jpg'); addFancyPhoto('5.jpg'); addFancyPhoto('6.jpg'); addFancyPhoto('7.jpg'); addFancyPhoto('8.jpg'); addFancyPhoto('9.jpg'); addFancyPhoto('10.jpg'); addFancyPhoto('11.jpg'); $('.' + $myFancyGalleryName + ' .thumb-box').removeClass('active'); $('.' + $myFancyGalleryName + ' .inner div:nth-child(3)').addClass('active'); $('.' + $myFancyGalleryName + ' .galCase').removeClass('active'); $('.' + $myFancyGalleryName + ' #gal-img-box div:nth-child(3)').addClass('active'); this.setupFancyGallery($myFancyGalleryName); }; var setupFancyGallery = function($myFancyGalleryName) { $ = jQuery; $('.' + $myFancyGalleryName + ' .horizontal-slider').each(function(){ var self = this; self.elements = $(this).find('.inner > *'); var firstChild = self.elements.first(); var lastChild = self.elements.last(); var bigPicCounter = 3; var numBigPic = $('.' + $myFancyGalleryName + ' #gal-img-box div').length; var animationTime = 500; var slidNowTimer = 5000; self.timer = setTimeout(slideLeft, slidNowTimer); function slideLeft(){ clearTimeout(self.timer); firstChild.animate({ 'margin-left':'-'+firstChild.width(), },{ duration: animationTime, complete:function(){ $(this).css('margin-left','0').appendTo(firstChild.parent('.' + $myFancyGalleryName + ' .inner')); } }); lastChild = firstChild; firstChild = firstChild.next('*'); $('.' + $myFancyGalleryName + ' .thumb-box').removeClass('active'); $('.' + $myFancyGalleryName + ' .inner div:nth-child(4)').addClass('active'); $('.' + $myFancyGalleryName + ' .galCase').removeClass('active'); if(bigPicCounter <= (numBigPic - 1)){ bigPicCounter++; } else { bigPicCounter = 1; } $('.' + $myFancyGalleryName + ' #gal-img-box div:nth-child(' + bigPicCounter + ')').addClass('active'); self.timer = setTimeout(slideLeft, slidNowTimer); } function slideRight(){ clearTimeout(self.timer); lastChild.css('margin-left','-'+lastChild.width() + 'px').prependTo(lastChild.parent('.' + $myFancyGalleryName + ' .inner')); lastChild.animate({ 'margin-left':'0', },{ duration:animationTime, }); firstChild = lastChild; lastChild = lastChild.siblings().last(); $('.' + $myFancyGalleryName + ' .thumb-box').removeClass('active'); $('.' + $myFancyGalleryName + ' .inner div:nth-child(3)').addClass('active'); $('.' + $myFancyGalleryName + ' .galCase').removeClass('active'); if(bigPicCounter > 1){ bigPicCounter--; } else { bigPicCounter = numBigPic ; } $('.' + $myFancyGalleryName + ' #gal-img-box div:nth-child(' + bigPicCounter + ')').addClass('active'); self.timer = setTimeout(slideLeft, slidNowTimer); } $('.' + $myFancyGalleryName + ' #my-right-arrow').on('click', slideLeft ); $('.' + $myFancyGalleryName + ' #my-left-arrow').on('click', slideRight ); }); };jQuery(function($) { DefaultSlider(); var lazyAnimator = new bpApp.lazyAnimator(); if(wpPageID === '2') { jQuery('#video-controls').click(function() { if( jQuery("#banner-video").prop('muted') ) { jQuery("#banner-video").prop('muted', false); jQuery(".mute").toggle(); jQuery(".unmute").toggle(); } else { jQuery("#banner-video").prop('muted', true); jQuery(".mute").toggle(); jQuery(".unmute").toggle(); } }); $(".map-overlay").on("click", function(){ $(this).css({"opacity":"0", "pointer-events":"none"}); }); $(".map-area").on("mouseleave", function(){ $(".map-overlay").css({"opacity":"1", "pointer-events":"all"}); }); ReviewSlider( [ { content: "“What an incredible place to get straightened out! ;) The time just flies while you're there. Very professional, relaxed and fun environment. They always have something entertaining for the kids to be involved with. The entire staff sincerely cares about you. They fixed a problem my son had of which other dentists and orthodontics said couldn't be done! I'd give it a 6th star if I could. ”", reviewer: "- Tyler E." }, { content: "“My experience with Wright Orthodontics was phenomenal. The Doctors were amazing, very down to earth, and patient with me. I had a very complex case, and they were able to give me the perfect smile. The facility is great! The service is great! I will definitely recommend them to anyone, and I will be going back with my kids when the day comes!!!”", reviewer: "- Jeff W." }, { content: "“Both Dr. Bill Dr. Todd Wright, plus their entire staff are professional, highly trained, efficient, courteous, and always had my best interests at heart. They saw me through two sets of braces, and multiple sets of retainers. The original cost covered everything. I highly recommend them to anyone needing braces.”", reviewer: "- Bobby D." } ]); } else { } if(wpPageID === '354') { setupFancyPhoto('heber'); setupFancyPhotoTwo('vernal'); } if(wpPageID === '668') { setupFancyPhotoThree('recipes'); } bpApp.controller.setup(); });var BPForms = {};BPForms.ajax = { request: function(action, data, callback) { var url = '/wp-admin/admin-ajax.php'; if (typeof ajaxurl !== 'undefined') { url = ajaxurl; } if (typeof ajax_url !== 'undefined') { url = ajax_url; } var params = {}; if (data && typeof data === 'object') { params = data; } params.action = action; var formData = new FormData(); for (var i in params) { formData.append(i, params[i]); } jQuery.ajax({ url: url, type: 'POST', data: formData, success: callback, cache: false, contentType: false, processData: false }); }, post: function(action, formData, callback) { var self = this; jQuery.ajax({ url: '/wp-admin/admin-ajax.php', type: 'POST', data: formData, success: callback, cache: false, contentType: false, processData: false }); },};BPForms.getParams = function(){ var str = window.location.search; var objURL = {}; var regExp = /([^?=&]+)(=([^&]*))?/g; str.replace(regExp, function(a, b, c, d) { objURL[b] = d; }); return objURL;};BPForms.fillPDFViewer = function(){ var queryString = this.getParams(); var label = document.getElementById('bp-form-viewer-name'); var obj = document.getElementById('bp-form-viewer'); var frame = obj.children[0]; var params = { id: queryString.id }; this.ajax.request('bp_forms_get_form', params, function(data) { data = JSON.parse(data); label.textContent = data.name; var url = '/wp-content/uploads/bp-forms/' + data.path; obj.data = url; });};BPForms.markAsRead = function(id){ var params = { id: id }; this.ajax.request('bpforms_fr_markread', params, function(data) { });};(function(r,G,f,v){var J=f("html"),n=f(r),p=f(G),b=f.fancybox=function(){b.open.apply(this,arguments)},I=navigator.userAgent.match(/msie/i),B=null,s=G.createTouch!==v,t=function(a){return a&&a.hasOwnProperty&&a instanceof f},q=function(a){return a&&"string"===f.type(a)},E=function(a){return q(a)&&0The requested content cannot be loaded.
Please try again later.