<h3 class="widget-title">Photo Gallery Slideshow</h3><p><strong>There are no images in this gallery.</strong></p><style>    #bwg_container1_0 {
visibility: hidden;
}
#bwg_container1_0 * {
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_image_wrap_0 * {
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
/*backface-visibility: hidden;
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;*/
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_image_wrap_0 {
background-color: #000000;
border-collapse: collapse;
display: table;
position: relative;
text-align: center;
width: 200px;
height: 200px;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_image_0 {
padding: 0 !important;
margin: 0 !important;
float: none !important;
max-width: 200px;
max-height: 200px;
vertical-align: middle;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_embed_0 {
padding: 0 !important;
margin: 0 !important;
float: none !important;
width: 200px;
height: 200px;
vertical-align: middle;
display: inline-block;
text-align: center;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_watermark_0 {
position: relative;
z-index: 15;
}
#bwg_container1_0 #bwg_container2_0 #bwg_slideshow_play_pause_0 {
background: transparent url("http://www.bludbros.com/blbwpr46/wp-content/plugins/photo-gallery/images/blank.gif") repeat scroll 0 0;
bottom: 0;
cursor: pointer;
display: table;
height: inherit;
outline: medium none;
position: absolute;
width: 30%;
left: 35%;
z-index: 13;
}
#bwg_container1_0 #bwg_container2_0 #bwg_slideshow_play_pause_0:hover #bwg_slideshow_play_pause-ico_0 {
display: inline-block !important;
}
#bwg_container1_0 #bwg_container2_0 #bwg_slideshow_play_pause_0:hover span {
position: relative;
z-index: 13;
}
#bwg_container1_0 #bwg_container2_0 #bwg_slideshow_play_pause_0 span {
display: table-cell;
text-align: center;
vertical-align: middle;
}
#bwg_container1_0 #bwg_container2_0 #bwg_slideshow_play_pause-ico_0 {  
display: none !important;
color: #FFFFFF;        
font-size: 60px;
cursor: pointer;
position: relative;
z-index: 13;
}
#bwg_container1_0 #bwg_container2_0 #bwg_slideshow_play_pause-ico_0:hover {  
color: #CCCCCC;
display: inline-block;
position: relative;
z-index: 13;
}
#bwg_container1_0 #bwg_container2_0 #spider_slideshow_left_0,
#bwg_container1_0 #bwg_container2_0 #spider_slideshow_right_0 {
background: transparent url("http://www.bludbros.com/blbwpr46/wp-content/plugins/photo-gallery/images/blank.gif") repeat scroll 0 0;
bottom: 35%;
cursor: pointer;
display: inline;
height: 30%;
outline: medium none;
position: absolute;
width: 35%;
/*z-index: 10130;*/
z-index: 13;
}
#bwg_container1_0 #bwg_container2_0 #spider_slideshow_left_0 {
left: 0;
}
#bwg_container1_0 #bwg_container2_0 #spider_slideshow_right_0 {
right: 0;
}
#bwg_container1_0 #bwg_container2_0 #spider_slideshow_left_0:hover,
#bwg_container1_0 #bwg_container2_0 #spider_slideshow_right_0:hover {
visibility: visible;
}
#bwg_container1_0 #bwg_container2_0 #spider_slideshow_left_0:hover span {
left: 20px;
}
#bwg_container1_0 #bwg_container2_0 #spider_slideshow_right_0:hover span {
left: auto;
right: 20px;
}
#bwg_container1_0 #bwg_container2_0 #spider_slideshow_left-ico_0 span,
#bwg_container1_0 #bwg_container2_0 #spider_slideshow_right-ico_0 span {
display: table-cell;
text-align: center;
vertical-align: middle;
z-index: 13;
}
#bwg_container1_0 #bwg_container2_0 #spider_slideshow_left-ico_0,
#bwg_container1_0 #bwg_container2_0 #spider_slideshow_right-ico_0 {
background-color: #000000;
border-radius: 20px;
border: 0px none #FFFFFF;
box-shadow: 0px 0px 0px #000000;
color: #FFFFFF;
height: 40px;
font-size: 20px;
width: 40px;
z-index: 13;
-moz-box-sizing: content-box;
box-sizing: content-box;
cursor: pointer;
display: table;
line-height: 0;
margin-top: -15px;
position: absolute;
top: 50%;
/*z-index: 10135;*/
opacity: 1.00;
filter: Alpha(opacity=100);
}
#bwg_container1_0 #bwg_container2_0 #spider_slideshow_left-ico_0:hover,
#bwg_container1_0 #bwg_container2_0 #spider_slideshow_right-ico_0:hover {
color: #CCCCCC;
cursor: pointer;
}
#spider_slideshow_left-ico_0{
left: -9999px;
}
#spider_slideshow_right-ico_0{
left: -9999px;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_image_container_0 {
display: table;
position: absolute;
text-align: center;
top: 0px;
vertical-align: middle;
width: 200px;
height: 200px;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_filmstrip_container_0 {
display: table;
height: 0px;
position: absolute;
width: 200px;
/*z-index: 10105;*/
top: 0;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_filmstrip_0 {
left: 20px;
overflow: hidden;
position: absolute;
width: 160px;
/*z-index: 10106;*/
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_filmstrip_thumbnails_0 {
height: 0px;
left: 0px;
margin: 0 auto;
overflow: hidden;
position: relative;
width: 0px;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_filmstrip_thumbnail_0 {
position: relative;
background: none;
border: 1px solid #000000;
border-radius: 0;
cursor: pointer;
float: left;
height: 0px;
margin: 0 1px;
width: 0px;
overflow: hidden;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_thumb_active_0 {
opacity: 1;
filter: Alpha(opacity=100);
border: 0px solid #FFFFFF;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_thumb_deactive_0 {
opacity: 0.80;
filter: Alpha(opacity=80);
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_filmstrip_thumbnail_img_0 {
display: block;
opacity: 1;
filter: Alpha(opacity=100);
padding: 0 !important;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_filmstrip_left_0 {
background-color: #3B3B3B;
cursor: pointer;
display: table-cell;
vertical-align: middle;
width: 20px;
/*z-index: 10106;*/
left: 0;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_filmstrip_right_0 {
background-color: #3B3B3B;
cursor: pointer;
right: 0;
width: 20px;
display: table-cell;
vertical-align: middle;
/*z-index: 10106;*/
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_filmstrip_left_0 i,
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_filmstrip_right_0 i {
color: #FFFFFF;
font-size: 20px;
}
#bwg_container1_0 #bwg_container2_0 .bwg_none_selectable_0 {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_watermark_container_0 {
display: table-cell;
margin: 0 auto;
position: relative;
vertical-align: middle;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_watermark_spun_0 {
display: table-cell;
overflow: hidden;
position: relative;
text-align: left;
vertical-align: bottom;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_title_spun_0 {
display: table-cell;
overflow: hidden;
position: relative;
text-align: right;
vertical-align: top;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_description_spun_0 {
display: table-cell;
overflow: hidden;
position: relative;
text-align: right;
vertical-align: bottom;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_watermark_image_0 {
padding: 0 !important;
float: none !important;
margin: 4px !important;
max-height: 90px;
max-width: 90px;
opacity: 0.30;
filter: Alpha(opacity=30);
position: relative;
z-index: 15;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_watermark_text_0,
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_watermark_text_0:hover {
text-decoration: none;
margin: 4px;
font-size: 20px;
font-family: segoe ui;
color: #FFFFFF !important;
opacity: 0.30;
filter: Alpha(opacity=30);
position: relative;
z-index: 15;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_title_text_0 {
text-decoration: none;
font-size: 16px;
font-family: segoe ui;
color: #FFFFFF !important;
opacity: 0.70;
filter: Alpha(opacity=70);
position: relative;
z-index: 11;
border-radius: 5px;
background-color: #000000;
padding: 0 0 0 0;
margin: 5px;
display: inline-block;
word-wrap: break-word;
word-break: break-word;
top:16px;      }
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_description_text_0 {
text-decoration: none;
font-size: 14px;
font-family: segoe ui;
color: #FFFFFF !important;
opacity: 0.70;
filter: Alpha(opacity=70);
position: relative;
z-index: 15;
border-radius: 0;
background-color: #000000;
padding: 5px 10px 5px 10px;
margin: 5px;
display: inline-block;
word-wrap: break-word;
word-break: break-word;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_description_text_0 * {
text-decoration: none;
color: #FFFFFF !important;                
}
#bwg_container1_0 #bwg_container2_0 .bwg_slide_container_0 {
display: table-cell;
margin: 0 auto;
position: absolute;
vertical-align: middle;
width: 100%;
height: 100%;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slide_bg_0 {
margin: 0 auto;
width: inherit;
height: inherit;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slider_0 {
height: inherit;
width: inherit;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_image_spun_0 {
width: inherit;
height: inherit;
display: table-cell;
filter: Alpha(opacity=100);
opacity: 1;
position: absolute;
vertical-align: middle;
z-index: 2;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_image_second_spun_0 {
width: inherit;
height: inherit;
display: table-cell;
filter: Alpha(opacity=0);
opacity: 0;
position: absolute;
vertical-align: middle;
z-index: 1;
}
#bwg_container1_0 #bwg_container2_0 .bwg_grid_0 {
display: none;
height: 100%;
overflow: hidden;
position: absolute;
width: 100%;
}
#bwg_container1_0 #bwg_container2_0 .bwg_gridlet_0 {
opacity: 1;
filter: Alpha(opacity=100);
position: absolute;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_dots_0 {
display: inline-block;
position: relative;
width: 12px;
height: 12px;
border-radius: 5px;
background: #F2D22E;
margin: 3px;
cursor: pointer;
overflow: hidden;
z-index: 17;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_dots_container_0 {
display: block;
overflow: hidden;
position: absolute;
width: 200px;
top: 0;
z-index: 17;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_dots_thumbnails_0 {
left: 0px;
font-size: 0;
margin: 0 auto;
overflow: hidden;
position: relative;
height: 18px;
width: 0px;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_dots_active_0 {
background: #FFFFFF;
opacity: 1;
filter: Alpha(opacity=100);
border: 1px solid #000000;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_dots_deactive_0 {
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_image_spun1_0 {
display: table; 
width: inherit; 
height: inherit;
}
#bwg_container1_0 #bwg_container2_0 .bwg_slideshow_image_spun2_0 {
display: table-cell; 
vertical-align: middle; 
text-align: center;
}
#bwg_container1_0 #bwg_container2_0 #spider_popup_overlay_0 {
background-color: #000000;
opacity: 0.70;
filter: Alpha(opacity=70);
}
</style>    <script>
var data_0 = [];
var event_stack_0 = [];
</script>
<img src="http://www.bludbros.com/blbwpr46/wp-content/plugins/photo-gallery/images/ajax_loader.gif" style="width: 30px; border: medium none; visibility: visible;">
<script language="javascript" type="text/javascript" src="http://www.bludbros.com/blbwpr46/wp-content/plugins/photo-gallery/js/bwg_embed.js?ver=1.3.38"></script>
<script>
var bwg_trans_in_progress_0 = false;
var bwg_transition_duration_0 = 1000;
var bwg_playInterval_0;
/* Stop autoplay.*/
window.clearInterval(bwg_playInterval_0);
/* Set watermark container size.*/
function bwg_change_watermark_container_0() {
jQuery(".bwg_slider_0").children().each(function() {
if (jQuery(this).css("zIndex") == 2) {
var bwg_current_image_span = jQuery(this).find("img");
if (!bwg_current_image_span.length) {
bwg_current_image_span = jQuery(this).find("iframe");
}
if (!bwg_current_image_span.length) {
bwg_current_image_span = jQuery(this).find("video");
}
var width = bwg_current_image_span.width();
var height = bwg_current_image_span.height();
jQuery(".bwg_slideshow_watermark_spun_0").width(width);
jQuery(".bwg_slideshow_watermark_spun_0").height(height);
jQuery(".bwg_slideshow_title_spun_0").width(width);
jQuery(".bwg_slideshow_title_spun_0").height(height);
jQuery(".bwg_slideshow_description_spun_0").width(width);
jQuery(".bwg_slideshow_description_spun_0").height(height);
jQuery(".bwg_slideshow_watermark_0").css({display: ''});
if (jQuery.trim(jQuery(".bwg_slideshow_title_text_0").text())) {
jQuery(".bwg_slideshow_title_text_0").css({display: ''});
}
if (jQuery.trim(jQuery(".bwg_slideshow_description_text_0").text())) {
jQuery(".bwg_slideshow_description_text_0").css({display: ''});
}
}
});
}
var bwg_current_key_0 = '';
var bwg_current_filmstrip_pos_0 = 0;
/* Set filmstrip initial position.*/
function bwg_set_filmstrip_pos_0(filmStripWidth) {
var selectedImagePos = -bwg_current_filmstrip_pos_0 - (jQuery(".bwg_slideshow_filmstrip_thumbnail_0").width() + 2) / 2;
var imagesContainerLeft = Math.min(0, Math.max(filmStripWidth - jQuery(".bwg_slideshow_filmstrip_thumbnails_0").width(), selectedImagePos + filmStripWidth / 2));
jQuery(".bwg_slideshow_filmstrip_thumbnails_0").animate({
left: imagesContainerLeft
}, {
duration: 500,
complete: function () { bwg_filmstrip_arrows_0(); }
});
}
function bwg_move_filmstrip_0() {
var image_left = jQuery(".bwg_slideshow_thumb_active_0").position().left;
var image_right = jQuery(".bwg_slideshow_thumb_active_0").position().left + jQuery(".bwg_slideshow_thumb_active_0").outerWidth(true);
var bwg_filmstrip_width = jQuery(".bwg_slideshow_filmstrip_0").outerWidth(true);
var bwg_filmstrip_thumbnails_width = jQuery(".bwg_slideshow_filmstrip_thumbnails_0").outerWidth(true);
var long_filmstrip_cont_left = jQuery(".bwg_slideshow_filmstrip_thumbnails_0").position().left;
var long_filmstrip_cont_right = Math.abs(jQuery(".bwg_slideshow_filmstrip_thumbnails_0").position().left) + bwg_filmstrip_width;
if (bwg_filmstrip_width > bwg_filmstrip_thumbnails_width) {
return;
}
if (image_left < Math.abs(long_filmstrip_cont_left)) {
jQuery(".bwg_slideshow_filmstrip_thumbnails_0").animate({
left: -image_left
}, {
duration: 500,
complete: function () { bwg_filmstrip_arrows_0(); }
});
}
else if (image_right > long_filmstrip_cont_right) {
jQuery(".bwg_slideshow_filmstrip_thumbnails_0").animate({
left: -(image_right - bwg_filmstrip_width)
}, {
duration: 500,
complete: function () { bwg_filmstrip_arrows_0(); }
});
}
}
function bwg_move_dots_0() {
var image_left = jQuery(".bwg_slideshow_dots_active_0").position().left;
var image_right = jQuery(".bwg_slideshow_dots_active_0").position().left + jQuery(".bwg_slideshow_dots_active_0").outerWidth(true);
var bwg_dots_width = jQuery(".bwg_slideshow_dots_container_0").outerWidth(true);
var bwg_dots_thumbnails_width = jQuery(".bwg_slideshow_dots_thumbnails_0").outerWidth(false);
var long_filmstrip_cont_left = jQuery(".bwg_slideshow_dots_thumbnails_0").position().left;
var long_filmstrip_cont_right = Math.abs(jQuery(".bwg_slideshow_dots_thumbnails_0").position().left) + bwg_dots_width;
if (bwg_dots_width > bwg_dots_thumbnails_width) {
return;
}
if (image_left < Math.abs(long_filmstrip_cont_left)) {
jQuery(".bwg_slideshow_dots_thumbnails_0").animate({
left: -image_left
}, {
duration: 500,
complete: function () {  }
});
}
else if (image_right > long_filmstrip_cont_right) {
jQuery(".bwg_slideshow_dots_thumbnails_0").animate({
left: -(image_right - bwg_dots_width)
}, {
duration: 500,
complete: function () {  }
});
}
}
/* Show/hide filmstrip arrows.*/
function bwg_filmstrip_arrows_0() {
if (jQuery(".bwg_slideshow_filmstrip_thumbnails_0").width() < jQuery(".bwg_slideshow_filmstrip_0").width()) {
jQuery(".bwg_slideshow_filmstrip_left_0").hide();
jQuery(".bwg_slideshow_filmstrip_right_0").hide();
}
else {
jQuery(".bwg_slideshow_filmstrip_left_0").show();
jQuery(".bwg_slideshow_filmstrip_right_0").show();
}
}
function bwg_testBrowser_cssTransitions_0() {
return bwg_testDom_0('Transition');
}
function bwg_testBrowser_cssTransforms3d_0() {
return bwg_testDom_0('Perspective');
}
function bwg_testDom_0(prop) {
/* Browser vendor CSS prefixes.*/
var browserVendors = ['', '-webkit-', '-moz-', '-ms-', '-o-', '-khtml-'];
/* Browser vendor DOM prefixes.*/
var domPrefixes = ['', 'Webkit', 'Moz', 'ms', 'O', 'Khtml'];
var i = domPrefixes.length;
while (i--) {
if (typeof document.body.style[domPrefixes[i] + prop] !== 'undefined') {
return true;
}
}
return false;
}
function bwg_cube_0(tz, ntx, nty, nrx, nry, wrx, wry, current_image_class, next_image_class, direction) {
/* If browser does not support 3d transforms/CSS transitions.*/
if (!bwg_testBrowser_cssTransitions_0()) {
return bwg_fallback_0(current_image_class, next_image_class, direction);
}
if (!bwg_testBrowser_cssTransforms3d_0()) {
return bwg_fallback3d_0(current_image_class, next_image_class, direction);
}
bwg_trans_in_progress_0 = true;
/* Set active thumbnail.*/
jQuery(".bwg_slideshow_filmstrip_thumbnail_0").removeClass("bwg_slideshow_thumb_active_0").addClass("bwg_slideshow_thumb_deactive_0");
jQuery("#bwg_filmstrip_thumbnail_" + bwg_current_key_0 + "_0").removeClass("bwg_slideshow_thumb_deactive_0").addClass("bwg_slideshow_thumb_active_0");
jQuery(".bwg_slideshow_dots_0").removeClass("bwg_slideshow_dots_active_0").addClass("bwg_slideshow_dots_deactive_0");
jQuery("#bwg_dots_" + bwg_current_key_0 + "_0").removeClass("bwg_slideshow_dots_deactive_0").addClass("bwg_slideshow_dots_active_0");
jQuery(".bwg_slide_bg_0").css('perspective', 1000);
jQuery(current_image_class).css({
transform : 'translateZ(' + tz + 'px)',
backfaceVisibility : 'hidden'
});
jQuery(next_image_class).css({
opacity : 1,
filter: 'Alpha(opacity=100)',
zIndex: 2,
backfaceVisibility : 'hidden',
transform : 'translateY(' + nty + 'px) translateX(' + ntx + 'px) rotateY('+ nry +'deg) rotateX('+ nrx +'deg)'
});
jQuery(".bwg_slider_0").css({
transform: 'translateZ(-' + tz + 'px)',
transformStyle: 'preserve-3d'
});
/* Execution steps.*/
setTimeout(function () {
jQuery(".bwg_slider_0").css({
transition: 'all ' + bwg_transition_duration_0 + 'ms ease-in-out',
transform: 'translateZ(-' + tz + 'px) rotateX('+ wrx +'deg) rotateY('+ wry +'deg)'
});
}, 20);
/* After transition.*/
jQuery(".bwg_slider_0").one('webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend', jQuery.proxy(bwg_after_trans));
function bwg_after_trans() {
/*if (bwg_from_focus_0) {
bwg_from_focus_0 = false;
return;
}*/
jQuery(current_image_class).removeAttr('style');
jQuery(next_image_class).removeAttr('style');
jQuery(".bwg_slider_0").removeAttr('style');
jQuery(current_image_class).css({'opacity' : 0, filter: 'Alpha(opacity=0)', 'z-index': 1});
jQuery(next_image_class).css({'opacity' : 1, filter: 'Alpha(opacity=100)', 'z-index' : 2});
bwg_change_watermark_container_0();
bwg_trans_in_progress_0 = false;
if (typeof event_stack_0 !== 'undefined') {
if (event_stack_0.length > 0) {
key = event_stack_0[0].split("-");
event_stack_0.shift();
bwg_change_image_0(key[0], key[1], data_0, true);
}
}
}
}
function bwg_cubeH_0(current_image_class, next_image_class, direction) {
/* Set to half of image width.*/
var dimension = jQuery(current_image_class).width() / 2;
if (direction == 'right') {
bwg_cube_0(dimension, dimension, 0, 0, 90, 0, -90, current_image_class, next_image_class, direction);
}
else if (direction == 'left') {
bwg_cube_0(dimension, -dimension, 0, 0, -90, 0, 90, current_image_class, next_image_class, direction);
}
}
/* For browsers that does not support transitions.*/
function bwg_fallback_0(current_image_class, next_image_class, direction) {
bwg_fade_0(current_image_class, next_image_class, direction);
}
/* For browsers that support transitions, but not 3d transforms (only used if primary transition makes use of 3d-transforms).*/
function bwg_fallback3d_0(current_image_class, next_image_class, direction) {
bwg_sliceV_0(current_image_class, next_image_class, direction);
}
function bwg_none_0(current_image_class, next_image_class, direction) {
jQuery(current_image_class).css({'opacity' : 0, 'z-index': 1});
jQuery(next_image_class).css({'opacity' : 1, 'z-index' : 2});
bwg_change_watermark_container_0();
/* Set active thumbnail.*/
jQuery(".bwg_slideshow_filmstrip_thumbnail_0").removeClass("bwg_slideshow_thumb_active_0").addClass("bwg_slideshow_thumb_deactive_0");
jQuery("#bwg_filmstrip_thumbnail_" + bwg_current_key_0 + "_0").removeClass("bwg_slideshow_thumb_deactive_0").addClass("bwg_slideshow_thumb_active_0");
jQuery(".bwg_slideshow_dots_0").removeClass("bwg_slideshow_dots_active_0").addClass("bwg_slideshow_dots_deactive_0");
jQuery("#bwg_dots_" + bwg_current_key_0 + "_0").removeClass("bwg_slideshow_dots_deactive_0").addClass("bwg_slideshow_dots_active_0");
}
function bwg_fade_0(current_image_class, next_image_class, direction) {
/* Set active thumbnail.*/
jQuery(".bwg_slideshow_filmstrip_thumbnail_0").removeClass("bwg_slideshow_thumb_active_0").addClass("bwg_slideshow_thumb_deactive_0");
jQuery("#bwg_filmstrip_thumbnail_" + bwg_current_key_0 + "_0").removeClass("bwg_slideshow_thumb_deactive_0").addClass("bwg_slideshow_thumb_active_0");
jQuery(".bwg_slideshow_dots_0").removeClass("bwg_slideshow_dots_active_0").addClass("bwg_slideshow_dots_deactive_0");
jQuery("#bwg_dots_" + bwg_current_key_0 + "_0").removeClass("bwg_slideshow_dots_deactive_0").addClass("bwg_slideshow_dots_active_0");
if (bwg_testBrowser_cssTransitions_0()) {
jQuery(next_image_class).css('transition', 'opacity ' + bwg_transition_duration_0 + 'ms linear');
jQuery(current_image_class).css({'opacity' : 0, 'z-index': 1});
jQuery(next_image_class).css({'opacity' : 1, 'z-index' : 2});
bwg_change_watermark_container_0();
}
else {
jQuery(current_image_class).animate({'opacity' : 0, 'z-index' : 1}, bwg_transition_duration_0);
jQuery(next_image_class).animate({
'opacity' : 1,
'z-index': 2
}, {
duration: bwg_transition_duration_0,
complete: function () { bwg_change_watermark_container_0(); }
});
/* For IE.*/
jQuery(current_image_class).fadeTo(bwg_transition_duration_0, 0);
jQuery(next_image_class).fadeTo(bwg_transition_duration_0, 1);
}
}
function bwg_grid_0(cols, rows, ro, tx, ty, sc, op, current_image_class, next_image_class, direction) {
/* If browser does not support CSS transitions.*/
if (!bwg_testBrowser_cssTransitions_0()) {
return bwg_fallback_0(current_image_class, next_image_class, direction);
}
bwg_trans_in_progress_0 = true;
/* Set active thumbnail.*/
jQuery(".bwg_slideshow_filmstrip_thumbnail_0").removeClass("bwg_slideshow_thumb_active_0").addClass("bwg_slideshow_thumb_deactive_0");
jQuery("#bwg_filmstrip_thumbnail_" + bwg_current_key_0 + "_0").removeClass("bwg_slideshow_thumb_deactive_0").addClass("bwg_slideshow_thumb_active_0");
jQuery(".bwg_slideshow_dots_0").removeClass("bwg_slideshow_dots_active_0").addClass("bwg_slideshow_dots_deactive_0");
jQuery("#bwg_dots_" + bwg_current_key_0 + "_0").removeClass("bwg_slideshow_dots_deactive_0").addClass("bwg_slideshow_dots_active_0");
/* The time (in ms) added to/subtracted from the delay total for each new gridlet.*/
var count = (bwg_transition_duration_0) / (cols + rows);
/* Gridlet creator (divisions of the image grid, positioned with background-images to replicate the look of an entire slide image when assembled)*/
function bwg_gridlet(width, height, top, img_top, left, img_left, src, imgWidth, imgHeight, c, r) {
var delay = (c + r) * count;
/* Return a gridlet elem with styles for specific transition.*/
return jQuery('<span class="bwg_gridlet_0" ></span>').css({
display : "block",
width : width,
height : height,
top : top,
left : left,
backgroundImage : 'url("' + src + '")',
backgroundColor: jQuery(".bwg_slideshow_image_wrap_0").css("background-color"),
/*backgroundColor: rgba(0, 0, 0, 0),*/
backgroundRepeat: 'no-repeat',
backgroundPosition : img_left + 'px ' + img_top + 'px',
backgroundSize : imgWidth + 'px ' + imgHeight + 'px',
transition : 'all ' + bwg_transition_duration_0 + 'ms ease-in-out ' + delay + 'ms',
transform : 'none'
});
}
/* Get the current slide's image.*/
var cur_img = jQuery(current_image_class).find('img');
/* Create a grid to hold the gridlets.*/
var grid = jQuery('<span style="display: block;" ></span>').addClass('bwg_grid_0');
/* Prepend the grid to the next slide (i.e. so it's above the slide image).*/
jQuery(current_image_class).prepend(grid);
/* vars to calculate positioning/size of gridlets*/
var cont = jQuery(".bwg_slide_bg_0");
var imgWidth = cur_img.width();
var imgHeight = cur_img.height();
var contWidth = cont.width(),
contHeight = cont.height(),
imgSrc = cur_img.attr('src'),/*.replace('/thumb', ''),*/
colWidth = Math.floor(contWidth / cols),
rowHeight = Math.floor(contHeight / rows),
colRemainder = contWidth - (cols * colWidth),
colAdd = Math.ceil(colRemainder / cols),
rowRemainder = contHeight - (rows * rowHeight),
rowAdd = Math.ceil(rowRemainder / rows),
leftDist = 0,
img_leftDist = (jQuery(".bwg_slide_bg_0").width() - cur_img.width()) / 2;
/* tx/ty args can be passed as 'auto'/'min-auto' (meaning use slide width/height or negative slide width/height).*/
tx = tx === 'auto' ? contWidth : tx;
tx = tx === 'min-auto' ? - contWidth : tx;
ty = ty === 'auto' ? contHeight : ty;
ty = ty === 'min-auto' ? - contHeight : ty;
/* Loop through cols*/
for (var i = 0; i < cols; i++) {
var topDist = 0,
img_topDst = (jQuery(".bwg_slide_bg_0").height() - cur_img.height()) / 2,
newColWidth = colWidth;
/* If imgWidth (px) does not divide cleanly into the specified number of cols, adjust individual col widths to create correct total.*/
if (colRemainder > 0) {
var add = colRemainder >= colAdd ? colAdd : colRemainder;
newColWidth += add;
colRemainder -= add;
}
/* Nested loop to create row gridlets for each col.*/
for (var j = 0; j < rows; j++)  {
var newRowHeight = rowHeight,
newRowRemainder = rowRemainder;
/* If contHeight (px) does not divide cleanly into the specified number of rows, adjust individual row heights to create correct total.*/
if (newRowRemainder > 0) {
add = newRowRemainder >= rowAdd ? rowAdd : rowRemainder;
newRowHeight += add;
newRowRemainder -= add;
}
/* Create & append gridlet to grid.*/
grid.append(bwg_gridlet(newColWidth, newRowHeight, topDist, img_topDst, leftDist, img_leftDist, imgSrc, imgWidth, imgHeight, i, j));
topDist += newRowHeight;
img_topDst -= newRowHeight;
}
img_leftDist -= newColWidth;
leftDist += newColWidth;
}
/* Set event listener on last gridlet to finish transitioning.*/
var last_gridlet = grid.children().last();
/* Show grid & hide the image it replaces.*/
grid.show();
cur_img.css('opacity', 0);
/* Add identifying classes to corner gridlets (useful if applying border radius).*/
grid.children().first().addClass('rs-top-left');
grid.children().last().addClass('rs-bottom-right');
grid.children().eq(rows - 1).addClass('rs-bottom-left');
grid.children().eq(- rows).addClass('rs-top-right');
/* Execution steps.*/
setTimeout(function () {
grid.children().css({
opacity: op,
transform: 'rotate('+ ro +'deg) translateX('+ tx +'px) translateY('+ ty +'px) scale('+ sc +')'
});
}, 1);
jQuery(next_image_class).css('opacity', 1);
/* After transition.*/
jQuery(last_gridlet).one('webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend', jQuery.proxy(bwg_after_trans));
function bwg_after_trans() {
/*if (bwg_from_focus_0) {
bwg_from_focus_0 = false;
return;
}*/
jQuery(current_image_class).css({'opacity' : 0, 'z-index': 1});
jQuery(next_image_class).css({'opacity' : 1, 'z-index' : 2});
cur_img.css('opacity', 1);
bwg_change_watermark_container_0();
grid.remove();
bwg_trans_in_progress_0 = false;
if (typeof event_stack_0 !== 'undefined') {
if (event_stack_0.length > 0) {
key = event_stack_0[0].split("-");
event_stack_0.shift();
bwg_change_image_0(key[0], key[1], data_0, true);
}
}
}
}
function bwg_sliceV_0(current_image_class, next_image_class, direction) {
if (direction == 'right') {
var translateY = 'min-auto';
}
else if (direction == 'left') {
var translateY = 'auto';
}
bwg_grid_0(10, 1, 0, 0, translateY, 1, 0, current_image_class, next_image_class, direction);
}
function bwg_scaleOut_0(current_image_class, next_image_class, direction) {
bwg_grid_0(1, 1, 0, 0, 0, 1.5, 0, current_image_class, next_image_class, direction);
}
function bwg_blindH_0(current_image_class, next_image_class, direction) {
bwg_grid_0(10, 1, 0, 0, 0, .7, 0, current_image_class, next_image_class);
}
function bwg_iterator_0() {
var iterator = 1;
if (0) {
iterator = Math.floor((data_0.length - 1) * Math.random() + 1);
}
return iterator;
}
function bwg_change_image_0(current_key, key, data_0, from_effect) {
/* Pause videos.*/
jQuery("#bwg_slideshow_image_container_0").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', '*');
});
if (data_0[key]) {
if (jQuery('.bwg_ctrl_btn_0').hasClass('fa-pause')) {
bwg_play_0();
}
if (!from_effect) {
/* Change image key.*/
jQuery("#bwg_current_image_key_0").val(key);
if (current_key == '-1') { /* Filmstrip.*/
current_key = jQuery(".bwg_slideshow_thumb_active_0").children("img").attr("image_key");
}
else if (current_key == '-2') { /* Dots.*/
current_key = jQuery(".bwg_slideshow_dots_active_0").attr("image_key");
}
}
if (bwg_trans_in_progress_0) {
event_stack_0.push(current_key + '-' + key);
return;
}
var direction = 'right';
if (bwg_current_key_0 > key) {
var direction = 'left';
}
else if (bwg_current_key_0 == key) {
return;
}
jQuery(".bwg_slideshow_watermark_0").css({display: 'none'});
jQuery(".bwg_slideshow_title_text_0").css({display: 'none'});
jQuery(".bwg_slideshow_description_text_0").css({display: 'none'});
/* Set active thumbnail position.*/
bwg_current_filmstrip_pos_0 = key * (jQuery(".bwg_slideshow_filmstrip_thumbnail_0").width() + 2 + 2 * 1);
bwg_current_key_0 = key;
/* Change image id, title, description.*/
jQuery("#bwg_slideshow_image_0").attr('image_id', data_0[key]["id"]);
jQuery(".bwg_slideshow_title_text_0").html(jQuery('<span style="display: block;" ></span>').html(data_0[key]["alt"]).text());
jQuery(".bwg_slideshow_description_text_0").html(jQuery('<span style="display: block;" ></span>').html(data_0[key]["description"]).text());
/*var current_image_class = "#image_id_0_" + data_0[current_key]["id"];
var next_image_class = "#image_id_0_" + data_0[key]["id"];*/
var current_image_class = jQuery(".bwg_slideshow_image_spun_0").css("zIndex") == 2 ? ".bwg_slideshow_image_spun_0" : ".bwg_slideshow_image_second_spun_0";
var next_image_class = current_image_class == ".bwg_slideshow_image_second_spun_0" ? ".bwg_slideshow_image_spun_0" : ".bwg_slideshow_image_second_spun_0";
var is_embed = data_0[key]['filetype'].indexOf("EMBED_") > -1 ? true : false;
var is_embed_instagram_post = data_0[key]['filetype'].indexOf('INSTAGRAM_POST') > -1 ? true :false;
var cur_height = jQuery(current_image_class).height();
var cur_width = jQuery(current_image_class).width();
var innhtml = '<span class="bwg_slideshow_image_spun1_0"><span class="bwg_slideshow_image_spun2_0" style="display:table-cell;">';
if (!is_embed) {
innhtml += '<img style="max-height: ' + cur_height + 'px !important; max-width: ' + cur_width + 'px !important; display:inline-block;" class="bwg_slideshow_image_0" id="bwg_slideshow_image_0" src="http://www.bludbros.com/blbwpr46/wp-content/uploads/photo-gallery' + jQuery('<span style="display: block;" ></span>').html(data_0[key]["image_url"]).text() + '" alt="' + data_0[key]["alt"] + '" image_id="' + data_0[key]["id"] + '" />';
}
else { /*is_embed*/
innhtml += '<span style="height: ' + cur_height + 'px; width: ' + cur_width + 'px;" class="bwg_popup_embed bwg_popup_watermark">';
if (is_embed_instagram_post) {
var post_width = 0;
var post_height = 0;
if (cur_height < cur_width + 88) {
post_height = cur_height;
post_width = post_height - 88;
}
else {
post_width = cur_width;
post_height = post_width + 88;
}
innhtml += spider_display_embed(data_0[key]['filetype'], data_0[key]['filename'], {class:"bwg_embed_frame", 'data-width': data_0[key]['image_width'], 'data-height': data_0[key]['image_height'], frameborder: "0", allowfullscreen: "allowfullscreen", style: "width:" + post_width + "px; height:" + post_height + "px; vertical-align:middle; display:inline-block; position:relative;"});
}
else {
innhtml += spider_display_embed(data_0[key]['filetype'], data_0[key]['filename'], {class:"bwg_embed_frame", frameborder:"0", allowfullscreen:"allowfullscreen", style:"width:inherit; height:inherit; vertical-align:middle; display:table-cell;" });
}
innhtml += "</span>";
}
innhtml += '</span></span>';
jQuery(next_image_class).html(innhtml);
if ('do_nothing' == 'open_lightbox' || 0) {
bwg_document_ready_0();
}
bwg_fade_0(current_image_class, next_image_class, direction);
bwg_move_dots_0();
if (data_0[key]["is_embed_video"]) {
jQuery("#bwg_slideshow_play_pause_0").css({display: 'none'});
}
else {
jQuery("#bwg_slideshow_play_pause_0").css({display: ''});            
}
}
}
function bwg_preload_images_0(key) {
count = 5;
var count_all = data_0.length;
if (count_all < 10) {
count = 0;
}
if (count != 0) {
for (var i = key - count; i < key + count; i++) {
var index = parseInt((i + count_all) % count_all);
var is_embed = data_0[index]['filetype'].indexOf("EMBED_") > -1 ? true : false;
if (typeof data_0[index] != "undefined") {
if (!is_embed) {
jQuery("<img/>").attr("src", 'http://www.bludbros.com/blbwpr46/wp-content/uploads/photo-gallery' + jQuery('<span style="display: block;" ></span>').html(data_0[index]["image_url"]).text());
}
}
}
}
else {
for (var i = 0; i < data_0.length; i++) {
var is_embed = data_0[i]['filetype'].indexOf("EMBED_") > -1 ? true : false;
if (typeof data_0[i] != "undefined") {
if (!is_embed) {
jQuery("<img/>").attr("src", 'http://www.bludbros.com/blbwpr46/wp-content/uploads/photo-gallery' + jQuery('<span style="display: block;" ></span>').html(data_0[i]["image_url"]).text());
}
}
}
}
}
function bwg_popup_resize_0() {
var parent_width = jQuery(".bwg_slideshow_image_wrap_0").parent().width();
if (parent_width >= 200) {
jQuery(".bwg_slideshow_image_wrap_0").css({width: 200});
jQuery(".bwg_slideshow_image_wrap_0").css({height: 200});
jQuery(".bwg_slideshow_image_container_0").css({width: 200});
jQuery(".bwg_slideshow_image_container_0").css({height: (200)});
jQuery(".bwg_slideshow_image_0").css({
cssText: "max-width: 200px !important; max-height: 200px !important;"
});
jQuery(".bwg_slideshow_embed_0").css({
cssText: "width: 200px !important; height: 200px !important;"
});
bwg_resize_instagram_post_0();
/* Set watermark container size.*/
bwg_change_watermark_container_0();
jQuery(".bwg_slideshow_filmstrip_container_0").css({width: 200});
jQuery(".bwg_slideshow_filmstrip_0").css({width: (200 - 40)});
jQuery(".bwg_slideshow_dots_container_0").css({width: 200});
jQuery("#bwg_slideshow_play_pause-ico_0").css({fontSize: (60)});
jQuery(".bwg_slideshow_watermark_image_0").css({maxWidth: 90, maxHeight: 90});
jQuery(".bwg_slideshow_watermark_text_0, .bwg_slideshow_watermark_text_0:hover").css({fontSize: (20)});
jQuery(".bwg_slideshow_title_text_0").css({fontSize: (32)});
jQuery(".bwg_slideshow_description_text_0").css({fontSize: (28)});
}
else {
jQuery(".bwg_slideshow_image_wrap_0").css({width: (parent_width)});
jQuery(".bwg_slideshow_image_wrap_0").css({height: ((parent_width) * 1)});
jQuery(".bwg_slideshow_image_container_0").css({width: (parent_width)});
jQuery(".bwg_slideshow_image_container_0").css({height: ((parent_width) * 1 - 0)});
jQuery(".bwg_slideshow_image_0").css({
cssText: "max-width: " + parent_width + "px !important; max-height: " + (parent_width * (1) - 0 - 1) + "px !important;"
});
jQuery(".bwg_slideshow_embed_0").css({
cssText: "width: " + parent_width + "px !important; height: " + (parent_width * (1) - 0 - 1) + "px !important;"
});
bwg_resize_instagram_post_0();
/* Set watermark container size.*/
bwg_change_watermark_container_0();
jQuery(".bwg_slideshow_filmstrip_container_0").css({width: (parent_width)});
jQuery(".bwg_slideshow_filmstrip_0").css({width: (parent_width - 40)});
jQuery(".bwg_slideshow_dots_container_0").css({width: (parent_width)});
jQuery("#bwg_slideshow_play_pause-ico_0").css({fontSize: ((parent_width) * 0.3)});
jQuery(".bwg_slideshow_watermark_image_0").css({maxWidth: ((parent_width) * 0.45), maxHeight: ((parent_width) * 0.45)});
jQuery(".bwg_slideshow_watermark_text_0, .bwg_slideshow_watermark_text_0:hover").css({fontSize: ((parent_width) * 0.1)});
jQuery(".bwg_slideshow_title_text_0").css({fontSize: ((parent_width) * 0.16)});
jQuery(".bwg_slideshow_description_text_0").css({fontSize: ((parent_width) * 0.14)});
jQuery(".bwg_slideshow_image_0").css({'display':'inline-block'});
}
if (data_0[parseInt(jQuery("#bwg_current_image_key_0").val())]["is_embed_video"]) {
jQuery("#bwg_slideshow_play_pause_0").css({display: 'none'});
}
else {
jQuery("#bwg_slideshow_play_pause_0").css({display: ''});            
}
}
jQuery(document).ready(function() {
bwg_popup_resize_0();
});
jQuery(document).ready(function () {
jQuery('#ajax_loading_0').hide();
if (typeof jQuery().swiperight !== 'undefined') {
if (jQuery.isFunction(jQuery().swiperight)) {
jQuery('#bwg_container1_0').swiperight(function () {
bwg_change_image_0(parseInt(jQuery('#bwg_current_image_key_0').val()), (parseInt(jQuery('#bwg_current_image_key_0').val()) - bwg_iterator_0()) >= 0 ? (parseInt(jQuery('#bwg_current_image_key_0').val()) - bwg_iterator_0()) % data_0.length : data_0.length - 1, data_0);
return false;
});
}
}
if (typeof jQuery().swipeleft !== 'undefined') {
if (jQuery.isFunction(jQuery().swipeleft)) {
jQuery('#bwg_container1_0').swipeleft(function () {
bwg_change_image_0(parseInt(jQuery('#bwg_current_image_key_0').val()), (parseInt(jQuery('#bwg_current_image_key_0').val()) + bwg_iterator_0()) % data_0.length, data_0);
return false;
});
}
}
var isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));
var bwg_click = isMobile ? 'touchend' : 'click';
bwg_popup_resize_0();
jQuery("#bwg_container1_0").css({visibility: 'visible'});
jQuery(".bwg_slideshow_watermark_0").css({display: 'none'});
jQuery(".bwg_slideshow_title_text_0").css({display: 'none'});
jQuery(".bwg_slideshow_description_text_0").css({display: 'none'});
setTimeout(function () {
bwg_change_watermark_container_0();
}, 500);
/* Set image container height.*/
jQuery(".bwg_slideshow_image_container_0").height(jQuery(".bwg_slideshow_image_wrap_0").height() - 0);
var mousewheelevt = (/Firefox/i.test(navigator.userAgent)) ? "DOMMouseScroll" : "mousewheel"; /* FF doesn't recognize mousewheel as of FF3.x */
jQuery('.bwg_slideshow_filmstrip_0').bind(mousewheelevt, function(e) {
var evt = window.event || e; /* Equalize event object.*/
evt = evt.originalEvent ? evt.originalEvent : evt; /* Convert to originalEvent if possible.*/
var delta = evt.detail ? evt.detail*(-40) : evt.wheelDelta; /* Check for detail first, because it is used by Opera and FF.*/
if (delta > 0) {
/* Scroll up.*/
jQuery(".bwg_slideshow_filmstrip_left_0").trigger("click");
}
else {
/* Scroll down.*/
jQuery(".bwg_slideshow_filmstrip_right_0").trigger("click");
}
return false;
});
jQuery(".bwg_slideshow_filmstrip_right_0").click(function () {
jQuery( ".bwg_slideshow_filmstrip_thumbnails_0" ).stop(true, false);
if (jQuery(".bwg_slideshow_filmstrip_thumbnails_0").position().left >= -(jQuery(".bwg_slideshow_filmstrip_thumbnails_0").width() - jQuery(".bwg_slideshow_filmstrip_0").width())) {
jQuery(".bwg_slideshow_filmstrip_left_0").css({opacity: 1, filter: "Alpha(opacity=100)"});
if (jQuery(".bwg_slideshow_filmstrip_thumbnails_0").position().left < -(jQuery(".bwg_slideshow_filmstrip_thumbnails_0").width() - jQuery(".bwg_slideshow_filmstrip_0").width() - 2)) {
jQuery(".bwg_slideshow_filmstrip_thumbnails_0").animate({left: -(jQuery(".bwg_slideshow_filmstrip_thumbnails_0").width() - jQuery(".bwg_slideshow_filmstrip_0").width())}, 500, 'linear');
}
else {
jQuery(".bwg_slideshow_filmstrip_thumbnails_0").animate({left: (jQuery(".bwg_slideshow_filmstrip_thumbnails_0").position().left - 2)}, 500, 'linear');
}
}
/* Disable right arrow.*/
window.setTimeout(function(){
if (jQuery(".bwg_slideshow_filmstrip_thumbnails_0").position().left == -(jQuery(".bwg_slideshow_filmstrip_thumbnails_0").width() - jQuery(".bwg_slideshow_filmstrip_0").width())) {
jQuery(".bwg_slideshow_filmstrip_right_0").css({opacity: 0.3, filter: "Alpha(opacity=30)"});
}
}, 500);
});
jQuery(".bwg_slideshow_filmstrip_left_0").click(function () {
jQuery( ".bwg_slideshow_filmstrip_thumbnails_0" ).stop(true, false);
if (jQuery(".bwg_slideshow_filmstrip_thumbnails_0").position().left < 0) {
jQuery(".bwg_slideshow_filmstrip_right_0").css({opacity: 1, filter: "Alpha(opacity=100)"});
if (jQuery(".bwg_slideshow_filmstrip_thumbnails_0").position().left > - 2) {
jQuery(".bwg_slideshow_filmstrip_thumbnails_0").animate({left: 0}, 500, 'linear');
}
else {
jQuery(".bwg_slideshow_filmstrip_thumbnails_0").animate({left: (jQuery(".bwg_slideshow_filmstrip_thumbnails_0").position().left + 2)}, 500, 'linear');
}
}
/* Disable left arrow.*/
window.setTimeout(function(){
if (jQuery(".bwg_slideshow_filmstrip_thumbnails_0").position().left == 0) {
jQuery(".bwg_slideshow_filmstrip_left_0").css({opacity: 0.3, filter: "Alpha(opacity=30)"});
}
}, 500);
});
/* Set filmstrip initial position.*/
bwg_set_filmstrip_pos_0(jQuery(".bwg_slideshow_filmstrip_0").width());
/* Play/pause.*/
jQuery("#bwg_slideshow_play_pause_0").click(function () {
if (jQuery(".bwg_ctrl_btn_0").hasClass("fa-play")) {
bwg_play_0();
jQuery(".bwg_slideshow_play_pause_0").attr("title", "Pause");
jQuery(".bwg_slideshow_play_pause_0").attr("class", "bwg_ctrl_btn_0 bwg_slideshow_play_pause_0 fa fa-pause");
if (0) {
document.getElementById("bwg_audio_0").play();
}
}
else {
/* Pause.*/
window.clearInterval(bwg_playInterval_0);
jQuery(".bwg_slideshow_play_pause_0").attr("title", "Play");
jQuery(".bwg_slideshow_play_pause_0").attr("class", "bwg_ctrl_btn_0 bwg_slideshow_play_pause_0 fa fa-play");
if (0) {
document.getElementById("bwg_audio_0").pause();
}
}
});
if (0) {
bwg_play_0();
jQuery(".bwg_slideshow_play_pause_0").attr("title", "Pause");
jQuery(".bwg_slideshow_play_pause_0").attr("class", "bwg_ctrl_btn_0 bwg_slideshow_play_pause_0 fa fa-pause");
if (0) {
document.getElementById("bwg_audio_0").play();
}
}
jQuery(".bwg_slideshow_image_0").removeAttr("width");
jQuery(".bwg_slideshow_image_0").removeAttr("height");
});
function bwg_resize_instagram_post_0() {
if (jQuery('.inner_instagram_iframe_bwg_embed_frame_0').length) {
var post_width = jQuery('.bwg_slideshow_embed_0').width();
var post_height = jQuery('.bwg_slideshow_embed_0').height();
jQuery('.inner_instagram_iframe_bwg_embed_frame_0').each(function() {
var parent_container = jQuery(this).parent();
if (post_height / (parseInt(parent_container.attr('data-height')) + 96) < post_width / parseInt(parent_container.attr('data-width'))) {
parent_container.height(post_height);
parent_container.width((parent_container.height() - 96) * parent_container.attr('data-width') / parent_container.attr('data-height') + 16);
}
else {
parent_container.width(post_width);
parent_container.height((parent_container.width() - 16) * parent_container.attr('data-height') / parent_container.attr('data-width') + 96);
}
});
}
bwg_change_watermark_container_0();
}
function bwg_play_0() {
window.clearInterval(bwg_playInterval_0);
/* Play.*/
bwg_playInterval_0 = setInterval(function () {
var iterator = 1;
if (0) {
iterator = Math.floor((data_0.length - 1) * Math.random() + 1);
}
bwg_change_image_0(parseInt(jQuery('#bwg_current_image_key_0').val()), (parseInt(jQuery('#bwg_current_image_key_0').val()) + iterator) % data_0.length, data_0)
}, '5000');
}
jQuery(window).focus(function() {
/* event_stack_0 = [];*/
if (!jQuery(".bwg_ctrl_btn_0").hasClass("fa-play")) {
bwg_play_0();
}
var i_0 = 0;
jQuery(".bwg_slider_0").children("span").each(function () {
if (jQuery(this).css('opacity') == 1) {
jQuery("#bwg_current_image_key_0").val(i_0);
}
i_0++;
});
});
jQuery(window).blur(function() {
event_stack_0 = [];
window.clearInterval(bwg_playInterval_0);
});
function bwg_gallery_box_0(image_id, openEcommerce) {
if(typeof openEcommerce == undefined){
openEcommerce = false;
}
var ecommerce = openEcommerce == true ? "&open_ecommerce=1" : "";
var filterTags = jQuery("#bwg_tags_id_bwg_standart_thumbnails_0" ).val() ? jQuery("#bwg_tags_id_bwg_standart_thumbnails_0" ).val() : 0;
var filtersearchname = jQuery("#bwg_search_input_0" ).val() ? jQuery("#bwg_search_input_0" ).val() : '';
spider_createpopup('http://www.bludbros.com/blbwpr46/wp-admin/admin-ajax.php?action=GalleryBox&current_view=0&gallery_id=0&theme_id=1&open_with_fullscreen=0&open_with_autoplay=0&image_width=800&image_height=500&image_effect=fade&wd_sor=order&wd_ord=asc&enable_image_filmstrip=1&image_filmstrip_height=70&enable_image_ctrl_btn=1&enable_image_fullscreen=1&popup_enable_info=1&popup_info_always_show=0&popup_info_full_width=0&popup_hit_counter=0&popup_enable_rate=0&slideshow_interval=5&enable_comment_social=1&enable_image_facebook=1&enable_image_twitter=1&enable_image_google=1&enable_image_pinterest=0&enable_image_tumblr=0&watermark_type=none&slideshow_effect_duration=1&tag=0&current_url=http%3A%2F%2Fwww.bludbros.com%2Fblbwpr46%2Fwp-admin%2Fadmin-ajax.php%3F_panelsnonce%3D6fd94b6548&image_id=' + image_id + "&filter_tag_0=" +  filterTags + ecommerce + "&filter_search_name_0=" +  filtersearchname, '0', '800', '500', 1, 'testpopup', 5, "bottom");
}
function bwg_document_ready_0() {
var bwg_touch_flag = false;
jQuery(".bwg_lightbox_0").on("click", function () {
if (!bwg_touch_flag) {
bwg_touch_flag = true;
setTimeout(function(){ bwg_touch_flag = false; }, 100);
bwg_gallery_box_0(jQuery(this).attr("data-image-id"));
return false;
}
});
jQuery(".bwg_lightbox_0 .bwg_ecommerce").on("click", function (event) {
event.stopPropagation();
if (!bwg_touch_flag) {
bwg_touch_flag = true;
setTimeout(function(){ bwg_touch_flag = false; }, 100);
var image_id = jQuery(this).closest(".bwg_lightbox_0").attr("data-image-id");
bwg_gallery_box_0(image_id, true);
return false;
}
});       
}
jQuery(document).ready(function () {
bwg_document_ready_0();
});
</script>