Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /var/www/web28/html/wp-content/themes/Avada/includes/lib/assets/min/js/library/ |
Current File : //var/www/web28/html/wp-content/themes/Avada/includes/lib/assets/min/js/library/jquery.ilightbox.js |
!function($,window,undefined){var extensions={flash:["swf"],image:["bmp","gif","jpeg","jpg","png","tiff","tif","jfif","jpe","webp"],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"]},$win=$(window),$doc=$(document),browser,transform,gpuAcceleration,fullScreenApi="",userAgent=navigator.userAgent||navigator.vendor||window.opera,supportTouch="ontouchstart"in window||navigator.msMaxTouchPoints,isMobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(userAgent.substr(0,4)),clickEvent=supportTouch?"click itap":"click",touchStartEvent=supportTouch?"mousedown.iLightBox touchstart.iLightBox":"mousedown.iLightBox",touchStopEvent=supportTouch?"mouseup.iLightBox touchend.iLightBox":"mouseup.iLightBox",touchMoveEvent=supportTouch?"mousemove.iLightBox touchmove.iLightBox":"mousemove.iLightBox",abs=Math.abs,sqrt=Math.sqrt,round=Math.round,max=Math.max,min=Math.min,floor=Math.floor,random=Math.random,pluginspages={quicktime:"http://www.apple.com/quicktime/download",flash:"http://www.adobe.com/go/getflash"},iLightBox=function(e,t,i,o){var n=this;if(n.options=t,n.selector=e.selector||e,n.context=e.context,n.instant=o,i.length<1?n.attachItems():n.items=i,n.vars={total:n.items.length,start:0,current:null,next:null,prev:null,BODY:$("body"),loadRequests:0,overlay:$('<div class="ilightbox-overlay"></div>'),loader:$('<div class="ilightbox-loader"><div></div></div>'),toolbar:$('<div class="ilightbox-toolbar"></div>'),innerToolbar:$('<div class="ilightbox-inner-toolbar"></div>'),title:$('<div class="ilightbox-title"></div>'),closeButton:$('<a class="ilightbox-close" role="button" title="'+n.options.text.close+'"></a>'),fullScreenButton:$('<a class="ilightbox-fullscreen" role="button" title="'+n.options.text.enterFullscreen+'"></a>'),innerPlayButton:$('<a class="ilightbox-play" role="button" title="'+n.options.text.slideShow+'"></a>'),innerNextButton:$('<a class="ilightbox-next-button" role="button" title="'+n.options.text.next+'"></a>'),innerPrevButton:$('<a class="ilightbox-prev-button" role="button" title="'+n.options.text.previous+'"></a>'),holder:$('<div class="ilightbox-holder'+(supportTouch?" supportTouch":"")+'" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),nextPhoto:$('<div class="ilightbox-holder'+(supportTouch?" supportTouch":"")+' ilightbox-next" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),prevPhoto:$('<div class="ilightbox-holder'+(supportTouch?" supportTouch":"")+' ilightbox-prev" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),nextButton:$('<a class="ilightbox-button ilightbox-next-button" role="button" ondragstart="return false;" title="'+n.options.text.next+'"><span></span></a>'),prevButton:$('<a class="ilightbox-button ilightbox-prev-button" role="button" ondragstart="return false;" title="'+n.options.text.previous+'"><span></span></a>'),thumbnails:$('<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},n.vars.hideableElements=n.vars.nextButton.add(n.vars.prevButton),n.normalizeItems(),n.availPlugins(),n.options.startFrom=n.options.startFrom>0&&n.options.startFrom>=n.vars.total?n.vars.total-1:n.options.startFrom,n.options.startFrom=n.options.randomStart?floor(random()*n.vars.total):n.options.startFrom,n.vars.start=n.options.startFrom,o?n.instantCall():n.patchItemsEvents(),n.options.linkId&&(n.hashChangeHandler(),$win.iLightBoxHashChange(function(){n.hashChangeHandler()})),supportTouch){var a=/(click|mouseenter|mouseleave|mouseover|mouseout)/gi;n.options.caption.show=n.options.caption.show.replace(a,"itap"),n.options.caption.hide=n.options.caption.hide.replace(a,"itap"),n.options.social.show=n.options.social.show.replace(a,"itap"),n.options.social.hide=n.options.social.hide.replace(a,"itap")}n.options.controls.arrows&&$.extend(n.options.styles,{nextOffsetX:0,prevOffsetX:0,nextOpacity:0,prevOpacity:0})};function getPixel(e,t){return parseInt(e.css(t),10)||0}function within(e,t,i){return e<t?t:e>i?i:e}function getViewport(){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 removeHash(){var e=getScrollXY();window.location.hash="",window.scrollTo(e.x,e.y)}function doAjax(e,t){e="//ilightbox.net/getSource/jsonp.php?url="+encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A");$.ajax({url:e,dataType:"jsonp"}),iLCallback=function(e){t.call(this,e)}}function findImageInElement(e){var t=$("*",e),i=new Array;return t.each(function(){var e="";if("none"!=$(this).css("background-image")?e=$(this).css("background-image"):void 0!==$(this).attr("src")&&"img"==this.nodeName.toLowerCase()&&(e=$(this).attr("src")),-1==e.indexOf("gradient"))for(var t=(e=(e=(e=(e=e.replace(/url\(\"/g,"")).replace(/url\(/g,"")).replace(/\"\)/g,"")).replace(/\)/g,"")).split(","),o=0;o<t.length;o++)if(t[o].length>0&&-1==$.inArray(t[o],i)){var n="";browser.msie&&browser.version<9&&(n="?"+floor(3e3*random())),i.push(t[o]+n)}}),i}function getExtension(e){var t=e.split(".").pop().toLowerCase(),i=-1!==t.indexOf("?")?"?"+t.split("?").pop():"";return t.replace(i,"")}function getTypeByExtension(e,t){var i,o=getExtension(e);if(i=-1!==extensions.image.indexOf(o)?"image":-1!==extensions.flash.indexOf(o)?"flash":-1!==extensions.video.indexOf(o)?"video":"iframe",t){const e=(t=jQuery(t)).attr("data-media-type");e&&(i=e)}return i}function percentToValue(e,t){return parseInt(t/100*e)}function parseURI(e){var t=String(e).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return t?{href:t[0]||"",protocol:t[1]||"",authority:t[2]||"",host:t[3]||"",hostname:t[4]||"",port:t[5]||"",pathname:t[6]||"",search:t[7]||"",hash:t[8]||""}:null}function absolutizeURI(e,t){var i,o;return t=parseURI(t||""),e=parseURI(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,o=[],i.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(e){"/.."===e?o.pop():o.push(e)}),o.join("").replace(/^\//,"/"===i.charAt(0)?"/":""))+(t.protocol||t.authority||t.pathname?t.search:t.search||e.search)+t.hash:null}function version_compare(e,t,i){this.php_js=this.php_js||{},this.php_js.ENV=this.php_js.ENV||{};var o,n=0,a=0,r={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1},s=function(e){return(e=(e=(""+e).replace(/[_\-+]/g,".")).replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,".")).length?e.split("."):[-8]},l=function(e){return e?isNaN(e)?r[e]||-7:parseInt(e,10):0};for(e=s(e),t=s(t),o=max(e.length,t.length),n=0;n<o;n++)if(e[n]!=t[n]){if(e[n]=l(e[n]),t[n]=l(t[n]),e[n]<t[n]){a=-1;break}if(e[n]>t[n]){a=1;break}}if(!i)return a;switch(i){case">":case"gt":return a>0;case">=":case"ge":return a>=0;case"<=":case"le":return a<=0;case"==":case"=":case"eq":return 0===a;case"<>":case"!=":case"ne":return 0!==a;case"":case"<":case"lt":return a<0;default:return null}}function getScrollXY(){var e=0,t=0;return"number"==typeof window.pageYOffset?(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}}iLightBox.prototype={showLoader:function(){var e=this;e.vars.loadRequests+=1,"horizontal"==e.options.path.toLowerCase()?e.vars.loader.addClass("ilightbox-show").stop().animate({top:"-30px"},e.options.show.speed,"easeOutCirc"):e.vars.loader.addClass("ilightbox-show").stop().animate({left:"-30px"},e.options.show.speed,"easeOutCirc")},hideLoader:function(){var e=this;e.vars.loadRequests-=1,e.vars.loadRequests=e.vars.loadRequests<0?0:e.vars.loadRequests,"horizontal"==e.options.path.toLowerCase()?e.vars.loadRequests<=0&&e.vars.loader.removeClass("ilightbox-show").stop().animate({top:"-192px"},e.options.show.speed,"easeInCirc"):e.vars.loadRequests<=0&&e.vars.loader.removeClass("ilightbox-show").stop().animate({left:"-192px"},e.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(){arguments.length>0?e.repositionPhoto(!0):e.repositionPhoto()},fullscreen:function(){e.fullScreenAction()}}},attachItems:function(){var iL=this,itemsObject=new Array,items=new Array;$(iL.selector,iL.context).each(function(){var t=$(this),URL=t.attr(iL.options.attr)||null,options=t.data("options")&&eval("({"+t.data("options")+"})")||{},caption=t.data("caption")?t.data("caption").toString().replace(/(<([^>]+)>)/gi,""):"",title=t.data("title")?t.data("title").toString().replace(/(<([^>]+)>)/gi,""):"",type=t.data("type")||getTypeByExtension(URL,this);items.push({URL:URL,caption:caption,title:title,type:type,options:options}),iL.instant||itemsObject.push(t)}),iL.items=items,iL.itemsObject=itemsObject,iL.vars&&(iL.vars.total=items.length)},normalizeItems:function(){var e=this,t=new Array;$.each(e.items,function(i,o){"string"==typeof o&&(o={url:o});var n=o.url||o.URL||null,a=o.options||{},r=o.caption||null,s=o.title||null,l=o.type?o.type.toLowerCase():getTypeByExtension(n),c="object"!=typeof n?getExtension(n):"";if(a.thumbnail=a.thumbnail||("image"==l?n:null),a.videoType=a.videoType||null,a.skin=a.skin||e.options.skin,a.width=a.width||null,a.height=a.height||null,a.mousewheel=void 0===a.mousewheel||a.mousewheel,a.swipe=void 0===a.swipe||a.swipe,a.social=void 0!==a.social?a.social:e.options.social.buttons&&$.extend({},{},e.options.social.buttons),"video"==l&&(a.html5video=void 0!==a.html5video?a.html5video:{},a.html5video.webm=a.html5video.webm||a.html5video.WEBM||null,a.html5video.controls=void 0!==a.html5video.controls?a.html5video.controls:"controls",a.html5video.preload=a.html5video.preload||"metadata",a.html5video.autoplay=void 0!==a.html5video.autoplay&&a.html5video.autoplay),"iframe"===l)if(-1!==n.indexOf("youtube.com")){var u=n.match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/);u&&11===u[7].length&&(a.thumbnail="//img.youtube.com/vi/"+u[7]+"/mqdefault.jpg")}else if(-1!==n.indexOf("vimeo.com")&&-1===n.indexOf("preview=0")){var h=n.split(/[?#]/)[0];h.replace(/[^\d]/g,"");$.getJSON("https://vimeo.com/api/oembed.json?url="+h,{format:"json"},function(e){a.thumbnail=e.thumbnail_url})}a.width&&a.height||"video"!==l&&"iframe"!==l&&"flash"!==l||(a.width=parseInt(fusionLightboxVideoVars.lightbox_video_width),a.height=parseInt(fusionLightboxVideoVars.lightbox_video_height)),delete o.url,o.index=i,o.URL=n,o.caption=r,o.title=s,o.type=l,o.options=a,o.ext=c,t.push(o)}),e.items=t},instantCall:function(){var e=this,t=e.vars.start;e.vars.current=t,e.vars.next=e.items[t+1]?t+1:null,e.vars.prev=e.items[t-1]?t-1:null,e.addContents(),e.patchEvents()},addContents:function(){var e=this,t=e.vars,i=e.options,o=getViewport(),n=i.path.toLowerCase(),a=t.total>0&&e.items.filter(function(e,t,o){return-1===["image","flash","video"].indexOf(e.type)&&void 0===e.recognized&&(i.smartRecognition||e.options.smartRecognition)}),r=a.length>0;i.mobileOptimizer&&!i.innerToolbar&&(t.isMobile=o.width<=t.mobileMaxWidth),t.overlay.addClass(i.skin).hide().css("opacity",i.overlay.opacity),i.linkId&&t.overlay[0].setAttribute("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),t.total>1&&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&&t.total>1&&(t.BODY.append(t.thumbnails),t.thumbnails.addClass(i.skin).addClass("ilightbox-"+n),$("div.ilightbox-thumbnails-grid",t.thumbnails).empty(),t.thumbs=!0);var s="horizontal"==i.path.toLowerCase()?{left:parseInt(o.width/2-t.loader.outerWidth()/2)}:{top:parseInt(o.height/2-t.loader.outerHeight()/2)};t.loader.addClass(i.skin).css(s),t.nextButton.add(t.prevButton).addClass(i.skin),"horizontal"==n&&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"),0==t.current&&t.prevButton.add(t.innerPrevButton).addClass("disabled"),t.current>=t.total-1&&t.nextButton.add(t.innerNextButton).addClass("disabled")),i.show.effect?(t.overlay.stop().fadeIn(i.show.speed),t.toolbar.stop().fadeIn(i.show.speed)):(t.overlay.show(),t.toolbar.show());var l=a.length;r?(e.showLoader(),$.each(a,function(o,n){e.ogpRecognition(this,function(o){var n=-1,a=(e.items.filter(function(e,t,i){return e.URL==o.url&&(n=t),e.URL==o.url}),e.items[n]);o&&$.extend(!0,a,{URL:o.source,type:o.type,recognized:!0,options:{html5video:o.html5video,width:"image"==o.type?0:o.width||a.width,height:"image"==o.type?0:o.height||a.height,thumbnail:a.options.thumbnail||o.thumbnail}}),0==--l&&(e.hideLoader(),t.dontGenerateThumbs=!1,e.generateThumbnails(),i.show.effect?setTimeout(function(){e.generateBoxes()},i.show.speed):e.generateBoxes())})})):i.show.effect?setTimeout(function(){e.generateBoxes()},i.show.speed):e.generateBoxes(),e.createUI(),window.iLightBox={close:function(){e.closeAction()},fullscreen:function(){e.fullScreenAction()},moveNext:function(){e.moveTo("next")},movePrev:function(){e.moveTo("prev")},goTo:function(t){e.goTo(t)},refresh:function(){e.refresh()},reposition:function(){arguments.length>0?e.repositionPhoto(!0):e.repositionPhoto()},setOption:function(t){e.setOption(t)},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")),"function"==typeof e.options.callback.onOpen&&e.options.callback.onOpen.call(e)},loadContent:function(e,t,i){var o,n,a=this;switch(a.createUI(),e.speed=i||a.options.effects.loadedFadeSpeed,"current"==t&&(e.options.mousewheel?a.vars.lockWheel=!1:a.vars.lockWheel=!0,e.options.swipe?a.vars.lockSwipe=!1:a.vars.lockSwipe=!0),t){case"current":o=a.vars.holder,n=a.vars.current;break;case"next":o=a.vars.nextPhoto,n=a.vars.next;break;case"prev":o=a.vars.prevPhoto,n=a.vars.prev}if(o.removeAttr("style class").addClass("ilightbox-holder"+(supportTouch?" supportTouch":"")).addClass(e.options.skin),$("div.ilightbox-inner-toolbar",o).remove(),e.title||a.options.innerToolbar){var r=a.vars.innerToolbar.clone();if(e.title&&a.options.show.title){var s=a.vars.title.clone();s.empty().html(e.title),r.append(s)}a.options.innerToolbar&&r.append(a.vars.total>1?a.vars.toolbar.clone():a.vars.toolbar),o.prepend(r)}a.loadSwitcher(e,o,n,t)},loadSwitcher:function(e,t,i,o){var n=this,a=n.options,r={element:t,position:i};switch(e.type){case"image":"function"==typeof a.callback.onBeforeLoad&&a.callback.onBeforeLoad.call(n,n.ui,i),"function"==typeof e.options.onBeforeLoad&&e.options.onBeforeLoad.call(n,r),n.loadImage(e.URL,function(s){"function"==typeof a.callback.onAfterLoad&&a.callback.onAfterLoad.call(n,n.ui,i),"function"==typeof e.options.onAfterLoad&&e.options.onAfterLoad.call(n,r);var l=s?s.width:400,c=s?s.height:200;t.data({naturalWidth:l,naturalHeight:c}),$("div.ilightbox-container",t).empty().append(s?'<img src="'+e.URL+'" class="ilightbox-image" />':'<span class="ilightbox-alert">'+a.errors.loadImage+"</span>"),"function"==typeof a.callback.onRender&&a.callback.onRender.call(n,n.ui,i),"function"==typeof e.options.onRender&&e.options.onRender.call(n,r),n.configureHolder(e,o,t)});break;case"video":t.data({naturalWidth:e.options.width,naturalHeight:e.options.height}),n.addContent(t,e),"function"==typeof a.callback.onRender&&a.callback.onRender.call(n,n.ui,i),"function"==typeof e.options.onRender&&e.options.onRender.call(n,r),n.configureHolder(e,o,t);break;case"iframe":for(var s=e.URL.substring(e.URL.indexOf("?")+1).split("&"),l={},c=0;c<s.length;++c){var u=s[c].split("=");2==u.length&&("w"==u[0]&&(u[0]="width"),"h"==u[0]&&(u[0]="height"),l[u[0]]=decodeURIComponent(u[1].replace(/\+/g," ")))}n.showLoader(),t.data({naturalWidth:e.options.width,naturalHeight:e.options.height});var h=n.addContent(t,e);"function"==typeof a.callback.onRender&&a.callback.onRender.call(n,n.ui,i),"function"==typeof e.options.onRender&&e.options.onRender.call(n,r),"function"==typeof a.callback.onBeforeLoad&&a.callback.onBeforeLoad.call(n,n.ui,i),"function"==typeof e.options.onBeforeLoad&&e.options.onBeforeLoad.call(n,r),n.configureHolder(e,o,t);var d=!1;h.on("load",function(){"function"==typeof a.callback.onAfterLoad&&a.callback.onAfterLoad.call(n,n.ui,i),"function"==typeof e.options.onAfterLoad&&e.options.onAfterLoad.call(n,r),d=!0,n.hideLoader(),h.off("load")}),setTimeout(function(){var e=h[0].getBoundingClientRect();0===e.width&&0===e.height&&!d&&n.hideLoader()},1500);break;case"inline":h=$(e.URL);var p=n.addContent(t,e),f=findImageInElement(t);t.data({naturalWidth:n.items[i].options.width||h.outerWidth(),naturalHeight:n.items[i].options.height||h.outerHeight()}),p.children().eq(0).show(),"function"==typeof a.callback.onRender&&a.callback.onRender.call(n,n.ui,i),"function"==typeof e.options.onRender&&e.options.onRender.call(n,r),"function"==typeof a.callback.onBeforeLoad&&a.callback.onBeforeLoad.call(n,n.ui,i),"function"==typeof e.options.onBeforeLoad&&e.options.onBeforeLoad.call(n,r),n.loadImage(f,function(){"function"==typeof a.callback.onAfterLoad&&a.callback.onAfterLoad.call(n,n.ui,i),"function"==typeof e.options.onAfterLoad&&e.options.onAfterLoad.call(n,r),n.configureHolder(e,o,t)});break;case"flash":h=n.addContent(t,e);t.data({naturalWidth:n.items[i].options.width||h.outerWidth(),naturalHeight:n.items[i].options.height||h.outerHeight()}),"function"==typeof a.callback.onRender&&a.callback.onRender.call(n,n.ui,i),"function"==typeof e.options.onRender&&e.options.onRender.call(n,r),n.configureHolder(e,o,t);break;case"ajax":var g=e.options.ajax||{};"function"==typeof a.callback.onBeforeLoad&&a.callback.onBeforeLoad.call(n,n.ui,i),"function"==typeof e.options.onBeforeLoad&&e.options.onBeforeLoad.call(n,r),n.showLoader(),$.ajax({url:e.URL||a.ajaxSetup.url,data:g.data||null,dataType:g.dataType||"html",type:g.type||a.ajaxSetup.type,cache:g.cache||a.ajaxSetup.cache,crossDomain:g.crossDomain||a.ajaxSetup.crossDomain,global:g.global||a.ajaxSetup.global,ifModified:g.ifModified||a.ajaxSetup.ifModified,username:g.username||a.ajaxSetup.username,password:g.password||a.ajaxSetup.password,beforeSend:g.beforeSend||a.ajaxSetup.beforeSend,complete:g.complete||a.ajaxSetup.complete}).done(function(s,l,c){n.hideLoader();var u=$(s),h=$("div.ilightbox-container",t),d=n.items[i].options.width||parseInt(u[0].getAttribute("width")),p=n.items[i].options.height||parseInt(u[0].getAttribute("height")),f=u[0].getAttribute("width")&&u[0].getAttribute("height")?{overflow:"hidden"}:{};h.empty().append($('<div class="ilightbox-wrapper"></div>').css(f).html(u)),t.show().data({naturalWidth:d||h.outerWidth(),naturalHeight:p||h.outerHeight()}).hide(),"function"==typeof a.callback.onRender&&a.callback.onRender.call(n,n.ui,i),"function"==typeof e.options.onRender&&e.options.onRender.call(n,r);var m=findImageInElement(t);n.loadImage(m,function(){"function"==typeof a.callback.onAfterLoad&&a.callback.onAfterLoad.call(n,n.ui,i),"function"==typeof e.options.onAfterLoad&&e.options.onAfterLoad.call(n,r),n.configureHolder(e,o,t)}),a.ajaxSetup.success(s,l,c),"function"==typeof g.success&&g.success(s,l,c)}).fail(function(s,l,c){"function"==typeof a.callback.onAfterLoad&&a.callback.onAfterLoad.call(n,n.ui,i),"function"==typeof e.options.onAfterLoad&&e.options.onAfterLoad.call(n,r),n.hideLoader(),$("div.ilightbox-container",t).empty().append('<span class="ilightbox-alert">'+a.errors.loadContents+"</span>"),n.configureHolder(e,o,t),a.ajaxSetup.error(s,l,c),"function"==typeof g.error&&g.error(s,l,c)});break;case"html":var m=e.URL;if(container=$("div.ilightbox-container",t),m[0].nodeName)h=m.clone();else{var v=$(m);h=v.selector?$("<div>"+v+"</div>"):v}var b=n.items[i].options.width||parseInt(h.attr("width")),x=n.items[i].options.height||parseInt(h.attr("height"));n.addContent(t,e),h.appendTo(document.documentElement).hide(),"function"==typeof a.callback.onRender&&a.callback.onRender.call(n,n.ui,i),"function"==typeof e.options.onRender&&e.options.onRender.call(n,r);f=findImageInElement(t);"function"==typeof a.callback.onBeforeLoad&&a.callback.onBeforeLoad.call(n,n.ui,i),"function"==typeof e.options.onBeforeLoad&&e.options.onBeforeLoad.call(n,r),n.loadImage(f,function(){"function"==typeof a.callback.onAfterLoad&&a.callback.onAfterLoad.call(n,n.ui,i),"function"==typeof e.options.onAfterLoad&&e.options.onAfterLoad.call(n,r),t.show().data({naturalWidth:b||container.outerWidth(),naturalHeight:x||container.outerHeight()}).hide(),h.remove(),n.configureHolder(e,o,t)})}},configureHolder:function(e,t,i){var o=this,n=o.vars,a=o.options;if("current"!=t&&("next"==t?i.addClass("ilightbox-next"):i.addClass("ilightbox-prev")),"current"==t)var r=n.current;else if("next"==t){var s=a.styles.nextOpacity;r=n.next}else s=a.styles.prevOpacity,r=n.prev;var l={element:i,position:r};o.items[r].options.width=o.items[r].options.width||0,o.items[r].options.height=o.items[r].options.height||0,"current"==t?a.show.effect?i.css(transform,gpuAcceleration).fadeIn(e.speed,function(){if(i.css(transform,""),e.caption){o.setCaption(e,i);var t=$("div.ilightbox-caption",i),n=parseInt(t.outerHeight()/i.outerHeight()*100);a.caption.start&n<=50&&t.fadeIn(a.effects.fadeSpeed)}var s=e.options.social;s&&(o.setSocial(s,e.URL,i),a.social.start&&$("div.ilightbox-social",i).fadeIn(a.effects.fadeSpeed)),o.generateThumbnails(),"function"==typeof a.callback.onShow&&a.callback.onShow.call(o,o.ui,r),"function"==typeof e.options.onShow&&e.options.onShow.call(o,l)}):(i.show(),o.generateThumbnails(),"function"==typeof a.callback.onShow&&a.callback.onShow.call(o,o.ui,r),"function"==typeof e.options.onShow&&e.options.onShow.call(o,l)):a.show.effect?i.fadeTo(e.speed,s,function(){"next"==t?n.nextLock=!1:n.prevLock=!1,o.generateThumbnails(),"function"==typeof a.callback.onShow&&a.callback.onShow.call(o,o.ui,r),"function"==typeof e.options.onShow&&e.options.onShow.call(o,l)}):(i.css({opacity:s}).show(),"next"==t?n.nextLock=!1:n.prevLock=!1,o.generateThumbnails(),"function"==typeof a.callback.onShow&&a.callback.onShow.call(o,o.ui,r),"function"==typeof e.options.onShow&&e.options.onShow.call(o,l)),setTimeout(function(){o.repositionPhoto()},0)},generateBoxes:function(){var e=this,t=e.vars,i=e.options;i.infinite&&t.total>=3?(t.current==t.total-1&&(t.next=0),0==t.current&&(t.prev=t.total-1)):i.infinite=!1,e.loadContent(e.items[t.current],"current",i.show.speed),e.items[t.next]&&e.loadContent(e.items[t.next],"next",i.show.speed),e.items[t.prev]&&e.loadContent(e.items[t.prev],"prev",i.show.speed)},generateThumbnails:function(){var e=this,t=e.vars,i=e.options,o=null;if(t.thumbs&&!e.vars.dontGenerateThumbs){var n=t.thumbnails,a=$("div.ilightbox-thumbnails-container",n),r=$("div.ilightbox-thumbnails-grid",a),s=0;r.removeAttr("style").empty(),$.each(e.items,function(l,c){var u=t.current==l?"ilightbox-active":"",h=t.current==l?i.thumbnails.activeOpacity:i.thumbnails.normalOpacity,d=c.options.thumbnail,p=$('<div class="ilightbox-thumbnail"></div>'),f=$('<div class="ilightbox-thumbnail-icon"></div>');p.css({opacity:0}).addClass(u),"video"!=c.type&&"flash"!=c.type||void 0!==c.options.icon?c.options.icon&&(f.addClass("ilightbox-thumbnail-"+c.options.icon),p.append(f)):(f.addClass("ilightbox-thumbnail-video"),p.append(f)),d&&e.loadImage(d,function(t){s++,t?p.data({naturalWidth:t.width,naturalHeight:t.height}).append('<img src="'+d+'" border="0" />'):p.data({naturalWidth:i.thumbnails.maxWidth,naturalHeight:i.thumbnails.maxHeight}),clearTimeout(o),o=setTimeout(function(){e.positionThumbnails(n,a,r)},20),setTimeout(function(){p.fadeTo(i.effects.loadedFadeSpeed,h)},20*s)}),r.append(p)}),e.vars.dontGenerateThumbs=!0}},positionThumbnails:function(e,t,i){var o=this,n=o.vars,a=o.options,r=getViewport(),s=a.path.toLowerCase();e||(e=n.thumbnails),t||(t=$("div.ilightbox-thumbnails-container",e)),i||(i=$("div.ilightbox-thumbnails-grid",t));var l=$(".ilightbox-thumbnail",i),c="horizontal"==s?r.width-a.styles.pageOffsetX:l.eq(0).outerWidth()-a.styles.pageOffsetX,u="horizontal"==s?l.eq(0).outerHeight()-a.styles.pageOffsetY:r.height-a.styles.pageOffsetY,h="horizontal"==s?0:c,d="horizontal"==s?u:0,p=$(".ilightbox-active",i),f={};arguments.length<3&&(l.css({opacity:a.thumbnails.normalOpacity}),p.css({opacity:a.thumbnails.activeOpacity})),l.each(function(e){var t=$(this),i=t.data(),n="horizontal"==s?0:a.thumbnails.maxWidth;height="horizontal"==s?a.thumbnails.maxHeight:0,dims=o.getNewDimenstions(n,height,i.naturalWidth,i.naturalHeight,!0),t.css({width:dims.width,height:dims.height}),"horizontal"==s&&t.css({float:"left"}),"horizontal"==s?h+=t.outerWidth(!0):d+=t.outerHeight()}),f={width:h,height:d},i.css(f),f={};var g=i.offset(),m=p.length?p.offset():{top:parseInt(u/2),left:parseInt(c/2)};g.top=g.top-$doc.scrollTop(),g.left=g.left-$doc.scrollLeft(),m.top=m.top-g.top-$doc.scrollTop(),m.left=m.left-g.left-$doc.scrollLeft(),"horizontal"==s?(f.top=0,f.left=parseInt(c/2-m.left-p.outerWidth()/2)):(f.top=parseInt(u/2-m.top-p.outerHeight()/2),f.left=0),arguments.length<3?i.stop().animate(f,a.effects.repositionSpeed,"easeOutCirc"):i.css(f)},loadImage:function(e,t){Array.isArray(e)||(e=[e]);var i=this,o=e.length;o>0?(i.showLoader(),$.each(e,function(n,a){var r=new Image;r.onload=function(){0==(o-=1)&&(i.hideLoader(),t(r))},r.onerror=r.onabort=function(){0==(o-=1)&&(i.hideLoader(),t(!1))},r.src=e[n]})):t(!1)},patchItemsEvents:function(){var e=this,t=e.vars,i=supportTouch?"click.iL itap.iL":"click.iL",o=supportTouch?"click.iL itap.iL":"itap.iL";if(e.context&&e.selector){var n=$(e.selector,e.context);$(e.context).on(i,e.selector,function(){var i=$(this),o=n.index(i);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(o,e.selector,function(){return!1})}else $.each(e.itemsObject,function(n,a){a.on(i,function(){return t.current=n,t.next=e.items[n+1]?n+1:null,t.prev=e.items[n-1]?n-1:null,e.addContents(),e.patchEvents(),!1}).on(o,function(){return!1})})},dispatchItemsEvents:function(){var e=this;e.vars,e.options;e.context&&e.selector?$(e.context).off(".iL",e.selector):$.each(e.itemsObject,function(e,t){t.off(".iL")})},refresh:function(){this.dispatchItemsEvents(),this.attachItems(),this.normalizeItems(),this.patchItemsEvents()},patchEvents:function(){var e=this,t=e.vars,i=e.options,o=i.path.toLowerCase(),n=$(".ilightbox-holder"),a=fullScreenApi.fullScreenEventName+".iLightBox",r=verticalDistanceThreshold=100,s=[t.nextButton[0],t.prevButton[0],t.nextButton[0].firstChild,t.prevButton[0].firstChild];$win.on("resize.iLightBox",function(){var o=getViewport();i.mobileOptimizer&&!i.innerToolbar&&(t.isMobile=o.width<=t.mobileMaxWidth),t.BODY[t.isMobile?"addClass":"removeClass"]("isMobile"),t.nextLock||t.prevLock||e.repositionPhoto(null),supportTouch&&(clearTimeout(t.setTime),t.setTime=setTimeout(function(){var e=getScrollXY().y;window.scrollTo(0,e-30),window.scrollTo(0,e+30),window.scrollTo(0,e)},2e3)),t.thumbs&&e.positionThumbnails()}).on("keydown.iLightBox",function(o){if(i.controls.keyboard)switch(o.keyCode){case 13:o.shiftKey&&i.keyboard.shift_enter&&e.fullScreenAction();break;case 27:i.keyboard.esc&&e.closeAction();break;case 37:i.keyboard.left&&!t.lockKey&&e.moveTo("prev");break;case 38:i.keyboard.up&&!t.lockKey&&e.moveTo("prev");break;case 39:i.keyboard.right&&!t.lockKey&&e.moveTo("next");break;case 40:i.keyboard.down&&!t.lockKey&&e.moveTo("next")}}),fullScreenApi.supportsFullScreen&&$win.on(a,function(){e.doFullscreen()});var l=[i.caption.show+".iLightBox",i.caption.hide+".iLightBox",i.social.show+".iLightBox",i.social.hide+".iLightBox"].filter(function(e,t,i){return i.lastIndexOf(e)===t}),c="";$.each(l,function(e,t){0!=e&&(c+=" "),c+=t}),$doc.on(clickEvent,".ilightbox-overlay",function(){i.overlay.blur&&e.closeAction()}).on(clickEvent,".ilightbox-next, .ilightbox-next-button",function(){e.moveTo("next")}).on(clickEvent,".ilightbox-prev, .ilightbox-prev-button",function(){e.moveTo("prev")}).on(clickEvent,".ilightbox-thumbnail",function(){var i=$(this),o=$(".ilightbox-thumbnail",t.thumbnails).index(i);o!=t.current&&e.goTo(o)}).on(c,".ilightbox-holder:not(.ilightbox-next, .ilightbox-prev)",function(e){var o=$("div.ilightbox-caption",t.holder),n=$("div.ilightbox-social",t.holder),a=i.effects.fadeSpeed;t.nextLock||t.prevLock?(e.type!=i.caption.show||o.is(":visible")?e.type==i.caption.hide&&o.is(":visible")&&o.fadeOut(a):o.fadeIn(a),e.type!=i.social.show||n.is(":visible")?e.type==i.social.hide&&n.is(":visible")&&n.fadeOut(a):n.fadeIn(a)):(e.type!=i.caption.show||o.is(":visible")?e.type==i.caption.hide&&o.is(":visible")&&o.stop().fadeOut(a):o.stop().fadeIn(a),e.type!=i.social.show||n.is(":visible")?e.type==i.social.hide&&n.is(":visible")&&n.stop().fadeOut(a):n.stop().fadeIn(a))}).on("mouseenter.iLightBox mouseleave.iLightBox",".ilightbox-wrapper",function(e){"mouseenter"==e.type?t.lockWheel=!0:t.lockWheel=!1}).on(clickEvent,".ilightbox-toolbar a.ilightbox-close, .ilightbox-toolbar a.ilightbox-fullscreen, .ilightbox-toolbar a.ilightbox-play, .ilightbox-toolbar a.ilightbox-pause",function(){var t=$(this);t.hasClass("fusion-updated")||(t.hasClass("ilightbox-fullscreen")?e.fullScreenAction():t.hasClass("ilightbox-play")?(e.resume(),t.addClass("ilightbox-pause").removeClass("ilightbox-play")):t.hasClass("ilightbox-pause")?(e.pause(),t.addClass("ilightbox-play").removeClass("ilightbox-pause")):e.closeAction(),t.addClass("fusion-updated"),setTimeout(function(){t.removeClass("fusion-updated")},100))}).on(touchMoveEvent,".ilightbox-overlay, .ilightbox-thumbnails-container",function(e){e.preventDefault()}),i.controls.arrows&&!supportTouch&&$doc.on("mousemove.iLightBox",function(e){t.isMobile||(t.mouseID||t.hideableElements.show(),t.mouseID=clearTimeout(t.mouseID),-1===s.indexOf(e.target)&&(t.mouseID=setTimeout(function(){t.hideableElements.hide(),t.mouseID=clearTimeout(t.mouseID)},3e3)))}),i.controls.slideshow&&i.slideshow.pauseOnHover&&$doc.on("mouseenter.iLightBox mouseleave.iLightBox",".ilightbox-holder:not(.ilightbox-next, .ilightbox-prev)",function(i){"mouseenter"==i.type&&t.cycleID?e.pause():"mouseleave"==i.type&&t.isPaused&&e.resume()});var u=$(".ilightbox-overlay, .ilightbox-holder, .ilightbox-thumbnails");i.controls.mousewheel&&u.on("mousewheel.iLightBox",function(i,o){t.lockWheel||(i.preventDefault(),o<0?e.moveTo("next"):o>0&&e.moveTo("prev"))}),i.controls.swipe&&n.on(touchStartEvent,function(a){if(!(t.nextLock||t.prevLock||1==t.total||t.lockSwipe)){t.BODY.addClass("ilightbox-closedhand");var s,l=a.originalEvent.touches?a.originalEvent.touches[0]:a,c=$doc.scrollTop(),u=$doc.scrollLeft(),h=[n.eq(0).offset(),n.eq(1).offset(),n.eq(2).offset()],d=[{top:h[0].top-c,left:h[0].left-u},{top:h[1].top-c,left:h[1].left-u},{top:h[2].top-c,left:h[2].left-u}],p={time:(new Date).getTime(),coords:[l.pageX-u,l.pageY-c]};n.on(touchMoveEvent,g),$doc.one(touchStopEvent,function(a){n.off(touchMoveEvent,g),t.BODY.removeClass("ilightbox-closedhand"),p&&s&&("horizontal"==o&&s.time-p.time<1e3&&abs(p.coords[0]-s.coords[0])>r&&abs(p.coords[1]-s.coords[1])<verticalDistanceThreshold?p.coords[0]>s.coords[0]?t.current!=t.total-1||i.infinite?(t.isSwipe=!0,e.moveTo("next")):m():0!=t.current||i.infinite?(t.isSwipe=!0,e.moveTo("prev")):m():"vertical"==o&&s.time-p.time<1e3&&abs(p.coords[1]-s.coords[1])>r&&abs(p.coords[0]-s.coords[0])<verticalDistanceThreshold?p.coords[1]>s.coords[1]?t.current!=t.total-1||i.infinite?(t.isSwipe=!0,e.moveTo("next")):m():0!=t.current||i.infinite?(t.isSwipe=!0,e.moveTo("prev")):m():m()),p=s=undefined})}function f(e){var t=$(this),i=d[e],n=[p.coords[0]-s.coords[0],p.coords[1]-s.coords[1]];t[0].style["horizontal"==o?"left":"top"]=("horizontal"==o?i.left-n[0]:i.top-n[1])+"px"}function g(e){if(p){var t=e.originalEvent.touches?e.originalEvent.touches[0]:e;s={time:(new Date).getTime(),coords:[t.pageX-u,t.pageY-c]},n.each(f),e.preventDefault()}}function m(){n.each(function(){var e=$(this),t=e.data("offset")||{top:e.offset().top-c,left:e.offset().left-u},i=t.top,o=t.left;e.css(transform,gpuAcceleration).stop().animate({top:i,left:o},500,"easeOutCirc",function(){e.css(transform,"")})})}})},goTo:function(e){var t=this,i=t.vars,o=t.options,n=e-i.current;if(o.infinite&&(e==i.total-1&&0==i.current&&(n=-1),i.current==i.total-1&&0==e&&(n=1)),1==n)t.moveTo("next");else if(-1==n)t.moveTo("prev");else{if(i.nextLock||i.prevLock)return!1;"function"==typeof o.callback.onBeforeChange&&o.callback.onBeforeChange.call(t,t.ui),o.linkId&&(i.hashLock=!0,window.location.hash=o.linkId+"/"+e),t.items[e]&&(t.items[e].options.mousewheel?t.vars.lockWheel=!1:i.lockWheel=!0,t.items[e].options.swipe?i.lockSwipe=!1:i.lockSwipe=!0),$.each([i.holder,i.nextPhoto,i.prevPhoto],function(e,t){t.css(transform,gpuAcceleration).fadeOut(o.effects.loadedFadeSpeed)}),i.current=e,i.next=e+1,i.prev=e-1,t.createUI(),setTimeout(function(){t.generateBoxes()},o.effects.loadedFadeSpeed+50),$(".ilightbox-thumbnail",i.thumbnails).removeClass("ilightbox-active").eq(e).addClass("ilightbox-active"),t.positionThumbnails(),o.linkId&&setTimeout(function(){i.hashLock=!1},55),o.infinite||(i.nextButton.add(i.prevButton).add(i.innerPrevButton).add(i.innerNextButton).removeClass("disabled"),0==i.current&&i.prevButton.add(i.innerPrevButton).addClass("disabled"),i.current>=i.total-1&&i.nextButton.add(i.innerNextButton).addClass("disabled")),t.resetCycle(),"function"==typeof o.callback.onAfterChange&&o.callback.onAfterChange.call(t,t.ui)}},moveTo:function(e){var t=this,i=t.vars,o=t.options,n=o.path.toLowerCase(),a=getViewport(),r=o.effects.switchSpeed,s=t.vars.holder,l=s.find("iframe").length?s.find("iframe").attr("src"):"";if(l&&-1!==l.indexOf("vimeo.com")&&s.find("iframe").attr("src",l),i.nextLock||i.prevLock)return!1;var c="next"==e?i.next:i.prev;if(o.linkId&&c&&(i.hashLock=!0,window.location.hash=o.linkId+"/"+c),"next"==e){if(!t.items[c])return!1;var u=i.nextPhoto,h=i.holder,d=i.prevPhoto,p="ilightbox-prev",f="ilightbox-next"}else if("prev"==e){if(!t.items[c])return!1;u=i.prevPhoto,h=i.holder,d=i.nextPhoto,p="ilightbox-next",f="ilightbox-prev"}"function"==typeof o.callback.onBeforeChange&&o.callback.onBeforeChange.call(t,t.ui),"next"==e?i.nextLock=!0:i.prevLock=!0;var g=$("div.ilightbox-caption",h),m=$("div.ilightbox-social",h);if(g.length&&g.stop().fadeOut(r,function(){$(this).remove()}),m.length&&m.stop().fadeOut(r,function(){$(this).remove()}),t.items[c].caption){t.setCaption(t.items[c],u);var v=$("div.ilightbox-caption",u),b=parseInt(v.outerHeight()/u.outerHeight()*100);o.caption.start&&b<=50&&v.fadeIn(r)}var x=t.items[c].options.social;x&&(t.setSocial(x,t.items[c].URL,u),o.social.start&&$("div.ilightbox-social",u).fadeIn(o.effects.fadeSpeed)),$.each([u,h,d],function(e,t){t.removeClass("ilightbox-next ilightbox-prev")});var w=u.data("offset"),y=a.width-o.styles.pageOffsetX,k=a.height-o.styles.pageOffsetY,S=w.newDims.width,L=w.newDims.height,T=w.thumbsOffset,A=w.diff,I=parseInt(k/2-L/2-A.H-T.H/2),C=parseInt(y/2-S/2-A.W-T.W/2);u.css(transform,gpuAcceleration).animate({top:I,left:C,opacity:1},r,i.isSwipe?"easeOutCirc":"easeInOutCirc",function(){u.css(transform,"")}),$("div.ilightbox-container",u).animate({width:S,height:L},r,i.isSwipe?"easeOutCirc":"easeInOutCirc");var O=h.data("offset"),B=O.object;A=O.diff,S=O.newDims.width,L=O.newDims.height,S=parseInt(S*o.styles["next"==e?"prevScale":"nextScale"]),L=parseInt(L*o.styles["next"==e?"prevScale":"nextScale"]),I="horizontal"==n?parseInt(k/2-B.offsetY-L/2-A.H-T.H/2):parseInt(k-B.offsetX-A.H-T.H/2),"prev"==e?C="horizontal"==n?parseInt(y-B.offsetX-A.W-T.W/2):parseInt(y/2-S/2-A.W-B.offsetY-T.W/2):(I="horizontal"==n?I:parseInt(B.offsetX-A.H-L-T.H/2),C="horizontal"==n?parseInt(B.offsetX-A.W-S-T.W/2):parseInt(y/2-B.offsetY-S/2-A.W-T.W/2)),$("div.ilightbox-container",h).animate({width:S,height:L},r,i.isSwipe?"easeOutCirc":"easeInOutCirc"),h.addClass(p).css(transform,gpuAcceleration).animate({top:I,left:C,opacity:o.styles.prevOpacity},r,i.isSwipe?"easeOutCirc":"easeInOutCirc",function(){h.css(transform,""),$(".ilightbox-thumbnail",i.thumbnails).removeClass("ilightbox-active").eq(c).addClass("ilightbox-active"),t.positionThumbnails(),t.items[c]&&(t.items[c].options.mousewheel?i.lockWheel=!1:i.lockWheel=!0,t.items[c].options.swipe?i.lockSwipe=!1:i.lockSwipe=!0),i.isSwipe=!1,"next"==e?(i.nextPhoto=d,i.prevPhoto=h,i.holder=u,i.nextPhoto.hide(),i.next=i.next+1,i.prev=i.current,i.current=i.current+1,o.infinite&&(i.current>i.total-1&&(i.current=0),i.current==i.total-1&&(i.next=0),0==i.current&&(i.prev=i.total-1)),t.createUI(),t.items[i.next]?t.loadContent(t.items[i.next],"next"):i.nextLock=!1):(i.prevPhoto=d,i.nextPhoto=h,i.holder=u,i.prevPhoto.hide(),i.next=i.current,i.current=i.prev,i.prev=i.current-1,o.infinite&&(i.current==i.total-1&&(i.next=0),0==i.current&&(i.prev=i.total-1)),t.createUI(),t.items[i.prev]?t.loadContent(t.items[i.prev],"prev"):i.prevLock=!1),o.linkId&&setTimeout(function(){i.hashLock=!1},55),o.infinite||(i.nextButton.add(i.prevButton).add(i.innerPrevButton).add(i.innerNextButton).removeClass("disabled"),0==i.current&&i.prevButton.add(i.innerPrevButton).addClass("disabled"),i.current>=i.total-1&&i.nextButton.add(i.innerNextButton).addClass("disabled")),t.repositionPhoto(),t.resetCycle(),"function"==typeof o.callback.onAfterChange&&o.callback.onAfterChange.call(t,t.ui)}),I="horizontal"==n?getPixel(d,"top"):"next"==e?parseInt(-k/2-d.outerHeight()):parseInt(2*I),C="horizontal"==n?"next"==e?parseInt(-y/2-d.outerWidth()):parseInt(2*C):getPixel(d,"left"),d.css(transform,gpuAcceleration).animate({top:I,left:C,opacity:o.styles.nextOpacity},r,i.isSwipe?"easeOutCirc":"easeInOutCirc",function(){d.css(transform,"")}).addClass(f)},setCaption:function(e,t){var i=$('<div class="ilightbox-caption"></div>');e.caption&&(i.html(e.caption),$("div.ilightbox-container",t).append(i))},normalizeSocial:function(e,t){this.vars;var i=this.options,o=window.location.href;return $.each(e,function(n,a){if(!a)return!0;var r,s;switch(n.toLowerCase()){case"facebook":r="http://www.facebook.com/share.php?v=4&src=bm&u={URL}",s="Share on Facebook";break;case"twitter":r="http://twitter.com/home?status={URL}",s="Share on Twitter";break;case"delicious":r="http://delicious.com/post?url={URL}",s="Share on Delicious";break;case"digg":r="http://digg.com/submit?phase=2&url={URL}",s="Share on Digg";break;case"reddit":r="http://reddit.com/submit?url={URL}",s="Share on reddit"}e[n]={URL:a.URL&&absolutizeURI(o,a.URL)||i.linkId&&window.location.href||"string"!=typeof t&&o||t&&absolutizeURI(o,t)||o,source:a.source||r||a.URL&&absolutizeURI(o,a.URL)||t&&absolutizeURI(o,t),text:a.text||s||"Share on "+n,width:void 0===a.width||isNaN(a.width)?640:parseInt(a.width),height:a.height||360}}),e},setSocial:function(e,t,i){var o=$('<div class="ilightbox-social"></div>'),n="<ul>";e=this.normalizeSocial(e,t),$.each(e,function(e,t){e.toLowerCase();var i=t.source.replace(/\{URL\}/g,encodeURIComponent(t.URL).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")),o="mail"===e?"":'onclick="javascript:window.open(this.href'+(t.width<=0||t.height<=0?"":", '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height="+t.height+",width="+t.width+",left=40,top=40'")+');return false;"';n+='<li class="'+e+'"><a class="awb-icon-'+e+'" href="'+i+'"'+o+' title="'+t.text+'" target="_blank" role="button"></a></li>'}),n+="</ul>",o.html(n),$("div.ilightbox-container",i).append(o)},fullScreenAction:function(){this.vars;fullScreenApi.supportsFullScreen?fullScreenApi.isFullScreen()?fullScreenApi.cancelFullScreen(document.documentElement):fullScreenApi.requestFullScreen(document.documentElement):this.doFullscreen()},doFullscreen:function(){var e=this,t=e.vars,i=getViewport(),o=e.options;if(o.fullAlone){var n=t.holder,a=e.items[t.current],r=i.width,s=i.height,l=[n,t.nextPhoto,t.prevPhoto,t.nextButton,t.prevButton,t.overlay,t.toolbar,t.thumbnails,t.loader],c=[t.loader,t.thumbnails];if(t.isInFullScreen)t.isInFullScreen=t.lockKey=t.lockWheel=t.lockSwipe=!1,t.overlay.css({opacity:e.options.overlay.opacity}),$.each(c,function(e,t){t.show()}),t.fullScreenButton.attr("title",o.text.enterFullscreen),n.data({naturalWidth:n.data("naturalWidthOld"),naturalHeight:n.data("naturalHeightOld"),naturalWidthOld:null,naturalHeightOld:null}),$.each(l,function(e,t){t.removeClass("ilightbox-fullscreen")}),"function"==typeof o.callback.onExitFullScreen&&o.callback.onExitFullScreen.call(e,e.ui);else{if(t.isInFullScreen=t.lockKey=t.lockWheel=t.lockSwipe=!0,t.overlay.css({opacity:1}),$.each(c,function(e,t){t.hide()}),t.fullScreenButton.attr("title",o.text.exitFullscreen),-1!=o.fullStretchTypes.indexOf(a.type))n.data({naturalWidthOld:n.data("naturalWidth"),naturalHeightOld:n.data("naturalHeight"),naturalWidth:r,naturalHeight:s});else{i=a.options.fullViewPort||o.fullViewPort||"";var u=r,h=s,d=n.data("naturalWidth"),p=n.data("naturalHeight");if("fill"==i.toLowerCase())(h=u/d*p)<s&&(u=s/p*d,h=s);else if("fit"==i.toLowerCase()){u=(f=e.getNewDimenstions(u,h,d,p,!0)).width,h=f.height}else if("stretch"==i.toLowerCase())u=u,h=h;else{var f,g=d>u||p>h;u=(f=e.getNewDimenstions(u,h,d,p,g)).width,h=f.height}n.data({naturalWidthOld:n.data("naturalWidth"),naturalHeightOld:n.data("naturalHeight"),naturalWidth:u,naturalHeight:h})}$.each(l,function(e,t){t.addClass("ilightbox-fullscreen")}),"function"==typeof o.callback.onEnterFullScreen&&o.callback.onEnterFullScreen.call(e,e.ui)}}else t.isInFullScreen?t.isInFullScreen=!1:t.isInFullScreen=!0;e.repositionPhoto(!0)},closeAction:function(){var e=this.vars,t=this.options;$win.off(".iLightBox"),$doc.off(".iLightBox"),$doc.off(clickEvent,".ilightbox-overlay"),$doc.off(clickEvent,".ilightbox-next, .ilightbox-next-button"),$doc.off(clickEvent,".ilightbox-prev, .ilightbox-prev-button"),$doc.off(clickEvent,".ilightbox-thumbnail"),$doc.off(clickEvent,".ilightbox-toolbar a.ilightbox-close, .ilightbox-toolbar a.ilightbox-fullscreen, .ilightbox-toolbar a.ilightbox-play, .ilightbox-toolbar a.ilightbox-pause"),e.isInFullScreen&&fullScreenApi.cancelFullScreen(document.documentElement),$(".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"));var i=[e.toolbar,e.holder,e.nextPhoto,e.prevPhoto,e.nextButton,e.prevButton,e.loader,e.thumbnails];$.each(i,function(e,t){t.removeAttr("style").remove()}),e.prevButton.removeClass("disabled"),e.nextButton.removeClass("disabled"),e.dontGenerateThumbs=e.isInFullScreen=!1,window.iLightBox=null,t.linkId&&(e.hashLock=!0,removeHash(),setTimeout(function(){e.hashLock=!1},55)),"function"==typeof t.callback.onHide&&t.callback.onHide.call(this,this.ui)},repositionPhoto:function(){var e=this,t=e.vars,i=e.options,o=i.path.toLowerCase(),n=getViewport(),a=n.width,r=n.height,s=t.isInFullScreen&&i.fullAlone||t.isMobile?0:"horizontal"==o?0:t.thumbnails.outerWidth(),l=t.isMobile?t.toolbar.outerHeight():t.isInFullScreen&&i.fullAlone?0:"horizontal"==o?t.thumbnails.outerHeight():0,c=t.isInFullScreen&&i.fullAlone?a:a-i.styles.pageOffsetX,u=t.isInFullScreen&&i.fullAlone?r:r-i.styles.pageOffsetY,h="horizontal"==o?parseInt(e.items[t.next]||e.items[t.prev]?2*(i.styles.nextOffsetX+i.styles.prevOffsetX):c/10<=30?30:c/10):parseInt(c/10<=30?30:c/10)+s,d="horizontal"==o?parseInt(u/10<=30?30:u/10)+l:parseInt(e.items[t.next]||e.items[t.prev]?2*(i.styles.nextOffsetX+i.styles.prevOffsetX):u/10<=30?30:u/10),p={type:"current",width:c,height:u,item:e.items[t.current],offsetW:h,offsetH:d,thumbsOffsetW:s,thumbsOffsetH:l,animate:arguments.length,holder:t.holder};e.repositionEl(p),e.items[t.next]&&(p=$.extend(p,{type:"next",item:e.items[t.next],offsetX:i.styles.nextOffsetX,offsetY:i.styles.nextOffsetY,holder:t.nextPhoto}),e.repositionEl(p)),e.items[t.prev]&&(p=$.extend(p,{type:"prev",item:e.items[t.prev],offsetX:i.styles.prevOffsetX,offsetY:i.styles.prevOffsetY,holder:t.prevPhoto}),e.repositionEl(p));var f="horizontal"==o?{left:parseInt(c/2-t.loader.outerWidth()/2)}:{top:parseInt(u/2-t.loader.outerHeight()/2)};t.loader.css(f)},repositionEl:function(e){var t=this.vars,i=this.options,o=i.path.toLowerCase(),n="current"==e.type&&t.isInFullScreen&&i.fullAlone?e.width:e.width-e.offsetW,a="current"==e.type&&t.isInFullScreen&&i.fullAlone?e.height:e.height-e.offsetH,r=e.item,s=e.item.options,l=e.holder,c=e.offsetX||0,u=e.offsetY||0,h=e.thumbsOffsetW,d=e.thumbsOffsetH;"current"==e.type?("number"==typeof s.width&&s.width&&(n=t.isInFullScreen&&i.fullAlone&&(-1!=i.fullStretchTypes.indexOf(r.type)||s.fullViewPort||i.fullViewPort)?n:s.width>n?n:s.width),"number"==typeof s.height&&s.height&&(a=t.isInFullScreen&&i.fullAlone&&(-1!=i.fullStretchTypes.indexOf(r.type)||s.fullViewPort||i.fullViewPort)?a:s.height>a?a:s.height)):("number"==typeof s.width&&s.width&&(n=s.width>n?n:s.width),"number"==typeof s.height&&s.height&&(a=s.height>a?a:s.height)),$(".ilightbox-inner-toolbar",l).length&&(a=parseInt(a-$(".ilightbox-inner-toolbar",l).outerHeight()));var p="string"==typeof s.width&&-1!=s.width.indexOf("%")?percentToValue(parseInt(s.width.replace("%","")),e.width):l.data("naturalWidth"),f="string"==typeof s.height&&-1!=s.height.indexOf("%")?percentToValue(parseInt(s.height.replace("%","")),e.height):l.data("naturalHeight"),g="string"==typeof s.width&&-1!=s.width.indexOf("%")||"string"==typeof s.height&&-1!=s.height.indexOf("%")?{width:p,height:f}:this.getNewDimenstions(n,a,p,f),m=$.extend({},g,{});"prev"==e.type||"next"==e.type?(p=parseInt(g.width*("next"==e.type?i.styles.nextScale:i.styles.prevScale)),f=parseInt(g.height*("next"==e.type?i.styles.nextScale:i.styles.prevScale))):(p=g.width,f=g.height);var v=parseInt((getPixel(l,"padding-left")+getPixel(l,"padding-right")+getPixel(l,"border-left-width")+getPixel(l,"border-right-width"))/2),b=parseInt((getPixel(l,"padding-top")+getPixel(l,"padding-bottom")+getPixel(l,"border-top-width")+getPixel(l,"border-bottom-width")+($(".ilightbox-inner-toolbar",l).outerHeight()||0))/2);switch(e.type){case"current":var x=parseInt(e.height/2-f/2-b-d/2),w=parseInt(e.width/2-p/2-v-h/2);break;case"next":x="horizontal"==o?parseInt(e.height/2-u-f/2-b-d/2):parseInt(e.height-c-b-d/2),w="horizontal"==o?parseInt(e.width-c-v-h/2):parseInt(e.width/2-p/2-v-u-h/2);break;case"prev":x="horizontal"==o?parseInt(e.height/2-u-f/2-b-d/2):parseInt(c-b-f-d/2),w="horizontal"==o?parseInt(c-v-p-h/2):parseInt(e.width/2-u-p/2-v-h/2)}l.data("offset",{top:x,left:w,newDims:m,diff:{W:v,H:b},thumbsOffset:{W:h,H:d},object:e}),e.animate>0&&i.effects.reposition?(l.css(transform,gpuAcceleration).stop().animate({top:x,left:w},i.effects.repositionSpeed,"easeOutCirc",function(){l.css(transform,"")}),$("div.ilightbox-container",l).stop().animate({width:p,height:f},i.effects.repositionSpeed,"easeOutCirc"),$("div.ilightbox-inner-toolbar",l).stop().animate({width:p},i.effects.repositionSpeed,"easeOutCirc",function(){$(this).css("overflow","visible")})):(l.css({top:x,left:w}),$("div.ilightbox-container",l).css({width:p,height:f}),$("div.ilightbox-inner-toolbar",l).css({width:p}))},resume:function(e){var t=this,i=t.vars,o=t.options;!o.slideshow.pauseTime||o.controls.slideshow&&i.total<=1||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")},o.slideshow.pauseTime))},pause:function(e){var t=this.vars;this.options;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,o,n){var a=this;return factor=e?t?min(e/i,t/o):e/i:t/o,n||(factor>a.options.maxScale?factor=a.options.maxScale:factor<a.options.minScale&&(factor=a.options.minScale)),{width:a.options.keepAspectRatio?round(i*factor):e,height:a.options.keepAspectRatio?round(o*factor):t,ratio:factor}},setOption:function(e){this.options=$.extend(!0,this.options,e||{}),this.refresh()},availPlugins:function(){var e=document.createElement("video");this.plugins={flash:!isMobile,quicktime:parseInt(PluginDetect.getVersion("QuickTime"))>=0,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=this;switch(t.type){case"video":var o=!1,n=t.videoType,a=t.options.html5video;("video/mp4"==(n=!n&&t.options.videoType?t.options.videoType:n)||"mp4"==t.ext||"m4v"==t.ext||a.h264)&&i.plugins.html5H264?(t.ext="mp4",t.URL=a.h264||t.URL):a.webm&&i.plugins.html5WebM?(t.ext="webm",t.URL=a.webm||t.URL):a.ogg&&i.plugins.html5Vorbis&&(t.ext="ogv",t.URL=a.ogg||t.URL),!i.plugins.html5H264||"video/mp4"!=n&&"mp4"!=t.ext&&"m4v"!=t.ext?!i.plugins.html5WebM||"video/webm"!=n&&"webm"!=t.ext?!i.plugins.html5Vorbis||"video/ogg"!=n&&"ogv"!=t.ext?!i.plugins.html5QuickTime||"video/quicktime"!=n&&"mov"!=t.ext&&"qt"!=t.ext||(o=!0,n="video/quicktime"):(o=!0,n="video/ogg"):(o=!0,n="video/webm"):(o=!0,n="video/mp4"),o?m=$("<video />",{width:"100%",height:"100%",preload:a.preload,autoplay:a.autoplay,poster:a.poster,controls:a.controls}).append($("<source />",{src:t.URL,type:n})):i.plugins.quicktime?(m=$("<object />",{type:"video/quicktime",pluginspage:pluginspages.quicktime}).attr({data:t.URL,width:"100%",height:"100%"}).append($("<param />",{name:"src",value:t.URL})).append($("<param />",{name:"autoplay",value:"false"})).append($("<param />",{name:"loop",value:"false"})).append($("<param />",{name:"scale",value:"tofit"})),browser.msie&&(m=QT_GenerateOBJECTText(t.URL,"100%","100%","","SCALE","tofit","AUTOPLAY","false","LOOP","false"))):m=$("<span />",{class:"ilightbox-alert",html:i.options.errors.missingPlugin.replace("{pluginspage}",pluginspages.quicktime).replace("{type}","QuickTime")});break;case"flash":if(i.plugins.flash){var r="",s=0;t.options.flashvars?$.each(t.options.flashvars,function(e,t){0!=s&&(r+="&"),r+=e+"="+encodeURIComponent(t),s++}):r=null,m=$("<embed />").attr({type:"application/x-shockwave-flash",src:t.URL,width:"number"==typeof t.options.width&&t.options.width&&"1"==i.options.minScale&&"1"==i.options.maxScale?t.options.width:"100%",height:"number"==typeof t.options.height&&t.options.height&&"1"==i.options.minScale&&"1"==i.options.maxScale?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 m=$("<span />",{class:"ilightbox-alert",html:i.options.errors.missingPlugin.replace("{pluginspage}",pluginspages.flash).replace("{type}","Adobe Flash player")});break;case"iframe":var l=t.URL.substring(t.URL.indexOf("?")+1).split("&"),c="?";if(-1!=t.URL.indexOf("vimeo.com")){var u=/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/;if(p=t.URL.match(u)){c="?title=0&byline=0&portrait=0";for(var h=0;h<l.length;++h){1<(f=l[h].split("="))[0].length&&2===f.length&&-1===c.indexOf(f[0])&&(c+="&"+f[0]+"="+decodeURIComponent(f[1].replace(/\+/g," ")))}var d="//player.vimeo.com/video/"+p[3]+c}else d=t.URL}else{var p;u=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/;if(p=t.URL.match(u)){c="?enablejsapi=1";for(h=0;h<l.length;++h){var f;1<(f=l[h].split("="))[0].length&&2===f.length&&-1===c.indexOf(f[0])&&(c+="&"+f[0]+"="+decodeURIComponent(f[1].replace(/\+/g," ")))}d="//www.youtube.com/embed/"+p[7]+c}else d=t.URL}var g="";-1!==c.indexOf("autoplay=1")&&(g+="autoplay"),m=$("<iframe />").attr({width:"number"==typeof t.options.width&&t.options.width&&"1"==i.options.minScale&&"1"==i.options.maxScale?t.options.width:"100%",height:"number"==typeof t.options.height&&t.options.height&&"1"==i.options.minScale&&"1"==i.options.maxScale?t.options.height:"100%",src:d,frameborder:0,hspace:0,vspace:0,scrolling:supportTouch?"auto":"scroll",webkitAllowFullScreen:"",mozallowfullscreen:"",allowFullScreen:"",allow:g});break;case"inline":m=$('<div class="ilightbox-wrapper"></div>').html($(t.URL).clone(!0));break;case"html":var m,v=t.URL;if(v[0].nodeName)m=$('<div class="ilightbox-wrapper"></div>').html(v);else{var b=$(t.URL),x=b.selector?$("<div>"+b+"</div>"):b;m=$('<div class="ilightbox-wrapper"></div>').html(x)}}return $("div.ilightbox-container",e).empty().html(m),"video"===m[0].tagName.toLowerCase()&&browser.webkit&&setTimeout(function(){var e=m[0].currentSrc+"?"+floor(3e4*random());m[0].currentSrc=e,m[0].src=e}),m},ogpRecognition:function(e,t){var i=this,o=e.URL;i.showLoader(),doAjax(o,function(e){if(i.hideLoader(),e){var o=new Object;if(o.length=!1,o.url=e.url,200==e.status){for(var n=e.results,a=n.type,r=n.source,s=n.url.substring(n.url.indexOf("?")+1).split("&"),l=r.src,c=0;c<s.length;++c)-1===l.indexOf(s[c])&&(l+="&"+s[c]);o.source=l,o.width=r.width&&parseInt(r.width)||0,o.height=r.height&&parseInt(r.height)||0,o.type=a,o.thumbnail=r.thumbnail||n.images[0],o.html5video=n.html5video||{},o.length=!0,"application/x-shockwave-flash"==r.type?o.type="flash":-1!=r.type.indexOf("video/")?o.type="video":-1!=r.type.indexOf("/html")?o.type="iframe":-1!=r.type.indexOf("image/")&&(o.type="image")}else if(void 0!==e.response)throw e.response;t.call(this,!!o.length&&o)}})},hashChangeHandler:function(e){var t=this,i=t.vars,o=t.options,n=parseURI(e||window.location.href).hash,a=n.split("/"),r=a[1];if(!(i.hashLock||"#"+o.linkId!=a[0].replace("%5B","[").replace("%5D","]")&&n.length>1))if(r){var s=a[1]||0;if(t.items[s])(l=$(".ilightbox-overlay")).length&&l.attr("linkid")==o.linkId?t.goTo(s):t.itemsObject[s].trigger(supportTouch?"itap":"click");else(l=$(".ilightbox-overlay")).length&&t.closeAction()}else{var l;(l=$(".ilightbox-overlay")).length&&t.closeAction()}}},$.fn.iLightBox=function(){var e=arguments,t=$.isPlainObject(e[0])?e[0]:e[1],i=Array.isArray(e[0])||"string"==typeof e[0]?e[0]:e[1];t||(t={});var o=$.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}' role='button' target='_blank'>{type} plugin</a>."},ajaxSetup:{url:"",beforeSend:function(e,t){},cache:!1,complete:function(e,t){},crossDomain:!1,error:function(e,t,i){},success:function(e,t,i){},global:!0,ifModified:!1,username:null,password:null,type:"GET"},callback:{}},t),n=!(!Array.isArray(i)&&"string"!=typeof i);if(i=Array.isArray(i)?i:new Array,"string"==typeof e[0]&&(i[0]=e[0]),version_compare($.fn.jquery,"1.8",">=")){var a=new iLightBox($(this),o,i,n);return{close:function(){a.closeAction()},fullscreen:function(){a.fullScreenAction()},moveNext:function(){a.moveTo("next")},movePrev:function(){a.moveTo("prev")},goTo:function(e){a.goTo(e)},refresh:function(){a.refresh()},reposition:function(){arguments.length>0?a.repositionPhoto(!0):a.repositionPhoto()},setOption:function(e){a.setOption(e)},destroy:function(){a.closeAction(),$win.off("iLightBoxHashChange"),a.dispatchItemsEvents()}}}throw"The jQuery version that was loaded is too old. iLightBox requires jQuery 1.8+"},$.iLightBox=function(){return $.fn.iLightBox(arguments[0],arguments[1])},$.extend($.easing,{easeInCirc:function(e,t,i,o,n){return-o*(sqrt(1-(t/=n)*t)-1)+i},easeOutCirc:function(e,t,i,o,n){return o*sqrt(1-(t=t/n-1)*t)+i},easeInOutCirc:function(e,t,i,o,n){return(t/=n/2)<1?-o/2*(sqrt(1-t*t)-1)+i:o/2*(sqrt(1-(t-=2)*t)+1)+i}}),function(){$.each("touchstart touchmove touchend tap taphold swipeleft swiperight scrollstart scrollstop".split(" "),function(e,t){$.fn[t]=function(e){return e?this.on(t,e):this.trigger(t)}});var e="touchstart.iTap",t="touchend.iTap";$.event.special.itap={setup:function(){var i,o,n=this,a=$(this);a.on(e,function(e){i=getScrollXY(),a.one(t,function(e){o=getScrollXY();var t=e||window.event;(e=$.event.fix(t)).type="itap",i&&o&&i.x==o.x&&i.y==o.y&&($.event.dispatch||$.event.handle).call(n,e),i=o=undefined})})},teardown:function(){$(this).off(e)}}}(),function(){if(fullScreenApi={supportsFullScreen:!1,isFullScreen:function(){return!1},requestFullScreen:function(){},cancelFullScreen:function(){},fullScreenEventName:"",prefix:""},browserPrefixes="webkit moz o ms khtml".split(" "),void 0!==document.cancelFullScreen)fullScreenApi.supportsFullScreen=!0;else for(var e=0,t=browserPrefixes.length;e<t;e++)if(fullScreenApi.prefix=browserPrefixes[e],void 0!==document[fullScreenApi.prefix+"CancelFullScreen"]){fullScreenApi.supportsFullScreen=!0;break}fullScreenApi.supportsFullScreen&&(fullScreenApi.fullScreenEventName=fullScreenApi.prefix+"fullscreenchange",fullScreenApi.isFullScreen=function(){switch(this.prefix){case"":return document.fullScreen;case"webkit":return document.webkitIsFullScreen;default:return document[this.prefix+"FullScreen"]}},fullScreenApi.requestFullScreen=function(e){return""===this.prefix?e.requestFullScreen():e[this.prefix+"RequestFullScreen"]()},fullScreenApi.cancelFullScreen=function(e){return""===this.prefix?document.cancelFullScreen():document[this.prefix+"CancelFullScreen"]()})}(),function(){var e=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}}(navigator.userAgent);browser={},e.browser&&(browser[e.browser]=!0,browser.version=e.version),browser.chrome?browser.webkit=!0:browser.webkit&&(browser.safari=!0)}(),function(){var e=["","webkit","moz","ms","o"],t=document.createElement("div");function i(i){for(var o=0,n=e.length;o<n;o++){var a=e[o]?e[o]+i.charAt(0).toUpperCase()+i.slice(1):i;if(t.style[a]!==undefined)return a}}transform=i("transform")||"",gpuAcceleration=i("perspective")?"translateZ(0) ":""}();var PluginDetect={version:"0.7.9",name:"PluginDetect",handler:function(e,t,i){return function(){e(t,i)}},openTag:"<",isDefined:function(e){return void 0!==e},isArray:function(e){return/array/i.test(Object.prototype.toString.call(e))},isFunc:function(e){return"function"==typeof e},isString:function(e){return"string"==typeof e},isNum:function(e){return"number"==typeof e},isStrNum:function(e){return"string"==typeof e&&/\d/.test(e)},getNumRegx:/[\d][\d\.\_,-]*/,splitNumRegx:/[\.\_,-]/g,getNum:function(e,t){var i=this,o=i.isStrNum(e)?(i.isDefined(t)?new RegExp(t):i.getNumRegx).exec(e):null;return o?o[0]:null},compareNums:function(e,t,i){var o,n,a,r=this,s=parseInt;if(r.isStrNum(e)&&r.isStrNum(t)){if(r.isDefined(i)&&i.compareNums)return i.compareNums(e,t);for(o=e.split(r.splitNumRegx),n=t.split(r.splitNumRegx),a=0;a<min(o.length,n.length);a++){if(s(o[a],10)>s(n[a],10))return 1;if(s(o[a],10)<s(n[a],10))return-1}}return 0},formatNum:function(e,t){var i,o,n=this;if(!n.isStrNum(e))return null;for(n.isNum(t)||(t=4),t--,o=e.replace(/\s/g,"").split(n.splitNumRegx).concat(["0","0","0","0"]),i=0;i<4;i++)/^(0+)(.+)$/.test(o[i])&&(o[i]=RegExp.$2),(i>t||!/\d/.test(o[i]))&&(o[i]="0");return o.slice(0,4).join(",")},$$hasMimeType:function(e){return function(t){if(!e.isIE&&t){var i,o,n,a=e.isArray(t)?t:e.isString(t)?[t]:[];for(n=0;n<a.length;n++)if(e.isString(a[n])&&/[^\s]/.test(a[n])&&(o=(i=navigator.mimeTypes[a[n]])?i.enabledPlugin:0)&&(o.name||o.description))return i}return null}},findNavPlugin:function(e,t,i){var o,n,a,r=new RegExp(e,"i"),s=!this.isDefined(t)||t?/\d/:0,l=i?new RegExp(i,"i"):0,c=navigator.plugins;for(o=0;o<c.length;o++)if(a=c[o].description||"",n=c[o].name||"",(r.test(a)&&(!s||s.test(RegExp.leftContext+RegExp.rightContext))||r.test(n)&&(!s||s.test(RegExp.leftContext+RegExp.rightContext)))&&(!l||!l.test(a)&&!l.test(n)))return c[o];return null},getMimeEnabledPlugin:function(e,t,i){var o,n,a,r,s=new RegExp(t,"i"),l=i?new RegExp(i,"i"):0,c=this.isString(e)?[e]:e;for(r=0;r<c.length;r++)if((o=this.hasMimeType(c[r]))&&(o=o.enabledPlugin)&&(a=o.description||"",n=o.name||"",(s.test(a)||s.test(n))&&(!l||!l.test(a)&&!l.test(n))))return o;return 0},getPluginFileVersion:function(e,t){var i,o,n,a,r=this,s=-1;if(r.OS>2||!e||!e.version||!(i=r.getNum(e.version)))return t;if(!t)return i;for(i=r.formatNum(i),o=(t=r.formatNum(t)).split(r.splitNumRegx),n=i.split(r.splitNumRegx),a=0;a<o.length;a++){if(s>-1&&a>s&&"0"!=o[a])return t;if(n[a]!=o[a]&&(-1==s&&(s=a),"0"!=o[a]))return t}return i},AXO:window.ActiveXObject,getAXO:function(e){var t=null;try{t=new this.AXO(e)}catch(e){}return t},convertFuncs:function(e){var t,i,o=/^[\$][\$]/;for(t in e)if(o.test(t))try{(i=t.slice(2)).length>0&&!e[i]&&(e[i]=e[t](e),delete e[t])}catch(e){}},initObj:function(e,t,i){var o,n;if(e){if(1==e[t[0]]||i)for(o=0;o<t.length;o+=2)e[t[o]]=t[o+1];for(o in e)(n=e[o])&&1==n[t[0]]&&this.initObj(n,t)}},initScript:function(){var e=this,t=navigator,i=document,o=t.userAgent||"",n=t.vendor||"",a=t.platform||"",r=t.product||"";for(u in e.initObj(e,["$",e]),e.Plugins)e.Plugins[u]&&e.initObj(e.Plugins[u],["$",e,"$$",e.Plugins[u]],1);if(e.convertFuncs(e),e.OS=100,a){var s=["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(u=s.length-2;u>=0;u-=2)if(s[u]&&new RegExp(s[u],"i").test(a)){e.OS=s[u+1];break}}if(e.head=i.getElementsByTagName("head")[0]||i.getElementsByTagName("body")[0]||i.body||null,e.isIE=!1,e.verIE=e.isIE&&/MSIE\s*(\d+\.?\d*)/i.test(o)?parseFloat(RegExp.$1,10):null,e.verIEfull=null,e.docModeIE=null,e.isIE){var l,c=document.createElement("div");try{c.style.behavior="url(#default#clientcaps)",e.verIEfull=c.getComponentVersion("{89820200-ECBD-11CF-8B85-00AA005B4383}","componentid").replace(/,/g,".")}catch(e){}l=parseFloat(e.verIEfull||"0",10),e.docModeIE=i.documentMode||(/back/i.test(i.compatMode||"")?5:l)||e.verIE,e.verIE=l||e.docModeIE}if(e.ActiveXEnabled=!1,e.isIE){var u,h=["Msxml2.XMLHTTP","Msxml2.DOMDocument","Microsoft.XMLDOM","ShockwaveFlash.ShockwaveFlash","TDCCtl.TDCCtl","Shell.UIHelper","Scripting.Dictionary","wmplayer.ocx"];for(u=0;u<h.length;u++)if(e.getAXO(h[u])){e.ActiveXEnabled=!0;break}}e.isGecko=/Gecko/i.test(r)&&/Gecko\s*\/\s*\d/i.test(o),e.verGecko=e.isGecko?e.formatNum(/rv\s*\:\s*([\.\,\d]+)/i.test(o)?RegExp.$1:"0.9"):null,e.isChrome=/Chrome\s*\/\s*(\d[\d\.]*)/i.test(o),e.verChrome=e.isChrome?e.formatNum(RegExp.$1):null,e.isSafari=(/Apple/i.test(n)||!n&&!e.isChrome)&&/Safari\s*\/\s*(\d[\d\.]*)/i.test(o),e.verSafari=e.isSafari&&/Version\s*\/\s*(\d[\d\.]*)/i.test(o)?e.formatNum(RegExp.$1):null,e.isOpera=/Opera\s*[\/]?\s*(\d+\.?\d*)/i.test(o),e.verOpera=e.isOpera&&(/Version\s*\/\s*(\d+\.?\d*)/i.test(o),1)?parseFloat(RegExp.$1,10):null,e.addWinEvent("load",e.handler(e.runWLfuncs,e))},init:function(e){var t,i=this,o={status:-3,plugin:0};return i.isString(e)?1==e.length?(i.getVersionDelimiter=e,o):(e=e.toLowerCase().replace(/\s/g,""),(t=i.Plugins[e])&&t.getVersion?(o.plugin=t,i.isDefined(t.installed)||(t.installed=null,t.version=null,t.version0=null,t.getVersionDone=null,t.pluginName=e),i.garbage=!1,i.isIE&&!i.ActiveXEnabled&&"java"!==e?(o.status=-2,o):(o.status=1,o)):o):o},fPush:function(e,t){var i=this;i.isArray(t)&&(i.isFunc(e)||i.isArray(e)&&e.length>0&&i.isFunc(e[0]))&&t.push(e)},callArray:function(e){var t;if(this.isArray(e))for(t=0;t<e.length;t++){if(null===e[t])return;this.call(e[t]),e[t]=null}},call:function(e){var t=this,i=t.isArray(e)?e.length:-1;i>0&&t.isFunc(e[0])?e[0](t,i>1?e[1]:0,i>2?e[2]:0,i>3?e[3]:0):t.isFunc(e)&&e(t)},getVersionDelimiter:",",$$getVersion:function(e){return function(t,i,o){var n,a,r=e.init(t);return r.status<0?null:(1!=(n=r.plugin).getVersionDone&&(n.getVersion(null,i,o),null===n.getVersionDone&&(n.getVersionDone=1)),e.cleanup(),a=(a=n.version||n.version0)?a.replace(e.splitNumRegx,e.getVersionDelimiter):a)}},cleanup:function(){this.garbage&&this.isDefined(window.CollectGarbage)&&window.CollectGarbage()},isActiveXObject:function(e,t){var i=this,o=!1,n='<object width="1" height="1" style="display:none" '+e.getCodeBaseVersion(t)+">"+e.HTML+i.openTag+"/object>";if(!i.head)return o;i.head.insertBefore(document.createElement("object"),i.head.firstChild),i.head.firstChild.outerHTML=n;try{i.head.firstChild.classid=e.classID}catch(e){}try{i.head.firstChild.object&&(o=!0)}catch(e){}try{o&&i.head.firstChild.readyState<4&&(i.garbage=!0)}catch(e){}return i.head.removeChild(i.head.firstChild),o},codebaseSearch:function(e,t){var i=this;if(!i.ActiveXEnabled||!e)return null;e.BIfuncs&&e.BIfuncs.length&&null!==e.BIfuncs[e.BIfuncs.length-1]&&i.callArray(e.BIfuncs);var o,n=e.SEARCH;if(i.isStrNum(t))return!!(n.match&&n.min&&i.compareNums(t,n.min)<=0)||!(n.match&&n.max&&i.compareNums(t,n.max)>=0)&&((o=i.isActiveXObject(e,t))&&(!n.min||i.compareNums(t,n.min)>0)&&(n.min=t),o||n.max&&!(i.compareNums(t,n.max)<0)||(n.max=t),o);var a,r,s,l,c,u=[0,0,0,0],h=[].concat(n.digits),d=n.min?1:0,p=function(t,o){var n=[].concat(u);return n[t]=o,i.isActiveXObject(e,n.join(","))};if(n.max){for(l=n.max.split(i.splitNumRegx),a=0;a<l.length;a++)l[a]=parseInt(l[a],10);l[0]<h[0]&&(h[0]=l[0])}if(n.min){for(c=n.min.split(i.splitNumRegx),a=0;a<c.length;a++)c[a]=parseInt(c[a],10);c[0]>u[0]&&(u[0]=c[0])}if(c&&l)for(a=1;a<c.length&&c[a-1]==l[a-1];a++)l[a]<h[a]&&(h[a]=l[a]),c[a]>u[a]&&(u[a]=c[a]);if(n.max)for(a=1;a<h.length;a++)if(l[a]>0&&0==h[a]&&h[a-1]<n.digits[a-1]){h[a-1]+=1;break}for(a=0;a<h.length;a++){for(s={},r=0;r<20&&!(h[a]-u[a]<1)&&!s["a"+(o=round((h[a]+u[a])/2))];r++)s["a"+o]=1,p(a,o)?(u[a]=o,d=1):h[a]=o;if(h[a]=u[a],!d&&p(a,u[a])&&(d=1),!d)break}return d?u.join(","):null},addWinEvent:function(e,t){var i,o=window;this.isFunc(t)&&(o.addEventListener?o.addEventListener(e,t,!1):o.attachEvent?o.attachEvent("on"+e,t):(i=o["on"+e],o["on"+e]=this.winHandler(t,i)))},winHandler:function(e,t){return function(){e(),"function"==typeof t&&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,o,n,a=this;if(a.div&&a.div.childNodes)for(e=a.div.childNodes.length-1;e>=0;e--){if((i=a.div.childNodes[e])&&i.childNodes)for(t=i.childNodes.length-1;t>=0;t--){n=i.childNodes[t];try{i.removeChild(n)}catch(e){}}if(i)try{a.div.removeChild(i)}catch(e){}}if(a.div||(o=document.getElementById(a.divID))&&(a.div=o),a.div&&a.div.parentNode){try{a.div.parentNode.removeChild(a.div)}catch(e){}a.div=null}},DONEfuncs:[],onDoneEmptyDiv:function(){var e,t,i=this;if(i.winLoaded&&(!i.WLfuncs||!i.WLfuncs.length||null===i.WLfuncs[i.WLfuncs.length-1])){for(e in i)if((t=i[e])&&t.funcs){if(3==t.OTF)return;if(t.funcs.length&&null!==t.funcs[t.funcs.length-1])return}for(e=0;e<i.DONEfuncs.length;e++)i.callArray(i.DONEfuncs);i.emptyDiv()}},getWidth:function(e){if(e){var t=e.scrollWidth||e.offsetWidth;if(this.isNum(t))return t}return-1},getTagStatus:function(e,t,i,o){var n=this,a=e.span,r=n.getWidth(a),s=i.span,l=n.getWidth(s),c=t.span,u=n.getWidth(c);if(!(a&&s&&c&&n.getDOMobj(e)))return-2;if(l<u||r<0||l<0||u<0||u<=n.pluginSize||n.pluginSize<1)return 0;if(r>=u)return-1;try{if(r==n.pluginSize&&(!n.isIE||4==n.getDOMobj(e).readyState)){if(!e.winLoaded&&n.winLoaded)return 1;if(e.winLoaded&&n.isNum(o)&&(n.isNum(e.count)||(e.count=o),o-e.count>=10))return 1}}catch(e){}return 0},getDOMobj:function(e,t){var i=e?e.span:0,o=i&&i.firstChild?1:0;try{o&&t&&this.div.focus()}catch(e){}return o?i.firstChild:null},setStyle:function(e,t){var i,o=e.style;if(o&&t)for(i=0;i<t.length;i+=2)try{o[t[i]]=t[i+1]}catch(e){}},insertDivInBody:function(e,t){var i="pd33993399",o=null,n=t?window.top.document:window.document,a=n.getElementsByTagName("body")[0]||n.body;if(!a)try{n.write('<div id="'+i+'">.'+this.openTag+"/div>"),o=n.getElementById(i)}catch(e){}(a=n.getElementsByTagName("body")[0]||n.body)&&(a.insertBefore(e,a.firstChild),o&&a.removeChild(o))},insertHTML:function(e,t,i,o,n){var a,r,s,l=document,c=this,u=l.createElement("span"),h=["outlineStyle","none","borderStyle","none","padding","0px","margin","0px","visibility","visible"];if(c.isDefined(o)||(o=""),c.isString(e)&&/[^\s]/.test(e)){for(e=e.toLowerCase().replace(/\s/g,""),a=c.openTag+e+' width="'+c.pluginSize+'" height="'+c.pluginSize+'" ',a+='style="outline-style:none;border-style:none;padding:0px;margin:0px;visibility:visible;display:inline;" ',r=0;r<t.length;r+=2)/[^\s]/.test(t[r+1])&&(a+=t[r]+'="'+t[r+1]+'" ');for(a+=">",r=0;r<i.length;r+=2)/[^\s]/.test(i[r+1])&&(a+=c.openTag+'param name="'+i[r]+'" value="'+i[r+1]+'" />');a+=o+c.openTag+"/"+e+">"}else a=o;if(c.div||((s=l.getElementById(c.divID))?c.div=s:(c.div=l.createElement("div"),c.div.id=c.divID),c.setStyle(c.div,h.concat(["width",c.divWidth+"px","height",c.pluginSize+3+"px","fontSize",c.pluginSize+3+"px","lineHeight",c.pluginSize+3+"px","verticalAlign","baseline","display","block"])),s||(c.setStyle(c.div,["position","absolute","right","0px","top","0px"]),c.insertDivInBody(c.div))),c.div&&c.div.parentNode){c.setStyle(u,h.concat(["fontSize",c.pluginSize+3+"px","lineHeight",c.pluginSize+3+"px","verticalAlign","baseline","display","inline"]));try{u.innerHTML=a}catch(e){}try{c.div.appendChild(u)}catch(e){}return{span:u,winLoaded:c.winLoaded,tagName:e,outerHTML:a}}return{span:null,winLoaded:c.winLoaded,tagName:"",outerHTML:a}},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,i=this,o=i.$,n=null,a=null;if(o.isIE){if(o.isStrNum(e)&&((t=e.split(o.splitNumRegx)).length>3&&parseInt(t[3],10)>0&&(t[3]="9999"),e=t.join(",")),o.isStrNum(e)&&o.verIE>=i.minIEver&&i.canUseIsMin()>0)return i.installed=i.isMin(e),void(i.getVersionDone=0);i.getVersionDone=1,!n&&o.verIE>=i.minIEver&&(n=i.CDBASE2VER(o.codebaseSearch(i))),n||(a=o.getAXO(i.progID))&&a.QuickTimeVersion&&(n=a.QuickTimeVersion.toString(16),n=parseInt(n.charAt(0),16)+"."+parseInt(n.charAt(1),16)+"."+parseInt(n.charAt(2),16))}else o.hasMimeType(i.mimeType)&&(a=3!=o.OS?o.findNavPlugin("QuickTime.*Plug-?in",0):null)&&a.name&&(n=o.getNum(a.name));i.installed=n?1:a?0:-1,i.version=o.formatNum(n,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,i=this,o=i.$,n=i.cdbaseUpper,a=i.cdbaseLower;if(e)for(e=o.formatNum(e),t=0;t<n.length;t++)if(n[t]&&o.compareNums(e,n[t])<0&&a[t]&&o.compareNums(e,a[t])>=0&&i.cdbase2ver[t])return i.cdbase2ver[t](i,e);return e},canUseIsMin:function(){var e,t=this,i=t.$,o=t.canUseIsMin,n=t.cdbaseUpper,a=t.cdbaseLower;if(!o.value)for(o.value=-1,e=0;e<n.length;e++){if(n[e]&&i.codebaseSearch(t,n[e])){o.value=1;break}if(a[e]&&i.codebaseSearch(t,a[e])){o.value=-1;break}}return t.SEARCH.match=1==o.value?1:0,o.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,t,i,o,n=function(e){if(!e)return null;var t=/[\d][\d\,\.\s]*[rRdD]{0,1}[\d\,]*/.exec(e);return t?t[0].replace(/[rRdD\.]/g,",").replace(/\s/g,""):null},a=this,r=a.$,s=null,l=null,c=null;if(r.isIE){for(e=15;e>2;e--)if(l=r.getAXO(a.progID+"."+e)){c=e.toString();break}if(l||(l=r.getAXO(a.progID)),"6"==c)try{l.AllowScriptAccess="always"}catch(e){return"6,0,21,0"}try{s=n(l.GetVariable("$version"))}catch(e){}!s&&c&&(s=c)}else{if(i=r.hasMimeType(a.mimeType)){t=r.getDOMobj(r.insertHTML("object",["type",a.mimeType],[],"",a));try{s=r.getNum(t.GetVariable("$version"))}catch(e){}}s||((o=i?i.enabledPlugin:null)&&o.description&&(s=n(o.description)),s&&(s=r.getPluginFileVersion(o,s)))}return a.installed=s?1:-1,a.version=r.formatNum(s),!0}},shockwave:{mimeType:"application/x-director",progID:"SWCtl.SWCtl",classID:"clsid:166B1BCA-3F9C-11CF-8075-444553540000",getVersion:function(){var e,t=null,i=null,o=this,n=o.$;if(n.isIE){try{i=n.getAXO(o.progID).ShockwaveVersion("")}catch(e){}n.isString(i)&&i.length>0?t=n.getNum(i):n.getAXO(o.progID+".8")?t="8":n.getAXO(o.progID+".7")?t="7":n.getAXO(o.progID+".1")&&(t="6")}else(e=n.findNavPlugin("Shockwave\\s*for\\s*Director"))&&e.description&&n.hasMimeType(o.mimeType)&&(t=n.getNum(e.description)),t&&(t=n.getPluginFileVersion(e,t));o.installed=t?1:-1,o.version=n.formatNum(t)}},zz:0}};PluginDetect.initScript();var gArgCountErr='The "%%" function requires an even number of arguments.\nArguments should be in the form "atttributeName", "attributeValue", ...',gTagAttrs=null,gQTGeneratorVersion=1;function AC_QuickTimeVersion(){return gQTGeneratorVersion}function _QTComplain(e,t){t=t.replace("%%",e),alert(t)}function _QTAddAttribute(e,t,i){var o;return null==(o=gTagAttrs[e+t])&&(o=gTagAttrs[t]),null!=o?(0==t.indexOf(e)&&null==i&&(i=t.substring(e.length)),null==i&&(i=t),i+'="'+o+'" '):""}function _QTAddObjectAttr(e,t){return 0==e.indexOf("emb#")?"":(0==e.indexOf("obj#")&&null==t&&(t=e.substring(4)),_QTAddAttribute("obj#",e,t))}function _QTAddEmbedAttr(e,t){return 0==e.indexOf("obj#")?"":(0==e.indexOf("emb#")&&null==t&&(t=e.substring(4)),_QTAddAttribute("emb#",e,t))}function _QTAddObjectParam(e,t){var i,o="",n=t?" />":">";return-1==e.indexOf("emb#")&&(null==(i=gTagAttrs["obj#"+e])&&(i=gTagAttrs[e]),0==e.indexOf("obj#")&&(e=e.substring(4)),null!=i&&(o=' <param name="'+e+'" value="'+i+'"'+n+"\n")),o}function _QTDeleteTagAttrs(){for(var e=0;e<arguments.length;e++){var t=arguments[e];delete gTagAttrs[t],delete gTagAttrs["emb#"+t],delete gTagAttrs["obj#"+t]}}function _QTGenerate(e,t,i){if(4>i.length||0!=i.length%2)return _QTComplain(e,gArgCountErr),"";(gTagAttrs=[]).src=i[0],gTagAttrs.width=i[1],gTagAttrs.height=i[2],gTagAttrs.classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",gTagAttrs.pluginspage="http://www.apple.com/quicktime/download/",null!=(e=i[3])&&""!=e||(e="6,0,2,0"),gTagAttrs.codebase="http://www.apple.com/qtactivex/qtplugin.cab#version="+e;for(var o,n=4;n<i.length;n+=2)o=i[n].toLowerCase(),e=i[n+1],"name"==o||"id"==o?gTagAttrs.name=e:gTagAttrs[o]=e;for(o in i="<object "+_QTAddObjectAttr("classid")+_QTAddObjectAttr("width")+_QTAddObjectAttr("height")+_QTAddObjectAttr("codebase")+_QTAddObjectAttr("name","id")+_QTAddObjectAttr("tabindex")+_QTAddObjectAttr("hspace")+_QTAddObjectAttr("vspace")+_QTAddObjectAttr("border")+_QTAddObjectAttr("align")+_QTAddObjectAttr("class")+_QTAddObjectAttr("title")+_QTAddObjectAttr("accesskey")+_QTAddObjectAttr("noexternaldata")+">\n"+_QTAddObjectParam("src",t),n=" <embed "+_QTAddEmbedAttr("src")+_QTAddEmbedAttr("width")+_QTAddEmbedAttr("height")+_QTAddEmbedAttr("pluginspage")+_QTAddEmbedAttr("name")+_QTAddEmbedAttr("align")+_QTAddEmbedAttr("tabindex"),_QTDeleteTagAttrs("src","width","height","pluginspage","classid","codebase","name","tabindex","hspace","vspace","border","align","noexternaldata","class","title","accesskey"),gTagAttrs)null!=(e=gTagAttrs[o])&&(n+=_QTAddEmbedAttr(o),i+=_QTAddObjectParam(o,t));return i+n+"> </embed>\n</object>"}function QT_GenerateOBJECTText(){return _QTGenerate("QT_GenerateOBJECTText",!1,arguments)}!function(){function e(e){return"#"+(e=e||location.href).replace(/^[^#]*#?(.*)$/,"$1")}var t,i=document,o=$.event.special,n=i.documentMode,a="oniLightBoxHashChange"in window&&(void 0===n||7<n);$.fn.iLightBoxHashChange=function(e){return e?this.on("iLightBoxHashChange",e):this.trigger("iLightBoxHashChange")},$.fn.iLightBoxHashChange.delay=50,o.iLightBoxHashChange=$.extend(o.iLightBoxHashChange,{setup:function(){if(a)return!1;$(t.start)},teardown:function(){if(a)return!1;$(t.stop)}}),t=function(){function t(){var i=e(),n=h(l);i!==l?(u(l=i,n),$(window).trigger("iLightBoxHashChange")):n!==l&&(location.href=location.href.replace(/#.*/,"")+n),o=setTimeout(t,$.fn.iLightBoxHashChange.delay)}var o,n,r,s={},l=e(),c=function(e){return e},u=c,h=c;return s.start=function(){o||t()},s.stop=function(){o&&clearTimeout(o),o=void 0},browser.msie&&!a&&(s.start=function(){n||(r=(r=$.fn.iLightBoxHashChange.src)&&r+e(),n=$('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){r||u(e()),t()}).attr("src",r||"javascript:0").insertAfter("body")[0].contentWindow,i.onpropertychange=function(){try{"title"===event.propertyName&&(n.document.title=i.title)}catch(e){}})},s.stop=c,h=function(){return e(n.location.href)},u=function(e,t){var o=n.document,a=$.fn.iLightBoxHashChange.domain;e!==t&&(o.title=i.title,o.open(),a&&o.write('<script>document.domain="'+a+'"<\/script>'),o.close(),n.location.hash=e)}),s}()}(),Array.prototype.filter||(Array.prototype.filter=function(e){"use strict";if(null==this)throw new TypeError;var t=Object(this),i=t.length>>>0;if("function"!=typeof e)throw new TypeError;for(var o=[],n=arguments[1],a=0;a<i;a++)if(a in t){var r=t[a];e.call(n,r,a,t)&&o.push(r)}return o}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){var i;if(null==this)throw new TypeError('"this" is null or not defined');var o=Object(this),n=o.length>>>0;if(0===n)return-1;var a=+t||0;if(abs(a)===1/0&&(a=0),a>=n)return-1;for(i=max(a>=0?a:n-abs(a),0);i<n;){if(i in o&&o[i]===e)return i;i++}return-1}),Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(e){"use strict";if(null==this)throw new TypeError;var t=Object(this),i=t.length>>>0;if(0===i)return-1;var o=i;arguments.length>1&&((o=Number(arguments[1]))!=o?o=0:0!=o&&o!=1/0&&o!=-1/0&&(o=(o>0||-1)*floor(abs(o))));for(var n=o>=0?min(o,i-1):i-abs(o);n>=0;n--)if(n in t&&t[n]===e)return n;return-1})}(jQuery,this);
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare