function initPS(){psItems=[{src:"_media/img/xlarge//feu-dartifice-de-jour-mariage.png",w:1600,h:740,msrc:"_media/img/small/feu-dartifice-de-jour-mariage.png",href:"organisateur-de-feux-dartifices-dans-loise-60-feu-dartifice-de-jour-mariage-png.html",title:"feu d\'artifice de jour mariage.png"},{src:"_media/img/xlarge//20200823-011735.webp",w:1600,h:1200,msrc:"_media/img/small/20200823-011735.webp",href:"organisateur-de-feux-dartifices-dans-loise-60-fontaines-froides-douverture-de-bal.html",title:"fontaines froides d\'ouverture de bal"},{src:"_media/img/xlarge//20200919-1818550.webp",w:1600,h:1200,msrc:"_media/img/small/20200919-1818550.webp",href:"organisateur-de-feux-dartifices-dans-loise-60-gerbes-detincelles-froides-entree-des-maries.html",title:"gerbes d\'etincelles froides entree des mariés"},{src:"_media/img/xlarge//img-6424.webp",w:1600,h:1067,msrc:"_media/img/small/img-6424.webp",href:"organisateur-de-feux-dartifices-dans-loise-60-effet-pyrotechnique-eventaille.html",title:"effet pyrotechnique eventaillé"},{src:"_media/img/xlarge//img-6428.webp",w:1600,h:1067,msrc:"_media/img/small/img-6428.webp",href:"organisateur-de-feux-dartifices-dans-loise-60-retombees-de-bombe.html",title:"retombées de bombe"},{src:"_media/img/xlarge//img-6483.webp",w:1600,h:1067,msrc:"_media/img/small/img-6483.webp",href:"organisateur-de-feux-dartifices-dans-loise-60-img-6483-jpg.html",title:"IMG_6483.JPG"},{src:"_media/img/xlarge//img-6520.webp",w:1600,h:1067,msrc:"_media/img/small/img-6520.webp",href:"organisateur-de-feux-dartifices-dans-loise-60-img-6520-jpg.html",title:"IMG_6520.JPG"},{src:"_media/img/xlarge//img-6553.webp",w:1600,h:1067,msrc:"_media/img/small/img-6553.webp",href:"organisateur-de-feux-dartifices-dans-loise-60-bombe-argentee.html",title:"bombe argentée"},{src:"_media/img/xlarge//img-6747.webp",w:1600,h:1067,msrc:"_media/img/small/img-6747.webp",href:"organisateur-de-feux-dartifices-dans-loise-60-2-bombes-dartifices.html",title:"2 bombes d\'artifices"},{src:"_media/img/xlarge//img-6591.webp",w:1600,h:1067,msrc:"_media/img/small/img-6591.webp",href:"organisateur-de-feux-dartifices-dans-loise-60-effet-double-diagonale.html",title:"effet double diagonale"},{src:"_media/img/xlarge//img-6718.webp",w:1600,h:1067,msrc:"_media/img/small/img-6718.webp",href:"organisateur-de-feux-dartifices-dans-loise-60-effet-deventail.html",title:"effet d\'eventail"},{src:"_media/img/xlarge//img-6645.webp",w:1600,h:1067,msrc:"_media/img/small/img-6645.webp",href:"organisateur-de-feux-dartifices-dans-loise-60-une-bombe-rouge-suivie-dune-bombe-argentee.html",title:"une bombe rouge suivie d\'une bombe argentéé"},{src:"_media/img/xlarge//img-6740.webp",w:1600,h:1067,msrc:"_media/img/small/img-6740.webp",href:"organisateur-de-feux-dartifices-dans-loise-60-effet-avec-5-inclinaisons.html",title:"effet avec 5 inclinaisons"},{src:"_media/img/xlarge//img-6731.webp",w:1600,h:1067,msrc:"_media/img/small/img-6731.webp",href:"organisateur-de-feux-dartifices-dans-loise-60-3-bombes.html",title:"3 bombes"},{src:"_media/img/xlarge//img-6842.webp",w:1600,h:1067,msrc:"_media/img/small/img-6842.webp",href:"organisateur-de-feux-dartifices-dans-loise-60-initiales-des-maries.html",title:"initiales des mariés"}];$(".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 showParag(id){if(id.length>1&&id[0]!="#")id="#"+id;var p=$(id).is("a")?$(id).parent().parent():$(id).parent();$("html,body").animate({scrollTop:p.offset().top},"slow");}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();var clickmessage="Le clic droit n'est pas autorisé sur les images de ce site!";function disableclick(e){if(document.all){if(event.button==2||event.button==3){if(event.srcElement.tagName=="IMG"){if(clickmessage!="")alert(clickmessage);return false;}}}else if(document.layers){if(e.which==3){if(clickmessage!= "")alert(clickmessage);return false;}}else if(document.getElementById){if(e.which==3&&e.target.tagName=="IMG" ){if(clickmessage!="")alert(clickmessage);return false;}}}function associateimages(){for(i=0;i0&&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();});