function getQueryParams(n){n=n.split("+").join(" ");for(var i={},t,r=/[?&]?([^=]+)=([^&]*)/g;t=r.exec(n);)i[decodeURIComponent(t[1])]=decodeURIComponent(t[2]);return i}function panWithOffset(n){var t=map.getProjection().fromLatLngToPoint(n),i=new google.maps.Point(50/Math.pow(2,map.getZoom()),110/Math.pow(2,map.getZoom()));map.panTo(map.getProjection().fromPointToLatLng(new google.maps.Point(t.x+i.x,t.y-i.y)))}function updateMapDebug(){if(debug_map){var t=$("div.map-debug"),n="<strong>MAP DEBUG:</strong>";n+='<div class="debug-item"><strong>CENTER:</strong> '+map.getCenter(),n+='<div class="debug-item"><strong>ZOOM:</strong> '+map.getZoom(),t.html(n)}}function createMarker(n,t){var u=markerIcons[0].normal,e=markerIcons[0].hover,o=markerIcons[0].name,r,f,i;if(typeof markerOverride!="undefined"&&(t=[markerOverride]),typeof t!="undefined")for(r=0;r<markerIcons.length;r++)if(typeof markerIcons[r]!="undefined")for(f=0;f<t.length;f++)if(markerIcons[r].name==t[f]){u=markerIcons[r].normal,e=markerIcons[r].hover,o=markerIcons[r].name;break}return u==null?null:(i=new google.maps.Marker({position:n,map:null,icon:u}),i.image=u,i.imageH=e,i.iconclass=o,google.maps.event.addListener(i,"mouseover",function(){this.setIcon(this.imageH)}),google.maps.event.addListener(i,"mouseout",function(){this.setIcon(this.image)}),i.shown=!0,i.infobox=searchIB,google.maps.event.addListener(i,"click",function(){searchResultMarkerClick(i)}),i)}function _getAddress(n,t,i){for(var u,r=0;r<n.length;r++)for(u=0;u<n[r].types.length;u++)if(n[r].types[u]==t)return i?n[r].long_name:n[r].short_name;return""}function getAddressLong(n,t){return _getAddress(n,t,!0)}function getAddressShort(n,t){return _getAddress(n,t,!1)}function generateInfoBox(){if(searchIB==null){var n=!1;($("html").hasClass("ie8")||$("html").hasClass("ie9"))&&(n=!0),searchIB=new InfoBox({alignBottom:!0,content:document.getElementById("wtc-infobox-search"),disableAutoPan:n,maxWidth:parseInt(search_ib_content.css("max-width"),10),pixelOffset:new google.maps.Size(-52,-47),zIndex:null,boxStyle:{opacity:1,width:search_ib_content.css("max-width")},closeBoxMargin:"12px 4px 2px 2px",closeBoxURL:"/Content/img/infobox_close.png",infoBoxClearance:new google.maps.Size(20,20)}),searchIB.oldDraw=searchIB.draw,searchIB.oldClose=searchIB.close,searchIB.draw=function(){this.oldDraw.apply(this),jQuery(this.div_).hide(),jQuery(this.div_).fadeIn(300)},searchIB.close=function(){var n=this;jQuery(this.div_).fadeOut(300,function(){n.oldClose.apply(n)})},google.maps.event.addListener(searchIB,"closeclick",function(){var n=activeMarker;activeMarker=null,n!=null&&(n.setMap(map),n.shown=!0)})}}function showTransit(n){transitLayer.setMap(n?map:null)}function showFerry(n){var t,i;if(typeof mapOptions=="object"&&typeof mapOptions.styles=="object")for(t=0;t<mapOptions.styles.length;t++)if(mapOptions.styles[t].featureType=="transit.line")for(i=0;i<mapOptions.styles[t].stylers.length;i++)if(typeof mapOptions.styles[t].stylers[i].visibility!="undefined"){mapOptions.styles[t].stylers[i].visibility=n?"on":"off",map.setOptions(mapOptions);return}}function WTCOverlay(n,t,i){this.bounds_=n,this.image_=t,this.map_=i,this.div_=null,this.setMap(i)}function init(){function a(){var t=u.hasClass("no-scrolltop")?0:u.offset().top,n=($(window).height()-t)*.75;n>375&&(n=375),u.height(n)}var o,h,f,e,c,l,i,r,v,t,n,s,u;for(mapOptions={scrollwheel:!1,mapTypeControl:!1,streetViewControl:!1,zoom:12,center:new google.maps.LatLng(40.7114745,-74.0132635),mapTypeId:google.maps.MapTypeId.ROADMAP,styles:[{featureType:"transit",stylers:[{visibility:"on"}]},{featureType:"transit.station",stylers:[{visibility:"on"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#808080"},{visibility:"on"},{weight:.7}]},{featureType:"landscape.natural",elementType:"geometry.fill",stylers:[{color:"#f5f5f2"},{visibility:"on"}]},{featureType:"administrative",stylers:[{visibility:"off"}]},{featureType:"poi.attraction",stylers:[{visibility:"off"}]},{featureType:"landscape.man_made",elementType:"geometry.fill",stylers:[{color:"#ffffff"},{visibility:"on"}]},{featureType:"poi.medical",stylers:[{visibility:"off"}]},{featureType:"poi.place_of_worship",stylers:[{visibility:"off"}]},{featureType:"poi.school",stylers:[{visibility:"off"}]},{featureType:"poi.sports_complex",stylers:[{visibility:"off"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#ffffff"},{visibility:"simplified"}]},{featureType:"road.arterial",stylers:[{visibility:"simplified"},{color:"#ffffff"}]},{featureType:"road.highway",elementType:"labels.icon",stylers:[{color:"#ffffff"},{visibility:"off"}]},{featureType:"road.arterial",stylers:[{color:"#ffffff"}]},{featureType:"road.local",stylers:[{color:"#ffffff"}]},{featureType:"poi.park",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"water",stylers:[{color:"#71c8d4"}]},{featureType:"landscape",stylers:[{color:"#e5e8e7"}]},{featureType:"poi.park",stylers:[{color:"#8ba129"}]},{featureType:"road",stylers:[{color:"#ffffff"}]},{featureType:"poi.sports_complex",elementType:"geometry",stylers:[{color:"#c7c7c7"},{visibility:"off"}]},{featureType:"water",stylers:[{color:"#a0d3d3"}]},{featureType:"poi.park",stylers:[{color:"#91b65d"}]},{featureType:"poi.park",stylers:[{gamma:1.51}]},{featureType:"poi.park",elementType:"labels.text",stylers:[{gamma:1},{color:"#8ba129"},{weight:.4}]},{featureType:"road.local",elementType:"geometry",stylers:[{visibility:"on"}]},{featureType:"poi.government",elementType:"geometry",stylers:[{visibility:"off"}]},{featureType:"landscape",stylers:[{visibility:"off"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{visibility:"simplified"}]},{featureType:"road.local",stylers:[{visibility:"simplified"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#aaaaaa"}]},{featureType:"poi.business",stylers:[{visibility:showBusiness?"on":"off"}]},{featureType:"poi.business",elementType:"labels",stylers:[{visibility:showBusiness?"on":"off"}]}]},markerIcons=[{name:"restaurant",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(24,33),new google.maps.Point(1,5664)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(24,33),new google.maps.Point(1,5697))},{name:"hotel",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(30,36),new google.maps.Point(1,5810)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(30,36),new google.maps.Point(1,5846))},{name:"park",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(29,40),new google.maps.Point(1,5882)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(29,40),new google.maps.Point(1,5922))},{name:"arch",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(24,33),new google.maps.Point(1,4998)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(24,33),new google.maps.Point(1,5031))},{name:"art",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(24,32),new google.maps.Point(1,7046)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(24,32),new google.maps.Point(1,7078))},{name:"attractions",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(24,33),new google.maps.Point(1,5064)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(24,33),new google.maps.Point(1,5097))},{name:"cafe",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(24,33),new google.maps.Point(1,5598)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(24,33),new google.maps.Point(1,5631))},{name:"bar",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(24,33),new google.maps.Point(1,5130)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(24,33),new google.maps.Point(1,5163))},{name:"bike",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(33,41),new google.maps.Point(1,5196)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(33,41),new google.maps.Point(1,5237))},{name:"museum",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(23,34),new google.maps.Point(1,4850)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(23,34),new google.maps.Point(1,4884))},{name:"memorial",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(23,34),new google.maps.Point(1,4850)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(23,34),new google.maps.Point(1,4884))},{name:"path",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(31,40),new google.maps.Point(1,4918)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(31,40),new google.maps.Point(1,4958))},{name:"ferry",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(31,40),new google.maps.Point(1,5730)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(31,40),new google.maps.Point(1,5770))},{name:"parking_garage",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(30,40),new google.maps.Point(1,5962)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(30,40),new google.maps.Point(1,6002))},{name:"shopping",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(30,35),new google.maps.Point(1,6042)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(30,35),new google.maps.Point(1,6077))},{name:"vehicle_service",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(31,40),new google.maps.Point(1,6112)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(31,40),new google.maps.Point(1,6152))},{name:"yellowR",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(30,40),new google.maps.Point(1,6285)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(30,40),new google.maps.Point(1,6325))},{name:"red1",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(35,44),new google.maps.Point(1,6853)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(35,44),new google.maps.Point(1,6897))},{name:"red123",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(59,40),new google.maps.Point(1,6365)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(59,40),new google.maps.Point(1,6405))},{name:"red23",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(45,40),new google.maps.Point(1,6445)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(45,40),new google.maps.Point(1,6485))},{name:"green45",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(45,40),new google.maps.Point(1,6525)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(45,40),new google.maps.Point(1,6565))},{name:"blueAC",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(45,40),new google.maps.Point(1,6605)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(45,40),new google.maps.Point(1,6645))},{name:"blueE",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(35,44),new google.maps.Point(1,6765)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(35,44),new google.maps.Point(1,6809))},{name:"goldJZ",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(45,40),new google.maps.Point(1,6685),new google.maps.Point(22,0)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(45,40),new google.maps.Point(1,6725),new google.maps.Point(22,0)),orientation:"top"},{name:"m20",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(31,40),new google.maps.Point(1,5278)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(31,40),new google.maps.Point(1,5318))},{name:"m22",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(31,40),new google.maps.Point(1,5358)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(31,40),new google.maps.Point(1,5398))},{name:"m5",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(31,40),new google.maps.Point(1,5438)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(31,40),new google.maps.Point(1,5478))},{name:"m9",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(31,40),new google.maps.Point(1,5518)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(31,40),new google.maps.Point(1,5558))},{name:"m103",normal:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(31,40),new google.maps.Point(1,6966)),hover:new google.maps.MarkerImage("/Content/img/spritesheet.png",new google.maps.Size(31,40),new google.maps.Point(1,7006))}],typeof mapOverride!="undefined"&&(mapOverride.hasOwnProperty("latitude")&&mapOverride.hasOwnProperty("longitude")&&(mapOptions.center=new google.maps.LatLng(mapOverride.latitude,mapOverride.longitude)),mapOverride.hasOwnProperty("zoom")&&(mapOptions.zoom=mapOverride.zoom)),typeof mobileOverride!="undefined"&&mobileOverride.hasOwnProperty("override")&&(o=mobileOverride.hasOwnProperty("width")?mobileOverride.width:-1,o>0&&$(window).width()<=o&&(mobileOverride.hasOwnProperty("latitude")&&mobileOverride.hasOwnProperty("longitude")&&(mapOptions.center=new google.maps.LatLng(mobileOverride.latitude,mobileOverride.longitude)),mobileOverride.hasOwnProperty("zoom")&&(mapOptions.zoom=mobileOverride.zoom))),transitLayer=new google.maps.TransitLayer,h=document.getElementById("map"),map=new google.maps.Map(h,mapOptions),updateMapDebug(),google.maps.event.addListener(map,"bounds_changed",function(){updateMapDebug()}),f=new google.maps.LatLng(40.709315793728258,-74.017428120468139),e=new google.maps.LatLng(40.714748256710564,-74.005261620376587),typeof mapOverlay!="undefined"&&(mapOverlay.hasOwnProperty("neBoundsLat")&&mapOverlay.hasOwnProperty("neBoundsLat")&&(e=new google.maps.LatLng(parseFloat(mapOverlay.neBoundsLat),parseFloat(mapOverlay.neBoundsLng))),mapOverlay.hasOwnProperty("swBoundsLat")&&mapOverlay.hasOwnProperty("swBoundsLat")&&(f=new google.maps.LatLng(parseFloat(mapOverlay.swBoundsLat),parseFloat(mapOverlay.swBoundsLng)))),c=new google.maps.LatLngBounds(f,e),typeof mapOverlay!="undefined"&&mapOverlay.hasOwnProperty("showOverlay")&&mapOverlay.showOverlay==!0&&(l="/Content/img/map-overlay.png?v=2",overlay=new WTCOverlay(c,l,map)),typeof mapOverlay!="undefined"&&mapOverlay.hasOwnProperty("debugMapOverlay")&&mapOverlay.debugMapOverlay==!0&&(i=new google.maps.Marker({position:f,map:map,draggable:!0}),r=new google.maps.Marker({position:e,map:map,draggable:!0}),google.maps.event.addListener(i,"drag",function(){var n=i.getPosition(),t=r.getPosition(),u=new google.maps.LatLngBounds(n,t);overlay.updateBounds(u)}),google.maps.event.addListener(r,"drag",function(){var n=i.getPosition(),t=r.getPosition(),u=new google.maps.LatLngBounds(n,t);overlay.updateBounds(u)}),google.maps.event.addListener(i,"dragend",function(){var n=i.getPosition(),t=r.getPosition();console.log("point1"+n),console.log("point2"+t)}),google.maps.event.addListener(r,"dragend",function(){var n=i.getPosition(),t=r.getPosition();console.log("point1"+n),console.log("point2"+t)})),typeof mapOverride!="undefined"&&mapOverride.hasOwnProperty("showTransit")&&mapOverride.showTransit==!0&&transitLayer.setMap(map),typeof directions!="undefined"&&(directionsDisplay=new google.maps.DirectionsRenderer,directionsService=new google.maps.DirectionsService,directionsDisplay.setMap(map)),typeof buildingPin!="undefined"&&(v=new google.maps.Marker({position:buildingPin,map:map,title:""})),locations[locations.length-1]==null&&locations.pop(),t=0;t<locations.length;t++)n=createMarker(new google.maps.LatLng(locations[t].lat,locations[t].long),new Array(locations[t].icon)),n.setMap(map),s=!1,($("html").hasClass("ie8")||$("html").hasClass("ie9"))&&(s=!0),n.infobox=new InfoBox({alignBottom:!0,content:document.getElementById("wtc-infobox-"+locations[t].id),disableAutoPan:s,maxWidth:parseInt($("#wtc-infobox-"+locations[t].id).css("max-width"),10),pixelOffset:new google.maps.Size(-52,-47),zIndex:null,boxStyle:{opacity:1,width:$("#wtc-infobox-"+locations[t].id).css("max-width")},closeBoxMargin:"12px 4px 2px 2px",closeBoxURL:"/Content/img/infobox_close.png",infoBoxClearance:new google.maps.Size(20,20)}),n.infobox.oldDraw=n.infobox.draw,n.infobox.oldClose=n.infobox.close,n.infobox.draw=function(){this.oldDraw.apply(this),jQuery(this.div_).hide(),jQuery(this.div_).fadeIn(300)},n.infobox.close=function(){var n=this;jQuery(this.div_).fadeOut(300,function(){n.oldClose.apply(n)})},n.shown=!0,n.markerid=locations[t].id,markersArray.push(n),google.maps.event.addListener(n.infobox,"closeclick",function(){for(var n=0;n<markersArray.length;n++)markersArray[n].shown==!1&&(markersArray[n].setMap(map),markersArray[n].shown=!0)});if(u=$("#map"),u.length){a();$(window).on("resize",a)}typeof initGettingHereMarkers=="function"&&initGettingHereMarkers()}function clearGettingHere(){for(var n=0;n<markersArray.length;n++)markersArray[n].shown==!1&&markersArray[n].infobox.close(),markersArray[n].setMap(null);activeMarker=null,markersArray=[]}function mapsGettingHereCreateMarkers(n){var r,i,t,u;if(n!=null){for(n[n.length-1]==null&&n.pop(),r=[],i=0;i<n.length;i++)t=createMarker(new google.maps.LatLng(n[i].lat,n[i].long),new Array(n[i].icon)),t.setMap(null),u=!1,($("html").hasClass("ie8")||$("html").hasClass("ie9"))&&(u=!0),t.infobox=new InfoBox({alignBottom:!0,content:document.getElementById("wtc-infobox-"+n[i].id),disableAutoPan:u,maxWidth:parseInt($("#wtc-infobox-"+n[i].id).css("max-width"),10),pixelOffset:new google.maps.Size(-52,-47),zIndex:null,boxStyle:{opacity:1,width:$("#wtc-infobox-"+n[i].id).css("max-width")},closeBoxMargin:"12px 4px 2px 2px",closeBoxURL:"/Content/img/infobox_close.png",infoBoxClearance:new google.maps.Size(20,20)}),t.infobox.oldDraw=t.infobox.draw,t.infobox.oldClose=t.infobox.close,t.infobox.draw=function(){this.oldDraw.apply(this),jQuery(this.div_).hide(),jQuery(this.div_).fadeIn(300)},t.infobox.close=function(){var n=this;jQuery(this.div_).fadeOut(300,function(){n.oldClose.apply(n)})},t.shown=!1,t.markerid=n[i].id,r.push(t),google.maps.event.addListener(t.infobox,"closeclick",function(){for(var n=0;n<markersArray.length;n++)markersArray[n].shown==!1&&(markersArray[n].setMap(map),markersArray[n].shown=!0)});return r}}function showGettingHere(n){if(n!=null)for(var t=0;t<n.length;t++)n[t].setMap(map),n[t].shown=!0,markersArray.push(n[t])}var resultBox,searchIB,search_ib_content,directionsDisplay,directionsService,debug_map,currentRequest,activeMarker,markerIcons,markersArray,map,service,mapOptions,transitLayer,overlay,WTCOverlay;(function(n){"use strict";var t=!0;n.fn.imgCarousel=function(){var u=0,r=this.find("div.inside-list").children("div.carousel-item").length,c=r*1060,f,o,e,s,h;(this.css("width",c+"px"),this.find("div.inside-list").children("div.carousel-item").each(function(){u+=n(this).outerWidth(!0)}),f=this.parent().width(),this.parent().width()<767&&(o=4,n("div.carousel-scroller").hasClass("no-spacing")&&(o=0),u=f*r+o*(r-1),this.find("div.inside-list").children("div.carousel-item").css("width",f+"px"),e=f/1050*500,this.find("div.inside-list").children("div.carousel-item.fixed").css("height",e+"px").css("max-width","767px"),n("div.carousel-scroller.fixed").css("height",e+"px"),n("div.carousel-container.fixed").css("height",e+25+"px")),this.css("width",u+"px"),r<=2)||(s=(u-f)/2,r%2==0&&r>0&&(h=u/r,s-=h/2),t&&this.parent().scrollLeft(s),t=!1,n("div.carousel-full div.carousel-loading").animate({opacity:0},1e3,function(){n("div.carousel-full div.carousel-loading").hide()}))}})(jQuery),$(window).load(function(){function t(n,t,i,r,u){var e=(i-t)/2,f=0,o;if(t*u-i-n<=e)return u-1;if(n<e)return 0;if(r>0){while(n>t)f++,n-=t;o=t-n,o<=e+r&&f++}else{for(totalsize=t*u,n=totalsize-n-i;n>t;)f++,n-=t;o=t-n,o+r<=e&&f++,f=u-1-f}return f}function n(){$("div.carousel-scroller").imgCarousel()}n();$(window).on("resize",n);$("span[data-carousel-nav='true']").click(function(){var n=$(this).attr("data-target"),r=parseInt($(this).attr("data-crsl-scroll")),e=$(n).parent().scrollLeft(),u=$(n).find("div.inside-list").children("div.carousel-item").length,i=$(n).width()/u,f=$(n).parent().width(),o=t(e,i,f,20*r,u),s=o+r,h=s*i-(f-i)/2;$(n).parent().animate({scrollLeft:h},500)});$("div.carousel-item.full-active").on("click",function(n){if($(n.target).attr("data-lightbox-type")!="video"){var t=$(this).find("a");$(t).attr("data-lightbox-type")=="video"?$(this).find("a").click():window.location=$(t).attr("href")}})}),$(window).load(function(){var t=$(".news-event-shell"),i,r,n;t.on("jcarousel:reload jcarousel:create",function(){var n=t.innerWidth(),i=Math.ceil(n/235);n=n/i,t.jcarousel("items").css("width",n+"px")}).jcarousel({wrap:null}),$(".event-right").on("jcarouselcontrol:active",function(){$(this).removeClass("disabled")}).on("jcarouselcontrol:inactive",function(){$(this).addClass("disabled")}).jcarouselControl({target:"+=1"}),$(".event-left").on("jcarouselcontrol:active",function(){$(this).removeClass("disabled")}).on("jcarouselcontrol:inactive",function(){$(this).addClass("disabled")}).jcarouselControl({target:"-=1"}),i=$(".building-shell"),i.jcarousel({wrap:null}),$(".building-right").on("jcarouselcontrol:active",function(){$(this).removeClass("disabled")}).on("jcarouselcontrol:inactive",function(){$(this).addClass("disabled")}).jcarouselControl({target:"+=1"}),$(".building-left").on("jcarouselcontrol:active",function(){$(this).removeClass("disabled")}).on("jcarouselcontrol:inactive",function(){$(this).addClass("disabled")}).jcarouselControl({target:"-=1"}),r=$(".tenants-shell"),r.jcarousel({wrap:null}),$(".tenants-right").on("jcarouselcontrol:active",function(){$(this).removeClass("disabled")}).on("jcarouselcontrol:inactive",function(){$(this).addClass("disabled")}).jcarouselControl({target:"+=1"}),$(".tenants-left").on("jcarouselcontrol:active",function(){$(this).removeClass("disabled")}).on("jcarouselcontrol:inactive",function(){$(this).addClass("disabled")}).jcarouselControl({target:"-=1"}),n=$("#mobile-menu-toggle"),i.swipe({swipeRight:function(){n.is(":visible")&&i.jcarousel("scroll","-=1")},swipeLeft:function(){n.is(":visible")&&i.jcarousel("scroll","+=1")},click:function(t,i){n.is(":visible")&&$(i).click()},threshold:30,excludedElements:""}),t.swipe({swipeRight:function(){n.is(":visible")&&t.jcarousel("scroll","-=1")},swipeLeft:function(){n.is(":visible")&&t.jcarousel("scroll","+=1")},click:function(t,i){n.is(":visible")&&$(i).click()},threshold:30,excludedElements:""}),r.swipe({swipeRight:function(){n.is(":visible")&&r.jcarousel("scroll","-=1")},swipeLeft:function(){n.is(":visible")&&r.jcarousel("scroll","+=1")},click:function(t,i){n.is(":visible")&&$(i).click()},threshold:30,excludedElements:""})}),$(window).load(function(){function t(n){n=n.split("+").join(" ");for(var i={},t,r=/[?&]?([^=]+)=([^&]*)/g;t=r.exec(n);)i[decodeURIComponent(t[1])]=decodeURIComponent(t[2]);return i}$("li.executive-description span.executive-close").on("click",function(){$("li.executive-item.photo").removeClass("active");var n=$(this).parent(),t=0,i=0;t=n.offset().top,oldheight=n.outerHeight(),$(n).css("height",oldheight+"px").css("overflow","hidden"),$(n).animate({height:"0"},250,function(){$(n).css("height","").css("overflow","").hide().removeClass("expanded"),$("li.executive-item.photo").removeClass("active").removeClass("faded")})});$("li.executive-item.photo[data-target]").on("click",function(){var r,e,o;if(!$(this).hasClass("active")){$("li.executive-item.photo").removeClass("active").addClass("faded");var u=$(this).attr("data-target"),i=$("li.executive-description:visible"),n=$("li.executive-description[data-description="+u+"]"),t=$(this).siblings(".executive-item.photo:visible").andSelf().index($(this)),f=$(document).width()<=768;f?t%2==1||t+1==$(this).siblings(".executive-item.photo:visible").andSelf().length?n.insertAfter($(this)):n.insertAfter($(this).nextAll("li.executive-item.photo:visible").first()):t%3==2||t+1==$(this).siblings(".executive-item.photo:visible").andSelf().length?n.insertAfter($(this)):t%3==1||t+2==$(this).siblings(".executive-item.photo:visible").andSelf().length?n.insertAfter($(this).nextAll("li.executive-item.photo:visible").first()):n.insertAfter($(this).nextAll("li.executive-item.photo:visible")[1]),n.show(),$(this).addClass("active").removeClass("faded"),r=0,e=0,i.length&&(r=i.offset().top,oldheight=i.outerHeight(),$(i).css("height",oldheight+"px").css("overflow","hidden"),$(i).css("height","").css("overflow","").hide().removeClass("expanded")),o=n[0].scrollHeight,n.css("height","").css("overflow",""),scrollTop=$(this).offset().top,$("html,body").animate({scrollTop:scrollTop},250)}});var n=t(document.location.search);n.bioid!=undefined&&n.bioid.length&&$("li.executive-item.photo[data-target=desc-"+n.bioid+"]").click()}),$(window).load(function(){function e(n,t){var i=$(".tl-item-detail",t);$(n).toggleClass("open"),$(n).hasClass("open")?($(i).css("height","0"),$(i).show(),$(i).find("img.preload").lazyload({effect:"fadeIn",threshold:50}),$(i).animate({height:$(i)[0].scrollHeight+"px"},200,"linear",function(){$(i).css("height",""),$(window).scroll()}),$(window).scroll()):$(i).animate({height:"0"},200,"linear",function(){$(i).hide()}),$("span",n).hasClass("history-plus")?$("span",n).removeClass("history-plus").addClass("history-minus"):$("span",n).removeClass("history-minus").addClass("history-plus")}function f(){$("div.tl-item-row, div.tl-year",u).last().is(":visible")?$(".tl-bottom .tl-nav",r).addClass("disabled"):$(".tl-bottom .tl-nav",r).removeClass("disabled"),$("div.tl-item-row, div.tl-year",u).eq(0).is(":visible")?$(".tl-top .tl-nav",r).addClass("disabled"):$(".tl-top .tl-nav",r).removeClass("disabled")}function s(){var n=$("#sticky-years li.active").index(),t=$("#sticky-years").jcarousel("fullyvisible"),r=$(t[0]).index(),u=$(t[$(t).length-1]).index();(n<r||n>u)&&(n=n>2?n-2:0,i.jcarousel("scroll",n))}function o(){if(t.length!=0){var n=$(window).scrollTop();n>=$("div.history-content").offset().top-$(t).height()?$(t).addClass("sticky-nav"):$(t).removeClass("sticky-nav")}}var i=$(".year-bar"),r,u,n,t;$(".row.actual-data").css("display","block"),$(".row.loading-data").css("display","none"),i.on("jcarousel:reload jcarousel:create",function(){var n=i.innerWidth(),t;n>1e3?n=n/10:n>850?n=n/8:n>=630?n=n/6:n>=200&&(n/=4),t=$("li.active",i).index(),i.jcarousel("items").css("width",n+"px"),i.jcarousel("scroll",t)}).jcarousel({wrap:null}),$(".year-control-prev").on("jcarouselcontrol:active",function(){$(this).removeClass("disabled")}).on("jcarouselcontrol:inactive",function(){$(this).addClass("disabled")}).jcarouselControl({target:"-=3"}),$(".year-control-next").on("jcarouselcontrol:active",function(){$(this).removeClass("disabled")}).on("jcarouselcontrol:inactive",function(){$(this).addClass("disabled")}).jcarouselControl({target:"+=3"}),$(".tl-item-expand").click(function(){e(this,$(this).parent())}),$(".historyEventTitle").click(function(){var n=$(this).parent();e($(".tl-item-expand",n),n)}),r=$(".tl-container"),u=$("#tl-content",r),f(),n=$("#tl-content"),$(".tl-nav").click(function(){var u,r,e,o,i,t;if(!$(this).hasClass("disabled")){if(u=2,r=0,$(this).hasClass("next")){for(e=$("div.tl-item-row:visible, div.tl-year:visible",n).eq(0).index(),o=$("div.tl-item-row, div.tl-year",n),i=e-1;i>=0;i--)if(t=o.eq(i),t.css("height","0"),t.removeClass("hidden"),t.animate({height:$(t)[0].scrollHeight+"px"},200,"swing",function(){$(this).css("height","")}),t.hasClass("tl-item-row")&&r++,r>u)break}else{var s=$("div.tl-item-row:visible, div.tl-year:visible",n).length,h=$("div.tl-item-row, div.tl-year",n).length,e=$("div.tl-item-row:visible, div.tl-year:visible",n).eq(s-1).index(),o=$("div.tl-item-row, div.tl-year",n);for(i=e+1;i<h;i++)if(t=o.eq(i),t.css("height","0"),t.removeClass("hidden"),t.animate({height:$(t)[0].scrollHeight+"px"},200,"swing",function(){$(this).css("height","")}),t.hasClass("tl-item-row")&&r++,r>u)break}f()}}),t=$("div.timeline-year-bar"),o(),$(window).scroll(o),$("#sticky-years a").click(function(){function v(n){$("html,body").animate({scrollTop:n.offset().top-h-3},"slow",function(){$("body").scrollspy("refresh")})}var y=$(this),u=$("div"+$(this).attr("href")),h=$(t).height(),c,s,l,r,i;if($(t).hasClass("sticky-nav")||(h*=2),c=!1,u.is(":visible")==!1){delay=!0;var e=$("div.tl-item-row:visible, div.tl-year:visible",n).eq(0).index(),a=u.index(),o=$("div.tl-item-row, div.tl-year",n);if(a<e){for(r=e-1;r>=0;r--)if(i=o.eq(r),i.hasClass("tl-item-row")&&i.css("height","0"),i.removeClass("hidden"),i.hasClass("tl-item-row")&&i.animate({height:$(i)[0].scrollHeight+"px"},200,"swing",function(){$(this).css("height","")}),i.is(u))break}else for(s=!1,l=0,r=e+1;r<o.length;r++)if(i=o.eq(r),i.css("opacity","0"),i.removeClass("hidden"),i.animate({opacity:1},500,"swing"),i.is(u))s=!0;else if(s&&l++>4)break;f()}return c||v(u),!1}),$("body").scrollspy({target:"#sticky-years",offset:53});$("#sticky-years").on("activate.bs.scrollspy",function(){s()})}),$(window).load(function(){$("div.press-more").on("click",function(){var n=$(this).parents(".container.press-kit");$(".press-kit-items.addl-row",n).toggle(),$("span",this).toggleClass("more-bar").toggleClass("close-bar")})}),$(window).load(function(){function n(n,t){return $(t).data("position")<$(n).data("position")?1:-1}$(window).scroll(function(){$(this).scrollTop()!=0?$("#back2top").fadeIn():$("#back2top").fadeOut()}),$("#back2top").click(function(){$("body,html").animate({scrollTop:0},500),location.hash!=""&&(location.hash="")}),$("span.explore-drop-down-main").click(function(){$("div.explore-dd-container").toggle()}),$(".prop-menu li").sort(n).appendTo(".prop-menu"),$(".prop-menu").show(),$(".prop-menu-mobile li").sort(n).appendTo(".prop-menu-mobile")}),$(window).load(function(){var n=getQueryParams(document.location.search);n.media!=undefined&&n.media.length&&$("a[data-mediaid='"+n.media+"']").click();$("div.news-social a.popout").on("click",function(){var i=$(this).attr("data-title"),t=$(this).attr("data-image"),n=[location.protocol,"//",location.host,location.pathname].join(""),r,u;return t=[location.protocol,"//",location.host,t].join(""),n=n.replace(/localhost:\d*/g,"spi.core12.net"),t=t.replace(/localhost:\d*/g,"spi.core12.net"),$(this).attr("id")=="fb-share"?$(this).attr("href","http://www.facebook.com/sharer.php?u="+escape(n)+"&t="+encodeURIComponent(i)):$(this).attr("id")=="twitter-share"?$(this).attr("href","http://twitter.com/share?url="+escape(n)+"&text="+encodeURIComponent(i)):$(this).attr("id")=="pinterest-share"?$(this).attr("href","http://pinterest.com/pin/create/button/?url="+escape(n)+"&media="+escape(t)+"&description="+encodeURIComponent(i)):$(this).attr("id")=="gplus-share"&&$(this).attr("href","https://plus.google.com/share?url="+escape(n)+"&hl="+encodeURIComponent(i)),r=screen.width/2-250,u=screen.height/2-275,window.open($(this).attr("href"),"sharewindow","status=0,toolbar=0,location=0,menubar=0,width=500,height=550,top="+u+", left="+r),!1})}),$(window).load(function(){function r(n,t){return $("div.floorplan_sprite").map(function(){var i=$(this),r=i.offset(),u=r.left,f=r.top,e=i.height(),o=i.width(),s=u+o,h=f+e;return t<=h&&t>=f&&n<=s&&n>=u?i:null})}var t=$("div.avail-listings ul li"),i,n;$("div.stacking-diagram").on("click",function(){var i=$("div.floorplan_sprite.available.highlight"),n;i.length!=0&&(n=i.data("floornum"),t.each(function(){var t=$(this).data("startfloor"),i=$(this).data("endfloor");if(n>=t&&n<=i)return window.location.href=$(this).data("floorpage"),!1}))});$("div.stacking-diagram").mouseleave(function(){t.removeClass("highlight"),$("div.floorplan_sprite.available.highlight").children("div").remove(),$("div.floorplan_sprite.available").removeClass("highlight"),$("div.stacking-diagram").css("cursor",""),n=undefined}),t.hover(function(){for(var i=$(this).data("startfloor"),t=$(this).data("endfloor"),n=i;n<=t;n++)$("div.floorplan_sprite.available[data-floornum="+n+"]").addClass("highlight")},function(){$("div.floorplan_sprite.available").removeClass("highlight")}),i=new Image,$("div.stacking-diagram").length&&(i.src=$("div.stacking-diagram").data("sprite")),n=undefined,$("div.stacking-diagram").mousemove(function(u){var s=r(u.pageX,u.pageY),f=undefined,e,o,h;s.each(function(){this.canvas||(this.canvas=$("<canvas />")[0],this.canvas.width=i.width,this.canvas.height=i.height,this.canvas.getContext("2d").drawImage(i,0,0,this.canvas.width,this.canvas.height));var n=this.data("posx")*-1,t=this.data("posy")*-1,r=u.pageY-this.offset().top,e=u.pageX-this.offset().left,o=this.canvas.getContext("2d").getImageData(e+n,r+t,1,1).data;if(o[3]!=0)return f=this,!1}),f!=undefined&&f.length&&n!=f[0]&&f.hasClass("available")?($("div.stacking-diagram").css("cursor","pointer"),$("div.floorplan_sprite.available").removeClass("highlight"),f.addClass("highlight"),n!=undefined&&$(n).children("div").remove(),n=f[0],e=f.data("floornum"),o=f.width()+30,f.append("<div class='decorator' style='left: "+o+"px;'>"+(+e>0?e:"LL")+"</div>"),t.removeClass("highlight"),t.each(function(){var r=$(this).data("startfloor"),u=$(this).data("endfloor");if(e>=r&&e<=u){$(this).addClass("highlight");var n=$(this).position().top,t=$(this).parent().parent().height(),i=$(this).parent().parent().scrollTop(),f=n+$(this).height();(n<i||f>i+t)&&$(this).parent().parent().scrollTop(n-t/3)}})):n!=undefined&&f!=undefined&&n!=f[0]?(t.removeClass("highlight"),$(n).children("div").remove(),$("div.floorplan_sprite.available").removeClass("highlight"),$("div.stacking-diagram").css("cursor",""),n=undefined):h=0})}),searchIB=null,search_ib_content=null,$(window).load(function(){$("li.map-item, div.callout-item").on("click",function(){for(var t,n=0;n<markersArray.length;n++)if(markersArray[n].markerid==$(this).attr("data-icon-target")){if(markersArray[n].shown==!1)return;for($("html,body").animate({scrollTop:0},"slow"),t=0;t<markersArray.length;t++)markersArray[t].shown==!1&&(markersArray[t].infobox.close(),markersArray[t].setMap(map),markersArray[t].shown=!0);markersArray[n].infobox.open(map,markersArray[n]),$("html").hasClass("ie8")||$("html").hasClass("ie9")?panWithOffset(markersArray[n].position):map.panTo(markersArray[n].position),markersArray[n].setMap(null),markersArray[n].shown=!1,activeMarker=markersArray[n];break}});if(typeof mapOverride!="undefined"&&mapOverride.hasOwnProperty("debug")){debug_map=!0;var t="<div class='map-debug'>MAP DEBUG:</div>",n=$("#map");$("#map").parent().hasClass("map-container")&&(n=$("#map").parent()),n.after(t)}resultBox=$("#search-results"),search_ib_content=$("#wtc-infobox-search");$("div.drive-type span.sprite").on("click",function(){$("div.drive-type span").removeClass("selected"),$(this).addClass("selected")});$("span.get-directions").on("click",function(){var i=$("#directions-start").val(),r=$("#directions-end").val(),t=$("div.drive-type span.selected").data("dirtype"),n=google.maps.TravelMode.DRIVING;t=="bus"?n=google.maps.TravelMode.TRANSIT:t=="walk"&&(n=google.maps.TravelMode.WALKING),directionsService.route({origin:i,destination:r,travelMode:n},function(n,t){t===google.maps.DirectionsStatus.OK&&(directionsDisplay.setDirections(n),directionsDisplay.setPanel(document.getElementById("dirtext")))})})}),debug_map=!1,currentRequest=0,activeMarker=null,markerIcons=[],markersArray=[],typeof google!="object"||typeof google.maps!="object"||googleMapsSPI||(console.log("loading maps"),google.maps.event.addDomListener(window,"load",init)),typeof google=="object"&&typeof google.maps=="object"&&(WTCOverlay.prototype=new google.maps.OverlayView),WTCOverlay.prototype.onAdd=function(){var n=document.createElement("div"),t,i;n.style.borderStyle="none",n.style.borderWidth="0px",n.style.position="absolute",t=document.createElement("img"),t.src=this.image_,t.style.width="100%",t.style.height="100%",t.style.position="absolute",n.appendChild(t),this.div_=n,i=this.getPanes(),i.overlayLayer.appendChild(n),i.overlayLayer.style.zIndex="-1"},WTCOverlay.prototype.draw=function(){var r=this.getProjection(),t=r.fromLatLngToDivPixel(this.bounds_.getSouthWest()),i=r.fromLatLngToDivPixel(this.bounds_.getNorthEast()),n=this.div_;n.style.left=t.x+"px",n.style.top=i.y+"px",n.style.width=i.x-t.x+"px",n.style.height=t.y-i.y+"px"},WTCOverlay.prototype.onRemove=function(){this.div_.parentNode.removeChild(this.div_),this.div_=null},WTCOverlay.prototype.updateBounds=function(n){this.bounds_=n,this.draw()},$(window).load(function(){var n=$("#mobile-menu-toggle");$(n).click(function(){$("body").hasClass("mobile-open")==!1?($("body").addClass("mobile-open"),$("div.main-container").animate({right:"81%"},"easeOutBounce"),$("div.mobile-menu-items").css("display","inline").animate({right:0},"easeOutBounce")):($("body").removeClass("mobile-open"),$("div.main-container").animate({right:0},"easeOutBounce"),$("div.mobile-menu-items").animate({right:-35},"easeOutBounce",function(){$(this).hide()}))}),$("div.property-menu-mobile li.active").click(function(){$(this).parent().parent().parent().hasClass("floor-plan-menu-mobile")||($(this).parent().hasClass("open")==!1&&($("div.property-menu-mobile ul").removeClass("open"),$("div.property-menu-mobile").removeClass("open")),$(this).parent().toggleClass("open"),$(this).parent().parent().toggleClass("open"))}),$("div.property-menu-mobile span.sprite.menu-down-mobile").click(function(){$(this).parent().find("ul").hasClass("open")==!1&&($("div.property-menu-mobile ul").removeClass("open"),$("div.property-menu-mobile").removeClass("open")),$(this).parent().find("ul").toggleClass("open"),$(this).parent().toggleClass("open")})}),$(window).load(function(){var n=$("ul#spec-data");$("li.spec-item.spec-more-less").click(function(){var i,t;return $(this).find("span").toggleClass("hidden"),$(this).hasClass("less")==!1?(t=$(n).outerHeight(),$(n).attr("data-orig-height",t).css("height",t+"px").css("overflow","hidden"),$(n).find("li.spec-item").css("display","list-item"),i=$(n)[0].scrollHeight,$(n).animate({height:i+"px"},750,function(){$(n).css("height","").css("overflow","")})):(t=parseInt($(n).attr("data-orig-height"),10),$(n).css("overflow","hidden").animate({height:t+"px"},750,function(){$(n).find("li.spec-item").css("display",""),$(n).css("height","").css("overflow","")})),$(this).toggleClass("less"),!1})}),$(function(){$("span.close-video").on("click",function(){var n=$("div.video-embed").outerHeight();$("div.video-embed").css("height",n+"px").css("overflow","hidden").css("padding","0px"),$("div.video-embed").animate({height:"0px"},300,function(){$(".property-video-modal").attr("src",""),$("div.video-embed").hide(),$("div.video-embed-container").hide()})})}),$(function(){function n(){$("div.video-embed-container").css("max-height",$("iframe.property-video-modal").css("height"))}$("iframe.property-video-modal").ready(function(){$("div.video-embed-container").css("max-height",$("iframe.property-video-modal").css("height"))});$(window).on("resize",n)}),$(window).load(function(){function i(){var i=parseInt($(t).attr("data-orig-pos"),10),u=$(t).outerHeight(),f=$(window),e=$(n).offset().top,o=$(n)[0].scrollHeight,r=f.scrollTop()+f.height();r>i&&r<=i+u?$(t).addClass("fixed").css("position","absolute").css("top",i+"px").css("bottom","initial"):r>i+u&&r<e+o+u?$(t).addClass("fixed").css("position","").css("top","").css("bottom",""):$(t).removeClass("fixed").css("position","").css("top","").css("bottom","")}$("img.gal-img.preload").lazyload({effect:"fadeIn"});var t=$("div.img-gal-container div.show-more"),n=$("div.img-container",$(t).parent());$(t).on("click",function(){var u,i;if($(this).hasClass("less")==!1){$(this).toggleClass("less"),$(this).attr("data-orig-pos",$(this).offset().top),i=$(n).outerHeight(),$(n).attr("data-orig-height",i).css("height",i+"px").css("overflow","hidden"),$(n).find("li.img-grid-item").css("display","inline-block");var r=$(n)[0].scrollHeight,f=$(n).offset().top,e=$(window).scrollTop()+$(window).height()-4;f+r>e&&(r=e-f-$(t).outerHeight()),$(n).animate({height:r+"px"},750,function(){$(window).scroll(),$(n).css("height","").css("overflow","")})}else u=$(t).offset().top-$(n).offset().top,i=parseInt($(n).attr("data-orig-height"),10),u<$(n).height()&&$(n).css("overflow","hidden").css("height",u+"px"),$(this).toggleClass("less").removeClass("fixed"),$(n).css("overflow","hidden").animate({height:i+"px"},750,function(){$(n).find("li.img-grid-item").css("display",""),$(n).css("height","").css("overflow","")})});$(window).scroll(function(){$(t).hasClass("less")!=!1&&i()})}),$(window).load(function(){$("div.floor-plan-links a").click(function(){$("div.floor-plan-links a span").removeClass("active"),$(this).find("span").addClass("active");var n=$(this).attr("data-target");return $("div.floor-plan-item").removeClass("active"),$(n).addClass("active"),!1}),$("div.floor-plan-menu-mobile a").click(function(){if($(this).parent().parent().hasClass("open")==!1)return $("div.property-menu-mobile ul").removeClass("open"),$("div.property-menu-mobile").removeClass("open"),$(this).parent().parent().parent().toggleClass("open"),$(this).parent().parent().toggleClass("open"),!1;$("div.floor-plan-menu-mobile ul").removeClass("open"),$("div.property-menu-mobile").removeClass("open"),$("div.floor-plan-menu-mobile li").removeClass("active"),$(this).parent().addClass("active");var n=$(this).attr("data-target");return $("div.floor-plan-item").removeClass("active"),$(n).addClass("active"),!1}),$(".print-me").click(function(){window.print()})})