evt=window.document.createEvent('UIEvents'); evt.initUIEvent('resize', true, false, window, 0); window.dispatchEvent(evt); resizeVariable=1;}else{}}fullWidthGalleriesSpecificCase();var resizeId;$(window).resize(function(){if (resizeVariable==1){clearTimeout(resizeId); resizeId=setTimeout(fullWidthGalleriesSpecificCase(), 500);}});}; /* Make fullwidth galleries here */ makeGalleriesFullWidth("all", 2500); /*That's it, don't edit anything else!*/ });