!function(e,t,n,i){e.fn.doubleTapToGo=function(i){return!!("ontouchstart"in t||navigator.msMaxTouchPoints||navigator.userAgent.toLowerCase().match(/windows phone os 7/i))&&(this.each(function(){var t=!1;e(this).on("click",function(n){var i=e(this);i[0]!=t[0]&&(n.preventDefault(),t=i)}),e(n).on("click touchstart MSPointerDown",function(n){for(var i=!0,a=e(n.target).parents(),s=0;so||g.hasOwnProperty(o)&&(p[g[o]]=o)}a=p[n]?"keydown":"keypress"}return"keypress"==a&&s.length&&(a="keydown"),{key:i,modifiers:s,action:a}}function h(e,t,n,i,a){w[e+":"+n]=t,e=e.replace(/\s+/g," ");var s=e.split(" ");1":".","?":"/","|":"\\"},$={option:"alt",command:"meta","return":"enter",escape:"esc",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},b={},w={},C={},k=!1,A=!1,T=!1;for(n=1;20>n;++n)g[111+n]="f"+n;for(n=0;9>=n;++n)g[n+96]=n;i(t,"keypress",c),i(t,"keydown",c),i(t,"keyup",c);var S={bind:function(e,t,n){e=e instanceof Array?e:[e];for(var i=0;i1||e.targetTouches&&e.targetTouches.length>1)return!1;var t=i(e);c=t[0],l=t[1]}function s(e){if(!d){var t=i(e);t&&(Math.abs(l-t[1])>u||Math.abs(c-t[0])>u)&&(d=!0)}}function o(t){if(clearTimeout(r),r=setTimeout(function(){e.tapHandling=!1,d=!1},1e3),!(t.which&&t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey)){if(t.preventDefault(),d||e.tapHandling&&e.tapHandling!==t.type)return void(d=!1);e.tapHandling=t.type,n(t)}}var r,l,c,d,f=t(this),u=10;f.bind("touchstart.tappy MSPointerDown.tappy",a).bind("touchmove.tappy MSPointerMove.tappy",s).bind("touchend.tappy MSPointerUp.tappy",o).bind("click.tappy",o)})},a=function(e){return e.unbind(".tappy")};if(t.event&&t.event.special)t.event.special.tap={add:function(e){i(t(this))},remove:function(e){a(t(this))}};else{var s=t.fn.bind,o=t.fn.unbind;t.fn.bind=function(e){return/(^| )tap( |$)/.test(e)&&i(this),s.apply(this,arguments)},t.fn.unbind=function(e){return/(^| )tap( |$)/.test(e)&&a(this),o.apply(this,arguments)}}}(this,jQuery);var FiveStarMap={settings:{map:$(".map"),states:$(".states li"),cities:$(".cities li")},init:function(){var e=this.settings;setTimeout(function(){FiveStarMap.scrollTrigger(e)},500),$(window).scroll(function(){FiveStarMap.scrollTrigger(e)})},scrollTrigger:function(e){var t=e.map.offset().top-$("body").height()+e.map.height()/3;$(window).scrollTop()>=t&&FiveStarMap.elevateStates(e)},elevateStates:function(e){var t=0;e.states.each(function(e,n){$(this).delay(100*t).fadeIn(500,function(){$(this).addClass("on")}),t++}),setTimeout(function(){var t=0;e.cities.each(function(e,n){$(this).delay(100*t).fadeIn(500),t++})},(100*e.states.length+500)/1.5)}},AreaAmenities={settings:{legend:$(".legend"),map:$(".map")},init:function(){var e=this.settings;AreaAmenities.toggleLegend(e);var t=window.location.hash.split("#");t.length>1&&$("html").hasClass("ieOld")?(e.legendNav.find(".active").add(e.directory.find(".active")).removeClass("active"),e.legendNav.find('a[href$="'+t[1]+'"]').add(e.directory.find(e.legendNav.find('a[href$="'+t[1]+'"]').attr("href"))).addClass("active"),AreaAmenities.popultateMap(e)):e.legend.find("h2")[0].click()},toggleLegend:function(e){e.legend.find("h2").bind("click",function(t){t.preventDefault(),$("html").hasClass("ieOld")?(window.location.hash=$(this).attr("href"),location.reload()):(e.legend.find(".active").removeClass("active"),$(this).parent().addClass("active"),AreaAmenities.popultateMap(e))})},popultateMap:function(e){e.map.find(".markers, .dups").remove();var t=e.legend.find(".active li:not(.dup)"),n=0;e.map.append('
    ');var i=e.map.find(".markers");t.each(function(){if(i.append('
  • '),n++,n===t.length){var a=0;i.find("li").each(function(){$(this).delay(50*a).fadeIn(300),a++}),AreaAmenities.legendActions(e),AreaAmenities.markerActions(e)}});var a=e.legend.find(".active li.dup"),s=0;e.map.append('
      ');var o=e.map.find(".dups");a.each(function(){if(o.append(''),s++,s===a.length){var t=0;o.find("li").each(function(){$(this).delay(50*t).fadeIn(300),t++}),AreaAmenities.legendActions(e),AreaAmenities.markerActions(e)}})},legendActions:function(e){e.legend.find(".active li").each(function(t,n){$(this).hover(function(){e.map.find('li[rel="'+$(this).text()+'"]').addClass("active")},function(){e.map.find('li[rel="'+$(this).text()+'"]').removeClass("active")})})},markerActions:function(e){e.map.find("li").hover(function(){var t=$(this).attr("rel");e.legend.find(".active li").filter(function(){return $.text([this])===t}).addClass("active")},function(){var t=$(this).attr("rel");e.legend.find(".active li").filter(function(){return $.text([this])===t}).removeClass("active")})}},FloorPlan={settings:{floorplan:$(".floor-plan"),hotspots:$(".floor-plan li a"),layers:$(".layers")},init:function(){var e=this.settings;FloorPlan.activateHotSpot(e)},activateHotSpot:function(e){e.hotspots.bind("tap",function(t){if($(this).parent().hasClass("active"))e.hotspots.parent().add(e.layers.find("li")).removeClass("active");else{var n=$(this).attr("href");e.hotspots.parent().add(e.layers.find("li")).removeClass("active"),$(this).parent().addClass("active"),e.layers.find(n).addClass("active")}})}},Gallery={settings:{launcher:$("a.launcher"),gallery:$(".gallery"),slides:$(".gallery .slides img"),btn:$(".gallery a.btn"),close:$("a.close"),current:0},init:function(){var e=this.settings;Gallery.launchGallery(e),Gallery.closeGallery(e),Gallery.keyboardActions(e)},windowSizeChecker:function(e,t){e.slides.each(function(e){var t=-($(this).height()/2),n=-($(this).width()/2);$(this).css({"margin-left":n,"margin-top":t})})},dotCounter:function(e,t){$(".dots").remove();var n='
        ';$("#"+t+" img").each(function(e){n+='
      • '}),n+="
      ",e.gallery.find(".wrapper").append(n)},launchGallery:function(e){e.launcher.click(function(t){t.preventDefault();var n=$(this).attr("href").split("#")[1];e.gallery.find("h3").remove(),Gallery.dotCounter(e,n),Gallery.runGallery(e,n),$("#"+n+" img").length<2?e.btn.add(".dots").css("display","none"):e.btn.add(".dots").attr("style",""),"undefined"!=typeof $("#"+n+" img").attr("alt")&&e.gallery.append("

      "+$("#"+n+" img").attr("alt")+"

      "),e.gallery.fadeIn(500),$("body").css("overflow","hidden"),$("html").hasClass("ie")&&window.scrollTo(0,0),$(window).resize(function(){Gallery.windowSizeChecker(e,n)}),$(window).resize()})},runGallery:function(e,t){var n=$("#"+t+" img"),i=n.length,a=$(".wrapper .dots").find("li a"),s=0;a.removeClass("active").eq(s).addClass("active"),$(".gallery .slides").css("display","none"),$("#"+t).css("display","block"),n.css("opacity","0").eq(0).fadeTo(500,1),e.btn.click(function(t){if(t.preventDefault(),$(this).hasClass("next"))if(s1010?($(".site-nav .main > li:has(ul)").bind("touchstart",function(e){$(this).hasClass("on")||event.preventDefault(),$(this).toggleClass("hover").addClass("on")}),$(".site-nav .main > li:has(ul)").bind("touchend",function(e){$(this).toggleClass("hover")})):($(".site-nav .main > li:has(ul)").removeClass("hover, on"),$(".site-nav .main > li:has(ul)").unbind())}};!function(){PageSetUp.init()}();