function initPS(){psItems=[{src:"_media/img/xlarge//3.jpg",w:1600,h:1200,msrc:"_media/img/small/3.jpg",href:"christmas-2018-doris-roy-roger-and-pauline.html",title:"Doris Roy Roger and Pauline"},{src:"_media/img/xlarge//alan-pat-and-derek.jpg",w:1600,h:1200,msrc:"_media/img/small/alan-pat-and-derek.jpg",href:"christmas-2018-alan-pat-and-derek.html",title:"Alan Pat and Derek"},{src:"_media/img/xlarge//bigger-tom-and-baz.jpg",w:1600,h:1200,msrc:"_media/img/small/bigger-tom-and-baz.jpg",href:"christmas-2018-bigger-tom-and-baz.html",title:"Bigger Tom and Baz"},{src:"_media/img/xlarge//brian-and-peggy.jpg",w:1600,h:1200,msrc:"_media/img/small/brian-and-peggy.jpg",href:"christmas-2018-brian-and-peggy.html",title:"Brian and Peggy"},{src:"_media/img/xlarge//chris-renee-1.jpg",w:1600,h:1200,msrc:"_media/img/small/chris-renee-1.jpg",href:"christmas-2018-chris-renee-and-janet.html",title:"Chris Renee and Janet"},{src:"_media/img/xlarge//denis-maureen-and-patricia.jpg",w:1600,h:1200,msrc:"_media/img/small/denis-maureen-and-patricia.jpg",href:"christmas-2018-denis-maureen-and-patricia.html",title:"Denis Maureen and Patricia"},{src:"_media/img/xlarge//diane-and-steve.jpg",w:1600,h:1200,msrc:"_media/img/small/diane-and-steve.jpg",href:"christmas-2018-diane-and-steve.html",title:"Diane and Steve"},{src:"_media/img/xlarge//doris-ted-tedji-1.jpg",w:1600,h:1200,msrc:"_media/img/small/doris-ted-tedji-1.jpg",href:"christmas-2018-doris-ted-teji-and-richard.html",title:"Doris Ted Teji and Richard"},{src:"_media/img/xlarge//group-hug.jpg",w:1600,h:1200,msrc:"_media/img/small/group-hug.jpg",href:"christmas-2018-group-hug.html",title:"Group hug"},{src:"_media/img/xlarge//jan-and-renee.jpg",w:1600,h:1200,msrc:"_media/img/small/jan-and-renee.jpg",href:"christmas-2018-jan-and-renee.html",title:"Jan and Renee"},{src:"_media/img/xlarge//jill.jpg",w:1600,h:1200,msrc:"_media/img/small/jill.jpg",href:"christmas-2018-jill.html",title:"Jill"},{src:"_media/img/xlarge//little-tom-and-baz.jpg",w:1600,h:1200,msrc:"_media/img/small/little-tom-and-baz.jpg",href:"christmas-2018-little-tom-and-baz.html",title:"Little Tom and Baz"},{src:"_media/img/xlarge//mary-peggy-and-pat.jpg",w:1600,h:1200,msrc:"_media/img/small/mary-peggy-and-pat.jpg",href:"christmas-2018-mary-peggy-and-pat.html",title:"Mary Peggy and pat"},{src:"_media/img/xlarge//michael-russ-and-marie.jpg",w:1600,h:1200,msrc:"_media/img/small/michael-russ-and-marie.jpg",href:"christmas-2018-michael-russ-and-marie.html",title:"Michael Russ and Marie"},{src:"_media/img/xlarge//peggy-jim-tom-and-jan.jpg",w:1600,h:1200,msrc:"_media/img/small/peggy-jim-tom-and-jan.jpg",href:"christmas-2018-peggy-jim-tom-and-jan.html",title:"Peggy Jim Tom and Jan"},{src:"_media/img/xlarge//pete-and-charlie-1.jpg",w:1600,h:1200,msrc:"_media/img/small/pete-and-charlie-1.jpg",href:"christmas-2018-pete-and-charlie-and-margaret.html",title:"Pete and Charlie and margaret"},{src:"_media/img/xlarge//robert-2.jpg",w:1600,h:1200,msrc:"_media/img/small/robert-2.jpg",href:"christmas-2018-robert-sue-and-dareen.html",title:"Robert Sue and Dareen"},{src:"_media/img/xlarge//wendy-and-brian.jpg",w:1600,h:1200,msrc:"_media/img/small/wendy-and-brian.jpg",href:"christmas-2018-wendy-and-brian.html",title:"Wendy and Brian"},{src:"_media/img/xlarge//kamran-penny-and-yvonne.jpg",w:1600,h:1200,msrc:"_media/img/small/kamran-penny-and-yvonne.jpg",href:"christmas-2018-kamran-penny-and-yvonne.html",title:"Kamran Penny and Yvonne"},{src:"_media/img/xlarge//chris-and-pat.jpg",w:1600,h:1200,msrc:"_media/img/small/chris-and-pat.jpg",href:"christmas-2018-chris-and-pat.html",title:"Chris and Pat"},{src:"_media/img/xlarge//eric-1.jpg",w:1600,h:1200,msrc:"_media/img/small/eric-1.jpg",href:"christmas-2018-eric-and-derek-m.html",title:"Eric and Derek M"}];$(".gallery-idx a img").each(function(e){$(this).closest("a").click(function(t){t.preventDefault();openPS($(this).data("pswpidx"));})})}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(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!=""){idbmk=idbmk.split("?")[0];if($("#"+idbmk+"_container").length)idbmk+="_container";$("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();});