HEX
Server: Apache
System: Linux cpanelx.inxs.ro 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: crowdandsafety (1041)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/crowdandsafety/public_html/wp-content/plugins/cornerstone/assets/js/site/ilightbox.js
(()=>{var S=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var k=S((exports,module)=>{(function(){var e=["DOMMouseScroll","mousewheel"];if(jQuery.event.fixHooks)for(var t=e.length;t;)jQuery.event.fixHooks[e[--t]]=jQuery.event.mouseHooks;jQuery.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var n=e.length;n;)this.addEventListener(e[--n],i,!1);else this.onmousewheel=i},teardown:function(){if(this.removeEventListener)for(var n=e.length;n;)this.removeEventListener(e[--n],i,!1);else this.onmousewheel=null}},jQuery.fn.extend({mousewheel:function(n){return n?this.on("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.off("mousewheel",n)},iLightBoxOuterHeight:function(...n){return this.outerHeight(...n)||null},iLightBoxOuterWidth:function(...n){return this.outerWidth(...n)||null}});function i(n){var o=n||window.event,r=[].slice.call(arguments,1),a=0,l=0,s=0;return n=jQuery.event.fix(o),n.type="mousewheel",o.wheelDelta&&(a=o.wheelDelta/120),o.detail&&(a=-o.detail/3),s=a,o.axis!==void 0&&o.axis===o.HORIZONTAL_AXIS&&(s=0,l=-1*a),o.wheelDeltaY!==void 0&&(s=o.wheelDeltaY/120),o.wheelDeltaX!==void 0&&(l=-1*o.wheelDeltaX/120),r.unshift(n,a,l,s),(jQuery.event.dispatch||jQuery.event.handle).apply(this,r)}})();var varUnknown,verticalDistanceThreshold=100;function fnGetElementDimension(e,t){return parseInt(e.css(t),10)||0}function fnGetWindowDimensions(){var e=window,t="inner";return"innerWidth"in window||(t="client",e=document.documentElement||document.body),{width:e[t+"Width"],height:e[t+"Height"]}}function fnScrollToPageOffset(){var e=fnGetPageOffset();window.location.hash="",window.scrollTo(e.x,e.y)}function fnGetMediaUrls(e){var t=[];return jQuery("*",e).each(function(){var i="";if(jQuery(this).css("background-image")!="none"?i=jQuery(this).css("background-image"):typeof jQuery(this).attr("src")!="undefined"&&this.nodeName.toLowerCase()=="img"&&(i=jQuery(this).attr("src")),i.indexOf("gradient")==-1){i=i.replace(/url\("/g,""),i=i.replace(/url\(/g,""),i=i.replace(/"\)/g,""),i=i.replace(/\)/g,""),i=i.split(",");for(var n=0;n<i.length;n++)if(0<i[n].length&&jQuery.inArray(i[n],t)==-1){var o="";varBrowserDetection.msie&&9>varBrowserDetection.version&&(o="?"+Math.floor(3e3*Math.random())),t.push(i[n]+o)}}}),t}function fnTrimFileExt(e,t){var i=e.replace(/^.*[/\\]/g,"");return typeof t=="string"&&i.substr(i.length-t.length)==t&&(i=i.substr(0,i.length-t.length)),i}function fnIdentifyFileExt(e,t){var i="",n="",o=0,r={},a=0,l=0,s=a=!1,c=!1;if(!e)return!1;t||(t="PATHINFO_ALL");var h={PATHINFO_DIRNAME:1,PATHINFO_BASENAME:2,PATHINFO_EXTENSION:4,PATHINFO_FILENAME:8,PATHINFO_ALL:0};for(n in h)h.PATHINFO_ALL|=h[n];if(typeof t!="number"){for(t=[].concat(t),l=0;l<t.length;l++)h[t[l]]&&(o=o|h[t[l]]);t=o}n=function(u){u=u+"";var d=u.lastIndexOf(".")+1;return d?d!==u.length?u.substr(d):"":!1},t&h.PATHINFO_DIRNAME&&(o=e.replace(/\\/g,"/").replace(/\/[^/]*\/?$/,""),r.dirname=o===e?".":o),t&h.PATHINFO_BASENAME&&(a===!1&&(a=fnTrimFileExt(e)),r.basename=a),t&h.PATHINFO_EXTENSION&&(a===!1&&(a=fnTrimFileExt(e)),s===!1&&(s=n(a)),s!==!1&&(r.extension=s)),t&h.PATHINFO_FILENAME&&(a===!1&&(a=fnTrimFileExt(e)),s===!1&&(s=n(a)),c===!1&&(c=a.slice(0,a.length-(s?s.length+1:s===!1?0:1))),r.filename=c),a=0;for(i in r)a++;return a==1?r[i]:r}function fnIdentifyItemTypeFromURL(e){return e=fnIdentifyFileExt(e,"PATHINFO_EXTENSION"),e=jQuery.isPlainObject(e)?null:String(e).toLowerCase(),0<=varMediaTypes.image.indexOf(e)?"image":0<=varMediaTypes.flash.indexOf(e)?"flash":0<=varMediaTypes.video.indexOf(e)?"video":"iframe"}function fnParseInt(e,t){return parseInt(t/100*e)}function fnPhoneHomeSourceCheck(e,t){jQuery.ajax({url:"http://ilightbox.net/getSource/jsonp.php?url="+encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),dataType:"jsonp"}).error(function(){t(!1)})}function fnParseUrl(e){return String(e).replace(/^\s+|\s+$/g,"").match(/^([^:/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/)?{href:e[0]||"",protocol:e[1]||"",authority:e[2]||"",host:e[3]||"",hostname:e[4]||"",port:e[5]||"",pathname:e[6]||"",search:e[7]||"",hash:e[8]||""}:null}function fnNormalizeUrl(e,t){function i(n){var o=[];return n.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^/]*/g,function(r){r==="/.."?o.pop():o.push(r)}),o.join("").replace(/^\//,n.charAt(0)==="/"?"/":"")}return t=fnParseUrl(t||""),e=fnParseUrl(e||""),t&&e?(t.protocol||e.protocol)+(t.protocol||t.authority?t.authority:e.authority)+i(t.protocol||t.authority||t.pathname.charAt(0)==="/"?t.pathname:t.pathname?(e.authority&&!e.pathname?"/":"")+e.pathname.slice(0,e.pathname.lastIndexOf("/")+1)+t.pathname:e.pathname)+(t.protocol||t.authority||t.pathname?t.search:t.search||e.search)+t.hash:null}function fnGetPageOffset(){var e=0,t=0;return typeof window.pageYOffset=="number"?(t=window.pageYOffset,e=window.pageXOffset):document.body&&(document.body.scrollLeft||document.body.scrollTop)?(t=document.body.scrollTop,e=document.body.scrollLeft):document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)&&(t=document.documentElement.scrollTop,e=document.documentElement.scrollLeft),{x:e,y:t}}function fnMakeAttrFromObject(e,t,i){var n;return n=varEmbedElement[e+t],n==null&&(n=varEmbedElement[t]),n!=null?(t.indexOf(e)==0&&i==null&&(i=t.substring(e.length)),i==null&&(i=t),i+'="'+n+'" '):""}function fnMakeAttr(e,t){return e.indexOf("emb#")==0?"":(e.indexOf("obj#")==0&&t==null&&(t=e.substring(4)),fnMakeAttrFromObject("obj#",e,t))}function fnMakeAttr2(e,t){return e.indexOf("obj#")==0?"":(e.indexOf("emb#")==0&&t==null&&(t=e.substring(4)),fnMakeAttrFromObject("emb#",e,t))}function fnMakeAttr3(e,t){var i,n="",o=t?" />":">";return e.indexOf("emb#")==-1&&(i=varEmbedElement["obj#"+e],i==null&&(i=varEmbedElement[e]),e.indexOf("obj#")==0&&(e=e.substring(4)),i!=null&&(n='  <param name="'+e+'" value="'+i+'"'+o+`
`)),n}function fnCleanAttrs(){for(var e=0;e<arguments.length;e++){var t=arguments[e];delete varEmbedElement[t],delete varEmbedElement["emb#"+t],delete varEmbedElement["obj#"+t]}}function fnCreateEmbedObject(){var e;e="QT_GenerateOBJECTText";var t=arguments;if(4>t.length||t.length%2!=0)t=varErroeMessage1,t=t.replace("%%",e),alert(t),e="";else{varEmbedElement=[],varEmbedElement.src=t[0],varEmbedElement.width=t[1],varEmbedElement.height=t[2],varEmbedElement.classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",varEmbedElement.pluginspage="http://www.apple.com/quicktime/download/",e=t[3],(e==null||e=="")&&(e="6,0,2,0"),varEmbedElement.codebase="http://www.apple.com/qtactivex/qtplugin.cab#version="+e;for(var i,n=4;n<t.length;n=n+2)i=t[n].toLowerCase(),e=t[n+1],i=="name"||i=="id"?varEmbedElement.name=e:varEmbedElement[i]=e;t="<object "+fnMakeAttr("classid")+fnMakeAttr("width")+fnMakeAttr("height")+fnMakeAttr("codebase")+fnMakeAttr("name","id")+fnMakeAttr("tabindex")+fnMakeAttr("hspace")+fnMakeAttr("vspace")+fnMakeAttr("border")+fnMakeAttr("align")+fnMakeAttr("class")+fnMakeAttr("title")+fnMakeAttr("accesskey")+fnMakeAttr("noexternaldata")+`>
`+fnMakeAttr3("src",!1),n="  <embed "+fnMakeAttr2("src")+fnMakeAttr2("width")+fnMakeAttr2("height")+fnMakeAttr2("pluginspage")+fnMakeAttr2("name")+fnMakeAttr2("align")+fnMakeAttr2("tabindex"),fnCleanAttrs("src","width","height","pluginspage","classid","codebase","name","tabindex","hspace","vspace","border","align","noexternaldata","class","title","accesskey");for(i in varEmbedElement)e=varEmbedElement[i],e!=null&&(n=n+fnMakeAttr2(i),t=t+fnMakeAttr3(i,!1));e=t+n+`> </embed>
</object>`}return e}function fnMakeHashUri(e){return e=e||window.location.href,"#"+e.replace(/^[^#]*#?(.*)$/,"$1")}var varMediaTypes={flash:"swf",image:"bmp gif jpeg jpg png tiff tif jfif jpe",iframe:"asp aspx cgi cfm htm html jsp php pl php3 php4 php5 phtml rb rhtml shtml txt",video:"avi mov mpg mpeg movie mp4 webm ogv ogg 3gp m4v"},$window=jQuery(window),$document=jQuery(document),varBrowserDetection,varPropTransform,varPropPerspective,varFullscreenState="",varHasTouchEvents="ontouchstart"in window,varEventClick=varHasTouchEvents?"itap.iLightBox":"click.iLightBox",varEventMousedown=varHasTouchEvents?"touchstart.iLightBox":"mousedown.iLightBox",varEventMouseup=varHasTouchEvents?"touchend.iLightBox":"mouseup.iLightBox",varEventMouseMove=varHasTouchEvents?"touchmove.iLightBox":"mousemove.iLightBox",iLightBoxClass=function(e,t,i,n){var o=this;o.options=t,o.selector=e.selector||e,o.context=e.context,o.instant=n,1>i.length?o.attachItems():o.items=i,o.vars={total:o.items.length,start:0,current:null,next:null,prev:null,BODY:jQuery("body"),loadRequests:0,overlay:jQuery('<div class="ilightbox-overlay"></div>'),loader:jQuery('<div class="ilightbox-loader"><div></div></div>'),toolbar:jQuery('<div class="ilightbox-toolbar"></div>'),innerToolbar:jQuery('<div class="ilightbox-inner-toolbar"></div>'),title:jQuery('<div class="ilightbox-title"></div>'),closeButton:jQuery('<a class="ilightbox-close" title="'+o.options.text.close+'"></a>'),fullScreenButton:jQuery('<a class="ilightbox-fullscreen" title="'+o.options.text.enterFullscreen+'"></a>'),innerPlayButton:jQuery('<a class="ilightbox-play" title="'+o.options.text.slideShow+'"></a>'),innerNextButton:jQuery('<a class="ilightbox-next-button" title="'+o.options.text.next+'"></a>'),innerPrevButton:jQuery('<a class="ilightbox-prev-button" title="'+o.options.text.previous+'"></a>'),holder:jQuery('<div class="ilightbox-holder" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),nextPhoto:jQuery('<div class="ilightbox-holder ilightbox-next" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),prevPhoto:jQuery('<div class="ilightbox-holder ilightbox-prev" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),nextButton:jQuery('<a class="ilightbox-button ilightbox-next-button" ondragstart="return false;" title="'+o.options.text.next+'"><span></span></a>'),prevButton:jQuery('<a class="ilightbox-button ilightbox-prev-button" ondragstart="return false;" title="'+o.options.text.previous+'"><span></span></a>'),thumbnails:jQuery('<div class="ilightbox-thumbnails" ondragstart="return false;"><div class="ilightbox-thumbnails-container"><a class="ilightbox-thumbnails-dragger"></a><div class="ilightbox-thumbnails-grid"></div></div></div>'),thumbs:!1,nextLock:!1,prevLock:!1,hashLock:!1,isMobile:!1,mobileMaxWidth:980,isInFullScreen:!1,isSwipe:!1,mouseID:0,cycleID:0,isPaused:0},o.vars.hideableElements=o.vars.nextButton.add(o.vars.prevButton),o.normalizeItems(),o.availPlugins(),o.options.startFrom=0<o.options.startFrom&&o.options.startFrom>=o.vars.total?o.vars.total-1:o.options.startFrom,o.options.startFrom=o.options.randomStart?Math.floor(Math.random()*o.vars.total):o.options.startFrom,o.vars.start=o.options.startFrom,n?o.instantCall():o.patchItemsEvents(),o.options.linkId&&(o.hashChangeHandler(),$window.iLightBoxHashChange(function(){o.hashChangeHandler()})),varHasTouchEvents&&(e=/(click|mouseenter|mouseleave|mouseover|mouseout)/ig,o.options.caption.show=o.options.caption.show.replace(e,"itap"),o.options.caption.hide=o.options.caption.hide.replace(e,"itap"),o.options.social.show=o.options.social.show.replace(e,"itap"),o.options.social.hide=o.options.social.hide.replace(e,"itap")),o.options.controls.arrows&&jQuery.extend(o.options.styles,{nextOffsetX:0,prevOffsetX:0,nextOpacity:0,prevOpacity:0})};iLightBoxClass.prototype={showLoader:function(){this.vars.loadRequests+=1,this.options.path.toLowerCase()=="horizontal"?this.vars.loader.stop().animate({top:"-30px"},this.options.show.speed):this.vars.loader.stop().animate({left:"-30px"},this.options.show.speed)},hideLoader:function(){this.vars.loadRequests-=1,this.vars.loadRequests=0>this.vars.loadRequests?0:this.vars.loadRequests,this.options.path.toLowerCase()=="horizontal"?0>=this.vars.loadRequests&&this.vars.loader.stop().animate({top:"-192px"},this.options.show.speed,"easeInCirc"):0>=this.vars.loadRequests&&this.vars.loader.stop().animate({left:"-192px"},this.options.show.speed,"easeInCirc")},createUI:function(){var e=this;e.ui={currentElement:e.vars.holder,nextElement:e.vars.nextPhoto,prevElement:e.vars.prevPhoto,currentItem:e.vars.current,nextItem:e.vars.next,prevItem:e.vars.prev,hide:function(){e.closeAction()},refresh:function(){0<arguments.length?e.repositionPhoto(!0):e.repositionPhoto()},fullscreen:function(){e.fullScreenAction()}}},attachItems:function(){var item=this,itemObjects=[],items=[];jQuery(item.selector,item.context).each(function(){var $this=jQuery(this),URL=$this.attr(item.options.attr)||null,options=$this.data("options")&&eval("({"+$this.data("options")+"})")||{},caption=$this.data("caption"),title=$this.data("title"),type=$this.data("type")||fnIdentifyItemTypeFromURL(URL);items.push({URL,caption,title,type,options}),item.instant||itemObjects.push($this)}),item.items=items,item.itemsObject=itemObjects},normalizeItems:function(){var e=this,t=[];jQuery.each(e.items,function(i,n){typeof n=="string"&&(n={url:n});var o=n.url||n.URL||null,r=n.options||{},a=n.caption||null,l=n.title||null,s=n.type?n.type.toLowerCase():fnIdentifyItemTypeFromURL(o),c=typeof o!="object"?fnIdentifyFileExt(o,"PATHINFO_EXTENSION"):"";r.thumbnail=r.thumbnail||(s=="image"?o:null),r.videoType=r.videoType||null,r.skin=r.skin||e.options.skin,r.width=r.width||null,r.height=r.height||null,r.mousewheel=typeof r.mousewheel!="undefined"?r.mousewheel:!0,r.swipe=typeof r.swipe!="undefined"?r.swipe:!0,r.social=typeof r.social!="undefined"?r.social:e.options.social.buttons&&jQuery.extend({},{},e.options.social.buttons),s=="video"&&(r.html5video=typeof r.html5video!="undefined"?r.html5video:{},r.html5video.webm=r.html5video.webm||r.html5video.WEBM||null,r.html5video.controls=typeof r.html5video.controls!="undefined"?r.html5video.controls:"controls",r.html5video.preload=r.html5video.preload||"metadata",r.html5video.autoplay=typeof r.html5video.autoplay!="undefined"?r.html5video.autoplay:!1),r.width&&r.height||(s=="video"?(r.width=1280,r.height=720):s=="iframe"?(r.width="100%",r.height="90%"):s=="flash"&&(r.width=1280,r.height=720)),delete n.url,n.URL=o,n.caption=a,n.title=l,n.type=s,n.options=r,n.ext=c,t.push(n)}),e.items=t},instantCall:function(){var e=this.vars.start;this.vars.current=e,this.vars.next=this.items[e+1]?e+1:null,this.vars.prev=this.items[e-1]?e-1:null,this.addContents(),this.patchEvents()},addContents:function(){var e=this,t=e.vars,i=e.options,n=fnGetWindowDimensions(),o=i.path.toLowerCase();i.mobileOptimizer&&!i.innerToolbar&&(t.isMobile=n.width<=t.mobileMaxWidth),t.overlay.addClass(i.skin).hide().css({opacity:i.overlay.opacity}),i.linkId&&t.overlay.attr("linkid",i.linkId),i.controls.toolbar&&(t.toolbar.addClass(i.skin).append(t.closeButton),i.controls.fullscreen&&t.toolbar.append(t.fullScreenButton),i.controls.slideshow&&t.toolbar.append(t.innerPlayButton),1<t.total&&t.toolbar.append(t.innerPrevButton).append(t.innerNextButton)),t.BODY.addClass("ilightbox-noscroll").append(t.overlay).append(t.loader).append(t.holder).append(t.nextPhoto).append(t.prevPhoto),i.innerToolbar||t.BODY.append(t.toolbar),i.controls.arrows&&t.BODY.append(t.nextButton).append(t.prevButton),i.controls.thumbnail&&1<t.total&&(t.BODY.append(t.thumbnails),t.thumbnails.addClass(i.skin).addClass("ilightbox-"+o),jQuery("div.ilightbox-thumbnails-grid",t.thumbnails).empty(),t.thumbs=!0),n=i.path.toLowerCase()=="horizontal"?{left:parseInt(n.width/2-t.loader.iLightBoxOuterWidth()/2)}:{top:parseInt(n.height/2-t.loader.iLightBoxOuterHeight()/2)},t.loader.addClass(i.skin).css(n),t.nextButton.add(t.prevButton).addClass(i.skin),o=="horizontal"&&t.loader.add(t.nextButton).add(t.prevButton).addClass("horizontal"),t.BODY[t.isMobile?"addClass":"removeClass"]("isMobile"),i.infinite||(t.prevButton.add(t.prevButton).add(t.innerPrevButton).add(t.innerNextButton).removeClass("disabled"),i.startFrom!=0&&t.current!=0||t.prevButton.add(t.innerPrevButton).addClass("disabled"),(i.startFrom>=t.total-1||t.current>=t.total-1)&&t.nextButton.add(t.innerNextButton).addClass("disabled")),i.show.effect?setTimeout(function(){e.generateBoxes()},i.show.speed):e.generateBoxes(),i.show.effect?(t.overlay.stop().fadeIn(i.show.speed),t.toolbar.stop().fadeIn(i.show.speed)):(t.overlay.show(),t.toolbar.show());var r=t.total;i.smartRecognition&&1<t.total&&jQuery.each(e.items,function(a){var l=e.items[a];e.ogpRecognition(l,function(s){s&&jQuery.extend(!0,l,{type:s.type,options:{html5video:s.html5video,width:s.type=="image"?0:s.width||l.width,height:s.type=="image"?0:s.height||l.height,thumbnail:l.options.thumbnail||s.thumbnail}}),r--,r==0&&(t.dontGenerateThumbs=!1,e.generateThumbnails())})}),e.createUI(),window.iLightBox={close:function(){e.closeAction()},fullscreen:function(){e.fullScreenAction()},moveNext:function(){e.moveTo("next")},movePrev:function(){e.moveTo("prev")},goTo:function(a){e.goTo(a)},refresh:function(){e.refresh()},reposition:function(){0<arguments.length?e.repositionPhoto(!0):e.repositionPhoto()},setOption:function(a){e.setOption(a)},destroy:function(){e.closeAction(),e.dispatchItemsEvents()}},i.linkId&&(t.hashLock=!0,window.location.hash=i.linkId+"/"+t.current,setTimeout(function(){t.hashLock=!1},55)),i.slideshow.startPaused||(e.resume(),t.innerPlayButton.removeClass("ilightbox-play").addClass("ilightbox-pause")),typeof e.options.callback.onOpen=="function"&&e.options.callback.onOpen.call(e)},loadContent:function(e,t,i){var n=this,o,r;switch(n.createUI(),e.speed=i||n.options.effects.loadedFadeSpeed,t=="current"&&(n.vars.lockWheel=!e.options.mousewheel,n.vars.lockSwipe=!e.options.swipe),t){case"current":o=n.vars.holder,r=n.vars.current;break;case"next":o=n.vars.nextPhoto,r=n.vars.next;break;case"prev":o=n.vars.prevPhoto,r=n.vars.prev}if(o.removeAttr("style class").addClass("ilightbox-holder").addClass(e.options.skin),jQuery("div.ilightbox-inner-toolbar",o).remove(),e.title||n.options.innerToolbar){if(i=n.vars.innerToolbar.clone(),e.title&&n.options.show.title){var a=n.vars.title.clone();a.empty().html(e.title),i.append(a)}n.options.innerToolbar&&i.append(1<n.vars.total?n.vars.toolbar.clone():n.vars.toolbar),o.prepend(i)}n.options.smartRecognition||e.options.smartRecognition?n.ogpRecognition(e,function(l){var s=e,c=jQuery.extend({},e,{});l&&(e=jQuery.extend(!0,e,{type:l.type,options:{html5video:l.html5video,width:l.type=="image"?0:l.width||e.width,height:l.type=="image"?0:l.height||e.height,thumbnail:e.options.thumbnail||l.thumbnail}}),s=jQuery.extend({},e,{URL:l.source}),e.options.smartRecognition&&!c.options.thumbnail&&(n.vars.dontGenerateThumbs=!1,n.generateThumbnails())),n.loadSwitcher(s,o,r,t)}):n.loadSwitcher(e,o,r,t)},loadSwitcher:function(e,t,i,n){var o=this,r=o.options,a={element:t,position:i},l;switch(e.type){case"image":typeof r.callback.onBeforeLoad=="function"&&r.callback.onBeforeLoad.call(o,o.ui,i),typeof e.options.onBeforeLoad=="function"&&e.options.onBeforeLoad.call(o,a),o.loadImage(e.URL,function(f){typeof r.callback.onAfterLoad=="function"&&r.callback.onAfterLoad.call(o,o.ui,i),typeof e.options.onAfterLoad=="function"&&e.options.onAfterLoad.call(o,a),t.data({naturalWidth:f?f.width:400,naturalHeight:f?f.height:200}),jQuery("div.ilightbox-container",t).empty().append(f?'<img src="'+e.URL+'" class="ilightbox-image" />':'<span class="ilightbox-alert">'+r.errors.loadImage+"</span>"),typeof r.callback.onRender=="function"&&r.callback.onRender.call(o,o.ui,i),typeof e.options.onRender=="function"&&e.options.onRender.call(o,a),o.configureHolder(e,n,t)});break;case"video":t.data({naturalWidth:e.options.width,naturalHeight:e.options.height}),o.addContent(t,e),typeof r.callback.onRender=="function"&&r.callback.onRender.call(o,o.ui,i),typeof e.options.onRender=="function"&&e.options.onRender.call(o,a),o.configureHolder(e,n,t);break;case"iframe":o.showLoader(),t.data({naturalWidth:e.options.width,naturalHeight:e.options.height});var s=o.addContent(t,e);typeof r.callback.onRender=="function"&&r.callback.onRender.call(o,o.ui,i),typeof e.options.onRender=="function"&&e.options.onRender.call(o,a),typeof r.callback.onBeforeLoad=="function"&&r.callback.onBeforeLoad.call(o,o.ui,i),typeof e.options.onBeforeLoad=="function"&&e.options.onBeforeLoad.call(o,a),l=function(){typeof r.callback.onAfterLoad=="function"&&r.callback.onAfterLoad.call(o,o.ui,i),typeof e.options.onAfterLoad=="function"&&e.options.onAfterLoad.call(o,a),o.hideLoader(),o.configureHolder(e,n,t),s.off("load")},s[0].contentDocument.readyState==="complete"?l():s.on("load",function(){l(),s.off("load")});break;case"inline":s=jQuery(e.URL);var c=o.addContent(t,e),h=fnGetMediaUrls(t);t.data({naturalWidth:o.items[i].options.width||s.iLightBoxOuterWidth(),naturalHeight:o.items[i].options.height||s.iLightBoxOuterHeight()}),c.children().eq(0).show(),typeof r.callback.onRender=="function"&&r.callback.onRender.call(o,o.ui,i),typeof e.options.onRender=="function"&&e.options.onRender.call(o,a),typeof r.callback.onBeforeLoad=="function"&&r.callback.onBeforeLoad.call(o,o.ui,i),typeof e.options.onBeforeLoad=="function"&&e.options.onBeforeLoad.call(o,a),o.loadImage(h,function(){typeof r.callback.onAfterLoad=="function"&&r.callback.onAfterLoad.call(o,o.ui,i),typeof e.options.onAfterLoad=="function"&&e.options.onAfterLoad.call(o,a),o.configureHolder(e,n,t)});break;case"flash":s=o.addContent(t,e),t.data({naturalWidth:o.items[i].options.width||s.iLightBoxOuterWidth(),naturalHeight:o.items[i].options.height||s.iLightBoxOuterHeight()}),typeof r.callback.onRender=="function"&&r.callback.onRender.call(o,o.ui,i),typeof e.options.onRender=="function"&&e.options.onRender.call(o,a),o.configureHolder(e,n,t);break;case"ajax":var u=e.options.ajax||{};typeof r.callback.onBeforeLoad=="function"&&r.callback.onBeforeLoad.call(o,o.ui,i),typeof e.options.onBeforeLoad=="function"&&e.options.onBeforeLoad.call(o,a),o.showLoader(),jQuery.ajax({url:e.URL||r.ajaxSetup.url,data:u.data||null,dataType:u.dataType||"html",type:u.type||r.ajaxSetup.type,cache:u.cache||r.ajaxSetup.cache,crossDomain:u.crossDomain||r.ajaxSetup.crossDomain,global:u.global||r.ajaxSetup.global,ifModified:u.ifModified||r.ajaxSetup.ifModified,username:u.username||r.ajaxSetup.username,password:u.password||r.ajaxSetup.password,beforeSend:u.beforeSend||r.ajaxSetup.beforeSend,complete:u.complete||r.ajaxSetup.complete,success:function(f,m,b){o.hideLoader();var g=jQuery(f),y=jQuery("div.ilightbox-container",t),w=o.items[i].options.width||parseInt(g.attr("width")),x=o.items[i].options.height||parseInt(g.attr("height")),L=g.attr("width")&&g.attr("height")?{overflow:"hidden"}:{};y.empty().append(jQuery('<div class="ilightbox-wrapper"></div>').css(L).html(g)),t.show().data({naturalWidth:w||y.iLightBoxOuterWidth(),naturalHeight:x||y.iLightBoxOuterHeight()}).hide(),typeof r.callback.onRender=="function"&&r.callback.onRender.call(o,o.ui,i),typeof e.options.onRender=="function"&&e.options.onRender.call(o,a),g=fnGetMediaUrls(t),o.loadImage(g,function(){typeof r.callback.onAfterLoad=="function"&&r.callback.onAfterLoad.call(o,o.ui,i),typeof e.options.onAfterLoad=="function"&&e.options.onAfterLoad.call(o,a),o.configureHolder(e,n,t)}),r.ajaxSetup.success(f,m,b),typeof u.success=="function"&&u.success(f,m,b)},error:function(f,m,b){typeof r.callback.onAfterLoad=="function"&&r.callback.onAfterLoad.call(o,o.ui,i),typeof e.options.onAfterLoad=="function"&&e.options.onAfterLoad.call(o,a),o.hideLoader(),jQuery("div.ilightbox-container",t).empty().append('<span class="ilightbox-alert">'+r.errors.loadContents+"</span>"),o.configureHolder(e,n,t),r.ajaxSetup.error(f,m,b),typeof u.error=="function"&&u.error(f,m,b)}});break;case"html":c=e.URL;var d=jQuery("div.ilightbox-container",t);c[0].nodeName?s=c.clone():(c=jQuery(c),s=c.selector?jQuery("<div>"+c+"</div>"):c);var v=o.items[i].options.width||parseInt(s.attr("width")),p=o.items[i].options.height||parseInt(s.attr("height"));o.addContent(t,e),s.appendTo(document.documentElement).hide(),typeof r.callback.onRender=="function"&&r.callback.onRender.call(o,o.ui,i),typeof e.options.onRender=="function"&&e.options.onRender.call(o,a),h=fnGetMediaUrls(t),typeof r.callback.onBeforeLoad=="function"&&r.callback.onBeforeLoad.call(o,o.ui,i),typeof e.options.onBeforeLoad=="function"&&e.options.onBeforeLoad.call(o,a),o.loadImage(h,function(){typeof r.callback.onAfterLoad=="function"&&r.callback.onAfterLoad.call(o,o.ui,i),typeof e.options.onAfterLoad=="function"&&e.options.onAfterLoad.call(o,a),t.show().data({naturalWidth:v||d.iLightBoxOuterWidth(),naturalHeight:p||d.iLightBoxOuterHeight()}).hide(),s.remove(),o.configureHolder(e,n,t)})}},configureHolder:function(e,t,i){var n=this,o=n.vars,r=n.options;if(t!="current"&&(t=="next"?i.addClass("ilightbox-next"):i.addClass("ilightbox-prev")),t=="current")var a=o.current;else if(t=="next"){var l=r.styles.nextOpacity;a=o.next}else l=r.styles.prevOpacity,a=o.prev;var s={element:i,position:a};n.items[a].options.width=n.items[a].options.width||0,n.items[a].options.height=n.items[a].options.height||0,t=="current"?r.show.effect?i.css(varPropTransform,varPropPerspective).fadeIn(e.speed,function(){if(i.css(varPropTransform,""),e.caption){n.setCaption(e,i);var c=jQuery("div.ilightbox-caption",i),h=parseInt(c.iLightBoxOuterHeight()/i.iLightBoxOuterHeight()*100);r.caption.start&50>=h&&c.fadeIn(r.effects.fadeSpeed)}c=e.options.social,c&&(n.setSocial(c,e.URL,i),r.social.start&&jQuery("div.ilightbox-social",i).fadeIn(r.effects.fadeSpeed)),n.generateThumbnails(),typeof r.callback.onShow=="function"&&r.callback.onShow.call(n,n.ui,a),typeof e.options.onShow=="function"&&e.options.onShow.call(n,s)}):(i.show(),n.generateThumbnails(),typeof r.callback.onShow=="function"&&r.callback.onShow.call(n,n.ui,a),typeof e.options.onShow=="function"&&e.options.onShow.call(n,s)):r.show.effect?i.fadeTo(e.speed,l,function(){t=="next"?o.nextLock=!1:o.prevLock=!1,n.generateThumbnails(),typeof r.callback.onShow=="function"&&r.callback.onShow.call(n,n.ui,a),typeof e.options.onShow=="function"&&e.options.onShow.call(n,s)}):(i.css({opacity:l}).show(),t=="next"?o.nextLock=!1:o.prevLock=!1,n.generateThumbnails(),typeof r.callback.onShow=="function"&&r.callback.onShow.call(n,n.ui,a),typeof e.options.onShow=="function"&&e.options.onShow.call(n,s)),setTimeout(function(){n.repositionPhoto()},0)},generateBoxes:function(){var e=this.vars,t=this.options;t.infinite&&3<=e.total?(e.current==e.total-1&&(e.next=0),e.current==0&&(e.prev=e.total-1)):t.infinite=!1,this.loadContent(this.items[e.current],"current",t.show.speed),this.items[e.next]&&this.loadContent(this.items[e.next],"next",t.show.speed),this.items[e.prev]&&this.loadContent(this.items[e.prev],"prev",t.show.speed)},generateThumbnails:function(){var e=this,t=e.vars,i=e.options,n=null;if(t.thumbs&&!e.vars.dontGenerateThumbs){var o=t.thumbnails,r=jQuery("div.ilightbox-thumbnails-container",o),a=jQuery("div.ilightbox-thumbnails-grid",r),l=0;a.removeAttr("style").empty(),jQuery.each(e.items,function(s,c){var h=t.current==s?"ilightbox-active":"",u=t.current==s?i.thumbnails.activeOpacity:i.thumbnails.normalOpacity,d=c.options.thumbnail,v=jQuery('<div class="ilightbox-thumbnail"></div>'),p=jQuery('<div class="ilightbox-thumbnail-icon"></div>');v.css({opacity:0}).addClass(h),c.type!="video"&&c.type!="flash"||typeof c.options.icon!="undefined"?c.options.icon&&(p.addClass("ilightbox-thumbnail-"+c.options.icon),v.append(p)):(p.addClass("ilightbox-thumbnail-video"),v.append(p)),d&&e.loadImage(d,function(f){l++,f?v.data({naturalWidth:f.width,naturalHeight:f.height}).append('<img src="'+d+'" border="0" />'):v.data({naturalWidth:i.thumbnails.maxWidth,naturalHeight:i.thumbnails.maxHeight}),clearTimeout(n),n=setTimeout(function(){e.positionThumbnails(o,r,a)},20),setTimeout(function(){v.fadeTo(i.effects.loadedFadeSpeed,u)},20*l)}),a.append(v)}),e.vars.dontGenerateThumbs=!0}},positionThumbnails:function(e,t,i){var n=this,o=n.vars,r=n.options,a=fnGetWindowDimensions(),l=r.path.toLowerCase();e||(e=o.thumbnails),t||(t=jQuery("div.ilightbox-thumbnails-container",e)),i||(i=jQuery("div.ilightbox-thumbnails-grid",t));var s=jQuery(".ilightbox-thumbnail",i);o=l=="horizontal"?a.width-r.styles.pageOffsetX:s.eq(0).iLightBoxOuterWidth()-r.styles.pageOffsetX,a=l=="horizontal"?s.eq(0).iLightBoxOuterHeight()-r.styles.pageOffsetY:a.height-r.styles.pageOffsetY;var c=l=="horizontal"?0:o,h=l=="horizontal"?a:0,u=jQuery(".ilightbox-active",i),d={};3>arguments.length&&(s.css({opacity:r.thumbnails.normalOpacity}),u.css({opacity:r.thumbnails.activeOpacity})),s.each(function(p){p=jQuery(this);var f=p.data(),m=l=="horizontal"?0:r.thumbnails.maxWidth,b=l=="horizontal"?r.thumbnails.maxHeight:0,g=n.getNewDimenstions(m,b,f.naturalWidth,f.naturalHeight,!0);p.css({width:g.width,height:g.height}),l=="horizontal"&&p.css({float:"left"}),l=="horizontal"?c=c+p.iLightBoxOuterWidth():h=h+p.iLightBoxOuterHeight()}),d={width:c,height:h},i.css(d),d={},s=i.offset();var v=u.length?u.offset():{top:parseInt(a/2),left:parseInt(o/2)};s.top-=$document.scrollTop(),s.left-=$document.scrollLeft(),v.top=v.top-s.top-$document.scrollTop(),v.left=v.left-s.left-$document.scrollLeft(),l=="horizontal"?(d.top=0,d.left=parseInt(o/2-v.left-u.iLightBoxOuterWidth()/2)):(d.top=parseInt(a/2-v.top-u.iLightBoxOuterHeight()/2),d.left=0),3>arguments.length?i.stop().animate(d,r.effects.repositionSpeed,"easeOutCirc"):i.css(d)},loadImage:function(e,t){Array.isArray(e)||(e=[e]);var i=this,n=e.length;0<n?(i.showLoader(),jQuery.each(e,function(o){var r=new Image;r.onload=function(){n=n-1,n==0&&(i.hideLoader(),t(r))},r.onerror=r.onabort=function(){n=n-1,n==0&&(i.hideLoader(),t(!1))},r.src=e[o]})):t(!1)},patchItemsEvents:function(){var e=this,t=e.vars,i=varHasTouchEvents?"itap.iLightBox":"click.iLightBox",n=varHasTouchEvents?"click.iLightBox":"itap.iLightBox";jQuery.each(e.itemsObject,function(o,r){r.on(i,function(){return t.current=o,t.next=e.items[o+1]?o+1:null,t.prev=e.items[o-1]?o-1:null,e.addContents(),e.patchEvents(),!1}).on(n,function(){return!1})})},dispatchItemsEvents:function(){jQuery.each(this.itemsObject,function(e,t){t.off(".iLightBox")})},refresh:function(){this.dispatchItemsEvents(),this.attachItems(),this.normalizeItems(),this.patchItemsEvents()},patchEvents:function(){function e(c){c.type!=="mousemove"||i.isMobile||(i.mouseID||i.hideableElements.show(),i.mouseID=clearTimeout(i.mouseID),i.mouseID=setTimeout(function(){i.hideableElements.hide(),i.mouseID=clearTimeout(i.mouseID)},3e3))}var t=this,i=t.vars,n=t.options,o=n.path.toLowerCase(),r=jQuery(".ilightbox-holder"),a=varFullscreenState.fullScreenEventName+".iLightBox",l=verticalDistanceThreshold;$window.on("resize.iLightBox",function(){var c=fnGetWindowDimensions();n.mobileOptimizer&&!n.innerToolbar&&(i.isMobile=c.width<=i.mobileMaxWidth),i.BODY[i.isMobile?"addClass":"removeClass"]("isMobile"),t.repositionPhoto(null),varHasTouchEvents&&(clearTimeout(i.setTime),i.setTime=setTimeout(function(){var h=fnGetPageOffset().y;window.scrollTo(0,h-30),window.scrollTo(0,h+30),window.scrollTo(0,h)},2e3)),i.thumbs&&t.positionThumbnails()}).on("keydown.iLightBox",function(c){if(n.controls.keyboard)switch(c.keyCode){case 13:c.shiftKey&&n.keyboard.shift_enter&&t.fullScreenAction();break;case 27:n.keyboard.esc&&t.closeAction();break;case 37:n.keyboard.left&&!i.lockKey&&t.moveTo("prev");break;case 38:n.keyboard.up&&!i.lockKey&&t.moveTo("prev");break;case 39:n.keyboard.right&&!i.lockKey&&t.moveTo("next");break;case 40:n.keyboard.down&&!i.lockKey&&t.moveTo("next")}}),varFullscreenState.supportsFullScreen&&$window.on(a,function(){t.doFullscreen()}),a=[n.caption.show+".iLightBox",n.caption.hide+".iLightBox",n.social.show+".iLightBox",n.social.hide+".iLightBox"].filter(function(c,h,u){return u.lastIndexOf(c)===h});var s="";jQuery.each(a,function(c,h){c!=0&&(s=s+" "),s=s+h}),$document.on(varEventClick,".ilightbox-overlay",function(){n.overlay.blur&&t.closeAction()}).on(varEventClick,".ilightbox-next, .ilightbox-next-button",function(){t.moveTo("next")}).on(varEventClick,".ilightbox-prev, .ilightbox-prev-button",function(){t.moveTo("prev")}).on(varEventClick,".ilightbox-thumbnail",function(){var c=jQuery(this);c=jQuery(".ilightbox-thumbnail",i.thumbnails).index(c),c!=i.current&&t.goTo(c)}).on(s,".ilightbox-holder:not(.ilightbox-next, .ilightbox-prev)",function(c){var h=jQuery("div.ilightbox-caption",i.holder),u=jQuery("div.ilightbox-social",i.holder),d=n.effects.fadeSpeed;i.nextLock||i.prevLock?(c.type!=n.caption.show||h.is(":visible")?c.type==n.caption.hide&&h.is(":visible")&&h.fadeOut(d):h.fadeIn(d),c.type!=n.social.show||u.is(":visible")?c.type==n.social.hide&&u.is(":visible")&&u.fadeOut(d):u.fadeIn(d)):(c.type!=n.caption.show||h.is(":visible")?c.type==n.caption.hide&&h.is(":visible")&&h.stop().fadeOut(d):h.stop().fadeIn(d),c.type!=n.social.show||u.is(":visible")?c.type==n.social.hide&&u.is(":visible")&&u.stop().fadeOut(d):u.stop().fadeIn(d))}).on("mouseenter.iLightBox mouseleave.iLightBox",".ilightbox-wrapper",function(c){i.lockWheel=c.type=="mouseenter"}).on(varEventClick,".ilightbox-toolbar a.ilightbox-close, .ilightbox-toolbar a.ilightbox-fullscreen, .ilightbox-toolbar a.ilightbox-play, .ilightbox-toolbar a.ilightbox-pause",function(){var c=jQuery(this);c.hasClass("ilightbox-fullscreen")?t.fullScreenAction():c.hasClass("ilightbox-play")?(t.resume(),c.addClass("ilightbox-pause").removeClass("ilightbox-play")):c.hasClass("ilightbox-pause")?(t.pause(),c.addClass("ilightbox-play").removeClass("ilightbox-pause")):t.closeAction()}).on(varEventMouseMove,".ilightbox-overlay, .ilightbox-thumbnails-container",function(c){c.preventDefault()}),n.controls.arrows&&!varHasTouchEvents&&$document.on("mousemove.iLightBox",e),n.controls.slideshow&&n.slideshow.pauseOnHover&&$document.on("mouseenter.iLightBox mouseleave.iLightBox",".ilightbox-holder:not(.ilightbox-next, .ilightbox-prev)",function(c){c.type=="mouseenter"&&i.cycleID?t.pause():c.type=="mouseleave"&&i.isPaused&&t.resume()}),a=jQuery(".ilightbox-overlay, .ilightbox-holder, .ilightbox-thumbnails"),n.controls.mousewheel&&a.on("mousewheel.iLightBox",function(c,h){i.lockWheel||(c.preventDefault(),0>h?t.moveTo("next"):0<h&&t.moveTo("prev"))}),n.controls.swipe&&r.on(varEventMousedown,function(c){function h(m){if(p){var b=m.originalEvent.touches?m.originalEvent.touches[0]:m;f={time:new Date().getTime(),coords:[b.pageX-v,b.pageY-d]},r.each(function(){var g=jQuery(this),y=g.data("offset")||{top:g.offset().top-d,left:g.offset().left-v},w=y.top;y=y.left;var x=[p.coords[0]-f.coords[0],p.coords[1]-f.coords[1]];o=="horizontal"?g.stop().css({left:y-x[0]}):g.stop().css({top:w-x[1]})}),m.preventDefault()}}function u(){r.each(function(){var m=jQuery(this),b=m.data("offset")||{top:m.offset().top-d,left:m.offset().left-v},g=b.top;b=b.left,m.css(varPropTransform,varPropPerspective).stop().animate({top:g,left:b},500,"easeOutCirc",function(){m.css(varPropTransform,"")})})}if(!i.nextLock&&!i.prevLock&&i.total!=1&&!i.lockSwipe){i.BODY.addClass("ilightbox-closedhand"),c=c.originalEvent.touches?c.originalEvent.touches[0]:c;var d=$document.scrollTop(),v=$document.scrollLeft(),p={time:new Date().getTime(),coords:[c.pageX-v,c.pageY-d]},f;r.on(varEventMouseMove,h),$document.one(varEventMouseup,function(){r.off(varEventMouseMove,h),i.BODY.removeClass("ilightbox-closedhand"),p&&f&&(o=="horizontal"&&1e3>f.time-p.time&&Math.abs(p.coords[0]-f.coords[0])>l&&Math.abs(p.coords[1]-f.coords[1])<verticalDistanceThreshold?p.coords[0]>f.coords[0]?i.current!=i.total-1||n.infinite?(i.isSwipe=!0,t.moveTo("next")):u():i.current!=0||n.infinite?(i.isSwipe=!0,t.moveTo("prev")):u():o=="vertical"&&1e3>f.time-p.time&&Math.abs(p.coords[1]-f.coords[1])>l&&Math.abs(p.coords[0]-f.coords[0])<verticalDistanceThreshold?p.coords[1]>f.coords[1]?i.current!=i.total-1||n.infinite?(i.isSwipe=!0,t.moveTo("next")):u():i.current!=0||n.infinite?(i.isSwipe=!0,t.moveTo("prev")):u():u()),p=f=varUnknown})}})},goTo:function(e){var t=this,i=t.vars,n=t.options,o=e-i.current;if(n.infinite&&(e==i.total-1&&i.current==0&&(o=-1),i.current==i.total-1&&e==0&&(o=1)),o==1)t.moveTo("next");else if(o==-1)t.moveTo("prev");else{if(i.nextLock||i.prevLock)return!1;typeof n.callback.onBeforeChange=="function"&&n.callback.onBeforeChange.call(t,t.ui),n.linkId&&(i.hashLock=!0,window.location.hash=n.linkId+"/"+e),t.items[e]&&(t.items[e].options.mousewheel?t.vars.lockWheel=!1:i.lockWheel=!0,i.lockSwipe=!t.items[e].options.swipe),jQuery.each([i.holder,i.nextPhoto,i.prevPhoto],function(r,a){a.css(varPropTransform,varPropPerspective).fadeOut(n.effects.loadedFadeSpeed)}),i.current=e,i.next=e+1,i.prev=e-1,t.createUI(),setTimeout(function(){t.generateBoxes()},n.effects.loadedFadeSpeed+50),jQuery(".ilightbox-thumbnail",i.thumbnails).removeClass("ilightbox-active").eq(e).addClass("ilightbox-active"),t.positionThumbnails(),n.linkId&&setTimeout(function(){i.hashLock=!1},55),n.infinite||(i.nextButton.add(i.prevButton).add(i.innerPrevButton).add(i.innerNextButton).removeClass("disabled"),i.current==0&&i.prevButton.add(i.innerPrevButton).addClass("disabled"),i.current>=i.total-1&&i.nextButton.add(i.innerNextButton).addClass("disabled")),t.resetCycle(),typeof n.callback.onAfterChange=="function"&&n.callback.onAfterChange.call(t,t.ui)}},moveTo:function(e){var t=this,i=t.vars,n=t.options,o=n.path.toLowerCase(),r=fnGetWindowDimensions(),a=n.effects.switchSpeed;if(i.nextLock||i.prevLock)return!1;var l=e=="next"?i.next:i.prev;if(n.linkId&&(i.hashLock=!0,window.location.hash=n.linkId+"/"+l),e=="next"){if(!t.items[l])return!1;var s=i.nextPhoto,c=i.holder,h=i.prevPhoto,u="ilightbox-prev",d="ilightbox-next"}else if(e=="prev"){if(!t.items[l])return!1;s=i.prevPhoto,c=i.holder,h=i.nextPhoto,u="ilightbox-next",d="ilightbox-prev"}typeof n.callback.onBeforeChange=="function"&&n.callback.onBeforeChange.call(t,t.ui),e=="next"?i.nextLock=!0:i.prevLock=!0;var v=jQuery("div.ilightbox-caption",c),p=jQuery("div.ilightbox-social",c);v.length&&v.stop().fadeOut(a,function(){jQuery(this).remove()}),p.length&&p.stop().fadeOut(a,function(){jQuery(this).remove()}),t.items[l].caption&&(t.setCaption(t.items[l],s),v=jQuery("div.ilightbox-caption",s),p=parseInt(v.iLightBoxOuterHeight()/s.iLightBoxOuterHeight()*100),n.caption.start&&50>=p&&v.fadeIn(a)),v=t.items[l].options.social,v&&(t.setSocial(v,t.items[l].URL,s),n.social.start&&jQuery("div.ilightbox-social",s).fadeIn(n.effects.fadeSpeed)),jQuery.each([s,c,h],function(w,x){x.removeClass("ilightbox-next ilightbox-prev")});var f=s.data("offset");v=r.width-n.styles.pageOffsetX,r=r.height-n.styles.pageOffsetY,p=f.newDims.width;var m=f.newDims.height,b=f.thumbsOffset;f=f.diff;var g=parseInt(r/2-m/2-f.H-b.H/2);f=parseInt(v/2-p/2-f.W-b.W/2),s.css(varPropTransform,varPropPerspective).animate({top:g,left:f,opacity:1},a,i.isSwipe?"easeOutCirc":"easeInOutCirc",function(){s.css(varPropTransform,"")}),jQuery("div.ilightbox-container",s).animate({width:p,height:m},a,i.isSwipe?"easeOutCirc":"easeInOutCirc"),m=c.data("offset");var y=m.object;f=m.diff,p=m.newDims.width,m=m.newDims.height,p=parseInt(p*n.styles[e=="next"?"prevScale":"nextScale"]),m=parseInt(m*n.styles[e=="next"?"prevScale":"nextScale"]),g=o=="horizontal"?parseInt(r/2-y.offsetY-m/2-f.H-b.H/2):parseInt(r-y.offsetX-f.H-b.H/2),e=="prev"?f=o=="horizontal"?parseInt(v-y.offsetX-f.W-b.W/2):parseInt(v/2-p/2-f.W-y.offsetY-b.W/2):(g=o=="horizontal"?g:parseInt(y.offsetX-f.H-m-b.H/2),f=o=="horizontal"?parseInt(y.offsetX-f.W-p-b.W/2):parseInt(v/2-y.offsetY-p/2-f.W-b.W/2)),jQuery("div.ilightbox-container",c).animate({width:p,height:m},a,i.isSwipe?"easeOutCirc":"easeInOutCirc"),c.addClass(u).css(varPropTransform,varPropPerspective).animate({top:g,left:f,opacity:n.styles.prevOpacity},a,i.isSwipe?"easeOutCirc":"easeInOutCirc",function(){c.css(varPropTransform,""),jQuery(".ilightbox-thumbnail",i.thumbnails).removeClass("ilightbox-active").eq(l).addClass("ilightbox-active"),t.positionThumbnails(),t.items[l]&&(i.lockWheel=!t.items[l].options.mousewheel,i.lockSwipe=!t.items[l].options.swipe),i.isSwipe=!1,e=="next"?(i.nextPhoto=h,i.prevPhoto=c,i.holder=s,i.nextPhoto.hide(),i.next+=1,i.prev=i.current,i.current+=1,n.infinite&&(i.current>i.total-1&&(i.current=0),i.current==i.total-1&&(i.next=0),i.current==0&&(i.prev=i.total-1)),t.createUI(),t.items[i.next]?t.loadContent(t.items[i.next],"next"):i.nextLock=!1):(i.prevPhoto=h,i.nextPhoto=c,i.holder=s,i.prevPhoto.hide(),i.next=i.current,i.current=i.prev,i.prev=i.current-1,n.infinite&&(i.current==i.total-1&&(i.next=0),i.current==0&&(i.prev=i.total-1)),t.createUI(),t.items[i.prev]?t.loadContent(t.items[i.prev],"prev"):i.prevLock=!1),n.linkId&&setTimeout(function(){i.hashLock=!1},55),n.infinite||(i.nextButton.add(i.prevButton).add(i.innerPrevButton).add(i.innerNextButton).removeClass("disabled"),i.current==0&&i.prevButton.add(i.innerPrevButton).addClass("disabled"),i.current>=i.total-1&&i.nextButton.add(i.innerNextButton).addClass("disabled")),t.repositionPhoto(),t.resetCycle(),typeof n.callback.onAfterChange=="function"&&n.callback.onAfterChange.call(t,t.ui)}),g=o=="horizontal"?fnGetElementDimension(h,"top"):e=="next"?parseInt(-(r/2)-h.iLightBoxOuterHeight()):parseInt(2*g),f=o=="horizontal"?e=="next"?parseInt(-(v/2)-h.iLightBoxOuterWidth()):parseInt(2*f):fnGetElementDimension(h,"left"),h.css(varPropTransform,varPropPerspective).animate({top:g,left:f,opacity:n.styles.nextOpacity},a,i.isSwipe?"easeOutCirc":"easeInOutCirc",function(){h.css(varPropTransform,"")}).addClass(d)},setCaption:function(e,t){var i=jQuery('<div class="ilightbox-caption"></div>');e.caption&&(i.html(e.caption),jQuery("div.ilightbox-container",t).append(i))},normalizeSocial:function(e,t){var i=this.options,n=window.location.href;return jQuery.each(e,function(o,r){var a,l;switch(o.toLowerCase()){case"facebook":a="http://www.facebook.com/share.php?v=4&src=bm&u={URL}",l="Share on Facebook";break;case"twitter":a="http://twitter.com/home?status={URL}",l="Share on Twitter";break;case"googleplus":a="https://plus.google.com/share?url={URL}",l="Share on Google+";break;case"delicious":a="http://delicious.com/post?url={URL}",l="Share on Delicious";break;case"digg":a="http://digg.com/submit?phase=2&url={URL}",l="Share on Digg";break;case"reddit":a="http://reddit.com/submit?url={URL}",l="Share on reddit"}e[o]={URL:r.URL&&fnNormalizeUrl(n,r.URL)||i.linkId&&window.location.href||typeof t!="string"&&n||t&&fnNormalizeUrl(n,t)||n,source:r.source||a||r.URL&&fnNormalizeUrl(n,r.URL)||t&&fnNormalizeUrl(n,t),text:l||r.text||"Share on "+o,width:typeof r.width=="undefined"||isNaN(r.width)?640:parseInt(r.width),height:r.height||360}}),e},setSocial:function(e,t,i){var n=jQuery('<div class="ilightbox-social"></div>'),o="<ul>";e=this.normalizeSocial(e,t),jQuery.each(e,function(r,a){r.toLowerCase();var l=a.source.replace("{URL}",encodeURIComponent(a.URL).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+"));o=o+('<li class="'+r+'"><a href="'+l+'" onclick="javascript:window.open(this.href'+(0>=a.width||0>=a.height?"":", '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height="+a.height+",width="+a.width+",left=40,top=40'")+');return false;" title="'+a.text+'" target="_blank"></a></li>')}),o=o+"</ul>",n.html(o),jQuery("div.ilightbox-container",i).append(n)},fullScreenAction:function(){varFullscreenState.supportsFullScreen?varFullscreenState.isFullScreen()?varFullscreenState.cancelFullScreen(document.documentElement):varFullscreenState.requestFullScreen(document.documentElement):this.doFullscreen()},doFullscreen:function(){var e=this.vars,t=fnGetWindowDimensions(),i=this.options;if(i.fullAlone){var n=e.holder,o=this.items[e.current],r=t.width,a=t.height,l=[n,e.nextPhoto,e.prevPhoto,e.nextButton,e.prevButton,e.overlay,e.toolbar,e.thumbnails,e.loader];if(t=[e.nextPhoto,e.prevPhoto,e.nextButton,e.prevButton,e.loader,e.thumbnails],e.isInFullScreen)e.isInFullScreen=e.lockKey=e.lockWheel=e.lockSwipe=!1,e.overlay.css({opacity:this.options.overlay.opacity}),jQuery.each(t,function(c,h){h.show()}),e.fullScreenButton.attr("title",i.text.enterFullscreen),n.data({naturalWidth:n.data("naturalWidthOld"),naturalHeight:n.data("naturalHeightOld"),naturalWidthOld:null,naturalHeightOld:null}),jQuery.each(l,function(c,h){h.removeClass("ilightbox-fullscreen")}),typeof i.callback.onExitFullScreen=="function"&&i.callback.onExitFullScreen.call(this,this.ui);else{if(e.isInFullScreen=e.lockKey=e.lockWheel=e.lockSwipe=!0,e.overlay.css({opacity:1}),jQuery.each(t,function(c,h){h.hide()}),e.fullScreenButton.attr("title",i.text.exitFullscreen),i.fullStretchTypes.indexOf(o.type)!=-1)n.data({naturalWidthOld:n.data("naturalWidth"),naturalHeightOld:n.data("naturalHeight"),naturalWidth:r,naturalHeight:a});else{t=o.options.fullViewPort||i.fullViewPort||"",e=r,o=a,r=n.data("naturalWidth");var s=n.data("naturalHeight");t.toLowerCase()=="fill"?(o=e/r*s,o<a&&(e=a/s*r,o=a)):t.toLowerCase()=="fit"?(a=this.getNewDimenstions(e,o,r,s,!0),e=a.width,o=a.height):t.toLowerCase()!="stretch"&&(a=this.getNewDimenstions(e,o,r,s,r>e||s>o),e=a.width,o=a.height),n.data({naturalWidthOld:n.data("naturalWidth"),naturalHeightOld:n.data("naturalHeight"),naturalWidth:e,naturalHeight:o})}jQuery.each(l,function(c,h){h.addClass("ilightbox-fullscreen")}),typeof i.callback.onEnterFullScreen=="function"&&i.callback.onEnterFullScreen.call(this,this.ui)}}else e.isInFullScreen=!e.isInFullScreen;this.repositionPhoto(!0)},closeAction:function(){var e=this.vars,t=this.options;$window.off(".iLightBox"),e.isInFullScreen&&varFullscreenState.cancelFullScreen(document.documentElement),$document.off(".iLightBox"),jQuery(".ilightbox-overlay, .ilightbox-holder, .ilightbox-thumbnails").off(".iLightBox"),t.hide.effect?e.overlay.stop().fadeOut(t.hide.speed,function(){e.overlay.remove(),e.BODY.removeClass("ilightbox-noscroll").off(".iLightBox")}):(e.overlay.remove(),e.BODY.removeClass("ilightbox-noscroll").off(".iLightBox")),jQuery.each([e.toolbar,e.holder,e.nextPhoto,e.prevPhoto,e.nextButton,e.prevButton,e.loader,e.thumbnails],function(i,n){n.removeAttr("style").remove()}),e.dontGenerateThumbs=e.isInFullScreen=!1,window.iLightBox=null,t.linkId&&(e.hashLock=!0,fnScrollToPageOffset(),setTimeout(function(){e.hashLock=!1},55)),typeof t.callback.onHide=="function"&&t.callback.onHide.call(this,this.ui)},repositionPhoto:function(){var e=this.vars,t=this.options,i=t.path.toLowerCase(),n=fnGetWindowDimensions(),o=n.width,r=n.height;n=e.isInFullScreen&&t.fullAlone||e.isMobile||i=="horizontal"?0:e.thumbnails.iLightBoxOuterWidth();var a=e.isMobile?e.toolbar.iLightBoxOuterHeight():e.isInFullScreen&&t.fullAlone?0:i=="horizontal"?e.thumbnails.iLightBoxOuterHeight():0;o=e.isInFullScreen&&t.fullAlone?o:o-t.styles.pageOffsetX,r=e.isInFullScreen&&t.fullAlone?r:r-t.styles.pageOffsetY;var l=i=="horizontal"?parseInt(this.items[e.next]||this.items[e.prev]?2*(t.styles.nextOffsetX+t.styles.prevOffsetX):30>=o/10?30:o/10):parseInt(30>=o/10?30:o/10)+n,s=i=="horizontal"?parseInt(30>=r/10?30:r/10)+a:parseInt(this.items[e.next]||this.items[e.prev]?2*(t.styles.nextOffsetX+t.styles.prevOffsetX):30>=r/10?30:r/10);n={type:"current",width:o,height:r,item:this.items[e.current],offsetW:l,offsetH:s,thumbsOffsetW:n,thumbsOffsetH:a,animate:arguments.length,holder:e.holder},this.repositionEl(n),this.items[e.next]&&(n=jQuery.extend(n,{type:"next",item:this.items[e.next],offsetX:t.styles.nextOffsetX,offsetY:t.styles.nextOffsetY,holder:e.nextPhoto}),this.repositionEl(n)),this.items[e.prev]&&(n=jQuery.extend(n,{type:"prev",item:this.items[e.prev],offsetX:t.styles.prevOffsetX,offsetY:t.styles.prevOffsetY,holder:e.prevPhoto}),this.repositionEl(n)),t=i=="horizontal"?{left:parseInt(o/2-e.loader.iLightBoxOuterWidth()/2)}:{top:parseInt(r/2-e.loader.iLightBoxOuterHeight()/2)},e.loader.css(t)},repositionEl:function(e){var t=this.vars,i=this.options,n=i.path.toLowerCase(),o=e.type=="current"&&t.isInFullScreen&&i.fullAlone?e.width:e.width-e.offsetW,r=e.type=="current"&&t.isInFullScreen&&i.fullAlone?e.height:e.height-e.offsetH,a=e.item,l=e.item.options,s=e.holder,c=e.offsetX||0,h=e.offsetY||0,u=e.thumbsOffsetW,d=e.thumbsOffsetH;switch(e.type=="current"?(typeof l.width=="number"&&l.width&&(o=t.isInFullScreen&&i.fullAlone&&(i.fullStretchTypes.indexOf(a.type)!=-1||l.fullViewPort||i.fullViewPort)||l.width>o?o:l.width),typeof l.height=="number"&&l.height&&(r=t.isInFullScreen&&i.fullAlone&&(i.fullStretchTypes.indexOf(a.type)!=-1||l.fullViewPort||i.fullViewPort)||l.height>r?r:l.height)):(typeof l.width=="number"&&l.width&&(o=l.width>o?o:l.width),typeof l.height=="number"&&l.height&&(r=l.height>r?r:l.height)),r=parseInt(r-jQuery(".ilightbox-inner-toolbar",s).iLightBoxOuterHeight()),t=typeof l.width=="string"&&l.width.indexOf("%")!=-1?fnParseInt(parseInt(l.width.replace("%","")),e.width):s.data("naturalWidth"),a=typeof l.height=="string"&&l.height.indexOf("%")!=-1?fnParseInt(parseInt(l.height.replace("%","")),e.height):s.data("naturalHeight"),a=typeof l.width=="string"&&l.width.indexOf("%")!=-1||typeof l.height=="string"&&l.height.indexOf("%")!=-1?{width:t,height:a}:this.getNewDimenstions(o,r,t,a),o=jQuery.extend({},a,{}),e.type=="prev"||e.type=="next"?(t=parseInt(a.width*(e.type=="next"?i.styles.nextScale:i.styles.prevScale)),a=parseInt(a.height*(e.type=="next"?i.styles.nextScale:i.styles.prevScale))):(t=a.width,a=a.height),r=parseInt((fnGetElementDimension(s,"padding-left")+fnGetElementDimension(s,"padding-right")+fnGetElementDimension(s,"border-left-width")+fnGetElementDimension(s,"border-right-width"))/2),l=parseInt((fnGetElementDimension(s,"padding-top")+fnGetElementDimension(s,"padding-bottom")+fnGetElementDimension(s,"border-top-width")+fnGetElementDimension(s,"border-bottom-width")+jQuery(".ilightbox-inner-toolbar",s).iLightBoxOuterHeight())/2),e.type){case"current":var v=parseInt(e.height/2-a/2-l-d/2),p=parseInt(e.width/2-t/2-r-u/2);break;case"next":v=n=="horizontal"?parseInt(e.height/2-h-a/2-l-d/2):parseInt(e.height-c-l-d/2),p=n=="horizontal"?parseInt(e.width-c-r-u/2):parseInt(e.width/2-t/2-r-h-u/2);break;case"prev":v=n=="horizontal"?parseInt(e.height/2-h-a/2-l-d/2):parseInt(c-l-a-d/2),p=n=="horizontal"?parseInt(c-r-t-u/2):parseInt(e.width/2-h-t/2-r-u/2)}s.data("offset",{top:v,left:p,newDims:o,diff:{W:r,H:l},thumbsOffset:{W:u,H:d},object:e}),0<e.animate&&i.effects.reposition?(s.css(varPropTransform,varPropPerspective).stop().animate({top:v,left:p},i.effects.repositionSpeed,"easeOutCirc",function(){s.css(varPropTransform,"")}),jQuery("div.ilightbox-container",s).stop().animate({width:t,height:a},i.effects.repositionSpeed,"easeOutCirc"),jQuery("div.ilightbox-inner-toolbar",s).stop().animate({width:t},i.effects.repositionSpeed,"easeOutCirc",function(){jQuery(this).css("overflow","visible")})):(s.css({top:v,left:p}),jQuery("div.ilightbox-container",s).css({width:t,height:a}),jQuery("div.ilightbox-inner-toolbar",s).css({width:t}))},resume:function(e){var t=this,i=t.vars,n=t.options;!n.slideshow.pauseTime||n.controls.slideshow&&1>=i.total||e<i.isPaused||(i.isPaused=0,i.cycleID&&(i.cycleID=clearTimeout(i.cycleID)),i.cycleID=setTimeout(function(){i.current==i.total-1?t.goTo(0):t.moveTo("next")},n.slideshow.pauseTime))},pause:function(e){var t=this.vars;e<t.isPaused||(t.isPaused=e||100,t.cycleID&&(t.cycleID=clearTimeout(t.cycleID)))},resetCycle:function(){var e=this.vars;this.options.controls.slideshow&&e.cycleID&&!e.isPaused&&this.resume()},getNewDimenstions:function(e,t,i,n,o){var r=e?t?Math.min(e/i,t/n):e/i:t/n;return o||(r>this.options.maxScale?r=this.options.maxScale:r<this.options.minScale&&(r=this.options.minScale)),e=this.options.keepAspectRatio?Math.round(i*r):e,t=this.options.keepAspectRatio?Math.round(n*r):t,{width:e,height:t,ratio:r}},setOption:function(e){this.options=jQuery.extend(!0,this.options,e||{}),this.refresh()},availPlugins:function(){var e=document.createElement("video");this.plugins={flash:0<=parseInt(varPluginDetect.getVersion("Shockwave"))||0<=parseInt(varPluginDetect.getVersion("Flash")),quicktime:0<=parseInt(varPluginDetect.getVersion("QuickTime")),html5H264:!(!e.canPlayType||!e.canPlayType("video/mp4").replace(/no/,"")),html5WebM:!(!e.canPlayType||!e.canPlayType("video/webm").replace(/no/,"")),html5Vorbis:!(!e.canPlayType||!e.canPlayType("video/ogg").replace(/no/,"")),html5QuickTime:!(!e.canPlayType||!e.canPlayType("video/quicktime").replace(/no/,""))}},addContent:function(e,t){var i;switch(t.type){case"video":i=!1;var n=t.videoType,o=t.options.html5video;(n=="video/mp4"||t.ext=="mp4"||t.ext=="m4v"||o.h264)&&this.plugins.html5H264?(t.ext="mp4",t.URL=o.h264||t.URL):o.webm&&this.plugins.html5WebM?(t.ext="webm",t.URL=o.webm||t.URL):o.ogg&&this.plugins.html5Vorbis&&(t.ext="ogv",t.URL=o.ogg||t.URL),!this.plugins.html5H264||n!="video/mp4"&&t.ext!="mp4"&&t.ext!="m4v"?!this.plugins.html5WebM||n!="video/webm"&&t.ext!="webm"?!this.plugins.html5Vorbis||n!="video/ogg"&&t.ext!="ogv"?!this.plugins.html5QuickTime||n!="video/quicktime"&&t.ext!="mov"&&t.ext!="qt"||(i=!0,n="video/quicktime"):(i=!0,n="video/ogg"):(i=!0,n="video/webm"):(i=!0,n="video/mp4"),i?i=jQuery("<video />",{width:"100%",height:"100%",preload:o.preload,autoplay:o.autoplay,poster:o.poster,controls:o.controls}).append(jQuery("<source />",{src:t.URL,type:n})):this.plugins.quicktime?(i=jQuery("<object />",{type:"video/quicktime",pluginspage:"http://www.apple.com/quicktime/download"}).attr({data:t.URL,width:"100%",height:"100%"}).append(jQuery("<param />",{name:"src",value:t.URL})).append(jQuery("<param />",{name:"autoplay",value:"false"})).append(jQuery("<param />",{name:"loop",value:"false"})).append(jQuery("<param />",{name:"scale",value:"tofit"})),varBrowserDetection.msie&&(i=fnCreateEmbedObject(t.URL,"100%","100%","","SCALE","tofit","AUTOPLAY","false","LOOP","false"))):i=jQuery("<span />",{class:"ilightbox-alert",html:this.options.errors.missingPlugin.replace("{pluginspage}","http://www.apple.com/quicktime/download").replace("{type}","QuickTime")});break;case"flash":if(this.plugins.flash){var r="",a=0;t.options.flashvars?jQuery.each(t.options.flashvars,function(l,s){a!=0&&(r=r+"&"),r=r+(l+"="+encodeURIComponent(s)),a++}):r=null,i=jQuery("<embed />").attr({type:"application/x-shockwave-flash",src:t.URL,width:typeof t.options.width=="number"&&t.options.width&&this.options.minScale=="1"&&this.options.maxScale=="1"?t.options.width:"100%",height:typeof t.options.height=="number"&&t.options.height&&this.options.minScale=="1"&&this.options.maxScale=="1"?t.options.height:"100%",quality:"high",bgcolor:"#000000",play:"true",loop:"true",menu:"true",wmode:"transparent",scale:"showall",allowScriptAccess:"always",allowFullScreen:"true",flashvars:r,fullscreen:"yes"})}else i=jQuery("<span />",{class:"ilightbox-alert",html:this.options.errors.missingPlugin.replace("{pluginspage}","http://www.adobe.com/go/getflash").replace("{type}","Adobe Flash player")});break;case"iframe":i=jQuery("<iframe />").attr({width:typeof t.options.width=="number"&&t.options.width&&this.options.minScale=="1"&&this.options.maxScale=="1"?t.options.width:"100%",height:typeof t.options.height=="number"&&t.options.height&&this.options.minScale=="1"&&this.options.maxScale=="1"?t.options.height:"100%",src:t.URL,frameborder:0,webkitAllowFullScreen:"",mozallowfullscreen:"",allowFullScreen:""});break;case"inline":i=jQuery('<div class="ilightbox-wrapper"></div>').html(jQuery(t.URL).clone(!0));break;case"html":i=t.URL,i[0].nodeName||(i=jQuery(t.URL),i=i.selector?jQuery("<div>"+i+"</div>"):i),i=jQuery('<div class="ilightbox-wrapper"></div>').html(i)}return jQuery("div.ilightbox-container",e).empty().html(i),i},ogpRecognition:function(e,t){var i=this,n=e.URL,o={length:!1};i.showLoader(),fnPhoneHomeSourceCheck(n,function(r){if(i.hideLoader(),r.status==200){r=r.results;var a=r.type,l=r.source;o.source=l.src,o.width=l.width&&parseInt(l.width)||0,o.height=l.height&&parseInt(l.height)||0,o.type=a,o.thumbnail=l.thumbnail||r.images[0],o.html5video=r.html5video||{},o.length=!0,l.type=="application/x-shockwave-flash"?o.type="flash":l.type.indexOf("video/")!=-1?o.type="video":l.type.indexOf("/html")!=-1?o.type="iframe":l.type.indexOf("image/")!=-1&&(o.type="image")}else if(typeof r.response!="undefined")throw r.response;t(o.length?o:!1)})},hashChangeHandler:function(e){var t=this.vars,i=this.options;e=fnParseUrl(e||window.location.href).hash;var n=e.indexOf("#"+i.linkId+"/"),o=e.split("/");t.hashLock||"#"+i.linkId!=o[0]&&1<e.length||(n!=-1?(t=o[1]||0,this.items[t]?(e=jQuery(".ilightbox-overlay"),e.length&&e.attr("linkid")==i.linkId?this.goTo(t):this.itemsObject[t].trigger("click")):(e=jQuery(".ilightbox-overlay"),e.length&&this.closeAction())):(e=jQuery(".ilightbox-overlay"),e.length&&this.closeAction()))}};jQuery.fn.iLightBox=function(){var e=arguments,t=jQuery.isPlainObject(e[0])?e[0]:e[1],i=Array.isArray(e[0])||typeof e[0]=="string"?e[0]:e[1];t||(t={}),t=jQuery.extend(!0,{attr:"href",path:"vertical",skin:"dark",linkId:!1,infinite:!1,startFrom:0,randomStart:!1,keepAspectRatio:!0,maxScale:1,minScale:.2,innerToolbar:!1,smartRecognition:!1,mobileOptimizer:!0,fullAlone:!0,fullViewPort:null,fullStretchTypes:"flash, video",overlay:{blur:!0,opacity:.85},controls:{arrows:!1,slideshow:!1,toolbar:!0,fullscreen:!0,thumbnail:!0,keyboard:!0,mousewheel:!0,swipe:!0},keyboard:{left:!0,right:!0,up:!0,down:!0,esc:!0,shift_enter:!0},show:{effect:!0,speed:300,title:!0},hide:{effect:!0,speed:300},caption:{start:!0,show:"mouseenter",hide:"mouseleave"},social:{start:!0,show:"mouseenter",hide:"mouseleave",buttons:!1},styles:{pageOffsetX:0,pageOffsetY:0,nextOffsetX:45,nextOffsetY:0,nextOpacity:1,nextScale:1,prevOffsetX:45,prevOffsetY:0,prevOpacity:1,prevScale:1},thumbnails:{maxWidth:120,maxHeight:80,normalOpacity:1,activeOpacity:.6},effects:{reposition:!0,repositionSpeed:200,switchSpeed:500,loadedFadeSpeed:180,fadeSpeed:200},slideshow:{pauseTime:5e3,pauseOnHover:!1,startPaused:!0},text:{close:"Press Esc to close",enterFullscreen:"Enter Fullscreen (Shift+Enter)",exitFullscreen:"Exit Fullscreen (Shift+Enter)",slideShow:"Slideshow",next:"Next",previous:"Previous"},errors:{loadImage:"An error occurred when trying to load photo.",loadContents:"An error occurred when trying to load contents.",missingPlugin:"The content your are attempting to view requires the <a href='{pluginspage}' target='_blank'>{type} plugin</a>."},ajaxSetup:{url:"",beforeSend:function(){},cache:!1,complete:function(){},crossDomain:!1,error:function(){},success:function(){},global:!0,ifModified:!1,username:null,password:null,type:"GET"},callback:{}},t);var n=!!(Array.isArray(i)||typeof i=="string");i=Array.isArray(i)?i:[],typeof e[0]=="string"&&(i[0]=e[0]);var o=new iLightBoxClass(jQuery(this),t,i,n);return{close:function(){o.closeAction()},fullscreen:function(){o.fullScreenAction()},moveNext:function(){o.moveTo("next")},movePrev:function(){o.moveTo("prev")},goTo:function(r){o.goTo(r)},refresh:function(){o.refresh()},reposition:function(){0<arguments.length?o.repositionPhoto(!0):o.repositionPhoto()},setOption:function(r){o.setOption(r)},destroy:function(){o.closeAction(),o.dispatchItemsEvents()}}};jQuery.iLightBox=function(e,t){return jQuery.fn.iLightBox(e,t)};jQuery.extend(jQuery.easing,{easeInCirc:jQuery.easing.swing,easeOutCirc:jQuery.easing.swing,easeInOutCirc:jQuery.easing.swing});jQuery(document);jQuery.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(e,t){jQuery.fn[t]=function(i){return i?this.on(t,i):this.trigger(t)},jQuery.attrFn&&(jQuery.attrFn[t]=!0)});jQuery.event.special.itap={setup:function(){var e=this,t=jQuery(this),i,n;t.on("touchstart.iTap",function(){i=fnGetPageOffset(),t.one("touchend.iTap",function(o){n=fnGetPageOffset(),o=jQuery.event.fix(o||window.event),o.type="itap",i&&n&&i.x==n.x&&i.y==n.y&&(jQuery.event.dispatch||jQuery.event.handle).call(e,o),i=n=varUnknown})})},teardown:function(){jQuery(this).off("touchstart.iTap")}};(function(){var e={supportsFullScreen:!1,isFullScreen:function(){return!1},requestFullScreen:function(){},cancelFullScreen:function(){},fullScreenEventName:"",prefix:""},t=["webkit","moz","o","ms","khtml"];if(typeof document.cancelFullScreen!="undefined")e.supportsFullScreen=!0;else for(var i=0,n=t.length;i<n;i++)if(e.prefix=t[i],typeof document[e.prefix+"CancelFullScreen"]!="undefined"){e.supportsFullScreen=!0;break}e.supportsFullScreen&&(e.fullScreenEventName=e.prefix+"fullscreenchange",e.isFullScreen=function(){switch(this.prefix){case"":return document.fullScreen;case"webkit":return document.webkitIsFullScreen;default:return document[this.prefix+"FullScreen"]}},e.requestFullScreen=function(o){return this.prefix===""?o.requestFullScreen():o[this.prefix+"RequestFullScreen"]()},e.cancelFullScreen=function(){return this.prefix===""?document.cancelFullScreen():document[this.prefix+"CancelFullScreen"]()})})();(function(){var e,t;e=window.navigator.userAgent,e=e.toLowerCase(),t=/(chrome)[ /]([\w.]+)/.exec(e)||/(webkit)[ /]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ /]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||0>e.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[],e=t[1]||"",t=t[2]||"0",varBrowserDetection={},e&&(varBrowserDetection[e]=!0,varBrowserDetection.version=t),varBrowserDetection.chrome?varBrowserDetection.webkit=!0:varBrowserDetection.webkit&&(varBrowserDetection.safari=!0)})();(function(){function e(n){for(var o=0,r=t.length;o<r;o++){var a=t[o]?t[o]+n.charAt(0).toUpperCase()+n.slice(1):n;if(i.style[a]!==varUnknown)return a}}var t=["","webkit","moz","ms","o"],i=document.createElement("div");varPropTransform=e("transform")||"",varPropPerspective=e("perspective")?"translateZ(0) ":""})();var varPluginDetect={version:"0.7.9",name:"PluginDetect",handler:function(e,t,i){return function(){e(t,i)}},openTag:"<",isDefined:function(e){return typeof e!="undefined"},isArray:function(e){return/array/i.test(Object.prototype.toString.call(e))},isFunc:function(e){return typeof e=="function"},isString:function(e){return typeof e=="string"},isNum:function(e){return typeof e=="number"},isStrNum:function(e){return typeof e=="string"&&/\d/.test(e)},getNumRegx:/[\d][\d._,-]*/,splitNumRegx:/[._,-]/g,getNum:function(e,t){var i=this.isStrNum(e)?(this.isDefined(t)?RegExp(t):this.getNumRegx).exec(e):null;return i?i[0]:null},compareNums:function(e,t,i){var n=parseInt;if(this.isStrNum(e)&&this.isStrNum(t)){if(this.isDefined(i)&&i.compareNums)return i.compareNums(e,t);for(e=e.split(this.splitNumRegx),t=t.split(this.splitNumRegx),i=0;i<Math.min(e.length,t.length);i++){if(n(e[i],10)>n(t[i],10))return 1;if(n(e[i],10)<n(t[i],10))return-1}}return 0},formatNum:function(e,t){var i,n;if(!this.isStrNum(e))return null;for(this.isNum(t)||(t=4),t--,n=e.replace(/\s/g,"").split(this.splitNumRegx).concat(["0","0","0","0"]),i=0;4>i;i++)/^(0+)(.+)$/.test(n[i])&&(n[i]=RegExp.$2),(i>t||!/\d/.test(n[i]))&&(n[i]="0");return n.slice(0,4).join(",")},$$hasMimeType:function(e){return function(t){if(!e.isIE&&t){var i,n,o=e.isArray(t)?t:e.isString(t)?[t]:[];for(n=0;n<o.length;n++)if(e.isString(o[n])&&/[^\s]/.test(o[n])&&(i=(t=navigator.mimeTypes[o[n]])?t.enabledPlugin:0)&&(i.name||i.description))return t}return null}},findNavPlugin:function(e,t,i){e=RegExp(e,"i"),t=!this.isDefined(t)||t?/\d/:0,i=i?RegExp(i,"i"):0;var n=window.navigator.plugins,o,r,a;for(o=0;o<n.length;o++)if(a=n[o].description||"",r=n[o].name||"",(e.test(a)&&(!t||t.test(RegExp.leftContext+RegExp.rightContext))||e.test(r)&&(!t||t.test(RegExp.leftContext+RegExp.rightContext)))&&(!i||!i.test(a)&&!i.test(r)))return n[o];return null},getMimeEnabledPlugin:function(e,t,i){var n;t=RegExp(t,"i"),i=i?RegExp(i,"i"):0;var o,r,a=this.isString(e)?[e]:e;for(r=0;r<a.length;r++)if((n=this.hasMimeType(a[r]))&&(n=n.enabledPlugin)&&(o=n.description||"",e=n.name||"",t.test(o)||t.test(e))&&(!i||!i.test(o)&&!i.test(e)))return n;return 0},getPluginFileVersion:function(e,t){var i,n,o,r,a=-1;if(2<this.OS||!e||!e.version||!(i=this.getNum(e.version)))return t;if(!t)return i;for(i=this.formatNum(i),t=this.formatNum(t),n=t.split(this.splitNumRegx),o=i.split(this.splitNumRegx),r=0;r<n.length;r++)if(-1<a&&r>a&&n[r]!="0"||o[r]!=n[r]&&(a==-1&&(a=r),n[r]!="0"))return t;return i},AXO:window.ActiveXObject,getAXO:function(e){var t=null;try{t=new this.AXO(e)}catch{}return t},convertFuncs:function(e){var t,i,n=/^[$][$]/;for(t in e)if(n.test(t))try{i=t.slice(2),0<i.length&&!e[i]&&(e[i]=e[t](e),delete e[t])}catch{}},initObj:function(e,t,i){var n;if(e){if(e[t[0]]==1||i)for(n=0;n<t.length;n=n+2)e[t[n]]=t[n+1];for(n in e)(i=e[n])&&i[t[0]]==1&&this.initObj(i,t)}},initScript:function(){var e=window.navigator,t,i=document,n=e.userAgent||"",o=e.vendor||"",r=e.platform||"";e=e.product||"",this.initObj(this,["$",this]);for(t in this.Plugins)this.Plugins[t]&&this.initObj(this.Plugins[t],["$",this,"$$",this.Plugins[t]],1);if(this.convertFuncs(this),this.OS=100,r){var a=["Win",1,"Mac",2,"Linux",3,"FreeBSD",4,"iPhone",21.1,"iPod",21.2,"iPad",21.3,"Win.*CE",22.1,"Win.*Mobile",22.2,"Pocket\\s*PC",22.3,"",100];for(t=a.length-2;0<=t;t=t-2)if(a[t]&&RegExp(a[t],"i").test(r)){this.OS=a[t+1];break}}if(this.head=i.getElementsByTagName("head")[0]||i.getElementsByTagName("body")[0]||i.body||null,this.verIE=(this.isIE=new Function("return/*@cc_on!@*/!1")())&&/MSIE\s*(\d+\.?\d*)/i.test(n)?parseFloat(RegExp.$1,10):null,this.docModeIE=this.verIEfull=null,this.isIE){t=document.createElement("div");try{t.style.behavior="url(#default#clientcaps)",this.verIEfull=t.getComponentVersion("{89820200-ECBD-11CF-8B85-00AA005B4383}","componentid").replace(/,/g,".")}catch{}t=parseFloat(this.verIEfull||"0",10),this.docModeIE=i.documentMode||(/back/i.test(i.compatMode||"")?5:t)||this.verIE,this.verIE=t||this.docModeIE}if(this.ActiveXEnabled=!1,this.isIE){for(i="Msxml2.XMLHTTP Msxml2.DOMDocument Microsoft.XMLDOM ShockwaveFlash.ShockwaveFlash TDCCtl.TDCCtl Shell.UIHelper Scripting.Dictionary wmplayer.ocx".split(" "),t=0;t<i.length;t++)if(this.getAXO(i[t])){this.ActiveXEnabled=!0;break}}this.verGecko=(this.isGecko=/Gecko/i.test(e)&&/Gecko\s*\/\s*\d/i.test(n))?this.formatNum(/rv\s*:\s*([\.,\d]+)/i.test(n)?RegExp.$1:"0.9"):null,this.verChrome=(this.isChrome=/Chrome\s*\/\s*(\d[\d\.]*)/i.test(n))?this.formatNum(RegExp.$1):null,this.verSafari=(this.isSafari=(/Apple/i.test(o)||!o&&!this.isChrome)&&/Safari\s*\/\s*(\d[\d.]*)/i.test(n))&&/Version\s*\/\s*(\d[\d\.]*)/i.test(n)?this.formatNum(RegExp.$1):null,this.verOpera=(this.isOpera=/Opera\s*[/]?\s*(\d+\.?\d*)/i.test(n))&&(/Version\s*\/\s*(\d+\.?\d*)/i.test(n)||1)?parseFloat(RegExp.$1,10):null,this.addWinEvent("load",this.handler(this.runWLfuncs,this))},init:function(e){var t,i={status:-3,plugin:0};return this.isString(e)?e.length==1?(this.getVersionDelimiter=e,i):(e=e.toLowerCase().replace(/\s/g,""),t=this.Plugins[e],!t||!t.getVersion?i:(i.plugin=t,this.isDefined(t.installed)||(t.installed=null,t.version=null,t.version0=null,t.getVersionDone=null,t.pluginName=e),this.garbage=!1,this.isIE&&!this.ActiveXEnabled&&e!=="java"?(i.status=-2,i):(i.status=1,i))):i},fPush:function(e,t){this.isArray(t)&&(this.isFunc(e)||this.isArray(e)&&0<e.length&&this.isFunc(e[0]))&&t.push(e)},callArray:function(e){var t;if(this.isArray(e))for(t=0;t<e.length&&e[t]!==null;t++)this.call(e[t]),e[t]=null},call:function(e){var t=this.isArray(e)?e.length:-1;0<t&&this.isFunc(e[0])?e[0](this,1<t?e[1]:0,2<t?e[2]:0,3<t?e[3]:0):this.isFunc(e)&&e(this)},getVersionDelimiter:",",$$getVersion:function(e){return function(t,i,n){return t=e.init(t),0>t.status?null:(t=t.plugin,t.getVersionDone!=1&&(t.getVersion(null,i,n),t.getVersionDone===null&&(t.getVersionDone=1)),e.cleanup(),i=(i=t.version||t.version0)?i.replace(e.splitNumRegx,e.getVersionDelimiter):i)}},cleanup:function(){this.garbage&&this.isDefined(window.CollectGarbage)&&window.CollectGarbage()},isActiveXObject:function(e,t){var i=!1,n='<object width="1" height="1" style="display:none" '+e.getCodeBaseVersion(t)+">"+e.HTML+this.openTag+"/object>";if(!this.head)return i;this.head.insertBefore(document.createElement("object"),this.head.firstChild),this.head.firstChild.outerHTML=n;try{this.head.firstChild.classid=e.classID}catch{}try{this.head.firstChild.object&&(i=!0)}catch{}try{i&&4>this.head.firstChild.readyState&&(this.garbage=!0)}catch{}return this.head.removeChild(this.head.firstChild),i},codebaseSearch:function(e,t){var i=this;if(!i.ActiveXEnabled||!e)return null;e.BIfuncs&&e.BIfuncs.length&&e.BIfuncs[e.BIfuncs.length-1]!==null&&i.callArray(e.BIfuncs);var n,o=e.SEARCH;if(i.isStrNum(t))return o.match&&o.min&&0>=i.compareNums(t,o.min)?!0:o.match&&o.max&&0<=i.compareNums(t,o.max)?!1:((n=i.isActiveXObject(e,t))&&(!o.min||0<i.compareNums(t,o.min))&&(o.min=t),n||o.max&&!(0>i.compareNums(t,o.max))||(o.max=t),n);var r=[0,0,0,0],a=[].concat(o.digits),l=o.min?1:0,s,c,h=function(u,d){var v=[].concat(r);return v[u]=d,i.isActiveXObject(e,v.join(","))};if(o.max){for(n=o.max.split(i.splitNumRegx),s=0;s<n.length;s++)n[s]=parseInt(n[s],10);n[0]<a[0]&&(a[0]=n[0])}if(o.min){for(c=o.min.split(i.splitNumRegx),s=0;s<c.length;s++)c[s]=parseInt(c[s],10);c[0]>r[0]&&(r[0]=c[0])}if(c&&n)for(s=1;s<c.length&&c[s-1]==n[s-1];s++)n[s]<a[s]&&(a[s]=n[s]),c[s]>r[s]&&(r[s]=c[s]);if(o.max){for(s=1;s<a.length;s++)if(0<n[s]&&a[s]==0&&a[s-1]<o.digits[s-1]){a[s-1]+=1;break}}for(s=0;s<a.length;s++){for(c={},o=0;20>o&&!(1>a[s]-r[s])&&(n=Math.round((a[s]+r[s])/2),!c["a"+n]);o++)c["a"+n]=1,h(s,n)?(r[s]=n,l=1):a[s]=n;if(a[s]=r[s],!l&&h(s,r[s])&&(l=1),!l)break}return l?r.join(","):null},addWinEvent:function(e,t){var i=window,n;this.isFunc(t)&&(i.addEventListener?i.addEventListener(e,t,!1):i.attachEvent?i.attachEvent("on"+e,t):(n=i["on"+e],i["on"+e]=this.winHandler(t,n)))},winHandler:function(e,t){return function(){e(),typeof t=="function"&&t()}},WLfuncs0:[],WLfuncs:[],runWLfuncs:function(e){e.winLoaded=!0,e.callArray(e.WLfuncs0),e.callArray(e.WLfuncs),e.onDoneEmptyDiv&&e.onDoneEmptyDiv()},winLoaded:!1,$$onWindowLoaded:function(e){return function(t){e.winLoaded?e.call(t):e.fPush(t,e.WLfuncs)}},div:null,divID:"plugindetect",divWidth:50,pluginSize:1,emptyDiv:function(){var e,t,i,n;if(this.div&&this.div.childNodes)for(e=this.div.childNodes.length-1;0<=e;e--){if((i=this.div.childNodes[e])&&i.childNodes)for(t=i.childNodes.length-1;0<=t;t--){n=i.childNodes[t];try{i.removeChild(n)}catch{}}if(i)try{this.div.removeChild(i)}catch{}}if(!this.div&&(e=document.getElementById(this.divID))&&(this.div=e),this.div&&this.div.parentNode){try{this.div.parentNode.removeChild(this.div)}catch{}this.div=null}},DONEfuncs:[],onDoneEmptyDiv:function(){var e,t;if(this.winLoaded&&(!this.WLfuncs||!this.WLfuncs.length||this.WLfuncs[this.WLfuncs.length-1]===null)){for(e in this)if((t=this[e])&&t.funcs&&(t.OTF==3||t.funcs.length&&t.funcs[t.funcs.length-1]!==null))return;for(e=0;e<this.DONEfuncs.length;e++)this.callArray(this.DONEfuncs);this.emptyDiv()}},getWidth:function(e){return e&&(e=e.scrollWidth||e.offsetWidth,this.isNum(e))?e:-1},getTagStatus:function(e,t,i,n){var o=e.span,r=this.getWidth(o);i=i.span;var a=this.getWidth(i);t=t.span;var l=this.getWidth(t);if(!(o&&i&&t&&this.getDOMobj(e)))return-2;if(a<l||0>r||0>a||0>l||l<=this.pluginSize||1>this.pluginSize)return 0;if(r>=l)return-1;try{if(r==this.pluginSize&&(!this.isIE||this.getDOMobj(e).readyState==4)&&(!e.winLoaded&&this.winLoaded||e.winLoaded&&this.isNum(n)&&(this.isNum(e.count)||(e.count=n),10<=n-e.count)))return 1}catch{}return 0},getDOMobj:function(e,t){var i=e?e.span:0,n=i&&i.firstChild?1:0;try{n&&t&&this.div.focus()}catch{}return n?i.firstChild:null},setStyle:function(e,t){var i=e.style,n;if(i&&t)for(n=0;n<t.length;n=n+2)try{i[t[n]]=t[n+1]}catch{}},insertDivInBody:function(e,t){var i=null,n=t?window.top.document:window.document,o=n.getElementsByTagName("body")[0]||n.body;if(!o)try{n.write('<div id="pd33993399">.'+this.openTag+"/div>"),i=n.getElementById("pd33993399")}catch{}(o=n.getElementsByTagName("body")[0]||n.body)&&(o.insertBefore(e,o.firstChild),i&&o.removeChild(i))},insertHTML:function(e,t,i,n,o){o=document;var r,a=o.createElement("span"),l,s="outlineStyle none borderStyle none padding 0px margin 0px visibility visible".split(" ");if(this.isDefined(n)||(n=""),this.isString(e)&&/[^\s]/.test(e)){for(e=e.toLowerCase().replace(/\s/g,""),r=this.openTag+e+' width="'+this.pluginSize+'" height="'+this.pluginSize+'" ',r=r+'style="outline-style:none;border-style:none;padding:0px;margin:0px;visibility:visible;display:inline;" ',l=0;l<t.length;l=l+2)/[^\s]/.test(t[l+1])&&(r=r+(t[l]+'="'+t[l+1]+'" '));for(r=r+">",l=0;l<i.length;l=l+2)/[^\s]/.test(i[l+1])&&(r=r+(this.openTag+'param name="'+i[l]+'" value="'+i[l+1]+'" />'));r=r+(n+this.openTag+"/"+e+">")}else r=n;if(this.div||(t=o.getElementById(this.divID),t?this.div=t:(this.div=o.createElement("div"),this.div.id=this.divID),this.setStyle(this.div,s.concat(["width",this.divWidth+"px","height",this.pluginSize+3+"px","fontSize",this.pluginSize+3+"px","lineHeight",this.pluginSize+3+"px","verticalAlign","baseline","display","block"])),t||(this.setStyle(this.div,"position absolute right 0px top 0px".split(" ")),this.insertDivInBody(this.div))),this.div&&this.div.parentNode){this.setStyle(a,s.concat(["fontSize",this.pluginSize+3+"px","lineHeight",this.pluginSize+3+"px","verticalAlign","baseline","display","inline"]));try{a.innerHTML=r}catch{}try{this.div.appendChild(a)}catch{}return{span:a,winLoaded:this.winLoaded,tagName:e,outerHTML:r}}return{span:null,winLoaded:this.winLoaded,tagName:"",outerHTML:r}},Plugins:{quicktime:{mimeType:["video/quicktime","application/x-quicktimeplayer","image/x-macpaint","image/x-quicktime"],progID:"QuickTimeCheckObject.QuickTimeCheck.1",progID0:"QuickTime.QuickTime",classID:"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",minIEver:7,HTML:'<param name="src" value="" /><param name="controller" value="false" />',getCodeBaseVersion:function(e){return'codebase="#version='+e+'"'},SEARCH:{min:0,max:0,match:0,digits:[16,128,128,0]},getVersion:function(e){var t=this.$,i=null,n=null;if(t.isIE){if(t.isStrNum(e)&&(e=e.split(t.splitNumRegx),3<e.length&&0<parseInt(e[3],10)&&(e[3]="9999"),e=e.join(",")),t.isStrNum(e)&&t.verIE>=this.minIEver&&0<this.canUseIsMin()){this.installed=this.isMin(e),this.getVersionDone=0;return}this.getVersionDone=1,!i&&t.verIE>=this.minIEver&&(i=this.CDBASE2VER(t.codebaseSearch(this))),i||(n=t.getAXO(this.progID))&&n.QuickTimeVersion&&(i=n.QuickTimeVersion.toString(16),i=parseInt(i.charAt(0),16)+"."+parseInt(i.charAt(1),16)+"."+parseInt(i.charAt(2),16))}else t.hasMimeType(this.mimeType)&&(n=t.OS!=3?t.findNavPlugin("QuickTime.*Plug-?in",0):null)&&n.name&&(i=t.getNum(n.name));this.installed=i?1:n?0:-1,this.version=t.formatNum(i,3)},cdbaseUpper:["7,60,0,0","0,0,0,0"],cdbaseLower:["7,50,0,0",null],cdbase2ver:[function(e,t){var i=t.split(e.$.splitNumRegx);return[i[0],i[1].charAt(0),i[1].charAt(1),i[2]].join()},null],CDBASE2VER:function(e){var t=this.$,i,n=this.cdbaseUpper,o=this.cdbaseLower;if(e){for(e=t.formatNum(e),i=0;i<n.length;i++)if(n[i]&&0>t.compareNums(e,n[i])&&o[i]&&0<=t.compareNums(e,o[i])&&this.cdbase2ver[i])return this.cdbase2ver[i](this,e)}return e},canUseIsMin:function(){var e=this.$,t,i=this.canUseIsMin,n=this.cdbaseUpper,o=this.cdbaseLower;if(!i.value)for(i.value=-1,t=0;t<n.length;t++){if(n[t]&&e.codebaseSearch(this,n[t])){i.value=1;break}if(o[t]&&e.codebaseSearch(this,o[t])){i.value=-1;break}}return this.SEARCH.match=i.value==1?1:0,i.value},isMin:function(e){return this.$.codebaseSearch(this,e)?.7:-1}},flash:{mimeType:"application/x-shockwave-flash",progID:"ShockwaveFlash.ShockwaveFlash",classID:"clsid:D27CDB6E-AE6D-11CF-96B8-444553540000",getVersion:function(){var e=function(a){return a&&(a=/[\d][\d,\.\s]*[rRdD]{0,1}[\d,]*/.exec(a))?a[0].replace(/[rRdD\.]/g,",").replace(/\s/g,""):null},t=this.$,i,n=null,o=null,r=null;if(t.isIE){for(i=15;2<i;i--)if(o=t.getAXO(this.progID+"."+i),o){r=i.toString();break}if(o||(o=t.getAXO(this.progID)),r=="6")try{o.AllowScriptAccess="always"}catch{return"6,0,21,0"}try{n=e(o.GetVariable("$version"))}catch{}!n&&r&&(n=r)}else{if(o=t.hasMimeType(this.mimeType),o){i=t.getDOMobj(t.insertHTML("object",["type",this.mimeType],[],"",this));try{n=t.getNum(i.GetVariable("$version"))}catch{}}n||((i=o?o.enabledPlugin:null)&&i.description&&(n=e(i.description)),n&&(n=t.getPluginFileVersion(i,n)))}return this.installed=n?1:-1,this.version=t.formatNum(n),!0}},shockwave:{mimeType:"application/x-director",progID:"SWCtl.SWCtl",classID:"clsid:166B1BCA-3F9C-11CF-8075-444553540000",getVersion:function(){var e=null,t=null,i=this.$;if(i.isIE){try{t=i.getAXO(this.progID).ShockwaveVersion("")}catch{}i.isString(t)&&0<t.length?e=i.getNum(t):i.getAXO(this.progID+".8")?e="8":i.getAXO(this.progID+".7")?e="7":i.getAXO(this.progID+".1")&&(e="6")}else(t=i.findNavPlugin("Shockwave\\s*for\\s*Director"))&&t.description&&i.hasMimeType(this.mimeType)&&(e=i.getNum(t.description)),e&&(e=i.getPluginFileVersion(t,e));this.installed=e?1:-1,this.version=i.formatNum(e)}},zz:0}};varPluginDetect.initScript();var varErroeMessage1=`The "%%" function requires an even number of arguments.
Arguments should be in the form "atttributeName", "attributeValue", ...`,varEmbedElement=null,varHashChange="iLightBoxHashChange",varDocument=document,varSprite,varEventSpecial=jQuery.event.special,varDocumentMode=varDocument.documentMode,varCanUseSprites="on"+varHashChange in window&&(varDocumentMode===varUnknown||7<varDocumentMode);jQuery.fn[varHashChange]=function(e){return e?this.on(varHashChange,e):this.trigger(varHashChange)};jQuery.fn[varHashChange].delay=50;varEventSpecial[varHashChange]=jQuery.extend(varEventSpecial[varHashChange],{setup:function(){if(varCanUseSprites)return!1;jQuery(varSprite.start)},teardown:function(){if(varCanUseSprites)return!1;jQuery(varSprite.stop)}});varSprite=function(){function e(){var l=fnMakeHashUri(),s=a(n);l!==n?(r(n=l,s),jQuery(window).trigger(varHashChange)):s!==n&&(window.location.href=window.location.href.replace(/#.*/,"")+s),i=setTimeout(e,jQuery.fn[varHashChange].delay)}var t={},i,n=fnMakeHashUri(),o=function(l){return l},r=o,a=o;return t.start=function(){i||e()},t.stop=function(){i&&clearTimeout(i),i=varUnknown},varBrowserDetection.msie&&!varCanUseSprites&&function(){var l,s;t.start=function(){l||(s=(s=jQuery.fn[varHashChange].src)&&s+fnMakeHashUri(),l=jQuery('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){s||r(fnMakeHashUri()),e()}).attr("src",s||"javascript:0").insertAfter("body")[0].contentWindow,varDocument.onpropertychange=function(c){try{c.propertyName==="title"&&(l.document.title=varDocument.title)}catch{}})},t.stop=o,a=function(){return fnMakeHashUri(l.location.href)},r=function(c,h){var u=l.document,d=jQuery.fn[varHashChange].domain;c!==h&&(u.title=varDocument.title,u.open(),d&&u.write('<script>document.domain="'+d+'"<\/script>'),u.close(),l.location.hash=c)}}(),t}();Array.prototype.filter||(Array.prototype.filter=function(e,t){if(this==null)throw new TypeError;var i=Object(this),n=i.length>>>0;if(typeof e!="function")throw new TypeError;for(var o=[],r=0;r<n;r++)if(r in i){var a=i[r];e.call(t,a,r,i)&&o.push(a)}return o});Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(e){if(this==null)throw new TypeError;var t=Object(this),i=t.length>>>0;if(i===0)return-1;var n=i;for(1<arguments.length&&(n=Number(arguments[1]),n!=n?n=0:n!=0&&n!=1/0&&n!=-(1/0)&&(n=(0<n||-1)*Math.floor(Math.abs(n)))),i=0<=n?Math.min(n,i-1):i-Math.abs(n);0<=i;i--)if(i in t&&t[i]===e)return i;return-1});(function(e){e(()=>{window.csGlobal.rivet.attach("[data-x-element-lightbox]",(t,i)=>{if(!(i.disable||window.csGlobal&&window.csGlobal.isPreview)){var n={skin:"light",overlay:{opacity:i.opacity,blur:!0},styles:{prevScale:i.prevScale,prevOpacity:i.prevOpacity,nextScale:i.nextScale,nextOpacity:i.nextOpacity},path:i.orientation,controls:{thumbnail:i.thumbnails}};i.deeplink&&(n.linkId="gallery-image"),e(i.selector).iLightBox(n)}})})})(window.jQuery)});k();})();