حمل خطأ”,i=وظيفة (e)[rremove(),i=null,e&&t(”خطأ”==etype?404:200&e&perioد;نوع)})&rcuba;head.appendChild(r(0])},aوظيفةبورت()(i&&i()}}))Jt,Kt=(lbrack;],Zt=/(=))\((=&&$)\&bssol;//ceajaxSetup({jsonp:”callback”,jsonpCallback:function(){vare=Ktpop()عكسهذا[e]=excl;0,e}),ceajaxPrefilter(lpar;”jsonjsonp”,function(e,t){varr,i,o,a=excl;1==ejsonp&&(Zttest(eurl)?”url”:”string”==typeofedata&&0===(econtentType||””)indexOf(“application/x-www-form-urlencoded”&&Zttest(edata)&&”data”;if(a||”jsonp”==edataTypes(0))returnr=ejsonpCallback=v(ejsonpCallback)?ejsonpCallback()ej)sonpCallback,a?e[a]=e[a]replace(Zt,”$1″+r:xcl;1!==ejsonp&;(eurl+=(فيtest)eurl)r;?”&”:”?”)ejsonp+”=”+r).converters[”scriptjson”]=وظيفة()(إرجاعo||ceerror(r+””لميكنيُسمى”,o[0]},edataTypes[0]=”json”,i=ie[r],أي[r]الدالة(){o=الوسائط},nدائمًا(الوظيفة))(باطل)0===i(ieremoveProp(r):ie[r]=i,e[r]&&(ejsonpCallback&eq)uals;tjsonpCallback,Ktpush(r)),o&&v(i)&&i(o(0])&v(i)&i(o<brack;),o=i=void""”,2===JtchildNodeslength),ceparseHTML=وظيفة(e,t,n){”سلسلة”==نوعe[](”منطقية”==نوعt&(n=t=t=1),t|(lecreateHTMLDocument((r=t=CimplementationcreateHTMLDocument&)lpar;””)createElement(“base”))href=Clocationhref.headappendChild(r)):t=C),o=&excl&&[],(i=wexec(e))[t.إنشاءعنصر(i(1)]:(i=Ae((lbrack;e],)t,o),o&&olength&ce(o)إزالة(),cemerge(],ichildNodes)))].r,i,o},cefnload=وظيفة(e,t,n)(varr,i,o,a=this,s=eindexOf)””)return-1″).append(ce.parseHTML(e).find():e}(دائمًا(ن&&&وظيفة(e,t)(أكل(وظيفة)){napply(هذا,o|[eresponseText,t,e])})}),هذا},ceexprpseudosanimated=function(t)(العودة)cegrep(cetimerscomma)وظيفة(ه)(العودة)t===eelem}طول},ceoffset==setOffset:وظيفة(e,t,n)(var)r,i,o,a,s,u,l=cecss(e,”position”),c=ce(e),f={&rمكعب;”ثابت”==l&(estyleposition=”نسبي”)s=coffset(),o=cecss(e,”أعلى”)u=cecss(e,”left”),(“مطلق”===l||”ثابت”==l)&&-1<(o+u).indexOf(“تلقائي”)؟(a&eq((r=cposition())top,i=rleft):(a=parseFloat(o)|0,i=parseFloat(u)|),v(t)&&(t=tcall(e,n,ceد;تمديد(([},s)))),nullxcl;ttop&&(ftop=ttop-sd;;أعلى+a),خالية==tleft&&(fleft=tleft-sleft+i)),”using”int.usingcall(e,f):ccss(f)},cefnextend((إزاحة:وظيفة)(t)if(الوسائططول)العودةباطلة0==t?هذا.كل(وظيفة)(e)(ceoffsetsetOffset(هذا,t,e))})vare,n,r=this[0];returnrrgetClientRects()طول(e=rgetBoundingClientRect(),n=rownerDocumentdefaultView,{top:etop+npageYOffset,left:eleft+npageXOffset}){&lb.pageYOffset,left:0}:void0},الموضع:الوظيفة()(إذا(هذا(0]))فارe,t,n,r=this[0],i={top:0,left:0}إذا(“ثابت”==cecss&lpar,”position”))t=rgetBoundingClientRect();else{t=thisoffset(),n=rownerDocu)منت"e=roffsetParent|ndocumentElement;بينما(e&&(e==nbody|&e===ndocumentElement)&&”static”==cecss(e,”position”)e=eparentNode;&e^=r&&1==enodeType&&((i=ce(e)roffset())top+=cecss(e,”borderTopWidth”××0),ileft+=cecss(;e,”borderLeftWidth”!0)}return{top:ttop-itop-cecss(r,”marginTop”!0),left.left-ileft-cecss(r,”marginLeft”,excl;0)}}},offsetParent:function()(العودة)هذهخريطة(وظيفة)(فار)e=thisoffsetParent;بينما(e&amp;quot;static”==cecss(e,”position”)e=eoffsetParent;returne|J})}}),ceeach({scrollLeft:”pageXOffset”,scrollTop:”pageYOffset”},function(t,i{varo=”pageYOffset”==i;cefn[t]=الوظيفة(e)(إرجاعR)هذه,الوظيفة(e,t)(varr;if(y(e))r=e==enodeType&&(r=defaultView)),void0==n)returnr[i]:e[t];r?rscrollTo(o?rpageXOffset:n,o&)quest;n:rpageYOffset):e[t]=n},t,e,argumentslength)}),ceeach([”أعلى”,”يسار”],وظيفة(e,n){ce.cssHooks(lbrack;n]=Ye(lepixelPosition,function(e,t)(if(t)returnt=Ge(e,n),_eاختبار(t)?ce(e).position()n&rsq)ب;+”px”:t})),ceeach({ارتفاع:”height”,Width:”width”},function(a,s){ceeach({padding:”inner”+a,content:s,””:”outer”+a},وظيفة(r,o){cefn[o]=وظيفة(e,t){varn=الوسائطالطول&&(r||”منطقية”!=typeofe),i=r||(!0==e||!0=t"”الهامش”:”الحدود”)العودةR(هذه&الفاصلة(e,t,n){varr;returnذ(ه)(0==oindexOf)”الخارجي”(=e)”الداخلي”+a].documentdocumentElement(“client”+a]:9==enodeType?(r=eod;documentElement,Mathmax(ebody[”scroll”+a],r[”scroll”+a],e.body[”offset”+a],r[”offset”+a],r[”client”+a])):void0===n.css(e,t,i):cestyle(e,t,n,i)},s?e:void0,n}})}),ceeach([”ajaxStart”,”ajaxStop”,”ajaxComplete”,”ajaxError”,”ajaxSuccess”,”ajaxSend”],وظيفة(e,t)&lbracecefn[t]=وظيفة(e){returnهذا.on(t,e)}}),cefnextend((bind:function)e,t,n{returnهذا.on(e,null,t)},unbind:وظيفة(e,t){returnthisoff(e,null,t)},delegate:function(e,t,n,r){returnهذه.on(t,e,n,r)},Undelegate:وظيفة(e,t,n){return1==الوسائطالطول؟هذاإيقاف(e,”**”)thisoff(t,e||”**”,n)},hover:وظيفة(e,t){returnthismouseenter(e)mouseleave(t|}})),ceeach(“طمسالتركيزالتركيز،تغييرحجمالتمرير،انقرفوقdblclick،الماوس،الماوس،أعلى،تحريكالماوس،الماوس،الخروج،الماوس،الماوس،تركالماوس،تغييرتحديدإرسالمفتاح،الضغطعلىمفتاح،قائمةسياقالقائمة”split)””),وظيفة(e,n){cefn[n]=وظيفة(e,t){return0-1){&#13;
setTimeout(وظيفة)(){&#13;
googletagpubads()تحديث((فتحة))؛) 
},1000&است;الثواني_إلى_الانتظار_بعد_إمكانيةالعرض)&#13;
}&#13;
})&#13;
&#13;
googletagpubads()disableInitialLoad(); 
googletagpubads()enableSingleRequest(); 
googletagenableServices()&#13;
&#13;
//فقطقمبتحديثالمرساة(v);الخلالي(i)تمتإزالة&#13;
googletagpubads()refresh((lbrack;v]); 
})&#13;&newline;}آخر{&#13;
consolelog(“فيانتظارتهيئةGPT”) 
setTimeout(waitForGPT,500) 
}&#13;
})()&#13;
&#13;
//IntersectionObserverلعرضGPT#13;
فارأ&فاصلة؛س&فاصلة؛ن&فاصلة؛د&فاصلة؛س&فاصلة؛ل&فاصلة؛ص&فاصلة؛ز&فاصلة؛ج&فاصلة؛ح&فاصلة؛ع&فاصلة؛ب&فاصلة؛ش&فاصلة؛م&فاصلة؛أنا&فاصلة؛الخامسوالفاصلة؛و؛&&&&& 
فارالأهداف&يساوي;[]slice.call(documentquerySelectorAll)(”divbd-admanager”) 
إذاكان(”IntersectionObserver”فيالنافذة){&#13;
واسمحوا&يساوي;وظيفةIntersectionObserver(الإدخالات)الجديدة{&#13;
الإدخالاتلكل(وظيفة(إدخال){&#13;
إذاكان(الإدخالمتقاطعًا){&#13;
دعش&يساوي؛دخولهدف؛
؛&NewLine؛التبديل(elid){&#13;
الحالة”div-gpt-ad-1690469943006-0″:&#13;
فتحةكسولة&تساوي;r;&#13;
استراحة& 
الحالة”div-gpt-ad-1690475556536-0″:&#13;
فتحةكسولة&تساوي;ز;&#13;
استراحة& 
الحالة”div-gpt-ad-1693018087997-0″:&#13;
فتحةكسولة&تساوي;ج& 
استراحة& 
الحالة”div-gpt-ad-1693018488143-0″:&#13;
فتحةكسولة&تساوي;ح& 
استراحة& 
الحالة”div-gpt-ad-1693018770369-0″:&#13;
فتحةكسولة&تساوي;ع&&&13;
استراحة& 
الحالة”div-gpt-ad-1693018831507-0″:&#13;
فتحةكسولة&تساوي;ب&&&13;
استراحة& 
الحالة”div-gpt-ad-1693020204908-0″:&#13;
فتحةكسولة&تساوي;ش&&&&13;
استراحة& 
الحالة”div-gpt-ad-1690475828217-0″:&#13;
فتحةكسولة&تساوي;م&&&13;
استراحة& 
الحالة”div-gpt-ad-1693019230878-0″:&#13;
فتحةكسولة&تساوي;ديناربحريني_الشريطالجانبي_2;&#13;
استراحة& 
الحالة”div-gpt-ad-1690469983344-0″:&#13;
فتحةكسولة&تساوي;&&&&13;
استراحة& 
الحالة”div-gpt-ad-1690475714652-0″:&#13;
فتحةكسولة&تساوي;o;&#13;
استراحة& 
الحالة”div-gpt-ad-1693019413544-0″:&#13;
فتحةكسولة&تساوي;ن؛&&13؛&NewLine؛استراحة& 
الحالة”div-gpt-ad-1693019455783-0″:&#13;
فتحةكسولة&تساوي;د;&&&13;
استراحة& 
الحالة”div-gpt-ad-1693019649387-0″:&#13;
فتحةكسولة&تساوي;s;&#13;
استراحة& 
الحالة”div-gpt-ad-1693019696301-0″:&#13;
فتحةكسولة&تساوي;ل;&#13;
استراحة& 
الحالة”div-gpt-ad-1698135246783-0″:&#13;
فتحةكسولة&تساوي;و؛&&&&& 
استراحة& 
default:&#13;
lazySlot=””;&#13;
}&#13;
&#13;
if(lazySlot!==””){&#13;
googletag.pubads().refresh([lazySlot]);&#13;
}&#13;
googletag.cmd.push(function(){&#13;
googletag.display(el.id);&#13;
});&#13;
&#13;
console.log(”intersectinggpt”+el.id);&#13;
el.classList.remove(”bd-admanager”);&#13;
io.unobserve(el);&#13;
}&#13;
});&#13;
});&#13;
&#13;
targets.forEach(function(el){&#13;
io.observe(el);&#13;
});&#13;
}&#13;
}&#13;
};&#13;
&#13;
/*Lightboxplugin*/&#13;
(function(root,factory){&#13;
if(typeofdefine===”function”&;&;define.amd){&#13;
define([”jquery”],factory);&#13;
}elseif(typeofexports===”object”){&#13;
module.exports=factory(require(”jquery”));&#13;
}else{&#13;
root.lightbox=factory(root.jQuery);&#13;
}&#13;
})(this,function($){&#13;
functionLightbox(options){&#13;
this.album=[];&#13;
this.currentImageIndex=void0;&#13;
this.init();&#13;
this.options=$.extend({},this.constructor.defaults);&#13;
this.option(options);&#13;
}&#13;
&#13;
Lightbox.defaults={&#13;
albumLabel:”Image%1of%2″,&#13;
alwaysShowNavOnTouchDevices:false,&#13;
fadeDuration:600,&#13;
fitImagesInViewport:true,&#13;
imageFadeDuration:600,&#13;
positionFromTop:50,&#13;
resizeDuration:700,&#13;
showImageNumberLabel:true,&#13;
wrapAround:false,&#13;
disableScrolling:false,&#13;
sanitizeTitle:false&#13;
};&#13;
&#13;
Lightbox.prototype.option=function(options){&#13;
$.extend(this.options,options);&#13;
};&#13;
&#13;
Lightbox.prototype.imageCountLabel=function(current,total){&#13;
returnthis.options.albumLabel.replace(/%1/g,current).replace(/%2/g,total);&#13;
};&#13;
&#13;
Lightbox.prototype.init=function(){&#13;
varself=this;&#13;
$(document).ready(function(){&#13;
self.enable();&#13;
self.build();&#13;
});&#13;
};&#13;
&#13;
Lightbox.prototype.enable=function(){&#13;
varself=this;&#13;
$(”body”).on(&#13;
”click”,&#13;
”a[rel^=lightbox],area[rel^=lightbox],a[data-lightbox],area[data-lightbox]”,&#13;
function(event){&#13;
self.start($(event.currentTarget));&#13;
returnfalse;&#13;
}&#13;
);&#13;
};&#13;
&#13;
Lightbox.prototype.build=function(){&#13;
varself;&#13;
if($(”#lightbox”).length>;0)return;&#13;
&#13;
self=this;&#13;
$(&#13;
’
‘+&#13;
”+
”+
”+
”+
”+
”+
”+
””+
”+
””+
”+
’
‘+
”+
””&#13;
).appendTo($(”body”));&#13;
&#13;
this.$lightbox=$(”#lightbox”);&#13;
this.$overlay=$(”#lightboxOverlay”);&#13;
this.$outerContainer=this.$lightbox.find(”.lb-outerContainer”);&#13;
this.$container=this.$lightbox.find(”.lb-container”);&#13;
this.$image=this.$lightbox.find(”.lb-image”);&#13;
this.$nav=this.$lightbox.find(”.lb-nav”);&#13;
&#13;
this.containerPadding={&#13;
top:parseInt(this.$container.css(”padding-top”),10),&#13;
right:parseInt(this.$container.css(”padding-right”),10),&#13;
bottom:parseInt(this.$container.css(”padding-bottom”),10),&#13;
left:parseInt(this.$container.css(”padding-left”),10)&#13;
};&#13;
&#13;
this.imageBorderWidth={&#13;
top:parseInt(this.$image.css(”border-top-width”),10),&#13;
right:parseInt(this.$image.css(”border-right-width”),10),&#13;
bottom:parseInt(this.$image.css(”border-bottom-width”),10),&#13;
left:parseInt(this.$image.css(”border-left-width”),10)&#13;
};&#13;
&#13;
this.$overlay.hide().on(”click”,function(){&#13;
self.end();&#13;
returnfalse;&#13;
});&#13;
&#13;
this.$lightbox.hide().on(”click”,function(event){&#13;
if($(event.target).attr(”id”)===”lightbox”)self.end();&#13;
});&#13;
&#13;
this.$outerContainer.on(”click”,function(event){&#13;
if($(event.target).attr(”id”)===”lightbox”)self.end();&#13;
returnfalse;&#13;
});&#13;
&#13;
this.$lightbox.find(”.lb-prev”).on(”click”,function(){&#13;
if(self.currentImageIndex===0){&#13;
self.changeImage(self.album.length-1);&#13;
}else{&#13;
self.changeImage(self.currentImageIndex-1);&#13;
}&#13;
returnfalse;&#13;
});&#13;
&#13;
this.$lightbox.find(”.lb-next”).on(”click”,function(){&#13;
if(self.currentImageIndex===self.album.length-1){&#13;
self.changeImage(0);&#13;
}else{&#13;
self.changeImage(self.currentImageIndex+1);&#13;
}&#13;
returnfalse;&#13;
});&#13;
&#13;
this.$nav.on(”mousedown”,function(event){&#13;
if(event.which===3){&#13;
self.$nav.css(”pointer-events”,”none”);&#13;
self.$lightbox.one(”contextmenu”,function(){&#13;
setTimeout(function(){&#13;
this.$nav.css(”pointer-events”,”auto”);&#13;
}.bind(self),0);&#13;
});&#13;
}&#13;
});&#13;
&#13;
this.$lightbox.find(”.lb-loader,.lb-close”).on(”clickkeyup”,function(event){&#13;
if(event.type===”click”||(event.type===”keyup”&;&;(event.which===13||event.which===32))){&#13;
self.end();&#13;
returnfalse;&#13;
}&#13;
});&#13;
};&#13;
&#13;
Lightbox.prototype.start=function($link){&#13;
varself=this;&#13;
var$window=$(window);&#13;
&#13;
functionaddToAlbum($elem){&#13;
self.album.push({&#13;
alt:$elem.attr(”data-alt”),&#13;
link:$elem.attr(”href”),&#13;
title:$elem.attr(”data-title”)||$elem.attr(”title”)&#13;
});&#13;
}&#13;
&#13;
$window.on(”resize”,$.proxy(this.sizeOverlay,this));&#13;
this.sizeOverlay();&#13;
&#13;
this.album=[];&#13;
varindex=0;&#13;
vardataLightbox=$link.attr(”data-lightbox”);&#13;
&#13;
if(dataLightbox){&#13;
var$group=$($link.prop(”tagName”)&زائد؛’[data-lightbox=”‘+dataLightbox+'”]’);&#13;
for(vari=0;i<;$group.length;i++){&#13;
addToAlbum($($group[i]));&#13;
if($group[i]===$link[0])index=i;&#13;
}&#13;
}elseif($link.attr(”rel”)===”lightbox”){&#13;
addToAlbum($link);&#13;
}else{&#13;
var$relGroup=$($link.prop(”tagName”)&زائد؛’[rel=”‘+$link.attr(”rel”)+'”]’);&#13;
for(varj=0;j<;$relGroup.length;j++){&#13;
addToAlbum($($relGroup[j]));&#13;
if($relGroup[j]===$link[0])index=j;&#13;
}&#13;
}&#13;
&#13;
vartop=$window.scrollTop()&زائد؛this.options.positionFromTop;&#13;
varleft=$window.scrollLeft();&#13;
&#13;
this.$lightbox.css({top:top+”px”,left:left+”px”}).fadeIn(this.options.fadeDuration);&#13;
if(this.options.disableScrolling)$(”body”).addClass(”lb-disable-scrolling”);&#13;
this.changeImage(index);&#13;
};&#13;
&#13;
Lightbox.prototype.changeImage=function(index){&#13;
varself=this;&#13;
varsrc=this.album[index].link;&#13;
varext=src.split(”.”).slice(-1)[0];&#13;
var$img=this.$lightbox.find(”.lb-image”);&#13;
varpreloader=newImage();&#13;
&#13;
this.disableKeyboardNav();&#13;
this.$overlay.fadeIn(this.options.fadeDuration);&#13;
$(”.lb-loader”).fadeIn(”slow”);&#13;
this.$lightbox.find(”.lb-image,.lb-nav,.lb-prev,.lb-next,.lb-dataContainer,.lb-numbers,.lb-caption”).hide();&#13;
this.$outerContainer.addClass(”animating”);&#13;
&#13;
preloader.onload=function(){&#13;
$img.attr({alt:self.album[index].alt,src:src});&#13;
$img.width(preloader.width);&#13;
$img.height(preloader.height);&#13;
&#13;
varaspect=preloader.width/preloader.height;&#13;
varwinW=$(window).width();&#13;
varwinH=$(window).height();&#13;
&#13;
varmaxW=&#13;
winW-&#13;
self.containerPadding.left-&#13;
self.containerPadding.right-&#13;
self.imageBorderWidth.left-&#13;
self.imageBorderWidth.right-&#13;
20;&#13;
&#13;
varmaxH=&#13;
winH-&#13;
self.containerPadding.top-&#13;
self.containerPadding.bottom-&#13;
self.imageBorderWidth.top-&#13;
self.imageBorderWidth.bottom-&#13;
self.options.positionFromTop-&#13;
70;&#13;
&#13;
varw,h;&#13;
&#13;
if(ext===”svg”){&#13;
if(aspect>;=1){&#13;
h=parseInt(maxW/aspect,10);&#13;
w=maxW;&#13;
}else{&#13;
w=parseInt(maxH*aspect,10);&#13;
h=maxH;&#13;
}&#13;
$img.width(w);&#13;
$img.height(h);&#13;
}else{&#13;
if(self.options.fitImagesInViewport){&#13;
if(self.options.maxWidth&;&;self.options.maxWidth<;maxW)maxW=self.options.maxWidth;&#13;
if(self.options.maxHeight&;&;self.options.maxHeight<;maxH)maxH=self.options.maxHeight;&#13;
}else{&#13;
maxW=self.options.maxWidth||preloader.width||maxW;&#13;
maxH=self.options.maxHeight||preloader.height||maxH;&#13;
}&#13;
&#13;
if(preloader.width>;maxW||preloader.height>;maxH){&#13;
if(preloader.width/maxW>;preloader.height/maxH){&#13;
w=maxW;&#13;
h=parseInt(preloader.height/(preloader.width/w),10);&#13;
}else{&#13;
h=maxH;&#13;
w=parseInt(preloader.width/(preloader.height/h),10);&#13;
}&#13;
$img.width(w);&#13;
$img.height(h);&#13;
}&#13;
}&#13;
&#13;
self.sizeContainer($img.width(),$img.height());&#13;
};&#13;
&#13;
preloader.src=src;&#13;
this.currentImageIndex=index;&#13;
};&#13;
&#13;
Lightbox.prototype.sizeOverlay=function(){&#13;
varself=this;&#13;
setTimeout(function(){&#13;
self.$overlay.width($(document).width()).height($(document).height());&#13;
},0);&#13;
};&#13;
&#13;
Lightbox.prototype.sizeContainer=function(imageWidth,imageHeight){&#13;
varself=this;&#13;
varoldWidth=this.$outerContainer.outerWidth();&#13;
varoldHeight=this.$outerContainer.outerHeight();&#13;
&#13;
varnewWidth=&#13;
imageWidth+&#13;
this.containerPadding.left+&#13;
this.containerPadding.right+&#13;
this.imageBorderWidth.left+&#13;
this.imageBorderWidth.right;&#13;
&#13;
varnewHeight=&#13;
imageHeight+&#13;
this.containerPadding.top+&#13;
this.containerPadding.bottom+&#13;
this.imageBorderWidth.top+&#13;
this.imageBorderWidth.bottom;&#13;
&#13;
functionpostResize(){&#13;
self.$lightbox.find(”.lb-dataContainer”).width(newWidth);&#13;
self.$lightbox.find(”.lb-prevLink”).height(newHeight);&#13;
self.$lightbox.find(”.lb-nextLink”).height(newHeight);&#13;
self.$overlay.trigger(”focus”);&#13;
self.showImage();&#13;
}&#13;
&#13;
if(oldWidth!==newWidth||oldHeight!==newHeight){&#13;
this.$outerContainer.animate(&#13;
{العرض:newWidth,height:newHeight},&#13;
this.options.resizeDuration,&#13;
”swing”,&#13;
function(){&#13;
postResize();&#13;
}&#13;
);&#13;
}else{&#13;
postResize();&#13;
}&#13;
};&#13;
&#13;
Lightbox.prototype.showImage=function(){&#13;
this.$lightbox.find(”.lb-loader”).stop(true).hide();&#13;
this.$lightbox.find(”.lb-image”).fadeIn(this.options.imageFadeDuration);&#13;
this.updateNav();&#13;
this.updateDetails();&#13;
this.preloadNeighboringImages();&#13;
this.enableKeyboardNav();&#13;
};&#13;
&#13;
Lightbox.prototype.updateNav=function(){&#13;
varalwaysShow=false;&#13;
try{&#13;
document.createEvent(”TouchEvent”);&#13;
alwaysShow=!!this.options.alwaysShowNavOnTouchDevices;&#13;
}catch(e){}&#13;
&#13;
this.$lightbox.find(”.lb-nav”).show();&#13;
&#13;
if(this.album.length>;1){&#13;
if(this.options.wrapAround){&#13;
if(alwaysShow)this.$lightbox.find(”.lb-prev,.lb-next”).css(”opacity”,”1″);&#13;
this.$lightbox.find(”.lb-prev,.lb-next”).show();&#13;
}else{&#13;
if(this.currentImageIndex>;0){&#13;
this.$lightbox.find(”.lb-prev”).show();&#13;
if(alwaysShow)this.$lightbox.find(”.lb-prev”).css(”opacity”,”1″);&#13;
}&#13;
if(this.currentImageIndex<;this.album.length-1){&#13;
this.$lightbox.find(”.lb-next”).show();&#13;
if(alwaysShow)this.$lightbox.find(”.lb-next”).css(”opacity”,”1″);&#13;
}&#13;
}&#13;
}&#13;
};&#13;
&#13;
Lightbox.prototype.updateDetails=function(){&#13;
varself=this;&#13;
&#13;
if(this.album[this.currentImageIndex].title!==undefined&;&;this.album[this.currentImageIndex].title!==””){&#13;
var$caption=this.$lightbox.find(”.lb-caption”);&#13;
if(this.options.sanitizeTitle){&#13;
$caption.text(this.album[this.currentImageIndex].title);&#13;
}else{&#13;
$caption.html(this.album[this.currentImageIndex].title);&#13;
}&#13;
$caption.fadeIn(”fast”);&#13;
}&#13;
&#13;
if(this.album.length>;1&;&;this.options.showImageNumberLabel){&#13;
varlabel=this.imageCountLabel(this.currentImageIndex+1,this.album.length);&#13;
this.$lightbox.find(”.lb-number”).text(label).fadeIn(”fast”);&#13;
}else{&#13;
this.$lightbox.find(”.lb-number”).hide();&#13;
}&#13;
&#13;
this.$outerContainer.removeClass(”animating”);&#13;
this.$lightbox.find(”.lb-dataContainer”).fadeIn(this.options.resizeDuration,function(){&#13;
returnself.sizeOverlay();&#13;
});&#13;
};&#13;
&#13;
Lightbox.prototype.preloadNeighboringImages=function(){&#13;
if(this.album.length>;this.currentImageIndex+1){&#13;
newImage().src=this.album[this.currentImageIndex+1].link;&#13;
}&#13;
if(this.currentImageIndex>;0){&#13;
newImage().src=this.album[this.currentImageIndex-1].link;&#13;
}&#13;
};&#13;
&#13;
Lightbox.prototype.enableKeyboardNav=function(){&#13;
this.$lightbox.on(”keyup.keyboard”,$.proxy(this.keyboardAction,this));&#13;
this.$overlay.on(”keyup.keyboard”,$.proxy(this.keyboardAction,this));&#13;
};&#13;
&#13;
Lightbox.prototype.disableKeyboardNav=function(){&#13;
this.$lightbox.off(”.keyboard”);&#13;
this.$overlay.off(”.keyboard”);&#13;
};&#13;
&#13;
Lightbox.prototype.keyboardAction=function(event){&#13;
varKEY_ESC=27;&#13;
varKEY_LEFT=37;&#13;
varKEY_RIGHT=39;&#13;
varkey=event.keyCode;&#13;
&#13;
if(key===KEY_ESC){&#13;
event.stopPropagation();&#13;
this.end();&#13;
}elseif(key===KEY_LEFT){&#13;
if(this.currentImageIndex!==0){&#13;
this.changeImage(this.currentImageIndex-1);&#13;
}elseif(this.options.wrapAround&;&;this.album.length>;1){&#13;
this.changeImage(this.album.length-1);&#13;
}&#13;
}elseif(key===KEY_RIGHT){&#13;
if(this.currentImageIndex!==this.album.length-1){&#13;
this.changeImage(this.currentImageIndex+1);&#13;
}elseif(this.options.wrapAround&;&;this.album.length>;1){&#13;
this.changeImage(0);&#13;
}&#13;
}&#13;
};&#13;
&#13;
Lightbox.prototype.end=function(){&#13;
this.disableKeyboardNav();&#13;
$(window).off(”resize”,this.sizeOverlay);&#13;
this.$lightbox.fadeOut(this.options.fadeDuration);&#13;
this.$overlay.fadeOut(this.options.fadeDuration);&#13;
if(this.options.disableScrolling)$(”body”).removeClass(”lb-disable-scrolling”);&#13;
};&#13;
&#13;
returnnewLightbox();&#13;
});&#13;
&#13;
/*jQueryreadyhandlersandutilities*/&#13;
$(document).ready(function(){&#13;
//Topnavhover&#13;
$(”.main-menu.dropdown”).hover(function(){&#13;
$(this).children(”.dropdown-menu”).toggle();&#13;
});&#13;
&#13;
//Activenavlink&#13;
varpath=window.location.pathname;&#13;
$(’a.nav-link[href=”‘+path+'”]’).addClass(”active”);&#13;
&#13;
//Stickymainmenu&#13;
var$menu=$(”.main-menu”);&#13;
varmenuTop=$menu.offset().top;&#13;
&#13;
$(window).scroll(function(){&#13;
varscrollTop=$(window).scrollTop();&#13;
if(menuTop<;scrollTop)$menu.addClass(”fixed”);&#13;
else$menu.removeClass(”fixed”);&#13;
});&#13;
&#13;
//Offcanvassubmenuhover&#13;
$(”.sub-menu”).hide();&#13;
$(”.offcanvas.offcanvas-body.menuli”).hover(&#13;
function(){&#13;
$(this).children(”.sub-menu”).slideDown(”fast”);&#13;
},&#13;
function(){&#13;
$(this).children(”.sub-menu”).hide();&#13;
}&#13;
);&#13;
&#13;
//Ad/SDKbootstrapsbasedondevice&#13;
if(isMobile()){&#13;
console.log(”ismobile”);&#13;
}else{&#13;
console.log(”isnotmobile”);&#13;
loadScriptById(&#13;
”https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4436182731786816″,&#13;
”adsense-ad-tag”,&#13;
”text/javascript”&#13;
);&#13;
loadScriptById(”https://securepubads.g.doubleclick.net/tag/js/gpt.js”,”gpt-ad-tag”,”text/javascript”);&#13;
}&#13;
&#13;
//Scrollprogress&#13;
vardocScrollable=document.documentElement.scrollHeight-document.documentElement.clientHeight;&#13;
&#13;
window.addEventListener(&#13;
”scroll”,&#13;
function(){&#13;
vary=window.scrollY;&#13;
varpct=Math.round((y/docScrollable)*100);&#13;
&#13;
//EnsureGPT/Adsenseloadedonmobileasuserscrolls&#13;
if(isMobile()){&#13;
loadScriptById(&#13;
”https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4436182731786816″,&#13;
”adsense-ad-tag”,&#13;
”text/javascript”&#13;
);&#13;
loadScriptById(”https://securepubads.g.doubleclick.net/tag/js/gpt.js”,”gpt-ad-tag”,”text/javascript”);&#13;
}&#13;
&#13;
if(pct>;=5){&#13;
console.log(”here”);&#13;
}&#13;
&#13;
if(pct>;=50){&#13;
appendDisqus();&#13;
//NOTE:RemovedAdnowconditionalinjectionhere.&#13;
//Previously:conditionalInjection(”SC_TBlock_882015″,”adnow”,”https://st-n.ads1-adnow.com/js/a.js”)&#13;
}&#13;
},&#13;
false&#13;
);&#13;
});&#13;
&#13;
//Nativelazy-loadforimageswithIntersectionObserver&#13;
document.addEventListener(”DOMContentLoaded”,function(){&#13;
varlazyImgs=[].slice.call(document.querySelectorAll(”img.img-lazy-load”));&#13;
if(”IntersectionObserver”inwindow){&#13;
letio=newIntersectionObserver(function(entries){&#13;
entries.forEach(function(entry){&#13;
if(entry.isIntersecting){&#13;
letimg=entry.target;&#13;
img.src=img.dataset.src;&#13;
img.classList.remove(”img-lazy-load”);&#13;
io.unobserve(img);&#13;
}&#13;
});&#13;
});&#13;
lazyImgs.forEach(function(img){&#13;
io.observe(img);&#13;
});&#13;
}&#13;
});&#13;














































































