function avadaLightBoxInitializeLightbox(){var e;if(window.$ilInstances)for(e=0;e a").each(function(){var e=this.getAttribute("data-rel");e==null&&(e="iLightbox[tiled-gallery-"+n+"]",jQuery(this).attr("data-rel",e)),-1===jQuery.inArray(e,t)&&t.push(e)}),n++}),jQuery.each(t,function(e,t){1===jQuery('[data-rel="'+t+'"], [rel="'+t+'"]').length?window.$ilInstances.push(jQuery('[data-rel="'+t+'"], [rel="'+t+'"]').iLightBox(window.avadaLightBox.prepare_options(t,!1))):window.$ilInstances.push(jQuery('[data-rel="'+t+'"], [rel="'+t+'"]').iLightBox(window.avadaLightBox.prepare_options(t)))}),e.find('a[rel="prettyPhoto"], a[data-rel="prettyPhoto"], a[rel="iLightbox"], a[data-rel="iLightbox"]').each(function(){var e=jQuery(this).attr("href");""!==e&&0[0]!==e&&window.$ilInstances.push(jQuery(this).iLightBox(window.avadaLightBox.prepare_options("single")))}),e.find("#lightbox-link, .lightbox-link, .fusion-lightbox-link").each(function(){var e=jQuery(this).attr("href");""!==e&&0[0]!==e&&window.$ilInstances.push(jQuery(this).iLightBox(window.avadaLightBox.prepare_options("single")))}),fusionLightboxVars.lightbox_post_images&&e.find(".type-post .post-content a, #posts-container .post .post-content a, .fusion-blog-shortcode .post .post-content a, .type-avada_portfolio .project-content a, .fusion-portfolio .fusion-portfolio-wrapper .fusion-post-content, .summary-container .post-content a, .woocommerce-tabs .post-content a").has("img").each(function(){var e,t=["bmp","gif","jpeg","jpg","png","tiff","tif","jfif","jpe","svg","mp4","ogg","webm","webp"],n=0;for(e=0;e