﻿$(function(){$("#services-modal").click(function(){$('#messageModal').modal('show');return false;});$(".doctor-profile .read-more").click(function(){$('#messageModallLabel span').html($(this).parent().find('h3').text());$('.modal-body .Normal').html($(this).parent().find('.pop-up-content').html());$('#messageModal').modal('show');return false;});$('.accordion-item h3').on("click",function(){var activeitem=$('.accordion-item .Normal.active');if($(this).parent()[0]!==activeitem[0]&&activeitem!==undefined){activeitem.find("h3").siblings().slideToggle(300);activeitem.toggleClass('active');}
$(this).siblings().slideToggle(300);$(this).parent().toggleClass('active');});$("#show-feedback-form").click(function(){$("#feedback-form").slideToggle(800);return false;});$("#enquire-here").click(function(){$("#work-with-us-form").slideToggle(800);return false;});if($('#ControlBar_ControlPanel').length){document.documentElement.className+=" controlpanel";}
var version=detectIE();if((version===false)||(version>=12)){}else{$('body').addClass('IE-old');}
$('.dropdown-toggle').click(function(){if(!$(this).hasClass('not-clickable')){var location=$(this).attr('href');window.location.href=location;return false;}});$("body").wrapInner("<div />");$("#navigation").mmenu({offCanvas:{position:"right"},extensions:["pageshadow"],onClick:{preventDefault:false},slidingSubmenus:true},{clone:true});var api=$('#navigation').data('mmenu');if(api){api.bind('closed',function(){$('.toggle-nav i.fa-bars').addClass('active');$('.toggle-nav i.fa-close').removeClass('active');});}
$(".toggle-nav").click(function(){$('.toggle-nav i').toggleClass('active');});$('.mm-menu .dropdown-menu').each(function(){$(this).removeClass('dropdown-menu');});$('nav ul li.last a, #book-housecall').attr('onClick',"gtag('event', 'conversion', { 'send_to': 'AW-719151674/1sGkCOWBlOMBELrE9dYC'});");var currentSection=location.pathname.split('/');currentSection=currentSection[1];$('.nav a[href="http://'+location.host+'/'+currentSection+'"]').parent().addClass('active');$(window).scroll(function(event){if(!$('body').hasClass('dnnEditState')){var scroll=$(window).scrollTop();if(scroll>200){$('header').addClass('scroll');$('body').addClass('scroll');}else{$('header').removeClass('scroll');$('body').removeClass('scroll');}}});$('.search-input').keypress(function(e){var key=e.which;if(key==13)
{e.preventDefault();var $searchQuery=$(this).val();window.location.href="/Search-Results?q="+encodeURIComponent($searchQuery);return false;}});$('#search button').click(function(e){e.preventDefault();var $searchQuery=$('#search input').val();window.location.href='/Search-Results?q='+encodeURIComponent($searchQuery);});$('.close-search').click(function(e){e.preventDefault();$('#search').slideToggle();$('.open-search').show();$(this).hide();});$('.open-search').click(function(e){e.preventDefault();$('#search').slideToggle();$('.close-search').show();$(this).hide();});$('.main-banner,.mini-banner').each(function(){var src=$(this).find('.image').attr('src');$(this).css("background-image","url('"+src+"')");});if($.trim($('.main-banner .Normal').text()).length==0){$('.main-banner').addClass('no-text');}
$('.slider').slick({arrows:false,dots:true,fade:true,autoplay:true,autoplaySpeed:2000,cssEase:'ease-in-out',pauseOnHover:false});if(!$('.personalBarContainer')[0]){$('.banner-pane table').hide();}
$('.tooltips').tooltip();$('.blocks td a.tool').closest('td').addClass('tools');$('.blocks').each(function(){if($(this).find('td').length==1){$(this).addClass('single');}});$('.quick-link').each(function(){$(this).append('<a class="overlay-link" href="'+$(this).find('a').attr('href')+'"></a>');});if($('.DnnModule-LiveAccordion')[0]){function timeout(){setTimeout(function(){if($('.ui-accordion')[0]){var count=1;$('.ui-accordion-header a').each(function(){$(this).html('<span class="number">'+count+'</span>'+$(this).html());count++;});}else{timeout();}},2000);}
timeout();}
$('.LiveForm.Custom select').each(function(){if($(this).val()!=""){$(this).parents('li').find('label').addClass('active');}});$('.LiveForm.Custom input, .LiveForm.Custom textarea').each(function(){if($(this).val()){$(this).parents('li').find('label').addClass('active');}});$('.LiveForm.Custom input, .LiveForm.Custom textarea').focus(function(){$(this).parents('li').find('label').addClass('active');});$('.LiveForm.Custom input, .LiveForm.Custom textarea').blur(function(){if(!$(this).val()){$(this).parents('li').find('label').removeClass('active');}});$('.LiveForm.Custom select').change(function(){if($(this).val()!=""){$(this).parents('li').find('label').addClass('active');}else if($(this).parents('li').find('label').hasClass('active')){$(this).parents('li').find('label').removeClass('active');}});$(window).resize(resizeFunctions);window.addEventListener("resize",function(){resizeFunctions();},false);window.addEventListener("orientationchange",function(){resizeFunctions();},false);resizeFunctions();var elapsedBrowsingTime=(localStorage.getItem('elapsedBrowsingTime'))||0;if(elapsedBrowsingTime=='elapsed'){clearInterval(intervalId);}
else{elapsedBrowsingTime=parseInt(elapsedBrowsingTime);if(!(document.referrer&&document.referrer.includes('housecall'))){elapsedBrowsingTime=0;}
var intervalId=setInterval(checkElapsedTime,1000);setTimeout(function(){clearInterval(intervalId);},30000);}
function checkElapsedTime(){elapsedBrowsingTime++;console.log(elapsedBrowsingTime);localStorage.setItem('elapsedBrowsingTime',elapsedBrowsingTime);if(elapsedBrowsingTime>=20){$('#hcModal').modal({backdrop:'static',keyboard:false});elapsedBrowsingTime=0;localStorage.setItem('elapsedBrowsingTime',elapsedBrowsingTime);}}
$('#hcModal').on('hidden.bs.modal',function(){localStorage.setItem('elapsedBrowsingTime','elapsed');clearInterval(intervalId);});$('#hcModal .housecall-btn').click(function(){localStorage.setItem('elapsedBrowsingTime','elapsed');clearInterval(intervalId);})});var waitForFinalEvent=(function(){var timers={};return function(callback,ms,uniqueId){if(!uniqueId){uniqueId="Don't call this twice without a uniqueId";}
if(timers[uniqueId]){clearTimeout(timers[uniqueId]);}
timers[uniqueId]=setTimeout(callback,ms);};})();function resizeFunctions(){if($('.breaking-news-announcement .elem')[0]){$('.header').css('top',$('.breaking-news-announcement .elem').height()+'px');}
resizeBoxes($(".quick-link-container"));resizeBoxes($(".quick-link-container-b"));resizeBoxes($(".doctor-profile"));resizeBoxes($(".xmod-testimonials"));}
function resizeBoxes(elem){elem.find('.same-height').css('height','auto');var height=0;elem.find('.same-height').each(function(){height=Math.max(height,$(this).outerHeight());});elem.find('.same-height').css('height',height+'px');}
function restoreSizeBoxes(elem){elem.find('.same-height').css('height','auto');}
function detectIE(){var ua=window.navigator.userAgent;var msie=ua.indexOf('MSIE ');if(msie>0){return parseInt(ua.substring(msie+5,ua.indexOf('.',msie)),10);}
var trident=ua.indexOf('Trident/');if(trident>0){var rv=ua.indexOf('rv:');return parseInt(ua.substring(rv+3,ua.indexOf('.',rv)),10);}
var edge=ua.indexOf('Edge/');if(edge>0){return parseInt(ua.substring(edge+5,ua.indexOf('.',edge)),10);}
return false;}
function insertTrackEvent(centreURLAppointment,centre){}
;;;!function(o,e){function i(o){for(var e=i.options,t=e.parser[e.strictMode?"strict":"loose"].exec(o),n={},a=14;a--;)n[e.key[a]]=t[a]||"";return n[e.q.name]={},n[e.key[12]].replace(e.q.parser,function(o,i,t){i&&(n[e.q.name][i]=t)}),n}i.options={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};var t=function(){var e=!1;return function(o){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(o)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(o.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||o.opera),e}();o.dnnModal={load:function(){try{if(void 0!==parent.location.href){var o=parent;if(void 0!==o.parent.$find)if(-1==location.href.indexOf("popUp")||o.location.href.indexOf("popUp")>-1){var e=o.jQuery("#iPopUp"),i=e.dialog("option","refresh"),t=e.dialog("option","closingUrl"),n=e.dialog("option","minWidth"),a=e.dialog("option","minHeight"),r=e.dialog("option","showReturn");t||(t=location.href),!0===e.dialog("isOpen")&&e.dialog("option",{close:function(o,e){dnnModal.refreshPopup({url:t,width:n,height:a,showReturn:r,refresh:i})}}).dialog("close")}else o.jQuery("#iPopUp").dialog({autoOpen:!1,title:document.title})}return!1}catch(o){return!0}},show:function(n,a,r,l,d,s){var p=e("#iPopUp");p.length&&(p[0].src="about:blank",p.remove()),p=e('<iframe id="iPopUp" name="iPopUp" src="about:blank" scrolling="auto" frameborder="0"></iframe>'),e(document.body).append(p),e(document).find("html").css("overflow","hidden");for(var c=document.styleSheets,h=!1,m=0,g=c.length;m<g;m++){var u=c[m].href;if("string"==typeof u&&u.indexOf("admin.css")>-1){h=!0;break}}var f=!h&&(e(o).width()<481||t);f?e("html").addClass("mobileView"):e("html").removeClass("mobileView");var w=0,b=function(){p.prev(".dnnLoading").remove()},v=function(){p.on("load",function(){b();var e=document.getElementById("iPopUp"),t=o.location.hostname.toLowerCase(),a=o.location.port.toLowerCase(),r=i(n),l=r.host.toLowerCase(),d=r.port.toLowerCase();if(l=l||t,d=d||a,t===l&&a===d)try{if(f){var s=e.contentDocument.body,c=e.contentDocument.documentElement;c.style.width=w+"px",s.className+="mobileView dnnFormPopup dnnFormPopupMobileView";var h=Math.max(s.scrollHeight,s.offsetHeight,c.clientHeight,c.scrollHeight,c.offsetHeight);p.css("height",h+100).dialog("option","position",{my:"top",at:"top"})}e.contentWindow.dnnModal.show=function(o,e,i,t,n,a){var r=parent.jQuery("#iPopUp");a||(a=location.href),r.dialog("isOpen")&&r.dialog("option",{close:function(){parent.dnnModal.show(o,e,i,t,n,a)}}).dialog("close")}}catch(o){}}),p[0].src=n,"function"==typeof e.ui.dialog.prototype.options.open&&e.ui.dialog.prototype.options.open.apply(this,arguments)};if(f){w=e(o).width()-100;var y=e("body").css("height");p.dialog({modal:!0,autoOpen:!0,dialogClass:"dnnFormPopup dnnFormPopupMobileView",resizable:!1,closeOnEscape:!0,refresh:d,showReturn:a,closingUrl:s,minHeight:r,position:{my:"top",at:"top"},draggable:!1,open:function(){e("#Form").hide(),e("body").css("height","auto"),p.parent().css({width:"auto",left:"0",right:"0",top:"0","box-shadow":"none"}),o.scrollTo(0,0),v()},close:function(){e("#Form").show(),y&&e("body").css("height",y),o.scrollTo(0,0),o.dnnModal.closePopUp(d,s)}})}else if(p.dialog({modal:!0,autoOpen:!0,dialogClass:"dnnFormPopup",position:{my:"center",at:"center"},minWidth:l,minHeight:r,maxWidth:1920,maxHeight:1080,resizable:!0,closeOnEscape:!0,refresh:d,showReturn:a,closingUrl:s,open:v,close:function(){o.dnnModal.closePopUp(d,s)}}).width(l-11).height(r-11),0===p.parent().find(".ui-dialog-title").next("a.dnnModalCtrl").length){var k=e('<a class="dnnModalCtrl"></a>');p.parent().find(".ui-dialog-titlebar-close").wrap(k);var x=e('<a href="#" class="dnnToggleMax"><span>Max</span></a>');p.parent().find(".ui-dialog-titlebar-close").before(x),x.click(function(i){i.preventDefault();var t,n,a=e(o),r="center",l="center",d=0,s=0;if(e("button.ui-dialog-titlebar-close").length&&(s=e("button.ui-dialog-titlebar-close").parent(".dnnModalCtrl").height(),d=e("button.ui-dialog-titlebar-close").parent(".dnnModalCtrl").width()),p.data("isMaximized")){var c=p.data("height")+100;c>=a.height()&&(c=p.data("height")),t=c-s,n=p.data("width"),p.data("isMaximized",!1)}else{p.data("height",p.dialog("option","minHeight")).data("width",p.dialog("option","minWidth"));var h=0;e("#personaBar-iframe").length&&(h=e("#personaBar-iframe").width()),n=a.outerWidth()-h-d/7.5-40,t=a.height()-s,r="right-"+d/5.5+" center",l="right center-"+s/11,p.data("isMaximized",!0)}p.dialog("option","height",t),p.dialog("option","width",n),p.dialog("option","position",{my:r,at:l,of:o})})}if(function(){var o=e('<div class="dnnLoading"></div>');o.css({width:p.width(),height:p.height()}),p.before(o)}(),"true"===a.toString())return!1},closePopUp:function(o,i){var t=parent,n=t.jQuery("#iPopUp");void 0!==o&&null!=o||(o=!0),"true"==o.toString()?(void 0!==i&&""!=i||(i=t.location.href),t.location.href=i,n.hide()):n.dialog("option","close",null).dialog("close"),e(t.document).find("html").css("overflow","")},refreshPopup:function(o){var e=parent,i=e.parent;e.location.href!==i.location.href&&e.location.href!==o.url?i.dnnModal.show(o.url,o.showReturn,o.height,o.width,o.refresh,o.closingUrl):dnnModal.closePopUp(o.refresh,o.url)}},o.dnnModal.load()}(window,jQuery);
;;;