var interval_674fe4b4681e7 = setInterval(function() {
var psc_slider='';
if(document.readyState === 'complete') {
clearInterval(interval_674fe4b4681e7);
jQuery("#psc_thumnail_slider674fe4b452566").show();
var rand_674fe4b452568=psc_slider=jQuery('#psc_divSliderMain674fe4b452567').html();
jQuery('#psc_thumnail_slider674fe4b452566').bxSlider({
slideWidth: 300,
minSlides: 1,
maxSlides: 50,
moveSlides: 1,
slideMargin:15,
speed:1000,
pause:1000,
adaptiveHeight:false,
preventDefaultSwipeY: false,
autoHover: true,
controls:false,
pager:false,
useCSS:false,
autoStart:true,
autoDelay:200,
auto:true,
infiniteLoop: true,
captions:true,
pager:true,
onSlideBefore: function(slideElement){
jQuery(slideElement).find('img').each(function(index, elm) {
if(!elm.complete || elm.naturalWidth === 0){
var toload='';
var toloadval='';
jQuery.each(elm.attributes, function(i, attrib){
var value = attrib.value;
var aname=attrib.name;
var pattern = /^((http|https):\/\/)/;
if(pattern.test(value) && aname!='src' && aname.indexOf('data-html5_vurl')==-1) {
toload=aname;
toloadval=value;
}
// do your magic :-)
});
vsrc= jQuery(elm).attr("src");
jQuery(elm).removeAttr("src");
dsrc= jQuery(elm).attr("data-src");
lsrc= jQuery(elm).attr("data-lazy-src");
if(dsrc!== undefined && dsrc!='' && dsrc!=vsrc){
jQuery(elm).attr("src",dsrc);
}
else if(lsrc!== undefined && lsrc!=vsrc){
jQuery(elm).attr("src",lsrc);
}
else if(toload!='' && toload!='srcset' && toloadval!='' && toloadval!=vsrc){
$(elm).attr("src",toloadval);
}
else{
jQuery(elm).attr("src",vsrc);
}
elm= jQuery(elm)[0];
if(!elm.complete && elm.naturalHeight == 0){
jQuery(elm).removeAttr('loading');
jQuery(elm).removeAttr('data-lazy-type');
jQuery(elm).removeClass('lazy');
jQuery(elm).removeClass('lazyLoad');
jQuery(elm).removeClass('lazy-loaded');
jQuery(elm).removeClass('jetpack-lazy-image');
jQuery(elm).removeClass('jetpack-lazy-image--handled');
jQuery(elm).removeClass('lazy-hidden');
}
}
});
},
onSliderLoad: function(){
}
});
}
}, 100);
window.addEventListener('load', function() {
setTimeout(function(){
if(jQuery("#psc_thumnail_slider674fe4b452566").find('.bx-loading').length>0){
jQuery("#psc_thumnail_slider674fe4b452566").find('img').each(function(index, elm) {
if(!elm.complete || elm.naturalWidth === 0){
var toload='';
var toloadval='';
jQuery.each(this.attributes, function(i, attrib){
var value = attrib.value;
var aname=attrib.name;
var pattern = /^((http|https):\/\/)/;
if(pattern.test(value) && aname!='src') {
toload=aname;
toloadval=value;
}
// do your magic :-)
});
vsrc=jQuery(elm).attr("src");
jQuery(elm).removeAttr("src");
dsrc=jQuery(elm).attr("data-src");
lsrc=jQuery(elm).attr("data-lazy-src");
if(dsrc!== undefined && dsrc!='' && dsrc!=vsrc){
jQuery(elm).attr("src",dsrc);
}
else if(lsrc!== undefined && lsrc!=vsrc){
jQuery(elm).attr("src",lsrc);
}
else if(toload!='' && toload!='srcset' && toloadval!='' && toloadval!=vsrc){
jQuery(elm).removeAttr(toload);
jQuery(elm).attr("src",toloadval);
}
else{
jQuery(elm).attr("src",vsrc);
}
elm=jQuery(elm)[0];
if(!elm.complete && elm.naturalHeight == 0){
jQuery(elm).removeAttr('loading');
jQuery(elm).removeAttr('data-lazy-type');
jQuery(elm).removeClass('lazy');
jQuery(elm).removeClass('lazyLoad');
jQuery(elm).removeClass('lazy-loaded');
jQuery(elm).removeClass('jetpack-lazy-image');
jQuery(elm).removeClass('jetpack-lazy-image--handled');
jQuery(elm).removeClass('lazy-hidden');
}
}
}).promise().done( function(){
jQuery("#psc_divSliderMain674fe4b452567").find('.bx-loading').remove();
} );
}
}, 6000);
});