var _detailsShowTime=0;var _roomSelectors;var _imageSectionFirst;var _imageSectionLast;var _imageScrollTime=500;function ShowDescDetails(b,c){var a=$("div.detailsDesc_"+b);if(a&&!a.data("clicked")&&c){a.data("clicked","true")}$("div.detailsDesc").hide();if(a[0]){a.show(_detailsShowTime)}$(".ui-tabs-nav li").removeClass("selected");$("."+b).parents(".ui-tabs-nav > li").addClass("selected")}function SetupImageScroll(){var c=2;var d=$("div#hotelImageThumbs > ol");d.each(function(e){$(this).addClass("imageListItem"+e);if(e>=c){this.style.display="none"}else{this.style.display="block"}});if(d.length>c){var b=$("div.imageScroll");b.show();var a=b.find("li.previousLink");a.children().hide();_imageSectionFirst=$(d[0]);_imageSectionLast=$(d[c-1])}bindNavigation()}function bindNavigation(){var a=$("div.imageScroll");a.find("li.nextLink > a").one("click",ShowNextImageSection);a.find("li.previousLink > a").one("click",ShowPreviousImageSection)}function ShowNextImageSection(){var c=_imageSectionLast.next("ol");var d=_imageSectionFirst.next("ol");var b=c.next("ol");var a=$("div.imageScroll");if(b.length==0){a.find("li.nextLink").children().hide()}_imageSectionFirst.hide("blind",{direction:"horizontal"},_imageScrollTime);c.show("blind",{direction:"horizontal"},_imageScrollTime);_imageSectionFirst=d;_imageSectionLast=c;a.find("li.previousLink").children().show();window.setTimeout("bindNavigation();",_imageScrollTime+100)}function ShowPreviousImageSection(){var d=_imageSectionFirst.prev("ol");var c=_imageSectionLast.prev("ol");var b=d.prev("ol");var a=$("div.imageScroll");if(b.length==0){a.find("li.previousLink").children().hide()}_imageSectionLast.hide("blind",{direction:"horizontal"},_imageScrollTime);d.show("blind",{direction:"horizontal"},_imageScrollTime);_imageSectionFirst=d;_imageSectionLast=c;a.find("li.nextLink").children().show();window.setTimeout("bindNavigation();",_imageScrollTime+100)}function ShowMapIcon(){var a=new GIcon();a.image="/images/maps/hotelicon_shadow2_icon.png";a.shadow="/images/maps/hotelicon_shadow2_shadow.png";a.iconSize=new GSize(62,43);a.iconAnchor=new GPoint(22,43);a.infoWindowAnchor=new GPoint(15,10);return a}function GotoEnquiry(){WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("","",false,"","/booking-enquiry/default.aspx",false,true))};