$(function(n,t){function i(t,i,r){r=r||1e3;n.ajax({dataType:"jsonp",url:"http://www.ipgeni.com/api/",data:"",method:"GET",timeout:r,beforeSend:function(n){n.setRequestHeader("Accept-Language","en-EN,en;q=1")},success:function(n){var i=n.loc.split(",");ipApiGeoResult={lat:i.length<=1?"":i[0],lon:i.length<=1?"":i[1],city:n.city,countryCode:n.country,region:n.region,zip:n.postal};t!=null&&t(ipApiGeoResult)},error:function(){i!=null&&i()}})}function r(t,i,r){var f,u;r=r||1e3;f="es";u=n("html").attr("lang");u&&(u=u.split("-")[0],f=u=="es"||u=="it"?"es":u=="pt"?"pt-BR":u=="fr"?"fr":u=="de"?"de":"en");n.ajax({dataType:"json",url:"https://pro.ip-api.com/json?key=cj1325BN0tWO53J&lang="+f,data:"",method:"GET",timeout:r,beforeSend:function(n){n.setRequestHeader("Accept-Language","en-EN,en;q=1")},success:function(n){ipApiGeoResult=n;t!=null&&t(ipApiGeoResult)},error:function(){i!=null&&i()}})}n.GetIPLocalization=function(t,u,f){f=f||{};f.globalTimeout=f.globalTimeout||3e3;f.timeout=f.timeout||1500;var l=typeof n.cookie!="undefined",a=l?n.cookie("IPLocalization"):null,e=null;if(a!=null){try{e=n.parseJSON(a)}catch(y){e=null}t&&e!=null&&t(e)}if(e==null){var s=f.globalTimeout,h=[r,i],o=0,v=new Date;function c(){var i=new Date;s-=Math.max(i-v,0);v=i;o<h.length&&s>0?h[o](function(i){o==h.length-1||i&&i.city!=""&&i.city!=null?(l&&typeof JSON!="undefined"&&n.cookie("IPLocalization",JSON.stringify(i),{path:"/"}),t&&t(i)):(o++,c())},function(){o++;c()},Math.min(s,f.timeout)):u&&u()}c()}};t&&(t.localization={getIPLocalization:n.GetIPLocalization})}(jQuery,dralia=window.dralia||{})),function(n,t){"use strict";var i={A:/[ÁÀÂÄĀÃÅĄ]/g,a:/[áàâäāãåą]/g,ae:/[æ]/g,b:/[þ]/g,p:/[Þ]/g,C:/[ĆČÇ]/g,c:/[ćčç]/g,d:/[đ]/g,D:/[Đ]/g,e:/[éèêëēę]/g,E:/[ÉÈÊËĒĘ]/g,i:/[íìîïī]/g,I:/[ÍÌÎÏĪ]/g,ij:/[ĳ]/g,l:/[ł]/g,L:/[Ł]/g,n:/[ńñ]/g,N:/[ŃÑ]/g,o:/[óòôöōõø]/g,O:/[ÓÒÔÖŌÕØ]/g,oe:/[œ]/g,r:/[ŕ]/g,R:/[Ŕ]/g,s:/[śš]/g,S:/[ŚŠ]/g,ss:/[ß]/g,u:/[úùûüū]/g,U:/[ÚÙÛÜŪ]/g,y:/[ýÿ]/g,Y:/[ÝŸ]/g,z:/[żž]/g,Z:/[ŹŻŽ]/g};n.utils={forEach:function(n,t){if(Array.prototype.forEach&&typeof n=="Array")n.forEach(function(n,i){t(n,i)});else for(var i=0,r=n.length;i<r;i+=1)t(n[i],i)},latinize:function(n){for(var t in i)n=n.replace(i[t],t);return n},trim:function(n){return String.prototype.trim?n.trim():n.replace(/^\s+|\s+$/g,"")},debounce:function(n,t,i){var r;return function(){var u=this,f=arguments,e=function(){r=null;i||n.apply(u,f)},o=i&&!r;clearTimeout(r);r=setTimeout(e,t);o&&n.apply(u,f)}},createLinkElement:function(n,t){return'<a href="{url}">{content}<\/a>'.replace("{url}",n).replace("{content}",t)},getQueryParameterByKey:function(n){if(!n)return null;n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i="[\\?&]"+n+"(=([^&#]*))?",r=new RegExp(i),t=r.exec(this.getQueryString());return t==null?null:t[2]?decodeURIComponent(t[2].replace(/\+/g," ")):!0},getQueryString:function(){return window.location.search},getCookie:function(n){for(var i,u=n+"=",f=t.cookie.split(";"),r=0;r<f.length;r++){for(i=f[r];i.charAt(0)==" ";)i=i.substring(1);if(i.indexOf(u)==0)return i.substring(u.length,i.length)}return""},setCookie:function(n,i,r){var u=new Date,f;u.setTime(u.getTime()+r*864e5);f="expires="+u.toUTCString();t.cookie=n+"="+i+"; "+f},deleteCookie:function(n){t.cookie=n+"=; expires=Thu, 01-Jan-00 00:00:01 GMT"},addClass:function(n,t){if(n.classList){n.classList.add(t);return}this.hasClass(n,t)||(n.className+=" "+t)},hasClass:function(n,t){return n.classList?n.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(n.className)},removeClass:function(n,t){if(n.classList){n.classList.remove(t);return}n.className=n.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")},findAncestorWithAttribute:function(n,t){while(n=n.parentElement)if(n.getAttribute(t)!==null)return n;return null},getElementOffsetTop:function(n){for(var i="offsetTop",r=n[i],t=n.offsetParent;t!=null;)r+=t[i],t=t.offsetParent;return r},indexOf:function(n,t){if(Array.prototype.indexOf&&typeof n=="Array")return n.indexOf(t);for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1}}}(dralia=window.dralia||{},document),function(n,t){typeof exports=="object"&&typeof module=="object"?module.exports=t():typeof define=="function"&&define.amd?define(t):typeof exports=="object"?exports.Handlebars=t():n.Handlebars=t()}(this,function(){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={exports:{},id:r,loaded:!1};return n[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var i={};return t.m=n,t.c=i,t.p="",t(0)}([function(n,t,i){"use strict";function h(){var n=new o.HandlebarsEnvironment;return e.extend(n,o),n.SafeString=a["default"],n.Exception=y["default"],n.Utils=e,n.escapeExpression=e.escapeExpression,n.VM=s,n.template=function(t){return s.template(t,n)},n}var u=i(7)["default"],f=i(8)["default"],r;t.__esModule=!0;var c=i(1),o=u(c),l=i(2),a=f(l),v=i(3),y=f(v),p=i(4),e=u(p),w=i(5),s=u(w),b=i(6),k=f(b);r=h();r.create=h;k["default"](r);r["default"]=r;t["default"]=r;n.exports=t["default"]},function(n,t,i){"use strict";function s(n,t){this.helpers=n||{};this.partials=t||{};d(this)}function d(n){n.registerHelper("helperMissing",function(){if(arguments.length===1)return undefined;throw new f["default"]('Missing helper: "'+arguments[arguments.length-1].name+'"');});n.registerHelper("blockHelperMissing",function(t,i){var f=i.inverse,o=i.fn,u;return t===!0?o(this):t===!1||t==null?f(this):a(t)?t.length>0?(i.ids&&(i.ids=[i.name]),n.helpers.each(t,i)):f(this):(i.data&&i.ids&&(u=e(i.data),u.contextPath=r.appendContextPath(i.data.contextPath,i.name),i={data:u}),o(t,i))});n.registerHelper("each",function(n,t){function l(t,i,f){u&&(u.key=t,u.index=i,u.first=i===0,u.last=!!f,c&&(u.contextPath=c+t));h=h+p(n[t],{data:u,blockParams:r.blockParams([n[t],t],[c+t,null])})}var y,s,v;if(!t)throw new f["default"]("Must pass iterator to #each");var p=t.fn,w=t.inverse,i=0,h="",u=undefined,c=undefined;if(t.data&&t.ids&&(c=r.appendContextPath(t.data.contextPath,t.ids[0])+"."),o(n)&&(n=n.call(this)),t.data&&(u=e(t.data)),n&&typeof n=="object")if(a(n))for(y=n.length;i<y;i++)l(i,i,i===n.length-1);else{s=undefined;for(v in n)n.hasOwnProperty(v)&&(s&&l(s,i-1),s=v,i++);s&&l(s,i-1,!0)}return i===0&&(h=w(this)),h});n.registerHelper("if",function(n,t){return o(n)&&(n=n.call(this)),(t.hash.includeZero||n)&&!r.isEmpty(n)?t.fn(this):t.inverse(this)});n.registerHelper("unless",function(t,i){return n.helpers["if"].call(this,t,{fn:i.inverse,inverse:i.fn,hash:i.hash})});n.registerHelper("with",function(n,t){var u,i;return o(n)&&(n=n.call(this)),u=t.fn,r.isEmpty(n)?t.inverse(this):(t.data&&t.ids&&(i=e(t.data),i.contextPath=r.appendContextPath(t.data.contextPath,t.ids[0]),t={data:i}),u(n,t))});n.registerHelper("log",function(t,i){var r=i.data&&i.data.level!=null?parseInt(i.data.level,10):1;n.log(r,t)});n.registerHelper("lookup",function(n,t){return n&&n[t]})}function e(n){var t=r.extend({},n);return t._parent=n,t}var p=i(7)["default"],w=i(8)["default"],c,l,u,h;t.__esModule=!0;t.HandlebarsEnvironment=s;t.createFrame=e;var b=i(4),r=p(b),k=i(3),f=w(k);t.VERSION="3.0.1";c=6;t.COMPILER_REVISION=c;l={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1"};t.REVISION_CHANGES=l;var a=r.isArray,o=r.isFunction,v=r.toString,y="[object Object]";s.prototype={constructor:s,logger:u,log:h,registerHelper:function(n,t){if(v.call(n)===y){if(t)throw new f["default"]("Arg not supported with multiple helpers");r.extend(this.helpers,n)}else this.helpers[n]=t},unregisterHelper:function(n){delete this.helpers[n]},registerPartial:function(n,t){if(v.call(n)===y)r.extend(this.partials,n);else{if(typeof t=="undefined")throw new f["default"]("Attempting to register a partial as undefined");this.partials[n]=t}},unregisterPartial:function(n){delete this.partials[n]}};u={methodMap:{0:"debug",1:"info",2:"warn",3:"error"},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:1,log:function(n,t){if(typeof console!="undefined"&&u.level<=n){var i=u.methodMap[n];(console[i]||console.log).call(console,t)}}};t.logger=u;h=u.log;t.log=h},function(n,t){"use strict";function i(n){this.string=n}t.__esModule=!0;i.prototype.toString=i.prototype.toHTML=function(){return""+this.string};t["default"]=i;n.exports=t["default"]},function(n,t){"use strict";function r(n,t){var f=t&&t.loc,e=undefined,o=undefined,s,u;for(f&&(e=f.start.line,o=f.start.column,n+=" - "+e+":"+o),s=Error.prototype.constructor.call(this,n),u=0;u<i.length;u++)this[i[u]]=s[i[u]];Error.captureStackTrace&&Error.captureStackTrace(this,r);f&&(this.lineNumber=e,this.column=o)}t.__esModule=!0;var i=["description","fileName","lineNumber","message","name","number","stack"];r.prototype=new Error;t["default"]=r;n.exports=t["default"]},function(n,t){"use strict";function s(n){return f[n]}function h(n){for(var i,t=1;t<arguments.length;t++)for(i in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],i)&&(n[i]=arguments[t][i]);return n}function c(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1}function l(n){if(typeof n!="string"){if(n&&n.toHTML)return n.toHTML();if(n==null)return"";if(!n)return n+"";n=""+n}return o.test(n)?n.replace(e,s):n}function a(n){return n||n===0?u(n)&&n.length===0?!0:!1:!0}function v(n,t){return n.path=t,n}function y(n,t){return(n?n+".":"")+t}var i,r,u;t.__esModule=!0;t.extend=h;t.indexOf=c;t.escapeExpression=l;t.isEmpty=a;t.blockParams=v;t.appendContextPath=y;var f={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},e=/[&<>"'`]/g,o=/[&<>"'`]/;i=Object.prototype.toString;t.toString=i;r=function(n){return typeof n=="function"};r(/x/)&&(t.isFunction=r=function(n){return typeof n=="function"&&i.call(n)==="[object Function]"});t.isFunction=r;u=Array.isArray||function(n){return n&&typeof n=="object"?i.call(n)==="[object Array]":!1};t.isArray=u},function(n,t,i){"use strict";function l(n){var t=n&&n[0]||1,i=u.COMPILER_REVISION,f,e;if(t!==i)if(t<i){f=u.REVISION_CHANGES[i];e=u.REVISION_CHANGES[t];throw new r["default"]("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+f+") or downgrade your runtime to an older version ("+e+").");}else throw new r["default"]("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+n[1]+").");}function a(n,t){function o(i,u,f){var o,h,s,c;if(f.hash&&(u=e.extend({},u,f.hash)),i=t.VM.resolvePartial.call(this,i,u,f),o=t.VM.invokePartial.call(this,i,u,f),o==null&&t.compile&&(f.partials[f.name]=t.compile(i,n.compilerOptions,t),o=f.partials[f.name](u,f)),o!=null){if(f.indent){for(h=o.split("\n"),s=0,c=h.length;s<c;s++){if(!h[s]&&s+1===c)break;h[s]=f.indent+h[s]}o=h.join("\n")}return o}throw new r["default"]("The partial "+f.name+" could not be compiled when running in runtime-only mode");}function u(t){var r=arguments[1]===undefined?{}:arguments[1],f=r.data,e,o;return u._setup(r),!r.partial&&n.useData&&(f=w(t,f)),e=undefined,o=n.useBlockParams?[]:undefined,n.useDepths&&(e=r.depths?[t].concat(r.depths):[t]),n.main.call(i,t,i.helpers,i.partials,f,o,e)}if(!t)throw new r["default"]("No environment passed to template");if(!n||!n.main)throw new r["default"]("Unknown template object: "+typeof n);t.VM.checkRevision(n.compiler);var i={strict:function(n,t){if(!(t in n))throw new r["default"]('"'+t+'" not defined in '+n);return n[t]},lookup:function(n,t){for(var r=n.length,i=0;i<r;i++)if(n[i]&&n[i][t]!=null)return n[i][t]},lambda:function(n,t){return typeof n=="function"?n.call(t):n},escapeExpression:e.escapeExpression,invokePartial:o,fn:function(t){return n[t]},programs:[],program:function(n,t,i,r,u){var e=this.programs[n],o=this.fn(n);return t||u||r||i?e=f(this,n,o,t,i,r,u):e||(e=this.programs[n]=f(this,n,o)),e},data:function(n,t){while(n&&t--)n=n._parent;return n},merge:function(n,t){var i=n||t;return n&&t&&n!==t&&(i=e.extend({},t,n)),i},noop:t.VM.noop,compilerInfo:n.compiler};return u.isTop=!0,u._setup=function(r){r.partial?(i.helpers=r.helpers,i.partials=r.partials):(i.helpers=i.merge(r.helpers,t.helpers),n.usePartial&&(i.partials=i.merge(r.partials,t.partials)))},u._child=function(t,u,e,o){if(n.useBlockParams&&!e)throw new r["default"]("must pass block params");if(n.useDepths&&!o)throw new r["default"]("must pass parent depths");return f(i,t,n[t],u,0,e,o)},u}function f(n,t,i,r,u,f,e){function o(t){var u=arguments[1]===undefined?{}:arguments[1];return i.call(n,t,n.helpers,n.partials,u.data||r,f&&[u.blockParams].concat(f),e&&[t].concat(e))}return o.program=t,o.depth=e?e.length:0,o.blockParams=u||0,o}function v(n,t,i){return n?n.call||i.name||(i.name=n,n=i.partials[n]):n=i.partials[i.name],n}function y(n,t,i){if(i.partial=!0,n===undefined)throw new r["default"]("The partial "+i.name+" could not be found");else if(n instanceof Function)return n(t,i)}function p(){return""}function w(n,t){return t&&"root"in t||(t=t?u.createFrame(t):{},t.root=n),t}var o=i(7)["default"],s=i(8)["default"];t.__esModule=!0;t.checkRevision=l;t.template=a;t.wrapProgram=f;t.resolvePartial=v;t.invokePartial=y;t.noop=p;var h=i(4),e=o(h),c=i(3),r=s(c),u=i(1)},function(n,t){(function(i){"use strict";t.__esModule=!0;t["default"]=function(n){var t=typeof i!="undefined"?i:window,r=t.Handlebars;n.noConflict=function(){t.Handlebars===n&&(t.Handlebars=r)}};n.exports=t["default"]}).call(t,function(){return this}())},function(n,t){"use strict";t["default"]=function(n){var t,i;if(n&&n.__esModule)return n;if(t={},typeof n=="object"&&n!==null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t};t.__esModule=!0},function(n,t){"use strict";t["default"]=function(n){return n&&n.__esModule?n:{"default":n}};t.__esModule=!0}])}),function(n){"use strict";var t=1;n.registerHelper("position",function(){return t++});n.registerHelper("resetPosition",function(){t=1});n.registerHelper("ifCond",function(n,t,i,r){switch(t){case"==":return n==i?r.fn(this):r.inverse(this);case"===":return n===i?r.fn(this):r.inverse(this);case"<":return n<i?r.fn(this):r.inverse(this);case"<=":return n<=i?r.fn(this):r.inverse(this);case">":return n>i?r.fn(this):r.inverse(this);case">=":return n>=i?r.fn(this):r.inverse(this);case"&&":return n&&i?r.fn(this):r.inverse(this);case"||":return n||i?r.fn(this):r.inverse(this);default:return r.inverse(this)}})}(Handlebars);var template_typeahead_centre=Handlebars.template({"1":function(){return' data-ga-fcc-event="click" data-ga-fcc-category="featured-medical-center " data-ga-fcc-action="click" data-ga-fcc-label="suggest" '},"3":function(n,t,i,r){var u;return'            <img src="'+this.escapeExpression((u=(u=t.Photo||(n!=null?n.Photo:n))!=null?u:t.helperMissing,typeof u=="function"?u.call(n,{name:"Photo",hash:{},data:r}):u))+'">\r\n'},"5":function(){return'            <span class="placeholder"><\/span>\r\n'},"7":function(){return'                <i class="icon"><\/i>\r\n'},compiler:[6,">= 2.0.0-beta.1"],main:function(n,t,i,r){var f,u,e=t.helperMissing,o="function";return'﻿<div class="search-typeahead search-typeahead-centre">\r\n    <a href="'+this.escapeExpression((u=(u=t.Url||(n!=null?n.Url:n))!=null?u:e,typeof u===o?u.call(n,{name:"Url",hash:{},data:r}):u))+'" data-ga-event-onshow data-ga-centreitem data-ga-category="suggest" data-ga-label="center"'+((f=t["if"].call(n,n!=null?n.FirstClass:n,{name:"if",hash:{},fn:this.program(1,r,0),inverse:this.noop,data:r}))!=null?f:"")+'>\r\n        <div class="typeahead-photo">\r\n'+((f=t["if"].call(n,n!=null?n.Photo:n,{name:"if",hash:{},fn:this.program(3,r,0),inverse:this.program(5,r,0),data:r}))!=null?f:"")+'        <\/div>\r\n        <div class="typeahead-info">\r\n            <div class="typeahead-name">\r\n                '+((f=(u=(u=t.FullName||(n!=null?n.FullName:n))!=null?u:e,typeof u===o?u.call(n,{name:"FullName",hash:{},data:r}):u))!=null?f:"")+"\r\n"+((f=t["if"].call(n,n!=null?n.HasOnlineReservation:n,{name:"if",hash:{},fn:this.program(7,r,0),inverse:this.noop,data:r}))!=null?f:"")+'            <\/div>\r\n            <div class="typeahead-location">\r\n                '+((f=(u=(u=t.City||(n!=null?n.City:n))!=null?u:e,typeof u===o?u.call(n,{name:"City",hash:{},data:r}):u))!=null?f:"")+"\r\n            <\/div>\r\n        <\/div>\r\n    <\/a>\r\n<\/div>"},useData:!0}),template_typeahead_disease=Handlebars.template({"1":function(){return"last-of-group"},compiler:[6,">= 2.0.0-beta.1"],main:function(n,t,i,r){var f,u,e=t.helperMissing,o="function",s=this.escapeExpression;return'﻿<div class="search-typeahead search-typeahead-disease '+((f=t["if"].call(n,n!=null?n.BorderBottom:n,{name:"if",hash:{},fn:this.program(1,r,0),inverse:this.noop,data:r}))!=null?f:"")+'">\r\n    <a href="'+s((u=(u=t.Url||(n!=null?n.Url:n))!=null?u:e,typeof u===o?u.call(n,{name:"Url",hash:{},data:r}):u))+'" data-ga-event-onshow data-ga-event="click" data-ga-category="suggest" data-ga-action="click" data-ga-label="disease">\r\n        <div class="typeahead-photo">\r\n            <span class="placeholder"><\/span>\r\n        <\/div>\r\n        <div class="typeahead-info">\r\n            <div class="typeahead-name">\r\n                '+((f=(u=(u=t.FullName||(n!=null?n.FullName:n))!=null?u:e,typeof u===o?u.call(n,{name:"FullName",hash:{},data:r}):u))!=null?f:"")+'\r\n            <\/div>\r\n            <div class="typeahead-extra-info">\r\n                '+s((u=(u=t.ExtraInfo||(n!=null?n.ExtraInfo:n))!=null?u:e,typeof u===o?u.call(n,{name:"ExtraInfo",hash:{},data:r}):u))+"\r\n            <\/div>\r\n        <\/div>\r\n    <\/a>\r\n<\/div>"},useData:!0}),template_typeahead_doctor=Handlebars.template({"1":function(){return' data-ga-fc-event="click" data-ga-fc-category="featured-doctor" data-ga-fc-action="click" data-ga-fc-label="suggest" '},"3":function(n,t,i,r){var u;return'            <img src="'+this.escapeExpression((u=(u=t.Photo||(n!=null?n.Photo:n))!=null?u:t.helperMissing,typeof u=="function"?u.call(n,{name:"Photo",hash:{},data:r}):u))+'">\r\n'},"5":function(){return'            <span class="placeholder"><\/span>\r\n'},"7":function(){return'                <i class="icon"><\/i>\r\n'},compiler:[6,">= 2.0.0-beta.1"],main:function(n,t,i,r){var f,u,e=t.helperMissing,o="function";return'﻿<div class="search-typeahead search-typeahead-doctor">\r\n    <a href="'+this.escapeExpression((u=(u=t.Url||(n!=null?n.Url:n))!=null?u:e,typeof u===o?u.call(n,{name:"Url",hash:{},data:r}):u))+'" data-ga-event-onshow data-ga-doctoritem data-ga-category="suggest" data-ga-label="doctor"'+((f=t["if"].call(n,n!=null?n.FirstClass:n,{name:"if",hash:{},fn:this.program(1,r,0),inverse:this.noop,data:r}))!=null?f:"")+'>\r\n        <div class="typeahead-photo">\r\n'+((f=t["if"].call(n,n!=null?n.Photo:n,{name:"if",hash:{},fn:this.program(3,r,0),inverse:this.program(5,r,0),data:r}))!=null?f:"")+'        <\/div>\r\n        <div class="typeahead-info">\r\n            <div class="typeahead-name">\r\n                '+((f=(u=(u=t.FullName||(n!=null?n.FullName:n))!=null?u:e,typeof u===o?u.call(n,{name:"FullName",hash:{},data:r}):u))!=null?f:"")+"\r\n"+((f=t["if"].call(n,n!=null?n.HasOnlineReservation:n,{name:"if",hash:{},fn:this.program(7,r,0),inverse:this.noop,data:r}))!=null?f:"")+'            <\/div>\r\n            <div class="typeahead-speciality">\r\n                <span class="typeahead-box">\r\n                    '+((f=(u=(u=t.Speciality||(n!=null?n.Speciality:n))!=null?u:e,typeof u===o?u.call(n,{name:"Speciality",hash:{},data:r}):u))!=null?f:"")+'\r\n                <\/span>\r\n            <\/div>\r\n            <div class="typeahead-location">\r\n                '+((f=(u=(u=t.City||(n!=null?n.City:n))!=null?u:e,typeof u===o?u.call(n,{name:"City",hash:{},data:r}):u))!=null?f:"")+"\r\n            <\/div>\r\n        <\/div>\r\n    <\/a>\r\n<\/div>"},useData:!0}),template_typeahead_footer=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(n,t,i,r){var f,u,e=t.helperMissing,o="function";return'﻿<div class="search-typeahead search-typeahead-footer">\r\n    <a href="'+this.escapeExpression((u=(u=t.Url||(n!=null?n.Url:n))!=null?u:e,typeof u===o?u.call(n,{name:"Url",hash:{},data:r}):u))+'" data-ga-event="click" data-ga-category="suggest" data-ga-action="click" data-ga-label="search-bottom">\r\n        <i class="icon"><\/i>\r\n        <span class="typeahead-footer-text">\r\n            '+((f=(u=(u=t.Text||(n!=null?n.Text:n))!=null?u:e,typeof u===o?u.call(n,{name:"Text",hash:{},data:r}):u))!=null?f:"")+"\r\n        <\/span>\r\n    <\/a>\r\n<\/div>"},useData:!0}),template_typeahead_group=Handlebars.template({"1":function(){return'            <span class="placeholder c"><\/span>\r\n'},"3":function(){return'            <span class="placeholder d"><\/span>\r\n'},compiler:[6,">= 2.0.0-beta.1"],main:function(n,t,i,r){var f,u,e=t.helperMissing,o="function",s=this.escapeExpression;return'﻿<div class="search-typeahead search-typeahead-group">\r\n    <a href="'+s((u=(u=t.Url||(n!=null?n.Url:n))!=null?u:e,typeof u===o?u.call(n,{name:"Url",hash:{},data:r}):u))+'" data-ga-event-onshow data-ga-event="click" data-ga-category="suggest" data-ga-action="click" data-ga-label="listing">\r\n        <div class="typeahead-photo">\r\n'+((f=(t.ifCond||n&&n.ifCond||e).call(n,n!=null?n.GroupType:n,"==",3,{name:"ifCond",hash:{},fn:this.program(1,r,0),inverse:this.program(3,r,0),data:r}))!=null?f:"")+'        <\/div>\r\n        <div class="typeahead-info">\r\n            <div class="typeahead-name">\r\n                '+((f=(u=(u=t.FullName||(n!=null?n.FullName:n))!=null?u:e,typeof u===o?u.call(n,{name:"FullName",hash:{},data:r}):u))!=null?f:"")+'\r\n            <\/div>\r\n            <div class="typeahead-extra-info">\r\n                '+s((u=(u=t.ExtraInfo||(n!=null?n.ExtraInfo:n))!=null?u:e,typeof u===o?u.call(n,{name:"ExtraInfo",hash:{},data:r}):u))+"\r\n            <\/div>\r\n        <\/div>\r\n    <\/a>\r\n<\/div>"},useData:!0}),template_typeahead_medicaltest=Handlebars.template({"1":function(){return"last-of-group"},compiler:[6,">= 2.0.0-beta.1"],main:function(n,t,i,r){var f,u,e=t.helperMissing,o="function",s=this.escapeExpression;return'﻿<div class="search-typeahead search-typeahead-medicaltest '+((f=t["if"].call(n,n!=null?n.BorderBottom:n,{name:"if",hash:{},fn:this.program(1,r,0),inverse:this.noop,data:r}))!=null?f:"")+'">\r\n    <a href="'+s((u=(u=t.Url||(n!=null?n.Url:n))!=null?u:e,typeof u===o?u.call(n,{name:"Url",hash:{},data:r}):u))+'" data-ga-event-onshow data-ga-event="click" data-ga-category="suggest" data-ga-action="click" data-ga-label="test">\r\n        <div class="typeahead-photo">\r\n            <span class="placeholder"><\/span>\r\n        <\/div>\r\n        <div class="typeahead-info">\r\n            <div class="typeahead-name">\r\n                '+((f=(u=(u=t.FullName||(n!=null?n.FullName:n))!=null?u:e,typeof u===o?u.call(n,{name:"FullName",hash:{},data:r}):u))!=null?f:"")+'\r\n            <\/div>\r\n            <div class="typeahead-extra-info">\r\n                '+s((u=(u=t.ExtraInfo||(n!=null?n.ExtraInfo:n))!=null?u:e,typeof u===o?u.call(n,{name:"ExtraInfo",hash:{},data:r}):u))+"\r\n            <\/div>\r\n        <\/div>\r\n    <\/a>\r\n<\/div>\r\n"},useData:!0}),template_typeahead_medication=Handlebars.template({"1":function(){return"last-of-group"},compiler:[6,">= 2.0.0-beta.1"],main:function(n,t,i,r){var f,u,e=t.helperMissing,o="function",s=this.escapeExpression;return'﻿<div class="search-typeahead search-typeahead-medication '+((f=t["if"].call(n,n!=null?n.BorderBottom:n,{name:"if",hash:{},fn:this.program(1,r,0),inverse:this.noop,data:r}))!=null?f:"")+'">\r\n    <a href="'+s((u=(u=t.Url||(n!=null?n.Url:n))!=null?u:e,typeof u===o?u.call(n,{name:"Url",hash:{},data:r}):u))+'" data-ga-event-onshow data-ga-event="click" data-ga-category="suggest" data-ga-action="click" data-ga-label="medication">\r\n        <div class="typeahead-photo">\r\n            <span class="placeholder"><\/span>\r\n        <\/div>\r\n        <div class="typeahead-info">\r\n            <div class="typeahead-name">\r\n                '+((f=(u=(u=t.FullName||(n!=null?n.FullName:n))!=null?u:e,typeof u===o?u.call(n,{name:"FullName",hash:{},data:r}):u))!=null?f:"")+'\r\n            <\/div>\r\n            <div class="typeahead-extra-info">\r\n                '+s((u=(u=t.ExtraInfo||(n!=null?n.ExtraInfo:n))!=null?u:e,typeof u===o?u.call(n,{name:"ExtraInfo",hash:{},data:r}):u))+"\r\n            <\/div>\r\n        <\/div>\r\n    <\/a>\r\n<\/div>"},useData:!0}),template_typeahead_other=Handlebars.template({"1":function(){return"last-of-group"},"3":function(){return"questions"},"5":function(){return"experts"},"7":function(){return'            <span class="placeholder qa"><\/span>\r\n'},"9":function(){return'            <span class="placeholder spec"><\/span>\r\n'},compiler:[6,">= 2.0.0-beta.1"],main:function(n,t,i,r){var f,u,e=t.helperMissing,o="function",s=this.escapeExpression;return'﻿<div class="search-typeahead search-typeahead-other '+((f=t["if"].call(n,n!=null?n.BorderBottom:n,{name:"if",hash:{},fn:this.program(1,r,0),inverse:this.noop,data:r}))!=null?f:"")+'">\r\n    <a href="'+s((u=(u=t.Url||(n!=null?n.Url:n))!=null?u:e,typeof u===o?u.call(n,{name:"Url",hash:{},data:r}):u))+'" data-ga-event-onshow data-ga-event="click" data-ga-category="suggest" data-ga-action="click" data-ga-label="'+((f=(t.ifCond||n&&n.ifCond||e).call(n,n!=null?n.OtherType:n,"==",1,{name:"ifCond",hash:{},fn:this.program(3,r,0),inverse:this.program(5,r,0),data:r}))!=null?f:"")+'">\r\n        <div class="typeahead-photo">\r\n'+((f=(t.ifCond||n&&n.ifCond||e).call(n,n!=null?n.OtherType:n,"==",1,{name:"ifCond",hash:{},fn:this.program(7,r,0),inverse:this.program(9,r,0),data:r}))!=null?f:"")+'        <\/div>\r\n        <div class="typeahead-info">\r\n            <div class="typeahead-name">\r\n                '+((f=(u=(u=t.FullName||(n!=null?n.FullName:n))!=null?u:e,typeof u===o?u.call(n,{name:"FullName",hash:{},data:r}):u))!=null?f:"")+'\r\n            <\/div>\r\n            <div class="typeahead-extra-info">\r\n                '+s((u=(u=t.ExtraInfo||(n!=null?n.ExtraInfo:n))!=null?u:e,typeof u===o?u.call(n,{name:"ExtraInfo",hash:{},data:r}):u))+"\r\n            <\/div>\r\n        <\/div>\r\n    <\/a>\r\n<\/div>"},useData:!0});(function(n,t){"use strict";n.ajax={post:function(n){return n=t.extend({method:"POST",url:"",data:{},dataType:"json"},n),t.ajax(n)},get:function(n){return n=t.extend({dataType:"json",url:"",method:"GET"},n),t.ajax(n)}}})(dralia=window.dralia||{},jQuery),function(n,t){"use strict";n.analytics=function(){return{init:function(){t("[data-ga-event]:not([data-ga-event-setup])").gaTrackEventUnobtrusive({useLabel:!0,useEvent:!0});t("[data-ga-event]").attr("data-ga-event-setup",1);t("[data-ga-fc-event]:not([data-ga-fc-event-setup])").gaTrackEventUnobtrusive({useLabel:!0,useEvent:!0,event:"click",category:"featured-doctor",action:"click",categoryAttribute:"data-ga-fc-category",actionAttribute:"data-ga-fc-action",labelAttribute:"data-ga-fc-label"});t("[data-ga-fc-event]").attr("data-ga-fc-event-setup",1);t("[data-ga-fcc-event]:not([data-ga-fcc-event-setup])").gaTrackEventUnobtrusive({useLabel:!0,useEvent:!0,event:"click",category:"featured-medical-center",action:"click",categoryAttribute:"data-ga-fcc-category",actionAttribute:"data-ga-fcc-action",labelAttribute:"data-ga-fcc-label"});t("[data-ga-fcc-event]").attr("data-ga-fcc-event-setup",1)},trackEvent:function(n,i,r,u,f){var e={category:n,action:i,label:r};u&&(e.useEvent=u);f&&(e.event=f);t.ga.trackEvent(e)}}}()}(dralia=window.dralia||{},jQuery),function(n,t){"use strict";function s(i){var e=i.find("[data-ga-event-onshow]"),r=Array(),u,f;t.each(e,function(i,u){var f=t(u),e=f.data("ga-label");t.inArray(e,r)<0&&(n.analytics.trackEvent(f.data("ga-category"),"shown",f.data("ga-label")),r.push(e))});u=i.find("[data-ga-fc-event]");t.each(u,function(i,r){var u=t(r);n.analytics.trackEvent(u.data("ga-fc-category"),"shown",u.data("ga-fc-label"))});f=i.find("[data-ga-fcc-event]");t.each(f,function(i,r){var u=t(r);n.analytics.trackEvent(u.data("ga-fcc-category"),"shown",u.data("ga-fcc-label"))})}function h(t,i){n.analytics.init();t.html().length||n.analytics.trackEvent("suggest","shown","suggestresults");t.html(i||"");t.show()}function u(n){n.hide()}var f="",i={},o=300,e=null,r;t("[data-searchterms-input]").one("focus",function(){t.GetIPLocalization(function(n){n.city&&(f=n.city);n.city&&n.country&&(f+=", ");n.country&&(f+=n.country);i.lat=n.lat;i.lon=n.lon},null,{timeout:2e3,globalTimeout:4e3})});t("[data-searchterms-input]").on("keydown",function(n){if(n.which==40){n.preventDefault();var i=t(".search-textbox-typeahead .search-typeahead a").first();i.data("suggest-focused","1");i.focus()}});t(".search-textbox-typeahead").on("keydown",".search-typeahead a",function(n){if(n.which==40||n.which==38){n.preventDefault();var i=null;n.which==40&&(i=t(this).parent().next().find("a"));n.which==38&&(i=t(this).parent().prev().find("a"));t(".search-textbox-typeahead .search-typeahead a[data-suggest-focused]").data("suggest-focused","0");i.data("suggest-focused","1");i.focus()}});t(".typeahead-container").on("focusout",".search-textbox-typeahead .search-typeahead a",function(n){n.preventDefault();t(this).data("suggest-focused","0")});t("[data-search-bar]").on("focusout",function(){var n=!1,i=t(".search-textbox-typeahead .search-typeahead a").filter(function(){n=n||t(this).data("suggest-focused")==1});t(".search-textbox-typeahead:hover").length!=0||n||u(t(".search-textbox-typeahead"))});u(t(".search-textbox-typeahead"));r=null;t("[data-searchterms-input]").on("input",function(){var l=t(this),f=t(".search-textbox-typeahead"),c;if(f.length!=0){if(c=l.val(),e!=null&&(clearTimeout(e),e=null),r&&(r.abort(),r=null),c.length<1){u(f);return}e=setTimeout(function(){var e={url:"/search-typeahead"},t={};t.Input=c;t.lat=i.lat;t.lng=i.lon;t.cityKey=i.cityKey;e.data=t;r=n.ajax.post(e).done(function(t){var o,e,c,r;if(!t.items||t.items.length==0){u(f);return}if(o=l.val(),o.length<1){u(f);return}e="";for(c in t.items)r=t.items[c],r.Type==1?e+=n.utils.trim(template_typeahead_doctor(r)):r.Type==2?e+=n.utils.trim(template_typeahead_centre(r)):r.Type==3?e+=n.utils.trim(template_typeahead_medicaltest(r)):r.Type==4?e+=n.utils.trim(template_typeahead_disease(r)):r.Type==5?e+=n.utils.trim(template_typeahead_medication(r)):r.Type==6?e+=n.utils.trim(template_typeahead_group(r)):r.Type==7&&(e+=n.utils.trim(template_typeahead_other(r)));t.footer&&(e+=n.utils.trim(template_typeahead_footer(t.footer)));h(f,e);t.cityKey&&(i.cityKey=t.cityKey);n.analytics.init();s(f)})},o)}});t("[data-search-bar]").one("submit",function(){var r=t(this),i=r.find("[data-searchterms-input]").val(),u=window.location.href,e={searchText:i,urlFrom:u,location:f};t.post("/search-keyword-tracking",e);i.length&&t(".search-textbox-typeahead").html().length&&t(".search-textbox-typeahead:visible")&&n.analytics.trackEvent("suggest","click","searchbutton")});t("body").on("click","[data-ga-doctoritem]",function(){t(".search-typeahead-group:visible").length?n.analytics.trackEvent("suggest","click","doctor-listingdisplayed"):n.analytics.trackEvent("suggest","click","doctor-nolistingdisplayed")});t("body").on("click","[data-ga-centreitem]",function(){t(".search-typeahead-group:visible").length?n.analytics.trackEvent("suggest","click","centre-listingdisplayed"):n.analytics.trackEvent("suggest","click","centre-nolistingdisplayed")})}(dralia=window.dralia||{},jQuery)