function initPS(){psItems=[{src:"_media/img/xlarge/dsc-2799.jpg",w:1280,h:848,msrc:"_media/img/sq_icon/dsc-2799.jpg",href:"galerieff-dsc-2799-jpg.html",title:"DSC_2799.jpg"},{src:"_media/img/xlarge/dsc-2800.jpg",w:1280,h:848,msrc:"_media/img/sq_icon/dsc-2800.jpg",href:"galerieff-dsc-2800-jpg.html",title:"DSC_2800.jpg"},{src:"_media/img/xlarge/dsc-4766.jpg",w:1280,h:848,msrc:"_media/img/sq_icon/dsc-4766.jpg",href:"galerieff-dsc-4766-jpg.html",title:"DSC_4766.jpg"},{src:"_media/img/xlarge/dsc-4780.jpg",w:848,h:1280,msrc:"_media/img/sq_icon/dsc-4780.jpg",href:"galerieff-dsc-4780-jpg.html",title:"DSC_4780.jpg"},{src:"_media/img/xlarge/dsc-4804.jpg",w:1280,h:848,msrc:"_media/img/sq_icon/dsc-4804.jpg",href:"galerieff-dsc-4804-jpg.html",title:"DSC_4804.jpg"},{src:"_media/img/xlarge/dsc-4825.jpg",w:1280,h:848,msrc:"_media/img/sq_icon/dsc-4825.jpg",href:"galerieff-dsc-4825-jpg.html",title:"DSC_4825.jpg"},{src:"_media/img/xlarge/dsc-4877.jpg",w:848,h:1280,msrc:"_media/img/sq_icon/dsc-4877.jpg",href:"galerieff-dsc-4877-jpg.html",title:"DSC_4877.jpg"},{src:"_media/img/xlarge/dsc-4885.jpg",w:848,h:1280,msrc:"_media/img/sq_icon/dsc-4885.jpg",href:"galerieff-dsc-4885-jpg.html",title:"DSC_4885.jpg"},{src:"_media/img/xlarge/dsc-4922.jpg",w:848,h:1280,msrc:"_media/img/sq_icon/dsc-4922.jpg",href:"galerieff-dsc-4922-jpg.html",title:"DSC_4922.jpg"},{src:"_media/img/xlarge/dsc-4931.jpg",w:1280,h:848,msrc:"_media/img/sq_icon/dsc-4931.jpg",href:"galerieff-dsc-4931-jpg.html",title:"DSC_4931.jpg"},{src:"_media/img/xlarge/dsc-4940.jpg",w:1280,h:848,msrc:"_media/img/sq_icon/dsc-4940.jpg",href:"galerieff-dsc-4940-jpg.html",title:"DSC_4940.jpg"},{src:"_media/img/xlarge/dsc-4946.jpg",w:1280,h:848,msrc:"_media/img/sq_icon/dsc-4946.jpg",href:"galerieff-dsc-4946-jpg.html",title:"DSC_4946.jpg"},{src:"_media/img/xlarge/dsc-4948.jpg",w:763,h:1152,msrc:"_media/img/sq_icon/dsc-4948.jpg",href:"galerieff-dsc-4948-jpg.html",title:"DSC_4948.jpg"},{src:"_media/img/xlarge/dsc-4956.jpg",w:1280,h:848,msrc:"_media/img/sq_icon/dsc-4956.jpg",href:"galerieff-dsc-4956-jpg.html",title:"DSC_4956.jpg"},{src:"_media/img/xlarge/dsc-4973.jpg",w:1280,h:848,msrc:"_media/img/sq_icon/dsc-4973.jpg",href:"galerieff-dsc-4973-jpg.html",title:"DSC_4973.jpg"},{src:"_media/img/xlarge/img-0962.jpg",w:1280,h:960,msrc:"_media/img/sq_icon/img-0962.jpg",href:"galerieff-img-0962-jpg.html",title:"IMG_0962.jpg"},{src:"_media/img/xlarge/img-6654.jpg",w:1280,h:853,msrc:"_media/img/sq_icon/img-6654.jpg",href:"galerieff-img-6654-jpg.html",title:"IMG_6654.jpg"},{src:"_media/img/xlarge/img-6658.jpg",w:853,h:1280,msrc:"_media/img/sq_icon/img-6658.jpg",href:"galerieff-img-6658-jpg.html",title:"IMG_6658.jpg"},{src:"_media/img/xlarge/img-6660.jpg",w:853,h:1280,msrc:"_media/img/sq_icon/img-6660.jpg",href:"galerieff-img-6660-jpg.html",title:"IMG_6660.jpg"},{src:"_media/img/xlarge/img-6665.jpg",w:1280,h:853,msrc:"_media/img/sq_icon/img-6665.jpg",href:"galerieff-img-6665-jpg.html",title:"IMG_6665.jpg"},{src:"_media/img/xlarge/img-6673.jpg",w:1280,h:853,msrc:"_media/img/sq_icon/img-6673.jpg",href:"galerieff-img-6673-jpg.html",title:"IMG_6673.jpg"},{src:"_media/img/xlarge/img-6679.jpg",w:1280,h:853,msrc:"_media/img/sq_icon/img-6679.jpg",href:"galerieff-img-6679-jpg.html",title:"IMG_6679.jpg"},{src:"_media/img/xlarge/img-6682.jpg",w:1280,h:853,msrc:"_media/img/sq_icon/img-6682.jpg",href:"galerieff-img-6682-jpg.html",title:"IMG_6682.jpg"},{src:"_media/img/xlarge/img-6691.jpg",w:1152,h:767,msrc:"_media/img/sq_icon/img-6691.jpg",href:"galerieff-img-6691-jpg.html",title:"IMG_6691.jpg"},{src:"_media/img/xlarge/img-6699.jpg",w:853,h:1280,msrc:"_media/img/sq_icon/img-6699.jpg",href:"galerieff-img-6699-jpg.html",title:"IMG_6699.jpg"},{src:"_media/img/xlarge/img-6702.jpg",w:853,h:1280,msrc:"_media/img/sq_icon/img-6702.jpg",href:"galerieff-img-6702-jpg.html",title:"IMG_6702.jpg"},{src:"_media/img/xlarge/img-6709.jpg",w:1280,h:853,msrc:"_media/img/sq_icon/img-6709.jpg",href:"galerieff-img-6709-jpg.html",title:"IMG_6709.jpg"},{src:"_media/img/xlarge/img-6711.jpg",w:1280,h:853,msrc:"_media/img/sq_icon/img-6711.jpg",href:"galerieff-img-6711-jpg.html",title:"IMG_6711.jpg"},{src:"_media/img/xlarge/img-6714.jpg",w:1280,h:853,msrc:"_media/img/sq_icon/img-6714.jpg",href:"galerieff-img-6714-jpg.html",title:"IMG_6714.jpg"},{src:"_media/img/xlarge/img-6717.jpg",w:1280,h:853,msrc:"_media/img/sq_icon/img-6717.jpg",href:"galerieff-img-6717-jpg.html",title:"IMG_6717.jpg"},{src:"_media/img/xlarge/img-6721.jpg",w:1280,h:853,msrc:"_media/img/sq_icon/img-6721.jpg",href:"galerieff-img-6721-jpg.html",title:"IMG_6721.jpg"},{src:"_media/img/xlarge/img-6722.jpg",w:1280,h:853,msrc:"_media/img/sq_icon/img-6722.jpg",href:"galerieff-img-6722-jpg.html",title:"IMG_6722.jpg"},{src:"_media/img/xlarge/img-6726.jpg",w:1280,h:853,msrc:"_media/img/sq_icon/img-6726.jpg",href:"galerieff-img-6726-jpg.html",title:"IMG_6726.jpg"},{src:"_media/img/xlarge/img-6783.jpg",w:1280,h:853,msrc:"_media/img/sq_icon/img-6783.jpg",href:"galerieff-img-6783-jpg.html",title:"IMG_6783.jpg"},{src:"_media/img/xlarge/img-6792.jpg",w:853,h:1280,msrc:"_media/img/sq_icon/img-6792.jpg",href:"galerieff-img-6792-jpg.html",title:"IMG_6792.jpg"},{src:"_media/img/xlarge/p1060359.jpg",w:960,h:1280,msrc:"_media/img/sq_icon/p1060359.jpg",href:"galerieff-p1060359-jpg.html",title:"P1060359.jpg"},{src:"_media/img/xlarge/p1060370.jpg",w:1280,h:960,msrc:"_media/img/sq_icon/p1060370.jpg",href:"galerieff-p1060370-jpg.html",title:"P1060370.jpg"},{src:"_media/img/xlarge/p1060435.jpg",w:1280,h:960,msrc:"_media/img/sq_icon/p1060435.jpg",href:"galerieff-p1060435-jpg.html",title:"P1060435.jpg"},{src:"_media/img/medium/p1060436-2.jpg",w:640,h:480,msrc:"_media/img/sq_icon/p1060436-2.jpg",href:"galerieff-p1060436-2-jpg.html",title:"P1060436-2.jpg"}];}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 decMail2(e){var s=""+e.href,n=s.lastIndexOf("/"),w;if(s.substr(0,7)=="mailto:")return(true);if(n>0)s=s.substr(n+1);s=s.replace("?",":").replace("#","@").replace(/[a-z]/gi,function(t){return String.fromCharCode(t.charCodeAt(0)+(t.toLowerCase()<"n"?13:-13));});e.href=s;return(true);}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){if(typeof twLzyLoad!=="undefined"){window.addEventListener("load",twLzyLoad);window.addEventListener("scroll",twLzyLoad);window.addEventListener("resize",twLzyLoad);}$("#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();if($.cookie("cookieconsent")!="1"){$("#site").prepend("");}$("#site").prepend("");var offset=200;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);});function isElemVisible(el,treshold){var rc=el.getBoundingClientRect();return(rc.top<=window.innerHeight-treshold*(rc.bottom-rc.top)/100);}function twLzyLoad(){var elems=[].slice.call(document.querySelectorAll("img[data-src]"));elems.forEach(function(e){if(isElemVisible(e,0)){var scs=e.getAttribute("data-srcset");e.setAttribute("src",e.getAttribute("data-src"));e.removeAttribute("data-src");if(scs){e.setAttribute("srcset",scs);e.removeAttribute("data-srcset");}}})}window.addEventListener("load",twLzyLoad);window.addEventListener("scroll",twLzyLoad);window.addEventListener("resize",twLzyLoad);if(typeof onTOWebPageLoaded=="function")onTOWebPageLoaded();});