function closeModal(n){$("."+n+"-modal_close").click()}var __extends,Modals,LMap,Results;(function(n){var i=function(){function n(){this._modals={}}return n.prototype.add=function(n){this._modals[n.getName()]=n},n.prototype.getByName=function(n){return this._modals[n]},n}(),t;n.ModalsCollection=i;t=function(){function n(n){this._name=n}return n.prototype.getName=function(){return this._name},n.prototype.show=function(){this._visible=!0},n.prototype.hide=function(){this._visible=!1},n}();n.Modal=t})(Modals||(Modals={}));__extends=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},function(n){var t=function(n){function t(t,i,r,u,f,e){u===void 0&&(u=null);f===void 0&&(f=0);e===void 0&&(e=!1);n.call(this,t);this._url=r;this._height=f==0?260:f;this._popupArguments=u;this._modalsWrapper=document.getElementById(i);this._popup=null;this._removeOnClose=e}return __extends(t,n),t.prototype.show=function(){this.createIframe();this._popup.popup("show");n.prototype.show.call(this)},t.prototype.hide=function(){this._popup.popup("hide");n.prototype.hide.call(this)},t.prototype.createIframe=function(){var u,n,t,i,r,f,e;if(this._popup!=null){u=this._popup.find("iframe");u.attr("src",u.attr("src"));return}n=document.createElement("div");n.id=this.getName()+"-modal";t=document.createElement("div");t.className="modal-window";i=document.createElement("iframe");i.src=this._url;i.style.width="100%";i.style.height=this._height+"px";r=document.createElement("button");r.className=n.id+"_close close-btn";f=document.createElement("span");f.className="icon-cancel-2";r.appendChild(f);t.appendChild(i);t.appendChild(r);n.appendChild(t);this._modalsWrapper.appendChild(n);this._popup=$("#"+this.getName()+"-modal");e={transition:"all 0.3s",autozindex:!0,detach:this._removeOnClose};this._popup.popup(e)},t}(n.Modal);n.IframeModal=t}(Modals||(Modals={})),function(n){var t=function(){function n(n,t){var i=n.getAttribute("data-location");if(i==null||i==""){t.style.display="none";return}var r=JSON.parse(i),u=new google.maps.LatLng(r.lat,r.lng),f={center:u,zoom:14,mapTypeId:google.maps.MapTypeId.ROADMAP,streetViewControl:!1,scaleControl:!1,panControl:!1,mapTypeControl:!1,zoomControlOptions:{style:google.maps.ZoomControlStyle.SMALL}},e=new google.maps.Map(t,f);new google.maps.Marker({position:u,map:e,icon:"/Content/images/marker.png"})}return n}();n.Map=t}(LMap||(LMap={})),function(n){var t=function(){function n(){this._modals={};this.initMaps();this.initModals()}return n.prototype.initModals=function(){var n=this;$("a.iframe-modal").each(function(t,i){var r=i,f=360,u=r.getAttribute("data-iframe-height"),e,o;u!=null&&u!=""&&(f=parseInt(u));e=$(r).data("closed-remove")!==undefined;o=new Modals.IframeModal(r.id,"modals",r.href,null,f,e);n._modals[r.id]=o;r.onclick=function(t){var i=t.target instanceof HTMLAnchorElement?t.target:t.target.parentElement;n._modals[i.id].show();t.preventDefault()}})},n.prototype.initMaps=function(){$("#results ol li section.profile").each(function(n,t){var i=t;new LMap.Map(i,document.getElementById("map"+n))})},n}();n.ResultsPage=t}(Results||(Results={}));$(document).ready(function(){var n=new Results.ResultsPage})