function initPS(){psItems=[{src:"_media/img/xlarge/2019-75-winner.jpg",w:1600,h:1200,msrc:"_media/img/thumb/2019-75-winner.jpg",href:"2019-trophy-presentation-2019-75-winner-brian-jeffrey.html",title:"2019 75+ Winner Brian Jeffrey"},{src:"_media/img/xlarge/2019-bilbey-runner-up.jpg",w:1600,h:1200,msrc:"_media/img/thumb/2019-bilbey-runner-up.jpg",href:"2019-trophy-presentation-2019-bilbey-runner-up-steve-foster.html",title:"2019 Bilbey Runner Up Steve Foster"},{src:"_media/img/xlarge/2019-bilbey-winner.jpg",w:1600,h:1200,msrc:"_media/img/thumb/2019-bilbey-winner.jpg",href:"2019-trophy-presentation-2019-bilbey-winner-ian-crew.html",title:"2019 Bilbey Winner Ian Crew"},{src:"_media/img/xlarge/2019-ladies-singles-runner-up.jpg",w:1600,h:1200,msrc:"_media/img/thumb/2019-ladies-singles-runner-up.jpg",href:"2019-trophy-presentation-2019-ladies-singles-runner-up-patricia-smithson.html",title:"2019 Ladies Singles Runner Up Patricia Smithson"},{src:"_media/img/xlarge/2019-ladies-singles-winner.jpg",w:1600,h:1200,msrc:"_media/img/thumb/2019-ladies-singles-winner.jpg",href:"2019-trophy-presentation-2019-ladies-singles-winner-anne-crew.html",title:"2019 Ladies Singles Winner Anne Crew"},{src:"_media/img/xlarge/2019-mens-singles-runner-up.jpg",w:1600,h:1200,msrc:"_media/img/thumb/2019-mens-singles-runner-up.jpg",href:"2019-trophy-presentation-2019-mens-singles-runner-up-john-belle-isle.html",title:"2019 Mens Singles Runner Up John Belle Isle"},{src:"_media/img/xlarge/2019-mens-singles-winner.jpg",w:1600,h:1200,msrc:"_media/img/thumb/2019-mens-singles-winner.jpg",href:"2019-trophy-presentation-2019-mens-singles-winner-brian-jeffrey.html",title:"2019 Mens Singles Winner Brian Jeffrey"},{src:"_media/img/xlarge/2019-novice-trophy-winner.jpg",w:1600,h:1200,msrc:"_media/img/thumb/2019-novice-trophy-winner.jpg",href:"2019-trophy-presentation-2019-novice-trophy-runner-up-pete-ashford.html",title:"2019 Novice Trophy Runner Up Pete Ashford"},{src:"_media/img/xlarge/2019-open-singles-runner-up.jpg",w:1600,h:1200,msrc:"_media/img/thumb/2019-open-singles-runner-up.jpg",href:"2019-trophy-presentation-2019-open-singles-runner-up-anne-crew.html",title:"2019 Open Singles Runner Up Anne Crew"},{src:"_media/img/xlarge/2019-open-singles-winner.jpg",w:1600,h:1200,msrc:"_media/img/thumb/2019-open-singles-winner.jpg",href:"2019-trophy-presentation-2019-open-singles-winner-john-belle-isle.html",title:"2019 Open Singles Winner John Belle Isle"},{src:"_media/img/xlarge/2019-pairs-runners-up.jpg",w:1600,h:1200,msrc:"_media/img/thumb/2019-pairs-runners-up.jpg",href:"2019-trophy-presentation-2019-pairs-runners-up-brian-page-and-john-belle-isle.html",title:"2019 Pairs Runners Up Brian Page and John Belle Isle"},{src:"_media/img/xlarge/2019-pairs-winners.jpg",w:1600,h:1200,msrc:"_media/img/thumb/2019-pairs-winners.jpg",href:"2019-trophy-presentation-2019-pairs-winners-diane-and-steve-foster.html",title:"2019 Pairs Winners Diane and Steve Foster"},{src:"_media/img/xlarge/2019-rose-bowl-winners.jpg",w:1600,h:1200,msrc:"_media/img/thumb/2019-rose-bowl-winners.jpg",href:"2019-trophy-presentation-2019-rose-bowl-winners-diane-foster-and-anne-crew.html",title:"2019 Rose Bowl Winners Diane Foster and Anne Crew"},{src:"_media/img/xlarge/2019-thursday-roll-up-winner.jpg",w:1600,h:1200,msrc:"_media/img/thumb/2019-thursday-roll-up-winner.jpg",href:"2019-trophy-presentation-2019-thursday-roll-up-winner-mary-obeirne.html",title:"2019 Thursday Roll Up Winner Mary O\'Beirne"},{src:"_media/img/xlarge/2019-triples-runners-up.jpg",w:1600,h:1200,msrc:"_media/img/thumb/2019-triples-runners-up.jpg",href:"2019-trophy-presentation-2019-triples-runners-up-steve-josie-and-pat.html",title:"2019 Triples Runners Up Steve Josie and Pat"},{src:"_media/img/xlarge/2019-triples-winners.jpg",w:1600,h:1200,msrc:"_media/img/thumb/2019-triples-winners.jpg",href:"2019-trophy-presentation-2019-triples-winners-tom-maureen-and-doris.html",title:"2019 Triples Winners Tom Maureen and Doris"},{src:"_media/img/xlarge/2019-tuesday-roll-up-winner.jpg",w:1600,h:1200,msrc:"_media/img/thumb/2019-tuesday-roll-up-winner.jpg",href:"2019-trophy-presentation-2019-tuesday-roll-up-winner-steve-foster.html",title:"2019 Tuesday Roll Up Winner Steve Foster"}];}function openPS(e){var t=new PhotoSwipe(document.querySelectorAll(".pswp")[0],PhotoSwipeUI_Default,psItems,{index:e});var realViewportWidth,firstResize=!0,imageSrcWillChange;t.listen("beforeResize",function(){if(realViewportWidth=t.viewportSize.x*window.devicePixelRatio,"undefined"!=typeof t.currItem.stops)for(var s=0;st.currItem.stops[s].w||t.currItem.w>t.currItem.stops[s].w&&realViewportWidth<=t.currItem.stops[s].w)&&(imageSrcWillChange=!0);imageSrcWillChange&&!firstResize&&t.invalidateCurrItems(),firstResize&&(firstResize=!1),imageSrcWillChange=!1}),t.listen("gettingData",function(s,r){"undefined"==typeof r.org&&(r.org={},r.org.src=r.src,r.org.w=r.w,r.org.h=r.h,r.org.pratio=r.h>r.w?r.w/r.h:1,r.stops=[],r.w>=r.h?(r.w>=1600&&r.stops.push({w:r.w,h:r.h,dir:"/xlarge/"}),r.w>=1024&&r.stops.push({w:1024,h:1024*r.h/r.w,dir:"/large/"}),r.w>=768&&r.stops.push({w:768,h:768*r.h/r.w,dir:"/medium/"}),r.w>=480&&r.stops.push({w:480,h:480*r.h/r.w,dir:"/small/"})):r.h>=1600?(r.stops.push({h:1600,w:1600*r.w/r.h,dir:"/xlarge/"}),r.stops.push({h:1024,w:1024*r.w/r.h,dir:"/large/"}),r.stops.push({h:768,w:768*r.w/r.h,dir:"/medium/"}),r.stops.push({h:480,w:480*r.w/r.h,dir:"/small/"})):r.org.h>=1024?(r.stops.push({h:1024,w:1024*r.w/r.h,dir:"/large/"}),r.stops.push({h:768,w:768*r.w/r.h,dir:"/medium/"}),r.stops.push({h:480,w:480*r.w/r.h,dir:"/small/"})):r.org.h>=768?(r.stops.push({h:768,w:768*r.w/r.h,dir:"/medium/"}),r.stops.push({h:480,w:480*r.w/r.h,dir:"/small/"})):r.org.h>=480&&r.stops.push({h:480,w:480*r.w/r.h,dir:"/small/"}));for(var t=r.stops.length-1;t>=0;t--)if(r.stops[t].w>=realViewportWidth)return r.src=r.org.src.replace("/xlarge/",r.stops[t].dir).replace("/large/",r.stops[t].dir).replace("/medium/",r.stops[t].dir),r.w=r.stops[t].w,void(r.h=r.stops[t].h);r.src=r.org.src,r.w=r.org.w,r.h=r.org.h});t.init();if ($('.pswp__button--autoplay').length === 0)$('').insertAfter('.pswp__button--zoom');}$.urlParam = function(name){var results=new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);return results?results[1]||0:-1;};var i=$.urlParam('pid');if(i>=0) {document.addEventListener('DOMContentLoaded', function(){openPS(i-1);}, false);}function onChangeSiteLang(href){var i=location.href.indexOf("?");if(i>0)href+=location.href.substr(i);document.location.href=href;}initPS();if(typeof($("body").iealert)=='function'&&$.cookie("oldiealert")!="1"){$("body").iealert({support:"ie8",title:"Your version of Internet Explorer is out of date",text:"To get the best possible experience using our website, we recommend that you upgrade to a modern web browser.",upgradeTitle:"Upgrade",upgradeLink:"http://browsehappy.com"}); $.cookie("oldiealert","1",{expires:30});}if(location.href.indexOf("?")>0&&location.href.indexOf("twtheme=no")>0){$("#toolbar1,#toolbar2,#toolbar3,#footersmall,#footerfat").hide();var idbmk=location.href;idbmk=idbmk.substring(idbmk.lastIndexOf("#")+1,idbmk.lastIndexOf("?"));if(idbmk!="")$("html,body").animate({scrollTop:$("#"+idbmk).offset().top},0);}$(".dropdown-toggle").dropdown();$("#site").prepend("");var offset=220;var duration=500;$(window).scroll(function(){if($(this).scrollTop()>offset){$(".toTop").fadeIn(duration);}else{$(".toTop").fadeOut(duration);}});$(".toTop").click(function(event){event.preventDefault();$("html, body").animate({scrollTop:0},duration);return(false);});if(typeof onTOWebPageLoaded=="function") onTOWebPageLoaded();});