PageSourceSearch

https://www.teatrotatro.sk/wp-content/plugins/photo-gallery/js/scripts.min.js?ver=2.5.74

js teatrotatro.sk collected 2026-10-05 22:51:45 UTC 197,323 bytes, 1 lines download raw bytes

1var bwg_current_filmstrip_pos,total_thumbnail_count,key,startPoint,endPoint,bwg_image_info_pos,filmstrip_width,preloadCount,filmstrip_thumbnail_width,filmstrip_thumbnail_height,addthis_share,lightbox_comment_pos,bwg_transition_duration,bwg_playInterval,isPopUpOpened=!1,bwg_overflow_initial_value=!1,bwg_overflow_x_initial_value=!1,bwg_overflow_y_initial_value=!1;function gallery_box_ready(){filmstrip_thumbnail_width=jQuery(".bwg_filmstrip_thumbnail").width(),filmstrip_thumbnail_height=jQuery(".bwg_filmstrip_thumbnail").height(),1==gallery_box_data.open_with_fullscreen?(filmstrip_width=jQuery(window).width(),filmstrip_height=jQuery(window).height()):(filmstrip_width=jQuery(".bwg_filmstrip_container").width(),filmstrip_height=jQuery(".bwg_filmstrip_container").height()),preloadCount="horizontal"==gallery_box_data.filmstrip_direction?parseInt(filmstrip_width/filmstrip_thumbnail_width)+gallery_box_data.preload_images_count:parseInt(filmstrip_height/filmstrip_thumbnail_height)+gallery_box_data.preload_images_count,total_thumbnail_count=jQuery(".bwg_filmstrip_thumbnail").length,key=parseInt(jQuery("#bwg_current_image_key").val()),startPoint=0,endPoint=key+preloadCount,jQuery(function(){bwg_load_visible_images(key,preloadCount,total_thumbnail_count),jQuery(".pge_tabs li a").on("click",function(){return jQuery(".pge_tabs_container > div").hide(),jQuery(".pge_tabs li").removeClass("pge_active"),jQuery(jQuery(this).attr("href")).show(),jQuery(this).closest("li").addClass("pge_active"),jQuery("[name=type]").val(jQuery(this).attr("href").substr(1)),!1});var e=jQuery("#bwg_rated").attr("data-params");void 0!==e&&bwg_rating((e=JSON.parse(e)).current_rate,e.current_rate_count,e.current_avg_rating,e.current_image_key)}),1==gallery_box_data.is_pro&&1==gallery_box_data.enable_addthis&&gallery_box_data.addthis_profile_id&&(addthis_share={url:gallery_box_data.share_url}),lightbox_comment_pos=gallery_box_data.lightbox_comment_pos,bwg_image_info_pos=jQuery(".bwg_ctrl_btn_container").length?jQuery(".bwg_ctrl_btn_container").height():0,bwg_transition_duration=gallery_box_data.slideshow_interval<4*gallery_box_data.slideshow_effect_duration&&0!=gallery_box_data.slideshow_interval?1e3*gallery_box_data.slideshow_interval/4:1e3*gallery_box_data.slideshow_effect_duration,gallery_box_data.bwg_transition_duration=bwg_transition_duration,gallery_box_data.bwg_trans_in_progress=!1,(jQuery("#spider_popup_wrap").width()>=jQuery(window).width()||jQuery("#spider_popup_wrap").height()>=jQuery(window).height())&&jQuery(".spider_popup_close").attr("class","bwg_ctrl_btn spider_popup_close_fullscreen"),window.clearInterval(bwg_playInterval),bwg_current_filmstrip_pos=gallery_box_data.current_pos,jQuery(document).on("keydown",function(e){jQuery("#bwg_name").is(":focus")||jQuery("#bwg_email").is(":focus")||jQuery("#bwg_comment").is(":focus")||jQuery("#bwg_captcha_input").is(":focus")||("ArrowRight"==e.key?parseInt(jQuery("#bwg_current_image_key").val())==gallery_box_data.data.length-1?bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),0):bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),parseInt(j
1Query("#bwg_current_image_key").val())+1):"ArrowLeft"==e.key?0==parseInt(jQuery("#bwg_current_image_key").val())?bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),gallery_box_data.data.length-1):bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),parseInt(jQuery("#bwg_current_image_key").val())-1):"Escape"==e.key?spider_destroypopup(1e3):"Space"==e.key&&jQuery(".bwg_play_pause").trigger("click"))}),jQuery(window).resize(function(){void 0!==jQuery().fullscreen&&jQuery.isFunction(jQuery().fullscreen)&&(jQuery.fullscreen.isFullScreen()||bwg_popup_resize())});var r=gallery_box_data.image_width,_=gallery_box_data.image_height;if(1==gallery_box_data.is_pro){1==gallery_box_data.enable_addthis&&gallery_box_data.addthis_profile_id&&jQuery(".at4-share-outer").show(),spider_set_input_value("rate_ajax_task","save_hit_count"),spider_rate_ajax_save("bwg_rate_form");var e=gallery_box_data.data,t=gallery_box_data.current_image_key;jQuery(".bwg_image_hits span").html(++e[t].hit_count);var a=window.location.hash;a&&"-1"!=a.indexOf("bwg")||(location.replace("#bwg"+gallery_box_data.gallery_id+"/"+gallery_box_data.current_image_id),history.replaceState(void 0,void 0,"#bwg"+gallery_box_data.gallery_id+"/"+gallery_box_data.current_image_id))}1==gallery_box_data.image_right_click&&(jQuery(".bwg_image_wrap").bind("contextmenu",function(e){return!1}),jQuery(".bwg_image_wrap").css("webkitTouchCallout","none")),jQuery("#spider_popup_wrap").bind("touchmove",function(e){e.preventDefault()}),void 0!==jQuery().swiperight&&jQuery.isFunction(jQuery().swiperight)&&jQuery("#spider_popup_wrap .bwg_image_wrap").swiperight(function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),(parseInt(jQuery("#bwg_current_image_key").val())+gallery_box_data.data.length-1)%gallery_box_data.data.length),!1}),void 0!==jQuery().swipeleft&&jQuery.isFunction(jQuery().swipeleft)&&jQuery("#spider_popup_wrap .bwg_image_wrap").swipeleft(function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),(parseInt(jQuery("#bwg_current_image_key").val())+1)%gallery_box_data.data.length),!1}),bwg_reset_zoom();var i=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase())?"touchend":"click";jQuery("#spider_popup_left").on(i,function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),(parseInt(jQuery("#bwg_current_image_key").val())+gallery_box_data.data.length-1)%gallery_box_data.data.length),!1}),jQuery("#spider_popup_right").on(i,function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),(parseInt(jQuery("#bwg_current_image_key").val())+1)%gallery_box_data.data.length),!1}),-1!=navigator.appVersion.indexOf("MSIE 10")||-1!=navigator.appVersion.indexOf("MSIE 9")?setTimeout(function(){bwg_popup_resize()},1):bwg_popup_resize(),jQuery(".bwg_watermark").css({display:"none"}),setTimeout(function(){bwg_change_watermark_container()},500),void 0!==jQuery().fullscreen&&jQuery.isFunction(jQuery().fullscreen)&&(jQuery.fullscreen.isNativelySupported()||jQuery(".bwg_fullscreen").hide()),"horizontal"==gallery_box_data.filmstrip_direction?(jQuery(".bwg_image_container").height(jQuery(".bwg_image_wrap").height()-gallery_box_data.image_filmstrip_height),jQuery(".bwg_image_container").width(jQuery(".bwg_image_wrap").width())):(jQuery(".bwg_image_container").height(jQuery(".bwg_image_wrap").height()),jQuery(".bwg_image_container").width(jQuery(".bwg_image_wrap").width()-gallery_box_data.image_filmstrip_width)),void 0!==jQuery().mCustomScrollbar&&jQuery.isFunction(jQuery().mCustomScrollbar)&&jQuery(".bwg_comments,.bwg_ecommerce_panel, .bwg_image_info").mCustomScrollbar({scrollInertia:150,theme:"dark-thick",advanced:{updateOnContentResize:!0}});var s=/Firefox/i.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel";jQuery(".bwg_filmstrip").on(s,function(e){var t=window.event||e,a=(t=t.originalEvent?t.originalEvent:t).detail?-40*t.detail:t.wheelDelta,i=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase());0<a?jQuery(".bwg_filmstrip_left").trigger(i?"touchend":"click"):jQuery(".bwg_filmstrip_right").trigger(i?"touchend":"click")}),jQuery(".bwg_filmstrip_right").on(i,function(){jQuery(".bwg_filmstrip_thumbnails").stop(!0,!1),"left"==gallery_box_data.left_or_top?"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_thumbnails").position().left>=-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width())&&(jQuery(".bwg_filmstrip_left").css({opacity:1}),jQuery(".bwg_filmstrip_thumbnails").position().left<-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width()-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width+gallery_box_data.all_images_right_left_space))?jQuery(".bwg_filmstrip_thumbnails").animate({left:-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width()-gallery_box_data.all_images_right_left_space)},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({left:jQuery(".bwg_filmstrip_thumbnails").position().left-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)},500,"linear")),window.setTimeout(function(){jQuery(".bwg_filmstrip_thumbnails").position().left==-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width())&&jQuery(".bwg_filmstrip_right").css({opacity:.3})},500)):(jQuery(".bwg_filmstrip_thumbnails").position().left>=-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height())&&
1(jQuery(".bwg_filmstrip_left").css({opacity:1}),jQuery(".bwg_filmstrip_thumbnails").position().left<-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height()-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width+gallery_box_data.all_images_right_left_space))?jQuery(".bwg_filmstrip_thumbnails").animate({left:-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height()-gallery_box_data.all_images_right_left_space)},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({left:jQuery(".bwg_filmstrip_thumbnails").position().left-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)},500,"linear")),window.setTimeout(function(){jQuery(".bwg_filmstrip_thumbnails").position().left==-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height())&&jQuery(".bwg_filmstrip_right").css({opacity:.3})},500)):"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_thumbnails").position().top>=-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width())&&(jQuery(".bwg_filmstrip_left").css({opacity:1}),jQuery(".bwg_filmstrip_thumbnails").position().top<-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width()-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width+gallery_box_data.all_images_right_left_space))?jQuery(".bwg_filmstrip_thumbnails").animate({left:-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width()-gallery_box_data.all_images_right_left_space)},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({left:jQuery(".bwg_filmstrip_thumbnails").position().top-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)},500,"linear")),window.setTimeout(function(){jQuery(".bwg_filmstrip_thumbnails").position().left==-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width())&&jQuery(".bwg_filmstrip_right").css({opacity:.3})},500)):(jQuery(".bwg_filmstrip_thumbnails").position().top>=-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height())&&(jQuery(".bwg_filmstrip_left").css({opacity:1}),jQuery(".bwg_filmstrip_thumbnails").position().top<-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height()-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width+gallery_box_data.all_images_right_left_space))?jQuery(".bwg_filmstrip_thumbnails").animate({top:-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height()-gallery_box_data.all_images_right_left_space)},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({top:jQuery(".bwg_filmstrip_thumbnails").position().top-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)},500,"linear")),window.setTimeout(function(){jQuery(".bwg_filmstrip_thumbnails").position().left==-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height())&&jQuery(".bwg_filmstrip_right").css({opacity:.3})},500))}),"left"==gallery_box_data.left_or_top?jQuery(".bwg_filmstrip_left").on(i,function(){jQuery(".bwg_filmstrip_thumbnails").stop(!0,!1),jQuery(".bwg_filmstrip_thumbnails").position().left<0&&(jQuery(".bwg_filmstrip_right").css({opacity:1}),jQuery(".bwg_filmstrip_thumbnails").position().left>-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)?jQuery(".bwg_filmstrip_thumbnails").animate({left:0},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({left:jQuery(".bwg_filmstrip_thumbnails").position().left+gallery_box_data.image_filmstrip_width+gallery_box_data.filmstrip_thumb_right_left_space},500,"linear")),window.setTimeout(function(){0==jQuery(".bwg_filmstrip_thumbnails").position().left&&jQuery(".bwg_filmstrip_left").css({opacity:.3})},500)}):jQuery(".bwg_filmstrip_left").on(i,function(){jQuery(".bwg_filmstrip_thumbnails").stop(!0,!1),jQuery(".bwg_filmstrip_thumbnails").position().top<0&&(jQuery(".bwg_filmstrip_right").css({opacity:1}),jQuery(".bwg_filmstrip_thumbnails").position().top>-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)?jQuery(".bwg_filmstrip_thumbnails").animate({top:0},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({top:jQuery(".bwg_filmstrip_thumbnails").position().top+gallery_box_data.image_filmstrip_width+gallery_box_data.filmstrip_thumb_right_left_space},500,"linear")),window.setTimeout(function(){0==jQuery(".bwg_filmstrip_thumbnails").position().top&&jQuery(".bwg_filmstrip_left").css({opacity:.3})},500)}),"width"==gallery_box_data.width_or_height?bwg_set_filmstrip_pos(jQuery(".bwg_filmstrip").width(),"",gallery_box_data):bwg_set_filmstrip_pos(jQuery(".bwg_filmstrip").height(),"",gallery_box_data),jQuery(".bwg_info").on(i,function(){if("none"==jQuery(".bwg_image_info_container1").css("display")){jQuery(".bwg_image_info_container1").css("display","table-cell"),jQuery(".bwg_info").attr("title",bwg_objectsL10n.bwg_hide_info);
1jQuery(".bwg_ctrl_btn_container").length&&jQuery(".bwg_ctrl_btn_container").height();jQuery(".bwg_image_info").css("height","auto"),bwg_info_height_set()}else jQuery(".bwg_image_info_container1").css("display","none"),jQuery(".bwg_info").attr("title",bwg_objectsL10n.bwg_show_info)}),jQuery(".bwg_rate").on(i,function(){"none"==jQuery(".bwg_image_rate_container1").css("display")?(jQuery(".bwg_image_rate_container1").css("display","table-cell"),jQuery(".bwg_rate").attr("title",bwg_objectsL10n.bwg_hide_rating)):(jQuery(".bwg_image_rate_container1").css("display","none"),jQuery(".bwg_rate").attr("title",bwg_objectsL10n.bwg_show_rating))}),jQuery(".bwg_zoom").on(i,function(){var e=["mousemove","touchmove"];jQuery("figure.bwg_popup_image").each(function(){var a=jQuery(this);a.hasClass("zoom")?jQuery.each(e,function(e,t){a.removeClass("zoom"),a.off(t)}):jQuery.each(e,function(e,t){a.addClass("zoom"),a.on(t,function(e){window.clearInterval(bwg_playInterval),jQuery(".bwg_play_pause").attr("title",bwg_objectsL10n.bwg_play),jQuery(".bwg_play_pause").attr("class","bwg-icon-play bwg_ctrl_btn bwg_play_pause");var t=e.target,a=document.querySelector("span.bwg_popup_image_spun2").clientHeight,i=document.querySelector("span.bwg_popup_image_spun2").clientWidth,r=document.querySelector("figure.zoom.bwg_popup_image").clientHeight,_=document.querySelector("figure.zoom.bwg_popup_image").clientWidth;e.offsetX?offsetX=e.offsetX:offsetX=e.targetTouches?e.targetTouches[0].pageX*(_/i):0,e.offsetY?offsetY=e.offsetY:offsetY=e.targetTouches?e.targetTouches[0].pageY*(r/a):0,x=offsetX/t.offsetWidth*100,y=offsetY/t.offsetHeight*100,t.parentNode.style.backgroundPosition=x+"% "+y+"%"})})})}),jQuery(".bwg_comment, .bwg_comments_close_btn").on(i,function(){bwg_comment()}),jQuery(".bwg_ecommerce, .bwg_ecommerce_close_btn").on(i,function(){bwg_ecommerce()}),jQuery(".bwg_toggle_container").on(i,function(){var e="top"==gallery_box_data.lightbox_ctrl_btn_pos?"bwg-icon-caret-up":"bwg-icon-caret-down",t="top"==gallery_box_data.lightbox_ctrl_btn_pos?"bwg-icon-caret-down":"bwg-icon-caret-up";jQuery(".bwg_toggle_container i").hasClass(e)?(gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_rate_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_rate_pos||jQuery(".bwg_image_rate").animate({top:0},500):jQuery(".bwg_image_rate").animate({bottom:0},500),gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_hit_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_hit_pos||jQuery(".bwg_image_hit").animate({top:0},500):jQuery(".bwg_image_hit").animate({bottom:0},500),"bottom"==gallery_box_data.lightbox_ctrl_btn_pos?(jQuery(".bwg_ctrl_btn_container").animate({bottom:"-"+jQuery(".bwg_ctrl_btn_container").height()},500).addClass("closed"),jQuery(".bwg_toggle_container").animate({bottom:0},{duration:500,complete:function(){jQuery(".bwg_toggle_container i").attr("class","bwg_toggle_btn "+t)}})):(jQuery(".bwg_ctrl_btn_container").animate({top:"-"+jQuery(".bwg_ctrl_btn_container").height()},500).addClass("closed"),jQuery(".bwg_toggle_container").animate({top:0},{duration:500,complete:function(){jQuery(".bwg_toggle_container i").attr("class","bwg_toggle_btn "+t)}}))):(gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_rate_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_rate_pos||jQuery(".bwg_image_rate").animate({top:jQuery(".bwg_ctrl_btn_container").height()},500):jQuery(".bwg_image_rate").animate({bottom:jQuery(".bwg_ctrl_bt
1n_container").height()},500),gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_hit_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_hit_pos||jQuery(".bwg_image_hit").animate({top:jQuery(".bwg_ctrl_btn_container").height()},500):jQuery(".bwg_image_hit").animate({bottom:jQuery(".bwg_ctrl_btn_container").height()},500),"bottom"==gallery_box_data.lightbox_ctrl_btn_pos?(jQuery(".bwg_ctrl_btn_container").animate({bottom:0},500).removeClass("closed"),jQuery(".bwg_toggle_container").animate({bottom:jQuery(".bwg_ctrl_btn_container").height()},{duration:500,complete:function(){jQuery(".bwg_toggle_container i").attr("class","bwg_toggle_btn "+e)}})):(jQuery(".bwg_ctrl_btn_container").animate({top:0},500).removeClass("closed"),jQuery(".bwg_toggle_container").animate({top:jQuery(".bwg_ctrl_btn_container").height()},{duration:500,complete:function(){jQuery(".bwg_toggle_container i").attr("class","bwg_toggle_btn "+e)}}))),bwg_info_position(!0)});var o=window.innerHeight;jQuery(".bwg_resize-full").on(i,function(){bwg_resize_full()}),jQuery(".bwg_fullscreen").on(i,function(){jQuery(".bwg_watermark").css({display:"none"});var e,t=0;if((jQuery(".bwg_comment_container").hasClass("bwg_open")||jQuery(".bwg_ecommerce_container").hasClass("bwg_open"))&&(t=jQuery(".bwg_comment_container").width()||jQuery(".bwg_ecommerce_container").width()),void 0!==jQuery().fullscreen&&jQuery.isFunction(jQuery().fullscreen))if(j
1Query.fullscreen.isFullScreen())jQuery.fullscreen.exit(),e=o,jQuery(window).width()>gallery_box_data.image_width&&(r=gallery_box_data.image_width),window.innerHeight>gallery_box_data.image_height&&(_=gallery_box_data.image_height),gallery_box_data.open_with_fullscreen&&(r=jQuery(window).width(),_=e),jQuery("#spider_popup_wrap").on("fscreenclose",function(){jQuery("#spider_popup_wrap").css({width:r,height:_,left:"50%",top:"50%",marginLeft:-r/2,marginTop:-_/2,zIndex:1e5}),jQuery(".bwg_image_wrap").css({width:r-t}),jQuery(".bwg_image_container").css({height:_-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0),width:r-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)}),jQuery(".bwg_image_info").css("height","auto"),bwg_info_height_set(),jQuery(".bwg_popup_image").css({maxWidth:r-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:_-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:r-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:_-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),bwg_resize_instagram_post(),bwg_change_watermark_container(),"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_container").css({width:r-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)}),jQuery(".bwg_filmstrip").css({width:r-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())}),bwg_set_filmstrip_pos(r-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",gallery_box_data)):(jQuery(".bwg_filmstrip_container").css({height:_-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)}),jQuery(".bwg_filmstrip").css({height:_-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())}),bwg_set_filmstrip_pos(_-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",gallery_box_data),"horizontal"!=gallery_box_data.filmstrip_direction&&jQuery(".bwg_filmstrip_right").css({top:_-jQuery(".bwg_filmstrip_right").height()})),jQuery(".bwg_resize-full").show(),jQuery(".bwg_resize-full").attr("class","bwg-icon-expand bwg_ctrl_btn bwg_resize-full"),jQuery(".bwg_resize-full").attr("title",bwg_objectsL10n.bwg_maximize),jQuery(".bwg_fullscreen").attr("class","bwg-icon-arrows-out bwg_ctrl_btn bwg_fullscreen"),jQuery(".bwg_fullscreen").attr("title",bwg_objectsL10n.bwg_fullscreen),jQuery("#spider_popup_wrap").width()<jQuery(window).width()&&jQuery("#spider_popup_wrap").height()<window.innerHeight&&jQuery(".spider_popup_close_fullscreen").attr("class","spider_popup_close")});else{jQuery("#spider_popup_wrap").fullscreen();var a=screen.width,i=screen.height;jQuery("#spider_popup_wrap").css({width:a,height:i,left:0,top:0,margin:0,zIndex:1e5}),jQuery(".bwg_image_wrap").css({width:a-t}),jQuery(".bwg_image_container").css({height:i-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0),width:a-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)}),jQuery(".bwg_image_info").css("height","auto"),bwg_info_height_set(),jQuery(".bwg_popup_image").css({maxWidth:a-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:i-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:a-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:i-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_he
1ight:0)}),bwg_resize_instagram_post(),bwg_change_watermark_container(),"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_container").css({width:a-("horizontal"==gallery_box_data.filmstrip_direction?t:0)},500),jQuery(".bwg_filmstrip").css({width:a-("horizontal"==gallery_box_data.filmstrip_direction?t:0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())},500),bwg_set_filmstrip_pos(a-("horizontal"==gallery_box_data.filmstrip_direction?t:0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",gallery_box_data)):(jQuery(".bwg_filmstrip_container").css({height:i-("horizontal"==gallery_box_data.filmstrip_direction)?"comment_container_width":0}),jQuery(".bwg_filmstrip").css({height:i-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())}),bwg_set_filmstrip_pos(i-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",gallery_box_data),"horizontal"!=gallery_box_data.filmstrip_direction&&jQuery(".bwg_filmstrip_right").css({top:i-jQuery(".bwg_filmstrip_right").height()})),jQuery(".bwg_resize-full").hide(),jQuery(".bwg_fullscreen").attr("class","bwg-icon-compress bwg_ctrl_btn bwg_fullscreen"),jQuery(".bwg_fullscreen").attr("title",bwg_objectsL10n.bwg_exit_fullscreen),jQuery(".spider_popup_close").attr("class","bwg_ctrl_btn spider_popup_close_fullscreen")}return!1}),jQuery(".bwg_play_pause").on(i,function(){jQuery(".bwg_play_pause").length&&jQuery(".bwg_play_pause").hasClass("bwg-icon-play")&&!jQuery(".bwg_comment_container").hasClass("bwg_open")?(bwg_play(gallery_box_data.data),jQuery(".bwg_play_pause").attr("title",bwg_objectsL10n.bwg_pause),jQuery(".bwg_play_pause").attr("class","bwg-icon-pause bwg_ctrl_btn bwg_play_pause")):(window.clearInterval(bwg_playInterval),jQuery(".bwg_play_pause").attr("title",bwg_objectsL10n.bwg_play),jQuery(".bwg_play_pause").attr("class","bwg-icon-play bwg_ctrl_btn bwg_play_pause"))}),gallery_box_data.open_with_autoplay&&(bwg_play(gallery_box_data.data),jQuery(".bwg_play_pause").attr("title",bwg_objectsL10n.bwg_pause),jQuery(".bwg_play_pause").attr("class","bwg-icon-pause bwg_ctrl_btn bwg_play_pause")),gallery_box_data.open_with_fullscreen&&bwg_open_with_fullscreen(),jQuery(".bwg_popup_image").removeAttr("width"),jQuery(".bwg_popup_image").removeAttr("height"),jQuery(window).focus(function(){jQuery(".bwg_play_pause").length&&!jQuery(".bwg_play_pause").hasClass("bwg-icon-play")&&bwg_play(gallery_box_data.data)}),jQuery(window).blur(function(){event_stack=[],window.clearInterval(bwg_playInterval)});gallery_box_data.lightbox_ctrl_btn_pos;1==gallery_box_data.open_ecommerce&&setTimeout(function(){bwg_ecommerce()},400),1==gallery_box_data.open_comment&&bwg_comment()}function spider_createpopup(e,t,i,r,_,s,o,n){e=e.replace(/&#038;/g,"&"),isPopUpOpened||(isPopUpOpened=!0,spider_isunsupporteduseragent()||(bwg_overflow_initial_value=jQuery("html").css("overflow"),bwg_overflow_x_initial_value=jQuery("html").css("overflow-x"),bwg_overflow_y_initial_value=jQuery("html").css("overflow-y"),jQuery("html").attr("style","overflow:hidden !important;"),jQuery("#bwg_spider_popup_loading_"+t).show(),jQuery("#spider_popup_overlay_"+t).css({display:"block"}),jQuery.ajax({type:"GET",url:e,success:function(e){var t=jQuery('<div id="spider_popup_wrap" class="spider_popup_wrap" style=" width:'+i+"px; height:"+r+"px; margin-top:-"+r/2+"px; margin-left: -"+i/2+'px; ">'+e+"</div>").hide().appendTo("body");if(gallery_box_ready(),spider_showpopup(s,o,t,_,n),"undefined"!=typeof addthis){jQuery(".addthis-smartlayers").show();var a=setInterval(function(){void 0!==addthis.layers.refresh&&(clearInterval(a),addthis.layers.refresh())},100)}},beforeSend:function(){},complete:function(){}})))}function spider_showpopup(e,t,a,i,r){var _=gallery_box_data.data,s=parseInt(j
1Query("#bwg_current_image_key").val());void 0!==_[s]&&(isPopUpOpened=!0,-1<_[s].filetype.indexOf("EMBED_")?bwg_first_image_load(a,r):jQuery("#spider_popup_wrap .bwg_popup_image_spun img").prop("complete")?bwg_first_image_load(a,r):jQuery("#spider_popup_wrap .bwg_popup_image_spun img").on("load error",function(){bwg_first_image_load(a,r)}),"EMBED_OEMBED_INSTAGRAM_POST"==_[s].filetype&&"undefined"!=typeof instgrm&&void 0!==instgrm.Embeds&&instgrm.Embeds.process())}function bwg_first_image_load(e,t){e.show(),""==gallery_box_data.data[key].alt&&""==gallery_box_data.data[key].description?jQuery(".bwg_info").hide():jQuery(".bwg_info").show();var a=jQuery(".bwg_ctrl_btn_container").height();"bottom"==t?jQuery(".bwg_toggle_container").css("bottom",a+"px"):"top"==t&&jQuery(".bwg_toggle_container").css("top",a+"px"),jQuery(".bwg_spider_popup_loading").hide(),1==gallery_box_data.preload_images&&bwg_preload_images(parseInt(jQuery("#bwg_current_image_key").val())),bwg_load_filmstrip(),bwg_info_height_set()}function spider_isunsupporteduseragent(){return!window.XMLHttpRequest}function spider_destroypopup(e){jQuery(".addthis-smartlayers").hide(),null!=document.getElementById("spider_popup_wrap")&&(void 0!==jQuery().fullscreen&&jQuery.isFunction(jQuery().fullscreen)&&jQuery.fullscreen.isFullScreen()&&jQuery.fullscreen.exit(),"undefined"!=typeof enable_addthis&&enable_addthis&&jQuery(".at4-share-outer").hide(),setTimeout(function(){jQuery(".spider_popup_wrap").remove(),jQuery(".bwg_spider_popup_loading").css({display:"none"}),jQuery(".spider_popup_overlay").css({display:"none"}),jQuery(document).off("keydown"),!1!==bwg_overflow_initial_value&&jQuery("html").css("overflow",bwg_overflow_initial_value),!1!==bwg_overflow_x_initial_value&&jQuery("html").css("overflow-x",bwg_overflow_x_initial_value),!1!==bwg_overflow_y_initial_value&&jQuery("html").css("overflow-y",bwg_overflow_y_initial_value)},20)),isPopUpOpened=!1;var t=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()),a=document.querySelector('meta[name="viewport"]');t&&a&&(a.content="width=device-width, initial-scale=1");var i=jQuery(document).scrollTop();bwg_objectsL10n.is_pro&&history.pushState(history.state,null,window.location.origin+window.location.pathname+window.location.search),jQuery(document).scrollTop(i),void 0!==gallery_box_data.bwg_playInterval&&clearInterval(gallery_box_data.bwg_playInterval)}function get_ajax_pricelist(){var e={};return jQuery(".add_to_cart_msg").html(""),e.ajax_task="display",e.image_id=jQuery("#bwg_popup_image").attr("image_id"),jQuery("#ecommerce_ajax_loading").css("height",jQuery(".bwg_ecommerce_panel").css("height")),jQuery("#ecommerce_opacity_div").css("width",jQuery(".bwg_ecommerce_panel").css("width")),jQuery("#ecommerce_opacity_div").css("height",jQuery(".bwg_ecommerce_panel").css("height")),jQuery("#ecommerce_loading_div").css("width",jQuery(".bwg_ecommerce_panel").css("width")),jQuery("#ecommerce_loading_div").css("height",jQuery(".bwg_ecommerce_panel").css("height")),jQuery("#ecommerce_opacity_div").css("display","block"),jQuery("#ecommerce_loading_div").css("display","table-cell"),jQuery.ajax({type:"POST",url:jQuery("#bwg_ecommerce_form").attr("action"),data:e,success:function(e){jQuery(".pge_tabs li a").on("click",function(){return jQuery(".pge_tabs_container > div").hide(),jQuery(".pge_tabs li").removeClass("pge_active"),jQuery(jQuery(this).attr("href")).show(),jQuery(this).closest("li").addClass("pge_active"),jQuery("[name=type]").val(jQuery(this).attr("href").substr(1)),!1});var t=jQuery(e).find(".manual").html();jQuery(".manual").html(t);var a=jQuery(e).find(".downloads").html();jQuery(".downloads").html(a);var i=jQuery(e).find(".pge_options").html();jQuery(".pge_options").html(i);var r=jQuery(e).find(".pge_add_to_cart").html();jQuery(".pge_add_to_cart").html(r)},beforeSend:function(){},complete:function(){jQuery("#ecommerce_opacity_div").css("display","none"),jQuery("#ecommerce_loading_div").css("display","none")}}),!1}function spider_ajax_save(e){var t={};return t.bwg_name=jQuery("#bwg_name").val(),t.bwg_comment=jQuery("#bwg_comment").val(),t.bwg_email=jQuery("#bwg_email").val(),t.bwg_captcha_input=jQuery("#bwg_captcha_input").val(),t.ajax_task=jQuery("#ajax_task").val(),t.image_id=jQuery("#image_id").val(),t.comment_id=jQuery("#comment_id").val(),jQuery("#ajax_loading").css("height",jQuery(".bwg_comments").css("height")),jQuery("#opacity_div").css("width",jQuery(".bwg_comments").css("width")),jQuery("#opacity_div").css("height",jQuery(".bwg_comments").css("height")),jQuery("#loading_div").css("width",jQuery(".bwg_comments").css("width")),jQuery("#loading_div").css("height",jQuery(".bwg_comments").css("height")),document.getElementById("opacity_div").style.display="",document.getElementById("loading_div").style.display="table-cell",jQuery.ajax({type:"POST",url:jQuery("#"+e).attr("action"),data:t,success:function(e){var t=jQuery(e).find(".bwg_comments").html();jQuery(".bwg_comments").html(t)},beforeSend:function(){},complete:function(){document.getElementById("opacity_div").style.display="none",document.getElementById("loading_div").style.display="none",jQuery(".bwg_comments").mCustomScrollbar({scrollInertia:150,theme:"dark-thick",advanced:{updateOnContentResize:!0}}),jQuery(".bwg_comments_close_btn").click(bwg_comment),bwg_captcha_refresh("bwg_captcha")}}),!1}function spider_rate_ajax_save(a){var e={};return e.image_id=jQuery("#"+a+" input[name='image_id']").val(),e.rate=jQuery("#"+a+" input[name='score']").val(),e.ajax_task=jQuery("#rate_ajax_task").val(),jQuery.ajax({type:"POST",url:jQuery("#"+a).attr("action"),data:e,success:function(e){var t=jQuery(e).find("#"+a).html();jQuery("#"+a).html(t)},beforeSend:function(){},complete:function(){}})}function spider_set_input_value(e,t){document.getElementById(e)&&(document.getElementById(e).value=t)}function spider_form_submit(e,t){document.getElementById(t)&&document.getElementById(t).submit(),e.preventDefault?e.preventDefault():e.returnValue=!1}function spider_check_required(e,t){return""==jQuery("#"+e).val()&&(alert(t+" "+bwg_objectsL10n.bwg_field_required),jQuery("#"+e).attr("style","border-color: #FF0000;"),jQuery("#"+e).focus(),!0)}function comment_check_privacy_policy(){var e=jQuery("#bwg_submit");e.removeClass("bwg-submit-disabled"),e.removeAttr("disabled"),jQuery("#bwg_comment_privacy_policy").is(":checked")||(e.addClass("bwg-submit-disabled"),e.attr("disabled","disabled"))}function spider_check_email(e){if(""!=jQuery("#"+e).val())return-1==jQuery("#"+e).val().replace(/^\s+|\s+$/g,"").search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)&&(alert(bwg_objectsL10n.bwg_mail_validation),!0)}function bwg_captcha_refresh(e){document.getElementById(e+"_img")&&document.getElementById(e+"_input")&&(srcArr=document.getElementById(e+"_img").src.split("&r="),document.getElementById(e+"_img").src=srcArr[0]+"&r="+Math.floor(100*Math.random()),document.getElementById(e+"_img").style.display="inline-block",document.getElementById(e+"_input").value="")}function bwg_play_instagram_video(e,t){jQuery(e).parent().find("video").each(function(){jQuery(this).get(0).paused?(jQuery(this).get(0).play(),jQuery(e).children().hide()):(jQuery(this).get(0).pause(),jQuery(e).children().show())})}function bwg_add_comment(){var t=jQuery("#bwg_comment_form"),e=t.attr("action"),a={ajax_task:"add_comment"};return a.comment_name=t.find("#bwg_name").val(),a.comment_email=t.find("#bwg_email").val(),a.comment_text=t.find("#bwg_comment").val(),a.comment_captcha=t.find("#bwg_captcha_input").val(),a.popup_enable_captcha=t.find("#bwg_popup_enable_captcha").val(),a.privacy_policy=t.find("#bwg_comment_privacy_policy").is(":checked")?1:0,a.comment_image_id=jQuery("#bwg_popup_image").attr("image_id"),a.comment_moderation=t.find("#bwg_comment_moderation").val(),jQuery(".bwg_spider_ajax_loading").hide(),jQuery.ajax({url:e,type:"POST",dataType:"json",data:a,success:function(e){jQuery(".bwg_comment_error").text(""),1==e.error?jQuery.each(e.error_messages,function(e,t){t&&jQuery(".bwg_comment_"+e+"_error").text(t)}):(t.find("#bwg_comment").val(""),jQuery(".bwg_comment_waiting_message").hide(),0==e.published&&jQuery(".bwg_comment_waiting_message").show(),""!=e.html_comments_block&&jQuery("#bwg_added_comments").html(e.html_comments_block).show())},beforeSend:function(){jQuery(".bwg_spider_ajax_loading").show()},complete:function(){0<t.find("#bwg_comment_privacy_policy").length&&(t.find("#bwg_comment_privacy_policy").prop("checked",!1),comment_check_privacy_policy()),bwg_captcha_refresh("bwg_captcha"),jQuery(".bwg_spider_ajax_loading").hide()},error:function(){}}),!1}function bwg_remove_comment(t){var e=jQuery("#bwg_comment_form").attr("action"),a={ajax_task:"delete_comment"};return a.id_image=jQuery("#bwg_popup_image").attr("image_id"),a.id_comment=t,jQuery.ajax({url:e,type:"POST",dataType:"json",data:a,success:function(e){0==e.error&&jQuery("#bwg_comment_block_"+t).fadeOut("slow").remove()},beforeSend:function(){},complete:function(){},error:function(){}}),!1}function bwg_gallery_box(e,t,a,i){jQuery(".bwg-validate").each(function(){jQuery(this).on("keypress change",function(){jQuery(this).parent().next().find(".bwg_comment_error").html("")})}),void 0===a&&(a=!1);var r,_=t.data("bwg");r=t.find(".bwg-container").data("lightbox-url")?t.find(".bwg-container").data("lightbox-url"):t.data("lightbox-url");var s=t.find(".cur_gal_id").val(),o=jQuery("#bwg_tag_id_"+s).val();o=o||0;var n=1==a?"&open_ecommerce=1":"",l=jQuery("#bwg_search_input_"+_).val(),g=jQuery("#bwg_order_"+_).val()?"&filtersortby="+jQuery("#bwg_order_"+_).val():"";l=l||"",void 0!==i&&(r+="&gallery_id="+i);var u="",b=jQuery("#bwg_blog_style_share_buttons_"+e).attr("data-open-comment");void 0!==b&&!1!==b&&(u="&open_comment=1"),spider_createpopup(r+"&bwg_random_seed="+jQuery("#bwg_random_seed_"+_).val()+"&image_id="+e+"&filter_tag="+o+n+u+"&filter_search_name="+l+g,_,t.data("popup-width"),t.data("popup-height"),1,"testpopup",5,t.data("buttons-position"))}function bwg_change_image_lightbox(e,i,r,t){if(jQuery("#bwg_rate_form input[name='image_id']").val(r[i].id),bwg_current_key=gallery_box_data.bwg_current_key,""==gallery_box_data.data[i].alt&&""==gallery_box_data.data[i].description?jQuery(".bwg_info").hide():jQuery(".bwg_info").show(),jQuery(".bwg_image_info").css("height","auto"),setTimeout(function(){bwg_info_height_set(),jQuery(".bwg_image_description").height()>jQuery(".bwg_image_info").height()&&jQuery(".mCSB_container").hasClass("mCS_no_scrollbar")&&jQuery(".bwg_image_info").mCustomScrollbar("destroy"),jQuery(".bwg_image_info").hasClass("mCustomScrollbar")||void 0!==jQuery().mCustomScrollbar&&jQuery.isFunction(jQuery().mCustomScrollbar)&&jQuery(".bwg_image_info").mCustomScrollbar({scrollInertia:150,theme:"dark-thick",advanced:{updateOnContentResize:!0}})},200),jQuery("#spider_popup_left").show(),jQuery("#spider_popup_right").show(),jQuery(".bwg_image_info").hide(),0==gallery_box_data.enable_loop&&(i==parseInt(r.length)-1&&jQuery("#spider_popup_right").hide(),0==i&&jQuery("#spider_popup_left").hide()),1==gallery_box_data.ecommerceACtive&&1==gallery_box_data.enable_image_ecommerce)if(0==gallery_box_data.data[i].pricelist)jQuery(".bwg_ecommerce").hide();else{jQuery(".bwg_ecommerce").show(),jQuery(".pge_tabs li").hide(),jQuery("#downloads").hide(),jQuery("#manual").hide();var a=gallery_box_data.data[i].pricelist_sections.split(",");if(a)if(jQuery("#"+a[0]).show(),jQuery("[name=type]").val(a[0]),1<a.length)for(jQuery(".pge_tabs").show(),k=0;k<a.length;k++)jQuery("#"+a[k]+"_li").show();else jQuery(".pge_tabs").hide();else jQuery("[name=type]").val("")}if(jQuery("#bwg_image_container").find("iframe").each(function(){jQuery(this)[0].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"),jQuery(this)[0].contentWindow.postMessage('{ "method": "pause" }',"*"),jQuery(this)[0].contentWindow.postMessage("pause","*")}),jQuery("#bwg_image_container").find("video").each(function(){jQuery(this).trigger("pause")}),void 0===r&&(r=gallery_box_data.data),void 0!==r[i]&&void 0!==r[e]){if(jQuery(".bwg_play_pause").length&&!jQuery(".bwg_play_pause").hasClass("bwg-icon-play")&&bwg_play(r),t||jQuery("#bwg_current_image_key").val(i),gallery_box_data.bwg_trans_in_progress)return void gallery_box_data.event_stack.push(e+"-"+i);var _="right";if(bwg_current_key>i)_="left";else if(bwg_current_key==i)return;jQuery(".bwg_image_count").html(r[i].number),jQuery(".bwg_watermark").css({display:"none"}),"width"==gallery_box_data.width_or_height?bwg_current_filmstrip_pos=i*(jQuery(".bwg_filmstrip_thumbnail").width()+2+2*gallery_box_data.lightbox_filmstrip_thumb_border_width):"height"==gallery_box_data.width_or_height&&(bwg_current_filmstrip_pos=i*(jQuery(".bwg_filmstrip_thumbnail").height()+2+2*gallery_box_data.lightbox_filmstrip_thumb_border_width)),gallery_box_data.bwg_current_key=i,bwg_objectsL10n.is_pro&&(location.replace("#bwg"+gallery_box_data.gallery_id+"/"+r[i].id),history.replaceState(void 0,void 0,"#bwg"+gallery_box_data.gallery_id+"/"+r[i].id)),jQuery("#bwg_rate_form input[name='image_id']").val(r[i].id),gallery_box_data.popup_enable_rate&&(jQuery("#bwg_star").attr("data-score",r[i].avg_rating),jQuery("#bwg_star").removeAttr("title"),r[i].cur_key=i,bwg_rating(r[i].rate,r[i].rate_count,r[i].avg_rating,i)),spider_set_input_value("rate_ajax_task","
1save_hit_count"),spider_rate_ajax_save("bwg_rate_form"),jQuery(".bwg_image_hits span").html(++r[i].hit_count),jQuery("#bwg_popup_image").attr("image_id",r[i].id),jQuery(".bwg_image_title").html(jQuery("<span />").html(r[i].alt).text()),jQuery(".bwg_image_description").html(jQuery("<span />").html(r[i].description).text()),jQuery(".bwg_filmstrip_thumbnail").removeClass("bwg_thumb_active").addClass("bwg_thumb_deactive"),jQuery("#bwg_filmstrip_thumbnail_"+i).removeClass("bwg_thumb_deactive").addClass("bwg_thumb_active"),jQuery(".bwg_image_info").css("opacity",1),""==r[i].alt.trim()&&""==r[i].description.trim()&&jQuery(".bwg_image_info").css("opacity",0),"none"!=jQuery(".bwg_image_info_container1").css("display")?jQuery(".bwg_image_info_container1").css("display","table-cell"):jQuery(".bwg_image_info_container1").css("display","none"),"none"!=jQuery(".bwg_image_rate_container1").css("display")?jQuery(".bwg_image_rate_container1").css("display","table-cell"):jQuery(".bwg_image_rate_container1").css("display","none");var s=2==jQuery(".bwg_popup_image_spun").css("zIndex")?".bwg_popup_image_spun":".bwg_popup_image_second_spun",o=".bwg_popup_image_second_spun"==s?".bwg_popup_image_spun":".bwg_popup_image_second_spun",n=-1<r[i].filetype.indexOf("EMBED_"),l=-1<r[i].filetype.indexOf("INSTAGRAM_POST"),g=-1<r[i].filetype.indexOf("INSTAGRAM_VIDEO"),u=-1!==jQuery.inArray(r[i].filetype,["EMBED_OEMBED_YOUTUBE_VIDEO","EMBED_OEMBED_VIMEO_VIDEO","EMBED_OEMBED_FACEBOOK_VIDEO","EMBED_OEMBED_DAILYMOTION_VIDEO"]),b=jQuery(s).height(),w=jQuery(s).width(),d='<span class="bwg_popup_image_spun1" style="display: '+(n?"block":"table")+'; width: inherit; height: inherit;"><span class="bwg_popup_image_spun2" style="display:'+(n?"block":"table-cell")+'; vertical-align: middle;text-align: center;height: 100%;">';if(n){if(jQuery("#bwg_download").addClass("bwg-hidden"),d+='<span class="bwg_popup_embed bwg_popup_watermark" style="display: '+(u?"block":"table")+'; table-layout: fixed; height: 100%;">'+(g?'<div class="bwg_inst_play_btn_cont" onclick="bwg_play_instagram_video(this)" ><div class="bwg_inst_play"></div></div>':" "),l){var h=0,c=0;b<w+88?h=(c=b)-88:c=(h=w)+88,d+=spider_display_embed(r[i].filetype,r[i].image_url,r[i].filename,{class:"bwg_embed_frame","data-width":r[i].image_width,"data-height":r[i].image_height,frameborder:"0",allowfullscreen:"allowfullscreen",style:"width:"+h+"px; height:"+c+"px; vertical-align:middle; display:inline-block; position:relative;"})}else d+=spider_display_embed(r[i].filetype,r[i].image_url,r[i].filename,{class:"bwg_embed_frame",frameborder:"0",allowfullscreen:"allowfullscreen",style:"display:"+(u?"block":"table-cell")+"; width:inherit; height:inherit; vertical-align:middle;"});d+="</span>"}else{jQuery(".bwg-loading").removeClass("bwg-hidden"),jQuery("#bwg_download").removeClass("bwg-hidden");var m=(gallery_box_data.site_url+jQuery("<span />").html(decodeURIComponent(r[i].image_url)).text()).split("?bwg")[0];gallery_box_data.popup_enable_zoom&&(d+='<figure style="max-height: '+b+"px; max-width: "+w+"px; background-image: url("+m+')" class="bwg_popup_image bwg_popup_watermark" alt="'+r[i].alt+'" />'),d+='<img style="max-height: '+b+"px; max-width: "+w+'px;" class="bwg_popup_image bwg_popup_watermark" src="'+gallery_box_data.site_url+jQuery("<span />").html(decodeURIComponent(r[i].image_url)).text()+'" alt="'+r[i].alt+'" />'}function p(){gallery_box_data.preload_images&&bwg_preload_images(i),window["bwg_"+gallery_box_data.bwg_image_effect](s,o,_),jQuery(s).find(".bwg_fb_video").each(function(){jQuery(this).attr("src","")}),n?jQuery("#bwg_fullsize_image").attr("href",decodeURIComponent(r[i].image_url)):(jQuery("#bwg_fullsize_image").attr("href",gallery_box_data.site_url+decodeURIComponent(r[i].image_url)),jQuery("#bwg_download").attr("href",gallery_box_data.site_url+decodeURIComponent(r[i].thumb_url).replace("/thumb/","/.original/")));var e=decodeURIComponent(r[i].image_url).split("/");jQuery("#bwg_download").attr("download",e[e.length-1].replace(/\?bwg=(\d+)$/,""));var t=encodeURIComponent(gallery_box_data.bwg_share_url)+"="+r[i].id+encodeURIComponent("#bwg"+gallery_box_data.gallery_id+"/")+r[i].id;if(n)var a=encodeURIComponent(r[i].thumb_url);else a=gallery_box_data.bwg_share_image_url+encodeURIComponent(encodeURIComponent(r[i].pure_image_url));a=a.replace(/%252F|%25252F/g,"%2F"),void 0!==addthis_share&&(addthis_share.url=t),jQuery("#bwg_facebook_a").attr("href","https://www.facebook.com/sharer/sharer.php?u="+t),jQuery("#bwg_twitter_a").attr("href","https://twitter.com/share?url="+t),jQuery("#bwg_pinterest_a").attr("href","http://pinterest.com/pin/create/button/?s=100&url="+t+"&media="+a+"&description="+r[i].alt+"%0A"+r[i].description),jQuery("#bwg_tumblr_a").attr("href","https://www.tumblr.com/share/photo?source="+a+"&caption="+r[i].alt+"&clickthru="+t),jQuery(".bwg_comment_container").hasClass("bwg_open")&&(jQuery(".bwg_comments .mCSB_container").css("top","0"),jQuery("#bwg_added_comments").show(),spider_set_input_value("ajax_task","display"),spider_set_input_value("image_id",jQuery("#bwg_popup_image").attr("image_id")),spider_ajax_save("bwg_comment_form")),jQuery(".bwg_ecommerce_container").hasClass("bwg_open")&&(0==r[i].pricelist?(bwg_popup_sidebar_close(jQuery(".bwg_ecommerce_container")),bwg_animate_image_box_for_hide_sidebar(),jQuery(".bwg_ecommerce_container").attr("class","bwg_ecommerce_container bwg_close"),jQuery(".bwg_ecommerce").attr("title",bwg_objectsL10n.bwg_show_ecommerce),jQuery(".spider_popup_close_fullscreen").show()):get_ajax_pricelist()),void 0!==jQuery().mCustomScrollbar&&jQuery.isFunction(jQuery().mCustomScrollbar)&&jQuery(".bwg_comments").mCustomScrollbar({advanced:{updateOnContentResize:!0}}),jQuery(".bwg_comments .mCSB_scrollTools").hide(),gallery_box_data.enable_image_filmstrip&&bwg_move_filmstrip(),bwg_resize_instagram_post()}if(gallery_box_data.popup_enable_zoom?d+="</figure></span></span>":d+="</span></span>",jQuery(o).html(d),jQuery(o).find("img").on("load error",function(){jQuery(".bwg-loading").addClass("bwg-hidden")}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:w,maxHeight:b,height:"auto"}),n)p();else jQuery(o).find("img").one("load",function(){p()}).each(function(){this.complete&&jQuery(this).load()});"undefined"!=typeof instgrm&&void 0!==instgrm.Embeds&&instgrm.Embeds.process()}}function bwg_preload_images_lightbox(e){for(var t=gallery_box_data.data,a=t.length,i=0==gallery_box_data.preload_images_count||gallery_box_data.preload_images_count>=a?a:gallery_box_data.preload_images_count,r=0,_=1;r<i;_++){var s=1;do{var o=(e+_*s+a)%a;if(void 0!==t[o])-1<t[o].filetype.indexOf("EMBED_")||jQuery("<img/>
1").attr("src",gallery_box_data.site_url+jQuery("<span />").html(decodeURIComponent(t[o].image_url)).text());s*=-1,r++}while(1!=s)}}function bwg_popup_sidebar_open(e){var t=gallery_box_data.lightbox_comment_width,a=gallery_box_data.lightbox_comment_pos;if(t>jQuery(window).width()){if(t=jQuery(window).width(),e.css({width:t}),jQuery(".spider_popup_close_fullscreen").hide(),jQuery(".spider_popup_close").hide(),jQuery(".bwg_ctrl_btn").hasClass("bwg-icon-pause")){var i=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase());jQuery(".bwg_play_pause").trigger(i?"touchend":"click")}}else jQuery(".spider_popup_close_fullscreen").show();"left"==a?e.animate({left:0},100):e.animate({right:0},100)}function bwg_comment(){if(jQuery(".bwg_watermark").css({display:"none"}),jQuery(".bwg_ecommerce_wrap").css("z-index","-1"),jQuery(".bwg_comment_wrap").css("z-index","25"),jQuery(".bwg_ecommerce_container").hasClass("bwg_open")&&(bwg_popup_sidebar_close(jQuery(".bwg_ecommerce_container")),jQuery(".bwg_ecommerce_container").attr("class","bwg_ecommerce_container bwg_close"),jQuery(".bwg_ecommerce").attr("title",bwg_objectsL10n.bwg_show_ecommerce)),jQuery(".bwg_comment_container").hasClass("bwg_open"))"1"==jQuery(".bwg_comment_container").attr("data-play-status")&&jQuery(".bwg_ctrl_btn.bwg_play_pause").removeClass("bwg-icon-play").addClass("bwg-icon-pause").attr("title",bwg_objectsL10n.bwg_pause),bwg_popup_sidebar_close(jQuery(".bwg_comment_container")),bwg_animate_image_box_for_hide_sidebar(),jQuery(".bwg_comment_wrap").css("z-index","-1"),jQuery(".bwg_comment_container").attr("class","bwg_comment_container bwg_close"),jQuery(".bwg_comment").attr("title",bwg_objectsL10n.bwg_show_comments),jQuery(".spider_popup_close_fullscreen").show();else{jQuery(".bwg_play_pause").hasClass("bwg-icon-pause")?jQuery(".bwg_comment_container").attr("data-play-status","1"):jQuery(".bwg_comment_container").attr("data-play-status","0"),jQuery(".bwg_ctrl_btn.bwg_play_pause").removeClass("bwg-icon-pause").addClass("bwg-icon-play").attr("title",bwg_objectsL10n.bwg_play),bwg_popup_sidebar_open(jQuery(".bwg_comment_container")),bwg_animate_image_box_for_show_sidebar(),jQuery(".bwg_comment_container").attr("class","bwg_comment_container bwg_open"),jQuery(".bwg_comment").attr("title",bwg_objectsL10n.bwg_hide_comments);var e=parseInt(jQuery("#bwg_current_image_key").val());void 0!==gallery_box_data.current_image_key&&0!=gallery_box_data.data[e].comment_count&&(jQuery("#bwg_added_comments").show(),spider_set_input_value("ajax_task","display"),spider_set_input_value("image_id",jQuery("#bwg_popup_image").attr("image_id")),spider_ajax_save("bwg_comment_form"))}jQuery(".bwg_comments").mCustomScrollbar("update",{scrollInertia:150,theme:"dark-thick",advanced:{updateOnContentResize:!0}})}function bwg_ecommerce(){jQuery(".bwg_watermark").css({display:"none"}),jQuery(".bwg_ecommerce_wrap").css("z-index","25"),jQuery(".bwg_comment_wrap").css("z-index","-1"),jQuery(".bwg_comment_container").hasClass("bwg_open")&&(bwg_popup_sidebar_close(jQuery(".bwg_comment_container")),jQuery(".bwg_comment_container").attr("class","bwg_comment_container bwg_close"),jQuery(".bwg_comment").attr("title",bwg_objectsL10n.bwg_show_comments)),jQuery(".bwg_ecommerce_container").hasClass("bwg_open")?(bwg_popup_sidebar_close(jQuery(".bwg_ecommerce_container")),bwg_animate_image_box_for_hide_sidebar(),jQuery(".bwg_ecommerce_container").attr("class","bwg_ecommerce_container bwg_close"),jQuery(".bwg_ecommerce").attr("title",bwg_objectsL10n.bwg_show_ecommerce)):(bwg_popup_sidebar_open(jQuery(".bwg_ecommerce_container")),bwg_animate_image_box_for_show_sidebar(),jQuery(".bwg_ecommerce_container").attr("class","bwg_ecommerce_container bwg_open"),jQuery(".bwg_ecommerce").attr("title",bwg_objectsL10n.bwg_hide_ecommerce),get_ajax_pricelist())}function bwg_popup_sidebar_close(e){var t=parseInt(e.css("borderRightWidth"));t||(t=0),"left"==lightbox_comment_pos?e.animate({left:-e.width()-t},100):"right"==lightbox_comment_pos&&e.animate({right:-e.width()-t},100)}function bwg_animate_image_box_for_hide_sidebar(){"left"==lightbox_comment_pos?jQuery(".bwg_image_wrap").animate({left:0,width:jQuery("#spider_popup_wrap").width()},100):"right"==lightbox_comment_pos&&jQuery(".bwg_image_wrap").animate({right:0,width:jQuery("#spider_popup_wrap").width()},100),jQuery(".bwg_image_container").animate({width:jQuery("#spider_popup_wrap").width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},100),jQuery(".bwg_popup_image").animate({maxWidth:jQuery("#spider_popup_wrap").width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},{duration:100,complete:function(){bwg_change_watermark_container()}}),jQuery(".bwg_popup_embed").animate({width:jQuery("#spider_popup_wrap").width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},{duration:100,complete:function(){bwg_resize_instagram_post(),bwg_change_watermark_container()}}),"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_container").animate({width:jQuery(".spider_popup_wrap").width()},100),jQuery(".bwg_filmstrip").animate({width:jQuery(".spider_popup_wrap").width()-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())},100)):"height"==gallery_box_data.width_or_height&&(jQuery(".bwg_filmstrip_container").animate({height:jQuery(".spider_popup_wrap").width()},100),jQuery(".bwg_filmstrip").animate({height:jQuery(".spider_popup_wrap").width()-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())},100)),bwg_set_filmstrip_pos(jQuery(".spider_popup_wrap").width()-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",gallery_box_data),jQuery(".spider_popup_close_fullscreen").show(100)}function bwg_animate_image_box_for_show_sidebar(){var e=jQuery(".bwg_comment_container").width()||jQuery(".bwg_ecommerce_container").width();"left"==lightbox_comment_pos?jQuery(".bwg_image_wrap").animate({left:e,width:jQuery("#spider_popup_wrap").width()-e},100):"right"==lightbox_comment_pos&&jQuery(".bwg_image_wrap").animate({right:e,width:jQuery("#spider_popup_wrap").width()-e},100),jQuery(".bwg_image_container").animate({width:jQuery("#spider_popup_wrap").width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e},100),jQuery(".bwg_popup_image").animate({maxWidth:jQuery("#spider_popup_wrap").width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},{duration:100,complete:function(){bwg_change_watermark_container()}}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").animate({maxWidth:jQuery("#spider_popup_wrap").width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},{duration:100,complete:function(){bwg_resize_instagram_post(),bwg_change_watermark_container()}}),"width"==gallery_box_data.width_or_height&&(jQuery(".bwg_filmstrip_container").css({width:jQuery("#spider_popup_wrap").width()-("vertical"==gallery_box_data.filmstrip_direction?0:e)}),jQuery(".bwg_filmstrip").animate({width:jQuery(".bwg_filmstrip_container").width()-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())},100),bwg_set_filmstrip_pos(jQuery(".bwg_filmstrip_container").width()-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",gallery_box_data))}function bwg_reset_zoom(){var e=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()),t=document.querySelector('meta[name="viewport"]');e&&t&&(t.content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0")}function bwg_open_with_fullscreen(){jQuery(".bwg_watermark").css({display:"none"});var e=0;(jQuery(".bwg_comment_container").hasClass("bwg_open")||jQuery(".bwg_ecommerce_container").hasClass("bwg_open"))&&(e=j
1Query(".bwg_comment_container").width()||jQuery(".bwg_ecommerce_container").width()),bwg_popup_current_width=jQuery(window).width(),bwg_popup_current_height=window.innerHeight,jQuery("#spider_popup_wrap").css({width:jQuery(window).width(),height:window.innerHeight,left:0,top:0,margin:0,zIndex:100002}),jQuery(".bwg_image_wrap").css({width:jQuery(window).width()-e}),jQuery(".bwg_image_container").css({height:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0),width:bwg_popup_current_width-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)}),jQuery(".bwg_popup_image").css({maxWidth:jQuery(window).width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)},{complete:function(){bwg_change_watermark_container()}}),jQuery(".bwg_popup_video").css({width:jQuery(window).width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),height:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)},{complete:function(){bwg_change_watermark_container()}}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:jQuery(window).width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)},{complete:function(){bwg_resize_instagram_post(),bwg_change_watermark_container()}}),"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_container").css({width:jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)}),jQuery(".bwg_filmstrip").css({width:jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())}),bwg_set_filmstrip_pos(jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",gallery_box_data)):(jQuery(".bwg_filmstrip_container").css({height:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)}),jQuery(".bwg_filmstrip").css({height:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())}),bwg_set_filmstrip_pos(window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",gallery_box_data)),jQuery(".bwg_resize-full").attr("class","bwg-icon-compress bwg_ctrl_btn bwg_resize-full"),jQuery(".bwg_resize-full").attr("title",bwg_objectsL10n.bwg_restore),jQuery(".spider_popup_close").attr("class","bwg_ctrl_btn spider_popup_close_fullscreen")}function bwg_resize_full(){jQuery(".bwg_watermark").css({display:"none"});var e=0;(jQuery(".bwg_comment_container").hasClass("bwg_open")||jQuery(".bwg_ecommerce_container").hasClass("bwg_open"))&&(e=jQuery(".bwg_comment_container").width()||jQuery(".bwg_ecommerce_container").width()),jQuery(".bwg_resize-full").hasClass("bwg-icon-compress")?(jQuery(window).width()>gallery_box_data.image_width&&(bwg_popup_current_width=gallery_box_data.image_width),window.innerHeight>gallery_box_data.image_height&&(bwg_popup_current_height=gallery_box_data.image_height),jQuery("#spider_popup_wrap").animate({width:bwg_popup_current_width,height:bwg_popup_current_height,left:"50%",top:"50%",marginLeft:-bwg_popup_current_width/2,marginTop:-bwg_popup_current_height/2,zIndex:100002},500),jQuery(".bwg_image_wrap").animate({width:bwg_popup_current_width-e},500),jQuery(".bwg_image_container").animate({height:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_he
1ight:0),width:bwg_popup_current_width-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},500),jQuery(".bwg_popup_image").animate({maxWidth:bwg_popup_current_width-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)},{duration:500,complete:function(){bwg_change_watermark_container(),jQuery("#spider_popup_wrap").width()<jQuery(window).width()&&jQuery("#spider_popup_wrap").height()<window.innerHeight&&jQuery(".spider_popup_close_fullscreen").attr("class","spider_popup_close")}}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").animate({maxWidth:bwg_popup_current_width-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)},{duration:500,complete:function(){bwg_resize_instagram_post(),bwg_change_watermark_container(),jQuery("#spider_popup_wrap").width()<jQuery(window).width()&&jQuery("#spider_popup_wrap").height()<window.innerHeight&&jQuery(".spider_popup_close_fullscreen").attr("class","spider_popup_close")}}),"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_container").animate({width:bwg_popup_current_width-("horizontal"==gallery_box_data.filmstrip_direction?e:0)},500),jQuery(".bwg_filmstrip").animate({width:bwg_popup_current_width-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())},500),bwg_set_filmstrip_pos(bwg_popup_current_width-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",gallery_box_data)):(jQuery(".bwg_filmstrip_container").animate({height:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?e:0)},500),jQuery(".bwg_filmstrip").animate({height:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())},500),bwg_set_filmstrip_pos(bwg_popup_current_height-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",gallery_box_data),"horizontal"!=gallery_box_data.filmstrip_direction&&jQuery(".bwg_filmstrip_right").css({top:bwg_popup_current_height-jQuery(".bwg_filmstrip_right").height()})),jQuery(".bwg_resize-full").attr("class","bwg-icon-expand bwg_ctrl_btn bwg_resize-full"),jQuery(".bwg_resize-full").attr("title",bwg_objectsL10n.bwg_maximize),setTimeout(function(){bwg_info_height_set()},500)):(bwg_popup_current_width=jQuery(window).width(),bwg_popup_current_height=window.innerHeight,jQuery("#spider_popup_wrap").animate({width:jQuery(window).width(),height:window.innerHeight,left:0,top:0,margin:0,zIndex:100002},500),jQuery(".bwg_image_wrap").animate({width:jQuery(window).width()-e},500),jQuery(".bwg_image_container").animate({height:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0),width:bwg_popup_current_width-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},500),jQuery(".bwg_popup_image").animate({maxWidth:jQuery(window).width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)},{duration:500,complete:function(){bwg_change_watermark_container()}}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").animate({maxWidth:jQuery(window).width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_he
1ight:0)},{duration:500,complete:function(){bwg_resize_instagram_post(),bwg_change_watermark_container()}}),"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_container").animate({width:jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?e:0)},500),jQuery(".bwg_filmstrip").animate({width:jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())},500),bwg_set_filmstrip_pos(jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",gallery_box_data)):(jQuery(".bwg_filmstrip_container").animate({height:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?e:0)},500),jQuery(".bwg_filmstrip").animate({height:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())},500),bwg_set_filmstrip_pos(window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",gallery_box_data),"horizontal"!=gallery_box_data.filmstrip_direction&&jQuery(".bwg_filmstrip_right").css({top:window.innerHeight-jQuery(".bwg_filmstrip_right").height()})),jQuery(".bwg_resize-full").attr("class","bwg-icon-compress bwg_ctrl_btn bwg_resize-full"),jQuery(".bwg_resize-full").attr("title",bwg_objectsL10n.bwg_restore),jQuery(".spider_popup_close").attr("class","bwg_ctrl_btn spider_popup_close_fullscreen")),setTimeout(function(){bwg_info_height_set()},500)}function bwg_popup_resize_lightbox(){void 0!==jQuery().fullscreen&&jQuery.isFunction(jQuery().fullscreen)&&(jQuery.fullscreen.isFullScreen()||(jQuery(".bwg_resize-full").show(),jQuery(".bwg_resize-full").hasClass("bwg-icon-compress")||jQuery(".bwg_resize-full").attr("class","bwg-icon-expand bwg_ctrl_btn bwg_resize-full"),jQuery(".bwg_resize-full").attr("title",bwg_objectsL10n.bwg_maximize),jQuery(".bwg_fullscreen").attr("class","bwg-icon-arrows-out bwg_ctrl_btn bwg_fullscreen"),jQuery(".bwg_fullscreen").attr("title",bwg_objectsL10n.fullscreen)));var e=0;(jQuery(".bwg_comment_container").hasClass("bwg_open")||jQuery(".bwg_ecommerce_container").hasClass("bwg_open"))&&(e=gallery_box_data.lightbox_comment_width),e>jQuery(window).width()?(e=jQuery(window).width(),jQuery(".bwg_comment_container").css({width:e}),jQuery(".bwg_ecommerce_container").css({width:e}),jQuery(".spider_popup_close_fullscreen").hide()):jQuery(".spider_popup_close_fullscreen").show(),window.innerHeight>gallery_box_data.image_height&&1!=gallery_box_data.open_with_fullscreen&&!jQuery(".bwg_resize-full").hasClass("bwg-icon-compress")?(jQuery("#spider_popup_wrap").css({height:gallery_box_data.image_height,top:"50%",marginTop:-gallery_box_data.image_height/2,zIndex:100002}),jQuery(".bwg_image_container").css({height:gallery_box_data.image_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),jQuery(".bwg_image_info").css("height","auto"),bwg_info_height_set(),jQuery(".bwg_popup_image").css({maxHeight:gallery_box_data.image_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxHeight:gallery_box_data.image_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),"vertical"==gallery_box_data.filmstrip_direction&&(jQuery(".bwg_filmstrip_container").css({height:gallery_box_data.image_height}),jQuery(".bwg_filmstrip").css({height:gallery_box_data.image_height-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())})),bwg_popup_current_height=gallery_box_data.image_height):(jQuery("#spider_popup_wrap").css({height:window.innerHeight,top:0,marginTop:0,zIndex:100002}),jQuery(".bwg_image_container").css({height:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_he
1ight:0)}),jQuery(".bwg_image_info").css("height","auto"),bwg_info_height_set(),jQuery(".bwg_popup_image").css({maxHeight:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxHeight:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),"vertical"==gallery_box_data.filmstrip_direction&&(jQuery(".bwg_filmstrip_container").css({height:window.innerHeight}),jQuery(".bwg_filmstrip").css({height:window.innerHeight-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())})),bwg_popup_current_height=window.innerHeight),jQuery(window).width()>=gallery_box_data.image_width&&1!=gallery_box_data.open_with_fullscreen?(jQuery("#spider_popup_wrap").css({width:gallery_box_data.image_width,left:"50%",marginLeft:-gallery_box_data.image_width/2,zIndex:100002}),jQuery(".bwg_image_wrap").css({width:gallery_box_data.image_width-e}),jQuery(".bwg_image_container").css({width:gallery_box_data.image_width-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e}),jQuery(".bwg_image_info").css("height","auto"),bwg_info_height_set(),jQuery(".bwg_popup_image").css({maxWidth:gallery_box_data.image_width-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:gallery_box_data.image_width-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e}),"horizontal"==gallery_box_data.filmstrip_direction&&(jQuery(".bwg_filmstrip_container").css({width:gallery_box_data.image_width-e}),jQuery(".bwg_filmstrip").css({width:gallery_box_data.image_width-e-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())})),bwg_popup_current_width=gallery_box_data.image_width):(jQuery("#spider_popup_wrap").css({width:jQuery(window).width(),left:0,marginLeft:0,zIndex:100002}),jQuery(".bwg_image_wrap").css({width:jQuery(window).width()-e}),jQuery(".bwg_image_container").css({width:jQuery(window).width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e}),jQuery(".bwg_popup_image").css({maxWidth:jQuery(window).width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:jQuery(window).width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e}),"horizontal"==gallery_box_data.filmstrip_direction&&(jQuery(".bwg_filmstrip_container").css({width:jQuery(window).width()-e}),jQuery(".bwg_filmstrip").css({width:jQuery(window).width()-e-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())})),bwg_popup_current_width=jQuery(window).width()),bwg_resize_instagram_post(),bwg_change_watermark_container(),window.innerHeight>gallery_box_data.image_height-2*gallery_box_data.lightbox_close_btn_top&&jQuery(window).width()>=gallery_box_data.image_width-2*gallery_box_data.lightbox_close_btn_right&&1!=gallery_box_data.open_with_fullscreen?jQuery(".spider_popup_close_fullscreen").attr("class","spider_popup_close"):jQuery("#spider_popup_wrap").width()<jQuery(window).width()&&jQuery("#spider_popup_wrap").height()<jQuery(window).height()&&jQuery(".spider_popup_close").attr("class","bwg_ctrl_btn spider_popup_close_fullscreen");var t=jQuery(".bwg_ctrl_btn_container").height();"bottom"==gallery_box_data.lightbox_ctrl_btn_pos&&jQuery(".bwg_toggle_container i").hasClass("bwg-icon-caret-down")&&jQuery(".bwg_toggle_container").css("bottom",t+"px"),"top"==gallery_box_data.lightbox_ctrl_btn_pos&&jQuery(".bwg_toggle_container i").hasClass("bwg-icon-caret-up")&&jQuery(".bwg_toggle_container").css("top",t+"px")}function bwg_rating(e,t,a,i){lightbox_rate_stars_count=gallery_box_data.lightbox_rate_stars_count,lightbox_rate_size=gallery_box_data.lightbox_rate_size,lightbox_rate_icon=gallery_box_data.lightbox_rate_icon;var r="Not rated yet.";0!=a&&""!=a&&(r=parseFloat(a).toFixed(1)+"\n Votes: "+t),void 0!==jQuery().raty&&jQuery.isFunction(jQuery().raty)&&jQuery("#bwg_star").raty({score:function(){return jQuery(this).attr("data-score")},starType:"i",number:lightbox_rate_stars_count,size:lightbox_rate_size,readOnly:function(){return!!e},noRatedMsg:"Not rated yet.",click:function(t,e){jQuery("#bwg_star").hide(),jQuery("#bwg_rated").show(),spider_set_input_value("rate_ajax_task","
1save_rate"),jQuery.when(spider_rate_ajax_save("bwg_rate_form")).then(function(){gallery_box_data.data[i].rate=t,++gallery_box_data.data[i].rate_count;var e=parseFloat(jQuery("#bwg_star").attr("data-score"));gallery_box_data.data[i].avg_rating=e?((e+t)/2).toFixed(1):t.toFixed(1),bwg_rating(gallery_box_data.data[i].rate,gallery_box_data.data[i].rate_count,gallery_box_data.data[i].avg_rating,gallery_box_data.current_image_key)})},starHalf:"bwg-icon-"+lightbox_rate_icon+("star"==lightbox_rate_icon?"-half":"")+"-o",starOff:"bwg-icon-"+lightbox_rate_icon+"-o",starOn:"bwg-icon-"+lightbox_rate_icon,cancelOff:"bwg-icon-minus-square-o",cancelOn:"bwg-icon-minus-square-o",cancel:!1,cancelHint:"Cancel your rating.",hints:[r,r,r,r,r],alreadyRatedMsg:parseFloat(a).toFixed(1)+"\nYou have already rated.\nVotes: "+t})}function changeDownloadsTotal(e){var t=0;0==jQuery("[name=option_show_digital_items_count]").val()?jQuery("[name=selected_download_item]:checked").each(function(){t+=Number(jQuery(this).closest("tr").attr("data-price"))}):jQuery(".digital_image_count").each(function(){0!=Number(jQuery(this).val())&&(t+=Number(jQuery(this).closest("tr").attr("data-price"))*Number(jQuery(this).val()))}),t=t.toFixed(2).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),jQuery(".product_downloads_price").html(t)}function changeMenualTotal(e){Number(jQuery(e).val())<=0&&jQuery(e).val("1");var t=Number(jQuery(e).val()),a=Number(jQuery(".product_manual_price").attr("data-actual-price"));a=(a*=t).toFixed(2).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),jQuery(".product_manual_price").html(a)}function onSelectableParametersChange(e){var t=0,a=gallery_box_data.data[jQuery("#bwg_current_image_key").val()].pricelist_manual_price?gallery_box_data.data[jQuery("#bwg_current_image_key").val()].pricelist_manual_price:"0";a=parseFloat(a.replace(",",""));var i=jQuery(e).closest(".image_selected_parameter").attr("data-parameter-type"),r=jQuery(e).val();r=r.split("*");var _=parseFloat(r[1]),s=r[0],o=Number(jQuery(e).closest(".image_selected_parameter").find(".already_selected_values").val());if("4"==i||"5"==i){var n=parseFloat(s+_);jQuery(e).closest(".image_selected_parameter").find(".already_selected_values").val(n)}else if("6"==i){if(0==jQuery(e).is(":checked"))var l=o-parseFloat(s+_);else l=o+parseFloat(s+_);jQuery(e).closest(".image_selected_parameter").find(".already_selected_values").val(l)}jQuery(".already_selected_values").each(function(){t+=Number(jQuery(this).val())}),a+=t,jQuery(".product_manual_price").attr("data-actual-price",a),a=(a*=Number(jQuery(".image_count").val())<=0?1:Number(jQuery(".image_count").val())).toFixed(2).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),jQuery(".product_manual_price").html(a)}function onBtnClickAddToCart(){var e=jQuery("[name=type]").val();if(""!=e){var t={};if("manual"==e){var a=jQuery(".image_count").val(),i={};jQuery(".manual").find(".image_selected_parameter").each(function(){var e=jQuery(this).attr("data-parameter-id"),t="";switch(jQuery(this).attr("data-parameter-type")){case"2":t=jQuery(this).find("input").val();break;case"3":t=jQuery(this).find("textarea").val();break;case"4":t=jQuery(this).find("select :selected").val();break;case"5":t=jQuery(this).find("[type=radio]:checked").val();break;case"6":var a=[];jQuery(this).find("[type=checkbox]:checked").each(function(){a.push(jQuery(this).val())}),t=a}i[e]=t}),t.count=a,t.parameters=i,t.price=jQuery(".product_manual_price").attr("data-price").replace(",","")}else{var r=[];if(0==jQuery("[name=option_show_digital_items_count]").val()){if(0==jQuery("[name=selected_download_item]:checked").length)return void jQuery(".add_to_cart_msg").html("You must select at least one item.");jQuery("[name=selected_download_item]:checked").each(function(){var e={};e.id=jQuery(this).val(),e.count=1,e.price=jQuery(this).closest("tr").attr("data-price"),r.push(e)})}else jQuery(".digital_image_count").each(function(){var e={};0<jQuery(this).val()&&(e.id=jQuery(this).closest("tr").attr("data-id"),e.price=jQuery(this).closest("tr").attr("data-price"),e.count=jQuery(this).val(),r.push(e))});if(0==(t.downloadItems=r).length)return void jQuery(".add_to_cart_msg").html("Please select at least one item")}var _=jQuery("#ajax_url").val(),s={action:"add_cart",task:"add_cart",controller:"checkout",image_id:jQuery("#bwg_popup_image").attr("image_id"),t
1ype:e,data:JSON.stringify(t)};jQuery.ajax({type:"POST",url:_,data:s,success:function(e){responseData=JSON.parse(e),jQuery(".add_to_cart_msg").html(responseData.msg),jQuery(".products_in_cart").html(responseData.products_in_cart),1==responseData.redirect&&(window.location.href="<?php echo get_permalink($options->checkout_page);?>")},beforeSend:function(){},complete:function(){}})}else jQuery(".add_to_cart_msg").html("Please select Prints and products or Downloads")}function onBtnViewCart(){var e=jQuery("[name=option_checkout_page]").val();jQuery("#bwg_ecommerce_form").attr("action",e),jQuery("#bwg_ecommerce_form").submit()}function bwg_load_visible_images(e,t,a){0<=e-t&&(startPoint=e-t),a<e+t&&(endPoint=a);for(var i=startPoint;i<=endPoint;i++){var r=jQuery("#bwg_filmstrip_thumbnail_"+i+" img");r.removeClass("bwg-hidden"),r.attr("src",r.data("url"))}}function bwg_load_filmstrip(){for(var e=1;e<=total_thumbnail_count;e++){var t;if(leftIndex=startPoint-e,rightIndex=endPoint+e,rightIndex<total_thumbnail_count)(t=jQuery("#bwg_filmstrip_thumbnail_"+rightIndex+" img")).removeClass("bwg-hidden"),t.attr("src",t.data("url"));if(0<=leftIndex)(t=jQuery("#bwg_filmstrip_thumbnail_"+leftIndex+" img")).removeClass("bwg-hidden"),t.attr("src",t.data("url"))}jQuery(".bwg_filmstrip_thumbnail").each(function(){var e=jQuery(this).find("img");void 0===e.attr("style")&&(0==e.width()?e.on("load",function(){jQuery(this).find(".bwg_filmstrip_thumbnail_img_wrap"),bwg_filmstrip_thumb_view(e)}):(jQuery(this).find(".bwg_filmstrip_thumbnail_img_wrap"),bwg_filmstrip_thumb_view(e)))})}function bwg_filmstrip_thumb_view(e){var t=gallery_box_data.image_filmstrip_height,a=gallery_box_data.image_filmstrip_width,i=a-gallery_box_data.filmstrip_thumb_right_left_space,r=t,_=Math.max(a/e.width(),t/e.height()),s=e.width()*_,o=e.height()*_;e.css({width:s,height:o,marginLeft:(i-s)/2,marginTop:(r-o)/2})}function bwg_info_height_set(){bwg_info_position(!1),jQuery(".mCustomScrollBox").length&&jQuery(".bwg_image_info_container1").height()<jQuery(".mCustomScrollBox").height()+jQuery(".bwg_toggle_container").height()+bwg_image_info_pos+2*parseInt(gallery_box_data.lightbox_info_margin)&&jQuery(".bwg_image_info").css({height:jQuery(".bwg_image_info_container1").height()-jQuery(".bwg_toggle_container").height()-bwg_image_info_pos-2*parseInt(gallery_box_data.lightbox_info_margin)})}function bwg_info_position(e){var t=0,a="none";"top"==gallery_box_data.lightbox_ctrl_btn_pos?"top"==gallery_box_data.lightbox_info_pos&&(a="top"):"bottom"==gallery_box_data.lightbox_info_pos&&(a="bottom"),jQuery(".bwg_ctrl_btn_container").hasClass("closed")||("top"==gallery_box_data.lightbox_ctrl_btn_pos?"top"==gallery_box_data.lightbox_info_pos&&(t=jQuery(".bwg_ctrl_btn_container").height()):"bottom"==gallery_box_data.lightbox_info_pos&&(t=jQuery(".bwg_ctrl_btn_container").height())),"top"==a?0==e?jQuery(".bwg_image_info").css("top",t):jQuery(".bwg_image_info").animate({top:t+"px"},500):"bottom"==a&&(0==e?jQuery(".bwg_image_info").css("bottom",t):jQuery(".bwg_image_info").animate({bottom:t+"px"},500))}function spider_display_embed(e,t,a,i){var r="";switch(e){case"EMBED_OEMBED_YOUTUBE_VIDEO":var _="<iframe ";for(attr in""!=a&&(_+=' src="//www.youtube.com/embed/'+a+'?enablejsapi=1&wmode=transparent"'),i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(_+=" "+attr+'="'+i[attr]+'"');r+=_+=" ></iframe>";break;case"EMBED_OEMBED_VIMEO_VIDEO":var s="<iframe ";for(attr in""!=a&&(s+=' src="//player.vimeo.com/video/'+a+'?enablejsapi=1"'),i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(s+=" "+attr+'="'+i[attr]+'"');r+=s+=" ></iframe>";break;case"EMBED_OEMBED_FLICKR_IMAGE":var o="<div ";for(attr in i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(o+=" "+attr+'="'+i[attr]+'"');o+=" >",""!=a&&(o+='<img src="'+a+'" style="max-width:100% !important; max-height:100% !important; width:auto !important; height:auto !important;">'),r+=o+="</div>";break;case"EMBED_OEMBED_FLICKR_VIDEO":break;case"EMBED_OEMBED_INSTAGRAM_VIDEO":var n="<div ";for(attr in i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(n+=" "+attr+'="'+i[attr]+'"');n+=" >",""!=t&&(n+='<video style="width:auto !important; height:auto !important; max-width:100% !important; max-height:100% !important; margin:0 !important;" controls><source src="'+decodeURIComponent(t)+'" type="video/mp4"> Your browser does not support the video tag. </video>'),r+=n+="</div>";break;case"EMBED_OEMBED_INSTAGRAM_IMAGE":n="<div ";for(attr in i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(n+=" "+attr+'="'+i[attr]+'"');n+=" >",""!=t&&(n+='<img src="'+decodeURIComponent(t)+'" style=" max-width:100% !important; max-height:100% !important; width:auto; height:auto;">'),r+=n+="</div>";break;case"EMBED_OEMBED_INSTAGRAM_POST":n="<div ";for(attr in i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(n+=" "+attr+'="'+i[attr]+'"',"CLASS"!=attr&&"class"!=attr&&"Class"!=attr||(obj_class=i[attr]));n+=">",""!=t&&(n+='<div class="inner_instagram_iframe_'+obj_class+'" frameborder="0" scrolling="no" allowtransparency="false" allowfullscreen  style="max-width: 100% !important; max-height: 100% !important; width: 100%; height: 100%; margin:0; vertical-align:middle;">'+atob(t)+"</div>"),r+=n+="</div>";break;case"EMBED_OEMBED_FACEBOOK_IMAGE":var l="<span ";for(attr in i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(l+=" "+attr+'="'+i[attr]+'"');l+=" >",""!=a&&(l+='<img src="'+t+'" style=" max-width:100% !important; max-height:100% !important; width:auto; height:100%;">'),r+=l+="</span>";break;case"EMBED_OEMBED_FACEBOOK_VIDEO":var g="<div ";for(attr in i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(g+=" "+attr+'="'+i[attr]+'"');g+=" >",""!=a&&(g+='<iframe src="//www.facebook.com/video/embed?video_id='+t+'&enablejsapi=1&wmode=transparent" style="max-width:100% !important; max-height:100% !important; width:100%; height:100%; margin:0; display:table-cell; vertical-align:middle;"frameborder="0" class="bwg_fb_video" scrolling="no" allowtransparency="false" allowfullscreen></iframe>'),r+=g+="</div>";break;case"EMBED_OEMBED_DAILYMOTION_VIDEO":var u="<iframe ";for(attr in""!=a&&(u+=' src="//www.dailymotion.com/embed/video/'+a+'?api=postMessage"'),i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(u+=" "+attr+'="'+i[attr]+'"');r+=u+=" ></iframe>";break;case"EMBED_OEMBED_IMGUR":var b="<div ";for(attr in i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(n+=" "+attr+'="'+i[attr]+'"');b+=" >",""!=a&&(b+='<img src="'+a+'" style="max-width:100% !important; max-height:100% !important; width:auto; height:auto !important;">'),r+=b+="</div>";break;case"EMBED_OEMBED_GOOGLE_PHOTO_IMAGE":var w="<div ";for(attr in i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(w+=" "+attr+'="'+i[attr]+'"');w+=" >",""!=a&&(w+='<img src="'+t+'" style=" max-width:100% !important; max-height:100% !important; width:auto; height:auto;">'),r+=w+="</div>";break;default:var d={content:""};jQuery(document).trigger("bwg_display_embed",[d,e,t,a,i]),r=d.content}return r}function bwg_add_instagram_gallery(e,s){if(!0===(s=void 0!==s&&s)){if(bwg_check_instagram_gallery_input(e,s))return!1;var t="0";1==jQuery("input[name=popup_instagram_post_gallery]:checked").val()&&(t="1");var a=encodeURI(jQuery("#popup_instagram_gallery_source").val()),i=encodeURI(jQuery("#popup_instagram_image_number").val())}else{if(bwg_check_instagram_gallery_input(e,s))return!1;if(!bwg_check_gallery_empty(!1,!0))return!1;t="0";1==jQuery("input[name=instagram_post_gallery]:checked").val()&&(t="1");a=encodeURI(jQuery("#gallery_source").val());var r=jQuery("input[name=update_flag]:checked").val();i=encodeURI(jQuery("#autogallery_image_number").val())}jQuery("#bulk_embed").hide(),jQuery("#loading_div").show();var o=[],_={action:"addInstagramGallery",instagram_user:a,instagram_access_token:e,whole_post:t,autogallery_image_number:i,update_flag:r,async:!0};jQuery.post(ajax_url,_,function(e){if(0==e)return alert("Error: cannot get response from the server."),jQuery("#loading_div").hide(),s&&jQuery("#bulk_embed").show(),!1;var t=e.indexOf("WD_delimiter_start"),a=e.indexOf("WD_delimiter_end");if(-1==t||-1==a)return jQuery("#loading_div").hide(),s&&jQuery("#bulk_embed").show(),!1;if(e=e.substring(t+18,a),response_JSON=JSON.parse(e),response_JSON){if
1("error"==response_JSON[0])return alert("Error: "+JSON.parse(e)[1]),jQuery("#loading_div").hide(),s&&jQuery("#bulk_embed").show(),!1;for(var i=response_JSON.length,r=1;r<=i;r++)if(0!=response_JSON[i-r]){var _=response_JSON[i-r];o.push(_)}return bwg_add_image(o),s||(bwg_gallery_update_flag(),jQuery("#tr_instagram_gallery_add_button").hide()),jQuery("#loading_div").hide(),s&&jQuery(".opacity_bulk_embed").hide(),"ok"}return alert("There is some error. Cannot add Instagram gallery."),jQuery("#loading_div").hide(),s&&jQuery("#bulk_embed").show(),!1})}!function(s){var o={init:function(i){return this.each(function(){o.destroy.call(this),this.opt=s.extend(!0,{},s.fn.raty.defaults,i);var e=s(this);o._callback.call(this,["number","readOnly","score","scoreName"]),this.opt.precision&&o._adjustPrecision.call(this),this.opt.number=o._between(this.opt.number,0,this.opt.numberMax),this.opt.path=this.opt.path||"",this.opt.path&&"/"!==this.opt.path.slice(this.opt.path.length-1,this.opt.path.length)&&(this.opt.path+="/"),this.stars=o._createStars.call(this),this.score=o._createScore.call(this),o._apply.call(this,this.opt.score);var t=this.opt.space?4:0,a=this.opt.width||this.opt.number*this.opt.size+this.opt.number*t;this.opt.cancel&&(this.cancel=o._createCancel.call(this),a+=this.opt.size+t),this.opt.readOnly?o._lock.call(this):(e.css("cursor","pointer"),o._binds.call(this)),!1!==this.opt.width&&(e.css("width",a),s(".bwg_rate_spun").css("width",a)),o._target.call(this,this.opt.score),e.data({settings:this.opt,raty:!0})})},_adjustPrecision:function(){this.opt.targetType="score",this.opt.half=!0},_apply:function(e){e&&0<e&&(e=o._between(e,0,this.opt.number),this.score.val(e)),o._fill.call(this,e),e&&o._roun
1dStars.call(this,e),s("#bwg_star *").removeClass("bwg_rate_hover")},_between:function(e,t,a){return Math.min(Math.max(parseFloat(e),t),a)},_binds:function(){this.cancel&&o._bindCancel.call(this),o._bindClick.call(this),o._bindOut.call(this),o._bindOver.call(this)},_bindCancel:function(){o._bindClickCancel.call(this),o._bindOutCancel.call(this),o._bindOverCancel.call(this)},_bindClick:function(){var t=this,a=s(t);t.stars.on("click.raty",function(e){t.score.val(t.opt.half||t.opt.precision?a.data("score"):s(this).attr("alt")),t.opt.click&&t.opt.click.call(t,parseFloat(t.score.val()),e)})},_bindClickCancel:function(){var t=this;t.cancel.on("click.raty",function(e){t.score.removeAttr("value"),t.opt.click&&t.opt.click.call(t,null,e)})},_bindOut:function(){var a=this;s(this).on("mouseleave.raty",function(e){var t=parseFloat(a.score.val())||void 0;o._apply.call(a,t),o._target.call(a,t,e),a.opt.mouseout&&a.opt.mouseout.call(a,t,e)})},_bindOutCancel:function(){var t=this;t.cancel.on("mouseleave.raty",function(e){s(this).attr("class",t.opt.cancelOff),t.opt.mouseout&&t.opt.mouseout.call(t,t.score.val()||null,e)})},_bindOverCancel:function(){var t=this;t.cancel.on("mouseover.raty",function(e){s(this).attr("class",t.opt.cancelOn),t.stars.attr("class",t.opt.starOff),o._target.call(t,null,e),t.opt.mouseover&&t.opt.mouseover.call(t,null)})},_bindOver:function(){var r=this,_=s(r),e=r.opt.half?"mousemove.raty":"mouseover.raty";r.stars.on(e,function(e){var t=parseInt(s(this).attr("alt"),10);if(r.opt.half){var a=parseFloat((e.pageX-s(this).offset().left)/r.opt.size),i=.5<a?1:.5;t=t-1+i,o._fill.call(r,t),r.opt.precision&&(t=t-i+a),o._roundStars.call(r,t),_.data("score",t)}else o._fill.call(r,t);o._target.call(r,t,e),r.opt.mouseover&&r.opt.mouseover.call(r,t,e)})},_callback:function(e){for(i in e)"function"==typeof this.opt[e[i]]&&(this.opt[e[i]]=this.opt[e[i]].call(this))},_createCancel:function(){var e=s(this),t=this.opt.cancelOff,a=s("<i />",{class:"raty-cancel "+t,alt:"x",title:this.opt.cancelHint});return"left"==this.opt.cancelPlace?e.prepend("&#160;").prepend(a):e.append("&#160;").append(a),a},_createScore:function(){return s("<input />",{type:"hidden",name:this.opt.scoreName}).appendTo(this)},_createStars:function(){for(var e=s(this),t=1;t<=this.opt.number;t++){var a=o._getHint.call(this,t),i=this.opt.score&&this.opt.score>=t?"starOn":"starOff";i=this.opt[i],s("<i />",{class:i,alt:t,title:a}).appendTo(this),this.opt.space&&e.append(t<this.opt.number?"&#160;":"")}return e.children("i")},_error:function(e){s(this).html(e),s.error(e)},_fill:function(e){for(var t=this,a=0,i=1;i<=t.stars.length;i++){var r=t.stars.eq(i-1),_=t.opt.single?i==e:i<=e;if(t.opt.iconRange&&t.opt.iconRange.length>a){var s=t.opt.iconRange[a],o=s.on||"starOn",n=s.off||"starOff",l=_?o:n;i<=s.range&&(r.attr("class",this.opt[l]),l==o&&r.addClass("bwg_rate_hover")),i==s.range&&a++}else{l=_?"starOn":"starOff";r.attr("class",this.opt[l]),"starOn"==l&&r.addClass("bwg_rate_hover")}}},_getHint:function(e){var t=this.opt.hints[e-1];return""===t?"":t||e},_lock:function(){var e=parseInt(this.score.val(),10);e?o._getHint.call(this,e):this.opt.noRatedMsg;s(this).data("readonly",!0).css("cursor","").attr("title",this.opt.alreadyRatedMsg),this.score.attr("readonly","readonly"),this.stars.attr("title",this.opt.alreadyRatedMsg),this.cancel&&this.cancel.hide()},_roundStars:function(e){var t=(e-Math.floor(e)).toFixed(2);if(t>this.opt.round.down){var a="starOn";this.opt.halfShow&&t<this.opt.round.up?a="starHalf":t<this.opt.round.full&&(a="starOff"),this.stars.eq(Math.ceil(e)-1).attr("class",this.opt[a])}},_target:function(e,t){if(this.opt.target){var a=s(this.opt.target);0===a.length&&o._error.call(this,"Target selector invalid or missing!"),this.opt.targetFormat.indexOf("{score}")<0&&o._error.call(this,'Template "{score}" missing!');var i=t&&"mouseover"==t.type;void 0===e?e=this.opt.targetText:null===e?e=i?this.opt.cancelHint:this.opt.targetText:("hint"==this.opt.targetType?e=o._getHint.call(this,Math.ceil(e)):this.opt.precision&&(e=parseFloat(e).toFixed(1)),i||this.opt.targetKeep||(e=this.opt.targetText)),e&&(e=this.opt.targetFormat.toString().replace("{score}",e)),a.is(":input")?a.val(e):a.html(e)}},_unlock:function(){s(this).data("readonly",!1).css("cursor","pointer").removeAttr("title"),this.score.removeAttr("readonly","readonly");for(var e=0;e<this.opt.number;e++)this.stars.eq(e).attr("title",o._getHint.call(this,e+1));this.cancel&&this.cancel.css("display","")},cancel:function(e){return this.each(function(){!0!==s(this).data("readonly")&&(o[e?"click":"score"].call(this,null),this.score.removeAttr("value"))})},click:function(e){return s(this).each(function(){!0!==s(this).data("readonly")&&(o._apply.call(this,e),this.opt.click||o._error.call(this,'You must add the "click: function(score, evt) { }" callback.'),this.opt.click.call(this,e,{type:"click"}),o._target.call(this,e))})},destroy:function(){return s(this).each(function(){var e=s(this),t=e.data("raw");t?e.off(".raty").empty().css({cursor:t.style.cursor,width:t.style.width}).removeData("readonly"):e.data("raw",e.clone()[0])})},getScore:function(){var e,t=[];return s(this).each(function(){e=this.score.val(),t.push(e?parseFloat(e):void 0)}),1<t.length?t:t[0]},readOnly:function(t){return this.each(function(){var e=s(this);e.data("readonly")!==t&&(t?(e.off(".raty").children("i").off(".raty"),o._lock.call(this)):(o._binds.call(this),o._unlock.call(this)),e.data("readonly",t))})},reload:function(){return o.set.call(this,{})},score:function(){return arguments.length?o.setScore.apply(this,arguments):o.getScore.call(this)},set:function(i){return this.each(function(){var e=s(this),t=e.data("settings"),a=s.extend({},t,i);e.raty(a)})},setScore:function(e){return s(this).each(function(){!0!==s(this).data("readonly")&&(o._apply.call(this,e),o._target.call(this,e))})}};s.fn.raty=function(e){return o[e]?o[e].apply(this,Array.prototype.slice.call(arguments,1
1)):"object"!=typeof e&&e?void s.error("Method "+e+" does not exist!"):o.init.apply(this,arguments)},s.fn.raty.defaults={cancel:!1,cancelHint:"Cancel this rating!",cancelOff:"bwg-icon-minus-square-o",cancelOn:"bwg-icon-minus-square",cancelPlace:"left",click:void 0,half:!1,halfShow:!0,hints:["bad","poor","regular","good","gorgeous"],iconRange:void 0,mouseout:void 0,mouseover:void 0,noRatedMsg:"Not rated yet!",alreadyRatedMsg:"Not rated yet!",number:5,numberMax:20,path:"",precision:!1,readOnly:!1,round:{down:.25,full:.6,up:.76},score:void 0,scoreName:"score",single:!1,size:16,space:!0,starHalf:"bwg-icon-star-half-o",starOff:"bwg-icon-star-o",starOn:"bwg-icon-star",target:void 0,targetFormat:"{score}",targetKeep:!1,targetText:"",targetType:"hint",width:void 0}}(jQuery),function(y){y.fn.featureCarousel=function(w){if(1<this.length)return this.each(function(){y(this).featureCarousel(w)}),this;w=y.extend({},y.fn.featureCarousel.defaults,w||{});var d={containerWidth:0,containerHeight:0,largeFeatureWidth:0,largeFeatureHeight:0,smallFeatureHeight:0,smallFeatureWidth:0,totalFeatureCount:y(this).children("div").length,featuresContainer:y(this),featuresArray:[],containerIDTag:"#"+y(this).attr("id"),timeoutVar:null,rotationsRemaining:0,itemsToAnimate:0,borderWidth:0,autoTime:0},s=function(e){return d.featuresArray[e-1]},h=function(e){return e-1==0?d.totalFeatureCount:e-1},c=function(e){return e+1>d.totalFeatureCount?1:e+1},m=function(e){if(!e&&0!=w.autoPlay&&!d.timeoutVar){var t=Math.abs(w.autoPlay)<w.carouselSpeed?w.carouselSpeed:Math.abs(w.autoPlay);d.timeoutVar=setInterval(function(){0<w.autoPlay?a(!0,1):a(!1,1)},t)}e&&(clearInterval(d.timeoutVar),d.timeoutVar=null)},o=function(a,i){var e,t,r,_,s,o,n,l;bwg_params_carousel[w.bwg_number].data[a.attr("image_key")].is_embed_video&&jQuery(".bwg_carousel-feature"+w.bwg_number).find("iframe").each(function(){jQuery(this)[0].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"),jQuery(this)[0].contentWindow.postMessage('{ "method": "pause" }',"*"),jQuery(this)[0].contentWindow.postMessage("pause","*")}),bwg_params_carousel[w.bwg_number].data[a.attr("image_key")].is_embed_instagram_post&&jQuery("#bwg_carousel_play_pause_"+w.bwg_number).hide(),a.find(".bwg_video_hide"+w.bwg_number).each(function(){jQuery(this).css({display:""})}),a.find(".bwg_carousel_image_container_"+w.bwg_number).each(function(){jQuery(this).hide()}),a.find(".bwg_carousel_watermark_"+w.bwg_number).each(function(){jQuery(this).hide()});var g,u=a.data("position");if(g=1==i?h(u):c(u),1==u&&w.leavingCenter(a),1==g){var b=bwg_params_carousel[w.bwg_number].data[a.attr("image_key")].alt;""!==(b=b.replace(/^\s+/,"").replace(/\s+$/,""))&&w.enable_image_title?jQuery(".bwg_carousel_title_text_"+w.bwg_number).css({display:""}):jQuery(".bwg_carousel_title_text_"+w.bwg_number).css({display:"none"}),e=d.largeFeatureWidth,t=d.largeFeatureHeight,r=w.containerHeight/2-t/2,s=a.css("z-index"),_=w.containerWidth/2-d.largeFeatureWidth/2-d.borderWidth/2,o=1,n=100,bwg_params_carousel[w.bwg_number].data[a.attr("image_key")].is_embed_video?(jQuery(".bwg_carousel_play_pause_"+w.bwg_number).css({display:"none"}),jQuery(".bwg_carousel_image_container_"+w.bwg_number).css({display:""}),jQuery(".bwg_carousel_watermark_container_"+w.bwg_number).css({display:""}),jQuery(".bwg_carousel_watermark_spun_"+w.bwg_number).css({display:""}),jQuery(".bwg_carousel_watermark_"+w.bwg_number).css({display:""}),a.find(".bwg_video_hide"+w.bwg_number).each(function(){jQuery(this).hide()})):(a.find(".bwg_video_hide"+w.bwg_number).each(function(){jQuery(this).hide()}),jQuery(".bwg_carousel_play_pause_"+w.bwg_number).css({display:""}),a.find(".bwg_carousel_image_container_"+w.bwg_number).each(function(){jQuery(this).css({display:""})}),a.find(".bwg_carousel_watermark_"+w.bwg_number).each(function(){jQuery(this).css({display:""})})),l="grayscale(0%)",bwg_params_carousel[w.bwg_number].data[a.attr("image_key")].is_embed_instagram_post&&(a.find(".bwg_embed_frame_"+w.bwg_number).css("min-height",""),a.find(".bwg_embed_frame_"+w.bwg_number).css("min-width","")),bwg_params_carousel[w.bwg_number].data[a.attr("image_key")].is_embed_video&&a.find(".bwg_embed_frame_"+w.bwg_number).css("display","inline-block"),a.find(".bwg_carousel_image_container_"+w.bwg_number).next().each(function(){jQuery("#"+jQuery(this).attr("id")).css({"pointer-events":""})})}else g<=d.totalFeatureCount&&g>d.totalFeatureCount-w.imagecount/2+1?(e=d.largeFeatureWidth*Math.pow(w.smallFeaturePar,d.totalFeatureCount-g+1),t=d.largeFeatureHeight*Math.pow(w.smallFeaturePar,d.totalFeatureCount-g+1),r=w.containerHeight/2-t/2,o=1,l="grayscale(0%)",n=100,e=d.largeFeatureWidth*Math.pow(w.smallFeaturePar,d.totalFeatureCount-g+1),t=d.largeFeatureHeight*Math.pow(w.smallFeaturePar,d.totalFeatureCount-g+1),r=w.containerHeight/2-t/2,bwg_params_carousel[w.bwg_number].data[a.attr("image_key")].is_embed_instagram_post&&(a.find(".bwg_embed_frame_"+w.bwg_number).css("min-height","100%"),a.find(".bwg_embed_frame_"+w.bwg_number).css("min-width","100%")),_=0==w.fit_containerWidth&&w.smallFeaturePar<1?w.containerWidth/2-d.largeFeatureWidth/2-d.largeFeatureWidth*(1-w.smallFeaturePar)*w.smallFeaturePar*(d.totalFeatureCount-g+1):0==w.fit_containerWidth&&1==w.smallFeaturePar?w.containerWidth/2-d.largeFeatureWidth/2-d.largeFeatureWidth*w.smallFeaturePar*w.smallFeaturePar*(d.totalFeatureCount-g+1):(new_left1=(w.containerWidth/2-d.largeFeatureWidth/2)/(w.imagecount/2-.5),w.containerWidth/2-d.largeFeatureWidth/2-d.borderWidth/2-new_left1*(d.totalFeatureCount-g+1)),a.find(".bwg_carousel_image_container_"+w.bwg_number).next().each(function(){jQuery("#"+jQuery(this).attr("id")).css({"pointer-events":"none"})})):2<=g&&g<=w.imagecount/2+1?(e=d.largeFeatureWidth*Math.pow(w.smallFeaturePar,g-1),t=d.largeFeatureHeight*Math.pow(w.smallFeaturePar,g-1),r=w.containerHeight/2-t/2,o=1,l="grayscale(0%)",n=100,bwg_params_carousel[w.bwg_number].data[a.attr("image_key")].is_embed_instagram_post&&(a.find(".bwg_embed_frame_"+w.bwg_number).css("min-height","100%"),a.find(".bwg_embed_frame_"+w.bwg_number).css("min-width","100%")),_=0==w.fit_containerWidth&&w.smallFeaturePar<1?w.containerWidth/2+d.largeFeatureWidth/2+d.largeFeatureWidth*w.smallFeaturePar*(1-w.smallFeaturePar)*(g-1)-e:0==w.fit_containerWidth&&1==w.smallFeaturePar?w.containerWidth/2+d.largeFeatureWidth/2+d.largeFeatureWidth*w.smallFeaturePar*w.smallFeaturePar*(g-1)-e:(new_left1=(w.containerWidth/2-d.largeFeatureWidth/2)/(w.imagecount/2-.5),w.containerWidth/2+d.largeFeatureWidth/2-e+new_left1*(g-1)),a.find(".bwg_carousel_image_container_"+w.bwg_number).next().each(function(){jQuery("#"+jQuery(this).attr("id")).css({"pointer-events":"none"})})):(_=w.containerWidth/2-d.largeFeatureWidth*w.smallFeaturePar/2-d.borderWidth/2,n=o=0);1==u&&a.find(".bwg_carousel-caption"+w.bwg_number).hide(),a.find("div[class^='bwg_carousel-image']").css({filter:l,"-webkit-filter":l}),a.animate({width:e,height:t,top:r,left:_,opacity:o,filter:n},w.carouselSpeed,w.animationEasing,function(){if(1==g&&(w.captionBelow&&a.css("height","auto"),a.find(".bwg_carousel-caption"+w.bwg_number).fadeTo("fast",.85),a.find(".bwg_carousel_title_text_"+w.bwg_number).removeClass("hidden"),w.movedToCenter(a)),d.rotationsRemaining=d.rotationsRemaining-1,a.css("z-index",s),(w.trackerIndividual||w.trackerSummation)&&1==g){var e=d.featuresContainer.find(".bwg_carousel-feature"+w.bwg_number).index(a)+1;(function(e,t){w.trackerIndividual&&((a=d.featuresContainer.find(".tracker-individual-container")).find("#tracker-"+e),a.find("#tracker-"+t));var a;w.trackerSummation&&(a=d.featuresContainer.find(".tracker-summation-container")).find(".tracker-summation-current").text(t)})(0==i?c(e):h(e),e)}var t;d.rotationsRemaining/d.itemsToAnimate%1==0&&(bwg_params_carousel[w.bwg_number].bwg_currentlyMoving=!1,t=i,y.each(d.featuresArray,function(){var e;e=0==t?c(y(this).data().position):h(y(this).data().position),y(this).data("position",e)}),0<d.rotationsRemaining&&p(i)),m(!1)}).end()},p=function(e){var t,a,i,r;if(bwg_params_carousel[w.bwg_number].bwg_currentlyMoving=!0,1==e){t=s(c(bwg_params_carousel[w.bwg_number].bwg_currentCenterNum)),a=[],r=bwg_params_carousel[w.bwg_number].bwg_currentCenterNum;for(var _=1;_<=w.imagecount/2+1;++_)a.push(s(r)),r=h(r);i=[],r=c(bwg_params_carousel[w.bwg_number].bwg_currentCenterNum);for(_=1;_<=w.imagecount/2+1;++_)r=c(r),i.push(s(r));bwg_params_carousel[w.bwg_number].bwg_currentCenterNum=c(bwg_params_carousel[w.bwg_number].bwg_currentCenterNum)}else{t=s(h(bwg_params_carousel[w.bwg_number].bwg_currentCenterNum)),a=[],r=h(bwg_params_carousel[w.bwg_number].bwg_currentCenterNum);for(_=1;_<=w.imagecount/2+1;++_)r=h(r),a.push(s(r));i=[],r=bwg_params_carousel[w.bwg_number].bwg_currentCenterNum;for(_=1;_<=w.imagecount/2+1;++_)i.push(s(r)),r=c(r);bwg_params_carousel[w.bwg_number].bwg_currentCenterNum=h(bwg_params_carousel[w.bwg_number].bwg_currentCenterNum)}for(_=0;_<a.length;_++)e?a[_].css("z-index",a.length-_+3):a.length-2>_&&a[_].css("z-index",a.length-_+3),o(a[_],e,onload);for(t.css("z-index",Math.max(a.length,i.length)+4),o(t,e,onload),_=0;_<i.length;_++)e?a.length-2>_&&i[_].css("z-index",i.length-_+3):i[_].css("z-index",i.length-_+3),o(i[_],e,onload)},a=function(e,t){if(0==bwg_params_carousel[w.bwg_number].bwg_currentlyMoving){var a=t*d.itemsToAnimate;d.rotationsRemaining=a,bwg_carousel_watermark(w.bwg_number),bwg_carousel_preload(w.bwg_number,!0),p(e)}};return y(w.leftButtonTag).on("click",function(){a(!1,1)}),y(w.rightButtonTag).on("click",function(){a(!0,1)}),y("a",d.containerIDTag).on("click",function(t){y(this).parentsUntil(d.containerIDTag).each(function(){var e=y(this).data("position");if(null!=e){if(1!=e)return e==d.totalFeatureCount?a(!1,1):2==e&&a(!0,1),t.preventDefault(),!1;w.clickedCenter(y(this))}})}),this.initialize=function(){return function(i){if(1==w.preload){var e=d.featuresContainer.find("img"),r=0,_=e.length;e.each(function(e,t){var a=new Image;y(a).bind("load error",function(){++r==_&&i()}),a.src=t.src})}else i()}(function(){!function(){w.containerWidth=d.featuresContainer.parent().width(),w.containerHeight=d.featuresContainer.parent().height();var e=y(d.containerIDTag).find(".bwg_carousel-image"+w.bwg_number+":first");1<w.largeFeatureWidth?d.largeFeatureWidth=w.largeFeatureWidth:0<w.largeFeatureWidth&&w.largeFeatureWidth<1?d.largeFeatureWidth=e.width()*w.largeFeatureWidth:d.largeFeatureWidth=e.outerWidth(),1<w.largeFeatureHeight?d.largeFeatureHeight=w.largeFeatureHeight:0<w.largeFeatureHeight&&w.largeFeatureHeight<1?d.largeFeatureHeight=e.height()*w.largeFeatureHeight:d.largeFeatureHeight=e.outerHeight(),1<w.smallFeatureWidth?d.smallFeatureWidth=w.smallFeatureWidth:0<w.smallFeatureWidth&&w.smallFeatureWidth<1?d.smallFeatureWidth=e.width()*w.smallFeatureWidth:d.smallFeatureWidth=e.outerWidth()/2}(),0<w.displayCutoff&&w.displayCutoff<d.totalFeatureCount&&(d.totalFeatureCount=w.displayCutoff),d.featuresContainer.find(".bwg_carousel-feature"+w.bwg_number).each(function(e){e<d.totalFeatureCount&&(d.featuresArray[e]=y(this))}),"medium"!=d.featuresContainer.find(".bwg_carousel-feature"+w.bwg_number).first().css("borderLeftWidth")&&(
1d.borderWidth=parseInt(d.featuresContainer.find(".bwg_carousel-feature"+w.bwg_number).first().css("borderLeftWidth"))),1!=w.imagecount?d.featuresContainer.find(".bwg_carousel-feature"+w.bwg_number).each(function(){y(this).css({left:w.containerWidth/2-w.largeFeatureWidth*w.smallFeaturePar/2-d.borderWidth/2+w.largeFeatureWidth/2,width:w.largeFeatureWidth*w.smallFeaturePar/100,height:w.largeFeatureHeight*w.smallFeaturePar/100,top:w.smallFeatureOffset+w.topPadding+w.largeFeatureHeight/2,opacity:0})}):d.featuresContainer.find(".bwg_carousel-feature"+w.bwg_number).each(function(){y(this).css({left:0,width:w.largeFeatureWidth*w.smallFeaturePar,height:w.largeFeatureHeight*w.smallFeaturePar,top:0,opacity:0})}),w.captionBelow&&d.featuresContainer.find(".bwg_carousel-caption"+w.bwg_number).css("position","absolute"),d.totalFeatureCount<w.imagecount?d.itemsToAnimate=d.totalFeatureCount:d.itemsToAnimate=parseInt(w.imagecount)+2,d.featuresContainer.find(".bwg_carousel-caption"+w.bwg_number).hide(),0==bwg_params_carousel[w.bwg_number].bwg_currentlyMoving&&(!function(){y.each(d.featuresArray,function(e){y(this).data("setPosition",e+1)});var e=h(w.startingFeature);bwg_params_carousel[w.bwg_number].bwg_currentCenterNum=e;var t=s(e);t.data("position",1),t.prevAll().each(function(e){y(this).data("position",d.totalFeatureCount-e)}),t.nextAll().each(function(e){null!=y(this).data("setPosition")&&y(this).data("position",e+2)}),"caption"==w.counterStyle&&y.each(d.featuresArray,function(){var e=h(y(this).data("position")),t=y("<span></span>");t.addClass("numberTag"),t.html("("+e+" of "+d.totalFeatureCount+") "),y(this).find(".bwg_carousel-caption"+w.bwg_number).prepend(t)})}(),a(!0,1))}),this},this.shift=function(e){var t=y(e).data("position");1!=t&&(t>d.totalFeatureCount/2+1?(a(!1,d.totalFeatureCount-t+1),w.carouselSpeed=400,w.animationEasing,bwg_carousel_preload(w.bwg_number,!1)):(a(!0,t-1),w.carouselSpeed=400,w.animationEasing,bwg_carousel_preload(w.bwg_number,!0)))},this.next=function(){bwg_carousel_preload(w.bwg_number,!1),a(!0,1)},this.prev=function(){bwg_carousel_preload(w.bwg_number,!0),a(!1,1)},this.pause=function(){w.autoPlay=0,m(!0)},this.start=function(){w.autoPlay=w.interval,m(!1)},this.initialize()},y.fn.featureCarousel.defaults={largeFeatureWidth:0,largeFeatureHeight:0,smallFeatureWidth:.5,smallFeatureHeight:.5,containerWidth:0,containerHeight:0,fit_containerWidth:0,bwg_number:0,topPadding:20,sidePadding:50,smallFeatureOffset:50,smallFeaturePar:0,startingFeature:1,carouselSpeed:300,autoPlay:4e3,imagecount:7,enable_image_title:0,pauseOnHover:!0,stopOnHover:!1,trackerIndividual:!0,trackerSummation:!0,preload:!1,displayCutoff:0,animationEasing:"swing",leftButtonTag:"#bwg_carousel-left",rightButtonTag:"#bwg_carousel-right",captionBelow:!1,movedToCenter:y.noop,leavingCenter:y.noop,clickedCenter:y.noop}}(jQuery);var DisplayObject3D=function(){return this};DisplayObject3D.prototype._x=0,DisplayObject3D.prototype._y=0,DisplayObject3D.prototype.make3DPoint=function(e,t,a){var i={};return i.x=e,i.y=t,i.z=a,i},DisplayObject3D.prototype.make2DPoint=function(e,t,a,i){var r={};return r.x=e,r.y=t,r.depth=a,r.scaleFactor=i,r},DisplayObject3D.prototype.container=void 0,DisplayObject3D.prototype.pointsArray=[],DisplayObject3D.prototype.init=function(e){if(this.container=e,this.containerId=this.container.attr("id"),0===e.has("ul").length)for(i=0;i<this.pointsArray.length;i++)this.container.append('<b id="tags_cloud_item'+i+'">+</b>')};var Camera3D=function(){};Camera3D.prototype.x=0,Camera3D.prototype.y=0,Camera3D.prototype.z=500,Camera3D.prototype.focalLength=1e3,Camera3D.prototype.scaleRatio=function(e){return this.focalLength/(this.focalLength+e.z-this.z)},Camera3D.prototype.init=function(e,t,a,i){this.x=e,this.y=t,this.z=a,this.focalLength=i};var Object3D=function(e){this.container=e};Object3D.prototype.objects=[],Object3D.prototype.addChild=function(e){return this.objects.push(e),e.init(this.container),e};var Scene3D=function(){};Scene3D.prototype.sceneItems=[],Scene3D.prototype.addToScene=function(e){this.sceneItems.push(e)},Scene3D.prototype.Transform3DPointsTo2DPoints=function(e,t,a){for(var i,r,_,s,o,n,l,g,u,b=[],w=Math.sin(t.x),d=Math.cos(t.x),h=Math.sin(t.y),c=Math.cos(t.y),m=Math.sin(t.z),p=Math.cos(t.z),y=e.length;y--;){i=e[y].x,l=c*(o=w*(r=e[y].y)+d*(_=e[y].z))-h*i,g=m*(n=h*o+c*i)+p*(s=d*r-w*_),i=(p*n-m*s)*(u=a.focalLength/(a.focalLength+l)),r=g*u,_=l;var f=new DisplayObject3D;b[y]=f.make2DPoint(i,r,-_,u)}return b},Scene3D.prototype.renderCamera=function(e){for(var t=0;t<this.sceneItems.length;t++){var a=this.sceneItems[t].objects[0],i=this.Transform3DPointsTo2DPoints(a.pointsArray,axisRotation,e),r=0<document.getElementById(a.containerId).getElementsByTagName("ul").length;for(k=0;k<a.pointsArray.length;k++){var _=null;(_=r?document.getElementById(a.containerId).getElementsByTagName("ul")[0].getElementsByTagName("li")[k]:document.getElementById(a.containerId).getElementsByTagName("*")[k])&&(_._x=i[k].x,_._y=i[k].y,_.scale=i[k].scaleFactor,_.style.position="absolute",_.style.top=_._y+.4*jQuery("#"+a.containerId).height()+"px",_.style.left=_._x+.4*jQuery("#"+a.containerId).width()+"px",_.style.fontSize=100*_.scale+"%",jQuery(_).css({opacity:_.scale-.5}),curChild=jQuery(_).find("#imgg"),curChild&&(jQuery(_).css("zIndex",Math.round(100*_.scale)),curChild.css({maxWidth:50*_.scale}),curChild.css({maxHeight:50*_.scale})))}}};var axisRotation=(new DisplayObject3D).make3DPoint(0,0,0),Sphere=function(e,t,a){for(var i=t;0<i;i--)for(var r=a/t;0<r;r--){var _=r*Math.PI/(a/t+1),s=i*Math.PI*2/t,o=Math.sin(s)*Math.sin(_)*e,n=Math.cos(s)*Math.sin(_)*e,l=Math.cos(_)*e;this.pointsArray.push(this.make3DPoint(o,n,l))}};Sphere.prototype=new DisplayObject3D;var bwg=0,isMobile=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()),bwg_click=isMobile?"touchend":"click",bwg_params=[],bwg_params_ib=[],bwg_params_carousel=[];function bwg_main_ready(e){var t=e.data("bwg");1==bwg_objectsL10n.lazy_load&&jQuery(function(){jQuery("img.bwg_lazyload").lazy({onFinishedAll:function(){jQuery(".lazy_loader").removeClass("lazy_loader")}})}),0<e.find(".wd_error").length&&bwg_container_loaded(t);var a=e.find(".bwg-container");if("album"===e.data("is-album"))var i="thumbnails";else i=e.data("gallery-type");switch(bwg_document_ready(e),i){case"thumbnails":case"thumbnails_masonry":case"album_compact_preview":case"album_masonry_preview":case"album_extended_preview":bwg_all_thumnails_loaded(a);break;case"thumbnails_mosaic":bwg_thumbnail_mosaic(a);break;case"slideshow":bwg_slideshow_ready(t);break;case"carousel":bwg_carousel_ready(t),bwg_carousel_onload(e);break;case"image_browser":bwg_image_browser_ready(e);break;case"blog_style":bwg_blog_style_ready(e)}}function bwg_resize_search_line(){jQuery(".search_line").each(function(){var e=jQuery(this);e.width()<410?e.addClass("bwg-search-line-responsive"):e.removeClass("bwg-search-line-responsive")})}function bwg_tags_button_section_visibility(){jQuery('div[id^="bwg_container1_"]').each(function(){var e=jQuery(this),t=e.find(".current_view").val(),a=e.find(".show_bottom_tag").val(),i=e.find(".bwg_tags_container_"+t+" .bwg_tag_button_view_container");
1if(i.length)var r=i[0].scrollHeight;var _=i.find(".bwg_tags_filter_buttons").outerHeight(!0),s=parseInt(2*i.find(".bwg_tags_filter_buttons").outerHeight(!0)+3);s<r?(i.css({"min-height":_,"max-height":s,overflow:"hidden"}),i.next(".bwg_tag_button_see_all").show()):(i.css({"min-height":"auto","max-height":"100%",height:"auto",overflow:"visible"}),i.next(".bwg_tag_button_see_all").hide());var o=i.next().find(".see_all_tags").width()/2;i.next().find(".see_all_tags").attr("style","margin-left: -"+o+"px"),i.next().find(".see_all_tags").off("click").on("click",function(){jQuery(this).hasClass("show")?(jQuery(this).removeClass("show").addClass("hide").html("<span>&#8722;</span>"+bwg_objectsL10n.bwg_tag_see_less),i.css({"min-height":"auto","max-height":"100%",height:"auto",overflow:"visible"})):jQuery(this).hasClass("hide")&&(jQuery(this).removeClass("hide").addClass("show").html("<span>&#43;</span>"+bwg_objectsL10n.bwg_tag_see_all),i.css({"min-height":_,"max-height":s,overflow:"hidden"}))}),1==a&&(jQuery(this).find(".see_all_tags").removeClass("show").addClass("hide").html("<span>&#8722;</span>"+bwg_objectsL10n.bwg_tag_see_less),i.css({"min-height":"auto","max-height":"100%",height:"auto",overflow:"visible"}))})}function bwg_slideshow_resize(){jQuery(".bwg_slideshow").each(function(){bwg=jQuery(this).attr("data-bwg"),jQuery("#bwg_slideshow_image_container_"+bwg).length&&(bwg_params[bwg]=JSON.parse(jQuery("#bwg_slideshow_image_container_"+bwg).attr("data-params")),bwg_params[bwg].event_stack=[],bwg_popup_resize(bwg))})}function bwg_blog_style_resize(){jQuery(".bwg_blog_style").each(function(){bwg=jQuery(this).attr("data-bwg"),jQuery(".bwg_embed_frame_16x9_"+bwg).each(function(e){jQuery(this).width(jQuery(this).parent().width()),jQuery(this).height(.5625*jQuery(this).width())}),jQuery(".bwg_embed_frame_instapost_"+bwg).each(function(e){jQuery(this).width(jQuery(this).parent().width()),jQuery(this).height((jQuery(this).width()-16)*jQuery(this).attr("data-height")/jQuery(this).attr("data-width")+96)})})}function bwg_blog_style_onload(){jQuery(".bwg_blog_style").each(function(){bwg=jQuery(this).attr("data-bwg");jQuery("#bwg_blog_style_"+bwg);jQuery(".bwg_embed_frame_16x9_"+bwg).each(function(e){if(jQuery(".bwg_blog_style_image_"+bwg).find(".fluid-width-video-wrapper").length){jQuery(".fluid-width-video-wrapper").removeAttr("style");var t=jQuery(this).parents(".bwg_blog_style_image_"+bwg).find(".fluid-width-video-wrapper").contents();jQuery(this).parents(".fluid-width-video-wrapper").replaceWith(t)}jQuery(this).width(jQuery(this).parents(".bwg_blog_style_image_"+bwg).width()),jQuery(this).height(.5625*jQuery(this).width())}),jQuery(".bwg_embed_frame_instapost_"+bwg).each(function(e){jQuery(this).width(jQuery(this).parents(".bwg_blog_style_image_"+bwg).width()),jQuery(this).height((jQuery(this).width()-16)*jQuery(this).attr("data-height")/jQuery(this).attr("data-width")+96)}),bwg_container_loaded(bwg)})}function bwg_blog_style_ready(t){var e=t.data("bwg");bwg_container_loaded(e);var a=!1;t.find(".bwg_lightbox_"+e).on("click",function(){var e=jQuery(this).attr("data-image-id");if(jQuery("#bwg_blog_style_share_buttons_"+e).removeAttr("data-open-comment"),!a)return a=!0,setTimeout(function(){a=!1},100),bwg_gallery_box(e,t.closest(".bwg_container")),!1}),jQuery(".bwg_lightbox_"+e+" .bwg_ecommerce").on("click",function(e){if(e.stopPropagation(),!a)return a=!0,setTimeout(function(){a=!1},100),bwg_gallery_box(t.attr("data-image-id"),t.closest(".bwg_container"),!0),!1});var i=window.location.hash.substring(1);i&&"-1"!=i.indexOf("bwg")&&(bwg_hash_array=i.replace("bwg","").split("/"),"<?php echo $params_array['gallery_id']; ?>"==bwg_hash_array[0]&&bwg_gallery_box(bwg_hash_array[1]))}function bwg_slideshow_focus(){jQuery(".bwg_slideshow").each(function(){bwg=jQuery(this).attr("data-bwg"),jQuery(".bwg_slideshow[data-bwg="+bwg+"]")[0].offsetHeight&&jQuery("#bwg_slideshow_image_container_"+bwg).length&&(bwg_params[bwg]=JSON.parse(jQuery("#bwg_slideshow_image_container_"+bwg).attr("data-params")),bwg_params[bwg].event_stack=[],window.clearInterval(window["b
1wg_playInterval"+bwg]),jQuery(".bwg_ctrl_btn_"+bwg).hasClass("bwg-icon-play")||bwg_play(bwg_params[bwg].data,bwg))})}function bwg_carousel_focus(){jQuery(".bwg_carousel").each(function(){bwg=jQuery(this).attr("data-bwg"),jQuery(".bwg_carousel[data-bwg="+bwg+"]")[0].offsetHeight&&jQuery(".bwg_carousel_image_container_"+bwg).length&&jQuery(".bwg_ctrl_btn_"+bwg).hasClass("bwg-icon-pause")&&bwg_params_carousel[bwg].carousel.start()})}function bwg_slideshow_blur(e){jQuery(".bwg_slideshow").each(function(){bwg=jQuery(this).attr("data-bwg"),!e&&jQuery(".bwg_slideshow[data-bwg="+bwg+"]")[0].offsetHeight||jQuery("#bwg_slideshow_image_container_"+bwg).length&&(bwg_params[bwg]=JSON.parse(jQuery("#bwg_slideshow_image_container_"+bwg).attr("data-params")),bwg_params[bwg].event_stack=[],window.clearInterval(window["bwg_playInterval"+bwg]))})}function bwg_carousel_blur(e){jQuery(".bwg_carousel").each(function(){bwg=jQuery(this).attr("data-bwg"),!e&&jQuery(".bwg_carousel[data-bwg="+bwg+"]")[0].offsetHeight||jQuery(".bwg_carousel_image_container_"+bwg).length&&bwg_params_carousel[bwg].carousel.pause()})}function bwg_carousel_ready(t){bwg_params_carousel[t]=[],bwg_params_carousel[t].bwg_currentCenterNum=1,bwg_params_carousel[t].bwg_currentlyMoving=!1,bwg_params_carousel[t].data=[],jQuery("#spider_carousel_left-ico_"+t).on("click",function(e){bwg_params_carousel[t].carousel.prev(),e.stopPropagation(),e.stopImmediatePropagation()}),jQuery("#spider_carousel_right-ico_"+t).on("click",function(e){bwg_params_carousel[t].carousel.next(),e.stopPropagation(),e.stopImmediatePropagation()}),parseInt(bwg_params_carousel[t].carousel_enable_autoplay)&&(jQuery(".bwg_carousel_play_pause_"+t).attr("title",bwg_objectsL10n.pause),jQuery(".bwg_carousel_play_pause_"+t).attr("class","bwg-icon-pause bwg_ctrl_btn_"+t+" bwg_carousel_play_pause_"+t)),jQuery(".bwg_carousel_play_pause_"+t).on(bwg_click,function(e){jQuery(".bwg_ctrl_btn_"+t).hasClass("bwg-icon-play")?(jQuery(".bwg_carousel_play_pause_"+t).attr("title",bwg_objectsL10n.pause),jQuery(".bwg_carousel_play_pause_"+t).attr("class","bwg-icon-pause bwg_ctrl_btn_"+t+" bwg_carousel_play_pause_"+t),bwg_params_carousel[t].carousel.start()):(jQuery(".bwg_carousel_play_pause_"+t).attr("title",bwg_objectsL10n.play),jQuery(".bwg_carousel_play_pause_"+t).attr("class","bwg-icon-play bwg_ctrl_btn_"+t+" bwg_carousel_play_pause_"+t),bwg_params_carousel[t].carousel.pause()),e.stopPropagation(),e.stopImmediatePropagation()}),void 0!==jQuery().swiperight&&jQuery.isFunction(jQuery().swiperight)&&jQuery("#bwg_container1_"+t).swiperight(function(){bwg_params_carousel[t].carousel.prev()}),void 0!==jQuery().swipeleft&&jQuery.isFunction(jQuery().swipeleft)&&jQuery("#bwg_container1_"+t).swipeleft(function(){bwg_params_carousel[t].carousel.next()})}function bwg_carousel_resize(){jQuery(".bwg-carousel").each(function(){var e=jQuery(this).data("bwg");bwg_carousel_params(e,!0),bwg_params_carousel[e].carousel.pause(),bwg_carousel_watermark(e),jQuery(".bwg_ctrl_btn_"+e).hasClass("bwg-icon-play")||bwg_params_carousel[e].carousel.start()})}function bwg_carousel_onload(e){var t=e.data("bwg"),a=e.find(".bwg_carousel-container"+t);a.length&&(bwg_params_carousel[t]=a.data("params"),bwg_params_carousel[t].parent_width=0,bwg_carousel_watermark(t),bwg_carousel_params(t,!1),bwg_container_loaded(t))}function bwg_carousel_params(t,e){var a=jQuery("#bwg_container1_"+t).parent();a.hasClass("elementor-tab-content")&&a.width(a.closest(".elementor-widget-wrap").width());var i=a.width(),r=1;i<bwg_params_carousel[t].carousel_r_width?r=i/bwg_params_carousel[t].carousel_r_width:i=bwg_params_carousel[t].carousel_r_width,bwg_params_carousel[t].parent_width!=i&&(bwg_params_carousel[t].parent_width=i,bwg_params_carousel[t].carousel_image_column_number>bwg_params_carousel[t].count&&(bwg_params_carousel[t].carousel_image_column_number=bwg_params_carousel[t].count),jQuery(".bwg_carousel_play_pause_"+t).css({display:parseInt(bwg_params_carousel[t].carousel_play_pause_butt)?"":"none"}),parseInt(bwg_params_carousel[t].carousel_prev_next_butt)?(jQuery("#bwg_carousel-right"+t).css({display:""}),jQuery("#bwg_carousel-left"+t).css({display:""})):(jQuery("#bwg_carousel-left"+t).css({display:"none"}),jQuery("#bwg_carousel-right"+t).css({display:"none"})),jQuery(".inner_instagram_iframe_bwg_embed_frame_"+t).each(function(){var e=jQuery(this).parent();
1bwg_params_carousel[t].image_height/(parseInt(e.attr("data-height"))+96)<bwg_params_carousel[t].image_width/parseInt(e.attr("data-width"))?(e.height(bwg_params_carousel[t].image_height*r),e.width((e.height()-96)*e.attr("data-width")/e.attr("data-height")+16)):(e.width(bwg_params_carousel[t].image_width*r),e.height((e.width()-16)*e.attr("data-height")/e.attr("data-width")+96))}),jQuery(".bwg_carousel_image_container_"+t).css({width:bwg_params_carousel[t].image_width*r,height:bwg_params_carousel[t].image_height*r}),jQuery(".bwg_carousel_watermark_text_"+t+", .bwg_carousel_watermark_text_"+t+":hover").css({fontSize:i*(bwg_params_carousel[t].watermark_font_size/bwg_params_carousel[t].image_width)*r}),jQuery(".bwg_carousel-image "+t).css({width:bwg_params_carousel[t].image_width*r,height:bwg_params_carousel[t].image_height*r}),jQuery(".bwg_carousel_watermark_container_"+t).css({width:bwg_params_carousel[t].image_width*r,height:bwg_params_carousel[t].image_height*r}),jQuery(".bwg_carousel_embed_video_"+t).css({width:bwg_params_carousel[t].image_width*r,height:bwg_params_carousel[t].image_height*r}),jQuery(".bwg_carousel_watermark_spun_"+t).css({width:bwg_params_carousel[t].image_width*r,height:bwg_params_carousel[t].image_height*r}),jQuery(".bwg_carousel-container"+t).css({width:i,height:bwg_params_carousel[t].image_height*r}),jQuery(".bwg_video_hide"+t).css({width:bwg_params_carousel[t].image_width*r,height:bwg_params_carousel[t].image_height*r}),bwg_params_carousel[t].carousel&&!e||(e&&bwg_params_carousel[t].carousel&&bwg_params_carousel[t].carousel.pause(),bwg_params_carousel[t].carousel=jQuery("#bwg_carousel"+t).featureCarousel({containerWidth:i*r,containerHeight:bwg_params_carousel[t].image_height*r,fit_containerWidth:bwg_params_carousel[t].carousel_fit_containerWidth,largeFeatureWidth:bwg_params_carousel[t].image_width*r,largeFeatureHeight:bwg_params_carousel[t].image_height*r,smallFeaturePar:bwg_params_carousel[t].carousel_image_par,currentlyMoving:!1,startingFeature:bwg_params_carousel[t].bwg_currentCenterNum,featuresArray:[],timeoutVar:null,rotationsRemaining:0,autoPlay:1e3*bwg_params_carousel[t].car_inter,interval:1e3*bwg_params_carousel[t].carousel_interval,imagecount:bwg_params_carousel[t].carousel_image_column_number,bwg_number:t,enable_image_title:bwg_params_carousel[t].enable_image_title,borderWidth:0})))}function bwg_carousel_watermark(e){var t=1,a=jQuery("#bwg_container1_"+e).parent().width();if(a<bwg_params_carousel[e].carousel_r_width&&(t=a/bwg_params_carousel[e].carousel_r_width),a>=bwg_params_carousel[e].image_width)bwg_carousel_change_watermark_container(e),jQuery("#bwg_carousel_play_pause-ico_"+e).css({fontSize:bwg_params_carousel[e].carousel_play_pause_btn_size}),jQuery(".bwg_carousel_watermark_image_"+e).css({maxWidth:bwg_params_carousel[e].watermark_width*t,maxHeight:bwg_params_carousel[e].watermark_height*t}),jQuery(".bwg_carousel_watermark_text_"+e+", .bwg_carousel_watermark_text_"+e+":hover").css({fontSize:t*bwg_params_carousel[e].watermark_font_size});else{var i=bwg_params_carousel[e].image_width/t;bwg_carousel_change_watermark_container(e),jQuery(".bwg_carousel_watermark_image_"+e).css({maxWidth:a*bwg_params_carousel[e].watermark_width/i,maxHeight:a*bwg_params_carousel[e].watermark_height/i}),jQuery(".bwg_carousel_watermark_text_"+e+", .bwg_carousel_watermark_text_"+e+":hover").css({fontSize:a*bwg_params_carousel[e].watermark_font_size/i})}}function bwg_carousel_change_watermark_container(i){jQuery(".bwg_carousel"+i).children().each(function(){if(2==jQuery(this).css("zIndex")){var e=jQuery(this).find("img");e.length||(e=jQuery(this).find("iframe"));var t=e.width(),a=e.height();jQuery(".bwg_carousel_watermark_spun_"+i).width(t),jQuery(".bwg_carousel_watermark_spun_"+i).height(a),jQuery(".bwg_carousel_title_spun_"+i).width(t),jQuery(".bwg_carouel_title_spun_"+i).height(a),jQuery(".bwg_carousel_watermark_"+i).css({display:"none"})}})}function bwg_carousel_preload(e,t){var a=jQuery(".bwg_carousel_preload").get();t||a.reverse();var i=0;jQuery(a).each(function(){if(1<++i)return!1;jQuery(this).parent().hasClass("bwg_carousel_embed_video_"+e)||jQuery(this).parent().hasClass("bwg_embed_frame_"+e)||jQuery(this).parent().hasClass("bwg_carousel_video")?(jQuery(this).attr("src",jQuery(this).attr("data-src")),jQuery(this).on("load",function(){jQuery(this).removeClass("bwg_carousel_preload")}),jQuery(this).parent().hasClass("bwg_carousel_video")&&(jQuery(".bwg_carousel_video")[0].load(),jQuery(this).parent().parent().removeClass("bwg_carousel_preload")),jQuery(this).removeAttr("data-src")):(jQuery(this).css({"background-image":"url('"+jQuery(this).attr("data-background")+"')",height:"100%"}),jQuery(this).removeClass("bwg_carousel_preload"),jQuery(this).removeAttr("data-background"))})}
1function bwg_slideshow_ready(a){if(jQuery("#bwg_slideshow_image_container_"+a).length){bwg_params[a]=JSON.parse(jQuery("#bwg_slideshow_image_container_"+a).attr("data-params")),bwg_params[a].event_stack=[],bwg_container_loaded(a);var e=bwg_params[a].data;void 0!==jQuery().swiperight&&jQuery.isFunction(jQuery().swiperight)&&jQuery("#bwg_container1_"+a).swiperight(function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key_"+a).val()),0<=parseInt(jQuery("#bwg_current_image_key_"+a).val())-bwg_iterator(a)?(parseInt(jQuery("#bwg_current_image_key_"+a).val())-bwg_iterator(a))%e.length:e.length-1,e,"",a),!1}),void 0!==jQuery().swipeleft&&jQuery.isFunction(jQuery().swipeleft)&&jQuery("#bwg_container1_"+a).swipeleft(function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key_"+a).val()),parseInt(jQuery("#bwg_current_image_key_"+a).val())+bwg_iterator(a)%e.length,e,"",a),!1});var t=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase())?"touchend":"click";bwg_popup_resize(a),jQuery(".bwg_slideshow_watermark_"+a).css({display:"none"}),jQuery(".bwg_slideshow_title_text_"+a).css({display:"none"}),jQuery(".bwg_slideshow_description_text_"+a).css({display:"none"}),setTimeout(function(){bwg_change_watermark_container(a)},500),"horizontal"==bwg_params[a].filmstrip_direction?jQuery(".bwg_slideshow_image_container_"+a).height(jQuery(".bwg_slideshow_image_wrap_"+a).height()-bwg_params[a].slideshow_filmstrip_height):jQuery(".bwg_slideshow_image_container_"+a).width(jQuery(".bwg_slideshow_image_wrap_"+a).width()-bwg_params[a].slideshow_filmstrip_width);var i=/Firefox/i.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel";jQuery(".bwg_slideshow_filmstrip_"+a).bind(i,function(e){var t=window.event||e;return 0<((t=t.originalEvent?t.originalEvent:t).detail?-40*t.detail:t.wheelDelta)?jQuery(".bwg_slideshow_filmstrip_left_"+a).trigger("click"):jQuery(".bwg_slideshow_filmstrip_right_"+a).trigger("click"),!1}),jQuery(".bwg_slideshow_filmstrip_right_"+a).on(t,function(){jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).stop(!0,!1),"left"==bwg_params[a].left_or_top?"width"==bwg_params[a].width_or_height?(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().left>=-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).width()-jQuery(".bwg_slideshow_filmstrip_"+a).width())&&(jQuery(".bwg_slideshow_filmstrip_left_"+a).css({opacity:1}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().left<-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).width()-jQuery(".bwg_slideshow_filmstrip_"+a).width()-(parseInt(bwg_params[a].filmstrip_thumb_margin_hor)+parseInt(bwg_params[a].slideshow_filmstrip_width)))?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).animate({left:-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).width()-jQuery(".bwg_slideshow_filmstrip_"+a).width())},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).animate({left:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().left-(parseInt(bwg_params[a].filmstrip_thumb_margin_hor)+parseInt(bwg_params[a].slideshow_filmstrip_width))},500,"linear")),window.setTimeout(function(){jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().left==-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).width()-jQuery(".bwg_slideshow_filmstrip_"+a).width())&&jQuery(".bwg_slideshow_filmstrip_right_"+a).css({opacity:.3})},500)):(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().left>=-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).height()-jQuery(".bwg_slideshow_filmstrip_"+a).height())&&(jQuery(".bwg_slideshow_filmstrip_left_"+a).css({opacity:1}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().left<-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).height()-jQuery(".bwg_slideshow_filmstrip_"+a).height()-(parseInt(bwg_params[a].filmstrip_thumb_margin_hor)+parseInt(bwg_params[a].slideshow_filmstrip_width)))?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).animate({left:-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).height()-jQuery(".bwg_slideshow_filmstrip_"+a).height())},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).animate({left:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().left-(parseInt(bwg_params[a].filmstrip_thumb_margin_hor)+parseInt(bwg_params[a].slideshow_filmstrip_width))},500,"linear")),window.setTimeout(function(){jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().left==-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).height()-jQuery(".bwg_slideshow_filmstrip_"+a).height())&&jQuery(".bwg_slideshow_filmstrip_right_"+a).css({opacity:.3})},500)):"width"==bwg_params[a].width_or_height?(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().top>=-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).width()-jQuery(".bwg_slideshow_filmstrip_"+a).width())&&(jQuery(".bwg_slideshow_filmstrip_left_"+a).css({opacity:1}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().top<-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).width()-jQuery(".bwg_slideshow_filmstrip_"+a).width()-parseInt(bwg_params[a].filmstrip_thumb_margin_hor)+parseInt(bwg_params[a].slideshow_filmstrip_width))?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).animate({top:-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).width()-jQuery(".bwg_slideshow_filmstrip_"+a).width())},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).animate({top:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().top-parseInt(bwg_params[a].filmstrip_thumb_margin_hor)+parseInt(bwg_params[a].slideshow_filmstrip_width)},500,"linear")),window.setTimeout(function(){jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().top==-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).width()-jQuery(".bwg_slideshow_filmstrip_"+a).width())&&jQuery(".bwg_slideshow_filmstrip_right_"+a).css({opacity:.3})},500)):(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().top>=-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).height()-jQuery(".bwg_slideshow_filmstrip_"+a).height())&&
1(jQuery(".bwg_slideshow_filmstrip_left_"+a).css({opacity:1}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().top<-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).height()-jQuery(".bwg_slideshow_filmstrip_"+a).height()-(parseInt(bwg_params[a].filmstrip_thumb_margin_hor)+parseInt(bwg_params[a].slideshow_filmstrip_width)))?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).animate({top:-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).height()-jQuery(".bwg_slideshow_filmstrip_"+a).height())},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).animate({top:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().top-(parseInt(bwg_params[a].filmstrip_thumb_margin_hor)+parseInt(bwg_params[a].slideshow_filmstrip_width))},500,"linear")),window.setTimeout(function(){jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().top==-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).height()-jQuery(".bwg_slideshow_filmstrip_"+a).height())&&jQuery(".bwg_slideshow_filmstrip_right_"+a).css({opacity:.3})},500))}),jQuery(".bwg_slideshow_filmstrip_left_"+a).on(t,function(){jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).stop(!0,!1),"left"==bwg_params[a].left_or_top?(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().left<0&&(jQuery(".bwg_slideshow_filmstrip_right_"+a).css({opacity:1}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().left>-(bwg_params[a].filmstrip_thumb_margin_hor+bwg_params[a].slideshow_filmstrip_width)?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).animate({left:0},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).animate({left:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().left+parseInt(bwg_params[a].filmstrip_thumb_margin_hor)+parseInt(bwg_params[a].slideshow_filmstrip_width)},500,"linear")),window.setTimeout(function(){0==jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().left&&jQuery(".bwg_slideshow_filmstrip_left_"+a).css({opacity:.3})},500)):(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().top<0&&(jQuery(".bwg_slideshow_filmstrip_right_"+a).css({opacity:1}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().top>-(bwg_params[a].filmstrip_thumb_margin_hor+bwg_params[a].slideshow_filmstrip_width)?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).animate({top:0},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).animate({top:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().top+parseInt(bwg_params[a].filmstrip_thumb_margin_hor)+parseInt(bwg_params[a].slideshow_filmstrip_width)},500,"linear")),window.setTimeout(function(){0==jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().top&&jQuery(".bwg_slideshow_filmstrip_left_"+a).css({opacity:.3})},500))}),"width"==bwg_params[a].width_or_height?bwg_set_filmstrip_pos(jQuery(".bwg_slideshow_filmstrip_"+a).width(),a):bwg_set_filmstrip_pos(jQuery(".bwg_slideshow_filmstrip_"+a).height(),a),jQuery("#bwg_slideshow_play_pause_"+a).off(t).on(t,function(){jQuery(".bwg_ctrl_btn_"+a).hasClass("bwg-icon-play")?(bwg_play(bwg_params[a].data,a),jQuery(".bwg_slideshow_play_pause_"+a).attr("title",bwg_objectsL10n.pause),jQuery(".bwg_slideshow_play_pause_"+a).attr("class","bwg-icon-pause bwg_ctrl_btn_"+a+" bwg_slideshow_play_pause_"+a),1==bwg_params[a].enable_slideshow_music&&document.getElementById("bwg_audio_"+a).play()):(window.clearInterval(window["bwg_playInterval"+a]),jQuery(".bwg_slideshow_play_pause_"+a).attr("title","Play"),jQuery(".bwg_slideshow_play_pause_"+a).attr("class","bwg-icon-play bwg_ctrl_btn_"+a+" bwg_slideshow_play_pause_"+a),1==bwg_params[a].enable_slideshow_music&&document.getElementById("bwg_audio_"+a).pause())}),0!=bwg_params[a].enable_slideshow_autoplay&&(bwg_play(bwg_params[a].data,a),jQuery(".bwg_slideshow_play_pause_"+a).attr("title",bwg_objectsL10n.pause),jQuery(".bwg_slideshow_play_pause_"+a).attr("class","bwg-icon-pause bwg_ctrl_btn_"+a+" bwg_slideshow_play_pause_"+a),1==bwg_params[a].enable_slideshow_music&&jQuery("#bwg_audio_"+a).length&&document.getElementById("bwg_audio_"+a).play()),bwg_params[a].preload_images&&bwg_preload_images(parseInt(j
1Query("#bwg_current_image_key_".$bwg).val()),a),jQuery(".bwg_slideshow_image_"+a).removeAttr("width"),jQuery(".bwg_slideshow_image_"+a).removeAttr("height")}}function bwg_image_browser_resize(){jQuery(".bwg_image_browser").each(function(){var e=jQuery(this).attr("data-bwg");jQuery(".image_browser_images_conteiner_"+e).length&&(bwg_params_ib[e]=JSON.parse(jQuery("#bwg_container1_"+e+" .image_browser_images_conteiner_"+e).attr("data-params")),bwg_image_browser(e))})}function bwg_image_browser_ready(e){var t=e.data("bwg");bwg_container_loaded(t),jQuery(".image_browser_images_conteiner_"+t).length&&(bwg_params_ib[t]=JSON.parse(jQuery(".image_browser_images_conteiner_"+t).attr("data-params")),setTimeout(function(){bwg_image_browser(t)},3))}function bwg_search_focus(e){jQuery(e).parent().find(".bwg_search_input").focus(),jQuery(e).hide()}function bwg_key_press(e){jQuery(e).parent().find(".bwg_search_reset_container").removeClass("bwg-hidden"),jQuery(e).parent().find(".bwg_search_loupe_container1").removeClass("bwg-hidden")}function bwg_all_thumnails_loaded(t){var a=0,i=jQuery(t).find("img").length;return 0==i?bwg_all_thumbnails_loaded_callback(t):jQuery(t).find("img").each(function(){var e=jQuery(this).attr("src");jQuery("<img/>").attr("src",e).on("load error",function(){++a>=i&&bwg_all_thumbnails_loaded_callback(t)})}),0==i}function bwg_all_thumbnails_loaded_callback(e){jQuery(e).hasClass("bwg-thumbnails")&&!jQuery(e).hasClass("bwg-masonry-thumbn
1ails")&&bwg_thumbnail(e),jQuery(e).hasClass("bwg-masonry-thumbnails")&&bwg_thumbnail_masonry(e),jQuery(e).hasClass("bwg-album-extended")&&bwg_album_extended(e)}function bwg_album_thumbnail(e){bwg_container_loaded(jQuery(e).data("bwg"))}function bwg_album_extended(e){var t=jQuery(e).width(),a=jQuery(e).data("thumbnail-width"),i=jQuery(e).data("spacing"),r=jQuery(e).data("max-count"),_=parseInt(t/(2*a));_<1&&(_=1),r<_&&(_=r);var s=100/_,o=jQuery(e).find(".bwg-extended-item"),n=parseInt(o.css("margin-left")),l=parseInt(o.css("margin-right"));o.css({width:"calc("+s+"% - "+(n+l)+"px)"}),o.width()<a?o.find(".bwg-extended-item0, .bwg-extended-item1").css({width:"calc(100% - "+i+"px)"}):o.width()>2*a?(o.find(".bwg-extended-item0").css({width:"calc(50% - "+i+"px)"}),o.find(".bwg-extended-item1").css({width:"calc(100% - "+(a+2*i)+"px)"})):o.find(".bwg-extended-item0, .bwg-extended-item1").css({width:"calc(50% - "+i+"px)"}),jQuery(e).children(".bwg-extended-item").each(function(){var e=jQuery(this).find("img"),t=jQuery(this).find(".bwg-item0"),a=jQuery(this).find(".bwg-item2"),i=e.data("width"),r=e.data("height");""!=i&&""!=r||(i=e.width(),r=e.height());var _=i/r;a.width()/a.height()>i/r?(a.width()>i?e.css({width:"100%",height:a.width()/_}):e.css({maxWidth:"100%",height:a.width()/_}),i=a.width(),r=a.width()/_):(a.height()>r?e.css({height:"100%",width:a.height()*_,maxWidth:"initial"}):e.css({maxHeight:"100%",width:a.height()*_,maxWidth:"initial"}),r=a.height(),i=a.height()*_),jQuery(this).find(".bwg-item2").css({marginLeft:(t.width()-i)/2,marginTop:(t.height()-r)/2})}),bwg_container_loaded(jQuery(e).data("bwg"))}function bwg_thumbnail(e){var t=jQuery(e).width(),a=jQuery(e).data("thumbnail-width"),i=jQuery(e).data("max-count"),r=parseInt(t/a)+1;i<r&&(r=i);var _=100/r;jQuery(e).find(".bwg-item").css({width:_+"%"}),jQuery(e).children(".bwg-item").each(function(){var e=jQuery(this).find("img"),t=jQuery(this).find(".bwg-item2"),a=jQuery(this).find(".bwg-item1"),i=0<t.width()?t.width():a.width(),r=0<t.height()?t.height():a.height(),_=e.data("width"),s=e.data("height");""!=_&&""!=s&&void 0!==_&&void 0!==s||(_=e.width(),s=e.height());var o=_/s;e.removeAttr("style"),o<i/r?(_<i?e.css({width:"100%",height:i/o}):e.css({maxWidth:"100%",height:Math.ceil(i/o)}),s=(_=i)/o):(r>e.height()?e.css({height:"100%",width:r*o,maxWidth:"initial"}):e.css({maxHeight:"100%",width:r*o,maxWidth:"initial"}),_=(s=r)*o),jQuery(this).find(".bwg-item2").css({marginLeft:(i-_)/2,marginTop:(r-s)/2})}),bwg_container_loaded(jQuery(e).data("bwg"))}function bwg_thumbnail_masonry(e){var t="#bwg_thumbnails_masonry_"+(bwg=jQuery(e).attr("data-bwg"));jQuery("#bwg_album_masonry_"+bwg).length&&(t="#bwg_album_masonry_"+bwg),0===jQuery(".bwg-container-temp"+bwg).length&&(jQuery(t).clone().appendTo("#bwg_container3_"+bwg).removeAttr("id").removeClass("bwg-container-"+bwg).addClass("bwg-container-temp"+bwg),jQuery(".bwg-container-temp"+bwg).empty());var a=jQuery(".bwg-container-temp"+bwg),r=jQuery(t),_=a;if(a.prepend(r.html()),_.find(".bwg-empty-item").remove(),"horizontal"==_.data("masonry-type")){var s=_.data("thumbnail-height"),o=_.data("max-count"),n=[];for(i=0;i<o;i++)n.push(0);_.find(".bwg-item").each(function(){var e=n.indexOf(Math.min.apply(Math,n));jQuery(this).css({height:s,order:e+1}),n[e]+=jQuery(this)[0].getBoundingClientRect().width});var l=Math.max.apply(Math,n);for(_.width(l),i=0;i<o;i++)n[i]<l&&_.append(jQuery('<div class="bwg-item bwg-empty-item"></div>').css({height:s,order:i+1,width:l-n[i]}))}else{_.removeAttr("style");l=_.width();var g=_.data("thumbnail-width"),u=(o=_.data("max-count"),parseInt(l/g)+("0"==_.data("resizable-thumbnails")?0:1));o<u&&(u=o);var b=_.find(".bwg-item").length;b<u&&(u=b);var w,d,h=100/u,c=[];for(i=0;i<u;i++)c.push(0);_.find(".bwg-item").each(function(){var e=c.indexOf(Math.min.apply(Math,c));if(jQuery(this).css({width:h+"%",order:e+1}),0<jQuery(this).find("img").attr("data-width").length&&0<jQuery(this).find("img").attr("data-height").length){d=jQuery(this).find("img").data("width")/jQuery(this).find("img").data("height"),w=jQuery(this).width()/d,title_h=this.querySelector("a .bwg-zoom-effect-overlay .bwg-title2")||!this.querySelector("a .bwg-title2")?0:this.querySelector("a .bwg-title2").getClientRects()[0].height,desc_h=this.querySelector("a .bwg-masonry-thumb-description")?this.querySelector("a .bwg-masonry-thumb-description").getClientRects()[0].height:0;var t=title_h+desc_h;jQuery(this).height(w+t)}c[e]+=jQuery(this)[0].getBoundingClientRect().height});var m=Math.max.apply(Math,c);for(i=0;i<u;i++)c[i]<m&&_.append(jQuery('<div class="bwg-item bwg-empty-item"></div>').css({width:h+"%",order:i+1,height:m-c[i]}));_.outerWidth(u*g),_.height(m)}if(""!=a.html()){r.outerWidth(u*g),"0"!=m?(r.css("opacity","1"),r.height(m)):r.css("opacity","0"),r.empty();var p=a.html();r.append(p),r.find(".bwg_lazyload").each(function(){null!=jQuery(this).attr("data-original")&&""!=jQuery(this).attr("data-original")&&jQuery(this).attr("src",jQuery(this).attr("data-original"))}),a.empty().hide()}bwg_container_loaded(_.data("bwg"))}function bwg_container_loaded(e){jQuery("#gal_front_form_"+e).removeClass("bwg-hidden"),jQuery("#ajax_loading_"+e).addClass("bwg-hidden"),jQuery(".bwg_container img").removeAttr("width").removeAttr("height")}function bwg_thumbnail_mosaic_logic(e){var t=e.attr("data-bwg"),a=e.attr("data-block-id"),i=parseInt(e.attr("data-thumb-padding"))/2,r=parseInt(e.attr("data-thumb-border"))+i;if("horizontal"==e.attr("data-mosaic-direction")){var _=parseInt(e.attr("data-height"));if("1"==e.attr("data-resizable"))if(1920<=jQuery(window).width())var s=(1+jQuery(window).width()/1920)*_;else if(jQuery(window).width()<=640)s=jQuery(window).width()/640*_;else s=_;else s=_;(p=jQuery(".bwg_mosaic_thumb_"+t)).each(function(e){var t=jQuery(this).data("width"),a=jQuery(this).data("height");
1""!=t&&""!=a&&void 0!==t&&void 0!==a||(t=p.get(e).naturalWidth,a=p.get(e).naturalHeight),t=t*s/a,p.eq(e).height(s),p.eq(e).width(t)});var o=jQuery("#bwg_mosaic_thumbnails_div_"+t).width()/100*parseInt(e.attr("data-total-width"));jQuery("#"+a).width(o);var n=s+2*r,l=0,g=[];g[0]=0;var u=[],b=u[0]=0;p.each(function(e){row_cum_width2=b+p.eq(e).width()+2*r,row_cum_width2-o<0?(b=row_cum_width2,g[e]=l,u[l]++):e!==p.length-1?Math.abs(b-o)>Math.abs(row_cum_width2-o)||Math.abs(b-o)<=Math.abs(row_cum_width2-o)&&0==u[l]?e!==p.length-2?(b=row_cum_width2,g[e]=l,u[l]++,u[++l]=0,b=0):(b=row_cum_width2,g[e]=l,u[l]++):(u[++l]=1,g[e]=l,b=row_cum_width2-b):(b=row_cum_width2,g[e]=l,u[l]++)});for(var w=[],d=[],h=0;h<=l;h++)w[h]=1,d[h]=n;for(h=0;h<=l;h++)b=0,p.each(function(e){g[e]==h&&(b+=p.eq(e).width())}),w[h]=C=(o-2*u[h]*r)/b,d[h]=(n-2*r)*w[h]+2*r;(S=[])[0]=0;var c=[],m=[];c[0]=0,m[0]=0;for(h=1;h<=l;h++)c[h]=c[0],m[h]=m[h-1]+d[h-1];p.each(function(e){var t=p.eq(e).width(),a=p.eq(e).height();p.eq(e).width(t*w[g[e]]),p.eq(e).height(a*w[g[e]]),p.eq(e).parent().css({top:m[g[e]],left:c[g[e]]}),c[g[e]]+=t*w[g[e]]+2*r,S[g[e]]=e}),jQuery("#"+a).height(m[l]+d[l]-m[0])}else{var p,y=parseInt(e.attr("data-width"));if("1"==e.attr("data-resizable")){if(1920<=jQuery(window).width())var f=(1+jQuery(window).width()/1920)*y;else if(jQuery(window).width()<=640)f=jQuery(window).width()/640*y;else f=y;if(0<jQuery(".header-content-with_tab").length)f=jQuery(".header-content-with_tab").width()/4-10}else f=y;(p=jQuery(".bwg_mosaic_thumb_"+t)).each(function(e){jQuery(this).removeAttr("style"),jQuery(this).parent().removeAttr("style");var t=jQuery(this).data("width"),a=jQuery(this).data("height");""!=t&&""!=a&&void 0!==t&&void 0!==a||(t=p.get(e).naturalWidth,a=p.get(e).naturalHeight),p.eq(e).height(a*f/t),p.eq(e).width(f)});o=jQuery("#bwg_mosaic_thumbnails_div_"+t).width()/100*parseInt(e.attr("data-total-width"));jQuery("#"+a).width(o);var j=f+2*r<o?f:o-2*r,Q=Math.floor(o/(j+2*r)),v=[];v[0]=0;for(var x=[],k=[],C=0;C<Q;C++)k[C]=0,x[C]=0;p.each(function(e){for(var t=0,a=k[0],i=0;i<Q;i++)a>k[i]&&(a=k[i],t=i);v[e]=t,x[t]++,W=a,E=0+t*(j+2*r),p.eq(e).parent().css({top:W,left:E}),k[t]+=p.eq(e).height()+2*r}),(w=[])[0]=1;var z=0,I=[],F=0,O=0;for(C=0;C<Q;C++)z+=j,I[C]=0,p.each(function(e){v[e]==C&&(I[C]+=p.eq(e).height())}),0!=I[C]&&(F+=j/I[C],O+=j*x[C]*2*r/I[C]);var M=0;0!=F&&(M=(z+O)/F);for(C=0;C<Q;C++)0!=I[C]&&(w[C]=(M-2*x[C]*r)/I[C]);var S,E=[];E[0]=0;for(C=1;C<=Q;C++)E[C]=E[C-1]+j*w[C-1]+2*r;var W=[];for(C=0;C<Q;C++)W[C]=0;(S=[])[0]=0,p.each(function(e){var t=p.eq(e).width(),a=p.eq(e).height();p.eq(e).width(t*w[v[e]]),p.eq(e).height(a*w[v[e]]),p.eq(e).parent().css({top:W[v[e]],left:E[v[e]]}),W[v[e]]+=a*w[v[e]]+2*r,S[v[e]]=e}),jQuery("#"+a).width(E[Q]).height(W[0])}}function bwg_thumbnail_mosaic(e){var t=jQuery(e),a=jQuery.Deferred();if(a.done([bwg_thumbnail_mosaic_logic]).done(function(e){"1"!=e.data("mosaic-thumb-transition")&&jQuery(".bwg_mosaic_thumb_spun_"+t).css({transition:"all 0.3s ease 0s","-webkit-transition":"all 0.3s ease 0s"});var t=e.data("bwg");jQuery(".bwg_mosaic_thumbnails_"+t).css({visibility:"visible"}),jQuery(".tablenav-pages_"+t).css({visibility:"visible"}),bwg_container_loaded(t),jQuery(".bwg_mosaic_thumb_"+t).removeClass("bwg-hidden"),jQuery("#bwg_mosaic_thumbnails_div_"+t).removeClass("bwg-hidden")}),a.resolve(t),"hover"==t.attr("data-image-title")){var i=parseInt(t.attr("data-thumb-padding"))/2,r=parseInt(t.attr("data-thumb-border"))+i;bwg_mosaic_title_on_hover(t.data("bwg"),t,r)}"hover"==t.attr("data-ecommerce-icon")&&(jQuery(".bwg_mosaic_thumb_spun_"+bwg).on("mouseenter",function(){var e=jQuery(this).parents(".bwg-mosaic-thumb-span").children(".bwg_mosaic_thumb_"+bwg).width(),t=jQuery(this).parents(".bwg-mosaic-thumb-span").children(".bwg_mosaic_thumb_"+bwg).height();jQuery(this).children(".bwg_ecommerce_spun1_"+bwg).width(e);var a=jQuery(this).children(".bwg_ecommerce_spun1_"+bwg).width(),i=jQuery(this).children(".bwg_ecommerce_spun1_"+bwg).height();jQuery(this).children(".bwg_ecommerce_spun1_"+bwg).css({top:r+.5*t-.5*i,left:r+.5*e-.5*a,opacity:1})}),jQuery(".bwg_mosaic_thumb_spun_"+bwg).on("mouseleave",function(){jQuery(this).children(".bwg_ecommerce_spun1_"+bwg).css({top:0,left:-1e4,opacity:0,padding:t.attr("data-title-margin")})}
1))}function bwg_mosaic_title_on_hover(t,e,a){jQuery(".bwg-mosaic-thumb-span").on("mouseenter",function(){var e=jQuery(this).children(".bwg_mosaic_thumb_"+t).width();jQuery(this).find(".bwg_mosaic_title_spun1_"+t).width(e),jQuery(this).find(".bwg_mosaic_title_spun1_"+t).css({opacity:1,"max-height":"calc(100% - "+2*a+"px)",overflow:"hidden"})}),jQuery(".bwg-mosaic-thumb-span").on("mouseleave",function(){jQuery(this).find(".bwg_mosaic_title_spun1_"+t).css({opacity:0,padding:e.attr("data-title-margin"),"max-height":"calc(100% - "+2*a+"px)",overflow:"hidden"})})}function bwg_mosaic_ajax(e,t){var a=0;jQuery(".bwg_mosaic_thumb_spun_"+e+" img").on("load",function(){++a>=t&&bwg_thumbnail_mosaic(jQuery(".bwg-mosaic-thumbnails[data-bwg="+e+"]"))}),jQuery(".bwg_mosaic_thumb_spun_"+e+" img").on("error",function(){jQuery(this).height(100),jQuery(this).width(100),++a>=t&&bwg_thumbnail_mosaic(jQuery(".bwg-mosaic-thumbnails[data-bwg="+e+"]"))})}function bwg_add_album(){var t=!1;"1"!=bwg_objectsL10n.front_ajax&&jQuery(document).off("click",".bwg-album").on("click",".bwg-album",function(){if(!t){var e=jQuery(this).attr("data-bwg");return t=!0,setTimeout(function(){t=!1},100),bwg_ajax("gal_front_form_"+e,e,jQuery(this).attr("data-container_id"),jQuery(this).attr("data-alb_gal_id"),jQuery(this).attr("data-album_gallery_id"),jQuery(this).attr("data-def_type"),"",jQuery(this).attr("data-title")),!1}}),jQuery(".bwg_description_more").on("click",function(){jQuery(this).hasClass("bwg_more")?(jQuery(this).parent().find(".bwg_description_full").show(),jQuery(this).addClass("bwg_hide").removeClass("bwg_more"),jQuery(this).html(jQuery(this).data("hide-msg"))):(jQuery(this).parent().find(".bwg_description_full").hide(),jQuery(this).addClass("bwg_more").removeClass("bwg_hide"),jQuery(this).html(jQuery(this).data("more-msg")))})}function bwg_add_lightbox(){var a=!1;jQuery(document).on("click",".bwg_lightbox .bwg-item0, .bwg_lightbox .bwg_slide, .bwg_lightbox .bwg-carousel-image, .bwg_lightbox .bwg-title1",function(e){e.stopPropagation(),e.preventDefault();var t=jQuery(this).closest("a");if(!a)return a=!0,setTimeout(function(){a=!1},100),bwg_gallery_box(jQuery(t).attr("data-image-id"),jQuery(t).closest(".bwg_container")),!1}),jQuery(".bwg_lightbox .bwg_ecommerce").on("click",function(e){if(e.stopPropagation(),!a)return a=!0,setTimeout(function(){a=!1},100),bwg_gallery_box(jQuery(this).closest(".bwg_lightbox").attr("data-image-id"),jQuery(this).closest(".bwg_container"),!0),!1})}function bwg_filter_by_tag(e){var t,a="",i="",r=(i=jQuery(e).parent().parent().hasClass("bwg_tag_buttons_view")?jQuery(e).parent().parent():jQuery(e).parent().parent().parent()).find(".current_view").val(),_=i.find(".form_id").val(),s=i.find(".cur_gal_id").val(),o=i.find(".album_gallery_id").val(),n=i.find(".type").val();jQuery(e).parent().find(".opt.selected").each(function(){a=a+jQuery(e).text()+","}),""==(a=a.slice(0,-1))&&(a=bwg_objectsL10n.bwg_select_tag),jQuery(e).parent().find(".CaptionCont").attr("title",a),jQuery(e).parent().find(".CaptionCont .placeholder").html(a);var l=jQuery(".bwg_tags_container_"+r+" #bwg_tag_id_"+s).val();t="string"==typeof l&&""!==l?l.split(","):[],"object"==typeof l&&(t=l),jQuery(".bwg_tags_container_"+r+" #bwg_tag_id_"+r).val(t),bwg_select_tag(r,_,s,o,n,!1)}function bwg_document_ready(a){bwg_add_lightbox(),a.data("right-click-protection")&&bwg_disable_right_click(a),jQuery(".SumoSelect > .CaptionCont > label > i").addClass("bwg-icon-angle-down closed");var e=a.find(".search_tags");if("1"==bwg_objectsL10n.front_ajax&&e.length)for(var t=0;t<e[0].length;t++)void 0===e[0][t].attributes.selected&&(e[0][t].selected=!1);e.length&&(e.SumoSelect({triggerChangeCombined:!0,placeholder:bwg_objectsL10n.bwg_select_tag,search:!0,searchText:bwg_objectsL10n.bwg_search,forceCustomRendering:!0,noMatch:bwg_objectsL10n.bwg_tag_no_match,captionFormatAllSelected:bwg_objectsL10n.bwg_all_tags_selected,captionFormat:"{0} "+bwg_objectsL10n.bwg_tags_selected,okCancelInMulti:!0,locale:[bwg_objectsL10n.ok,bwg_objectsL10n.cancel,bwg_objectsL10n.select_all]}),e.off("change").on("change",function(){bwg_filter_by_tag(this)}));var i=a.find(".cur_gal_id").val(),r=a.find(".current_view").val(),_=a.find(".bwg_tags_container_"+r+" .bwg_tag_button_view_container"),s=a.find("#bwg_tag_id_"+i),o=parseInt(2*_.find(".bwg_tags_filter_buttons").outerHeight(!0));
1_.length&&(_.find(".bwg_tags_filter_buttons").off("click").on("click",function(){if(!jQuery(this).hasClass("active")){var e=jQuery(this).position().top;o<e&&a.find(".show_bottom_tag").val("1"),""==s.val()?s.val(jQuery(this).val()):s.val(s.val()+","+jQuery(this).val()),bwg_filter_by_tag(this)}return!1}),_.find(".bwg_all_tags").off("click").on("click",function(){return jQuery(this).hasClass("active")||(s.val(""),bwg_filter_by_tag(this)),!1}),""!=s.val()&&_.find(".bwg_all_tags").removeClass("active"),s.val().split(",").forEach(function(t){_.find(".bwg_tags_filter_buttons").each(function(){if(jQuery(this).val()==t){var e=jQuery(this).position().top;o<e&&a.find(".show_bottom_tag").val("1")}})}),bwg_tags_button_section_visibility());var n=a.find(".bwg_order");n.length&&n.SumoSelect({triggerChangeCombined:!0,forceCustomRendering:!0}),jQuery(this).find("search_placeholder_title").hide(),""==jQuery(this).find(".bwg_search_input").val()&&jQuery(this).find("search_placeholder_title").show(),jQuery(".bwg_thumbnail .bwg_search_container_2").focusout(function(e){""==jQuery(this).find(".bwg_search_input").val()&&(jQuery(this).find(".search_placeholder_title").show(),jQuery(this).find(".bwg_search_loupe_container1").addClass("bwg-hidden"),jQuery(this).find(".bwg_search_reset_container").addClass("bwg-hidden"))}),jQuery(".search_tags").on("sumo:opened",function(){var e=jQuery(this).parents(".bwg_container").height(),t=jQuery(this).parents(".bwg_container").find(".SumoSelect>.optWrapper>.options");void 0!==t&&(e-50<t.height()&&t.css("max-height",e-50));0==jQuery(this).parent().find("ul li").length&&(jQuery(".no-match").html(bwg_objectsL10n.bwg_tag_no_match),jQuery(".no-match").show())}),jQuery(".bwg_thumbnail .SumoSelect").on("sumo:closed",function(){jQuery(this).find("label i").removeClass("bwg-icon-angle-up opened"),jQuery(this).find("label i").addClass("bwg-icon-angle-down closed")}),jQuery(".bwg_thumbnail .SumoSelect").on("sumo:opened",function(){jQuery(this).find("label i").removeClass("bwg-icon-angle-down closed"),jQuery(this).find("label i").addClass("bwg-icon-angle-up opened")}),bwg_add_album();var l=window.location.hash.substring(1);if(l&&"-1"!=l.indexOf("bwg")){bwg_hash_array=l.replace("bwg","").split("/");var g=jQuery(".bwg_container");g&&bwg_gallery_box(bwg_hash_array[1],g,!1,bwg_hash_array[0])}bwg_resize_search_line()}function bwg_clear_search_input(e){if("1"!=bwg_objectsL10n.front_ajax)jQuery("#bwg_search_input_"+e).val(""),jQuery("#bwg_search_container_1_"+e+" .bwg_search_loupe_container1").addClass("bwg-hidden"),jQuery("#bwg_search_container_1_"+e+" .bwg_search_reset_container").addClass("bwg-hidden");else{var t=window.location.href,a=bwg_remove_url_parameter("bwg_search_"+e,t,t);window.location.replace(a)}}function bwg_check_search_input_enter(e,t){return"Enter"!=t.key||(jQuery(e).closest(".bwg_search_container_1").find(".bwg_search").trigger("click"),!1)}function bwg_ajax(t,a,i,r,e,_,s,o,n,l,g,u){if("1"!=bwg_objectsL10n.front_ajax||!0===l){jQuery("#ajax_loading_"+a).removeClass("bwg-hidden"),jQuery(".bwg_load_more_ajax_loading").css({top:jQuery("#bwg_container1_"+bwg).height()-jQuery(".bwg_load_more_ajax_loading").height()}),"function"==typeof bwg_scroll_load_action&&jQuery(window).off("scroll",bwg_scroll_load_action),jQuery(".bwg_thumbnail .search_tags").off("sumo:closed");var b=jQuery("#"+t).data("ajax-url"),w=0;if(void 0===l)l=!1;var d,h=jQuery("#page_number_"+a).val(),c=jQuery("#bwg_search_input_"+a).val(),m={},p=jQuery("#bwg_album_breadcrumb_"+a).val();if(p&&!0!==l){var y=JSON.parse(p);if("back"==r){y.splice(-1,1);var f=y.slice(-1)[0];r=f.id,h=f.page,m["action_"+a]="back"}else"numeric"===l||s?(y.splice(-1,1),y.push({id:r,page:h,search:c})):(y.push({id:r,page:1}),h=1);m["bwg_album_breadcrumb_"+a]=JSON.stringify(y)}if(m.gallery_type=jQuery("#"+t).data("gallery-type"),m.gallery_id=jQuery("#"+t).data("gallery-id"),m.tag=jQuery("#"+t).data("tag"),m.album_id=jQuery("#"+t).data("album-id"),m.theme_id=jQuery("#"+t).data("theme-id"),m.shortcode_id=jQuery("#"+t).data("shortcode-id"),m.bwg=a,m.current_url=encodeURI(jQuery("#bwg_container1_"+a).data("current-url")),s&&(h=1),void 0===o||""==o)o="";if(void 0===g||""==g)g="";if(void 0===n||""==n)n=jQuery(".bwg_order_"+a).val();if(void 0===u)u=!0;if(1==u&&jQuery("html, body").animate({scrollTop:jQuery("#"+t).offset().top-150},500),m["page_number_"+a]=h,m["bwg_load_more_"+a]=jQuery("#bwg_load_more_"+a).val(),m["album_gallery_id_"+a]=r,m["type_"+a]=_,m["title_"+a]=o,m["description_"+a]=g,m["sortImagesByValue_"+a]=n,m["bwg_random_seed_"+a]=jQuery("#bwg_random_seed_"+a).val(),0<jQuery("#bwg_search_input_"+a).length&&(m["bwg_search_"+a]=jQuery("#bwg_search_input_"+a).val()),void 0!==m["bwg_album_breadcrumb_"+a]){var j=JSON.parse(m["bwg_album_breadcrumb_"+a]);jQuery.each(j,function(e,t){m["bwg_search_"+a]="",r==t.id&&(m["bwg_search_"+a]=t.search)})}var Q=jQuery(".bwg_tags_container_"+a+" #bwg_tag_id_"+i).val();
1return d="string"==typeof Q&&""!==Q?Q.split(","):[],"object"==typeof Q&&(d=Q),m["bwg_tag_id_"+i]=d,jQuery("#ajax_loading_"+a).removeClass("bwg-hidden"),jQuery(".bwg_load_more_ajax_loading").css({top:jQuery("#bwg_container1_"+bwg).height()-jQuery(".bwg_load_more_ajax_loading").height()}),jQuery.ajax({type:"POST",url:b,data:m,success:function(e){jQuery(e).find(".bwg_masonry_thumb_spun_"+a+" img").length,w=jQuery(e).find(".bwg_mosaic_thumb_spun_"+a+" img").length,!0===l?(i=="bwg_thumbnails_mosaic_"+a?jQuery("#"+i).append(jQuery(e).closest(".bwg-container-"+a).find("#"+i).html()):i=="bwg_album_compact_"+a?jQuery("#"+i).append(jQuery(e).closest(".bwg-album-thumbnails").html()):i=="bwg_thumbnails_masonry_"+a?jQuery(".bwg-container-temp"+a).append(jQuery(e).closest(".bwg-container-"+a).html()):jQuery("#"+i).append(jQuery(e).closest(".bwg-container-"+a).html()),jQuery(".bwg_nav_cont_"+a).html(jQuery(e).closest(".bwg_nav_cont_"+a).html())):jQuery("#bwg_container3_"+a).html(e)},complete:function(){jQuery("div[id^='bwg_container1_'] img").each(function(){null!=jQuery(this).attr("data-lazy-src")&&""!=jQuery(this).attr("data-lazy-src")?jQuery(this).attr("src",jQuery(this).attr("data-lazy-src")):null!=jQuery(this).attr("data-original")&&""!=jQuery(this).attr("data-original")&&jQuery(this).attr("src",jQuery(this).attr("data-original"))}),jQuery(".blog_style_image_buttons_conteiner_"+a).find(jQuery(".bwg_blog_style_img_"+a)).on("load",function(){jQuery(".bwg_blog_style_img_"+a).closest(jQuery(".blog_style_image_buttons_conteiner_"+a)).show()}),""==d&&(d=[]),jQuery(".bwg_tags_container_"+a+" #bwg_tag_id_"+i).val(d),d.forEach(function(t){jQuery(".bwg_tags_container_"+a+" .bwg_tags_filter_buttons").each(function(){var e=parseInt(2*jQuery(this).outerHeight(!0));jQuery(this).val()==t&&(jQuery(this).addClass("active"),e<jQuery(this).position().top&&jQuery(".bwg_tags_container_"+a+" .show_bottom_tag").val("1"),jQuery(".bwg_tags_container_"+a+" .bwg_all_tags").removeClass("active"))})}),jQuery(".pagination-links_"+a).length&&jQuery("html, body").animate({scrollTop:jQuery("#"+t).offset().top-150},500),bwg_document_ready(jQuery("#bwg_container1_"+a));var e=jQuery("#bwg_container1_"+a).data("gallery-type");if(jQuery("#bwg_container3_"+a+" .bwg-album-thumbnails").length){bwg_all_thumnails_loaded(".bwg-container-"+a)&&bwg_container_loaded(a)}else{switch(e){case"thumbnails":case"thumbnails_masonry":case"album_compact_preview":case"album_masonry_preview":case"album_extended_preview":bwg_all_thumnails_loaded(".bwg-container-"+a);break;case"slideshow":bwg_slideshow_ready(a);break;case"carousel":bwg_carousel_ready(a),bwg_carousel_onload(jQuery("#bwg_container1_"+a));break;case"image_browser":bwg_image_browser_ready(jQuery("#bwg_container1_"+a));break;case"blog_style":bwg_blog_style_ready(jQuery("#bwg_container1_"+a))}bwg_mosaic_ajax(a,w),bwg_container_loaded(a)}jQuery(".blog_style_images_conteiner_"+a+" .bwg_embed_frame_16x9_"+a).each(function(e){jQuery(this).width(jQuery(this).parent().width()),jQuery(this).height(.5625*jQuery(this).width())}),jQuery(".blog_style_images_conteiner_"+a+" .bwg_embed_frame_instapost_"+a).each(function(e){jQuery(this).width(jQuery(this).parent().width()),jQuery(this).height((jQuery(this).width()-16)*jQuery(this).attr("data-height")/jQuery(this).attr("data-width")+96)}),jQuery("#bwg_embed_frame_16x9_"+a).width(jQuery("#bwg_embed_frame_16x9_"+a).parent().width()),jQuery("#bwg_embed_frame_16x9_"+a).height(.5625*jQuery("#bwg_embed_frame_16x9_"+a).width()),jQuery("#bwg_embed_frame_instapost_"+a).width(jQuery("#bwg_embed_frame_16x9_"+a).parent().width()),jQuery(".bwg_embed_frame_instapost_"+a).height((jQuery(".bwg_embed_frame_instapost_"+a).width()-16)*jQuery(".bwg_embed_frame_instapost_"+a).attr("data-height")/jQuery(".bwg_embed_frame_instapost_"+a).attr("data-width")+96),jQuery("#bwg_search_input_"+a).val(m["bwg_search_"+a]),""!=jQuery("#bwg_search_input_"+a).val()?(jQuery("#bwg_search_input_"+a).parent().find(".search_placeholder_title").hide(),jQuery("#bwg_search_input_"+a).parent().parent().find(".bwg_search_reset_container").show(),jQuery("#bwg_search_input_"+a).parent().parent().find(".bwg_search_loupe_container1").show()):jQuery("#bwg_search_input_"+a).parent().find(".search_placeholder_title").show();jQuery("#bwg_container2_"+a+" .cur_gal_id").val();""==d&&(d=[]),jQuery(".bwg_tags_container_"+a+" #bwg_tag_id_"+a).val(d)}}),!1}if("back"===r)return-1==document.referrer.indexOf(window.location.host)?(str=jQuery(location).attr("href"),void window.location.replace(str.substring(0,str.indexOf("type_
10")))):void window.history.back();var v=jQuery("#bwg_search_input_"+a).val(),x=jQuery(".bwg_tags_container_"+a+" .cur_gal_id").val(),k=window.location.href,C="",z=jQuery(".bwg_tags_container_"+a+" #bwg_tag_id_"+x).val();if(jQuery(".bwg_tags_container_"+a).parent().hasClass("bwg_tag_select_view")&&(z=z.toString()),"#"==k.substr(-1)&&(k=k.slice(0,-1)),""!==v&&void 0!==v?!1!==(C=bwg_add_url_parameter(C=bwg_remove_url_parameter("page_number_"+a,k),"bwg_search_"+a,v))&&(k=C):!1!==(C=bwg_remove_url_parameter("bwg_search_"+a,k))&&(k=C),void 0!==n&&""!==n&&!1!==(C=bwg_add_url_parameter(k,"sort_by_"+a,n))&&(k=C),null!=z&&0<z.length){var I="",F=z.split(",");jQuery.each(F,function(e){var t=",";e===F.length-1&&(t=""),I+=F[e]+t}),""!==I&&!1!==(C=bwg_add_url_parameter(k,"filter_tag_"+a,I))&&(k=C)}else!1!==(C=bwg_remove_url_parameter("filter_tag_"+a,C))&&(k=C);window.location.href=k}function bwg_add_url_parameter(e,t,a){var i=new RegExp("([?&])"+t+"=.*?(&|$)","i"),r=-1!==e.indexOf("?")?"&":"?";return e.match(i)?e.replace(i,"$1"+t+"="+a+"$2"):e+r+t+"="+a}function bwg_remove_url_parameter(e,t){var a=t.split("?"),i=a[0]+"?",r="";if(void 0!==a[1]&&(r=a[1]),""===r)return t;var _,s,o=decodeURIComponent(r).split("&");for(s=0;s<o.length;s++)(_=o[s].split("="))[0]!=e&&(i=i+_[0]+"="+_[1]+"&");return i.substring(0,i.length-1)}function bwg_select_tag(e,t,a,i,r,_){_&&jQuery(".bwg_tags_container_"+e+" #bwg_tag_id_"+a).val(""),bwg_ajax(t,e,a,i,"",r,1,"")}function bwg_cube(e,t,a,i,r,_,s,o,n,l,g){var u,b=!1,w="";if(void 0!==g&&""!==g){b=!0,bwg_params[g].bwg_trans_in_progress=!0,w="_"+g,u=bwg_params[g].bwg_transition_duration;bwg_params[g].event_stack}else u=bwg_transition_duration;if(!bwg_testBrowser_cssTransitions(g))return bwg_fallback(o,n,l,g);if(!bwg_testBrowser_cssTransforms3d(g))return bwg_fallback3d(o,n,l,g);function d(){if(jQuery(o).removeAttr("style"),jQuery(n).removeAttr("style"),jQuery(".bwg_slider"+w).removeAttr("style"),jQuery(o).css({opacity:0,"z-index":1}),jQuery(n).css({opacity:1,"z-index":2}),jQuery(".bwg_image_info").show(),jQuery(o).html(""),b){bwg_change_watermark_container(g),bwg_params[g].bwg_trans_in_progress=!1;var e=bwg_params[g].data,t=bwg_params[g].event_stack}else{e="";gallery_box_data.bwg_trans_in_progress=!1;t=gallery_box_data.event_stack}if(void 0!==t&&0<t.length){var a=t[0].split("-");t.shift(),bwg_change_image(a[0],a[1],e,!0,g)}bwg_change_watermark_container()}b?(jQuery(".bwg_slideshow_filmstrip_thumbnail_"+g).removeClass("bwg_slideshow_thumb_active_"+g).addClass("bwg_slideshow_thumb_deactive_"+g),jQuery("#bwg_filmstrip_thumbnail_"+bwg_params[g].bwg_current_key+"_"+g).removeClass("bwg_slideshow_thumb_deactive_"+g).addClass("bwg_slideshow_thumb_active_"+g),jQuery(".bwg_slideshow_dots_"+g).removeClass("bwg_slideshow_dots_active_"+g).addClass("bwg_slideshow_dots_deactive_"+g),jQuery("#bwg_dots_"+bwg_params[g].bwg_current_key+"_"+g).removeClass("bwg_slideshow_dots_deactive_"+g).addClass("bwg_slideshow_dots_active_"+g),jQuery(".bwg_slide_bg_"+g).css("perspective",1e3)):(gallery_box_data.bwg_trans_in_progress=!0,jQuery(".bwg_filmstrip_thumbnail").removeClass("bwg_thumb_active").addClass("bwg_thumb_deactive"),jQuery("#bwg_filmstrip_thumbnail_"+gallery_box_data.bwg_current_key).removeClass("bwg_thumb_deactive").addClass("bwg_thumb_active"),jQuery(".bwg_slide_bg").css("perspective",1e3)),jQuery(o).css({transform:"translateZ("+e+"px)",backfaceVisibility:"hidden"}),jQuery(n).css({opacity:1,backfaceVisibility:"hidden",transform:"translateY("+a+"px) translateX("+t+"px) rotateY("+r+"deg) rotateX("+i+"deg)"}),jQuery(".bwg_slider"+w).css({transform:"translateZ(-"+e+"px)",transformStyle:"preserve-3d"}),setTimeout(function(){jQuery(".bwg_slider"+w).css({transition:"all "+u+"ms ease-in-out",transform:"translateZ(-"+e+"px) rotateX("+_+"deg) rotateY("+s+"deg)"})},20),jQuery(".bwg_slider"+w).one("webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend",jQuery.proxy(d)),0==u&&d()}function bwg_cubeH(e,t,a,i){var r=jQuery(e).width()/2;"right"==a?bwg_cube(r,r,0,0,90,0,-90,e,t,a,i):"left"==a&&bwg_cube(r,-r,0,0,-90,0,90,e,t,a,i)}function bwg_cubeV(e,t,a,i){var r=jQuery(e).height()/2;"right"==a?bwg_cube(r,0,-r,90,0,-90,0,e,t,a,i):"left"==a&&bwg_cube(r,0,r,-90,0,90,0,e,t,a,i)}function bwg_fade(e,t,a,i){var r,_=!1;function s(){jQuery(".bwg_image_info").show(),bwg_change_watermark_container(i),_?bwg_params[i].bwg_trans_in_progress=!1:gallery_box_data.bwg_trans_in_progress=!1}r=void 0!==i&&""!==i?(_=!0,bwg_params[i].bwg_trans_in_progress=!0,bwg_params[i].bwg_transition_duration):(gallery_box_data.bwg_trans_in_progress=!0,gallery_box_data.bwg_transition_duration),_?(jQuery(".bwg_slideshow_filmstrip_thumbnail_"+i).removeClass("bwg_slideshow_thumb_active_"+i).addClass("bwg_slideshow_thumb_deactive_"+i),jQuery("#bwg_filmstrip_thumbnail_"+bwg_params[i].bwg_current_key+"_"+i).removeClass("bwg_slideshow_thumb_deactive_"+i).addClass("bwg_slideshow_thumb_active_"+i),jQuery(".bwg_slideshow_dots_"+i).removeClass("bwg_slideshow_dots_active_"+i).addClass("bwg_slideshow_dots_deactive_"+i),jQuery("#bwg_dots_"+bwg_params[i].bwg_current_key+"_"+i).removeClass("bwg_slideshow_dots_deactive_"+i).addClass("bwg_slideshow_dots_active_"+i)):(jQuery(".bwg_filmstrip_thumbnail").removeClass("bwg_thumb_active").addClass("bwg_thumb_deactive"),jQuery("#bwg_filmstrip_thumbnail_"+gallery_box_data.bwg_current_key).removeClass("bwg_thumb_deactive").addClass("bwg_thumb_active")),bwg_testBrowser_cssTransitions()?(jQuery(t).css("transition","opacity "+r+"ms linear"),jQuery(e).css("transition","opacity "+r+"ms linear"),jQuery(e).css({opacity:0,"z-index":1}),jQuery(t).css({opacity:1,"z-index":2}),jQuery(t).one("webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend",jQuery.proxy(s))):(jQuery(e).animate({opacity:0,"z-index":1},r),jQuery(t).animate({opacity:1,"z-index":2},{duration:r,complete:function(){_?bwg_params[i].bwg_trans_in_progress=!1:gallery_box_data.bwg_trans_in_progress=!1,jQuery(e).html(""),s()}}),jQuery(e).fadeTo(r,0),jQuery(t).fadeTo(r,1)),0==r&&s()}function bwg_grid(e,t,a,i,r,_,s,o,n,l,g){var u,b=!1,w="";if(event_stack=void 0!==g&&""!==g?(b=!0,bwg_params[g].bwg_trans_in_progress=!0,w="_"+g,u=bwg_params[g].bwg_transition_duration,bwg_params[g].event_stack):(u=bwg_transition_duration,gallery_box_data.bwg_trans_in_progress=!0,gallery_box_data.event_stack),!bwg_testBrowser_cssTransitions())return bwg_fallback(o,n,l);b?(jQuery(".bwg_slideshow_filmstrip_thumbnail_"+g).removeClass("bwg_slideshow_thumb_active_"+g).addClass("bwg_slideshow_thumb_deactive_"+g),jQuery("#bwg_filmstrip_thumbnail_"+bwg_params[g].bwg_current_key+w).removeClass("bwg_slideshow_thumb_deactive_"+g).addClass("bwg_slideshow_thumb_active_"+g),jQuery(".bwg_slideshow_dots_"+g).removeClass("bwg_slideshow_dots_active_"+g).addClass("bwg_slideshow_dots_deactive_"+g),jQuery("#bwg_dots_"+bwg_params[g].bwg_current_key+w).removeClass("bwg_slideshow_dots_deactive_"+g).addClass("bwg_slideshow_dots_active_"+g)):(jQuery(".bwg_filmstrip_thumbnail").removeClass("bwg_thumb_active").addClass("bwg_thumb_deactive"),jQuery("#bwg_filmstrip_thumbnail_"+gallery_box_data.bwg_current_key).removeClass("bwg_thumb_deactive").addClass("bwg_thumb_active"));var d=u/(e+t);var h=jQuery(o).find("img"),c=jQuery(o).find("figure"),m=(jQuery(o).find("iframe").css("opacity",0),jQuery('<span style="display: block;" />').addClass("bwg_grid"+w));jQuery(o).prepend(m);var p,y,f,j,Q,v,x,k,C,z,I,F=jQuery(".bwg_slide_bg"+w),O=h.width(),M=h.height(),S=F.width(),E=F.height(),W=Math.floor(S/e),T=Math.floor(E/t),H=S-e*W,D=Math.ceil(H/e),P=E-t*T,B=Math.ceil(P/t),A=0,L=Math.ceil((jQuery(".bwg_slide_bg"+w).width()-h.width())/2),R=void 0===h.attr("src")?"":h.attr("src");i="min-auto"===(i="auto"===i?S:i)?-S:i,r="min-auto"===(r="auto"===r?E:r)?-E:r;for(var N=0;N<e;N++){var q=0,V=Math.floor((jQuery(".bwg_slide_bg"+w).height()-h.height())/2),U=W;if(0<H){var J=D<=H?D:H;U+=J,H-=J}for(var Y=0;Y<t;Y++){var G=T,$=P;0<$&&(G+=J=B<=$?B:P,$-=J),m.append((p=U,y=G,f=q,j=V,Q=A,v=L,x=R,k=O,C=M,z=g,void 0,I=(N+Y)*d,jQuery('<span class="bwg_gridlet'+w+'" />').css({display:"block",width:p,height:y,top:f,left:Q,backgroundImage:'url("'+x+'")',backgroundColor:b?jQuery(".bwg_slideshow_image_wrap_"+z).css("background-color"):jQuery(".spider_popup_wrap").css("background-color"),backgroundRepeat:"no-repeat",backgroundPosition:v+"px "+j+"px",backgroundSize:k+"px "+C+"px",transition:"all "+u+"ms ease-in-out "+I+"ms",transform:"none"}))),q+=G,V-=G}L-=U,A+=U}
1var X=m.children().last();function K(){if(jQuery(o).css({opacity:0,"z-index":1}),jQuery(n).css({opacity:1,"z-index":2}),h.css("opacity",1),c.css("opacity",1),m.remove(),b){bwg_params[g].bwg_trans_in_progress=!1;var e=bwg_params[g].event_stack,t=bwg_params[g].data}else{gallery_box_data.bwg_trans_in_progress=!1;e=gallery_box_data.event_stack,t=""}if(jQuery(".bwg_image_info").show(),jQuery(o).html(""),void 0!==e&&0<e.length){var a=e[0].split("-");e.shift(),bwg_change_image(a[0],a[1],t,!0,g)}b?bwg_change_watermark_container(g):bwg_change_watermark_container()}m.show(),h.css("opacity",0),c.css("opacity",0),m.children().first().addClass("rs-top-left"),m.children().last().addClass("rs-bottom-right"),m.children().eq(t-1).addClass("rs-bottom-left"),m.children().eq(-t).addClass("rs-top-right"),setTimeout(function(){m.children().css({opacity:s,transform:"rotate("+a+"deg) translateX("+i+"px) translateY("+r+"px) scale("+_+")"})},1),jQuery(n).css("opacity",1),jQuery(X).one("webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend",jQuery.proxy(K)),0==u&&K()}function bwg_sliceH(e,t,a,i){if("right"==a)var r="min-auto";else if("left"==a)r="auto";bwg_grid(1,8,0,r,0,1,0,e,t,a,i)}function bwg_sliceV(e,t,a,i){if("right"==a)var r="min-auto";else if("left"==a)r="auto";bwg_grid(10,1,0,0,r,1,0,e,t,a,i)}function bwg_slideV(e,t,a,i){if("right"==a)var r="auto";else if("left"==a)r="min-auto";bwg_grid(1,1,0,0,r,1,1,e,t,a,i)}function bwg_slideH(e,t,a,i){if("right"==a)var r="min-auto";else if("left"==a)r="auto";bwg_grid(1,1,0,r,0,1,1,e,t,a,i)}function bwg_scaleOut(e,t,a,i){bwg_grid(1,1,0,0,0,1.5,0,e,t,a,i)}function bwg_scaleIn(e,t,a,i){bwg_grid(1,1,0,0,0,.5,0,e,t,a,i)}function bwg_blockScale(e,t,a,i){bwg_grid(8,6,0,0,0,.6,0,e,t,a,i)}function bwg_kaleidoscope(e,t,a,i){bwg_grid(10,8,0,0,0,1,0,e,t,a,i)}function bwg_fan(e,t,a,i){if("right"==a)var r=45,_=100;else if("left"==a)r=-45,_=-100;bwg_grid(1,10,r,_,0,1,0,e,t,a,i)}function bwg_blindV(e,t,a,i){bwg_grid(1,8,0,0,0,.7,0,e,t,"",i)}function bwg_blindH(e,t,a,i){bwg_grid(10,1,0,0,0,.7,0,e,t,"",i)}function bwg_random(e,t,a,i){var r=["sliceH","sliceV","slideH","slideV","scaleOut","scaleIn","blockScale","kaleidoscope","fan","blindH","blindV"];this["bwg_"+r[Math.floor(Math.random()*r.length)]](e,t,a,i)}function bwg_change_watermark_container(t){jQuery(".bwg_slider"+(void 0!==t&&""!==t?"_"+t:"")).children().each(function(){if(2==jQuery(this).css("zIndex")){var e=jQuery(this).find("img");if(e.length)if(e.prop("complete"))bwg_change_each_watermark_container(e.width(),e.height(),t);else e.on("load",function(){bwg_change_each_watermark_container(e.width(),e.height(),t)});else(e=jQuery(this).find("iframe")).length||(e=jQuery(this).find("video")),bwg_change_each_watermark_container(e.width(),e.height(),t)}})}function bwg_change_each_watermark_container(e,t,a){var i=void 0!==a&&""!==a?"_"+a:"",r=void 0!==a&&""!==a?"_slideshow":"";if(jQuery(".bwg"+r+"_watermark_spun"+i).width(e),jQuery(".bwg"+r+"_watermark_spun"+i).height(t),jQuery(".bwg"+r+"_watermark"+i).css({display:""}),void 0===a||""===a){var _=0;(jQuery(".bwg_comment_container").hasClass("bwg_open")||jQuery(".bwg_ecommerce_container").hasClass("bwg_open"))&&(_=gallery_box_data.lightbox_comment_width),e<=jQuery(window).width()-_&&(jQuery(".bwg_watermark_image").css({width:(jQuery(".spider_popup_wrap").width()-_)*gallery_box_data.watermark_font_size/gallery_box_data.image_width}),jQuery(".bwg_watermark_text, .bwg_watermark_text:hover").css({fontSize:(jQuery(".spider_popup_wrap").width()-_)*gallery_box_data.watermark_font_size/gallery_box_data.image_width}))}else jQuery(".bwg"+r+"_title_spun"+i).width(e),jQuery(".bwg"+r+"_title_spun"+i).height(t),jQuery(".bwg"+r+"_description_spun"+i).width(e),jQuery(".bwg"+r+"_description_spun"+i).height(t);jQuery.trim(jQuery(".bwg"+r+"_title_text"+i).text())&&jQuery(".bwg_slideshow_title_text"+i).css({display:""}),jQuery.trim(jQuery(".bwg"+r+"_description_text"+i).text())&&jQuery(".bwg"+r+"_description_text"+i).css({display:""})}function bwg_set_filmstrip_pos(e,t,a){var i,r=void 0!==t&&""!==t?"_"+t:"",_=void 0!==t&&""!==t?"_slideshow":"";i=void 0!==t&&""!==t?bwg_params[t].left_or_top:gallery_box_data.left_or_top;
1var s=parseInt(jQuery(".bwg_filmstrip_thumbnails").attr("data-all-images-top-bottom-space")),o=parseInt(jQuery(".bwg_filmstrip_thumbnails").attr("data-all-images-right-left-space"));if(void 0===t||""===t){if("outerWidth"==gallery_box_data.outerWidth_or_outerHeight)var n=-bwg_current_filmstrip_pos-jQuery(".bwg_filmstrip_thumbnail").outerWidth(!0)/2;else if("outerHeight"==gallery_box_data.outerWidth_or_outerHeight)n=-bwg_current_filmstrip_pos-jQuery(".bwg_filmstrip_thumbnail").outerHeight(!0)/2;if("width"==gallery_box_data.width_or_height)var l=Math.min(0,Math.max(e-jQuery(".bwg_filmstrip_thumbnails").width(),n+e/2));else if("height"==gallery_box_data.width_or_height)l=Math.min(0,Math.max(e-jQuery(".bwg_filmstrip_thumbnails").height(),n+e/2))}else if("width"==bwg_params[t].width_or_height)n=-bwg_params[t].bwg_current_filmstrip_pos-(jQuery(".bwg_slideshow_filmstrip_thumbnail"+r).width()+bwg_params[t].filmstrip_thumb_margin_hor)/2,l=Math.min(0,Math.max(e-jQuery(".bwg_slideshow_filmstrip_thumbnails"+r).width(),n+e/2));else n=-bwg_params[t].bwg_current_filmstrip_pos-(jQuery(".bwg_slideshow_filmstrip_thumbnail"+r).height()+bwg_params[t].filmstrip_thumb_margin_hor)/2,l=Math.min(0,Math.max(e-jQuery(".bwg_slideshow_filmstrip_thumbnails"+r).height(),n+e/2));0<l+o&&(o=0),0<l+s&&(s=0),"left"==i?jQuery(".bwg"+_+"_filmstrip_thumbnails"+r).animate({left:l+o},{duration:500,complete:function(){bwg_filmstrip_arrows(t)}}):jQuery(".bwg"+_+"_filmstrip_thumbnails"+r).animate({top:l+s},{duration:500,complete:function(){bwg_filmstrip_arrows(t)}})}function bwg_filmstrip_arrows(e){var t=void 0!==e&&""!==e?"_"+e:"",a=void 0!==e&&""!==e?"_slideshow":"";if("width"==(void 0!==e&&""!==e?bwg_params[e].width_or_heigh:gallery_box_data.width_or_height))var i=jQuery(".bwg"+a+"_filmstrip_thumbnails"+t).width(),r=jQuery(".bwg"+a+"_filmstrip"+t).width();else i=jQuery(".bwg"+a+"_filmstrip_thumbnails"+t).height(),r=jQuery(".bwg"+a+"_filmstrip"+t).height();i<r?(jQuery(".bwg"+a+"_filmstrip_left"+t).hide(),jQuery(".bwg"+a+"_filmstrip_right"+t).hide()):(jQuery(".bwg"+a+"_filmstrip_left"+t).show(),jQuery(".bwg"+a+"_filmstrip_right"+t).show())}function bwg_move_filmstrip(e){var t,a,i,r,_,s,o=void 0!==e&&""!==e?"_"+e:"",n=void 0!==e&&""!==e?"_slideshow":"",l=void 0!==e&&""!==e?bwg_params[e].outerWidth_or_outerHeight:gallery_box_data.outerWidth_or_outerHeight,g=void 0!==e&&""!==e?bwg_params[e].left_or_top:gallery_box_data.left_or_top;a="outerWidth"==l?(t=jQuery(".bwg"+n+"_filmstrip"+o).outerWidth(!0),jQuery(".bwg"+n+"_filmstrip_thumbnails"+o).outerWidth(!0)):(t=jQuery(".bwg"+n+"_filmstrip"+o).outerHeight(!0),jQuery(".bwg"+n+"_filmstrip_thumbnails"+o).outerHeight(!0)),s="left"==g?(i=jQuery(".bwg"+n+"_thumb_active"+o).position().left,r="outerWidth"==l?jQuery(".bwg"+n+"_thumb_active"+o).position().left+jQuery(".bwg"+n+"_thumb_active"+o).outerWidth(!0):jQuery(".bwg"+n+"_thumb_active"+o).position().left+jQuery(".bwg"+n+"_thumb_active"+o).outerHeight(!0),_=jQuery(".bwg"+n+"_filmstrip_thumbnails"+o).position().left,Math.abs(jQuery(".bwg"+n+"_filmstrip_thumbnails"+o).position().left)+t):(i=jQuery(".bwg"+n+"_thumb_active"+o).position().top,r="outerWidth"==l?jQuery(".bwg"+n+"_thumb_active"+o).position().top+jQuery(".bwg"+n+"_thumb_active"+o).outerWidth(!0):jQuery(".bwg"+n+"_thumb_active"+o).position().top+jQuery(".bwg"+n+"_thumb_active"+o).outerHeight(!0),_=jQuery(".bwg"+n+"_filmstrip_thumbnails"+o).position().top,Math.abs(jQuery(".bwg"+n+"_filmstrip_thumbnails"+o).position().top)+t),a<t||(i<Math.abs(_)?"left"==g?jQuery(".bwg"+n+"_filmstrip_thumbnails"+o).animate({left:-i},{duration:500,complete:function(){bwg_filmstrip_arrows(e)}}):jQuery(".bwg"+n+"_filmstrip_thumbnails"+o).animate({top:-i},{duration:500,complete:function(){bwg_filmstrip_arrows(e)}}):s<r&&("left"==g?jQuery(".bwg"+n+"_filmstrip_thumbnails"+o).animate({left:-(r-t)},{duration:500,complete:function(){bwg_filmstrip_arrows(e)}}):jQuery(".bwg"+n+"_filmstrip_thumbnails"+o).animate({top:-(r-t)},{duration:500,complete:function(){bwg_filmstrip_arrows(e)}})))}function bwg_move_dots(e){var t=jQuery(".bwg_slideshow_dots_active_"+e).position().left,a=jQuery(".bwg_slideshow_dots_active_"+e).position().left+jQuery(".bwg_slideshow_dots_active_"+e).outerWidth(!0),i=jQuery(".bwg_slideshow_dots_container_"+e).outerWidth(!0),r=jQuery(".bwg_slideshow_dots_thumbnails_"+e).outerWidth(!1),_=jQuery(".bwg_slideshow_dots_thumbnails_"+e).position().left,s=Math.abs(jQuery(".bwg_slideshow_dots_thumbnails_"+e).position().left)+i;r<i||(t<Math.abs(_)?jQuery(".bwg_slideshow_dots_thumbnails_"+e).animate({left:-t},{duration:500,complete:function(){}}):s<a&&jQuery(".bwg_slideshow_dots_thumbnails_"+e).animate({left:-(a-i)},{duration:500,complete:function(){}}))}function bwg_testBrowser_cssTransitions(e){return bwg_testDom("Transition",e)}function bwg_testBrowser_cssTransforms3d(e){return bwg_testDom("Perspective",e)}function bwg_testDom(e,t){for(var a=["","Webkit","Moz","ms","O","Khtml"],i=a.length;i--;)if(void 0!==document.body.style[a[i]+e])return!0;return!1}function bwg_fallback(e,t,a,i){bwg_fade(e,t,a,i)}function bwg_fallback3d(e,t,a,i){bwg_sliceV(e,t,a,i)}function bwg_none(e,t,a,i){var r=void 0!==i&&""!==i?"_"+i:"";if(jQuery(e).css({opacity:0,"z-index":1}),jQuery(t).css({opacity:1,"z-index":2}),void 0!==i&&""!==i){var _=bwg_params[i].bwg_current_key;bwg_change_watermark_container(i),jQuery(".bwg_slideshow_filmstrip_thumbnail"+r).removeClass("bwg_slideshow_thumb_active"+r).addClass("bwg_slideshow_thumb_deactive"+r),jQuery("#bwg_filmstrip_thumbnail_"+_+r).removeClass("bwg_slideshow_thumb_deactive"+r).addClass("bwg_slideshow_thumb_active"+r),jQuery(".bwg_slideshow_dots"+r).removeClass("bwg_slideshow_dots_active"+r).addClass("bwg_slideshow_dots_deactive"+r),jQuery("#bwg_dots_"+_+r).removeClass("bwg_slideshow_dots_deactive"+r).addClass("bwg_slideshow_dots_active"+r)}else jQuery(".bwg_image_info").show(),gallery_box_data.bwg_trans_in_progress=!1,jQuery(e).html(""),bwg_change_watermark_container()}function bwg_iterator(e){var t=1;return void 0!==e&&""!==e&&void 0!==bwg_params[e]&&1==bwg_params[e].enable_slideshow_shuffle&&(t=Math.floor((bwg_params[e].data.length-1)*Math.random()+1)),t}function bwg_change_image_slideshow(e,t,a,i,r){a=bwg_params[r].data;if(jQuery("#bwg_slideshow_image_container_"+r).find("iframe").each(function(){jQuery(this)[0].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"),jQuery(this)[0].contentWindow.postMessage('{ "method": "pause" }',"*"),jQuery(this)[0].contentWindow.postMessage("pause","*")}
1),jQuery("#image_id_"+r+"_"+a[e].id).find(".bwg_fb_video").each(function(){jQuery(this).attr("src",jQuery(this).attr("src"))}),a[t]){if(jQuery(".bwg_ctrl_btn_"+r).hasClass("bwg-icon-pause")&&bwg_play(bwg_params[r].data,r),i||(jQuery("#bwg_current_image_key_"+r).val(t),"-1"==e?e=jQuery(".bwg_slideshow_thumb_active_"+r).children("img").attr("image_key"):"-2"==e&&(e=jQuery(".bwg_slideshow_dots_active_"+r).attr("image_key"))),bwg_params[r].bwg_trans_in_progress)return void bwg_params[r].event_stack.push(e+"-"+t);var _="right";if(t<e)_="left";else if(e==t)return;jQuery(".bwg_slideshow_watermark_"+r).css({display:"none"}),jQuery(".bwg_slideshow_title_text_"+r).css({display:"none"}),jQuery(".bwg_slideshow_description_text_"+r).css({display:"none"}),"width"==bwg_params[r].width_or_height?bwg_params[r].bwg_current_filmstrip_pos=t*(jQuery(".bwg_slideshow_filmstrip_thumbnail_"+r).width()+2+2*bwg_params[r].lightbox_filmstrip_thumb_border_width):bwg_params[r].bwg_current_filmstrip_pos=t*(jQuery(".bwg_slideshow_filmstrip_thumbnail_"+r).height()+2+2*bwg_params[r].lightbox_filmstrip_thumb_border_width),e=t,bwg_params[r].bwg_current_key=e,jQuery("#bwg_slideshow_image_"+r).attr("image_id",a[t].id),jQuery(".bwg_slideshow_title_text_"+r).html(jQuery('<span style="display: block;" />').html(a[t].alt).text()),jQuery(".bwg_slideshow_description_text_"+r).html(jQuery('<span style="display: block;" />').html(a[t].description).text());var s=2==jQuery(".bwg_slideshow_image_spun_"+r).css("zIndex")?".bwg_slideshow_image_spun_"+r:".bwg_slideshow_image_second_spun_"+r,o=s==".bwg_slideshow_image_second_spun_"+r?".bwg_slideshow_image_spun_"+r:".bwg_slideshow_image_second_spun_"+r,n=-1<a[t].filetype.indexOf("EMBED_"),l=-1<a[t].filetype.indexOf("INSTAGRAM_POST"),g=-1<a[t].filetype.indexOf("INSTAGRAM_VIDEO"),u=jQuery(s).height(),b=jQuery(s).width(),w='<span class="bwg_slideshow_image_spun1_'+r+'" style="display:  '+(n?"block":"table")+' ;width: inherit; height: inherit;"><span class="bwg_slideshow_image_spun2_'+r+'" style="display: '+(n?"block":"table-cell")+'; vertical-align: middle; text-align: center; ">';if(n){if(w+='<span style="height: '+u+"px; width: "+b+'px;" class="bwg_popup_embed bwg_popup_watermark">',g&&(w+='<span class="bwg_inst_play_btn_cont" onclick="bwg_play_instagram_video(this)"><span class="bwg_inst_play"></span></span>'),l){var d=0,h=0;u<b+88?d=(h=u)-88:h=(d=b)+88,w+=spider_display_embed(a[t].filetype,decodeURIComponent(a[t].image_url),a[t].filename,{class:"bwg_embed_frame","data-width":a[t].image_width,"data-height":a[t].image_height,frameborder:"0",allowfullscreen:"allowfullscreen",style:"width:"+d+"px; height:"+h+"px; vertical-align:middle; display:inline-block; position:relative;"})}else w+=spider_display_embed(a[t].filetype,decodeURIComponent(a[t].image_url),a[t].filename,{class:"bwg_embed_frame",frameborder:"0",allowfullscreen:"allowfullscreen",style:"width:inherit; height:inherit; vertical-align:middle; display:table-cell;"});w+="</span>"}else{if("do_nothing"!=bwg_params[r].thumb_click_action){var c="";"open_lightbox"==bwg_params[r].thumb_click_action?c+=' class="bwg_lightbox" data-image-id="'+a[t].id+'" data-elementor-open-lightbox="no"':"redirect_to_url"==bwg_params[r].thumb_click_action&&a[t].redirect_url&&(c+='href="'+a[t].redirect_url+'"'+(bwg_params[r].thumb_link_target&&1==bwg_params[r].thumb_link_target?' target="_blank"':"")),w+="<a "+c+">"}w+='<img style="max-height: '+u+"px !important; max-width: "+b+'px !important; display:inline-block;" ',w+=' class="bwg_slide bwg_slideshow_image_'+r+'" ',w+=' id="bwg_slideshow_image_'+r+'" ',w+=' src="'+bwg_params[r].upload_url+jQuery("<span style='display: block;' />").html(decodeURIComponent(a[t].image_url)).text()+'" alt="'+a[t].alt+'" image_id="'+a[t].id+'" /></a>'}w+="</span></span>",jQuery(o).html(w),bwg_params[r].preload_images&&bwg_preload_images(t,r),window["bwg_"+bwg_params[r].slideshow_effect](s,o,_,r),0<bwg_params[r].enable_slideshow_filmstrip?bwg_move_filmstrip(r):bwg_move_dots(r),a[t].is_embed_video?jQuery("#bwg_slideshow_play_pause_"+r).css({display:"none"}):jQuery("#bwg_slideshow_play_pause_"+r).css({display:""})}bwg_add_lightbox()}function bwg_preload_images_slideshow(e,t){var a=bwg_params[t].data;count=bwg_params[t].preload_images_count/2;var i=a.length;if(i<bwg_params[t].preload_images_count&&(count=0),0!=count)for(var r=e-count;r<e+count;r++){var _=parseInt((r+i)%i),s=-1<a[_].filetype.indexOf("EMBED_");void 0!==a[_]&&(s||jQuery("<img/>").attr("src",bwg_params[t].upload_url+jQuery('<span style="display: block;" />').html(decodeURIComponent(a[_].image_url)).text()))}else for(r=0;r<a.length;r++){s=-1<a[r].filetype.indexOf("EMBED_");void 0!==a[r]&&(s||jQuery("<img/>").attr("src",bwg_params[t].upload_url+jQuery('<span style="display: block;" />').html(decodeURIComponent(a[r].image_url)).text()))}}function bwg_preload_images(e,t){void 0!==t&&""!==t?bwg_preload_images_slideshow(e,t):bwg_preload_images_lightbox(e)}function bwg_popup_resize_slidshow(e){var t=jQuery("#bwg_container1_"+e).parent();t.hasClass("elementor-tab-content")&&t.width(t.closest(".elementor-widget-wrap").width());var a=t.width(),i=bwg_params[e].data;if(a>=bwg_params[e].image_width){jQuery(".bwg_slideshow_image_wrap_"+e).css({width:bwg_params[e].image_width}),jQuery(".bwg_slideshow_image_wrap_"+e).css({height:bwg_params[e].image_height}),jQuery(".bwg_slideshow_image_container_"+e).css({width:"horizontal"==bwg_params[e].filmstrip_direction?bwg_params[e].image_width:bwg_params[e].image_width-bwg_params[e].slideshow_filmstrip_width}),jQuery(".bwg_slideshow_image_container_"+e).css({height:"horizontal"==bwg_params[e].filmstrip_direction?bwg_params[e].image_height-bwg_params[e].slideshow_filmstrip_he
1ight:bwg_params[e].image_height}),jQuery(".bwg_slideshow_image_"+e).css({cssText:(bwg_params[e].filmstrip_direction,bwg_params[e].image_width)}),jQuery(".bwg_slideshow_embed_"+e).css({cssText:(bwg_params[e].filmstrip_direction,bwg_params[e].image_width)}),bwg_resize_instagram_post(e),bwg_change_watermark_container(e);var r="horizontal"==bwg_params[e].filmstrip_direction?"width: "+bwg_params[e].image_width:"height: "+bwg_params[e].image_height,_="horizontal"==bwg_params[e].filmstrip_direction?"width: "+(bwg_params[e].image_width-40):"height: "+(bwg_params[e].image_height-40);jQuery(".bwg_slideshow_filmstrip_container_"+e).css({cssText:r}),jQuery(".bwg_slideshow_filmstrip_"+e).css({cssText:_}),jQuery(".bwg_slideshow_dots_container_"+e).css({width:bwg_params[e].image_width}),jQuery("#bwg_slideshow_play_pause-ico_"+e).css({fontSize:bwg_params[e].slideshow_play_pause_btn_size}),"image"==bwg_params[e].watermark_type&&jQuery(".bwg_slideshow_watermark_image_"+e).css({maxWidth:bwg_params[e].watermark_width,maxHeight:bwg_params[e].watermark_height}),"text"==bwg_params[e].watermark_type&&jQuery(".bwg_slideshow_watermark_text_"+e+", .bwg_slideshow_watermark_text_"+e+" :hover").css({fontSize:bwg_params[e].watermark_font_size}),jQuery(".bwg_slideshow_title_text_"+e).css({fontSize:2*bwg_params[e].slideshow_title_font_size}),jQuery(".bwg_slideshow_description_text_"+e).css({fontSize:2*bwg_params[e].slideshow_description_font_size})}else jQuery(".bwg_slideshow_image_wrap_"+e).css({width:a}),jQuery(".bwg_slideshow_image_wrap_"+e).css({height:a*bwg_params[e].image_height/bwg_params[e].image_width}),jQuery(".bwg_slideshow_image_container_"+e).css({width:a-("horizontal"==bwg_params[e].filmstrip_direction?0:bwg_params[e].slideshow_filmstrip_width)}),jQuery(".bwg_slideshow_image_container_"+e).css({height:a*bwg_params[e].image_height/bwg_params[e].image_width-("horizontal"==bwg_params[e].filmstrip_direction?bwg_params[e].slideshow_filmstrip_height:0)}),jQuery(".bwg_slideshow_image_"+e).css({cssText:"max-width: "+(a-("horizontal"==bwg_params[e].filmstrip_direction?0:bwg_params[e].slideshow_filmstrip_width))+"px !important; max-height: "+(a*(bwg_params[e].image_height/bwg_params[e].image_width)-("horizontal"==bwg_params[e].filmstrip_direction?bwg_params[e].slideshow_filmstrip_height:0)-1)+"px !important;"}),jQuery(".bwg_slideshow_embed_"+e).css({cssText:"width: "+(a-("horizontal"==bwg_params[e].filmstrip_direction?0:bwg_params[e].slideshow_filmstrip_width))+"px !important; height: "+(a*(bwg_params[e].image_height/bwg_params[e].image_width)-("horizontal"==bwg_params[e].filmstrip_direction?bwg_params[e].slideshow_filmstrip_height:0)-1)+"px !important;"}),bwg_resize_instagram_post(e),bwg_change_watermark_container(e),"horizontal"==bwg_params[e].filmstrip_direction?(jQuery(".bwg_slideshow_filmstrip_container_"+e).css({width:a}),jQuery(".bwg_slideshow_filmstrip_"+e).css({width:a-40})):(jQuery(".bwg_slideshow_filmstrip_container_"+e).css({height:a*bwg_params[e].image_height/bwg_params[e].image_width}),jQuery(".bwg_slideshow_filmstrip_"+e).css({height:a*bwg_params[e].image_height/bwg_params[e].image_width-40})),jQuery(".bwg_slideshow_dots_container_"+e).css({width:a}),jQuery("#bwg_slideshow_play_pause-ico_"+e).css({fontSize:a*bwg_params[e].slideshow_play_pause_btn_size/bwg_params[e].image_width}),jQuery(".bwg_slideshow_watermark_image_"+e).css({maxWidth:a*bwg_params[e].watermark_width/bwg_params[e].image_width,maxHeight:a*bwg_params[e].watermark_height/bwg_params[e].image_width}),jQuery(".bwg_slideshow_watermark_text_"+e+", .bwg_slideshow_watermark_text_"+e+":hover").css({fontSize:a*bwg_params[e].watermark_font_size/bwg_params[e].image_width}),jQuery(".bwg_slideshow_title_text_"+e).css({fontSize:2*a*bwg_params[e].slideshow_title_font_size/bwg_params[e].image_width}),jQuery(".bwg_slideshow_description_text_"+e).css({fontSize:2*a*bwg_params[e].slideshow_description_font_size/bwg_params[e].image_width}),jQuery(".bwg_slideshow_image_"+e).css({display:"inline-block"});i[parseInt(jQuery("#bwg_current_image_key_"+e).val())].is_embed_video?jQuery("#bwg_slideshow_play_pause_"+e).css({display:"none"}):jQuery("#bwg_slideshow_play_pause_"+e).css({display:""})}function bwg_popup_resize(e){void 0!==e&&""!==e?bwg_popup_resize_slidshow(e):bwg_popup_resize_lightbox()}function bwg_change_image(e,t,a,i,r){void 0!==r&&""!==r?bwg_change_image_slideshow(e,t,a,i,r):bwg_change_image_lightbox(e,t,a=gallery_box_data.data,i)}function bwg_resize_instagram_post(e){if(void 0!==e&&""!==e){if(jQuery(".inner_instagram_iframe_bwg_embed_frame_"+e).length){var t=jQuery(".bwg_slideshow_embed_"+e).width(),a=jQuery(".bwg_slideshow_embed_").height();jQuery(".inner_instagram_iframe_bwg_embed_frame_"+e).each(function(){var e=jQuery(this).parent();a/(parseInt(e.attr("data-height"))+96)<t/parseInt(e.attr("data-width"))?(e.height(a),e.width((e.height()-96)*e.attr("data-width")/e.attr("data-height")+16)):(e.width(t),e.height((e.width()-16)*e.attr("data-height")/e.attr("data-width")+96))}),bwg_change_watermark_container(e)}}else if(jQuery(".inner_instagram_iframe_bwg_embed_frame").length){t=jQuery(".bwg_image_container").width(),a=jQuery(".bwg_image_container").height();jQuery(".inner_instagram_iframe_bwg_embed_frame").each(function(){var e=jQuery(this).parent();a/(parseInt(e.attr("data-height"))+176)<t/parseInt(e.attr("data-width"))?(e.height(a),e.width((e.height()-176)*e.attr("data-width")/e.attr("data-height")+16)):(e.width(t),e.height((e.width()-16)*e.attr("data-height")/e.attr("data-width")+96)),e.css({top:.5*(a-e.height())})}),bwg_change_watermark_container()}}function bwg_play(t,a){if(void 0!==a&&""!==a)t=bwg_params[a].data;
1void 0!==a&&""!==a?(window.clearInterval(window["bwg_playInterval"+a]),window["bwg_playInterval"+a]=setInterval(function(){var e=1;1==bwg_params[a].enable_slideshow_shuffle&&(e=Math.floor((t.length-1)*Math.random()+1)),bwg_change_image(parseInt(jQuery("#bwg_current_image_key_"+a).val()),(parseInt(jQuery("#bwg_current_image_key_"+a).val())+e)%t.length,t,"",a)},1e3*bwg_params[a].slideshow_interval)):(window.clearInterval(gallery_box_data.bwg_playInterval),gallery_box_data.bwg_playInterval=setInterval(function(){jQuery(".bwg_comment_container").hasClass("bwg_open")||jQuery(".bwg_play_pause").length&&jQuery(".bwg_play_pause").hasClass("bwg-icon-play")||(void 0===t||void 0!==t[parseInt(jQuery("#bwg_current_image_key").val())+1]?bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),parseInt(jQuery("#bwg_current_image_key").val())+1):1==gallery_box_data.enable_loop&&bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),0))},1e3*gallery_box_data.slideshow_interval))}function bwg_image_browser(e){if(jQuery("#bwg_embed_frame_16x9_"+e).width(jQuery("#bwg_embed_frame_16x9_"+e).parents(".image_browser_image_buttons_"+e).width()),jQuery("#bwg_embed_frame_16x9_"+e).height(.5625*jQuery("#bwg_embed_frame_16x9_"+e).width()),jQuery("#bwg_embed_frame_instapost_"+e).width(jQuery("#bwg_embed_frame_16x9_"+e).parents(".image_browser_image_buttons_"+e).width()),jQuery(".image_browser_images_conteiner_"+e).find(".fluid-width-video-wrapper").length){var t=jQuery(".image_browser_images_conteiner_"+e).find(".fluid-width-video-wrapper").contents();jQuery(".image_browser_images_conteiner_"+e).find(".fluid-width-video-wrapper").replaceWith(t)}jQuery(".bwg_embed_frame_instapost_"+e).height((jQuery(".bwg_embed_frame_instapost_"+e).width()-16)*jQuery(".bwg_embed_frame_instapost_"+e).attr("data-height")/jQuery(".bwg_embed_frame_instapost_"+e).attr("data-width")+96);var a=jQuery(".image_browser_images_"+e).width();a<=108?jQuery(".paging-input_"+e).css("display","none"):(a<=200?(jQuery(".paging-input_"+e).css("margin","0% 0% 0% 0%"),jQuery(".paging-input_"+e).css("display","inline")):a<=580?(jQuery(".paging-input_"+e).css("display","inline"),jQuery(".tablenav-pages_"+e+" a").css("font-size","13px"),jQuery(".paging-input_"+e).css("margin","0% 7% 0% 7%")):(jQuery(".tablenav-pages_"+e+" a").css("font-size","15px"),jQuery(".paging-input_"+e).css("margin","0%  14% 0%  14%"),jQuery(".paging-input_"+e).css("display","inline")),jQuery(".tablenav-pages_"+e+" .next-page").css("margin","0% 0% 0% 0%"),jQuery(".tablenav-pages_"+e+" .prev-page").css("margin","0% 0% 0% 0%"))}function bwg_disable_right_click(e){e.bind("contextmenu",function(){return!1}),e.css("webkitTouchCallout","none")}jQuery(function(){function a(e){bwg_slideshow_blur(e),bwg_carousel_blur(e),0<jQuery(".bwg_play_pause").length&&window.clearInterval(gallery_box_data.bwg_playInterval)}function i(e){e&&bwg_main_ready(e),bwg_slideshow_focus(),bwg_carousel_focus(),jQuery(".bwg_play_pause").length&&jQuery(".bwg_play_pause").hasClass("bwg-icon-play")&&!jQuery(".bwg_comment_container").hasClass("bwg_open")&&bwg_play(gallery_box_data.data)}var r=!1;jQuery(".bwg_container").each(function(){if(0<jQuery(this).find(".wd_error").length&&(r=!0),!r){var e=jQuery(this);if(e[0].offsetHeight)var t=0;else t=1;setInterval(function(){e[0].offsetHeight?1==t&&(t=0,i(e)):0==t&&a(!(t=1))},200)}}),r||jQuery(window).focus(function(){i()}).blur(function(){a(!0)})}),jQuery(window).on("resize",function(){setTimeout(function(){var e=!1;jQuery(".bwg_container").each(function(){0<jQuery(this).find(".wd_error").length&&(e=!0)}),bwg_tags_button_section_visibility(),e||(jQuery(".bwg-thumbnails, .bwg-masonry-thumbn
1ails, .bwg-album-thumbnails").each(function(){bwg_all_thumnails_loaded(this)}),bwg_slideshow_resize(),bwg_image_browser_resize(),bwg_carousel_resize(),bwg_blog_style_resize(),jQuery(".bwg-mosaic-thumbnails").each(function(){bwg_thumbnail_mosaic(this)})),bwg_resize_search_line()},0)}),jQuery(window).on("load",function(){var e=!1;jQuery(".bwg_container").each(function(){0<jQuery(this).find(".wd_error").length&&(e=!0)}),e||(bwg_blog_style_onload(),jQuery(".bwg-mosaic-thumbnails").each(function(){bwg_thumbnail_mosaic(this)}))}),jQuery(".bwg-masonry-thumb-span img, .bwg-mosaic-thumb-span img").on("error",function(){jQuery(this).height(100),jQuery(this).width(100)});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.