function trunc(n){return Math.trunc?Math.trunc(n):isNaN(n)?0:n>0?Math.floor(n):Math.ceil(n)}function starRating(n){n=Math.round(n*2)/2;var t=trunc(n).toString(),i=n%1;return i>=.5&&(t+="5"),"ds-stars ds-stars"+t}function addListRatings(){for(var n=[],i=new Date,r=new Date(2015,01,01),u=Math.round(Math.abs((r.getTime()-i.getTime())/864e5)).toString(),t=0;t<model.providers.length;t++)n.push(model.providers[t].npi);n.length!==0&&$.ajax({url:"https://api.binaryfountain.com/api/service/bsr/comments?applicationId=999939525427243&personId="+n.join("&personId=")+"&minSurveyCount=30&minRatingCount=0&days="+u,async:!0,crossDomain:!0,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"}}).done(function(t){var r=0,i=t.data.entities;$(".doct-sea-results2").each(function(){var o=$(this),e=o.find(".physicianRatings"),t,f,u;if(e.length)for(e.attr("id",n[r]),t=0;t<i.length;t++)if(n[r]===i[t].id){f=i[t].overallRating!=null&&i[t].overallRating.value&&i[t].overallRating.value!=="--"?i[t].overallRating.value:0;i[t].overallRating!=null&&i[t].overallRating.value&&i[t].overallRating.value!=="--"&&(u="",u+="<div class='ds-summary'>",u+="    <div style='display: inline-block'>",u+="      <span style='display: inline-block;' class='"+starRating(f)+"'><\/span>",u+="      <div style='display: inline-block' class='ds-xofy'>",u+="        <span class='ds-average'>"+f+"<\/span>",u+="        <span class='ds-average-max'>/5<\/span>",u+="      <\/div>",u+="    <\/div>",u+="<\/div>",$("#"+n[r]).html(u));break}r++})})}function modalPopUp(n){return $("#eli-ins-plans").modal(),$("#eli-ins-plans").modal(),n&&(n.stopPropagation(),n.preventDefalt()),!1}function resizeIframe(n){n.style.height=n.contentWindow.document.body.scrollHeight+"px"}function modalPopUpOS(n){$("#EOSiFrame").attr("src",n);$("#epic-online-sch").modal()}function mobilecheck(){var n=!1;return function(t){(/(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|xda|xiino|android|ipad|playbook|silk/i.test(t)||/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(t.substr(0,4)))&&(n=!0)}(navigator.userAgent||navigator.vendor||window.opera),n}function accordionClick(n){return function(){accordionArray[n].classList.contains("openAccordion")?(accordionArray[n].classList.remove("openAccordion"),accordionArray[n].classList.add("closeAccordion")):(accordionArray[n].classList.remove("closeAccordion"),accordionArray[n].classList.add("openAccordion"))}}function setUpdateLinkBackground(){for(var t=$(".doctorProfileUpdateSection"),n=t.prev();!n.is(":visible");)n=n.prev();t.css({"background-color":n.css("background-color")})}function initMap(n,t){for(var l,y={url:"/MediaLibrary/Images/tealGMMarker.svg",scaledSize:new google.maps.Size(30,30)},p={url:"/MediaLibrary/Images/mulberryMarker.svg",scaledSize:new google.maps.Size(30,30)},a=t.split("|"),i=[],o,v,h,r,e=0;e<a.length;e++)o=a[e].replace(/&quot;/g,'"'),o="{"+o+"}",v=JSON.parse(o),i.push(v);var u=i[0],f=new google.maps.Map(n,{center:{lat:parseFloat(u.latitude)*1.15,lng:parseFloat(u.longitude)},zoom:9,mapTypeControl:!1}),w='<div class="content gmContent"><div class="mapBuildingName">'+u.buildingname+'<\/div><div class="mapAddress">'+u.street1+'<\/div><div class="mapAddress">'+u.street2+'<\/div><div class="mapAddress">'+u.city+", "+u.state+" "+u.zip+'<\/div><div><a href="tel:'+u.phone+'" class="mapPhoneNumber">'+u.phone+'<\/a><div><div><a class="mapDirections" href="'+u.mapurl+'" target="_blank" data-analytics="fad:profile-locations-map-directions">Get Directions<\/a><\/div><\/div>',s=new google.maps.InfoWindow({content:'<div class="scrollFix">'+w+"<\/div>"});if(google.maps.event.addListener(s,"domready",function(){if(typeof Invoca!="undefined"){var n=Invoca.Client&&typeof Invoca.Client.checkConditionToRunInvoca=="function"&&Invoca.Client.checkConditionToRunInvoca();n&&Invoca.PNAPI.run()}}),h=new google.maps.Marker({map:f,position:{lat:parseFloat(u.latitude),lng:parseFloat(u.longitude)},icon:y}),i.length>1)for(r=1;r<i.length;r++){var l=new google.maps.Marker({map:f,position:{lat:parseFloat(i[r].latitude),lng:parseFloat(i[r].longitude)},icon:p}),b='<div class="content gmContent"><div class="mapBuildingName">'+i[r].buildingname+'<\/div><div class="mapAddress">'+i[r].street1+'<\/div><div class="mapAddress">'+i[r].street2+'<\/div><div class="mapAddress">'+i[r].city+", "+i[r].state+" "+i[r].zip+'<\/div><div><a href="tel:'+i[r].phone+'" class="mapPhoneNumber">'+i[r].phone+'<\/a><\/div><div><a class="mapDirections" href="'+i[r].mapurl+'" target="_blank" data-analytics="fad:profile-locations-map-directions">Get Directions<\/a><\/div><\/div>',c=new google.maps.InfoWindow;google.maps.event.addListener(c,"domready",function(){if(typeof Invoca!="undefined"){var n=Invoca.Client&&typeof Invoca.Client.checkConditionToRunInvoca=="function"&&Invoca.Client.checkConditionToRunInvoca();n&&Invoca.PNAPI.run()}});google.maps.event.addListener(l,"click",function(n,t){return function(){s.close();c.setContent(t);c.open(f,n);setTimeout(function(){jQuery(".gm-style-iw").prev().children("div:nth-child(2), div:last-child").addClass("HMHBubble")},100)}}(l,b))}google.maps.event.addListenerOnce(f,"idle",function(){jQuery(".gm-style-iw").prev().children("div:nth-child(2), div:last-child").addClass("HMHBubble")});google.maps.event.addListener(h,"click",function(){s.open(f,h);setTimeout(function(){jQuery(".gm-style-iw").prev().children("div:nth-child(2), div:last-child").addClass("HMHBubble")},10);c.close()});s.open(f,h)}var doctorPhoneNumber,accordionHeaderArray,accordionArray,i;for(!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&"object"==typeof module.exports?module.exports=n:n(jQuery)}(function(n){n.expander={version:"1.7.0",defaults:{slicePoint:100,sliceOn:null,preserveWords:!0,normalizeWhitespace:!0,showWordCount:!1,detailPrefix:" ",wordCountText:" ({{count}} words)",widow:4,expandText:"read more",expandPrefix:"&hellip; ",expandAfterSummary:!1,wordEnd:/(&(?:[^;]+;)?|[0-9a-zA-Z\u00C0-\u0100]+|[^\u0000-\u007F]+)$/,summaryClass:"summary",detailClass:"details",moreClass:"read-more",lessClass:"read-less",moreLinkClass:"more-link",lessLinkClass:"less-link",collapseTimer:0,expandEffect:"slideDown",expandSpeed:250,collapseEffect:"slideUp",collapseSpeed:200,userCollapse:!0,userCollapseText:"read less",userCollapsePrefix:" ",onSlice:null,beforeExpand:null,afterExpand:null,onCollapse:null,afterCollapse:null}};n.fn.expander=function(t){function a(n,t){var r="span",i=n.summary,u=c.exec(i),f=u?u[2].toLowerCase():"";return t?(r="div",u&&"a"!==f&&!n.expandAfterSummary?i=i.replace(c,n.moreLabel+"$1"):i+=n.moreLabel,i='<div class="'+n.summaryClass+'">'+i+"<\/div>"):i+=n.moreLabel,[i,n.detailPrefix||"","<",r+' class="'+n.detailClass+'"',">",n.details,"<\/"+r+">"].join("")}function v(n,t){var i='<span class="'+n.moreClass+'">'+n.expandPrefix;return n.wordCountText=n.showWordCount?n.wordCountText.replace(/\{\{count\}\}/,t.replace(u,"").replace(/\&(?:amp|nbsp);/g,"").replace(/(?:^\s+|\s+$)/,"").match(/\w+/g).length):"",i+('<a href="#" class="'+n.moreLinkClass+'">'+n.expandText+n.wordCountText+"<\/a><\/span>")}function f(t,i){return t.lastIndexOf("<")>t.lastIndexOf(">")&&(t=t.slice(0,t.lastIndexOf("<"))),i&&(t=t.replace(b,"")),n.trim(t)}function e(n,t){t.stop(!0,!0)[n.collapseEffect](n.collapseSpeed,function(){var i=t.prev("span."+n.moreClass).show();i.length||t.parent().children("div."+n.summaryClass).show().find("span."+n.moreClass).show();n.afterCollapse&&n.afterCollapse.call(t)})}function y(t,i,r){t.collapseTimer&&(o=setTimeout(function(){e(t,i);n.isFunction(t.onCollapse)&&t.onCollapse.call(r,!1)},t.collapseTimer))}function p(t){var u="ExpandMoreHere374216623",i=t.summaryText.replace(t.sliceOn,u),r,f;return i=n("<div>"+i+"<\/div>").text(),r=i.indexOf(u),f=t.summaryText.indexOf(t.sliceOn),-1!==r&&r<t.slicePoint&&(t.summaryText=t.allHtml.slice(0,f)),t}var r="init";"string"==typeof t&&(r=t,t={});var o,i=n.extend({},n.expander.defaults,t),w=/^<(?:area|br|col|embed|hr|img|input|link|meta|param).*>$/i,b=i.wordEnd,u=/<\/?(\w+)[^>]*>/g,s=/<(\w+)[^>]*>/g,h=/<\/(\w+)>/g,c=/(<\/([^>]+)>)\s*$/,k=/^(<[^>]+>)+.?/,d=/\s\s+/g,g=function(t){return i.normalizeWhitespace?n.trim(t||"").replace(d," "):t},l={init:function(){this.each(function(){var it,wt,d,ft,lt,et,nt,ot,l,at,bt,vt,tt,yt,kt,dt=[],st=[],ht="",rt={},ut=this,c=n(this),gt=n([]),t=n.extend({},i,c.data("expander")||n.meta&&c.data()||{}),ni=!!c.find("."+t.detailClass).length,pt=!!c.find("*").filter(function(){var t=n(this).css("display");return/^block|table|list/.test(t)}).length,ti=pt?"div":"span",ct=ti+"."+t.detailClass,ii=t.moreClass+"",ri=t.lessClass+"",ui=t.expandSpeed||0,b=g(c.html()),r=b.slice(0,t.slicePoint);if(t.moreSelector="span."+ii.split(" ").join("."),t.lessSelector="span."+ri.split(" ").join("."),!n.data(this,"expanderInit")){for(n.data(this,"expanderInit",!0),n.data(this,"expander",t),n.each(["onSlice","beforeExpand","afterExpand","onCollapse","afterCollapse"],function(i,r){rt[r]=n.isFunction(t[r])}),r=f(r),lt=r.replace(u,"").length;lt<t.slicePoint;)ft=b.charAt(r.length),"<"===ft&&(ft=b.slice(r.length).match(k)[0]),r+=ft,lt++;for(t.sliceOn&&(kt=p({sliceOn:t.sliceOn,slicePoint:t.slicePoint,allHtml:b,summaryText:r}),r=kt.summaryText),r=f(r,t.preserveWords&&b.slice(r.length).length),et=r.match(s)||[],nt=r.match(h)||[],d=[],n.each(et,function(n,t){w.test(t)||d.push(t)}),et=d,wt=nt.length,it=0;wt>it;it++)nt[it]=nt[it].replace(h,"$1");if(n.each(et,function(t,i){var r=i.replace(s,"$1"),u=n.inArray(r,nt);-1===u?(dt.push(i),st.push("<\/"+r+">")):nt.splice(u,1)}),st.reverse(),ni)l=c.find(ct).remove().html(),r=c.html(),b=r+l,ot="";else{if(l=b.slice(r.length),at=n.trim(l.replace(u,"")),""===at||at.split(/\s+/).length<t.widow)return;ot=st.pop()||"";r+=st.join("");l=dt.join("")+l}t.moreLabel=c.find(t.moreSelector).length?"":v(t,l);pt?l=b:"&"===r.charAt(r.length-1)&&(ht=/^[#\w\d\\]+;/.exec(l),ht&&(l=l.slice(ht[0].length),r+=ht[0]));r+=ot;t.summary=r;t.details=l;t.lastCloseTag=ot;rt.onSlice&&(d=t.onSlice.call(ut,t),t=d&&d.details?d:t);bt=a(t,pt);c.empty().append(bt);tt=c.find(ct);yt=c.find(t.moreSelector);"slideUp"===t.collapseEffect&&"slideDown"!==t.expandEffect||c.is(":hidden")?tt.css({display:"none"}):tt[t.collapseEffect](0);gt=c.find("div."+t.summaryClass);vt=function(n){n.preventDefault();var i=n.startExpanded?0:ui;yt.hide();gt.hide();rt.beforeExpand&&t.beforeExpand.call(ut);tt.stop(!1,!0)[t.expandEffect](i,function(){tt.css({zoom:""});rt.afterExpand&&t.afterExpand.call(ut);y(t,tt,ut)})};yt.find("a").unbind("click.expander").bind("click.expander",vt);t.userCollapse&&!c.find(t.lessSelector).length&&c.find(ct).append('<span class="'+t.lessClass+'">'+t.userCollapsePrefix+'<a href="#" class="'+t.lessLinkClass+'">'+t.userCollapseText+"<\/a><\/span>");c.find(t.lessSelector+" a").unbind("click.expander").bind("click.expander",function(i){i.preventDefault();clearTimeout(o);var r=n(this).closest(ct);e(t,r);rt.onCollapse&&t.onCollapse.call(ut,!0)});t.startExpanded&&vt({preventDefault:function(){},startExpanded:!0})}})},destroy:function(){this.each(function(){var r,u,t=n(this);t.data("expanderInit")&&(r=n.extend({},t.data("expander")||{},i),u=t.find("."+r.detailClass).contents(),t.removeData("expanderInit"),t.removeData("expander"),t.find(r.moreSelector).remove(),t.find("."+r.summaryClass).remove(),t.find("."+r.detailClass).after(u).remove(),t.find(r.lessSelector).remove())})}};return l[r]&&l[r].call(this),this};n.fn.expander.defaults=n.expander.defaults}),function(n,t,i){i.loadPhysicianRating=function(n,i){function f(n){if(typeof n.remove=="function")n.remove();else if(typeof n.removeChild=="function"){var t=n.parentElement;t&&t.removeChild(n)}}function h(){if(BFParams&&BFParams.filters){var n=BFParams.filters,t=parseInt(n.page);u.defaults.creator.getBSRComments({person_id:n.person_id,element_id:i.element_id||"NRCComments",min_survey_count:n.min_survey_count,min_threshold:n.min_threshold,page:t+1,per_page:n.per_page,show_next_page:!0,days:n.days,min_rating_count:n.min_rating_count,min_word_count:n.min_word_count,custom_formatter:a})}}function c(){t.addEventListener("click",function(n){n.target.className==="ds-comments-more-link"&&(h(),n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0)})}function r(n,r,u){var e,o,f;for(summaryIds=Array.isArray(i.summary_id)?i.summary_id:[i.summary_id],e=0;e<summaryIds.length;e++)o=t.getElementById(summaryIds[e]),o!=null&&(o.innerHTML=n);f=t.getElementById(i.element_id);f!=null&&(r.trim().length>0||u.trim().length>0?f.innerHTML="<div id='ratingsSection'><div class='sub-head col-md-12 col-sm-12 col-xs-12'>  <h5 class='ratingsTitle'>Patient Ratings & Comments<\/h5><\/div>"+r+u:(f.innerHTML="",f.style.display="none",f.parentElement.style.display="none"));typeof setUpdateLinkBackground=="function"&&setUpdateLinkBackground()}function l(n){var e="",i="",f="",h,l;if(n.status.code==200&&n.data!=null&&n.data.entities!=null&&n.data.entities.length>0){var o=0,u=n.data.entities[0],s=u.overallRating!=null&&u.overallRating.value&&u.overallRating.value!=="--"?u.overallRating.value:0;if(u.overallRating!=null&&u.overallRating.value&&u.overallRating.value!=="--"&&(e+="<div class='ds-summary'>",e+="  <div>",e+="    <div style='display: inline-block'>",e+="      <span style='display: inline-block;' class='"+starRating(s)+"'><\/span>",e+="      <div style='display: inline-block' class='ds-xofy'>",e+="        <span class='ds-average'>"+s+"<\/span> / <span class='ds-average-max'>5<\/span>",e+="      <\/div>",u.overallRating!=null&&u.overallRating.questionRatings!=null&&u.overallRating.questionRatings.length>0&&(e+="      <div style='display: block' class='ds-xofy'>",e+="        <span class='ds-ratingcount-small'>"+u.totalRatingCount+" Ratings, "+u.totalCommentCount+" Comments<\/span>",e+="      <\/div>"),e+="    <div class='ratingsLinkDiv'>",e+="        <a href='#' class='downArrow ratingsLink' data-analytics='fad:profile-view-patient-ratings'>View Patient Ratings<\/a>",e+="    <\/div>",e+="    <\/div>",e+="  <\/div>",e+="<\/div>"),u.overallRating!=null&&u.overallRating.questionRatings!=null&&u.overallRating.questionRatings.length>0){for(i+="<div class='ds-breakdown'>",i+="  <p class='ratingsInfo'>",i+="    The Patient Rating score is an average of all responses to physician related questions on our independently administered".trim(),i+="    &nbsp;<a href='/../../physician-satisfaction' alt='Patient'>Patient Satisfaction Survey<\/a>".trim(),i+="    . Responses are measured on a scale of 1 to 5, with 5 being the best score.".trim(),i+="  <\/p>",i+="  <div class='ds-commentprefix ratingsCTA' >",i+="    <span class='"+starRating(s)+"'><\/span>",i+="    <br/>",i+="    <div class='totalRatings'>",i+="      <span class='ds-xofy'>",i+="        <span class='ds-average'>"+s+"<\/span><span class='ds-average-max ratingsMax'> out of 5<\/span>",i+="      <\/span>",i+="      <span class='ds-ratingcount ratingsCount'>(<span class='ratingsTotalCount'>"+u.totalRatingCount+"<\/span> Ratings, <span class='totalCommentCount'>"+u.totalCommentCount+"<\/span> Comments)<\/span>",i+="    <\/div>",i+="  <\/div>",i+="  <ul>",o=0;o<u.overallRating.questionRatings.length;)h=u.overallRating.questionRatings[o++],i+="  <li>",i+="    <span class='ds-average'>"+h.value+"<\/span>",i+="    <span class='"+starRating(h.value)+"'><\/span>",i+="    <span class='ds-questiontext'>"+h.name+"<\/span>",i+="  <\/li>";i+="  <\/ul>";i+="<\/div>";i+="<br/>"}if(u.comments.length>0){for(f+="<div class='ds-comments'>",f+="  <p>",f+="    <i>Comments also are gathered from our Patient Satisfaction Survey and displayed in their entirety. Patients are de-identified for confidentiality and patient privacy.<\/i>",f+="  <\/p>",f+="  <br/>",f+="  <div id='ds-comments-placeholder'>",o=0;o<u.comments.length;)l=u.comments[o++],f+="  <div class='ds-comment'>",f+="    <div class='ds-lcol'>",f+="      <span class='ds-date'>"+new Date(l.mentionTime).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})+"<\/span>",f+="    <\/div>",f+="    <div class='ds-rcol'>",f+="      <p class='ds-body ds-body-full'>"+l.comment+"<\/p>",f+="    <\/div>",f+="  <\/div>",f+="  <div class='ds-clear'><\/div>",f+="  <hr class='ds-divider'/>";f+="<\/div>";u.comments.length>=+BFParams.filters.per_page&&(f+="<div id='ds-comments-more' class='ds-comments-more ds-comments-more-placeholder'>",f+="  <a id='load-more-btn' href='#' class='ds-comments-more-link' style='display: inline' data-analytics='fad:profile-load-more-reviews'>LOAD MORE<\/a>",f+="<\/div>");f+="<\/div>";c()}t.querySelector(".doctorProfilePage")!==null?r(e,i,f):r(e,"","")}}function a(n){if(n.status.code==200&&n.data!=null&&n.data.entities!=null&&n.data.entities.length>0){f(t.getElementById("comments-loader"));for(var r=n.data.entities[0],o=t.getElementById("ds-comments-placeholder"),u,i="",e=0;e<r.comments.length;)u=r.comments[e++],i+="  <div class='ds-comment'>",i+="    <div class='ds-lcol'>",i+="      <span class='ds-date'>"+new Date(u.mentionTime).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})+"<\/span>",i+="    <\/div>",i+="    <div class='ds-rcol'>",i+="      <p class='ds-body ds-body-full'>"+u.comment+"<\/p>",i+="    <\/div>",i+="  <\/div>",i+="  <div class='ds-clear'><\/div>",i+="  <hr class='ds-divider'/>";o.innerHTML+=i;r.comments.length<+BFParams.filters.per_page&&f(t.getElementById("ds-comments-more"))}}if(i=i||{},n==null||n.trim().length===0){r("","","");return}var e=new Date,o=new Date(2015,01,01),s=Math.round(Math.abs((o.getTime()-e.getTime())/864e5)),u=BFWrapper.init({appId:"999939525427243",showComments:!0,showRatings:!0,showQuestionRatings:!0});u.defaults.creator.getBSRComments({person_id:n,element_id:i.element_id||"NRCComments",min_survey_count:i.min_survey_count||"30",min_threshold:i.min_threshold||"0.0",page:i.page||"1",per_page:i.per_page||"7",days:i.days||s.toString(),min_rating_count:i.min_rating_count||"0",min_word_count:i.min_word_count||"0",custom_formatter:l})}}(window,document,window.RatingWidget=window.RatingWidget||{}),typeof npiData!="undefined"&&RatingWidget.loadPhysicianRating(npiData,{summary_id:["NRCSummary","NRCSummaryTwo"],element_id:"NRCComments"}),$(document).ready(function(){function l(){window.pageYOffset>=c?(f.style.height=h+"px",t.classList.add("stickyCTA")):(f.style.height="auto",t.classList.remove("stickyCTA"))}function e(){$(window).width()<991?$(".mobileMap").find(".mapInfo").length==0&&$(".mapInfo").appendTo(".mobileMap"):$(".physicianInfoDiv").find(".mapInfo").length==0&&$(".mapInfo").appendTo(".physicianInfoDiv")}var i=330,n=document.querySelector(".physicianVideo"),r=document.querySelector(".playVideoDiv");if(n||(i=500,r&&(r.style.display="none")),document.querySelector("#accordionAboutMe")!==null){var o=document.querySelector(".accordionItemContent"),s=document.querySelector(".physicianBio").innerText,u=document.querySelector(".aboutBtn");$(window).width()<991&&o.classList.remove("sidePadding");s||(u&&(u.style.display="none"),n&&(n.style.width="100%"));$(".physicianBio").expander({slicePoint:i,preserveWords:!0,startExpanded:!1,expandText:"Read More",expandPrefix:" ",userCollapseText:"Read Less",expandEffect:"fadeIn",collapseEffect:"fadeOut"})}$(".videoCircleDiv a").magnificPopup({type:"iframe",mainClass:"mfp-fade",removalDelay:160,preloader:!1,fixedContentPos:!1});$(".hm-modal").on("hidden.bs.modal",function(){$("#EOSiFrame").attr("src",onlineSchedulingPhysicianProfileUrl)});var t=document.getElementById("theCTABar"),h=document.getElementById("theCTABar").offsetHeight,c=t.offsetTop,f=document.querySelector(".doctorCTAPlaceholder");window.onscroll=function(){l()};$(".tab").click(function(){var n=$(this).attr("id");$(".tab").removeClass("active");$(this).addClass("active");$(".tabContent").hide();$(".tabContent[name="+n+"]").show()});setTimeout(function(){$(".ratingsLink").click(function(n){n.preventDefault();var t=document.querySelector(".doctorCTA").offsetHeight;$("html, body").animate({scrollTop:$(".patientRatingsInfo").parent().offset().top-t*2},700)})},3e3);$(".locationLinkDiv a").click(function(n){n.preventDefault();var t=document.querySelector(".doctorCTA").offsetHeight;$("html, body").animate({scrollTop:$(".doctorLocationDiv").parent().offset().top-t*2},700)});e();methodist.utils.breakpoints.isSmall()?$("#img-close").attr("src","/MediaLibrary/images/close-ico-greyscale.png"):$("#img-close").attr("src","/MediaLibrary/images/close-ico.png");$(window).resize(function(){e();methodist.utils.breakpoints.isSmall()?$("#img-close").attr("src","/MediaLibrary/images/close-ico-greyscale.png"):$("#img-close").attr("src","/MediaLibrary/images/close-ico.png")})}),doctorPhoneNumber=document.querySelector(".doctorPhoneNumber"),$(window).width()<=991&&(doctorPhoneNumber.innerHTML="Call"),accordionHeaderArray=document.querySelectorAll(".accordionHeader"),accordionArray=document.querySelectorAll(".accordionItem"),i=0;i<accordionHeaderArray.length;i++)accordionHeaderArray[i].addEventListener("click",accordionClick(i));var listView=document.querySelector(".listView"),mapView=document.querySelector(".mapView"),mapDownArrow=document.querySelector(".mapDownArrow"),listDownArrow=document.querySelector(".listDownArrow"),mapCanvas=document.getElementById("mapCanvas"),allOfficeLocations=document.querySelector(".allOfficeLocations"),listIcon=document.querySelector(".listIcon"),mapIcon=document.querySelector(".mapIcon"),mapCanvasInfoWindow=document.querySelector(".gm-style.gm-style-iw");google.maps.event.addDomListener(window,"load",function(){initMap(document.getElementById("map"),locationData);$(".mapView").one("click",function(){initMap(document.getElementById("mapCanvas"),locationData)})})