function initialize(){geocoder=new google.maps.Geocoder;var n=new google.maps.LatLng(-34.397,150.644),t=new google.maps.StyledMapType([{stylers:[{saturation:-100}]}],{name:"Styled Map"}),i={zoom:12,center:n};map=new google.maps.Map(document.getElementById("gmap_canvas"),i);map.mapTypes.set("gmap_canvas",t);map.setMapTypeId("gmap_canvas");codeAddress()}function codeAddress(){var n=document.getElementById("Postcode").value,t=document.getElementById("LocationAddress").value;geocoder.geocode({address:t+" "+n},function(n,t){if(t==google.maps.GeocoderStatus.OK){map.setCenter(n[0].geometry.location);var i=new google.maps.Marker({map:map,draggable:!1,position:n[0].geometry.location,icon:"/App_Themes/GLL_Extreme/images/ico-09.png"})}})}var jq,geocoder,map;jQuery(".tip-tl").tipsy({gravity:"se",html:!0,title:"data-tooltip",offset:5,live:!0});jQuery(".tip-t").tipsy({gravity:"s",html:!0,title:"data-tooltip",offset:5,live:!0});jQuery(".tip-tr").tipsy({gravity:"sw",html:!0,title:"data-tooltip",offset:5,live:!0});jQuery(".tip-r").tipsy({gravity:"w",html:!0,title:"data-tooltip",offset:5,live:!0});jQuery(".tip-br").tipsy({gravity:"nw",html:!0,title:"data-tooltip",offset:5,live:!0});jQuery(".tip-b").tipsy({gravity:"n",html:!0,title:"data-tooltip",offset:5,live:!0});jQuery(".tip-bl").tipsy({gravity:"ne",html:!0,title:"data-tooltip",offset:5,live:!0});jQuery(".tip-l").tipsy({gravity:"e",html:!0,title:"data-tooltip",offset:5,live:!0});jQuery(".tip-tl-fade").tipsy({gravity:"se",html:!0,title:"data-tooltip",offset:5,fade:!0,fadeSpeed:150,live:!0});jQuery(".tip-t-fade").tipsy({gravity:"s",html:!0,title:"data-tooltip",offset:5,fade:!0,fadeSpeed:150,live:!0});jQuery(".tip-tr-fade").tipsy({gravity:"sw",html:!0,title:"data-tooltip",offset:5,fade:!0,fadeSpeed:150,live:!0});jQuery(".tip-r-fade").tipsy({gravity:"w",html:!0,title:"data-tooltip",offset:5,fade:!0,fadeSpeed:150,live:!0});jQuery(".tip-br-fade").tipsy({gravity:"nw",html:!0,title:"data-tooltip",offset:5,fade:!0,fadeSpeed:150,live:!0});jQuery(".tip-b-fade").tipsy({gravity:"n",html:!0,title:"data-tooltip",offset:5,fade:!0,fadeSpeed:150,live:!0});jQuery(".tip-bl-fade").tipsy({gravity:"ne",html:!0,title:"data-tooltip",offset:5,fade:!0,fadeSpeed:150,live:!0});jQuery(".tip-l-fade").tipsy({gravity:"e",html:!0,title:"data-tooltip",offset:5,fade:!0,fadeSpeed:150,live:!0});jQuery(document).ready(function(){jQuery(".scroll-to-top").click(function(){return jQuery("html, body").animate({scrollTop:0},1600,"easeInOutQuart"),!1})});customForm.addModule({name:"checkbox",selector:'input[type="checkbox"]',defaultOptions:{wrapperClass:"chk-area",focusClass:"chk-focus",checkedClass:"chk-checked",labelActiveClass:"chk-label-active",uncheckedClass:"chk-unchecked",disabledClass:"chk-disabled",chkStructure:"<span><\/span>"},setupWrapper:function(){customForm.lib.addClass(this.fakeElement,this.options.wrapperClass);this.fakeElement.innerHTML=this.options.chkStructure;this.realElement.parentNode.insertBefore(this.fakeElement,this.realElement);customForm.lib.event.add(this.realElement,"click",this.onRealClick,this);this.refreshState()},onFakePressed:function(){customForm.modules[this.name].superclass.onFakePressed.apply(this,arguments);this.realElement.disabled||this.realElement.focus()},onFakeClick:function(){return customForm.modules[this.name].superclass.onFakeClick.apply(this,arguments),this.tmpTimer=setTimeout(customForm.lib.bind(function(){this.toggle()},this),10),!1},onRealClick:function(n){setTimeout(customForm.lib.bind(function(){this.refreshState()},this),10);n.stopPropagation()},toggle:function(){return this.realElement.disabled||(this.realElement.checked=this.realElement.checked?!1:!0,customForm.lib.fireEvent(this.realElement,"change")),this.refreshState(),!1},refreshState:function(){this.realElement.checked?(customForm.lib.addClass(this.fakeElement,this.options.checkedClass),customForm.lib.removeClass(this.fakeElement,this.options.uncheckedClass),this.labelFor&&customForm.lib.addClass(this.labelFor,this.options.labelActiveClass)):(customForm.lib.removeClass(this.fakeElement,this.options.checkedClass),customForm.lib.addClass(this.fakeElement,this.options.uncheckedClass),this.labelFor&&customForm.lib.removeClass(this.labelFor,this.options.labelActiveClass));this.realElement.disabled?(customForm.lib.addClass(this.fakeElement,this.options.disabledClass),this.labelFor&&customForm.lib.addClass(this.labelFor,this.options.labelDisabledClass)):(customForm.lib.removeClass(this.fakeElement,this.options.disabledClass),this.labelFor&&customForm.lib.removeClass(this.labelFor,this.options.labelDisabledClass))}});customForm.addModule({name:"radio",selector:'input[type="radio"]',defaultOptions:{wrapperClass:"rad-area",focusClass:"rad-focus",checkedClass:"rad-checked",uncheckedClass:"rad-unchecked",disabledClass:"rad-disabled",radStructure:"<span><\/span>"},getRadioGroup:function(n){var t=n.getAttribute("name");return t?customForm.lib.queryBySelector('input[name="'+t+'"]',customForm.lib.getParent("form")):[n]},setupWrapper:function(){customForm.lib.addClass(this.fakeElement,this.options.wrapperClass);this.fakeElement.innerHTML=this.options.radStructure;this.realElement.parentNode.insertBefore(this.fakeElement,this.realElement);this.refreshState();this.addEvents()},addEvents:function(){customForm.lib.event.add(this.fakeElement,"click",this.toggleRadio,this);this.labelFor&&customForm.lib.event.add(this.labelFor,"click",this.toggleRadio,this)},onFocus:function(){customForm.modules[this.name].superclass.onFocus.apply(this,arguments);setTimeout(customForm.lib.bind(function(){this.refreshState()},this),10)},toggleRadio:function(){this.realElement.disabled||(this.realElement.checked=!0);this.refreshState();customForm.lib.fireEvent(this.realElement,"change")},refreshState:function(){for(var i=this.getRadioGroup(this.realElement),n,t=0;t<i.length;t++)n=i[t].customForm,n&&(n.realElement.checked?(customForm.lib.addClass(n.fakeElement,n.options.checkedClass),customForm.lib.removeClass(n.fakeElement,n.options.uncheckedClass),n.labelFor&&customForm.lib.addClass(n.labelFor,n.options.labelActiveClass)):(customForm.lib.removeClass(n.fakeElement,n.options.checkedClass),customForm.lib.addClass(n.fakeElement,n.options.uncheckedClass),n.labelFor&&customForm.lib.removeClass(n.labelFor,n.options.labelActiveClass)),n.realElement.disabled?(customForm.lib.addClass(n.fakeElement,n.options.disabledClass),n.labelFor&&customForm.lib.addClass(n.labelFor,n.options.labelDisabledClass)):(customForm.lib.removeClass(n.fakeElement,n.options.disabledClass),n.labelFor&&customForm.lib.removeClass(n.labelFor,n.options.labelDisabledClass)))}});customForm.addModule({name:"select",selector:"select",defaultOptions:{showNativeDrop:!1,handleDropPosition:!0,selectDropPosition:"bottom",wrapperClass:"select-area",focusClass:"select-focus",dropActiveClass:"select-active",selectedClass:"item-selected",currentSelectedClass:"current-selected",disabledClass:"select-disabled",valueSelector:"span.center",optGroupClass:"optgroup",openerSelector:"a.select-opener",selectStructure:'<span class="left"><\/span><span class="center"><\/span><a class="select-opener"><\/a>',classPrefix:"select-",dropMaxHeight:200,dropFlippedClass:"select-options-flipped",dropHiddenClass:"options-hidden",dropScrollableClass:"options-overflow",dropClass:"select-options",dropClassPrefix:"drop-",dropStructure:'<div class="drop-holder"><div class="drop-list"><\/div><\/div>',dropSelector:"div.drop-list"},checkElement:function(n){return!n.size&&!n.multiple},setupWrapper:function(){if(customForm.lib.addClass(this.fakeElement,this.options.wrapperClass),this.realElement.parentNode.insertBefore(this.fakeElement,this.realElement),this.fakeElement.innerHTML=this.options.selectStructure,this.fakeElement.style.width=this.realElement.offsetWidth>0?this.realElement.offsetWidth+"px":"auto",customForm.isTouchDevice&&customForm.baseOptions.useNativeDropOnMobileDevices&&(this.options.showNativeDrop=!0),this.options.showNativeDrop&&(this.fakeElement.appendChild(this.realElement),customForm.lib.removeClass(this.realElement,this.options.hiddenClass),customForm.lib.setStyles(this.realElement,{top:0,left:0,margin:0,padding:0,opacity:0,border:"none",position:"absolute",width:customForm.lib.getInnerWidth(this.fakeElement)-1,height:customForm.lib.getInnerHeight(this.fakeElement)-1})),this.opener=customForm.lib.queryBySelector(this.options.openerSelector,this.fakeElement)[0],this.valueText=customForm.lib.queryBySelector(this.options.valueSelector,this.fakeElement)[0],customForm.lib.disableTextSelection(this.valueText),this.opener.customForm=this,this.options.showNativeDrop)this.refreshState();else{this.createDropdown();this.refreshState();this.onControlReady(this);this.hideDropdown(!0)}this.addEvents()},addEvents:function(){this.options.showNativeDrop?customForm.lib.event.add(this.realElement,"click",this.onChange,this):customForm.lib.event.add(this.fakeElement,"click",this.toggleDropdown,this);customForm.lib.event.add(this.realElement,"change",this.onChange,this)},onFakeClick:function(){},onFocus:function(){customForm.modules[this.name].superclass.onFocus.apply(this,arguments);this.options.showNativeDrop||(customForm.lib.browser.safariMac&&this.realElement.setAttribute("size","2"),customForm.lib.event.add(this.realElement,"keydown",this.onKeyDown,this),customForm.activeControl&&customForm.activeControl!=this&&(customForm.activeControl.hideDropdown(),customForm.activeControl=this))},onBlur:function(){this.options.showNativeDrop?customForm.modules[this.name].superclass.onBlur.apply(this):(customForm.lib.browser.safariMac&&this.realElement.removeAttribute("size"),this.isActiveDrop()&&this.isOverDrop()||(customForm.modules[this.name].superclass.onBlur.apply(this),customForm.activeControl===this&&(customForm.activeControl=null),customForm.isTouchDevice||this.hideDropdown()),customForm.lib.event.remove(this.realElement,"keydown",this.onKeyDown))},onChange:function(){this.refreshState()},onKeyDown:function(n){customForm.tmpFlag=!0;setTimeout(function(){customForm.tmpFlag=!1},100);var t=this;return t.keyboardFix=!0,setTimeout(function(){t.refreshState()},10),n.keyCode==13?(t.toggleDropdown.apply(t),!1):void 0},onResizeWindow:function(){this.isActiveDrop()&&this.hideDropdown()},onScrollWindow:function(){this.isActiveDrop()&&this.positionDropdown()},onOptionClick:function(n){var t=n.target&&n.target.tagName&&n.target.tagName.toLowerCase()=="li"?n.target:customForm.lib.getParent(n.target,"li");return t&&(this.realElement.selectedIndex=parseInt(t.getAttribute("rel")),customForm.isTouchDevice?this.onFocus():this.realElement.focus(),this.refreshState(),this.hideDropdown(),customForm.lib.fireEvent(this.realElement,"change")),!1},onClickOutside:function(n){if(customForm.tmpFlag){customForm.tmpFlag=!1;return}customForm.lib.isParent(this.fakeElement,n.target)||customForm.lib.isParent(this.selectDrop,n.target)||this.hideDropdown()},onDropHover:function(n){if(this.keyboardFix)this.keyboardFix=!1;else{this.hoverFlag=!0;var t=n.target&&n.target.tagName&&n.target.tagName.toLowerCase()=="li"?n.target:customForm.lib.getParent(n.target,"li");t&&(this.realElement.selectedIndex=parseInt(t.getAttribute("rel")),this.refreshSelectedClass(parseInt(t.getAttribute("rel"))))}},onDropLeave:function(){this.hoverFlag=!1},isActiveDrop:function(){return!customForm.lib.hasClass(this.selectDrop,this.options.dropHiddenClass)},isOverDrop:function(){return this.hoverFlag},createDropdown:function(){this.selectDrop&&this.selectDrop.parentNode.removeChild(this.selectDrop);this.selectDrop=document.createElement("div");this.selectDrop.className=this.options.dropClass;this.selectDrop.innerHTML=this.options.dropStructure;customForm.lib.setStyles(this.selectDrop,{position:"absolute"});this.selectList=customForm.lib.queryBySelector(this.options.dropSelector,this.selectDrop)[0];customForm.lib.addClass(this.selectDrop,this.options.dropHiddenClass);document.body.appendChild(this.selectDrop);this.selectDrop.customForm=this;customForm.lib.event.add(this.selectDrop,"click",this.onOptionClick,this);customForm.lib.event.add(this.selectDrop,"mouseover",this.onDropHover,this);customForm.lib.event.add(this.selectDrop,"mouseout",this.onDropLeave,this);this.buildDropdown()},buildDropdown:function(){this.buildDropdownOptions();this.positionDropdown();this.buildDropdownScroll()},buildDropdownOptions:function(){this.resStructure="";this.optNum=0;for(var n=0;n<this.realElement.children.length;n++)this.resStructure+=this.buildElement(this.realElement.children[n])+"\n";this.selectList.innerHTML=this.resStructure},buildDropdownScroll:function(){this.options.dropMaxHeight&&this.selectDrop.offsetHeight>this.options.dropMaxHeight&&(this.selectList.style.height=this.options.dropMaxHeight+"px",this.selectList.style.overflow="auto",this.selectList.style.overflowX="hidden",customForm.lib.addClass(this.selectDrop,this.options.dropScrollableClass));customForm.lib.addClass(this.selectDrop,customForm.lib.getAllClasses(this.realElement.className,this.options.dropClassPrefix,customForm.baseOptions.hiddenClass))},parseOptionTitle:function(n){return typeof n=="string"&&/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i.test(n)?n:""},buildElement:function(n){var t="",r,i;if(n.tagName.toLowerCase()=="option")return customForm.lib.prevSibling(n)&&customForm.lib.prevSibling(n).tagName.toLowerCase()=="option"||(t+="<ul>"),r=this.parseOptionTitle(n.title),t+='<li rel="'+this.optNum+++'" class="'+(n.className?n.className+" ":"")+'customFormcalc"><a href="#">'+(r?'<img src="'+r+'" alt="" />':"")+"<span>"+n.innerHTML+"<\/span><\/a><\/li>",customForm.lib.nextSibling(n)&&customForm.lib.nextSibling(n).tagName.toLowerCase()=="option"||(t+="<\/ul>"),t;if(n.tagName.toLowerCase()=="optgroup"&&n.label){for(t+='<div class="'+this.options.optGroupClass+'">',t+='<strong class="customFormcalc"><em>'+n.label+"<\/em><\/strong>",i=0;i<n.children.length;i++)t+=this.buildElement(n.children[i]);return t+"<\/div>"}},positionDropdown:function(){var n=customForm.lib.getOffset(this.fakeElement),i=this.fakeElement.offsetHeight,t=this.selectDrop.offsetHeight,r=n.top-t>=customForm.lib.getScrollTop()&&customForm.lib.getScrollTop()+customForm.lib.getWindowHeight()<n.top+i+t;this.options.handleDropPosition&&r||this.options.selectDropPosition==="top"?(this.selectDrop.style.top=n.top-t+"px",customForm.lib.addClass(this.selectDrop,this.options.dropFlippedClass)):(this.selectDrop.style.top=n.top+i+"px",customForm.lib.removeClass(this.selectDrop,this.options.dropFlippedClass));this.selectDrop.style.left=n.left+"px";this.selectDrop.style.width=this.fakeElement.offsetWidth+"px"},showDropdown:function(){document.body.appendChild(this.selectDrop);customForm.lib.removeClass(this.selectDrop,this.options.dropHiddenClass);customForm.lib.addClass(this.fakeElement,this.options.dropActiveClass);this.positionDropdown();var n=this.getFakeActiveOption();this.removeClassFromItems(this.options.currentSelectedClass);customForm.lib.addClass(n,this.options.currentSelectedClass);customForm.lib.event.add(window,"resize",this.onResizeWindow,this);customForm.lib.event.add(window,"scroll",this.onScrollWindow,this);customForm.lib.event.add(document,customForm.eventPress,this.onClickOutside,this);this.positionDropdown()},hideDropdown:function(n){this.selectDrop.parentNode&&(this.selectDrop.offsetWidth&&this.selectDrop.parentNode.removeChild(this.selectDrop),n)||(typeof this.origSelectedIndex=="number"&&(this.realElement.selectedIndex=this.origSelectedIndex),customForm.lib.removeClass(this.fakeElement,this.options.dropActiveClass),customForm.lib.addClass(this.selectDrop,this.options.dropHiddenClass),customForm.lib.event.remove(window,"resize",this.onResizeWindow),customForm.lib.event.remove(window,"scroll",this.onScrollWindow),customForm.lib.event.remove(document.documentElement,customForm.eventPress,this.onClickOutside),customForm.isTouchDevice&&this.onBlur())},toggleDropdown:function(){this.realElement.disabled||(customForm.isTouchDevice?this.onFocus():this.realElement.focus(),this.dropOpened=!0,this.isActiveDrop()?this.hideDropdown():this.showDropdown(),this.refreshState())},scrollToItem:function(){if(this.isActiveDrop()){var t=this.selectList.offsetHeight,n=this.calcOptionOffset(this.getFakeActiveOption()),i=this.selectList.scrollTop,r=this.getFakeActiveOption().offsetHeight;n>=i+t?this.selectList.scrollTop=n-t+r:n<i&&(this.selectList.scrollTop=n)}},getFakeActiveOption:function(n){return customForm.lib.queryBySelector('li[rel="'+(typeof n=="number"?n:this.realElement.selectedIndex)+'"]',this.selectList)[0]},calcOptionOffset:function(n){for(var r=0,i=customForm.lib.queryBySelector(".customFormcalc",this.selectList),t=0;t<i.length;t++){if(i[t]==n)break;r+=i[t].offsetHeight}return r},childrenHasItem:function(n,t){var r=n.getElementsByTagName("*");for(i=0;i<r.length;i++)if(r[i]==t)return!0;return!1},removeClassFromItems:function(n){for(var i=customForm.lib.queryBySelector("li",this.selectList),t=i.length-1;t>=0;t--)customForm.lib.removeClass(i[t],n)},setSelectedClass:function(n){customForm.lib.addClass(this.getFakeActiveOption(n),this.options.selectedClass)},refreshSelectedClass:function(n){this.options.showNativeDrop||(this.removeClassFromItems(this.options.selectedClass),this.setSelectedClass(n));this.realElement.disabled?(customForm.lib.addClass(this.fakeElement,this.options.disabledClass),this.labelFor&&customForm.lib.addClass(this.labelFor,this.options.labelDisabledClass)):(customForm.lib.removeClass(this.fakeElement,this.options.disabledClass),this.labelFor&&customForm.lib.removeClass(this.labelFor,this.options.labelDisabledClass))},refreshSelectedText:function(){if(!this.dropOpened&&this.realElement.title)this.valueText.innerHTML=this.realElement.title;else if(this.realElement.options[this.realElement.selectedIndex].title){var n=this.parseOptionTitle(this.realElement.options[this.realElement.selectedIndex].title);this.valueText.innerHTML=(n?'<img src="'+n+'" alt="" />':"")+this.realElement.options[this.realElement.selectedIndex].innerHTML}else this.valueText.innerHTML=this.realElement.options[this.realElement.selectedIndex].innerHTML},refreshState:function(){this.origSelectedIndex=this.realElement.selectedIndex;this.refreshSelectedClass();this.refreshSelectedText();this.options.showNativeDrop||(this.positionDropdown(),this.selectDrop.offsetWidth&&this.scrollToItem())}});jq=$.noConflict();jq(document).ready(function(){function e(n){var r="",s,f,e,o,i;mapCentre=new google.maps.LatLng(51.55914,-1.828758);jq("#LatitudeHdn").length>0&&(f=jq("#LatitudeHdn").val(),e=jq("#LongitudeHdn").val(),r=jq("#TitleHdn").val(),s=new google.maps.LatLng(f,e),mapCentre=new google.maps.LatLng(f,e));var h=new google.maps.StyledMapType([{stylers:[{saturation:-100}]}],{name:"Styled Map"}),c={zoom:14,center:mapCentre,scrollwheel:!1,disableDefaultUI:!1,draggable:u>1024?!0:!1,mapTypeId:google.maps.MapTypeId.ROADMAP},t=new google.maps.Map(document.getElementById(n),c);jq(window).width()>1024?t.panBy(200,0):t.panBy(0,-140);o=new google.maps.Marker({map:t,draggable:!1,position:s,icon:"/App_Themes/GLL_Extreme/images/ico-09.png"});r=="swindon"?i=new google.maps.InfoWindow({content:'<div style="color:#f16600; font-size:16px;">Link Centre<br>Whitehill Way<br>Westlea<br>Swindon<br />SN5 7DL<br><br><a href="https://maps.google.co.uk/maps?t=m&f=d&saddr=Current+Location&daddr=SN5%207DL" target="_target" style="font-weight:bold; color:#f16600;">Get Directions<\/a><\/div>'}):r=="barking"&&(i=new google.maps.InfoWindow({content:'<div style="color:#f16600; font-size:16px;">Mayesbrook Park<br>Lodge Avenue<br>Dagenham<br>RM8 2JR<br><br><a href="https://maps.google.co.uk/maps?t=m&f=d&saddr=Current+Location&daddr=RM8%202JR" target="_target" style="font-weight:bold; color:#f16600;">Get Directions<\/a><\/div>'}));google.maps.event.addListener(o,"click",function(){i.open(t,o)});t.mapTypes.set("#map",h);t.setMapTypeId("#map")}var u=jq(window).width(),f=navigator.platform.match(/(Mac|iPhone|iPod|iPad)/i)?!0:!1,t,n,i,r;if(f&&jq(".btn").addClass("mac-btn"),jq(".select .opener").click(function(n){n.stopPropagation();jq(this).siblings("ul").slideToggle();jq(this).toggleClass("active")}),jq(document).click(function(){jq(".select ul").slideUp();jq(".select .opener").removeClass("active")}),jq(".locSelect").change(function(){jq(this).val()!=""&&(window.location.href=jq(this).val())}),jq("#main-nav > ul > li").hover(function(){jq(this).find("> ul").stop().slideToggle(200)}),jq(".sfPageWrapper").length==0&&(jq(".sidebar-content").length>0&&jq(".sidebar-content").html().trim().length==0,jq("#content").length>0&&jq("#content").html().trim().length==0&&jq("#content").remove(),jq(".article").length>0&&jq(".article").each(function(){jq(this).text().trim().length==0&&jq(this).hide()}),jq(".heading").length>0&&jq(".heading").each(function(){jq(this).text().trim().length==0&&jq(this).hide()}),jq(".info-section").length>0&&jq(".info-section").text().trim().length==0&&jq(".info-section").hide(),jq(".activity-slider").length>0&&jq(".activity-slider").text().trim().length==0&&(jq(".activity-slider").prev(".info-area").css("padding-bottom","20px"),jq(".activity-slider").hide()),jq(".carousel .slides li a, .socials-area, .main-gallery .slides > li, .slideshow .slides li, .images > li").each(function(){var n="url("+jq(this).find("> img").attr("src")+")";jq(this).find("> img").hide();jq(this).css("background-image",n)}),jq(".tallSlider").length>0&&jq(".tallSlider").parent().parent().parent().addClass("bigPromo"),jq(".main-gallery .slides > li").each(function(){var n="url("+jq(this).find(" img").not(".img").attr("src")+")";jq(this).find(" img").not(".img").hide();jq(this).css("background-image",n)}),jq(".social-boxes .box").each(function(){var t=jq(this).find("a"),n=jq(this).find("a").children("img"),i;n.length>0?(i="url("+n.attr("src")+")",n.hide(),t.css("background-image",i)):t.attr("style","")})),jq("#tabs").length>0&&jq("#tabs").tabs({show:function(){}}),jq("#main-gallery").flexslider({animation:"slide",slideshowSpeed:6e3,useCSS:!1,start:function(n){n.count<2&&n.find(".flex-direction-nav").hide()}}),jq("#testimonials").flexslider({animation:"slide",slideshowSpeed:6e3,useCSS:!1,selector:".slides > li",directionNav:!1}),jq("#testimonials").flexslider({animation:"slide",controlNav:!0,slideshowSpeed:6e3}),jq("#slideshow").flexslider({animation:"slide",slideshowSpeed:6e3,useCSS:!1,directionNav:!1}),jq("#carousel").flexslider({animation:"slide",controlNav:!1,animationLoop:!0,slideshow:!1,itemWidth:107,asNavFor:"#slideshow-full"}),jq("#slideshow-full").flexslider({animation:"slide",controlNav:!0,useCSS:!1,slideshow:!1,animationLoop:!0,controlsContainer:".slideshow-full .controls",sync:"#carousel"}),jq(".scroll-down").click(function(n){var t=jq(this).attr("href"),i=t==="#"?0:jq(t).offset().top;jq("html, body").stop().animate({scrollTop:i},500);n.preventDefault()}),jq(".parallax").parallax({speed:.5}),jq("#map").length>0&&e("map"),jq(".bookBtn").length>0&&(jq(".bookBtn").click(function(){var n=!0;return jq("#BookSlideDown1_drp_Location option").each(function(){var t=jq(this).text().toLowerCase(),i=jq(this).val();window.location.href.indexOf(t)>-1&&(n=!1,window.location.replace(i))}),n&&jq("#bookPanel").slideToggle(),!1}),jq(document).bind("click",function(n){jq(n.target).closest("#bookPanel").length===0&&(jq(n.target).is(".select-area .center")||jq("#bookPanel").slideUp())})),jq(".contact-box .opener").click(function(){jq(this).siblings(".contact-form").slideToggle();jq(this).toggleClass("active")}),jq("#header").sticky({topSpacing:0}),jq("#sidebar").sticky({topSpacing:79}),t=jq("#header").find(".social-block").html(),jq("#main-nav").find(".block").append(t),jq(".sfPageWrapper").length==0&&(n=jq("#main-nav").clone(),n.attr("id","mobile-menu"),n.mmenu({onClick:{close:!1}},{offCanvas:{menuInjectMethod:"prepend",menuWrapperSelector:"body"}})),jq(".close-menu, #mobile-menu .block .back").click(function(){return jq("#mobile-menu").trigger("close.mm"),!1}),jq(".mm-list li").each(function(){var n=jq(this),t=n.find("a:not(.mm-subopen)").html();n.children(".mm-subopen").html(t)}),jq(".mm-list a").wrapInner("<span><\/span>"),jq("#mobile-menu .sel .opener").click(function(n){n.stopPropagation();jq(this).toggleClass("active");jq(this).siblings("ul").slideToggle()}),jq(".mm-list").each(function(){var n=jq(this),t=n.find(".mm-subtitle:first-child").clone();n.append(t)}),jq(".mm-subtitle span").text("GO BACK"),jq(".litebox").liteBox(),jq("table tr:even").addClass("even"),customForm.lib.domReady(function(){customForm.customForms.replaceAll()}),setTimeout(function(){jq(".info-links .img, .info-link .img, .activities .img").each(function(){var n="url("+jq(this).find("img").attr("src")+")";jq(this).find(">img").hide();jq(this).css("background-image",n)})},400),jq(".activities .top").hover(function(){var n=jq(this);n.children(".img").addClass("active")},function(){var n=jq(this);n.children(".img").removeClass("active")}),jq(".mobile-nav").click(function(){var n=jq(this);n.hasClass("active")?(n.removeClass("active"),jq(".second-nav").slideUp()):(n.addClass("active"),jq(".second-nav").slideDown())}),jq(".second-nav li a").click(function(){var n=jq(this).html();jq(".second-nav").slideUp();jq(".mobile-nav").removeClass("active")}),jq(".faq-accordion .accordion-content").hide(),jq(".faq-accordion .accordion-title.active").next(".faq-accordion .accordion-content").show(),jq(".faq-accordion .accordion-title").click(function(){var n=jq(this);n.hasClass("active")?n.removeClass("active").next(".faq-accordion .accordion-content").slideUp(300):(n.closest(".faq-accordion").find(".accordion-content").slideUp(300),n.addClass("active").next(".faq-accordion .accordion-content").slideDown(300),n.siblings(".faq-accordion .accordion-title").removeClass("active"))}),jq(".main-form").length>0){jq(".sfFormSubmit > .btn").click(function(){jq(".sfError").each(function(){jq(this).is(":visible")?jq(this).closest(".sfFormBox, .sfFormDropdown").addClass("sfErrorWrp"):jq(this).closest(".sfFormBox, .sfFormDropdown").removeClass("sfErrorWrp")})});jq("body").on("blur",".sfTxt, .sel",function(){jq(".sfError").each(function(){jq(this).is(":visible")?jq(this).closest(".sfFormBox, .sfFormDropdown").addClass("sfErrorWrp"):jq(this).closest(".sfFormBox, .sfFormDropdown").removeClass("sfErrorWrp")})})}jq("#galleria").length>0&&jq("#galleria").galleria({transition:"fade",responsive:!0,transitionSpeed:500,autoplay:!0,thumbCrop:!0,debug:!1,height:150,extend:function(){this.jq("thumblink").click()}});jq(".success-msg").length>0&&jq(".question-form").length>0&&(i=jq(".question-form").offset().top,jq("html, body").animate({scrollTop:i},500));jq("#eventGalleria").length>0&&jq("#eventGalleria").galleria({transition:"fade",responsive:!0,transitionSpeed:500,carousel:!0,autoplay:!0,thumbCrop:!0,debug:!1,height:150,extend:function(){this.jq("thumblink").click()}});jq("#gmap_canvas").length>0&&initialize();jq(".alert-close").click(function(){jq("#alert").slideUp()});jq(".contact-box").each(function(){var n=jq(this);n.text().replace(/\s|&nbsp;/g,"").length==0&&n.hide()});r=jq("#footer").find(".social").children(".logos").html();jq("#footer").children(".btn-area").append(r)});jq(window).load(function(){jq("#instafeed").children().each(function(n){var t=jq(this).detach();jq(".social-boxes").find(".instagram").eq(n).append(t)});jq(".social-boxes").flipster({style:"carousel",start:1,enableTouch:!0});jq(".social-boxes").on("swipeleft",function(){jq(".social-boxes").flipster("jump","left")});jq(".social-boxes").on("swiperight",function(){jq(".social-boxes").flipster("jump","right")});if(jq(".social-boxes").length>0&&jq(".social-boxes > div").isotope({itemSelector:".box",masonry:{columnWidth:jq(window).width()>1024?200:256,isFitWidth:!0}}),jQuery(".sfMsgVisible").length>0){var n=jQuery(".sfMsgVisible").offset().top;jQuery("html, body").animate({scrollTop:n},500)}jq(".sfPageWrapper").length==0&&jq(".social-boxes .box").each(function(){var t=jq(this).find("a"),n=jq(this).find("a").children("img"),i;n.length>0?(i="url("+n.attr("src")+")",n.hide(),t.css("background-image",i)):t.attr("style","")})})